diff --git a/internal/apiclient/client.gen.go b/internal/apiclient/client.gen.go index 3f21adc..dc5cf67 100644 --- a/internal/apiclient/client.gen.go +++ b/internal/apiclient/client.gen.go @@ -17,6 +17,7 @@ import ( "go.yaml.in/yaml/v3" + "github.com/oapi-codegen/nullable" "github.com/oapi-codegen/runtime" openapi_types "github.com/oapi-codegen/runtime/types" ) @@ -71,6 +72,135 @@ func (e AuthInsightsInterval) Valid() bool { } } +// Defines values for AuthPageDensity. +const ( + Comfortable AuthPageDensity = "comfortable" + Compact AuthPageDensity = "compact" + Spacious AuthPageDensity = "spacious" +) + +// Valid indicates whether the value is a known member of the AuthPageDensity enum. +func (e AuthPageDensity) Valid() bool { + switch e { + case Comfortable: + return true + case Compact: + return true + case Spacious: + return true + default: + return false + } +} + +// Defines values for AuthPageFont. +const ( + AuthPageFontGeometric AuthPageFont = "geometric" + AuthPageFontHumanist AuthPageFont = "humanist" + AuthPageFontMono AuthPageFont = "mono" + AuthPageFontSlab AuthPageFont = "slab" + AuthPageFontSystem AuthPageFont = "system" +) + +// Valid indicates whether the value is a known member of the AuthPageFont enum. +func (e AuthPageFont) Valid() bool { + switch e { + case AuthPageFontGeometric: + return true + case AuthPageFontHumanist: + return true + case AuthPageFontMono: + return true + case AuthPageFontSlab: + return true + case AuthPageFontSystem: + return true + default: + return false + } +} + +// Defines values for AuthPageLayout. +const ( + Centered AuthPageLayout = "centered" + SplitLeft AuthPageLayout = "split-left" + SplitRight AuthPageLayout = "split-right" +) + +// Valid indicates whether the value is a known member of the AuthPageLayout enum. +func (e AuthPageLayout) Valid() bool { + switch e { + case Centered: + return true + case SplitLeft: + return true + case SplitRight: + return true + default: + return false + } +} + +// Defines values for AuthPageRadius. +const ( + AuthPageRadiusLarge AuthPageRadius = "large" + AuthPageRadiusMedium AuthPageRadius = "medium" + AuthPageRadiusNone AuthPageRadius = "none" + AuthPageRadiusSmall AuthPageRadius = "small" +) + +// Valid indicates whether the value is a known member of the AuthPageRadius enum. +func (e AuthPageRadius) Valid() bool { + switch e { + case AuthPageRadiusLarge: + return true + case AuthPageRadiusMedium: + return true + case AuthPageRadiusNone: + return true + case AuthPageRadiusSmall: + return true + default: + return false + } +} + +// Defines values for AuthPageScale. +const ( + AuthPageScaleDefault AuthPageScale = "default" + AuthPageScaleLarge AuthPageScale = "large" + AuthPageScaleSmall AuthPageScale = "small" +) + +// Valid indicates whether the value is a known member of the AuthPageScale enum. +func (e AuthPageScale) Valid() bool { + switch e { + case AuthPageScaleDefault: + return true + case AuthPageScaleLarge: + return true + case AuthPageScaleSmall: + return true + default: + return false + } +} + +// Defines values for AuthPageThemeVersion. +const ( + AuthPageThemeVersionN1 AuthPageThemeVersion = 1 +) + +// Valid indicates whether the value is a known member of the AuthPageThemeVersion enum. +func (e AuthPageThemeVersion) Valid() bool { + switch e { + case AuthPageThemeVersionN1: + return true + default: + return false + } +} + // Defines values for AuthSessionProvider. const ( AuthSessionProviderAnonymous AuthSessionProvider = "anonymous" @@ -203,42 +333,6 @@ func (e CreateDatabaseRequestPgVersion) Valid() bool { } } -// Defines values for CreateDatabaseRequestRegion. -const ( - AwsApSoutheast1 CreateDatabaseRequestRegion = "aws-ap-southeast-1" - AwsApSoutheast2 CreateDatabaseRequestRegion = "aws-ap-southeast-2" - AwsEuCentral1 CreateDatabaseRequestRegion = "aws-eu-central-1" - AwsEuWest2 CreateDatabaseRequestRegion = "aws-eu-west-2" - AwsSaEast1 CreateDatabaseRequestRegion = "aws-sa-east-1" - AwsUsEast1 CreateDatabaseRequestRegion = "aws-us-east-1" - AwsUsEast2 CreateDatabaseRequestRegion = "aws-us-east-2" - AwsUsWest2 CreateDatabaseRequestRegion = "aws-us-west-2" -) - -// Valid indicates whether the value is a known member of the CreateDatabaseRequestRegion enum. -func (e CreateDatabaseRequestRegion) Valid() bool { - switch e { - case AwsApSoutheast1: - return true - case AwsApSoutheast2: - return true - case AwsEuCentral1: - return true - case AwsEuWest2: - return true - case AwsSaEast1: - return true - case AwsUsEast1: - return true - case AwsUsEast2: - return true - case AwsUsWest2: - return true - default: - return false - } -} - // Defines values for CreateEmailTemplateRequestTemplateType. const ( CreateEmailTemplateRequestTemplateTypeConfirmation CreateEmailTemplateRequestTemplateType = "confirmation" @@ -290,6 +384,78 @@ func (e CreateOAuthConfigRequestProvider) Valid() bool { } } +// Defines values for CreateSandboxSessionRequestMemoryMb. +const ( + CreateSandboxSessionRequestMemoryMbN1024 CreateSandboxSessionRequestMemoryMb = 1024 + CreateSandboxSessionRequestMemoryMbN2048 CreateSandboxSessionRequestMemoryMb = 2048 +) + +// Valid indicates whether the value is a known member of the CreateSandboxSessionRequestMemoryMb enum. +func (e CreateSandboxSessionRequestMemoryMb) Valid() bool { + switch e { + case CreateSandboxSessionRequestMemoryMbN1024: + return true + case CreateSandboxSessionRequestMemoryMbN2048: + return true + default: + return false + } +} + +// Defines values for CreateSandboxSessionRequestPreset. +const ( + CreateSandboxSessionRequestPresetNode22 CreateSandboxSessionRequestPreset = "node22" + CreateSandboxSessionRequestPresetPython312 CreateSandboxSessionRequestPreset = "python3.12" +) + +// Valid indicates whether the value is a known member of the CreateSandboxSessionRequestPreset enum. +func (e CreateSandboxSessionRequestPreset) Valid() bool { + switch e { + case CreateSandboxSessionRequestPresetNode22: + return true + case CreateSandboxSessionRequestPresetPython312: + return true + default: + return false + } +} + +// Defines values for CreateSandboxTemplateRequestMemoryMb. +const ( + CreateSandboxTemplateRequestMemoryMbN1024 CreateSandboxTemplateRequestMemoryMb = 1024 + CreateSandboxTemplateRequestMemoryMbN2048 CreateSandboxTemplateRequestMemoryMb = 2048 +) + +// Valid indicates whether the value is a known member of the CreateSandboxTemplateRequestMemoryMb enum. +func (e CreateSandboxTemplateRequestMemoryMb) Valid() bool { + switch e { + case CreateSandboxTemplateRequestMemoryMbN1024: + return true + case CreateSandboxTemplateRequestMemoryMbN2048: + return true + default: + return false + } +} + +// Defines values for CreateSandboxTemplateRequestPreset. +const ( + CreateSandboxTemplateRequestPresetNode22 CreateSandboxTemplateRequestPreset = "node22" + CreateSandboxTemplateRequestPresetPython312 CreateSandboxTemplateRequestPreset = "python3.12" +) + +// Valid indicates whether the value is a known member of the CreateSandboxTemplateRequestPreset enum. +func (e CreateSandboxTemplateRequestPreset) Valid() bool { + switch e { + case CreateSandboxTemplateRequestPresetNode22: + return true + case CreateSandboxTemplateRequestPresetPython312: + return true + default: + return false + } +} + // Defines values for CreateStoragePolicyRequestOperation. const ( CreateStoragePolicyRequestOperationDELETE CreateStoragePolicyRequestOperation = "DELETE" @@ -834,6 +1000,7 @@ func (e FrontendStatus) Valid() bool { const ( FrontendVariableScopeAll FrontendVariableScope = "all" FrontendVariableScopeScoped FrontendVariableScope = "scoped" + FrontendVariableScopeShared FrontendVariableScope = "shared" ) // Valid indicates whether the value is a known member of the FrontendVariableScope enum. @@ -843,6 +1010,8 @@ func (e FrontendVariableScope) Valid() bool { return true case FrontendVariableScopeScoped: return true + case FrontendVariableScopeShared: + return true default: return false } @@ -1139,6 +1308,42 @@ func (e FunctionDeploymentStatus) Valid() bool { } } +// Defines values for FunctionHTTPAuthMode. +const ( + None FunctionHTTPAuthMode = "none" + Volcano FunctionHTTPAuthMode = "volcano" +) + +// Valid indicates whether the value is a known member of the FunctionHTTPAuthMode enum. +func (e FunctionHTTPAuthMode) Valid() bool { + switch e { + case None: + return true + case Volcano: + return true + default: + return false + } +} + +// Defines values for FunctionInvocationMode. +const ( + Http FunctionInvocationMode = "http" + Rpc FunctionInvocationMode = "rpc" +) + +// Valid indicates whether the value is a known member of the FunctionInvocationMode enum. +func (e FunctionInvocationMode) Valid() bool { + switch e { + case Http: + return true + case Rpc: + return true + default: + return false + } +} + // Defines values for FunctionKind. const ( Durable FunctionKind = "durable" @@ -1174,17 +1379,29 @@ func (e FunctionSchedulerScheduleKind) Valid() bool { // Defines values for HostedAuthPageType. const ( - HostedAuthPageTypeLogin HostedAuthPageType = "login" - HostedAuthPageTypeResetPassword HostedAuthPageType = "reset-password" + HostedAuthPageTypeDevice HostedAuthPageType = "device" + HostedAuthPageTypeForgotPassword HostedAuthPageType = "forgot-password" + HostedAuthPageTypeLogin HostedAuthPageType = "login" + HostedAuthPageTypeResetPassword HostedAuthPageType = "reset-password" + HostedAuthPageTypeSignup HostedAuthPageType = "signup" + HostedAuthPageTypeVerifyEmail HostedAuthPageType = "verify-email" ) // Valid indicates whether the value is a known member of the HostedAuthPageType enum. func (e HostedAuthPageType) Valid() bool { switch e { + case HostedAuthPageTypeDevice: + return true + case HostedAuthPageTypeForgotPassword: + return true case HostedAuthPageTypeLogin: return true case HostedAuthPageTypeResetPassword: return true + case HostedAuthPageTypeSignup: + return true + case HostedAuthPageTypeVerifyEmail: + return true default: return false } @@ -1192,14 +1409,26 @@ func (e HostedAuthPageType) Valid() bool { // Defines values for HostedRenderablePageType. const ( - HostedRenderablePageTypeResetPassword HostedRenderablePageType = "reset-password" + HostedRenderablePageTypeDevice HostedRenderablePageType = "device" + HostedRenderablePageTypeForgotPassword HostedRenderablePageType = "forgot-password" + HostedRenderablePageTypeResetPassword HostedRenderablePageType = "reset-password" + HostedRenderablePageTypeSignup HostedRenderablePageType = "signup" + HostedRenderablePageTypeVerifyEmail HostedRenderablePageType = "verify-email" ) // Valid indicates whether the value is a known member of the HostedRenderablePageType enum. func (e HostedRenderablePageType) Valid() bool { switch e { + case HostedRenderablePageTypeDevice: + return true + case HostedRenderablePageTypeForgotPassword: + return true case HostedRenderablePageTypeResetPassword: return true + case HostedRenderablePageTypeSignup: + return true + case HostedRenderablePageTypeVerifyEmail: + return true default: return false } @@ -1483,13 +1712,13 @@ func (e ProjectAccessTokenScope) Valid() bool { // Defines values for ProjectConfigVersion. const ( - N1 ProjectConfigVersion = 1 + ProjectConfigVersionN1 ProjectConfigVersion = 1 ) // Valid indicates whether the value is a known member of the ProjectConfigVersion enum. func (e ProjectConfigVersion) Valid() bool { switch e { - case N1: + case ProjectConfigVersionN1: return true default: return false @@ -1620,6 +1849,7 @@ func (e ProjectConfigDatabasePgVersion) Valid() bool { const ( ProjectConfigFrontendVariableScopeAll ProjectConfigFrontendVariableScope = "all" ProjectConfigFrontendVariableScopeScoped ProjectConfigFrontendVariableScope = "scoped" + ProjectConfigFrontendVariableScopeShared ProjectConfigFrontendVariableScope = "shared" ) // Valid indicates whether the value is a known member of the ProjectConfigFrontendVariableScope enum. @@ -1629,6 +1859,8 @@ func (e ProjectConfigFrontendVariableScope) Valid() bool { return true case ProjectConfigFrontendVariableScopeScoped: return true + case ProjectConfigFrontendVariableScopeShared: + return true default: return false } @@ -2306,6 +2538,66 @@ func (e ProjectMetricsUnit) Valid() bool { } } +// Defines values for ProjectSourceExportStateMode. +const ( + ProjectSourceExportStateModeGit ProjectSourceExportStateMode = "git" + ProjectSourceExportStateModeGitExporting ProjectSourceExportStateMode = "git_exporting" + ProjectSourceExportStateModeGitPending ProjectSourceExportStateMode = "git_pending" + ProjectSourceExportStateModePlatform ProjectSourceExportStateMode = "platform" +) + +// Valid indicates whether the value is a known member of the ProjectSourceExportStateMode enum. +func (e ProjectSourceExportStateMode) Valid() bool { + switch e { + case ProjectSourceExportStateModeGit: + return true + case ProjectSourceExportStateModeGitExporting: + return true + case ProjectSourceExportStateModeGitPending: + return true + case ProjectSourceExportStateModePlatform: + return true + default: + return false + } +} + +// Defines values for PublishSandboxPresetRequestMemoryMb. +const ( + PublishSandboxPresetRequestMemoryMbN1024 PublishSandboxPresetRequestMemoryMb = 1024 + PublishSandboxPresetRequestMemoryMbN2048 PublishSandboxPresetRequestMemoryMb = 2048 +) + +// Valid indicates whether the value is a known member of the PublishSandboxPresetRequestMemoryMb enum. +func (e PublishSandboxPresetRequestMemoryMb) Valid() bool { + switch e { + case PublishSandboxPresetRequestMemoryMbN1024: + return true + case PublishSandboxPresetRequestMemoryMbN2048: + return true + default: + return false + } +} + +// Defines values for PublishSandboxPresetRequestPreset. +const ( + PublishSandboxPresetRequestPresetNode22 PublishSandboxPresetRequestPreset = "node22" + PublishSandboxPresetRequestPresetPython312 PublishSandboxPresetRequestPreset = "python3.12" +) + +// Valid indicates whether the value is a known member of the PublishSandboxPresetRequestPreset enum. +func (e PublishSandboxPresetRequestPreset) Valid() bool { + switch e { + case PublishSandboxPresetRequestPresetNode22: + return true + case PublishSandboxPresetRequestPresetPython312: + return true + default: + return false + } +} + // Defines values for ResourceReferenceType. const ( ResourceReferenceTypeDatabase ResourceReferenceType = "database" @@ -2330,6 +2622,138 @@ func (e ResourceReferenceType) Valid() bool { } } +// Defines values for SandboxExecutionRequestMemoryMb. +const ( + SandboxExecutionRequestMemoryMbN1024 SandboxExecutionRequestMemoryMb = 1024 + SandboxExecutionRequestMemoryMbN2048 SandboxExecutionRequestMemoryMb = 2048 +) + +// Valid indicates whether the value is a known member of the SandboxExecutionRequestMemoryMb enum. +func (e SandboxExecutionRequestMemoryMb) Valid() bool { + switch e { + case SandboxExecutionRequestMemoryMbN1024: + return true + case SandboxExecutionRequestMemoryMbN2048: + return true + default: + return false + } +} + +// Defines values for SandboxExecutionRequestPreset. +const ( + SandboxExecutionRequestPresetNode22 SandboxExecutionRequestPreset = "node22" + SandboxExecutionRequestPresetPython312 SandboxExecutionRequestPreset = "python3.12" +) + +// Valid indicates whether the value is a known member of the SandboxExecutionRequestPreset enum. +func (e SandboxExecutionRequestPreset) Valid() bool { + switch e { + case SandboxExecutionRequestPresetNode22: + return true + case SandboxExecutionRequestPresetPython312: + return true + default: + return false + } +} + +// Defines values for SandboxPresetMemoryMb. +const ( + N1024 SandboxPresetMemoryMb = 1024 + N2048 SandboxPresetMemoryMb = 2048 +) + +// Valid indicates whether the value is a known member of the SandboxPresetMemoryMb enum. +func (e SandboxPresetMemoryMb) Valid() bool { + switch e { + case N1024: + return true + case N2048: + return true + default: + return false + } +} + +// Defines values for SandboxSessionDesiredState. +const ( + Running SandboxSessionDesiredState = "running" + Suspended SandboxSessionDesiredState = "suspended" + Terminated SandboxSessionDesiredState = "terminated" +) + +// Valid indicates whether the value is a known member of the SandboxSessionDesiredState enum. +func (e SandboxSessionDesiredState) Valid() bool { + switch e { + case Running: + return true + case Suspended: + return true + case Terminated: + return true + default: + return false + } +} + +// Defines values for SandboxSessionState. +const ( + SandboxSessionStateResuming SandboxSessionState = "resuming" + SandboxSessionStateRunning SandboxSessionState = "running" + SandboxSessionStateStarting SandboxSessionState = "starting" + SandboxSessionStateSuspended SandboxSessionState = "suspended" + SandboxSessionStateSuspending SandboxSessionState = "suspending" + SandboxSessionStateTerminated SandboxSessionState = "terminated" + SandboxSessionStateTerminating SandboxSessionState = "terminating" + SandboxSessionStateUnknown SandboxSessionState = "unknown" +) + +// Valid indicates whether the value is a known member of the SandboxSessionState enum. +func (e SandboxSessionState) Valid() bool { + switch e { + case SandboxSessionStateResuming: + return true + case SandboxSessionStateRunning: + return true + case SandboxSessionStateStarting: + return true + case SandboxSessionStateSuspended: + return true + case SandboxSessionStateSuspending: + return true + case SandboxSessionStateTerminated: + return true + case SandboxSessionStateTerminating: + return true + case SandboxSessionStateUnknown: + return true + default: + return false + } +} + +// Defines values for SandboxTemplateStatus. +const ( + SandboxTemplateStatusDeleting SandboxTemplateStatus = "deleting" + SandboxTemplateStatusReady SandboxTemplateStatus = "ready" + SandboxTemplateStatusUnavailable SandboxTemplateStatus = "unavailable" +) + +// Valid indicates whether the value is a known member of the SandboxTemplateStatus enum. +func (e SandboxTemplateStatus) Valid() bool { + switch e { + case SandboxTemplateStatusDeleting: + return true + case SandboxTemplateStatusReady: + return true + case SandboxTemplateStatusUnavailable: + return true + default: + return false + } +} + // Defines values for ScheduleRequestKind. const ( ScheduleRequestKindCron ScheduleRequestKind = "cron" @@ -2464,28 +2888,28 @@ func (e UploadSessionStatusResponseStatus) Valid() bool { // Defines values for VariableDeploySource. const ( - Api VariableDeploySource = "api" - Cli VariableDeploySource = "cli" - Git VariableDeploySource = "git" - System VariableDeploySource = "system" - Unknown VariableDeploySource = "unknown" - Web VariableDeploySource = "web" + VariableDeploySourceApi VariableDeploySource = "api" + VariableDeploySourceCli VariableDeploySource = "cli" + VariableDeploySourceGit VariableDeploySource = "git" + VariableDeploySourceSystem VariableDeploySource = "system" + VariableDeploySourceUnknown VariableDeploySource = "unknown" + VariableDeploySourceWeb VariableDeploySource = "web" ) // Valid indicates whether the value is a known member of the VariableDeploySource enum. func (e VariableDeploySource) Valid() bool { switch e { - case Api: + case VariableDeploySourceApi: return true - case Cli: + case VariableDeploySourceCli: return true - case Git: + case VariableDeploySourceGit: return true - case System: + case VariableDeploySourceSystem: return true - case Unknown: + case VariableDeploySourceUnknown: return true - case Web: + case VariableDeploySourceWeb: return true default: return false @@ -2756,6 +3180,30 @@ func (e CallOAuthProviderAPIJSONBodyMethod) Valid() bool { } } +// Defines values for CallOAuthProviderAPI200JSONResponseBodyProvider. +const ( + CallOAuthProviderAPI200JSONResponseBodyProviderApple CallOAuthProviderAPI200JSONResponseBodyProvider = "apple" + CallOAuthProviderAPI200JSONResponseBodyProviderGithub CallOAuthProviderAPI200JSONResponseBodyProvider = "github" + CallOAuthProviderAPI200JSONResponseBodyProviderGoogle CallOAuthProviderAPI200JSONResponseBodyProvider = "google" + CallOAuthProviderAPI200JSONResponseBodyProviderMicrosoft CallOAuthProviderAPI200JSONResponseBodyProvider = "microsoft" +) + +// Valid indicates whether the value is a known member of the CallOAuthProviderAPI200JSONResponseBodyProvider enum. +func (e CallOAuthProviderAPI200JSONResponseBodyProvider) Valid() bool { + switch e { + case CallOAuthProviderAPI200JSONResponseBodyProviderApple: + return true + case CallOAuthProviderAPI200JSONResponseBodyProviderGithub: + return true + case CallOAuthProviderAPI200JSONResponseBodyProviderGoogle: + return true + case CallOAuthProviderAPI200JSONResponseBodyProviderMicrosoft: + return true + default: + return false + } +} + // Defines values for AuthOAuthCallbackParamsProvider. const ( AuthOAuthCallbackParamsProviderApple AuthOAuthCallbackParamsProvider = "apple" @@ -3077,6 +3525,54 @@ func (e GetDefaultEmailTemplateParamsType) Valid() bool { } } +// Defines values for CallMCPJSONBodyJsonrpc. +const ( + CallMCPJSONBodyJsonrpcN20 CallMCPJSONBodyJsonrpc = "2.0" +) + +// Valid indicates whether the value is a known member of the CallMCPJSONBodyJsonrpc enum. +func (e CallMCPJSONBodyJsonrpc) Valid() bool { + switch e { + case CallMCPJSONBodyJsonrpcN20: + return true + default: + return false + } +} + +// Defines values for CallMCP200JSONResponseBodyJsonrpc. +const ( + CallMCP200JSONResponseBodyJsonrpcN20 CallMCP200JSONResponseBodyJsonrpc = "2.0" +) + +// Valid indicates whether the value is a known member of the CallMCP200JSONResponseBodyJsonrpc enum. +func (e CallMCP200JSONResponseBodyJsonrpc) Valid() bool { + switch e { + case CallMCP200JSONResponseBodyJsonrpcN20: + return true + default: + return false + } +} + +// Defines values for ListProjectsParamsInclude. +const ( + ListProjectsParamsIncludeGitConnection ListProjectsParamsInclude = "git_connection" + ListProjectsParamsIncludeHealth ListProjectsParamsInclude = "health" +) + +// Valid indicates whether the value is a known member of the ListProjectsParamsInclude enum. +func (e ListProjectsParamsInclude) Valid() bool { + switch e { + case ListProjectsParamsIncludeGitConnection: + return true + case ListProjectsParamsIncludeHealth: + return true + default: + return false + } +} + // Defines values for CreateAnonKeyJSONBodyPermissions. const ( AuthConfirmEmail CreateAnonKeyJSONBodyPermissions = "auth.confirm_email" @@ -3196,16 +3692,16 @@ func (e ListUserSessionsParamsSort) Valid() bool { // Defines values for ListUserSessionsParamsStatus. const ( - Active ListUserSessionsParamsStatus = "active" - Expired ListUserSessionsParamsStatus = "expired" + ListUserSessionsParamsStatusActive ListUserSessionsParamsStatus = "active" + ListUserSessionsParamsStatusExpired ListUserSessionsParamsStatus = "expired" ) // Valid indicates whether the value is a known member of the ListUserSessionsParamsStatus enum. func (e ListUserSessionsParamsStatus) Valid() bool { switch e { - case Active: + case ListUserSessionsParamsStatusActive: return true - case Expired: + case ListUserSessionsParamsStatusExpired: return true default: return false @@ -3230,6 +3726,33 @@ func (e GetProjectConfigParamsFormat) Valid() bool { } } +// Defines values for ListDatabasesParamsStatus. +const ( + Active ListDatabasesParamsStatus = "active" + Deleting ListDatabasesParamsStatus = "deleting" + Failed ListDatabasesParamsStatus = "failed" + Provisioning ListDatabasesParamsStatus = "provisioning" + Restoring ListDatabasesParamsStatus = "restoring" +) + +// Valid indicates whether the value is a known member of the ListDatabasesParamsStatus enum. +func (e ListDatabasesParamsStatus) Valid() bool { + switch e { + case Active: + return true + case Deleting: + return true + case Failed: + return true + case Provisioning: + return true + case Restoring: + return true + default: + return false + } +} + // Defines values for GetDatabaseStatsParamsGranularity. const ( Daily GetDatabaseStatsParamsGranularity = "daily" @@ -3416,6 +3939,24 @@ func (e CreateFrontendMultipartBodyFramework) Valid() bool { } } +// Defines values for CreateFrontendMultipartBodyVariableScope. +const ( + All CreateFrontendMultipartBodyVariableScope = "all" + Scoped CreateFrontendMultipartBodyVariableScope = "scoped" +) + +// Valid indicates whether the value is a known member of the CreateFrontendMultipartBodyVariableScope enum. +func (e CreateFrontendMultipartBodyVariableScope) Valid() bool { + switch e { + case All: + return true + case Scoped: + return true + default: + return false + } +} + // Defines values for CreateFunctionMultipartBodyRuntime. const ( CreateFunctionMultipartBodyRuntimeNodejs22X CreateFunctionMultipartBodyRuntime = "nodejs22.x" @@ -3574,13 +4115,13 @@ func (e UploadStorageObjectParamsXUploadComplete) Valid() bool { // Defines values for StartGitConnectParamsProvider. const ( - Github StartGitConnectParamsProvider = "github" + StartGitConnectParamsProviderGithub StartGitConnectParamsProvider = "github" ) // Valid indicates whether the value is a known member of the StartGitConnectParamsProvider enum. func (e StartGitConnectParamsProvider) Valid() bool { switch e { - case Github: + case StartGitConnectParamsProviderGithub: return true default: return false @@ -3899,6 +4440,71 @@ type AuthMethodsResponse struct { Methods []AuthMethodSummary `json:"methods"` } +// AuthPageAppearanceDefaults defines model for AuthPageAppearanceDefaults. +type AuthPageAppearanceDefaults struct { + Layout AuthPageLayout `json:"layout"` + Theme AuthPageTheme `json:"theme"` +} + +// AuthPageAppearanceOptions defines model for AuthPageAppearanceOptions. +type AuthPageAppearanceOptions struct { + Densities []AuthPageDensity `json:"densities"` + Fonts []AuthPageFont `json:"fonts"` + Layouts []AuthPageLayout `json:"layouts"` + Pages []HostedAuthPageType `json:"pages"` + Radii []AuthPageRadius `json:"radii"` + Scales []AuthPageScale `json:"scales"` +} + +// AuthPageAppearanceResponse defines model for AuthPageAppearanceResponse. +type AuthPageAppearanceResponse struct { + CustomisationAllowed bool `json:"customisation_allowed"` + Defaults AuthPageAppearanceDefaults `json:"defaults"` + Layouts map[string]AuthPageLayout `json:"layouts"` + Options AuthPageAppearanceOptions `json:"options"` + + // Parked Per-page saved-but-not-live state. + Parked map[string]bool `json:"parked"` + Theme AuthPageTheme `json:"theme"` +} + +// AuthPageDensity defines model for AuthPageDensity. +type AuthPageDensity string + +// AuthPageFont defines model for AuthPageFont. +type AuthPageFont string + +// AuthPageLayout defines model for AuthPageLayout. +type AuthPageLayout string + +// AuthPageRadius defines model for AuthPageRadius. +type AuthPageRadius string + +// AuthPageScale defines model for AuthPageScale. +type AuthPageScale string + +// AuthPageTheme defines model for AuthPageTheme. +type AuthPageTheme struct { + Colors AuthPageThemeColors `json:"colors"` + Density AuthPageDensity `json:"density"` + Font AuthPageFont `json:"font"` + Radius AuthPageRadius `json:"radius"` + Scale AuthPageScale `json:"scale"` + Version AuthPageThemeVersion `json:"version"` +} + +// AuthPageThemeVersion defines model for AuthPageTheme.Version. +type AuthPageThemeVersion int + +// AuthPageThemeColors defines model for AuthPageThemeColors. +type AuthPageThemeColors struct { + Accent string `json:"accent"` + AccentText string `json:"accent_text"` + Background string `json:"background"` + Surface string `json:"surface"` + Text string `json:"text"` +} + // AuthPasswordPolicy Effective backend-enforced password policy. type AuthPasswordPolicy struct { // CompromisedPasswordsRejected Whether common and known-compromised passwords are rejected by the backend. @@ -4116,8 +4722,11 @@ type CreateDatabaseRequest struct { // PgVersion PostgreSQL major version PgVersion CreateDatabaseRequestPgVersion `json:"pg_version"` - // Region Region for database hosting - Region CreateDatabaseRequestRegion `json:"region"` + // Region Region for database hosting. The accepted values are the regions this + // environment runs in, so read them from `GET /databases/regions` rather + // than hardcoding a list. A region the environment does not offer is + // rejected with 400. + Region string `json:"region"` } // CreateDatabaseRequestDatabaseType Compute size tier (optional, defaults to volcano-db-xs). @@ -4127,13 +4736,15 @@ type CreateDatabaseRequestDatabaseType string // CreateDatabaseRequestPgVersion PostgreSQL major version type CreateDatabaseRequestPgVersion string -// CreateDatabaseRequestRegion Region for database hosting -type CreateDatabaseRequestRegion string - // CreateDatabaseRestoreRequest Names what to restore. Supply exactly one of `backup_name` or // `restore_to`. type CreateDatabaseRestoreRequest struct { - // BackupName A backup of this database to restore. + // BackupName A backup of this database to restore, exactly as returned by the list + // endpoint. + // + // Deliberately looser than the names you can create, like the backup + // path parameter: a backup made by a schedule is named for you, so + // restoring one accepts any name a backup can have. BackupName *string `json:"backup_name,omitempty"` // RestoreTo A point in time to restore to, which must fall inside the @@ -4169,6 +4780,13 @@ type CreateFrontendCustomDomainRequest struct { Tls FrontendCustomDomainTLSConfig `json:"tls"` } +// CreateFrontendFunctionRouteRequest defines model for CreateFrontendFunctionRouteRequest. +type CreateFrontendFunctionRouteRequest struct { + FunctionId openapi_types.UUID `json:"function_id"` + PathPrefix string `json:"path_prefix"` + StripPrefix *bool `json:"strip_prefix,omitempty"` +} + // CreateFunctionSchedulerRequest defines model for CreateFunctionSchedulerRequest. type CreateFunctionSchedulerRequest struct { Enabled *bool `json:"enabled,omitempty"` @@ -4204,7 +4822,10 @@ type CreateProjectAccessTokenRequest struct { // ExpiresAt Omit for a token that does not expire. ExpiresAt *time.Time `json:"expires_at,omitempty"` - // Name Unique within the project. Creating a duplicate returns 409. + // Name Held by any of the project's tokens you have not revoked, including + // one that has expired. Creating a duplicate returns 409 with code + // `access_token_name_exists`; revoking the holder frees the name, so a + // rotation can keep the name its caller already references. Name string `json:"name"` // Scope What a project access token may do within its project. @@ -4220,34 +4841,15 @@ type CreateProjectAccessTokenRequest struct { // available even though they are POST requests that carry body filters. // // `read_only` also refuses the reads that return a credential — service - // keys, variable values, and database connection strings. A service key - // grants read and write over the project's data and keeps working after - // the token that fetched it is revoked, so returning one to a read-only - // credential would make the scope a formality. + // keys, anon keys, variable values, and database connection strings. Those + // grant write access over the project's data and keep working after the + // token that fetched them is revoked, so returning one to a read-only + // credential would make the scope a formality. An anon key is included + // because its permissions are chosen per key and may include uploading, + // deleting, and publishing. Scope ProjectAccessTokenScope `json:"scope"` } -// CreateProjectGitRepositoryRequest defines model for CreateProjectGitRepositoryRequest. -type CreateProjectGitRepositoryRequest struct { - // Description Repository description shown on GitHub. - Description *string `json:"description,omitempty"` - - // Name Repository name, unique within the owner account. - Name string `json:"name"` - - // Owner GitHub account to create the repository under, as returned in account_login by /user/git/connections/{id}/installations. Omit for the connected user's own account. Must be an organization the app is installed on, or your own account. - Owner *string `json:"owner,omitempty"` - - // Private Whether the new repository is private. Defaults to true: the next step is pushing the project's source into it, so an omitted field must not publish it. - Private *bool `json:"private,omitempty"` - - // ProductionBranch The branch to deploy from — name the one you are about to push. The repository is created empty, so it has no real default branch to follow: omitting this binds whatever branch name GitHub reports for the new repository (falling back to "main" if it reports none), which is the account's configured default and a prediction, and pushing anything else then deploys nothing. Naming the branch GitHub already reports is not treated as pinning it, so the project still tracks a later default-branch rename; naming any other branch pins it. Rejected before the repository is created if it is not a valid Git branch name; it does not have to exist. - ProductionBranch *string `json:"production_branch,omitempty"` - - // RootDirectory Monorepo subdirectory the project builds from, as a relative path inside the repository. Omit for the repo root. Absolute paths and ".." traversal are rejected before the repository is created, because the build applies the same rule and nothing would deploy. - RootDirectory *string `json:"root_directory,omitempty"` -} - // CreateProjectRequest Request to create a new project type CreateProjectRequest struct { // AllRegions Optional region policy. @@ -4264,6 +4866,42 @@ type CreateProjectRequest struct { SelectedRegions *[]string `json:"selected_regions,omitempty"` } +// CreateSandboxSessionRequest defines model for CreateSandboxSessionRequest. +type CreateSandboxSessionRequest struct { + IdleTimeoutSeconds *int `json:"idle_timeout_seconds,omitempty"` + MaxDurationSeconds *int `json:"max_duration_seconds,omitempty"` + MemoryMb *CreateSandboxSessionRequestMemoryMb `json:"memory_mb,omitempty"` + Preset *CreateSandboxSessionRequestPreset `json:"preset,omitempty"` + Region string `json:"region"` + SandboxId *openapi_types.UUID `json:"sandbox_id,omitempty"` + union json.RawMessage +} + +// CreateSandboxSessionRequestMemoryMb defines model for CreateSandboxSessionRequest.MemoryMb. +type CreateSandboxSessionRequestMemoryMb int + +// CreateSandboxSessionRequestPreset defines model for CreateSandboxSessionRequest.Preset. +type CreateSandboxSessionRequestPreset string + +// CreateSandboxSessionRequest0 defines model for . +type CreateSandboxSessionRequest0 = interface{} + +// CreateSandboxSessionRequest1 defines model for . +type CreateSandboxSessionRequest1 = interface{} + +// CreateSandboxTemplateRequest defines model for CreateSandboxTemplateRequest. +type CreateSandboxTemplateRequest struct { + MemoryMb *CreateSandboxTemplateRequestMemoryMb `json:"memory_mb,omitempty"` + Name string `json:"name"` + Preset CreateSandboxTemplateRequestPreset `json:"preset"` +} + +// CreateSandboxTemplateRequestMemoryMb defines model for CreateSandboxTemplateRequest.MemoryMb. +type CreateSandboxTemplateRequestMemoryMb int + +// CreateSandboxTemplateRequestPreset defines model for CreateSandboxTemplateRequest.Preset. +type CreateSandboxTemplateRequestPreset string + // CreateStorageBucketRequest defines model for CreateStorageBucketRequest. type CreateStorageBucketRequest struct { // AllowedMimeTypes Allowed MIME types (e.g., ["image/png", "image/jpeg"]) @@ -4323,8 +4961,12 @@ type CreateUploadSessionResponse struct { // CreateVariableRequest defines model for CreateVariableRequest. type CreateVariableRequest struct { - Name string `json:"name"` - Value string `json:"value"` + // Name Project variable name. Function runtime names such as AWS_REGION are reserved and return 400; see the environment variables guide for the full list. + Name string `json:"name"` + + // Shared Include this name in the project's shared function variables. Omission preserves existing membership; new variables default to true for legacy clients. Send false explicitly to create a non-shared variable. + Shared *bool `json:"shared,omitempty"` + Value string `json:"value"` } // CreatedProjectAccessToken defines model for CreatedProjectAccessToken. @@ -4357,10 +4999,12 @@ type CreatedProjectAccessToken struct { // available even though they are POST requests that carry body filters. // // `read_only` also refuses the reads that return a credential — service - // keys, variable values, and database connection strings. A service key - // grants read and write over the project's data and keeps working after - // the token that fetched it is revoked, so returning one to a read-only - // credential would make the scope a formality. + // keys, anon keys, variable values, and database connection strings. Those + // grant write access over the project's data and keep working after the + // token that fetched them is revoked, so returning one to a read-only + // credential would make the scope a formality. An anon key is included + // because its permissions are chosen per key and may include uploading, + // deleting, and publishing. Scope ProjectAccessTokenScope `json:"scope"` // Status `revoked` means the token was deliberately revoked, by you or by the @@ -4397,16 +5041,6 @@ type CreatedProjectAccessTokenStatus string // CreatedProjectAccessTokenTokenSource What created the token. type CreatedProjectAccessTokenTokenSource string -// CreatedProjectGitConnection A newly created repository's project binding, plus whether the Volcano GitHub App can actually see it. -type CreatedProjectGitConnection struct { - // AppInstalled Whether the App installation covers the new repository. False means the binding is complete but no push will deploy until the user grants access at install_url. An installation scoped to selected repositories never picks up a new repo on its own. - AppInstalled bool `json:"app_installed"` - Connection ProjectGitConnection `json:"connection"` - - // InstallUrl Where the user grants the App access to the new repository. Present only when app_installed is false. - InstallUrl *string `json:"install_url,omitempty"` -} - // Database PostgreSQL database with automatic scalability and security features. type Database struct { // ConnectionString Secure PostgreSQL connection URI for your database. @@ -4506,8 +5140,12 @@ type DatabaseBackupSource string type DatabaseBackupList struct { Data []DatabaseBackup `json:"data"` - // RestoreWindow The span a point-in-time restore may target. Empty when the owner's plan - // does not include point-in-time restore. + // RestoreWindow The span a point-in-time restore may target. Absent from the response + // when the owner's plan does not include point-in-time restore, and while + // the storage provider has no history window in place yet — briefly the + // case after an upgrade, since the window is applied asynchronously. The + // window is read from the provider rather than from the plan, so it never + // advertises a point a restore could not actually reach. RestoreWindow *DatabaseRestoreWindow `json:"restore_window,omitempty"` } @@ -4728,13 +5366,13 @@ type DatabaseQueryPerformanceItem struct { MeanExecTimeSeconds float64 `json:"mean_exec_time_seconds"` MinExecTimeSeconds float64 `json:"min_exec_time_seconds"` - // Query Normalized and obfuscated representative query text. + // Query Normalized representative query text with literal values replaced by `?`. Query string `json:"query"` // QueryId pg_stat_statements query identifier. QueryId string `json:"query_id"` - // Role Database role used for the query. + // Role Postgres role that ran the query, such as `anon` or `authenticated` for RLS-enforced connections, `service_role`, the database owner role for full-access connections, or a role you created. `unknown` when the role no longer exists. Role string `json:"role"` RowsProcessed int64 `json:"rows_processed"` @@ -4811,8 +5449,12 @@ type DatabaseRestoreList struct { Data []DatabaseRestore `json:"data"` } -// DatabaseRestoreWindow The span a point-in-time restore may target. Empty when the owner's plan -// does not include point-in-time restore. +// DatabaseRestoreWindow The span a point-in-time restore may target. Absent from the response +// when the owner's plan does not include point-in-time restore, and while +// the storage provider has no history window in place yet — briefly the +// case after an upgrade, since the window is applied asynchronously. The +// window is read from the provider rather than from the plan, so it never +// advertises a point a restore could not actually reach. type DatabaseRestoreWindow struct { // EarliestRestoreAt The oldest point that can still be restored. Moves forward // continuously as history ages out, so treat it as a lower bound at @@ -4985,11 +5627,18 @@ type DurableExecution struct { Region string `json:"region"` // Result Whatever the function returned, verbatim. Absent while the execution - // is still running, and absent once its retention period has lapsed. + // is still running, absent when the result was too large to return and + // was checkpointed instead, and absent once the retention period has + // lapsed. Result interface{} `json:"result,omitempty"` // ResultExpired `true` when the execution is terminal but its result is no longer // retained, which distinguishes a discarded result from an empty one. + // Shortly after that the execution itself is dropped and reads answer + // `404`. + // + // A result that was checkpointed rather than returned leaves this + // unset, so it reads like a function that returned nothing. ResultExpired *bool `json:"result_expired,omitempty"` // Status Lifecycle state of an execution. `pending` covers the window between the @@ -5056,6 +5705,11 @@ type DurableFunction struct { // Durable Execution limits the function was created with, derived from the // project's plan. Fixed for the life of the function: changing them means // creating a new one. + // + // The memory the function runs at, and the timeout on one attempt within + // an execution, also come from the plan but are not reported here: they + // are applied to the deployed function rather than recorded on it. Both + // are published per plan in the plans and limits guide. Durable DurableFunctionConfig `json:"durable"` Handler *string `json:"handler,omitempty"` Id openapi_types.UUID `json:"id"` @@ -5097,11 +5751,21 @@ type DurableFunctionStatus string // DurableFunctionConfig Execution limits the function was created with, derived from the // project's plan. Fixed for the life of the function: changing them means // creating a new one. +// +// The memory the function runs at, and the timeout on one attempt within +// an execution, also come from the plan but are not reported here: they +// are applied to the deployed function rather than recorded on it. Both +// are published per plan in the plans and limits guide. type DurableFunctionConfig struct { - // ExecutionTimeoutSeconds How long a single execution may run before it is timed out. + // ExecutionTimeoutSeconds How long a whole execution may run, including time suspended in a + // wait. This is not a limit on one attempt: an execution outlives any + // single attempt by checkpointing and resuming, and the per-attempt + // timeout is the plan's own, smaller number. ExecutionTimeoutSeconds int64 `json:"execution_timeout_seconds"` - // RetentionDays How long a finished execution's result and history are retained. + // RetentionDays How long a finished execution's result and history are retained, for + // as long as the function exists. Deleting the function, or its + // project, ends retention early and takes the history with it. RetentionDays int64 `json:"retention_days"` } @@ -5131,6 +5795,12 @@ type Error struct { Error string `json:"error"` } +// ExportProjectSourceRequest defines model for ExportProjectSourceRequest. +type ExportProjectSourceRequest struct { + // ProductionBranch The currently configured production branch the user confirmed for export. + ProductionBranch string `json:"production_branch"` +} + // Frontend defines model for Frontend. type Frontend struct { // AppRoot Optional relative POSIX path from the uploaded archive root to the Next.js app that is deployed. @@ -5172,7 +5842,7 @@ type Frontend struct { Status FrontendStatus `json:"status"` UpdatedAt time.Time `json:"updated_at"` - // VariableScope All preserves access to all project variables. Scoped includes only explicitly declared variables in builds and runtime. Omission preserves the stored selection. + // VariableScope All preserves access to all project variables. Shared includes the project frontend shared-variable list. Scoped includes only explicitly declared variables in builds and runtime. Omission preserves the stored selection. VariableScope *FrontendVariableScope `json:"variable_scope,omitempty"` } @@ -5191,7 +5861,7 @@ type FrontendFramework string // deployment is serving. type FrontendStatus string -// FrontendVariableScope All preserves access to all project variables. Scoped includes only explicitly declared variables in builds and runtime. Omission preserves the stored selection. +// FrontendVariableScope All preserves access to all project variables. Shared includes the project frontend shared-variable list. Scoped includes only explicitly declared variables in builds and runtime. Omission preserves the stored selection. type FrontendVariableScope string // FrontendCustomDomainResponse defines model for FrontendCustomDomainResponse. @@ -5300,6 +5970,23 @@ type FrontendDomainVerificationRecord struct { Value string `json:"value"` } +// FrontendFunctionRoute defines model for FrontendFunctionRoute. +type FrontendFunctionRoute struct { + CreatedAt time.Time `json:"created_at"` + FrontendId openapi_types.UUID `json:"frontend_id"` + FunctionId openapi_types.UUID `json:"function_id"` + Id openapi_types.UUID `json:"id"` + PathPrefix string `json:"path_prefix"` + ProjectId openapi_types.UUID `json:"project_id"` + StripPrefix bool `json:"strip_prefix"` + UpdatedAt time.Time `json:"updated_at"` +} + +// FrontendFunctionRouteList defines model for FrontendFunctionRouteList. +type FrontendFunctionRouteList struct { + Data []FrontendFunctionRoute `json:"data"` +} + // FrontendUsageDailyEntry One day of request and error counts for a single frontend. type FrontendUsageDailyEntry struct { // Day UTC date (YYYY-MM-DD) the counts cover. @@ -5348,11 +6035,22 @@ type Function struct { CurrentDeploymentId *openapi_types.UUID `json:"current_deployment_id,omitempty"` // DeployedRegions Regions where this function is currently deployed - DeployedRegions []string `json:"deployed_regions"` - Handler *string `json:"handler,omitempty"` - Id openapi_types.UUID `json:"id"` + DeployedRegions []string `json:"deployed_regions"` + Handler *string `json:"handler,omitempty"` - // InvokeUrl Canonical GeoDNS endpoint URL for invoking this function (always HTTPS) + // HasOpenapiSpec Whether OpenAPI metadata is configured; list responses omit the document itself. + HasOpenapiSpec bool `json:"has_openapi_spec"` + + // HttpAuthMode Authentication applied by the HTTP ingress. `none` is valid only for public + // HTTP-mode functions and is intended for externally signed webhooks. + HttpAuthMode FunctionHTTPAuthMode `json:"http_auth_mode"` + Id openapi_types.UUID `json:"id"` + + // InvocationMode Invocation contract. `rpc` preserves the existing POST `{payload: ...}` contract; + // `http` forwards HTTP request semantics to the function runtime. + InvocationMode FunctionInvocationMode `json:"invocation_mode"` + + // InvokeUrl Canonical geo-routed HTTPS endpoint for invoking this function. Use it as-is: it does not share a domain with the API, so a host derived from the API URL will not reach the function. Omitted when the deployment serves no public invocation domain, as in local development, so a client testing for an empty string never matches. InvokeUrl *string `json:"invoke_url,omitempty"` // IsPublic Function visibility for anon-key invocation. @@ -5364,6 +6062,9 @@ type Function struct { LastInvokedAt *time.Time `json:"last_invoked_at,omitempty"` Name string `json:"name"` + // OpenapiSpec Optional OpenAPI 3.0 or 3.1 document describing an HTTP-mode function. + OpenapiSpec *map[string]interface{} `json:"openapi_spec"` + // PendingDeploymentId Newest queued deployment that will run after the current operation PendingDeploymentId *openapi_types.UUID `json:"pending_deployment_id,omitempty"` ProjectId openapi_types.UUID `json:"project_id"` @@ -5420,6 +6121,14 @@ type FunctionDeploymentOperation string // FunctionDeploymentStatus defines model for FunctionDeployment.Status. type FunctionDeploymentStatus string +// FunctionHTTPAuthMode Authentication applied by the HTTP ingress. `none` is valid only for public +// HTTP-mode functions and is intended for externally signed webhooks. +type FunctionHTTPAuthMode string + +// FunctionInvocationMode Invocation contract. `rpc` preserves the existing POST `{payload: ...}` contract; +// `http` forwards HTTP request semantics to the function runtime. +type FunctionInvocationMode string + // FunctionInvocationRequest defines model for FunctionInvocationRequest. type FunctionInvocationRequest struct { // Payload Payload to send to the function. @@ -5591,8 +6300,11 @@ type GitRepository struct { FullName string `json:"full_name"` // Id Stable GitHub repository id (repository.id), unchanged by renames. - Id int64 `json:"id"` - Private bool `json:"private"` + Id int64 `json:"id"` + + // IsEmpty Whether the repository has no commits and can receive an initial source export. + IsEmpty bool `json:"is_empty"` + Private bool `json:"private"` } // HostedAuthPageType defines model for HostedAuthPageType. @@ -5664,7 +6376,7 @@ type ImportSourcesResponse struct { // LiveLogLevel Canonical lowercase function runtime log level. type LiveLogLevel string -// LogActivityBucket Log-event counts for one activity time bucket. +// LogActivityBucket Log-event counts for one activity time bucket. The first and last buckets can extend past the requested window; they count only events inside it. type LogActivityBucket struct { // Counts Counts grouped by activity dimension. Counts struct { @@ -5678,10 +6390,10 @@ type LogActivityBucket struct { ResourceIds map[string]int `json:"resource_ids"` } `json:"counts"` - // EndTime Bucket end time. + // EndTime Bucket end time, exclusive. EndTime time.Time `json:"end_time"` - // StartTime Bucket start time. + // StartTime Bucket start time, inclusive. StartTime time.Time `json:"start_time"` // Total Total events in this bucket. @@ -5690,10 +6402,10 @@ type LogActivityBucket struct { // LogActivityRequest Activity request for bucketed log counts. type LogActivityRequest struct { - // BucketCount Number of activity buckets to return. + // BucketCount Maximum number of buckets. Defaults to 24. Volcano picks the smallest bucket width from 1s, 2s, 5s, 10s, 15s, 30s, 1m, 2m, 5m, 10m, 15m, 30m, 1h, 2h, 3h, 6h, 12h, 1d, or a whole number of days that covers the window in at most this many buckets. Bucket edges fall on UTC multiples of the width, so they stay fixed as the window moves, and the response can contain fewer buckets. `1` returns one bucket that spans exactly the window. BucketCount *int `json:"bucket_count,omitempty"` - // EndTime End time. + // EndTime End of the window, exclusive. Defaults to now. EndTime *time.Time `json:"end_time,omitempty"` // Q Optional activity query. Supports quoted text, implicit AND, AND/OR/NOT, parentheses, and fields such as `level`, `region`, `invocation.id`, `resource.id`, `resource.name`, `function`, `frontend`, `database`, and `body`. @@ -5702,7 +6414,7 @@ type LogActivityRequest struct { // Resource Resource selectors for project log reads. Resource LogRequestResource `json:"resource"` - // StartTime Start time. + // StartTime Start of the window, inclusive. Defaults to 24 hours before `end_time`. StartTime *time.Time `json:"start_time,omitempty"` } @@ -5914,13 +6626,13 @@ type LogSearchResponse struct { // Data Array of log events sorted by timestamp, newest first. Data []LogSearchEvent `json:"data"` - // HasMore Whether there are more log events available. + // HasMore Whether the search may have more matching log events. A page can hold fewer than `limit` events, or none, while this is true; keep paging until it is false. HasMore bool `json:"has_more"` // Limit Number of items requested per page. Limit int `json:"limit"` - // NextCursor Opaque cursor for the next page. Send this value as `cursor` on the next request. + // NextCursor Opaque cursor for the next page, present while `has_more` is true. Send this value as `cursor` on the next request, even when `data` is empty. NextCursor *string `json:"next_cursor,omitempty"` } @@ -5951,10 +6663,19 @@ type MetricUsageData struct { Hourly []UsageDataPoint `json:"hourly"` // Metric Metric name (for example, "Function & Frontend Invocations", "Frontend Requests", - // "CodeBuild Build Seconds", "Bandwidth Ingress (Bytes)", "Bandwidth Egress (Bytes)", + // "Durable Executions", "Durable Operations", "Durable Compute (MB-Seconds)", + // "CodeBuild Build Seconds", + // "Bandwidth Ingress (Bytes)", "Bandwidth Egress (Bytes)", // "Bandwidth Total (Bytes)", or "Database Storage (Bytes)"). Byte-based metrics are // reported in bytes. "Bandwidth Total (Bytes)" is derived (ingress + egress) and - // is not billed separately. "Database Storage (Bytes)" is a current observed gauge, + // is not billed separately. The three durable metrics are + // counted separately from "Function & Frontend Invocations", which covers standard + // invocations only. Operations and compute are counted when an execution finishes, + // so they appear in the window the execution completed in rather than the one it + // started in. "Durable Compute (MB-Seconds)" reports the memory the execution ran + // at times the time it spent running, in megabyte-seconds; the allowance for it is + // published in gigabyte-seconds, which is 1024 of these. + // "Database Storage (Bytes)" is a current observed gauge, // not a cumulative counter. It is the sum of the latest samples exposed as // `storage_bytes` by the project's database list, so it includes what each // database's branches and backups hold, and it inherits that field's lag @@ -5989,6 +6710,10 @@ type OAuthErrorResponse struct { ErrorDescription *string `json:"error_description,omitempty"` } +// OpenAPISpecDocument This OpenAPI document, with every reference resolved. Shared by the JSON +// and YAML operations, which differ only in serialization. +type OpenAPISpecDocument map[string]interface{} + // PaginatedAuthUsers defines model for PaginatedAuthUsers. type PaginatedAuthUsers struct { Data []AuthUser `json:"data"` @@ -6337,15 +7062,34 @@ type PlatformExchangeResponse struct { UserId string `json:"user_id"` } +// PreviewAuthPageRequest defines model for PreviewAuthPageRequest. +type PreviewAuthPageRequest struct { + Action *string `json:"action,omitempty"` + Layout AuthPageLayout `json:"layout"` + Theme AuthPageTheme `json:"theme"` +} + +// PreviewAuthPageResponse defines model for PreviewAuthPageResponse. +type PreviewAuthPageResponse struct { + ExpiresAt time.Time `json:"expires_at"` + PreviewUrl string `json:"preview_url"` +} + // Project defines model for Project. type Project struct { // AllRegions Region policy for function deployment. // - `true`: deploy functions to all configured platform regions // - `false`: deploy only to `selected_regions` - AllRegions bool `json:"all_regions"` - AwsApplicationName *string `json:"aws_application_name,omitempty"` - CreatedAt time.Time `json:"created_at"` - Id openapi_types.UUID `json:"id"` + AllRegions bool `json:"all_regions"` + AwsApplicationName *string `json:"aws_application_name,omitempty"` + CreatedAt time.Time `json:"created_at"` + + // GitConnection Present for connected projects when `git_connection` is requested through the list endpoint's `include` parameter. + GitConnection *ProjectGitConnectionSummary `json:"git_connection,omitempty"` + + // Health Present when `health` is requested through the list endpoint's `include` parameter. + Health *ProjectHealthSummary `json:"health,omitempty"` + Id openapi_types.UUID `json:"id"` // LastInvokedAt Most recent activity timestamp across project resources LastInvokedAt *time.Time `json:"last_invoked_at,omitempty"` @@ -6407,10 +7151,12 @@ type ProjectAccessToken struct { // available even though they are POST requests that carry body filters. // // `read_only` also refuses the reads that return a credential — service - // keys, variable values, and database connection strings. A service key - // grants read and write over the project's data and keeps working after - // the token that fetched it is revoked, so returning one to a read-only - // credential would make the scope a formality. + // keys, anon keys, variable values, and database connection strings. Those + // grant write access over the project's data and keep working after the + // token that fetched them is revoked, so returning one to a read-only + // credential would make the scope a formality. An anon key is included + // because its permissions are chosen per key and may include uploading, + // deleting, and publishing. Scope ProjectAccessTokenScope `json:"scope"` // Status `revoked` means the token was deliberately revoked, by you or by the @@ -6456,10 +7202,12 @@ type ProjectAccessTokenTokenSource string // available even though they are POST requests that carry body filters. // // `read_only` also refuses the reads that return a credential — service -// keys, variable values, and database connection strings. A service key -// grants read and write over the project's data and keeps working after -// the token that fetched it is revoked, so returning one to a read-only -// credential would make the scope a formality. +// keys, anon keys, variable values, and database connection strings. Those +// grant write access over the project's data and keep working after the +// token that fetched them is revoked, so returning one to a read-only +// credential would make the scope a formality. An anon key is included +// because its permissions are chosen per key and may include uploading, +// deleting, and publishing. type ProjectAccessTokenScope string // ProjectAccessTokenUsage Zero-filled daily request counts for a single token, oldest first. Every @@ -6474,10 +7222,16 @@ type ProjectAccessTokenUsage struct { Daily []ProjectAccessTokenUsageDailyEntry `json:"daily"` // Days Number of daily entries returned, always equal to the requested window. - Days int `json:"days"` - Name string `json:"name"` - TokenId openapi_types.UUID `json:"token_id"` - TotalRequests int64 `json:"total_requests"` + Days int `json:"days"` + Name string `json:"name"` + TokenId openapi_types.UUID `json:"token_id"` + + // TokenPrefix The token's display prefix, which identifies the credential when its + // name does not. Revoking frees a name, so a project that rotated + // `ci-deploy` has two entries here both called `ci-deploy`. Not usable + // as a credential. + TokenPrefix string `json:"token_prefix"` + TotalRequests int64 `json:"total_requests"` } // ProjectAccessTokenUsageDailyEntry defines model for ProjectAccessTokenUsageDailyEntry. @@ -6493,10 +7247,7 @@ type ProjectAccessTokenUsageDailyEntry struct { // values (patch semantics). Declared collection keys are fully synced to // the manifest: `variables`, `buckets[].policies`, `auth.providers.oauth`, // `auth.email.templates`, and `functions[].schedulers` are reconciled to -// exactly match, deleting resources absent from the manifest. -// `shared_variables` is fully synced the same way, but membership only: -// names absent from a declared list stop being shared and remain as -// non-shared variables, with their values untouched. Functions, +// exactly match, deleting resources absent from the manifest. Functions, // frontends, databases, and buckets are never created or deleted through // this manifest; entries referencing resources that do not exist are // skipped and reported. @@ -6505,8 +7256,11 @@ type ProjectConfig struct { Auth *ProjectConfigAuth `json:"auth,omitempty"` Buckets *[]ProjectConfigBucket `json:"buckets,omitempty"` Databases *[]ProjectConfigDatabase `json:"databases,omitempty"` - Frontends *[]ProjectConfigFrontend `json:"frontends,omitempty"` - Functions *[]ProjectConfigFunction `json:"functions,omitempty"` + + // FrontendSharedVariables Replace the complete shared frontend-variable list with existing names. Frontends with variable_scope shared receive this list. Omission keeps membership unchanged; an empty list clears it. + FrontendSharedVariables *[]string `json:"frontend_shared_variables,omitempty"` + Frontends *[]ProjectConfigFrontend `json:"frontends,omitempty"` + Functions *[]ProjectConfigFunction `json:"functions,omitempty"` // Project Project-level settings. `name` renames the project. Project *ProjectConfigProject `json:"project,omitempty"` @@ -6647,6 +7401,8 @@ type ProjectConfigAuthEmailVerification struct { // ProjectConfigAuthManagedPages defines model for ProjectConfigAuthManagedPages. type ProjectConfigAuthManagedPages struct { + Appearance *ProjectConfigAuthPageAppearance `json:"appearance,omitempty"` + // Enabled Enable or disable managed auth hosted pages Enabled *bool `json:"enabled,omitempty"` @@ -6656,6 +7412,22 @@ type ProjectConfigAuthManagedPages struct { Redirects *ProjectConfigAuthRedirects `json:"redirects,omitempty"` } +// ProjectConfigAuthPageAppearance defines model for ProjectConfigAuthPageAppearance. +type ProjectConfigAuthPageAppearance struct { + Layouts *ProjectConfigAuthPageLayouts `json:"layouts,omitempty"` + Theme *AuthPageTheme `json:"theme,omitempty"` +} + +// ProjectConfigAuthPageLayouts defines model for ProjectConfigAuthPageLayouts. +type ProjectConfigAuthPageLayouts struct { + Device *AuthPageLayout `json:"device,omitempty"` + ForgotPassword *AuthPageLayout `json:"forgot_password,omitempty"` + Login *AuthPageLayout `json:"login,omitempty"` + ResetPassword *AuthPageLayout `json:"reset_password,omitempty"` + Signup *AuthPageLayout `json:"signup,omitempty"` + VerifyEmail *AuthPageLayout `json:"verify_email,omitempty"` +} + // ProjectConfigAuthPassword defines model for ProjectConfigAuthPassword. type ProjectConfigAuthPassword struct { MinLength *int `json:"min_length,omitempty"` @@ -6844,18 +7616,29 @@ type ProjectConfigFrontend struct { // downtime); omitting `tls` keeps the stored certificate. TLS material is // write-only and omitted from config export. CustomDomain *ProjectConfigCustomDomain `json:"custom_domain,omitempty"` - Name string `json:"name"` - // VariableScope All preserves access to all project variables. Scoped includes only explicitly declared variables in builds and runtime. Omission preserves the stored selection. + // FunctionRoutes Complete set of same-origin Function path mappings when declared. Omission preserves existing mappings; an empty list deletes all mappings. + FunctionRoutes *[]ProjectConfigFrontendFunctionRoute `json:"function_routes,omitempty"` + Name string `json:"name"` + + // VariableScope All preserves access to all project variables. Shared includes the project frontend_shared_variables list. Scoped includes only explicitly declared variables in builds and runtime. Omission preserves the stored selection. VariableScope *ProjectConfigFrontendVariableScope `json:"variable_scope,omitempty"` // Variables Names selected when variable_scope is scoped. Missing declared values reject deployment. Omission preserves the stored list; an empty list clears it. Variables *[]string `json:"variables,omitempty"` } -// ProjectConfigFrontendVariableScope All preserves access to all project variables. Scoped includes only explicitly declared variables in builds and runtime. Omission preserves the stored selection. +// ProjectConfigFrontendVariableScope All preserves access to all project variables. Shared includes the project frontend_shared_variables list. Scoped includes only explicitly declared variables in builds and runtime. Omission preserves the stored selection. type ProjectConfigFrontendVariableScope string +// ProjectConfigFrontendFunctionRoute defines model for ProjectConfigFrontendFunctionRoute. +type ProjectConfigFrontendFunctionRoute struct { + // Function Name of an existing standard Function configured for HTTP invocation. + Function string `json:"function"` + PathPrefix string `json:"path_prefix"` + StripPrefix *bool `json:"strip_prefix,omitempty"` +} + // ProjectConfigFunction Configuration for an existing (deployed) function. Functions are never // created or deleted through the manifest. When `schedulers` is declared // it is fully synced (schedulers absent from the list are deleted); @@ -6863,14 +7646,31 @@ type ProjectConfigFrontendVariableScope string // same applies to `variables`: declaring it replaces the function's // declared variable names, and omitting it leaves them untouched. type ProjectConfigFunction struct { - Name string `json:"name"` + // HttpAuthMode Authentication applied by the HTTP ingress. `none` is valid only for public + // HTTP-mode functions and is intended for externally signed webhooks. + HttpAuthMode *FunctionHTTPAuthMode `json:"http_auth_mode,omitempty"` + + // InvocationMode Invocation contract. `rpc` preserves the existing POST `{payload: ...}` contract; + // `http` forwards HTTP request semantics to the function runtime. + InvocationMode *FunctionInvocationMode `json:"invocation_mode,omitempty"` + + // Kind Which kind of function this is. `standard` runs once per invocation. + // `durable` checkpoints its progress and resumes from the last completed + // step, and is invoked asynchronously through its own executions + // collection. A function's kind is fixed when it is created and cannot be + // changed afterwards. Omitting this field means `standard`. + Kind *FunctionKind `json:"kind,omitempty"` + Name string `json:"name"` + + // OpenapiSpec OpenAPI 3.0 or 3.1 metadata for an HTTP-mode function + OpenapiSpec nullable.Nullable[map[string]interface{}] `json:"openapi_spec,omitempty"` // Public Function visibility for anon-key invocation Public *bool `json:"public,omitempty"` Schedulers *[]ProjectConfigScheduler `json:"schedulers,omitempty"` // VariableScope Which project variables this function receives. `all` (the default) - // gives it every project variable. `scoped` gives it only the variables + // gives it the project variables marked `shared: true`. `scoped` gives it only the variables // it selects: every name declared in `variables`, plus the names // Volcano detects in its source that the project defines. VariableScope *ProjectConfigFunctionVariableScope `json:"variable_scope,omitempty"` @@ -6885,7 +7685,7 @@ type ProjectConfigFunction struct { } // ProjectConfigFunctionVariableScope Which project variables this function receives. `all` (the default) -// gives it every project variable. `scoped` gives it only the variables +// gives it the project variables marked `shared: true`. `scoped` gives it only the variables // it selects: every name declared in `variables`, plus the names // Volcano detects in its source that the project defines. type ProjectConfigFunctionVariableScope string @@ -6902,8 +7702,12 @@ type ProjectConfigHostedPage struct { // ProjectConfigHostedPages Hosted auth pages keyed by page type (PRO plan). Upsert-only: omitted // pages are left untouched (there is no delete for hosted pages). type ProjectConfigHostedPages struct { - Login *ProjectConfigHostedPage `json:"login,omitempty"` - ResetPassword *ProjectConfigHostedPage `json:"reset_password,omitempty"` + Device *ProjectConfigHostedPage `json:"device,omitempty"` + ForgotPassword *ProjectConfigHostedPage `json:"forgot_password,omitempty"` + Login *ProjectConfigHostedPage `json:"login,omitempty"` + ResetPassword *ProjectConfigHostedPage `json:"reset_password,omitempty"` + Signup *ProjectConfigHostedPage `json:"signup,omitempty"` + VerifyEmail *ProjectConfigHostedPage `json:"verify_email,omitempty"` } // ProjectConfigMissingResource defines model for ProjectConfigMissingResource. @@ -6990,8 +7794,12 @@ type ProjectConfigValidationErrorResponse struct { // ProjectConfigVariable defines model for ProjectConfigVariable. type ProjectConfigVariable struct { - Name string `json:"name"` - Value string `json:"value"` + // Name Project variable name. Function runtime names such as AWS_REGION are reserved and fail validation; see the environment variables guide for the full list. + Name string `json:"name"` + + // Shared Include this name in the project's shared function variables. Omission preserves existing membership; new variables default to true for legacy clients. Send false explicitly to create a non-shared variable. + Shared *bool `json:"shared,omitempty"` + Value string `json:"value"` } // ProjectDeployment A Function or Frontend deployment attempt in a project-scoped feed. @@ -7027,7 +7835,13 @@ type ProjectDeploymentStatus string // ProjectDeploymentResource The resource this deployment belongs to. type ProjectDeploymentResource struct { - Id openapi_types.UUID `json:"id"` + Id openapi_types.UUID `json:"id"` + + // Kind Which kind of function this deployment belongs to. Both kinds appear + // in this feed under `type: function`, because a deployment means the + // same thing for either, so this is what tells them apart. Absent when + // `type` is `frontend`. + Kind *FunctionKind `json:"kind,omitempty"` Name string `json:"name"` Type ProjectDeploymentResourceType `json:"type"` } @@ -7098,6 +7912,16 @@ type ProjectGitConnection struct { UpdatedAt time.Time `json:"updated_at"` } +// ProjectGitConnectionSummary defines model for ProjectGitConnectionSummary. +type ProjectGitConnectionSummary struct { + ProductionBranch string `json:"production_branch"` + RepoFullName string `json:"repo_full_name"` + RepoId int64 `json:"repo_id"` + RepoInstallationId int64 `json:"repo_installation_id"` + RootDirectory string `json:"root_directory"` + UpdatedAt time.Time `json:"updated_at"` +} + // ProjectGitDeploySettings A project's GitHub auto-deploy settings: what a push to the connected repo's production branch deploys. All settings are default-off. type ProjectGitDeploySettings struct { // AutoDeployEnabled Whether a production-branch push triggers a deployment. @@ -7140,7 +7964,12 @@ type ProjectHealthEvidence struct { // ProjectHealthResource defines model for ProjectHealthResource. type ProjectHealthResource struct { - Id openapi_types.UUID `json:"id"` + Id openapi_types.UUID `json:"id"` + + // Kind Which kind of function this check is about. Present only when `type` + // is `function`, where both kinds share the name space and this is + // what tells them apart. + Kind *FunctionKind `json:"kind,omitempty"` Name string `json:"name"` Type ProjectHealthResourceType `json:"type"` } @@ -7169,6 +7998,11 @@ type ProjectHealthScope struct { // ProjectHealthStatus defines model for ProjectHealthStatus. type ProjectHealthStatus string +// ProjectHealthSummary defines model for ProjectHealthSummary. +type ProjectHealthSummary struct { + Status ProjectHealthStatus `json:"status"` +} + // ProjectImportAction defines model for ProjectImportAction. type ProjectImportAction struct { Code ProjectImportActionCode `json:"code"` @@ -7404,6 +8238,55 @@ type ProjectMetricsWindow struct { To time.Time `json:"to"` } +// ProjectSourceExport The initial production-branch commit, and everything export could not carry. +type ProjectSourceExport struct { + // Branch The production branch that was created. + Branch string `json:"branch"` + CommitSha string `json:"commit_sha"` + FileCount int `json:"file_count"` + + // Omitted Things deliberately left out of the branch. + Omitted []ProjectSourceExportOmission `json:"omitted"` + RepoFullName string `json:"repo_full_name"` + + // Skipped Resources whose source could not be taken, with the reason. Most often a resource that has never deployed successfully. + Skipped []ProjectSourceExportSkip `json:"skipped"` +} + +// ProjectSourceExportOmission defines model for ProjectSourceExportOmission. +type ProjectSourceExportOmission struct { + // Kind What was left out: migrations Volcano stores no copy of, variable values, a credential-shaped file, installed dependencies, or an archive entry a repository cannot carry. + Kind string `json:"kind"` + Path string `json:"path"` + + // Resource The resource it came from, empty when project-wide. + Resource string `json:"resource"` +} + +// ProjectSourceExportSkip defines model for ProjectSourceExportSkip. +type ProjectSourceExportSkip struct { + // Kind The kind of resource, "function" or "frontend". Deliberately not an enum: the generated constants would collide with an existing resource-type enum and rename its members. + Kind string `json:"kind"` + Name string `json:"name"` + Reason string `json:"reason"` +} + +// ProjectSourceExportState The project's source of truth and any pending Git transition. +type ProjectSourceExportState struct { + // ExportedAt When the initial export push entered deployment, or when a transition was canceled after its commit was reserved. Once set, the one-time export is consumed. + ExportedAt *time.Time `json:"exported_at"` + + // HandedOverAt When a complete production-branch deployment first proved the repository could drive the project, null until then. Once set, the repository is the project's source of truth. + HandedOverAt *time.Time `json:"handed_over_at"` + Mode ProjectSourceExportStateMode `json:"mode"` + + // TransitionStartedAt When source export started, cleared if an incomplete transition is canceled. + TransitionStartedAt *time.Time `json:"transition_started_at"` +} + +// ProjectSourceExportStateMode defines model for ProjectSourceExportState.Mode. +type ProjectSourceExportStateMode string + // ProjectUsageResponse Aggregated usage metrics for a project. type ProjectUsageResponse struct { // Frontends Per-frontend request totals for the current usage month @@ -7419,6 +8302,20 @@ type ProjectUsageResponse struct { ProjectId openapi_types.UUID `json:"project_id"` } +// PublishSandboxPresetRequest defines model for PublishSandboxPresetRequest. +type PublishSandboxPresetRequest struct { + DeploymentId openapi_types.UUID `json:"deployment_id"` + Id openapi_types.UUID `json:"id"` + MemoryMb PublishSandboxPresetRequestMemoryMb `json:"memory_mb"` + Preset PublishSandboxPresetRequestPreset `json:"preset"` +} + +// PublishSandboxPresetRequestMemoryMb defines model for PublishSandboxPresetRequest.MemoryMb. +type PublishSandboxPresetRequestMemoryMb int + +// PublishSandboxPresetRequestPreset defines model for PublishSandboxPresetRequest.Preset. +type PublishSandboxPresetRequestPreset string + // RealtimeConfig Realtime configuration for a project. // Note: Message size and channels per connection are plan-based (not configurable). type RealtimeConfig struct { @@ -7485,6 +8382,9 @@ type ResolveFunctionResponse struct { // FunctionId Canonical function ID used for invocation routing FunctionId openapi_types.UUID `json:"function_id"` + // InvokeUrl Canonical HTTPS endpoint for invoking this function. Use it as-is: it does not share a domain with the API, so a host derived from the API URL will not reach the function. Omitted when the deployment serves no public invocation domain, as in local development; invoke through POST /functions/{functionId}/invoke instead. + InvokeUrl *string `json:"invoke_url,omitempty"` + // Name DNS-safe function name Name string `json:"name"` } @@ -7499,6 +8399,189 @@ type ResourceReference struct { // ResourceReferenceType defines model for ResourceReference.Type. type ResourceReferenceType string +// SandboxAccess defines model for SandboxAccess. +type SandboxAccess struct { + ExpiresAt time.Time `json:"expires_at"` + Token string `json:"token"` + Url string `json:"url"` +} + +// SandboxAccessRequest defines model for SandboxAccessRequest. +type SandboxAccessRequest struct { + ExpiresInSeconds *int `json:"expires_in_seconds,omitempty"` + Port int `json:"port"` +} + +// SandboxCapacity defines model for SandboxCapacity. +type SandboxCapacity struct { + AllocatedMemoryMb int64 `json:"allocated_memory_mb"` + Region string `json:"region"` +} + +// SandboxCapacityList defines model for SandboxCapacityList. +type SandboxCapacityList struct { + Data []SandboxCapacity `json:"data"` +} + +// SandboxCommandRequest defines model for SandboxCommandRequest. +type SandboxCommandRequest struct { + Command string `json:"command"` + Environment *map[string]string `json:"environment,omitempty"` + TimeoutSeconds *int `json:"timeout_seconds,omitempty"` +} + +// SandboxCommandResult defines model for SandboxCommandResult. +type SandboxCommandResult struct { + ExitCode int `json:"exit_code"` + Stderr string `json:"stderr"` + StderrTruncated bool `json:"stderr_truncated"` + Stdout string `json:"stdout"` + StdoutTruncated bool `json:"stdout_truncated"` + TimedOut bool `json:"timed_out"` +} + +// SandboxDeployment defines model for SandboxDeployment. +type SandboxDeployment struct { + CreatedAt time.Time `json:"created_at"` + Id openapi_types.UUID `json:"id"` + Status string `json:"status"` + UpdatedAt time.Time `json:"updated_at"` +} + +// SandboxDeploymentPage defines model for SandboxDeploymentPage. +type SandboxDeploymentPage struct { + Data []SandboxDeployment `json:"data"` + Pagination SandboxPagination `json:"pagination"` +} + +// SandboxExecutionRequest defines model for SandboxExecutionRequest. +type SandboxExecutionRequest struct { + Command string `json:"command"` + Environment *map[string]string `json:"environment,omitempty"` + MemoryMb *SandboxExecutionRequestMemoryMb `json:"memory_mb,omitempty"` + Preset *SandboxExecutionRequestPreset `json:"preset,omitempty"` + Region string `json:"region"` + SandboxId *openapi_types.UUID `json:"sandbox_id,omitempty"` + TimeoutSeconds *int `json:"timeout_seconds,omitempty"` + union json.RawMessage +} + +// SandboxExecutionRequestMemoryMb defines model for SandboxExecutionRequest.MemoryMb. +type SandboxExecutionRequestMemoryMb int + +// SandboxExecutionRequestPreset defines model for SandboxExecutionRequest.Preset. +type SandboxExecutionRequestPreset string + +// SandboxExecutionRequest0 defines model for . +type SandboxExecutionRequest0 = interface{} + +// SandboxExecutionRequest1 defines model for . +type SandboxExecutionRequest1 = interface{} + +// SandboxExecutionResult defines model for SandboxExecutionResult. +type SandboxExecutionResult struct { + DurationMs int64 `json:"duration_ms"` + ExitCode int `json:"exit_code"` + Region string `json:"region"` + SessionId openapi_types.UUID `json:"session_id"` + Stderr string `json:"stderr"` + StderrTruncated bool `json:"stderr_truncated"` + Stdout string `json:"stdout"` + StdoutTruncated bool `json:"stdout_truncated"` + TimedOut bool `json:"timed_out"` +} + +// SandboxFileReadRequest defines model for SandboxFileReadRequest. +type SandboxFileReadRequest struct { + Path string `json:"path"` +} + +// SandboxFileResult defines model for SandboxFileResult. +type SandboxFileResult struct { + Data []byte `json:"data"` +} + +// SandboxFileWriteRequest defines model for SandboxFileWriteRequest. +type SandboxFileWriteRequest struct { + Data []byte `json:"data"` + Path string `json:"path"` +} + +// SandboxPagination defines model for SandboxPagination. +type SandboxPagination struct { + HasMore bool `json:"has_more"` + Limit int `json:"limit"` + NextCursor *string `json:"next_cursor,omitempty"` +} + +// SandboxPreset defines model for SandboxPreset. +type SandboxPreset struct { + Id string `json:"id"` + MemoryMb SandboxPresetMemoryMb `json:"memory_mb"` + Regions []string `json:"regions"` + Runtime string `json:"runtime"` + Version string `json:"version"` +} + +// SandboxPresetMemoryMb defines model for SandboxPreset.MemoryMb. +type SandboxPresetMemoryMb int + +// SandboxPresetList defines model for SandboxPresetList. +type SandboxPresetList struct { + Data []SandboxPreset `json:"data"` +} + +// SandboxSession defines model for SandboxSession. +type SandboxSession struct { + CreatedAt time.Time `json:"created_at"` + DesiredState SandboxSessionDesiredState `json:"desired_state"` + ExpiresAt time.Time `json:"expires_at"` + Id openapi_types.UUID `json:"id"` + MemoryMb int `json:"memory_mb"` + ProjectId openapi_types.UUID `json:"project_id"` + Region string `json:"region"` + SandboxId openapi_types.UUID `json:"sandbox_id"` + StartedAt *time.Time `json:"started_at,omitempty"` + State SandboxSessionState `json:"state"` +} + +// SandboxSessionDesiredState defines model for SandboxSession.DesiredState. +type SandboxSessionDesiredState string + +// SandboxSessionState defines model for SandboxSession.State. +type SandboxSessionState string + +// SandboxSessionPage defines model for SandboxSessionPage. +type SandboxSessionPage struct { + Data []SandboxSession `json:"data"` + Pagination SandboxPagination `json:"pagination"` +} + +// SandboxSubjectGrantRequest defines model for SandboxSubjectGrantRequest. +type SandboxSubjectGrantRequest struct { + ExpiresAt time.Time `json:"expires_at"` +} + +// SandboxTemplate defines model for SandboxTemplate. +type SandboxTemplate struct { + CreatedAt time.Time `json:"created_at"` + Id openapi_types.UUID `json:"id"` + MemoryMb *int `json:"memory_mb,omitempty"` + Name string `json:"name"` + Preset *string `json:"preset,omitempty"` + ProjectId openapi_types.UUID `json:"project_id"` + Status SandboxTemplateStatus `json:"status"` +} + +// SandboxTemplateStatus defines model for SandboxTemplate.Status. +type SandboxTemplateStatus string + +// SandboxTemplatePage defines model for SandboxTemplatePage. +type SandboxTemplatePage struct { + Data []SandboxTemplate `json:"data"` + Pagination SandboxPagination `json:"pagination"` +} + // ScheduleRequest defines model for ScheduleRequest. type ScheduleRequest struct { // CronExpression Standard 5-field cron expression evaluated in UTC. Seconds fields, descriptors, and Quartz syntax are not supported. @@ -7837,6 +8920,16 @@ type UpdateAuthHostedPageRequest struct { Html string `json:"html"` } +// UpdateAuthPageLayoutRequest defines model for UpdateAuthPageLayoutRequest. +type UpdateAuthPageLayoutRequest struct { + Layout AuthPageLayout `json:"layout"` +} + +// UpdateAuthPageThemeRequest defines model for UpdateAuthPageThemeRequest. +type UpdateAuthPageThemeRequest struct { + Theme AuthPageTheme `json:"theme"` +} + // UpdateDatabaseBranchRequest Replace the branch's lifetime and restart its countdown from now. type UpdateDatabaseBranchRequest struct { // TtlSeconds The new lifetime, between one hour and 30 days. @@ -7861,10 +8954,21 @@ type UpdateEmailTemplateRequest struct { // UpdateFunctionRequest defines model for UpdateFunctionRequest. type UpdateFunctionRequest struct { + // HttpAuthMode Authentication applied by the HTTP ingress. `none` is valid only for public + // HTTP-mode functions and is intended for externally signed webhooks. + HttpAuthMode *FunctionHTTPAuthMode `json:"http_auth_mode,omitempty"` + + // InvocationMode Invocation contract. `rpc` preserves the existing POST `{payload: ...}` contract; + // `http` forwards HTTP request semantics to the function runtime. + InvocationMode *FunctionInvocationMode `json:"invocation_mode,omitempty"` + // IsPublic Function visibility for anon-key invocation. // - `false` (default): private function // - `true`: public function (anon keys with `functions.invoke` can invoke) - IsPublic bool `json:"is_public"` + IsPublic *bool `json:"is_public,omitempty"` + + // OpenapiSpec OpenAPI 3.0 or 3.1 metadata for HTTP mode. Send null to clear it. + OpenapiSpec *map[string]interface{} `json:"openapi_spec,omitempty"` } // UpdateFunctionSchedulerRequest defines model for UpdateFunctionSchedulerRequest. @@ -7928,6 +9032,11 @@ type UpdateRealtimeConfigRequest struct { PresenceEnabled *bool `json:"presence_enabled,omitempty"` } +// UpdateSandboxTemplateRequest defines model for UpdateSandboxTemplateRequest. +type UpdateSandboxTemplateRequest struct { + Name string `json:"name"` +} + // UpdateStorageBucketRequest defines model for UpdateStorageBucketRequest. type UpdateStorageBucketRequest struct { AllowedMimeTypes *[]string `json:"allowed_mime_types,omitempty"` @@ -7936,7 +9045,9 @@ type UpdateStorageBucketRequest struct { // UpdateVariableRequest defines model for UpdateVariableRequest. type UpdateVariableRequest struct { - Value string `json:"value"` + // Shared Include this name in the project's shared function variables. Omission preserves existing membership; new variables default to true for legacy clients. Send false explicitly to create a non-shared variable. + Shared *bool `json:"shared,omitempty"` + Value string `json:"value"` } // UploadSessionPart Information about an uploaded part @@ -8011,13 +9122,19 @@ type Variable struct { // DeploySource What initiated the latest variable propagation sync, when one has run. DeploySource *VariableDeploySource `json:"deploy_source,omitempty"` - Id openapi_types.UUID `json:"id"` - Name string `json:"name"` - ProjectId openapi_types.UUID `json:"project_id"` + + // FrontendShared Whether this name is in the project's shared frontend-variable list. + FrontendShared *bool `json:"frontend_shared,omitempty"` + Id openapi_types.UUID `json:"id"` + Name string `json:"name"` + ProjectId openapi_types.UUID `json:"project_id"` // ProvisioningStartedAt Timestamp when the current variable propagation phase started. ProvisioningStartedAt *time.Time `json:"provisioning_started_at,omitempty"` + // Shared Include this name in the project's shared function variables. Omission preserves existing membership; new variables default to true for legacy clients. Send false explicitly to create a non-shared variable. + Shared *bool `json:"shared,omitempty"` + // Status Latest project variable propagation status, when a sync has run. Status *VariableStatus `json:"status,omitempty"` UpdatedAt time.Time `json:"updated_at"` @@ -8030,12 +9147,6 @@ type VariableDeploySource string // VariableStatus Latest project variable propagation status, when a sync has run. type VariableStatus string -// AccessTokenId defines model for AccessTokenId. -type AccessTokenId = openapi_types.UUID - -// AccessTokenUsageDays defines model for AccessTokenUsageDays. -type AccessTokenUsageDays = int - // BackupName defines model for BackupName. type BackupName = string @@ -8078,12 +9189,18 @@ type DurableFunctionId = string // EndingBefore defines model for EndingBefore. type EndingBefore = string +// FrontendFunctionRouteId defines model for FrontendFunctionRouteId. +type FrontendFunctionRouteId = openapi_types.UUID + // FrontendId defines model for FrontendId. type FrontendId = openapi_types.UUID // FunctionId defines model for FunctionId. type FunctionId = openapi_types.UUID +// IfNoneMatch defines model for IfNoneMatch. +type IfNoneMatch = string + // Limit defines model for Limit. type Limit = int @@ -8123,9 +9240,15 @@ type VariableName = string // BandwidthCapExceeded defines model for BandwidthCapExceeded. type BandwidthCapExceeded = Error +// DatabaseBranchQueryUnavailable defines model for DatabaseBranchQueryUnavailable. +type DatabaseBranchQueryUnavailable = Error + // DatabaseQueryCapExceeded defines model for DatabaseQueryCapExceeded. type DatabaseQueryCapExceeded = Error +// OpenAPISpecThrottled defines model for OpenAPISpecThrottled. +type OpenAPISpecThrottled = Error + // anonKeyContextKey is the context key for AnonKey security scheme type anonKeyContextKey string @@ -8244,6 +9367,9 @@ type CallOAuthProviderAPIParamsProvider string // CallOAuthProviderAPIJSONBodyMethod defines parameters for CallOAuthProviderAPI. type CallOAuthProviderAPIJSONBodyMethod string +// CallOAuthProviderAPI200JSONResponseBodyProvider defines parameters for CallOAuthProviderAPI. +type CallOAuthProviderAPI200JSONResponseBodyProvider string + // AuthOAuthCallbackParams defines parameters for AuthOAuthCallback. type AuthOAuthCallbackParams struct { Code string `form:"code" json:"code"` @@ -8483,6 +9609,20 @@ type ListDeploymentsParamsOperation string // ListDeploymentsParamsOrder defines parameters for ListDeployments. type ListDeploymentsParamsOrder string +// StartDurableExecutionFromApplicationJSONBody defines parameters for StartDurableExecutionFromApplication. +type StartDurableExecutionFromApplicationJSONBody = interface{} + +// StartDurableExecutionFromApplicationParams defines parameters for StartDurableExecutionFromApplication. +type StartDurableExecutionFromApplicationParams struct { + // XVolcanoExecutionName Idempotency key for this execution. Generated when omitted. A repeat + // under a name that already names a running execution returns that + // execution and is not charged again. + // + // Letters, digits, `-`, `_` and `.`, up to 255 characters. Anything + // else is rejected with `400`. + XVolcanoExecutionName *string `json:"X-Volcano-Execution-Name,omitempty"` +} + // GetDefaultEmailTemplateParamsType defines parameters for GetDefaultEmailTemplate. type GetDefaultEmailTemplateParamsType string @@ -8583,188 +9723,80 @@ type AcquireProjectLockParams struct { XVolcanoRequestId LockRequestId `json:"X-Volcano-Request-Id"` } -// ListProjectsParams defines parameters for ListProjects. -type ListProjectsParams struct { - // Page Page number (1-indexed) for offset pagination. Declares no schema - // default so the request validator does not inject one: handlers that omit - // `page` see it unset (nil) and default to 1 in code, while cursor-first - // endpoints (e.g. the project deployments feed) can detect its absence to - // stay in keyset/search mode. Supplying `page` selects offset pagination. - Page *Page `form:"page,omitempty" json:"page,omitempty"` - - // Limit Number of items per page (max 100) - Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` - - // Cursor Opaque keyset pagination cursor from a previous response's `next_cursor` - // — pages forward. Mutually exclusive with `page` and `ending_before`; - // combining them returns 400. When supplied, the request's `search` and - // `limit` must match the values bound to the cursor or the request returns 400. - Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"` - - // EndingBefore Opaque keyset pagination cursor from a previous response's `prev_cursor` - // — pages backward (the page immediately preceding this cursor). Mutually - // exclusive with `page` and `cursor`; combining them returns 400. `search` - // and `limit` must match the values bound to the cursor or the request - // returns 400. - EndingBefore *EndingBefore `form:"ending_before,omitempty" json:"ending_before,omitempty"` - - // Offset Bounded row offset past the keyset anchor named by `cursor` (forward) or - // `ending_before` (backward) — the hybrid jump. Seek to the anchor, then - // skip this many rows within. Used for numbered jump-to-page: from the - // current page, seek to its next/prev cursor and offset the remaining - // pages. Only honored on the cursor pagination path; ignored otherwise. - Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` +// CallMCPJSONBody defines parameters for CallMCP. +type CallMCPJSONBody struct { + // Id Request identifier, echoed verbatim. Omit it to send a + // notification, which is answered with `202` and no body. + Id *CallMCPJSONBody_Id `json:"id,omitempty"` + Jsonrpc CallMCPJSONBodyJsonrpc `json:"jsonrpc"` - // Search Case-insensitive substring match on the resource `name`. See the - // endpoint description for supported pagination modes. - Search *Search `form:"search,omitempty" json:"search,omitempty"` + // Method The MCP method to call. + Method string `json:"method"` + Params *map[string]interface{} `json:"params,omitempty"` } -// ListProjectAccessTokensParams defines parameters for ListProjectAccessTokens. -type ListProjectAccessTokensParams struct { - // Page Page number (1-indexed) for offset pagination. Declares no schema - // default so the request validator does not inject one: handlers that omit - // `page` see it unset (nil) and default to 1 in code, while cursor-first - // endpoints (e.g. the project deployments feed) can detect its absence to - // stay in keyset/search mode. Supplying `page` selects offset pagination. - Page *Page `form:"page,omitempty" json:"page,omitempty"` +// CallMCPJSONBodyId0 defines parameters for CallMCP. +type CallMCPJSONBodyId0 = string - // Limit Number of items per page (max 100) - Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` +// CallMCPJSONBodyId1 defines parameters for CallMCP. +type CallMCPJSONBodyId1 = int - // Search Case-insensitive substring match on the resource `name`. See the - // endpoint description for supported pagination modes. - Search *Search `form:"search,omitempty" json:"search,omitempty"` - - // IncludeRevoked Include tokens that can no longer authenticate — both revoked and - // expired ones. - IncludeRevoked *bool `form:"include_revoked,omitempty" json:"include_revoked,omitempty"` -} - -// ListProjectAccessTokensUsageParams defines parameters for ListProjectAccessTokensUsage. -type ListProjectAccessTokensUsageParams struct { - // Days Number of trailing days to return (1-60, default 30). - Days *int `form:"days,omitempty" json:"days,omitempty"` -} - -// GetProjectAccessTokenUsageParams defines parameters for GetProjectAccessTokenUsage. -type GetProjectAccessTokenUsageParams struct { - // Days Number of trailing days to return (1-60, default 30). - Days *int `form:"days,omitempty" json:"days,omitempty"` -} - -// ListAnonKeysParams defines parameters for ListAnonKeys. -type ListAnonKeysParams struct { - // Page Page number (1-indexed) for offset pagination. Declares no schema - // default so the request validator does not inject one: handlers that omit - // `page` see it unset (nil) and default to 1 in code, while cursor-first - // endpoints (e.g. the project deployments feed) can detect its absence to - // stay in keyset/search mode. Supplying `page` selects offset pagination. - Page *Page `form:"page,omitempty" json:"page,omitempty"` - - // Limit Number of items per page (max 100) - Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` - - // Cursor Opaque keyset pagination cursor from a previous response's `next_cursor` - // — pages forward. Mutually exclusive with `page` and `ending_before`; - // combining them returns 400. When supplied, the request's `search` and - // `limit` must match the values bound to the cursor or the request returns 400. - Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"` - - // EndingBefore Opaque keyset pagination cursor from a previous response's `prev_cursor` - // — pages backward (the page immediately preceding this cursor). Mutually - // exclusive with `page` and `cursor`; combining them returns 400. `search` - // and `limit` must match the values bound to the cursor or the request - // returns 400. - EndingBefore *EndingBefore `form:"ending_before,omitempty" json:"ending_before,omitempty"` - - // Offset Bounded row offset past the keyset anchor named by `cursor` (forward) or - // `ending_before` (backward) — the hybrid jump. Seek to the anchor, then - // skip this many rows within. Used for numbered jump-to-page: from the - // current page, seek to its next/prev cursor and offset the remaining - // pages. Only honored on the cursor pagination path; ignored otherwise. - Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` - - // Search Case-insensitive substring match on the resource `name`. See the - // endpoint description for supported pagination modes. - Search *Search `form:"search,omitempty" json:"search,omitempty"` -} - -// CreateAnonKeyJSONBody defines parameters for CreateAnonKey. -type CreateAnonKeyJSONBody struct { - // Name Key name for identification. - // Can only contain letters, numbers, underscores, and hyphens. - Name string `json:"name"` - - // Permissions Optional list of permissions for this key. - // If not provided, defaults to auth-only permissions: auth.signup, auth.signin, auth.refresh, auth.logout, auth.password_reset, auth.confirm_email, auth.resend_confirmation. - // Storage, realtime, and functions permissions must be explicitly added if needed. - Permissions *[]CreateAnonKeyJSONBodyPermissions `json:"permissions,omitempty"` +// CallMCPJSONBody_Id defines parameters for CallMCP. +type CallMCPJSONBody_Id struct { + union json.RawMessage } -// CreateAnonKeyJSONBodyPermissions defines parameters for CreateAnonKey. -type CreateAnonKeyJSONBodyPermissions string +// CallMCPJSONBodyJsonrpc defines parameters for CallMCP. +type CallMCPJSONBodyJsonrpc string -// RenderDefaultManagedAuthPageParams defines parameters for RenderDefaultManagedAuthPage. -type RenderDefaultManagedAuthPageParams struct { - // Action Optional deep-link action for the unified hosted page. Ignored when a - // custom login page is configured. `action=device` renders the device - // authorization approval UI inline (no redirect to any external app); - // it signs the user in and calls `POST /auth/device/verify`. - Action *RenderDefaultManagedAuthPageParamsAction `form:"action,omitempty" json:"action,omitempty"` +// CallMCP200JSONResponseBodyId0 defines parameters for CallMCP. +type CallMCP200JSONResponseBodyId0 = string - // UserCode Device user code (from `POST /auth/device/authorize`) used with `action=device`. - UserCode *string `form:"user_code,omitempty" json:"user_code,omitempty"` - - // AnonKey Project anon key used by built-in managed auth flows (required for login/signup/device actions). - AnonKey *string `form:"anon_key,omitempty" json:"anon_key,omitempty"` +// CallMCP200JSONResponseBodyId1 defines parameters for CallMCP. +type CallMCP200JSONResponseBodyId1 = int - // State Opaque one-time nonce generated by the client SDK before redirecting - // here. On successful login/signup it is echoed back in the post-auth - // redirect fragment as `state`, so the SDK can bind the returned session - // to the flow it initiated (login-CSRF / session-fixation defense). The - // SDK rejects a returned session whose `state` does not match. - State *string `form:"state,omitempty" json:"state,omitempty"` +// CallMCP200JSONResponseBody_Id defines parameters for CallMCP. +type CallMCP200JSONResponseBody_Id struct { + union json.RawMessage } -// RenderDefaultManagedAuthPageParamsAction defines parameters for RenderDefaultManagedAuthPage. -type RenderDefaultManagedAuthPageParamsAction string +// CallMCP200JSONResponseBodyJsonrpc defines parameters for CallMCP. +type CallMCP200JSONResponseBodyJsonrpc string -// HostedLoginCheckEmailParams defines parameters for HostedLoginCheckEmail. -type HostedLoginCheckEmailParams struct { - // Authorization Bearer anon key (`Bearer `) - Authorization string `json:"Authorization"` +// GetOpenAPISpecJSONParams defines parameters for GetOpenAPISpecJSON. +type GetOpenAPISpecJSONParams struct { + // IfNoneMatch Entity tag from an earlier response, returning `304 Not Modified` while it + // still matches. Accepts the full condition: `*`, a comma-separated list, and + // weak tags of the form `W/"tag"`. + IfNoneMatch *IfNoneMatch `json:"If-None-Match,omitempty"` } -// GetHostedLoginOptionsParams defines parameters for GetHostedLoginOptions. -type GetHostedLoginOptionsParams struct { - AnonKey string `form:"anon_key" json:"anon_key"` +// HeadOpenAPISpecJSONParams defines parameters for HeadOpenAPISpecJSON. +type HeadOpenAPISpecJSONParams struct { + // IfNoneMatch Entity tag from an earlier response, returning `304 Not Modified` while it + // still matches. Accepts the full condition: `*`, a comma-separated list, and + // weak tags of the form `W/"tag"`. + IfNoneMatch *IfNoneMatch `json:"If-None-Match,omitempty"` } -// GetAuthInsightsParams defines parameters for GetAuthInsights. -type GetAuthInsightsParams struct { - // From Inclusive UTC start date. Defaults to 29 days before `to`. - From *openapi_types.Date `form:"from,omitempty" json:"from,omitempty"` - - // To Inclusive UTC end date. Defaults to today. - To *openapi_types.Date `form:"to,omitempty" json:"to,omitempty"` - - // Interval Chart bucket size. Defaults to `day`. - Interval *AuthInsightsInterval `form:"interval,omitempty" json:"interval,omitempty"` +// GetOpenAPISpecYAMLParams defines parameters for GetOpenAPISpecYAML. +type GetOpenAPISpecYAMLParams struct { + // IfNoneMatch Entity tag from an earlier response, returning `304 Not Modified` while it + // still matches. Accepts the full condition: `*`, a comma-separated list, and + // weak tags of the form `W/"tag"`. + IfNoneMatch *IfNoneMatch `json:"If-None-Match,omitempty"` } -// ConfigureAuthMethodsJSONBody defines parameters for ConfigureAuthMethods. -type ConfigureAuthMethodsJSONBody struct { - EnableAnonymous *bool `json:"enable_anonymous,omitempty"` - EnableEmailPassword *bool `json:"enable_email_password,omitempty"` - OauthProviders *[]struct { - Enabled *bool `json:"enabled,omitempty"` - Provider *string `json:"provider,omitempty"` - } `json:"oauth_providers,omitempty"` +// HeadOpenAPISpecYAMLParams defines parameters for HeadOpenAPISpecYAML. +type HeadOpenAPISpecYAMLParams struct { + // IfNoneMatch Entity tag from an earlier response, returning `304 Not Modified` while it + // still matches. Accepts the full condition: `*`, a comma-separated list, and + // weak tags of the form `W/"tag"`. + IfNoneMatch *IfNoneMatch `json:"If-None-Match,omitempty"` } -// ListAuthUsersParams defines parameters for ListAuthUsers. -type ListAuthUsersParams struct { +// ListProjectsParams defines parameters for ListProjects. +type ListProjectsParams struct { // Page Page number (1-indexed) for offset pagination. Declares no schema // default so the request validator does not inject one: handlers that omit // `page` see it unset (nil) and default to 1 in code, while cursor-first @@ -8799,75 +9831,15 @@ type ListAuthUsersParams struct { // endpoint description for supported pagination modes. Search *Search `form:"search,omitempty" json:"search,omitempty"` - // Status Filter by effective status. `banned` returns only currently-banned users; an expired temporary ban lists as `active`. - Status *ListAuthUsersParamsStatus `form:"status,omitempty" json:"status,omitempty"` -} - -// ListAuthUsersParamsStatus defines parameters for ListAuthUsers. -type ListAuthUsersParamsStatus string - -// BanAuthUserJSONBody defines parameters for BanAuthUser. -type BanAuthUserJSONBody struct { - // BannedUntil When the ban expires (omit for permanent ban) - BannedUntil *time.Time `json:"banned_until,omitempty"` + // Include Optional comma-separated project metadata expansions. + Include *[]ListProjectsParamsInclude `form:"include,omitempty" json:"include,omitempty"` } -// ListUserSessionsParams defines parameters for ListUserSessions. -type ListUserSessionsParams struct { - // Page Page number (1-indexed) - Page *int `form:"page,omitempty" json:"page,omitempty"` - - // Limit Number of sessions per page (max 100) - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Sort Sort key. `last_activity` (default) orders by most recent activity and - // supports offset pagination only. `created_at` orders by session start - // and supports both offset and cursor pagination. - Sort *ListUserSessionsParamsSort `form:"sort,omitempty" json:"sort,omitempty"` +// ListProjectsParamsInclude defines parameters for ListProjects. +type ListProjectsParamsInclude string - // Status Filter by whether the session can still be refreshed. Omit for every - // stored session, including expired ones. `expired` is not supported - // with cursor pagination. - Status *ListUserSessionsParamsStatus `form:"status,omitempty" json:"status,omitempty"` - - // Cursor Opaque keyset cursor from a previous response's `next_cursor`. Requires - // `sort=created_at`; mutually exclusive with `page` and `ending_before`. - Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"` - - // EndingBefore Opaque keyset cursor from a previous response's `prev_cursor`, paging - // backward. Requires `sort=created_at`; mutually exclusive with `page` - // and `cursor`. - EndingBefore *string `form:"ending_before,omitempty" json:"ending_before,omitempty"` - - // Offset Bounded number of rows to skip past the cursor anchor (the hybrid - // jump, maximum 100000). Ignored unless `cursor` or `ending_before` is - // supplied. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// ListUserSessionsParamsSort defines parameters for ListUserSessions. -type ListUserSessionsParamsSort string - -// ListUserSessionsParamsStatus defines parameters for ListUserSessions. -type ListUserSessionsParamsStatus string - -// GetProjectConfigParams defines parameters for GetProjectConfig. -type GetProjectConfigParams struct { - // Format Response format override. Takes precedence over the Accept header. - Format *GetProjectConfigParamsFormat `form:"format,omitempty" json:"format,omitempty"` -} - -// GetProjectConfigParamsFormat defines parameters for GetProjectConfig. -type GetProjectConfigParamsFormat string - -// ApplyProjectConfigParams defines parameters for ApplyProjectConfig. -type ApplyProjectConfigParams struct { - // DryRun Validate and report projected actions without applying changes. - DryRun *bool `form:"dry_run,omitempty" json:"dry_run,omitempty"` -} - -// ListDatabasesParams defines parameters for ListDatabases. -type ListDatabasesParams struct { +// ListProjectAccessTokensParams defines parameters for ListProjectAccessTokens. +type ListProjectAccessTokensParams struct { // Page Page number (1-indexed) for offset pagination. Declares no schema // default so the request validator does not inject one: handlers that omit // `page` see it unset (nil) and default to 1 in code, while cursor-first @@ -8878,54 +9850,312 @@ type ListDatabasesParams struct { // Limit Number of items per page (max 100) Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` - // Cursor Opaque keyset pagination cursor from a previous response's `next_cursor` - // — pages forward. Mutually exclusive with `page` and `ending_before`; - // combining them returns 400. When supplied, the request's `search` and - // `limit` must match the values bound to the cursor or the request returns 400. - Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"` - - // EndingBefore Opaque keyset pagination cursor from a previous response's `prev_cursor` - // — pages backward (the page immediately preceding this cursor). Mutually - // exclusive with `page` and `cursor`; combining them returns 400. `search` - // and `limit` must match the values bound to the cursor or the request - // returns 400. - EndingBefore *EndingBefore `form:"ending_before,omitempty" json:"ending_before,omitempty"` - - // Offset Bounded row offset past the keyset anchor named by `cursor` (forward) or - // `ending_before` (backward) — the hybrid jump. Seek to the anchor, then - // skip this many rows within. Used for numbered jump-to-page: from the - // current page, seek to its next/prev cursor and offset the remaining - // pages. Only honored on the cursor pagination path; ignored otherwise. - Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` - // Search Case-insensitive substring match on the resource `name`. See the // endpoint description for supported pagination modes. Search *Search `form:"search,omitempty" json:"search,omitempty"` -} -// GetProjectDatabaseQueriesParams defines parameters for GetProjectDatabaseQueries. -type GetProjectDatabaseQueriesParams struct { - // Limit Maximum number of queries to return. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` + // IncludeRevoked Include tokens that can no longer authenticate — both revoked and + // expired ones. + IncludeRevoked *bool `form:"include_revoked,omitempty" json:"include_revoked,omitempty"` } -// GetDatabaseStatsParams defines parameters for GetDatabaseStats. -type GetDatabaseStatsParams struct { - // From Start time in RFC3339 format (e.g., "2024-01-01T00:00:00Z"). Defaults to 24 hours ago. - From *time.Time `form:"from,omitempty" json:"from,omitempty"` - - // To End time in RFC3339 format (e.g., "2024-01-02T00:00:00Z"). Defaults to now. - To *time.Time `form:"to,omitempty" json:"to,omitempty"` - - // Granularity Level of detail for metrics aggregation - Granularity *GetDatabaseStatsParamsGranularity `form:"granularity,omitempty" json:"granularity,omitempty"` +// ListProjectAccessTokensUsageParams defines parameters for ListProjectAccessTokensUsage. +type ListProjectAccessTokensUsageParams struct { + // Days Number of trailing days to return (1-60, default 30). + Days *int `form:"days,omitempty" json:"days,omitempty"` } -// GetDatabaseStatsParamsGranularity defines parameters for GetDatabaseStats. -type GetDatabaseStatsParamsGranularity string +// GetProjectAccessTokenUsageParams defines parameters for GetProjectAccessTokenUsage. +type GetProjectAccessTokenUsageParams struct { + // Days Number of trailing days to return (1-60, default 30). + Days *int `form:"days,omitempty" json:"days,omitempty"` +} -// ListProjectDeploymentsParams defines parameters for ListProjectDeployments. -type ListProjectDeploymentsParams struct { +// ListAnonKeysParams defines parameters for ListAnonKeys. +type ListAnonKeysParams struct { + // Page Page number (1-indexed) for offset pagination. Declares no schema + // default so the request validator does not inject one: handlers that omit + // `page` see it unset (nil) and default to 1 in code, while cursor-first + // endpoints (e.g. the project deployments feed) can detect its absence to + // stay in keyset/search mode. Supplying `page` selects offset pagination. + Page *Page `form:"page,omitempty" json:"page,omitempty"` + + // Limit Number of items per page (max 100) + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` + + // Cursor Opaque keyset pagination cursor from a previous response's `next_cursor` + // — pages forward. Mutually exclusive with `page` and `ending_before`; + // combining them returns 400. When supplied, the request's `search` and + // `limit` must match the values bound to the cursor or the request returns 400. + Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"` + + // EndingBefore Opaque keyset pagination cursor from a previous response's `prev_cursor` + // — pages backward (the page immediately preceding this cursor). Mutually + // exclusive with `page` and `cursor`; combining them returns 400. `search` + // and `limit` must match the values bound to the cursor or the request + // returns 400. + EndingBefore *EndingBefore `form:"ending_before,omitempty" json:"ending_before,omitempty"` + + // Offset Bounded row offset past the keyset anchor named by `cursor` (forward) or + // `ending_before` (backward) — the hybrid jump. Seek to the anchor, then + // skip this many rows within. Used for numbered jump-to-page: from the + // current page, seek to its next/prev cursor and offset the remaining + // pages. Only honored on the cursor pagination path; ignored otherwise. + Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` + + // Search Case-insensitive substring match on the resource `name`. See the + // endpoint description for supported pagination modes. + Search *Search `form:"search,omitempty" json:"search,omitempty"` +} + +// CreateAnonKeyJSONBody defines parameters for CreateAnonKey. +type CreateAnonKeyJSONBody struct { + // Name Key name for identification. + // Can only contain letters, numbers, underscores, and hyphens. + Name string `json:"name"` + + // Permissions Optional list of permissions for this key. + // If not provided, defaults to auth-only permissions: auth.signup, auth.signin, auth.refresh, auth.logout, auth.password_reset, auth.confirm_email, auth.resend_confirmation. + // Storage, realtime, and functions permissions must be explicitly added if needed. + Permissions *[]CreateAnonKeyJSONBodyPermissions `json:"permissions,omitempty"` +} + +// CreateAnonKeyJSONBodyPermissions defines parameters for CreateAnonKey. +type CreateAnonKeyJSONBodyPermissions string + +// RenderDefaultManagedAuthPageParams defines parameters for RenderDefaultManagedAuthPage. +type RenderDefaultManagedAuthPageParams struct { + // Action Optional deep-link action for the unified hosted page. Ignored when a + // custom login page is configured. `action=device` renders the device + // authorization approval UI inline (no redirect to any external app); + // it signs the user in and calls `POST /auth/device/verify`. + Action *RenderDefaultManagedAuthPageParamsAction `form:"action,omitempty" json:"action,omitempty"` + + // UserCode Device user code (from `POST /auth/device/authorize`) used with `action=device`. + UserCode *string `form:"user_code,omitempty" json:"user_code,omitempty"` + + // AnonKey Project anon key used by built-in managed auth flows (required for login/signup/device actions). + AnonKey *string `form:"anon_key,omitempty" json:"anon_key,omitempty"` + + // State Opaque one-time nonce generated by the client SDK before redirecting + // here. On successful login/signup it is echoed back in the post-auth + // redirect fragment as `state`, so the SDK can bind the returned session + // to the flow it initiated (login-CSRF / session-fixation defense). The + // SDK rejects a returned session whose `state` does not match. + State *string `form:"state,omitempty" json:"state,omitempty"` +} + +// RenderDefaultManagedAuthPageParamsAction defines parameters for RenderDefaultManagedAuthPage. +type RenderDefaultManagedAuthPageParamsAction string + +// HostedLoginCheckEmailParams defines parameters for HostedLoginCheckEmail. +type HostedLoginCheckEmailParams struct { + // Authorization Bearer anon key (`Bearer `) + Authorization string `json:"Authorization"` +} + +// GetHostedLoginOptionsParams defines parameters for GetHostedLoginOptions. +type GetHostedLoginOptionsParams struct { + AnonKey string `form:"anon_key" json:"anon_key"` +} + +// GetAuthInsightsParams defines parameters for GetAuthInsights. +type GetAuthInsightsParams struct { + // From Inclusive UTC start date. Defaults to 29 days before `to`. + From *openapi_types.Date `form:"from,omitempty" json:"from,omitempty"` + + // To Inclusive UTC end date. Defaults to today. + To *openapi_types.Date `form:"to,omitempty" json:"to,omitempty"` + + // Interval Chart bucket size. Defaults to `day`. + Interval *AuthInsightsInterval `form:"interval,omitempty" json:"interval,omitempty"` +} + +// ConfigureAuthMethodsJSONBody defines parameters for ConfigureAuthMethods. +type ConfigureAuthMethodsJSONBody struct { + EnableAnonymous *bool `json:"enable_anonymous,omitempty"` + EnableEmailPassword *bool `json:"enable_email_password,omitempty"` + OauthProviders *[]struct { + Enabled *bool `json:"enabled,omitempty"` + Provider *string `json:"provider,omitempty"` + } `json:"oauth_providers,omitempty"` +} + +// RenderAuthPagePreviewParams defines parameters for RenderAuthPagePreview. +type RenderAuthPagePreviewParams struct { + // Ticket Short-lived signed preview ticket returned by the POST operation. + Ticket string `form:"ticket" json:"ticket"` +} + +// ListAuthUsersParams defines parameters for ListAuthUsers. +type ListAuthUsersParams struct { + // Page Page number (1-indexed) for offset pagination. Declares no schema + // default so the request validator does not inject one: handlers that omit + // `page` see it unset (nil) and default to 1 in code, while cursor-first + // endpoints (e.g. the project deployments feed) can detect its absence to + // stay in keyset/search mode. Supplying `page` selects offset pagination. + Page *Page `form:"page,omitempty" json:"page,omitempty"` + + // Limit Number of items per page (max 100) + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` + + // Cursor Opaque keyset pagination cursor from a previous response's `next_cursor` + // — pages forward. Mutually exclusive with `page` and `ending_before`; + // combining them returns 400. When supplied, the request's `search` and + // `limit` must match the values bound to the cursor or the request returns 400. + Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"` + + // EndingBefore Opaque keyset pagination cursor from a previous response's `prev_cursor` + // — pages backward (the page immediately preceding this cursor). Mutually + // exclusive with `page` and `cursor`; combining them returns 400. `search` + // and `limit` must match the values bound to the cursor or the request + // returns 400. + EndingBefore *EndingBefore `form:"ending_before,omitempty" json:"ending_before,omitempty"` + + // Offset Bounded row offset past the keyset anchor named by `cursor` (forward) or + // `ending_before` (backward) — the hybrid jump. Seek to the anchor, then + // skip this many rows within. Used for numbered jump-to-page: from the + // current page, seek to its next/prev cursor and offset the remaining + // pages. Only honored on the cursor pagination path; ignored otherwise. + Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` + + // Search Case-insensitive substring match on the resource `name`. See the + // endpoint description for supported pagination modes. + Search *Search `form:"search,omitempty" json:"search,omitempty"` + + // Status Filter by effective status. `banned` returns only currently-banned users; an expired temporary ban lists as `active`. + Status *ListAuthUsersParamsStatus `form:"status,omitempty" json:"status,omitempty"` +} + +// ListAuthUsersParamsStatus defines parameters for ListAuthUsers. +type ListAuthUsersParamsStatus string + +// BanAuthUserJSONBody defines parameters for BanAuthUser. +type BanAuthUserJSONBody struct { + // BannedUntil When the ban expires (omit for permanent ban) + BannedUntil *time.Time `json:"banned_until,omitempty"` +} + +// ListUserSessionsParams defines parameters for ListUserSessions. +type ListUserSessionsParams struct { + // Page Page number (1-indexed) + Page *int `form:"page,omitempty" json:"page,omitempty"` + + // Limit Number of sessions per page (max 100) + Limit *int `form:"limit,omitempty" json:"limit,omitempty"` + + // Sort Sort key. `last_activity` (default) orders by most recent activity and + // supports offset pagination only. `created_at` orders by session start + // and supports both offset and cursor pagination. + Sort *ListUserSessionsParamsSort `form:"sort,omitempty" json:"sort,omitempty"` + + // Status Filter by whether the session can still be refreshed. Omit for every + // stored session, including expired ones. `expired` is not supported + // with cursor pagination. + Status *ListUserSessionsParamsStatus `form:"status,omitempty" json:"status,omitempty"` + + // Cursor Opaque keyset cursor from a previous response's `next_cursor`. Requires + // `sort=created_at`; mutually exclusive with `page` and `ending_before`. + Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"` + + // EndingBefore Opaque keyset cursor from a previous response's `prev_cursor`, paging + // backward. Requires `sort=created_at`; mutually exclusive with `page` + // and `cursor`. + EndingBefore *string `form:"ending_before,omitempty" json:"ending_before,omitempty"` + + // Offset Bounded number of rows to skip past the cursor anchor (the hybrid + // jump, maximum 100000). Ignored unless `cursor` or `ending_before` is + // supplied. + Offset *int `form:"offset,omitempty" json:"offset,omitempty"` +} + +// ListUserSessionsParamsSort defines parameters for ListUserSessions. +type ListUserSessionsParamsSort string + +// ListUserSessionsParamsStatus defines parameters for ListUserSessions. +type ListUserSessionsParamsStatus string + +// GetProjectConfigParams defines parameters for GetProjectConfig. +type GetProjectConfigParams struct { + // Format Response format override. Takes precedence over the Accept header. + Format *GetProjectConfigParamsFormat `form:"format,omitempty" json:"format,omitempty"` +} + +// GetProjectConfigParamsFormat defines parameters for GetProjectConfig. +type GetProjectConfigParamsFormat string + +// ApplyProjectConfigParams defines parameters for ApplyProjectConfig. +type ApplyProjectConfigParams struct { + // DryRun Validate and report projected actions without applying changes. + DryRun *bool `form:"dry_run,omitempty" json:"dry_run,omitempty"` +} + +// ListDatabasesParams defines parameters for ListDatabases. +type ListDatabasesParams struct { + // Page Page number (1-indexed) for offset pagination. Declares no schema + // default so the request validator does not inject one: handlers that omit + // `page` see it unset (nil) and default to 1 in code, while cursor-first + // endpoints (e.g. the project deployments feed) can detect its absence to + // stay in keyset/search mode. Supplying `page` selects offset pagination. + Page *Page `form:"page,omitempty" json:"page,omitempty"` + + // Limit Number of items per page (max 100) + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` + + // Cursor Opaque keyset pagination cursor from a previous response's `next_cursor` + // — pages forward. Mutually exclusive with `page` and `ending_before`; + // combining them returns 400. When supplied, the request's `search` and + // `limit` must match the values bound to the cursor or the request returns 400. + Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"` + + // EndingBefore Opaque keyset pagination cursor from a previous response's `prev_cursor` + // — pages backward (the page immediately preceding this cursor). Mutually + // exclusive with `page` and `cursor`; combining them returns 400. `search` + // and `limit` must match the values bound to the cursor or the request + // returns 400. + EndingBefore *EndingBefore `form:"ending_before,omitempty" json:"ending_before,omitempty"` + + // Offset Bounded row offset past the keyset anchor named by `cursor` (forward) or + // `ending_before` (backward) — the hybrid jump. Seek to the anchor, then + // skip this many rows within. Used for numbered jump-to-page: from the + // current page, seek to its next/prev cursor and offset the remaining + // pages. Only honored on the cursor pagination path; ignored otherwise. + Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` + + // Search Case-insensitive substring match on the resource `name`. See the + // endpoint description for supported pagination modes. + Search *Search `form:"search,omitempty" json:"search,omitempty"` + + // Status Return only the databases in this status. + Status *ListDatabasesParamsStatus `form:"status,omitempty" json:"status,omitempty"` +} + +// ListDatabasesParamsStatus defines parameters for ListDatabases. +type ListDatabasesParamsStatus string + +// GetProjectDatabaseQueriesParams defines parameters for GetProjectDatabaseQueries. +type GetProjectDatabaseQueriesParams struct { + // Limit Maximum number of queries to return. + Limit *int `form:"limit,omitempty" json:"limit,omitempty"` +} + +// GetDatabaseStatsParams defines parameters for GetDatabaseStats. +type GetDatabaseStatsParams struct { + // From Start time in RFC3339 format (e.g., "2024-01-01T00:00:00Z"). Defaults to 24 hours ago. + From *time.Time `form:"from,omitempty" json:"from,omitempty"` + + // To End time in RFC3339 format (e.g., "2024-01-02T00:00:00Z"). Defaults to now. + To *time.Time `form:"to,omitempty" json:"to,omitempty"` + + // Granularity Level of detail for metrics aggregation + Granularity *GetDatabaseStatsParamsGranularity `form:"granularity,omitempty" json:"granularity,omitempty"` +} + +// GetDatabaseStatsParamsGranularity defines parameters for GetDatabaseStats. +type GetDatabaseStatsParamsGranularity string + +// ListProjectDeploymentsParams defines parameters for ListProjectDeployments. +type ListProjectDeploymentsParams struct { // Page Page number (1-indexed) for offset pagination. Declares no schema // default so the request validator does not inject one: handlers that omit // `page` see it unset (nil) and default to 1 in code, while cursor-first @@ -9052,6 +10282,11 @@ type CreateDurableFunctionMultipartBody struct { // execution. Redeploying is the only way to change it, since // the collection has no update endpoint; omit it to keep the // current visibility, and a new function starts private. + // + // The standard collection's synchronous invocation fields — + // `invocation_mode`, `http_auth_mode`, `openapi_spec` — + // configure a request path no durable route serves, and are + // rejected with 400 rather than ignored. IsPublic *bool `json:"is_public,omitempty"` // Name DNS-safe function name (lowercase letters, numbers, hyphens; cannot start or end with hyphen) @@ -9113,8 +10348,12 @@ type StartDurableExecutionJSONBody = interface{} // StartDurableExecutionParams defines parameters for StartDurableExecution. type StartDurableExecutionParams struct { - // XVolcanoExecutionName Idempotency key for this execution. Generated when omitted. - // Letters, digits, `-`, `_` and `.`, up to 255 characters. + // XVolcanoExecutionName Idempotency key for this execution. Generated when omitted. A repeat + // under a name that already names a running execution returns that + // execution and is not charged again. + // + // Letters, digits, `-`, `_` and `.`, up to 255 characters. Anything + // else is rejected with `400`. XVolcanoExecutionName *string `json:"X-Volcano-Execution-Name,omitempty"` } @@ -9127,6 +10366,16 @@ type GetEmailTemplateParamsType string // UpdateEmailTemplateParamsType defines parameters for UpdateEmailTemplate. type UpdateEmailTemplateParamsType string +// ReplaceFrontendSharedVariablesJSONBody defines parameters for ReplaceFrontendSharedVariables. +type ReplaceFrontendSharedVariablesJSONBody struct { + // ExpectedFrontendSharedVariables When present, replace only if the current complete frontend shared list matches this list. + ExpectedFrontendSharedVariables *[]string `json:"expected_frontend_shared_variables,omitempty"` + + // ExpectedFrontendSharedVariablesDigest SHA-256 of the sorted unique current shared names joined by a newline. Use instead of expected_frontend_shared_variables for a compact conditional replacement. + ExpectedFrontendSharedVariablesDigest *string `json:"expected_frontend_shared_variables_digest,omitempty"` + FrontendSharedVariables []string `json:"frontend_shared_variables"` +} + // ListFrontendsParams defines parameters for ListFrontends. type ListFrontendsParams struct { // Page Page number (1-indexed) for offset pagination. Declares no schema @@ -9177,11 +10426,20 @@ type CreateFrontendMultipartBody struct { // Name DNS-safe frontend name Name string `json:"name"` + + // VariableScope Variable selection for this deployment. New frontends default to `scoped`; omitting this field for an existing frontend preserves its current selection. + VariableScope *CreateFrontendMultipartBodyVariableScope `json:"variable_scope,omitempty"` + + // Variables Project variable names selected when `variable_scope` is `scoped`. Submit each name as a repeated multipart field. + Variables *[]string `json:"variables,omitempty"` } // CreateFrontendMultipartBodyFramework defines parameters for CreateFrontend. type CreateFrontendMultipartBodyFramework string +// CreateFrontendMultipartBodyVariableScope defines parameters for CreateFrontend. +type CreateFrontendMultipartBodyVariableScope string + // ListFrontendDeploymentsParams defines parameters for ListFrontendDeployments. type ListFrontendDeploymentsParams struct { // Page Page number (1-indexed) for offset pagination. Declares no schema @@ -9250,16 +10508,32 @@ type CreateFunctionMultipartBody struct { // - Ruby: def handler() (in main.rb) Handler *string `json:"handler,omitempty"` + // HttpAuthMode Authentication applied by the HTTP ingress. `none` is valid only for public + // HTTP-mode functions and is intended for externally signed webhooks. + HttpAuthMode *FunctionHTTPAuthMode `json:"http_auth_mode,omitempty"` + + // InvocationMode Invocation contract. `rpc` preserves the existing POST `{payload: ...}` contract; + // `http` forwards HTTP request semantics to the function runtime. + InvocationMode *FunctionInvocationMode `json:"invocation_mode,omitempty"` + + // IsPublic Whether the function can be reached through public invocation + // ingress. Omit it to keep the function's current visibility; a + // new function starts private. + IsPublic *bool `json:"is_public,omitempty"` + // Name DNS-safe function name (lowercase letters, numbers, hyphens; cannot start or end with hyphen) Name string `json:"name"` + // OpenapiSpec JSON-encoded OpenAPI 3.0 or 3.1 metadata for an HTTP-mode function. + OpenapiSpec *string `json:"openapi_spec,omitempty"` + // Runtime Runtime environment. Required. // - Node.js: nodejs22.x, nodejs24.x // - Python: python3.10, python3.11, python3.12, python3.13, python3.14 // - Ruby: ruby3.3, ruby3.4, ruby4.0 Runtime CreateFunctionMultipartBodyRuntime `json:"runtime"` - // VariableScope Which project variables this function receives. `all` (the default) gives it every project variable; `scoped` gives it only the variables it selects. Omitting this leaves an existing function's scope unchanged. + // VariableScope Which project variables this function receives. `all` (the default) gives it only project variables marked `shared: true`; `scoped` gives it only the variables it selects. Omitting this leaves an existing function's scope unchanged. VariableScope *CreateFunctionMultipartBodyVariableScope `json:"variable_scope,omitempty"` // Variables JSON-encoded array of project variable names this function requires, on top of the ones detected in its source. A declared name the project does not define is rejected with 400; a detected name it does not define is ignored. Only used when `variable_scope` is `scoped`. Omitting this leaves an existing function's declared names unchanged. @@ -9279,7 +10553,7 @@ type CreateFunctionsBatchMultipartBody struct { // Functions JSON array of functions with `name`, `runtime`, optional `handler`, and `file_field`. Each `file_field` must name a multipart file field containing that function's ZIP or tar.gz source bundle. // - // Each entry may also declare `variable_scope` (`all` or `scoped`) and `variables` (an array of project variable names). Omitting them leaves the function's stored declaration unchanged. Volcano detects direct environment references in the uploaded source and adds the ones the project defines to the declared names; a detected name the project does not define is ignored, since such a reference is often optional. Declare a name when the function reads it through a computed key, or when it must not deploy without the variable. The request is rejected with 400 before anything is deployed if a scoped function declares a variable the project does not define, or if the resulting environment exceeds 4096 bytes. + // Each entry may also declare `variable_scope` (`all` or `scoped`) and `variables` (an array of project variable names). Omitting them leaves the function's stored declaration unchanged. Volcano detects direct environment references in the uploaded source code and keeps them separate from the declared names: detected names are not written back to the declaration and do not appear in a config export. A scoped function receives its declared names plus the detected ones the project defines; a detected name the project does not define is ignored, since such a reference is often optional. Detection reads code only, so a name appearing solely in a comment or in an unrelated string is not a reference. Declare a name when the function reads it through a computed key, or when it must not deploy without the variable. The request is rejected with 400 before anything is deployed if a scoped function declares a variable the project does not define, or if the resulting environment exceeds 4096 bytes. Functions string `json:"functions"` } @@ -9338,6 +10612,57 @@ type UpdateOAuthConfigParams struct { // UpdateOAuthConfigParamsProvider defines parameters for UpdateOAuthConfig. type UpdateOAuthConfigParamsProvider string +// ExecuteSandboxParams defines parameters for ExecuteSandbox. +type ExecuteSandboxParams struct { + IdempotencyKey openapi_types.UUID `json:"Idempotency-Key"` +} + +// ListSandboxSessionsParams defines parameters for ListSandboxSessions. +type ListSandboxSessionsParams struct { + // Limit Number of items per page (max 100) + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` + + // Cursor Opaque keyset pagination cursor from a previous response's `next_cursor` + // — pages forward. Mutually exclusive with `page` and `ending_before`; + // combining them returns 400. When supplied, the request's `search` and + // `limit` must match the values bound to the cursor or the request returns 400. + Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"` +} + +// CreateSandboxSessionParams defines parameters for CreateSandboxSession. +type CreateSandboxSessionParams struct { + IdempotencyKey openapi_types.UUID `json:"Idempotency-Key"` +} + +// ListSandboxesParams defines parameters for ListSandboxes. +type ListSandboxesParams struct { + // Limit Number of items per page (max 100) + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` + + // Cursor Opaque keyset pagination cursor from a previous response's `next_cursor` + // — pages forward. Mutually exclusive with `page` and `ending_before`; + // combining them returns 400. When supplied, the request's `search` and + // `limit` must match the values bound to the cursor or the request returns 400. + Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"` +} + +// CreateSandboxParams defines parameters for CreateSandbox. +type CreateSandboxParams struct { + IdempotencyKey openapi_types.UUID `json:"Idempotency-Key"` +} + +// ListSandboxDeploymentsParams defines parameters for ListSandboxDeployments. +type ListSandboxDeploymentsParams struct { + // Limit Number of items per page (max 100) + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` + + // Cursor Opaque keyset pagination cursor from a previous response's `next_cursor` + // — pages forward. Mutually exclusive with `page` and `ending_before`; + // combining them returns 400. When supplied, the request's `search` and + // `limit` must match the values bound to the cursor or the request returns 400. + Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"` +} + // ListProjectSchedulersParams defines parameters for ListProjectSchedulers. type ListProjectSchedulersParams struct { // Page Page number (1-indexed) for offset pagination. Declares no schema @@ -9427,6 +10752,16 @@ type CreateServiceKeyJSONBody struct { Permissions *[]string `json:"permissions,omitempty"` } +// ReplaceSharedVariablesJSONBody defines parameters for ReplaceSharedVariables. +type ReplaceSharedVariablesJSONBody struct { + // ExpectedSharedVariables When present, replace only if the current complete shared list matches this list. + ExpectedSharedVariables *[]string `json:"expected_shared_variables,omitempty"` + + // ExpectedSharedVariablesDigest SHA-256 of the sorted unique current shared names joined by a newline. Use instead of expected_shared_variables for a compact conditional replacement. + ExpectedSharedVariablesDigest *string `json:"expected_shared_variables_digest,omitempty"` + SharedVariables []string `json:"shared_variables"` +} + // ListStorageBucketsParams defines parameters for ListStorageBuckets. type ListStorageBucketsParams struct { // Limit Number of items per page (max 100) @@ -9538,6 +10873,11 @@ type ListVariablesParams struct { Search *Search `form:"search,omitempty" json:"search,omitempty"` } +// ExecuteSandboxSessionParams defines parameters for ExecuteSandboxSession. +type ExecuteSandboxSessionParams struct { + IdempotencyKey openapi_types.UUID `json:"Idempotency-Key"` +} + // ListStorageObjectsParams defines parameters for ListStorageObjects. type ListStorageObjectsParams struct { // Prefix Filter objects by path prefix @@ -9606,6 +10946,9 @@ type StartGitConnectParams struct { // Redirect URL to redirect the browser to after the provider callback completes. Redirect *string `form:"redirect,omitempty" json:"redirect,omitempty"` + + // CallbackUrl Same-origin browser callback used to relay provider parameters before completing the connection. + CallbackUrl *string `form:"callback_url,omitempty" json:"callback_url,omitempty"` } // StartGitConnectParamsProvider defines parameters for StartGitConnect. @@ -9618,6 +10961,9 @@ type StartImportConnectParams struct { // Redirect Validated application URL used after the provider callback. Redirect *string `form:"redirect,omitempty" json:"redirect,omitempty"` + + // CallbackUrl Same-origin browser callback used to relay provider parameters before completing the connection. + CallbackUrl *string `form:"callback_url,omitempty" json:"callback_url,omitempty"` } // AuthConfirmEmailJSONRequestBody defines body for AuthConfirmEmail for application/json ContentType. @@ -9701,6 +11047,9 @@ type QueryDatabaseSelectJSONRequestBody = DatabaseSelectRequest // QueryDatabaseUpdateJSONRequestBody defines body for QueryDatabaseUpdate for application/json ContentType. type QueryDatabaseUpdateJSONRequestBody = DatabaseUpdateRequest +// StartDurableExecutionFromApplicationJSONRequestBody defines body for StartDurableExecutionFromApplication for application/json ContentType. +type StartDurableExecutionFromApplicationJSONRequestBody = StartDurableExecutionFromApplicationJSONBody + // InvokeFunctionJSONRequestBody defines body for InvokeFunction for application/json ContentType. type InvokeFunctionJSONRequestBody = FunctionInvocationRequest @@ -9716,6 +11065,9 @@ type RenewProjectLockJSONRequestBody = ProjectLockLeaseRequest // AcquireProjectLockJSONRequestBody defines body for AcquireProjectLock for application/json ContentType. type AcquireProjectLockJSONRequestBody = ProjectLockLeaseRequest +// CallMCPJSONRequestBody defines body for CallMCP for application/json ContentType. +type CallMCPJSONRequestBody CallMCPJSONBody + // CreateProjectJSONRequestBody defines body for CreateProject for application/json ContentType. type CreateProjectJSONRequestBody = CreateProjectRequest @@ -9743,6 +11095,15 @@ type HostedLoginCheckEmailJSONRequestBody = HostedLoginEmailCheckRequest // ConfigureAuthMethodsJSONRequestBody defines body for ConfigureAuthMethods for application/json ContentType. type ConfigureAuthMethodsJSONRequestBody ConfigureAuthMethodsJSONBody +// UpdateAuthPageThemeJSONRequestBody defines body for UpdateAuthPageTheme for application/json ContentType. +type UpdateAuthPageThemeJSONRequestBody = UpdateAuthPageThemeRequest + +// UpdateAuthPageLayoutJSONRequestBody defines body for UpdateAuthPageLayout for application/json ContentType. +type UpdateAuthPageLayoutJSONRequestBody = UpdateAuthPageLayoutRequest + +// PreviewAuthPageJSONRequestBody defines body for PreviewAuthPage for application/json ContentType. +type PreviewAuthPageJSONRequestBody = PreviewAuthPageRequest + // BanAuthUserJSONRequestBody defines body for BanAuthUser for application/json ContentType. type BanAuthUserJSONRequestBody BanAuthUserJSONBody @@ -9788,12 +11149,21 @@ type CreateEmailTemplateJSONRequestBody = CreateEmailTemplateRequest // UpdateEmailTemplateJSONRequestBody defines body for UpdateEmailTemplate for application/json ContentType. type UpdateEmailTemplateJSONRequestBody = UpdateEmailTemplateRequest +// ReplaceFrontendSharedVariablesJSONRequestBody defines body for ReplaceFrontendSharedVariables for application/json ContentType. +type ReplaceFrontendSharedVariablesJSONRequestBody ReplaceFrontendSharedVariablesJSONBody + // CreateFrontendMultipartRequestBody defines body for CreateFrontend for multipart/form-data ContentType. type CreateFrontendMultipartRequestBody CreateFrontendMultipartBody // CreateFrontendCustomDomainJSONRequestBody defines body for CreateFrontendCustomDomain for application/json ContentType. type CreateFrontendCustomDomainJSONRequestBody = CreateFrontendCustomDomainRequest +// CreateFrontendFunctionRouteJSONRequestBody defines body for CreateFrontendFunctionRoute for application/json ContentType. +type CreateFrontendFunctionRouteJSONRequestBody = CreateFrontendFunctionRouteRequest + +// UpdateFrontendFunctionRouteJSONRequestBody defines body for UpdateFrontendFunctionRoute for application/json ContentType. +type UpdateFrontendFunctionRouteJSONRequestBody = CreateFrontendFunctionRouteRequest + // CreateFunctionMultipartRequestBody defines body for CreateFunction for multipart/form-data ContentType. type CreateFunctionMultipartRequestBody CreateFunctionMultipartBody @@ -9815,9 +11185,6 @@ type ConnectProjectGitJSONRequestBody = ConnectProjectGitRequest // SetProjectGitProductionBranchJSONRequestBody defines body for SetProjectGitProductionBranch for application/json ContentType. type SetProjectGitProductionBranchJSONRequestBody = SetProjectGitProductionBranchRequest -// CreateProjectGitRepositoryJSONRequestBody defines body for CreateProjectGitRepository for application/json ContentType. -type CreateProjectGitRepositoryJSONRequestBody = CreateProjectGitRepositoryRequest - // UpdateProjectGitDeploySettingsJSONRequestBody defines body for UpdateProjectGitDeploySettings for application/json ContentType. type UpdateProjectGitDeploySettingsJSONRequestBody = UpdateProjectGitDeploySettingsRequest @@ -9845,9 +11212,27 @@ type UpdateOAuthConfigJSONRequestBody = UpdateOAuthConfigRequest // UpdateRealtimeConfigJSONRequestBody defines body for UpdateRealtimeConfig for application/json ContentType. type UpdateRealtimeConfigJSONRequestBody = UpdateRealtimeConfigRequest +// ExecuteSandboxJSONRequestBody defines body for ExecuteSandbox for application/json ContentType. +type ExecuteSandboxJSONRequestBody = SandboxExecutionRequest + +// CreateSandboxSessionJSONRequestBody defines body for CreateSandboxSession for application/json ContentType. +type CreateSandboxSessionJSONRequestBody = CreateSandboxSessionRequest + +// CreateSandboxJSONRequestBody defines body for CreateSandbox for application/json ContentType. +type CreateSandboxJSONRequestBody = CreateSandboxTemplateRequest + +// UpdateSandboxJSONRequestBody defines body for UpdateSandbox for application/json ContentType. +type UpdateSandboxJSONRequestBody = UpdateSandboxTemplateRequest + // CreateServiceKeyJSONRequestBody defines body for CreateServiceKey for application/json ContentType. type CreateServiceKeyJSONRequestBody CreateServiceKeyJSONBody +// ReplaceSharedVariablesJSONRequestBody defines body for ReplaceSharedVariables for application/json ContentType. +type ReplaceSharedVariablesJSONRequestBody ReplaceSharedVariablesJSONBody + +// ExportProjectSourceJSONRequestBody defines body for ExportProjectSource for application/json ContentType. +type ExportProjectSourceJSONRequestBody = ExportProjectSourceRequest + // CreateStorageBucketJSONRequestBody defines body for CreateStorageBucket for application/json ContentType. type CreateStorageBucketJSONRequestBody = CreateStorageBucketRequest @@ -9863,6 +11248,21 @@ type CreateVariableJSONRequestBody = CreateVariableRequest // UpdateVariableJSONRequestBody defines body for UpdateVariable for application/json ContentType. type UpdateVariableJSONRequestBody = UpdateVariableRequest +// CreateSandboxSessionAccessJSONRequestBody defines body for CreateSandboxSessionAccess for application/json ContentType. +type CreateSandboxSessionAccessJSONRequestBody = SandboxAccessRequest + +// ExecuteSandboxSessionJSONRequestBody defines body for ExecuteSandboxSession for application/json ContentType. +type ExecuteSandboxSessionJSONRequestBody = SandboxCommandRequest + +// ReadSandboxSessionFileJSONRequestBody defines body for ReadSandboxSessionFile for application/json ContentType. +type ReadSandboxSessionFileJSONRequestBody = SandboxFileReadRequest + +// WriteSandboxSessionFileJSONRequestBody defines body for WriteSandboxSessionFile for application/json ContentType. +type WriteSandboxSessionFileJSONRequestBody = SandboxFileWriteRequest + +// GrantSandboxSessionJSONRequestBody defines body for GrantSandboxSession for application/json ContentType. +type GrantSandboxSessionJSONRequestBody = SandboxSubjectGrantRequest + // CopyStorageObjectJSONRequestBody defines body for CopyStorageObject for application/json ContentType. type CopyStorageObjectJSONRequestBody = StorageCopyRequest @@ -9878,6 +11278,170 @@ type UploadStorageObjectMultipartRequestBody UploadStorageObjectMultipartBody // UpdateStorageObjectVisibilityJSONRequestBody defines body for UpdateStorageObjectVisibility for application/json ContentType. type UpdateStorageObjectVisibilityJSONRequestBody = StorageVisibilityRequest +// AsCreateSandboxSessionRequest0 returns the union data inside the CreateSandboxSessionRequest as a CreateSandboxSessionRequest0 +func (t CreateSandboxSessionRequest) AsCreateSandboxSessionRequest0() (CreateSandboxSessionRequest0, error) { + var body CreateSandboxSessionRequest0 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromCreateSandboxSessionRequest0 overwrites any union data inside the CreateSandboxSessionRequest as the provided CreateSandboxSessionRequest0 +func (t *CreateSandboxSessionRequest) FromCreateSandboxSessionRequest0(v CreateSandboxSessionRequest0) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeCreateSandboxSessionRequest0 performs a merge with any union data inside the CreateSandboxSessionRequest, using the provided CreateSandboxSessionRequest0 +func (t *CreateSandboxSessionRequest) MergeCreateSandboxSessionRequest0(v CreateSandboxSessionRequest0) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsCreateSandboxSessionRequest1 returns the union data inside the CreateSandboxSessionRequest as a CreateSandboxSessionRequest1 +func (t CreateSandboxSessionRequest) AsCreateSandboxSessionRequest1() (CreateSandboxSessionRequest1, error) { + var body CreateSandboxSessionRequest1 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromCreateSandboxSessionRequest1 overwrites any union data inside the CreateSandboxSessionRequest as the provided CreateSandboxSessionRequest1 +func (t *CreateSandboxSessionRequest) FromCreateSandboxSessionRequest1(v CreateSandboxSessionRequest1) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeCreateSandboxSessionRequest1 performs a merge with any union data inside the CreateSandboxSessionRequest, using the provided CreateSandboxSessionRequest1 +func (t *CreateSandboxSessionRequest) MergeCreateSandboxSessionRequest1(v CreateSandboxSessionRequest1) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +func (t CreateSandboxSessionRequest) MarshalJSON() ([]byte, error) { + b, err := t.union.MarshalJSON() + if err != nil { + return nil, err + } + object := make(map[string]json.RawMessage) + if t.union != nil { + err = json.Unmarshal(b, &object) + if err != nil { + return nil, err + } + } + + if t.IdleTimeoutSeconds != nil { + object["idle_timeout_seconds"], err = json.Marshal(t.IdleTimeoutSeconds) + if err != nil { + return nil, fmt.Errorf("error marshaling 'idle_timeout_seconds': %w", err) + } + } + + if t.MaxDurationSeconds != nil { + object["max_duration_seconds"], err = json.Marshal(t.MaxDurationSeconds) + if err != nil { + return nil, fmt.Errorf("error marshaling 'max_duration_seconds': %w", err) + } + } + + if t.MemoryMb != nil { + object["memory_mb"], err = json.Marshal(t.MemoryMb) + if err != nil { + return nil, fmt.Errorf("error marshaling 'memory_mb': %w", err) + } + } + + if t.Preset != nil { + object["preset"], err = json.Marshal(t.Preset) + if err != nil { + return nil, fmt.Errorf("error marshaling 'preset': %w", err) + } + } + + object["region"], err = json.Marshal(t.Region) + if err != nil { + return nil, fmt.Errorf("error marshaling 'region': %w", err) + } + + if t.SandboxId != nil { + object["sandbox_id"], err = json.Marshal(t.SandboxId) + if err != nil { + return nil, fmt.Errorf("error marshaling 'sandbox_id': %w", err) + } + } + b, err = json.Marshal(object) + return b, err +} + +func (t *CreateSandboxSessionRequest) UnmarshalJSON(b []byte) error { + err := t.union.UnmarshalJSON(b) + if err != nil { + return err + } + object := make(map[string]json.RawMessage) + err = json.Unmarshal(b, &object) + if err != nil { + return err + } + + if raw, found := object["idle_timeout_seconds"]; found { + err = json.Unmarshal(raw, &t.IdleTimeoutSeconds) + if err != nil { + return fmt.Errorf("error reading 'idle_timeout_seconds': %w", err) + } + } + + if raw, found := object["max_duration_seconds"]; found { + err = json.Unmarshal(raw, &t.MaxDurationSeconds) + if err != nil { + return fmt.Errorf("error reading 'max_duration_seconds': %w", err) + } + } + + if raw, found := object["memory_mb"]; found { + err = json.Unmarshal(raw, &t.MemoryMb) + if err != nil { + return fmt.Errorf("error reading 'memory_mb': %w", err) + } + } + + if raw, found := object["preset"]; found { + err = json.Unmarshal(raw, &t.Preset) + if err != nil { + return fmt.Errorf("error reading 'preset': %w", err) + } + } + + if raw, found := object["region"]; found { + err = json.Unmarshal(raw, &t.Region) + if err != nil { + return fmt.Errorf("error reading 'region': %w", err) + } + } + + if raw, found := object["sandbox_id"]; found { + err = json.Unmarshal(raw, &t.SandboxId) + if err != nil { + return fmt.Errorf("error reading 'sandbox_id': %w", err) + } + } + + return err +} + // AsDatabaseQueryFilterValue30 returns the union data inside the DatabaseQueryFilter_Value_3_Item as a DatabaseQueryFilterValue30 func (t DatabaseQueryFilter_Value_3_Item) AsDatabaseQueryFilterValue30() (DatabaseQueryFilterValue30, error) { var body DatabaseQueryFilterValue30 @@ -10479,6 +12043,306 @@ func (t *LogSearchEvent_Body) UnmarshalJSON(b []byte) error { return err } +// AsSandboxExecutionRequest0 returns the union data inside the SandboxExecutionRequest as a SandboxExecutionRequest0 +func (t SandboxExecutionRequest) AsSandboxExecutionRequest0() (SandboxExecutionRequest0, error) { + var body SandboxExecutionRequest0 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromSandboxExecutionRequest0 overwrites any union data inside the SandboxExecutionRequest as the provided SandboxExecutionRequest0 +func (t *SandboxExecutionRequest) FromSandboxExecutionRequest0(v SandboxExecutionRequest0) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeSandboxExecutionRequest0 performs a merge with any union data inside the SandboxExecutionRequest, using the provided SandboxExecutionRequest0 +func (t *SandboxExecutionRequest) MergeSandboxExecutionRequest0(v SandboxExecutionRequest0) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsSandboxExecutionRequest1 returns the union data inside the SandboxExecutionRequest as a SandboxExecutionRequest1 +func (t SandboxExecutionRequest) AsSandboxExecutionRequest1() (SandboxExecutionRequest1, error) { + var body SandboxExecutionRequest1 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromSandboxExecutionRequest1 overwrites any union data inside the SandboxExecutionRequest as the provided SandboxExecutionRequest1 +func (t *SandboxExecutionRequest) FromSandboxExecutionRequest1(v SandboxExecutionRequest1) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeSandboxExecutionRequest1 performs a merge with any union data inside the SandboxExecutionRequest, using the provided SandboxExecutionRequest1 +func (t *SandboxExecutionRequest) MergeSandboxExecutionRequest1(v SandboxExecutionRequest1) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +func (t SandboxExecutionRequest) MarshalJSON() ([]byte, error) { + b, err := t.union.MarshalJSON() + if err != nil { + return nil, err + } + object := make(map[string]json.RawMessage) + if t.union != nil { + err = json.Unmarshal(b, &object) + if err != nil { + return nil, err + } + } + + object["command"], err = json.Marshal(t.Command) + if err != nil { + return nil, fmt.Errorf("error marshaling 'command': %w", err) + } + + if t.Environment != nil { + object["environment"], err = json.Marshal(t.Environment) + if err != nil { + return nil, fmt.Errorf("error marshaling 'environment': %w", err) + } + } + + if t.MemoryMb != nil { + object["memory_mb"], err = json.Marshal(t.MemoryMb) + if err != nil { + return nil, fmt.Errorf("error marshaling 'memory_mb': %w", err) + } + } + + if t.Preset != nil { + object["preset"], err = json.Marshal(t.Preset) + if err != nil { + return nil, fmt.Errorf("error marshaling 'preset': %w", err) + } + } + + object["region"], err = json.Marshal(t.Region) + if err != nil { + return nil, fmt.Errorf("error marshaling 'region': %w", err) + } + + if t.SandboxId != nil { + object["sandbox_id"], err = json.Marshal(t.SandboxId) + if err != nil { + return nil, fmt.Errorf("error marshaling 'sandbox_id': %w", err) + } + } + + if t.TimeoutSeconds != nil { + object["timeout_seconds"], err = json.Marshal(t.TimeoutSeconds) + if err != nil { + return nil, fmt.Errorf("error marshaling 'timeout_seconds': %w", err) + } + } + b, err = json.Marshal(object) + return b, err +} + +func (t *SandboxExecutionRequest) UnmarshalJSON(b []byte) error { + err := t.union.UnmarshalJSON(b) + if err != nil { + return err + } + object := make(map[string]json.RawMessage) + err = json.Unmarshal(b, &object) + if err != nil { + return err + } + + if raw, found := object["command"]; found { + err = json.Unmarshal(raw, &t.Command) + if err != nil { + return fmt.Errorf("error reading 'command': %w", err) + } + } + + if raw, found := object["environment"]; found { + err = json.Unmarshal(raw, &t.Environment) + if err != nil { + return fmt.Errorf("error reading 'environment': %w", err) + } + } + + if raw, found := object["memory_mb"]; found { + err = json.Unmarshal(raw, &t.MemoryMb) + if err != nil { + return fmt.Errorf("error reading 'memory_mb': %w", err) + } + } + + if raw, found := object["preset"]; found { + err = json.Unmarshal(raw, &t.Preset) + if err != nil { + return fmt.Errorf("error reading 'preset': %w", err) + } + } + + if raw, found := object["region"]; found { + err = json.Unmarshal(raw, &t.Region) + if err != nil { + return fmt.Errorf("error reading 'region': %w", err) + } + } + + if raw, found := object["sandbox_id"]; found { + err = json.Unmarshal(raw, &t.SandboxId) + if err != nil { + return fmt.Errorf("error reading 'sandbox_id': %w", err) + } + } + + if raw, found := object["timeout_seconds"]; found { + err = json.Unmarshal(raw, &t.TimeoutSeconds) + if err != nil { + return fmt.Errorf("error reading 'timeout_seconds': %w", err) + } + } + + return err +} + +// AsCallMCPJSONBodyId0 returns the union data inside the CallMCPJSONBody_Id as a CallMCPJSONBodyId0 +func (t CallMCPJSONBody_Id) AsCallMCPJSONBodyId0() (CallMCPJSONBodyId0, error) { + var body CallMCPJSONBodyId0 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromCallMCPJSONBodyId0 overwrites any union data inside the CallMCPJSONBody_Id as the provided CallMCPJSONBodyId0 +func (t *CallMCPJSONBody_Id) FromCallMCPJSONBodyId0(v CallMCPJSONBodyId0) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeCallMCPJSONBodyId0 performs a merge with any union data inside the CallMCPJSONBody_Id, using the provided CallMCPJSONBodyId0 +func (t *CallMCPJSONBody_Id) MergeCallMCPJSONBodyId0(v CallMCPJSONBodyId0) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsCallMCPJSONBodyId1 returns the union data inside the CallMCPJSONBody_Id as a CallMCPJSONBodyId1 +func (t CallMCPJSONBody_Id) AsCallMCPJSONBodyId1() (CallMCPJSONBodyId1, error) { + var body CallMCPJSONBodyId1 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromCallMCPJSONBodyId1 overwrites any union data inside the CallMCPJSONBody_Id as the provided CallMCPJSONBodyId1 +func (t *CallMCPJSONBody_Id) FromCallMCPJSONBodyId1(v CallMCPJSONBodyId1) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeCallMCPJSONBodyId1 performs a merge with any union data inside the CallMCPJSONBody_Id, using the provided CallMCPJSONBodyId1 +func (t *CallMCPJSONBody_Id) MergeCallMCPJSONBodyId1(v CallMCPJSONBodyId1) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +func (t CallMCPJSONBody_Id) MarshalJSON() ([]byte, error) { + b, err := t.union.MarshalJSON() + return b, err +} + +func (t *CallMCPJSONBody_Id) UnmarshalJSON(b []byte) error { + err := t.union.UnmarshalJSON(b) + return err +} + +// AsCallMCP200JSONResponseBodyId0 returns the union data inside the CallMCP200JSONResponseBody_Id as a CallMCP200JSONResponseBodyId0 +func (t CallMCP200JSONResponseBody_Id) AsCallMCP200JSONResponseBodyId0() (CallMCP200JSONResponseBodyId0, error) { + var body CallMCP200JSONResponseBodyId0 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromCallMCP200JSONResponseBodyId0 overwrites any union data inside the CallMCP200JSONResponseBody_Id as the provided CallMCP200JSONResponseBodyId0 +func (t *CallMCP200JSONResponseBody_Id) FromCallMCP200JSONResponseBodyId0(v CallMCP200JSONResponseBodyId0) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeCallMCP200JSONResponseBodyId0 performs a merge with any union data inside the CallMCP200JSONResponseBody_Id, using the provided CallMCP200JSONResponseBodyId0 +func (t *CallMCP200JSONResponseBody_Id) MergeCallMCP200JSONResponseBodyId0(v CallMCP200JSONResponseBodyId0) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsCallMCP200JSONResponseBodyId1 returns the union data inside the CallMCP200JSONResponseBody_Id as a CallMCP200JSONResponseBodyId1 +func (t CallMCP200JSONResponseBody_Id) AsCallMCP200JSONResponseBodyId1() (CallMCP200JSONResponseBodyId1, error) { + var body CallMCP200JSONResponseBodyId1 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromCallMCP200JSONResponseBodyId1 overwrites any union data inside the CallMCP200JSONResponseBody_Id as the provided CallMCP200JSONResponseBodyId1 +func (t *CallMCP200JSONResponseBody_Id) FromCallMCP200JSONResponseBodyId1(v CallMCP200JSONResponseBodyId1) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeCallMCP200JSONResponseBodyId1 performs a merge with any union data inside the CallMCP200JSONResponseBody_Id, using the provided CallMCP200JSONResponseBodyId1 +func (t *CallMCP200JSONResponseBody_Id) MergeCallMCP200JSONResponseBodyId1(v CallMCP200JSONResponseBodyId1) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +func (t CallMCP200JSONResponseBody_Id) MarshalJSON() ([]byte, error) { + b, err := t.union.MarshalJSON() + return b, err +} + +func (t *CallMCP200JSONResponseBody_Id) UnmarshalJSON(b []byte) error { + err := t.union.UnmarshalJSON(b) + return err +} + // AsListStorageBuckets200JSONResponseBody0 returns the union data inside the ListStorageBuckets200JSONResponseBody as a ListStorageBuckets200JSONResponseBody0 func (t ListStorageBuckets200JSONResponseBody) AsListStorageBuckets200JSONResponseBody0() (ListStorageBuckets200JSONResponseBody0, error) { var body ListStorageBuckets200JSONResponseBody0 @@ -10877,6 +12741,11 @@ type ClientInterface interface { // ListDeployments request ListDeployments(ctx context.Context, params *ListDeploymentsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // StartDurableExecutionFromApplicationWithBody request with any body + StartDurableExecutionFromApplicationWithBody(ctx context.Context, functionId DurableFunctionId, params *StartDurableExecutionFromApplicationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + StartDurableExecutionFromApplication(ctx context.Context, functionId DurableFunctionId, params *StartDurableExecutionFromApplicationParams, body StartDurableExecutionFromApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetDefaultEmailTemplates request GetDefaultEmailTemplates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -10941,6 +12810,23 @@ type ClientInterface interface { AcquireProjectLock(ctx context.Context, key LockKey, params *AcquireProjectLockParams, body AcquireProjectLockJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // CallMCPWithBody request with any body + CallMCPWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CallMCP(ctx context.Context, body CallMCPJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetOpenAPISpecJSON request + GetOpenAPISpecJSON(ctx context.Context, params *GetOpenAPISpecJSONParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // HeadOpenAPISpecJSON request + HeadOpenAPISpecJSON(ctx context.Context, params *HeadOpenAPISpecJSONParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetOpenAPISpecYAML request + GetOpenAPISpecYAML(ctx context.Context, params *GetOpenAPISpecYAMLParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // HeadOpenAPISpecYAML request + HeadOpenAPISpecYAML(ctx context.Context, params *HeadOpenAPISpecYAMLParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListProjects request ListProjects(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -11046,6 +12932,33 @@ type ClientInterface interface { ConfigureAuthMethods(ctx context.Context, id ProjectId, body ConfigureAuthMethodsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetAuthPageAppearance request + GetAuthPageAppearance(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteAuthPageTheme request + DeleteAuthPageTheme(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateAuthPageThemeWithBody request with any body + UpdateAuthPageThemeWithBody(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateAuthPageTheme(ctx context.Context, id ProjectId, body UpdateAuthPageThemeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteAuthPageLayout request + DeleteAuthPageLayout(ctx context.Context, id ProjectId, pageType HostedAuthPageType, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateAuthPageLayoutWithBody request with any body + UpdateAuthPageLayoutWithBody(ctx context.Context, id ProjectId, pageType HostedAuthPageType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateAuthPageLayout(ctx context.Context, id ProjectId, pageType HostedAuthPageType, body UpdateAuthPageLayoutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // RenderAuthPagePreview request + RenderAuthPagePreview(ctx context.Context, id ProjectId, pageType HostedAuthPageType, params *RenderAuthPagePreviewParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PreviewAuthPageWithBody request with any body + PreviewAuthPageWithBody(ctx context.Context, id ProjectId, pageType HostedAuthPageType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + PreviewAuthPage(ctx context.Context, id ProjectId, pageType HostedAuthPageType, body PreviewAuthPageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListAuthUsers request ListAuthUsers(ctx context.Context, id ProjectId, params *ListAuthUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -11242,6 +13155,11 @@ type ClientInterface interface { UpdateEmailTemplate(ctx context.Context, id ProjectId, pType UpdateEmailTemplateParamsType, body UpdateEmailTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // ReplaceFrontendSharedVariablesWithBody request with any body + ReplaceFrontendSharedVariablesWithBody(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + ReplaceFrontendSharedVariables(ctx context.Context, id ProjectId, body ReplaceFrontendSharedVariablesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListFrontends request ListFrontends(ctx context.Context, id ProjectId, params *ListFrontendsParams, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -11268,6 +13186,22 @@ type ClientInterface interface { CreateFrontendCustomDomain(ctx context.Context, id ProjectId, frontendId FrontendId, body CreateFrontendCustomDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListFrontendFunctionRoutes request + ListFrontendFunctionRoutes(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateFrontendFunctionRouteWithBody request with any body + CreateFrontendFunctionRouteWithBody(ctx context.Context, id ProjectId, frontendId FrontendId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateFrontendFunctionRoute(ctx context.Context, id ProjectId, frontendId FrontendId, body CreateFrontendFunctionRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteFrontendFunctionRoute request + DeleteFrontendFunctionRoute(ctx context.Context, id ProjectId, frontendId FrontendId, routeId FrontendFunctionRouteId, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateFrontendFunctionRouteWithBody request with any body + UpdateFrontendFunctionRouteWithBody(ctx context.Context, id ProjectId, frontendId FrontendId, routeId FrontendFunctionRouteId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateFrontendFunctionRoute(ctx context.Context, id ProjectId, frontendId FrontendId, routeId FrontendFunctionRouteId, body UpdateFrontendFunctionRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // RedeployFrontend request RedeployFrontend(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -11332,11 +13266,6 @@ type ClientInterface interface { SetProjectGitProductionBranch(ctx context.Context, id ProjectId, body SetProjectGitProductionBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // CreateProjectGitRepositoryWithBody request with any body - CreateProjectGitRepositoryWithBody(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CreateProjectGitRepository(ctx context.Context, id ProjectId, body CreateProjectGitRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetProjectGitDeploySettings request GetProjectGitDeploySettings(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -11410,6 +13339,41 @@ type ClientInterface interface { // GetRealtimeStats request GetRealtimeStats(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*http.Response, error) + // ExecuteSandboxWithBody request with any body + ExecuteSandboxWithBody(ctx context.Context, id openapi_types.UUID, params *ExecuteSandboxParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + ExecuteSandbox(ctx context.Context, id openapi_types.UUID, params *ExecuteSandboxParams, body ExecuteSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ListSandboxSessions request + ListSandboxSessions(ctx context.Context, id openapi_types.UUID, params *ListSandboxSessionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateSandboxSessionWithBody request with any body + CreateSandboxSessionWithBody(ctx context.Context, id openapi_types.UUID, params *CreateSandboxSessionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateSandboxSession(ctx context.Context, id openapi_types.UUID, params *CreateSandboxSessionParams, body CreateSandboxSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ListSandboxes request + ListSandboxes(ctx context.Context, id openapi_types.UUID, params *ListSandboxesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateSandboxWithBody request with any body + CreateSandboxWithBody(ctx context.Context, id openapi_types.UUID, params *CreateSandboxParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateSandbox(ctx context.Context, id openapi_types.UUID, params *CreateSandboxParams, body CreateSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteSandbox request + DeleteSandbox(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetSandbox request + GetSandbox(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateSandboxWithBody request with any body + UpdateSandboxWithBody(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateSandbox(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, body UpdateSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ListSandboxDeployments request + ListSandboxDeployments(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, params *ListSandboxDeploymentsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListProjectSchedulers request ListProjectSchedulers(ctx context.Context, id ProjectId, params *ListProjectSchedulersParams, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -11430,6 +13394,22 @@ type ClientInterface interface { // RegenerateServiceKey request RegenerateServiceKey(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + // ReplaceSharedVariablesWithBody request with any body + ReplaceSharedVariablesWithBody(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + ReplaceSharedVariables(ctx context.Context, id ProjectId, body ReplaceSharedVariablesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CancelProjectSourceExport request + CancelProjectSourceExport(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetProjectSourceExport request + GetProjectSourceExport(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ExportProjectSourceWithBody request with any body + ExportProjectSourceWithBody(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + ExportProjectSource(ctx context.Context, id ProjectId, body ExportProjectSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListStorageBuckets request ListStorageBuckets(ctx context.Context, id ProjectId, params *ListStorageBucketsParams, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -11491,6 +13471,49 @@ type ClientInterface interface { // DownloadPublicFile request DownloadPublicFile(ctx context.Context, projectId openapi_types.UUID, bucketName BucketName, path string, reqEditors ...RequestEditorFn) (*http.Response, error) + // TerminateSandboxSession request + TerminateSandboxSession(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetSandboxSession request + GetSandboxSession(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateSandboxSessionAccessWithBody request with any body + CreateSandboxSessionAccessWithBody(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateSandboxSessionAccess(ctx context.Context, sessionId openapi_types.UUID, body CreateSandboxSessionAccessJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ExecuteSandboxSessionWithBody request with any body + ExecuteSandboxSessionWithBody(ctx context.Context, sessionId openapi_types.UUID, params *ExecuteSandboxSessionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + ExecuteSandboxSession(ctx context.Context, sessionId openapi_types.UUID, params *ExecuteSandboxSessionParams, body ExecuteSandboxSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ReadSandboxSessionFileWithBody request with any body + ReadSandboxSessionFileWithBody(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + ReadSandboxSessionFile(ctx context.Context, sessionId openapi_types.UUID, body ReadSandboxSessionFileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // WriteSandboxSessionFileWithBody request with any body + WriteSandboxSessionFileWithBody(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + WriteSandboxSessionFile(ctx context.Context, sessionId openapi_types.UUID, body WriteSandboxSessionFileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // RevokeSandboxSession request + RevokeSandboxSession(ctx context.Context, sessionId openapi_types.UUID, subjectId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GrantSandboxSessionWithBody request with any body + GrantSandboxSessionWithBody(ctx context.Context, sessionId openapi_types.UUID, subjectId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GrantSandboxSession(ctx context.Context, sessionId openapi_types.UUID, subjectId openapi_types.UUID, body GrantSandboxSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ResumeSandboxSession request + ResumeSandboxSession(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + + // SuspendSandboxSession request + SuspendSandboxSession(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ListSandboxPresets request + ListSandboxPresets(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListStorageObjects request ListStorageObjects(ctx context.Context, bucketName BucketName, params *ListStorageObjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -12460,6 +14483,30 @@ func (c *Client) ListDeployments(ctx context.Context, params *ListDeploymentsPar return c.Client.Do(req) } +func (c *Client) StartDurableExecutionFromApplicationWithBody(ctx context.Context, functionId DurableFunctionId, params *StartDurableExecutionFromApplicationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewStartDurableExecutionFromApplicationRequestWithBody(c.Server, functionId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) StartDurableExecutionFromApplication(ctx context.Context, functionId DurableFunctionId, params *StartDurableExecutionFromApplicationParams, body StartDurableExecutionFromApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewStartDurableExecutionFromApplicationRequest(c.Server, functionId, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + func (c *Client) GetDefaultEmailTemplates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetDefaultEmailTemplatesRequest(c.Server) if err != nil { @@ -12736,6 +14783,78 @@ func (c *Client) AcquireProjectLock(ctx context.Context, key LockKey, params *Ac return c.Client.Do(req) } +func (c *Client) CallMCPWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCallMCPRequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CallMCP(ctx context.Context, body CallMCPJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCallMCPRequest(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetOpenAPISpecJSON(ctx context.Context, params *GetOpenAPISpecJSONParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOpenAPISpecJSONRequest(c.Server, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) HeadOpenAPISpecJSON(ctx context.Context, params *HeadOpenAPISpecJSONParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewHeadOpenAPISpecJSONRequest(c.Server, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetOpenAPISpecYAML(ctx context.Context, params *GetOpenAPISpecYAMLParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOpenAPISpecYAMLRequest(c.Server, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) HeadOpenAPISpecYAML(ctx context.Context, params *HeadOpenAPISpecYAMLParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewHeadOpenAPISpecYAMLRequest(c.Server, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + func (c *Client) ListProjects(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListProjectsRequest(c.Server, params) if err != nil { @@ -13192,6 +15311,126 @@ func (c *Client) ConfigureAuthMethods(ctx context.Context, id ProjectId, body Co return c.Client.Do(req) } +func (c *Client) GetAuthPageAppearance(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAuthPageAppearanceRequest(c.Server, id) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteAuthPageTheme(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteAuthPageThemeRequest(c.Server, id) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateAuthPageThemeWithBody(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateAuthPageThemeRequestWithBody(c.Server, id, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateAuthPageTheme(ctx context.Context, id ProjectId, body UpdateAuthPageThemeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateAuthPageThemeRequest(c.Server, id, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteAuthPageLayout(ctx context.Context, id ProjectId, pageType HostedAuthPageType, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteAuthPageLayoutRequest(c.Server, id, pageType) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateAuthPageLayoutWithBody(ctx context.Context, id ProjectId, pageType HostedAuthPageType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateAuthPageLayoutRequestWithBody(c.Server, id, pageType, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateAuthPageLayout(ctx context.Context, id ProjectId, pageType HostedAuthPageType, body UpdateAuthPageLayoutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateAuthPageLayoutRequest(c.Server, id, pageType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) RenderAuthPagePreview(ctx context.Context, id ProjectId, pageType HostedAuthPageType, params *RenderAuthPagePreviewParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRenderAuthPagePreviewRequest(c.Server, id, pageType, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PreviewAuthPageWithBody(ctx context.Context, id ProjectId, pageType HostedAuthPageType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPreviewAuthPageRequestWithBody(c.Server, id, pageType, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PreviewAuthPage(ctx context.Context, id ProjectId, pageType HostedAuthPageType, body PreviewAuthPageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPreviewAuthPageRequest(c.Server, id, pageType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + func (c *Client) ListAuthUsers(ctx context.Context, id ProjectId, params *ListAuthUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListAuthUsersRequest(c.Server, id, params) if err != nil { @@ -14032,6 +16271,30 @@ func (c *Client) UpdateEmailTemplate(ctx context.Context, id ProjectId, pType Up return c.Client.Do(req) } +func (c *Client) ReplaceFrontendSharedVariablesWithBody(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewReplaceFrontendSharedVariablesRequestWithBody(c.Server, id, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ReplaceFrontendSharedVariables(ctx context.Context, id ProjectId, body ReplaceFrontendSharedVariablesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewReplaceFrontendSharedVariablesRequest(c.Server, id, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + func (c *Client) ListFrontends(ctx context.Context, id ProjectId, params *ListFrontendsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListFrontendsRequest(c.Server, id, params) if err != nil { @@ -14140,6 +16403,78 @@ func (c *Client) CreateFrontendCustomDomain(ctx context.Context, id ProjectId, f return c.Client.Do(req) } +func (c *Client) ListFrontendFunctionRoutes(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListFrontendFunctionRoutesRequest(c.Server, id, frontendId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateFrontendFunctionRouteWithBody(ctx context.Context, id ProjectId, frontendId FrontendId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateFrontendFunctionRouteRequestWithBody(c.Server, id, frontendId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateFrontendFunctionRoute(ctx context.Context, id ProjectId, frontendId FrontendId, body CreateFrontendFunctionRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateFrontendFunctionRouteRequest(c.Server, id, frontendId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteFrontendFunctionRoute(ctx context.Context, id ProjectId, frontendId FrontendId, routeId FrontendFunctionRouteId, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteFrontendFunctionRouteRequest(c.Server, id, frontendId, routeId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateFrontendFunctionRouteWithBody(ctx context.Context, id ProjectId, frontendId FrontendId, routeId FrontendFunctionRouteId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateFrontendFunctionRouteRequestWithBody(c.Server, id, frontendId, routeId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateFrontendFunctionRoute(ctx context.Context, id ProjectId, frontendId FrontendId, routeId FrontendFunctionRouteId, body UpdateFrontendFunctionRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateFrontendFunctionRouteRequest(c.Server, id, frontendId, routeId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + func (c *Client) RedeployFrontend(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewRedeployFrontendRequest(c.Server, id, frontendId) if err != nil { @@ -14416,30 +16751,6 @@ func (c *Client) SetProjectGitProductionBranch(ctx context.Context, id ProjectId return c.Client.Do(req) } -func (c *Client) CreateProjectGitRepositoryWithBody(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateProjectGitRepositoryRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) CreateProjectGitRepository(ctx context.Context, id ProjectId, body CreateProjectGitRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateProjectGitRepositoryRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - func (c *Client) GetProjectGitDeploySettings(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetProjectGitDeploySettingsRequest(c.Server, id) if err != nil { @@ -14764,6 +17075,162 @@ func (c *Client) GetRealtimeStats(ctx context.Context, id ProjectId, reqEditors return c.Client.Do(req) } +func (c *Client) ExecuteSandboxWithBody(ctx context.Context, id openapi_types.UUID, params *ExecuteSandboxParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExecuteSandboxRequestWithBody(c.Server, id, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ExecuteSandbox(ctx context.Context, id openapi_types.UUID, params *ExecuteSandboxParams, body ExecuteSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExecuteSandboxRequest(c.Server, id, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ListSandboxSessions(ctx context.Context, id openapi_types.UUID, params *ListSandboxSessionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListSandboxSessionsRequest(c.Server, id, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateSandboxSessionWithBody(ctx context.Context, id openapi_types.UUID, params *CreateSandboxSessionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSandboxSessionRequestWithBody(c.Server, id, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateSandboxSession(ctx context.Context, id openapi_types.UUID, params *CreateSandboxSessionParams, body CreateSandboxSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSandboxSessionRequest(c.Server, id, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ListSandboxes(ctx context.Context, id openapi_types.UUID, params *ListSandboxesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListSandboxesRequest(c.Server, id, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateSandboxWithBody(ctx context.Context, id openapi_types.UUID, params *CreateSandboxParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSandboxRequestWithBody(c.Server, id, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateSandbox(ctx context.Context, id openapi_types.UUID, params *CreateSandboxParams, body CreateSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSandboxRequest(c.Server, id, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteSandbox(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteSandboxRequest(c.Server, id, sandboxId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetSandbox(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSandboxRequest(c.Server, id, sandboxId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateSandboxWithBody(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSandboxRequestWithBody(c.Server, id, sandboxId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateSandbox(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, body UpdateSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSandboxRequest(c.Server, id, sandboxId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ListSandboxDeployments(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, params *ListSandboxDeploymentsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListSandboxDeploymentsRequest(c.Server, id, sandboxId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + func (c *Client) ListProjectSchedulers(ctx context.Context, id ProjectId, params *ListProjectSchedulersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListProjectSchedulersRequest(c.Server, id, params) if err != nil { @@ -14848,6 +17315,78 @@ func (c *Client) RegenerateServiceKey(ctx context.Context, id ProjectId, keyId o return c.Client.Do(req) } +func (c *Client) ReplaceSharedVariablesWithBody(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewReplaceSharedVariablesRequestWithBody(c.Server, id, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ReplaceSharedVariables(ctx context.Context, id ProjectId, body ReplaceSharedVariablesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewReplaceSharedVariablesRequest(c.Server, id, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CancelProjectSourceExport(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCancelProjectSourceExportRequest(c.Server, id) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetProjectSourceExport(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetProjectSourceExportRequest(c.Server, id) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ExportProjectSourceWithBody(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExportProjectSourceRequestWithBody(c.Server, id, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ExportProjectSource(ctx context.Context, id ProjectId, body ExportProjectSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExportProjectSourceRequest(c.Server, id, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + func (c *Client) ListStorageBuckets(ctx context.Context, id ProjectId, params *ListStorageBucketsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListStorageBucketsRequest(c.Server, id, params) if err != nil { @@ -15112,6 +17651,198 @@ func (c *Client) DownloadPublicFile(ctx context.Context, projectId openapi_types return c.Client.Do(req) } +func (c *Client) TerminateSandboxSession(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTerminateSandboxSessionRequest(c.Server, sessionId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetSandboxSession(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSandboxSessionRequest(c.Server, sessionId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateSandboxSessionAccessWithBody(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSandboxSessionAccessRequestWithBody(c.Server, sessionId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateSandboxSessionAccess(ctx context.Context, sessionId openapi_types.UUID, body CreateSandboxSessionAccessJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSandboxSessionAccessRequest(c.Server, sessionId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ExecuteSandboxSessionWithBody(ctx context.Context, sessionId openapi_types.UUID, params *ExecuteSandboxSessionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExecuteSandboxSessionRequestWithBody(c.Server, sessionId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ExecuteSandboxSession(ctx context.Context, sessionId openapi_types.UUID, params *ExecuteSandboxSessionParams, body ExecuteSandboxSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExecuteSandboxSessionRequest(c.Server, sessionId, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ReadSandboxSessionFileWithBody(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewReadSandboxSessionFileRequestWithBody(c.Server, sessionId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ReadSandboxSessionFile(ctx context.Context, sessionId openapi_types.UUID, body ReadSandboxSessionFileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewReadSandboxSessionFileRequest(c.Server, sessionId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) WriteSandboxSessionFileWithBody(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWriteSandboxSessionFileRequestWithBody(c.Server, sessionId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) WriteSandboxSessionFile(ctx context.Context, sessionId openapi_types.UUID, body WriteSandboxSessionFileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWriteSandboxSessionFileRequest(c.Server, sessionId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) RevokeSandboxSession(ctx context.Context, sessionId openapi_types.UUID, subjectId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRevokeSandboxSessionRequest(c.Server, sessionId, subjectId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GrantSandboxSessionWithBody(ctx context.Context, sessionId openapi_types.UUID, subjectId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGrantSandboxSessionRequestWithBody(c.Server, sessionId, subjectId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GrantSandboxSession(ctx context.Context, sessionId openapi_types.UUID, subjectId openapi_types.UUID, body GrantSandboxSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGrantSandboxSessionRequest(c.Server, sessionId, subjectId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ResumeSandboxSession(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewResumeSandboxSessionRequest(c.Server, sessionId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SuspendSandboxSession(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSuspendSandboxSessionRequest(c.Server, sessionId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ListSandboxPresets(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListSandboxPresetsRequest(c.Server) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + func (c *Client) ListStorageObjects(ctx context.Context, bucketName BucketName, params *ListStorageObjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListStorageObjectsRequest(c.Server, bucketName, params) if err != nil { @@ -17612,6 +20343,68 @@ func NewListDeploymentsRequest(server string, params *ListDeploymentsParams) (*h return req, nil } +// NewStartDurableExecutionFromApplicationRequest calls the generic StartDurableExecutionFromApplication builder with application/json body +func NewStartDurableExecutionFromApplicationRequest(server string, functionId DurableFunctionId, params *StartDurableExecutionFromApplicationParams, body StartDurableExecutionFromApplicationJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewStartDurableExecutionFromApplicationRequestWithBody(server, functionId, params, "application/json", bodyReader) +} + +// NewStartDurableExecutionFromApplicationRequestWithBody generates requests for StartDurableExecutionFromApplication with any type of body +func NewStartDurableExecutionFromApplicationRequestWithBody(server string, functionId DurableFunctionId, params *StartDurableExecutionFromApplicationParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "functionId", functionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/durable-functions/%s/executions", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + if params.XVolcanoExecutionName != nil { + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Volcano-Execution-Name", *params.XVolcanoExecutionName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + req.Header.Set("X-Volcano-Execution-Name", headerParam0) + } + + } + + return req, nil +} + // NewGetDefaultEmailTemplatesRequest generates requests for GetDefaultEmailTemplates func NewGetDefaultEmailTemplatesRequest(server string) (*http.Request, error) { var err error @@ -18547,6 +21340,214 @@ func NewAcquireProjectLockRequestWithBody(server string, key LockKey, params *Ac return req, nil } +// NewCallMCPRequest calls the generic CallMCP builder with application/json body +func NewCallMCPRequest(server string, body CallMCPJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCallMCPRequestWithBody(server, "application/json", bodyReader) +} + +// NewCallMCPRequestWithBody generates requests for CallMCP with any type of body +func NewCallMCPRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/mcp") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetOpenAPISpecJSONRequest generates requests for GetOpenAPISpecJSON +func NewGetOpenAPISpecJSONRequest(server string, params *GetOpenAPISpecJSONParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/openapi.json") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + if params.IfNoneMatch != nil { + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "If-None-Match", *params.IfNoneMatch, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + req.Header.Set("If-None-Match", headerParam0) + } + + } + + return req, nil +} + +// NewHeadOpenAPISpecJSONRequest generates requests for HeadOpenAPISpecJSON +func NewHeadOpenAPISpecJSONRequest(server string, params *HeadOpenAPISpecJSONParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/openapi.json") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest(http.MethodHead, queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + if params.IfNoneMatch != nil { + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "If-None-Match", *params.IfNoneMatch, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + req.Header.Set("If-None-Match", headerParam0) + } + + } + + return req, nil +} + +// NewGetOpenAPISpecYAMLRequest generates requests for GetOpenAPISpecYAML +func NewGetOpenAPISpecYAMLRequest(server string, params *GetOpenAPISpecYAMLParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/openapi.yaml") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + if params.IfNoneMatch != nil { + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "If-None-Match", *params.IfNoneMatch, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + req.Header.Set("If-None-Match", headerParam0) + } + + } + + return req, nil +} + +// NewHeadOpenAPISpecYAMLRequest generates requests for HeadOpenAPISpecYAML +func NewHeadOpenAPISpecYAMLRequest(server string, params *HeadOpenAPISpecYAMLParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/openapi.yaml") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest(http.MethodHead, queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + if params.IfNoneMatch != nil { + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "If-None-Match", *params.IfNoneMatch, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + req.Header.Set("If-None-Match", headerParam0) + } + + } + + return req, nil +} + // NewListProjectsRequest generates requests for ListProjects func NewListProjectsRequest(server string, params *ListProjectsParams) (*http.Request, error) { var err error @@ -18647,6 +21648,18 @@ func NewListProjectsRequest(server string, params *ListProjectsParams) (*http.Re } + if params.Include != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", false, "include", *params.Include, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } @@ -20147,8 +23160,8 @@ func NewConfigureAuthMethodsRequestWithBody(server string, id ProjectId, content return req, nil } -// NewListAuthUsersRequest generates requests for ListAuthUsers -func NewListAuthUsersRequest(server string, id ProjectId, params *ListAuthUsersParams) (*http.Request, error) { +// NewGetAuthPageAppearanceRequest generates requests for GetAuthPageAppearance +func NewGetAuthPageAppearanceRequest(server string, id ProjectId) (*http.Request, error) { var err error var pathParam0 string @@ -20163,7 +23176,7 @@ func NewListAuthUsersRequest(server string, id ProjectId, params *ListAuthUsersP return nil, err } - operationPath := fmt.Sprintf("/projects/%s/auth/users", pathParam0) + operationPath := fmt.Sprintf("/projects/%s/auth/pages/appearance", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -20173,106 +23186,41 @@ func NewListAuthUsersRequest(server string, id ProjectId, params *ListAuthUsersP return nil, err } - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Cursor != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cursor", *params.Cursor, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.EndingBefore != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ending_before", *params.EndingBefore, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + if err != nil { + return nil, err + } - if params.Search != nil { + return req, nil +} - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } +// NewDeleteAuthPageThemeRequest generates requests for DeleteAuthPageTheme +func NewDeleteAuthPageThemeRequest(server string, id ProjectId) (*http.Request, error) { + var err error - } + var pathParam0 string - if params.Status != nil { + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - } + operationPath := fmt.Sprintf("/projects/%s/auth/pages/theme", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -20280,20 +23228,24 @@ func NewListAuthUsersRequest(server string, id ProjectId, params *ListAuthUsersP return req, nil } -// NewDeleteAuthUserRequest generates requests for DeleteAuthUser -func NewDeleteAuthUserRequest(server string, id ProjectId, userId openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) +// NewUpdateAuthPageThemeRequest calls the generic UpdateAuthPageTheme builder with application/json body +func NewUpdateAuthPageThemeRequest(server string, id ProjectId, body UpdateAuthPageThemeJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewUpdateAuthPageThemeRequestWithBody(server, id, "application/json", bodyReader) +} - var pathParam1 string +// NewUpdateAuthPageThemeRequestWithBody generates requests for UpdateAuthPageTheme with any type of body +func NewUpdateAuthPageThemeRequestWithBody(server string, id ProjectId, contentType string, body io.Reader) (*http.Request, error) { + var err error - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -20303,7 +23255,7 @@ func NewDeleteAuthUserRequest(server string, id ProjectId, userId openapi_types. return nil, err } - operationPath := fmt.Sprintf("/projects/%s/auth/users/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/projects/%s/auth/pages/theme", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -20313,16 +23265,18 @@ func NewDeleteAuthUserRequest(server string, id ProjectId, userId openapi_types. return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewGetAuthUserRequest generates requests for GetAuthUser -func NewGetAuthUserRequest(server string, id ProjectId, userId openapi_types.UUID) (*http.Request, error) { +// NewDeleteAuthPageLayoutRequest generates requests for DeleteAuthPageLayout +func NewDeleteAuthPageLayoutRequest(server string, id ProjectId, pageType HostedAuthPageType) (*http.Request, error) { var err error var pathParam0 string @@ -20334,7 +23288,7 @@ func NewGetAuthUserRequest(server string, id ProjectId, userId openapi_types.UUI var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "pageType", pageType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -20344,7 +23298,7 @@ func NewGetAuthUserRequest(server string, id ProjectId, userId openapi_types.UUI return nil, err } - operationPath := fmt.Sprintf("/projects/%s/auth/users/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/projects/%s/auth/pages/%s/layout", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -20354,7 +23308,7 @@ func NewGetAuthUserRequest(server string, id ProjectId, userId openapi_types.UUI return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -20362,19 +23316,19 @@ func NewGetAuthUserRequest(server string, id ProjectId, userId openapi_types.UUI return req, nil } -// NewBanAuthUserRequest calls the generic BanAuthUser builder with application/json body -func NewBanAuthUserRequest(server string, id ProjectId, userId openapi_types.UUID, body BanAuthUserJSONRequestBody) (*http.Request, error) { +// NewUpdateAuthPageLayoutRequest calls the generic UpdateAuthPageLayout builder with application/json body +func NewUpdateAuthPageLayoutRequest(server string, id ProjectId, pageType HostedAuthPageType, body UpdateAuthPageLayoutJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewBanAuthUserRequestWithBody(server, id, userId, "application/json", bodyReader) + return NewUpdateAuthPageLayoutRequestWithBody(server, id, pageType, "application/json", bodyReader) } -// NewBanAuthUserRequestWithBody generates requests for BanAuthUser with any type of body -func NewBanAuthUserRequestWithBody(server string, id ProjectId, userId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateAuthPageLayoutRequestWithBody generates requests for UpdateAuthPageLayout with any type of body +func NewUpdateAuthPageLayoutRequestWithBody(server string, id ProjectId, pageType HostedAuthPageType, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -20386,7 +23340,7 @@ func NewBanAuthUserRequestWithBody(server string, id ProjectId, userId openapi_t var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "pageType", pageType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -20396,7 +23350,7 @@ func NewBanAuthUserRequestWithBody(server string, id ProjectId, userId openapi_t return nil, err } - operationPath := fmt.Sprintf("/projects/%s/auth/users/%s/ban", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/projects/%s/auth/pages/%s/layout", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -20406,7 +23360,7 @@ func NewBanAuthUserRequestWithBody(server string, id ProjectId, userId openapi_t return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } @@ -20416,8 +23370,8 @@ func NewBanAuthUserRequestWithBody(server string, id ProjectId, userId openapi_t return req, nil } -// NewDeleteAllUserSessionsRequest generates requests for DeleteAllUserSessions -func NewDeleteAllUserSessionsRequest(server string, id ProjectId, userId openapi_types.UUID) (*http.Request, error) { +// NewRenderAuthPagePreviewRequest generates requests for RenderAuthPagePreview +func NewRenderAuthPagePreviewRequest(server string, id ProjectId, pageType HostedAuthPageType, params *RenderAuthPagePreviewParams) (*http.Request, error) { var err error var pathParam0 string @@ -20429,7 +23383,7 @@ func NewDeleteAllUserSessionsRequest(server string, id ProjectId, userId openapi var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "pageType", pageType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -20439,7 +23393,7 @@ func NewDeleteAllUserSessionsRequest(server string, id ProjectId, userId openapi return nil, err } - operationPath := fmt.Sprintf("/projects/%s/auth/users/%s/sessions", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/projects/%s/auth/pages/%s/preview", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -20449,7 +23403,30 @@ func NewDeleteAllUserSessionsRequest(server string, id ProjectId, userId openapi return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). + queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ticket", params.Ticket, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + } + + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -20457,8 +23434,19 @@ func NewDeleteAllUserSessionsRequest(server string, id ProjectId, userId openapi return req, nil } -// NewListUserSessionsRequest generates requests for ListUserSessions -func NewListUserSessionsRequest(server string, id ProjectId, userId openapi_types.UUID, params *ListUserSessionsParams) (*http.Request, error) { +// NewPreviewAuthPageRequest calls the generic PreviewAuthPage builder with application/json body +func NewPreviewAuthPageRequest(server string, id ProjectId, pageType HostedAuthPageType, body PreviewAuthPageJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPreviewAuthPageRequestWithBody(server, id, pageType, "application/json", bodyReader) +} + +// NewPreviewAuthPageRequestWithBody generates requests for PreviewAuthPage with any type of body +func NewPreviewAuthPageRequestWithBody(server string, id ProjectId, pageType HostedAuthPageType, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -20470,7 +23458,7 @@ func NewListUserSessionsRequest(server string, id ProjectId, userId openapi_type var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "pageType", pageType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -20480,7 +23468,43 @@ func NewListUserSessionsRequest(server string, id ProjectId, userId openapi_type return nil, err } - operationPath := fmt.Sprintf("/projects/%s/auth/users/%s/sessions", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/projects/%s/auth/pages/%s/preview", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewListAuthUsersRequest generates requests for ListAuthUsers +func NewListAuthUsersRequest(server string, id ProjectId, params *ListAuthUsersParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/projects/%s/auth/users", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -20523,9 +23547,9 @@ func NewListUserSessionsRequest(server string, id ProjectId, userId openapi_type } - if params.Sort != nil { + if params.Cursor != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "sort", *params.Sort, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cursor", *params.Cursor, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -20535,9 +23559,9 @@ func NewListUserSessionsRequest(server string, id ProjectId, userId openapi_type } - if params.Status != nil { + if params.EndingBefore != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ending_before", *params.EndingBefore, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -20547,9 +23571,9 @@ func NewListUserSessionsRequest(server string, id ProjectId, userId openapi_type } - if params.Cursor != nil { + if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cursor", *params.Cursor, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -20559,9 +23583,9 @@ func NewListUserSessionsRequest(server string, id ProjectId, userId openapi_type } - if params.EndingBefore != nil { + if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ending_before", *params.EndingBefore, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -20571,9 +23595,326 @@ func NewListUserSessionsRequest(server string, id ProjectId, userId openapi_type } - if params.Offset != nil { + if params.Status != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + } + + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewDeleteAuthUserRequest generates requests for DeleteAuthUser +func NewDeleteAuthUserRequest(server string, id ProjectId, userId openapi_types.UUID) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/projects/%s/auth/users/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetAuthUserRequest generates requests for GetAuthUser +func NewGetAuthUserRequest(server string, id ProjectId, userId openapi_types.UUID) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/projects/%s/auth/users/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewBanAuthUserRequest calls the generic BanAuthUser builder with application/json body +func NewBanAuthUserRequest(server string, id ProjectId, userId openapi_types.UUID, body BanAuthUserJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewBanAuthUserRequestWithBody(server, id, userId, "application/json", bodyReader) +} + +// NewBanAuthUserRequestWithBody generates requests for BanAuthUser with any type of body +func NewBanAuthUserRequestWithBody(server string, id ProjectId, userId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/projects/%s/auth/users/%s/ban", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDeleteAllUserSessionsRequest generates requests for DeleteAllUserSessions +func NewDeleteAllUserSessionsRequest(server string, id ProjectId, userId openapi_types.UUID) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/projects/%s/auth/users/%s/sessions", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewListUserSessionsRequest generates requests for ListUserSessions +func NewListUserSessionsRequest(server string, id ProjectId, userId openapi_types.UUID, params *ListUserSessionsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/projects/%s/auth/users/%s/sessions", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). + queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if params.Limit != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if params.Sort != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "sort", *params.Sort, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if params.Status != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if params.Cursor != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cursor", *params.Cursor, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if params.EndingBefore != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ending_before", *params.EndingBefore, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if params.Offset != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -20928,6 +24269,18 @@ func NewListDatabasesRequest(server string, id ProjectId, params *ListDatabasesP } + if params.Status != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } @@ -23459,6 +26812,53 @@ func NewUpdateEmailTemplateRequestWithBody(server string, id ProjectId, pType Up return req, nil } +// NewReplaceFrontendSharedVariablesRequest calls the generic ReplaceFrontendSharedVariables builder with application/json body +func NewReplaceFrontendSharedVariablesRequest(server string, id ProjectId, body ReplaceFrontendSharedVariablesJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewReplaceFrontendSharedVariablesRequestWithBody(server, id, "application/json", bodyReader) +} + +// NewReplaceFrontendSharedVariablesRequestWithBody generates requests for ReplaceFrontendSharedVariables with any type of body +func NewReplaceFrontendSharedVariablesRequestWithBody(server string, id ProjectId, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/projects/%s/frontend-shared-variables", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + // NewListFrontendsRequest generates requests for ListFrontends func NewListFrontendsRequest(server string, id ProjectId, params *ListFrontendsParams) (*http.Request, error) { var err error @@ -23914,6 +27314,210 @@ func NewCreateFrontendCustomDomainRequestWithBody(server string, id ProjectId, f return req, nil } +// NewListFrontendFunctionRoutesRequest generates requests for ListFrontendFunctionRoutes +func NewListFrontendFunctionRoutesRequest(server string, id ProjectId, frontendId FrontendId) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "frontendId", frontendId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/projects/%s/frontends/%s/function-routes", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreateFrontendFunctionRouteRequest calls the generic CreateFrontendFunctionRoute builder with application/json body +func NewCreateFrontendFunctionRouteRequest(server string, id ProjectId, frontendId FrontendId, body CreateFrontendFunctionRouteJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateFrontendFunctionRouteRequestWithBody(server, id, frontendId, "application/json", bodyReader) +} + +// NewCreateFrontendFunctionRouteRequestWithBody generates requests for CreateFrontendFunctionRoute with any type of body +func NewCreateFrontendFunctionRouteRequestWithBody(server string, id ProjectId, frontendId FrontendId, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "frontendId", frontendId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/projects/%s/frontends/%s/function-routes", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDeleteFrontendFunctionRouteRequest generates requests for DeleteFrontendFunctionRoute +func NewDeleteFrontendFunctionRouteRequest(server string, id ProjectId, frontendId FrontendId, routeId FrontendFunctionRouteId) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "frontendId", frontendId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "routeId", routeId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/projects/%s/frontends/%s/function-routes/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateFrontendFunctionRouteRequest calls the generic UpdateFrontendFunctionRoute builder with application/json body +func NewUpdateFrontendFunctionRouteRequest(server string, id ProjectId, frontendId FrontendId, routeId FrontendFunctionRouteId, body UpdateFrontendFunctionRouteJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateFrontendFunctionRouteRequestWithBody(server, id, frontendId, routeId, "application/json", bodyReader) +} + +// NewUpdateFrontendFunctionRouteRequestWithBody generates requests for UpdateFrontendFunctionRoute with any type of body +func NewUpdateFrontendFunctionRouteRequestWithBody(server string, id ProjectId, frontendId FrontendId, routeId FrontendFunctionRouteId, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "frontendId", frontendId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "routeId", routeId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/projects/%s/frontends/%s/function-routes/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + // NewRedeployFrontendRequest generates requests for RedeployFrontend func NewRedeployFrontendRequest(server string, id ProjectId, frontendId FrontendId) (*http.Request, error) { var err error @@ -24846,53 +28450,6 @@ func NewSetProjectGitProductionBranchRequestWithBody(server string, id ProjectId return req, nil } -// NewCreateProjectGitRepositoryRequest calls the generic CreateProjectGitRepository builder with application/json body -func NewCreateProjectGitRepositoryRequest(server string, id ProjectId, body CreateProjectGitRepositoryJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCreateProjectGitRepositoryRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewCreateProjectGitRepositoryRequestWithBody generates requests for CreateProjectGitRepository with any type of body -func NewCreateProjectGitRepositoryRequestWithBody(server string, id ProjectId, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/projects/%s/git-connection/repository", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - // NewGetProjectGitDeploySettingsRequest generates requests for GetProjectGitDeploySettings func NewGetProjectGitDeploySettingsRequest(server string, id ProjectId) (*http.Request, error) { var err error @@ -25789,8 +29346,19 @@ func NewGetRealtimeStatsRequest(server string, id ProjectId) (*http.Request, err return req, nil } -// NewListProjectSchedulersRequest generates requests for ListProjectSchedulers -func NewListProjectSchedulersRequest(server string, id ProjectId, params *ListProjectSchedulersParams) (*http.Request, error) { +// NewExecuteSandboxRequest calls the generic ExecuteSandbox builder with application/json body +func NewExecuteSandboxRequest(server string, id openapi_types.UUID, params *ExecuteSandboxParams, body ExecuteSandboxJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewExecuteSandboxRequestWithBody(server, id, params, "application/json", bodyReader) +} + +// NewExecuteSandboxRequestWithBody generates requests for ExecuteSandbox with any type of body +func NewExecuteSandboxRequestWithBody(server string, id openapi_types.UUID, params *ExecuteSandboxParams, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -25805,7 +29373,7 @@ func NewListProjectSchedulersRequest(server string, id ProjectId, params *ListPr return nil, err } - operationPath := fmt.Sprintf("/projects/%s/schedulers", pathParam0) + operationPath := fmt.Sprintf("/projects/%s/sandbox-executions", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -25815,103 +29383,31 @@ func NewListProjectSchedulersRequest(server string, id ProjectId, params *ListPr return nil, err } - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Cursor != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cursor", *params.Cursor, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.EndingBefore != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ending_before", *params.EndingBefore, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + if err != nil { + return nil, err + } - } + req.Header.Add("Content-Type", contentType) - if params.Search != nil { + if params != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } + var headerParam0 string + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "Idempotency-Key", params.IdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } + req.Header.Set("Idempotency-Key", headerParam0) - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err } return req, nil } -// NewListServiceKeysRequest generates requests for ListServiceKeys -func NewListServiceKeysRequest(server string, id ProjectId, params *ListServiceKeysParams) (*http.Request, error) { +// NewListSandboxSessionsRequest generates requests for ListSandboxSessions +func NewListSandboxSessionsRequest(server string, id openapi_types.UUID, params *ListSandboxSessionsParams) (*http.Request, error) { var err error var pathParam0 string @@ -25926,7 +29422,7 @@ func NewListServiceKeysRequest(server string, id ProjectId, params *ListServiceK return nil, err } - operationPath := fmt.Sprintf("/projects/%s/service-keys", pathParam0) + operationPath := fmt.Sprintf("/projects/%s/sandbox-sessions", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -25945,18 +29441,6 @@ func NewListServiceKeysRequest(server string, id ProjectId, params *ListServiceK // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - if params.Limit != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { @@ -25981,42 +29465,6 @@ func NewListServiceKeysRequest(server string, id ProjectId, params *ListServiceK } - if params.EndingBefore != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ending_before", *params.EndingBefore, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } @@ -26031,19 +29479,19 @@ func NewListServiceKeysRequest(server string, id ProjectId, params *ListServiceK return req, nil } -// NewCreateServiceKeyRequest calls the generic CreateServiceKey builder with application/json body -func NewCreateServiceKeyRequest(server string, id ProjectId, body CreateServiceKeyJSONRequestBody) (*http.Request, error) { +// NewCreateSandboxSessionRequest calls the generic CreateSandboxSession builder with application/json body +func NewCreateSandboxSessionRequest(server string, id openapi_types.UUID, params *CreateSandboxSessionParams, body CreateSandboxSessionJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateServiceKeyRequestWithBody(server, id, "application/json", bodyReader) + return NewCreateSandboxSessionRequestWithBody(server, id, params, "application/json", bodyReader) } -// NewCreateServiceKeyRequestWithBody generates requests for CreateServiceKey with any type of body -func NewCreateServiceKeyRequestWithBody(server string, id ProjectId, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateSandboxSessionRequestWithBody generates requests for CreateSandboxSession with any type of body +func NewCreateSandboxSessionRequestWithBody(server string, id openapi_types.UUID, params *CreateSandboxSessionParams, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -26058,7 +29506,7 @@ func NewCreateServiceKeyRequestWithBody(server string, id ProjectId, contentType return nil, err } - operationPath := fmt.Sprintf("/projects/%s/service-keys", pathParam0) + operationPath := fmt.Sprintf("/projects/%s/sandbox-sessions", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -26075,134 +29523,24 @@ func NewCreateServiceKeyRequestWithBody(server string, id ProjectId, contentType req.Header.Add("Content-Type", contentType) - return req, nil -} - -// NewDeleteServiceKeyRequest generates requests for DeleteServiceKey -func NewDeleteServiceKeyRequest(server string, id ProjectId, keyId openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "keyId", keyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/projects/%s/service-keys/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetServiceKeyRequest generates requests for GetServiceKey -func NewGetServiceKeyRequest(server string, id ProjectId, keyId openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "keyId", keyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/projects/%s/service-keys/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewRegenerateServiceKeyRequest generates requests for RegenerateServiceKey -func NewRegenerateServiceKeyRequest(server string, id ProjectId, keyId openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "keyId", keyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) - if err != nil { - return nil, err - } + if params != nil { - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + var headerParam0 string - operationPath := fmt.Sprintf("/projects/%s/service-keys/%s/regenerate", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "Idempotency-Key", params.IdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + req.Header.Set("Idempotency-Key", headerParam0) - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) - if err != nil { - return nil, err } return req, nil } -// NewListStorageBucketsRequest generates requests for ListStorageBuckets -func NewListStorageBucketsRequest(server string, id ProjectId, params *ListStorageBucketsParams) (*http.Request, error) { +// NewListSandboxesRequest generates requests for ListSandboxes +func NewListSandboxesRequest(server string, id openapi_types.UUID, params *ListSandboxesParams) (*http.Request, error) { var err error var pathParam0 string @@ -26217,7 +29555,7 @@ func NewListStorageBucketsRequest(server string, id ProjectId, params *ListStora return nil, err } - operationPath := fmt.Sprintf("/projects/%s/storage/buckets", pathParam0) + operationPath := fmt.Sprintf("/projects/%s/sandboxes", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -26260,42 +29598,6 @@ func NewListStorageBucketsRequest(server string, id ProjectId, params *ListStora } - if params.EndingBefore != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ending_before", *params.EndingBefore, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - if encoded := queryValues.Encode(); encoded != "" { rawQueryFragments = append(rawQueryFragments, encoded) } @@ -26310,19 +29612,19 @@ func NewListStorageBucketsRequest(server string, id ProjectId, params *ListStora return req, nil } -// NewCreateStorageBucketRequest calls the generic CreateStorageBucket builder with application/json body -func NewCreateStorageBucketRequest(server string, id ProjectId, body CreateStorageBucketJSONRequestBody) (*http.Request, error) { +// NewCreateSandboxRequest calls the generic CreateSandbox builder with application/json body +func NewCreateSandboxRequest(server string, id openapi_types.UUID, params *CreateSandboxParams, body CreateSandboxJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateStorageBucketRequestWithBody(server, id, "application/json", bodyReader) + return NewCreateSandboxRequestWithBody(server, id, params, "application/json", bodyReader) } -// NewCreateStorageBucketRequestWithBody generates requests for CreateStorageBucket with any type of body -func NewCreateStorageBucketRequestWithBody(server string, id ProjectId, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateSandboxRequestWithBody generates requests for CreateSandbox with any type of body +func NewCreateSandboxRequestWithBody(server string, id openapi_types.UUID, params *CreateSandboxParams, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -26337,7 +29639,7 @@ func NewCreateStorageBucketRequestWithBody(server string, id ProjectId, contentT return nil, err } - operationPath := fmt.Sprintf("/projects/%s/storage/buckets", pathParam0) + operationPath := fmt.Sprintf("/projects/%s/sandboxes", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -26354,11 +29656,24 @@ func NewCreateStorageBucketRequestWithBody(server string, id ProjectId, contentT req.Header.Add("Content-Type", contentType) + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "Idempotency-Key", params.IdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } + + req.Header.Set("Idempotency-Key", headerParam0) + + } + return req, nil } -// NewDeleteStorageBucketRequest generates requests for DeleteStorageBucket -func NewDeleteStorageBucketRequest(server string, id ProjectId, bucketName BucketName) (*http.Request, error) { +// NewDeleteSandboxRequest generates requests for DeleteSandbox +func NewDeleteSandboxRequest(server string, id openapi_types.UUID, sandboxId openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -26370,7 +29685,7 @@ func NewDeleteStorageBucketRequest(server string, id ProjectId, bucketName Bucke var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "sandboxId", sandboxId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -26380,7 +29695,7 @@ func NewDeleteStorageBucketRequest(server string, id ProjectId, bucketName Bucke return nil, err } - operationPath := fmt.Sprintf("/projects/%s/storage/buckets/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/projects/%s/sandboxes/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -26398,8 +29713,8 @@ func NewDeleteStorageBucketRequest(server string, id ProjectId, bucketName Bucke return req, nil } -// NewGetStorageBucketRequest generates requests for GetStorageBucket -func NewGetStorageBucketRequest(server string, id ProjectId, bucketName BucketName) (*http.Request, error) { +// NewGetSandboxRequest generates requests for GetSandbox +func NewGetSandboxRequest(server string, id openapi_types.UUID, sandboxId openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -26411,7 +29726,7 @@ func NewGetStorageBucketRequest(server string, id ProjectId, bucketName BucketNa var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "sandboxId", sandboxId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -26421,7 +29736,7 @@ func NewGetStorageBucketRequest(server string, id ProjectId, bucketName BucketNa return nil, err } - operationPath := fmt.Sprintf("/projects/%s/storage/buckets/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/projects/%s/sandboxes/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -26439,19 +29754,19 @@ func NewGetStorageBucketRequest(server string, id ProjectId, bucketName BucketNa return req, nil } -// NewUpdateStorageBucketRequest calls the generic UpdateStorageBucket builder with application/json body -func NewUpdateStorageBucketRequest(server string, id ProjectId, bucketName BucketName, body UpdateStorageBucketJSONRequestBody) (*http.Request, error) { +// NewUpdateSandboxRequest calls the generic UpdateSandbox builder with application/json body +func NewUpdateSandboxRequest(server string, id openapi_types.UUID, sandboxId openapi_types.UUID, body UpdateSandboxJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateStorageBucketRequestWithBody(server, id, bucketName, "application/json", bodyReader) + return NewUpdateSandboxRequestWithBody(server, id, sandboxId, "application/json", bodyReader) } -// NewUpdateStorageBucketRequestWithBody generates requests for UpdateStorageBucket with any type of body -func NewUpdateStorageBucketRequestWithBody(server string, id ProjectId, bucketName BucketName, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateSandboxRequestWithBody generates requests for UpdateSandbox with any type of body +func NewUpdateSandboxRequestWithBody(server string, id openapi_types.UUID, sandboxId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -26463,7 +29778,7 @@ func NewUpdateStorageBucketRequestWithBody(server string, id ProjectId, bucketNa var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "sandboxId", sandboxId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -26473,7 +29788,7 @@ func NewUpdateStorageBucketRequestWithBody(server string, id ProjectId, bucketNa return nil, err } - operationPath := fmt.Sprintf("/projects/%s/storage/buckets/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/projects/%s/sandboxes/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -26493,60 +29808,8 @@ func NewUpdateStorageBucketRequestWithBody(server string, id ProjectId, bucketNa return req, nil } -// NewListStoragePoliciesRequest generates requests for ListStoragePolicies -func NewListStoragePoliciesRequest(server string, id ProjectId, bucketName BucketName) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/projects/%s/storage/buckets/%s/policies", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCreateStoragePolicyRequest calls the generic CreateStoragePolicy builder with application/json body -func NewCreateStoragePolicyRequest(server string, id ProjectId, bucketName BucketName, body CreateStoragePolicyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCreateStoragePolicyRequestWithBody(server, id, bucketName, "application/json", bodyReader) -} - -// NewCreateStoragePolicyRequestWithBody generates requests for CreateStoragePolicy with any type of body -func NewCreateStoragePolicyRequestWithBody(server string, id ProjectId, bucketName BucketName, contentType string, body io.Reader) (*http.Request, error) { +// NewListSandboxDeploymentsRequest generates requests for ListSandboxDeployments +func NewListSandboxDeploymentsRequest(server string, id openapi_types.UUID, sandboxId openapi_types.UUID, params *ListSandboxDeploymentsParams) (*http.Request, error) { var err error var pathParam0 string @@ -26558,7 +29821,7 @@ func NewCreateStoragePolicyRequestWithBody(server string, id ProjectId, bucketNa var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "sandboxId", sandboxId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -26568,7 +29831,7 @@ func NewCreateStoragePolicyRequestWithBody(server string, id ProjectId, bucketNa return nil, err } - operationPath := fmt.Sprintf("/projects/%s/storage/buckets/%s/policies", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/projects/%s/sandboxes/%s/deployments", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -26578,57 +29841,46 @@ func NewCreateStoragePolicyRequestWithBody(server string, id ProjectId, bucketNa return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDeleteStoragePolicyRequest generates requests for DeleteStoragePolicy -func NewDeleteStoragePolicyRequest(server string, id ProjectId, bucketName BucketName, policyId openapi_types.UUID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) - if err != nil { - return nil, err - } + if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). + queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string - var pathParam1 string + if params.Limit != nil { - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } - var pathParam2 string + } - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "policyId", policyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) - if err != nil { - return nil, err - } + if params.Cursor != nil { - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cursor", *params.Cursor, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } - operationPath := fmt.Sprintf("/projects/%s/storage/buckets/%s/policies/%s", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + } - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -26636,8 +29888,8 @@ func NewDeleteStoragePolicyRequest(server string, id ProjectId, bucketName Bucke return req, nil } -// NewListStorageObjectsAdminRequest generates requests for ListStorageObjectsAdmin -func NewListStorageObjectsAdminRequest(server string, id ProjectId, params *ListStorageObjectsAdminParams) (*http.Request, error) { +// NewListProjectSchedulersRequest generates requests for ListProjectSchedulers +func NewListProjectSchedulersRequest(server string, id ProjectId, params *ListProjectSchedulersParams) (*http.Request, error) { var err error var pathParam0 string @@ -26652,7 +29904,7 @@ func NewListStorageObjectsAdminRequest(server string, id ProjectId, params *List return nil, err } - operationPath := fmt.Sprintf("/projects/%s/storage/objects", pathParam0) + operationPath := fmt.Sprintf("/projects/%s/schedulers", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -26671,18 +29923,6 @@ func NewListStorageObjectsAdminRequest(server string, id ProjectId, params *List // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string - if params.OwnerId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "owner_id", *params.OwnerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - if params.Page != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { @@ -26769,8 +30009,8 @@ func NewListStorageObjectsAdminRequest(server string, id ProjectId, params *List return req, nil } -// NewGetStorageStatsRequest generates requests for GetStorageStats -func NewGetStorageStatsRequest(server string, id ProjectId) (*http.Request, error) { +// NewListServiceKeysRequest generates requests for ListServiceKeys +func NewListServiceKeysRequest(server string, id ProjectId, params *ListServiceKeysParams) (*http.Request, error) { var err error var pathParam0 string @@ -26785,75 +30025,7 @@ func NewGetStorageStatsRequest(server string, id ProjectId) (*http.Request, erro return nil, err } - operationPath := fmt.Sprintf("/projects/%s/storage/stats", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetProjectUsageRequest generates requests for GetProjectUsage -func NewGetProjectUsageRequest(server string, id ProjectId) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/projects/%s/usage", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewListVariablesRequest generates requests for ListVariables -func NewListVariablesRequest(server string, id ProjectId, params *ListVariablesParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/projects/%s/variables", pathParam0) + operationPath := fmt.Sprintf("/projects/%s/service-keys", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -26958,19 +30130,19 @@ func NewListVariablesRequest(server string, id ProjectId, params *ListVariablesP return req, nil } -// NewCreateVariableRequest calls the generic CreateVariable builder with application/json body -func NewCreateVariableRequest(server string, id ProjectId, body CreateVariableJSONRequestBody) (*http.Request, error) { +// NewCreateServiceKeyRequest calls the generic CreateServiceKey builder with application/json body +func NewCreateServiceKeyRequest(server string, id ProjectId, body CreateServiceKeyJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateVariableRequestWithBody(server, id, "application/json", bodyReader) + return NewCreateServiceKeyRequestWithBody(server, id, "application/json", bodyReader) } -// NewCreateVariableRequestWithBody generates requests for CreateVariable with any type of body -func NewCreateVariableRequestWithBody(server string, id ProjectId, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateServiceKeyRequestWithBody generates requests for CreateServiceKey with any type of body +func NewCreateServiceKeyRequestWithBody(server string, id ProjectId, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -26985,7 +30157,7 @@ func NewCreateVariableRequestWithBody(server string, id ProjectId, contentType s return nil, err } - operationPath := fmt.Sprintf("/projects/%s/variables", pathParam0) + operationPath := fmt.Sprintf("/projects/%s/service-keys", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -27005,8 +30177,8 @@ func NewCreateVariableRequestWithBody(server string, id ProjectId, contentType s return req, nil } -// NewDeleteVariableRequest generates requests for DeleteVariable -func NewDeleteVariableRequest(server string, id ProjectId, name VariableName) (*http.Request, error) { +// NewDeleteServiceKeyRequest generates requests for DeleteServiceKey +func NewDeleteServiceKeyRequest(server string, id ProjectId, keyId openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -27018,7 +30190,7 @@ func NewDeleteVariableRequest(server string, id ProjectId, name VariableName) (* var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "keyId", keyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -27028,7 +30200,7 @@ func NewDeleteVariableRequest(server string, id ProjectId, name VariableName) (* return nil, err } - operationPath := fmt.Sprintf("/projects/%s/variables/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/projects/%s/service-keys/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -27046,8 +30218,8 @@ func NewDeleteVariableRequest(server string, id ProjectId, name VariableName) (* return req, nil } -// NewGetVariableRequest generates requests for GetVariable -func NewGetVariableRequest(server string, id ProjectId, name VariableName) (*http.Request, error) { +// NewGetServiceKeyRequest generates requests for GetServiceKey +func NewGetServiceKeyRequest(server string, id ProjectId, keyId openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string @@ -27059,7 +30231,7 @@ func NewGetVariableRequest(server string, id ProjectId, name VariableName) (*htt var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "keyId", keyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -27069,7 +30241,7 @@ func NewGetVariableRequest(server string, id ProjectId, name VariableName) (*htt return nil, err } - operationPath := fmt.Sprintf("/projects/%s/variables/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/projects/%s/service-keys/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -27087,19 +30259,60 @@ func NewGetVariableRequest(server string, id ProjectId, name VariableName) (*htt return req, nil } -// NewUpdateVariableRequest calls the generic UpdateVariable builder with application/json body -func NewUpdateVariableRequest(server string, id ProjectId, name VariableName, body UpdateVariableJSONRequestBody) (*http.Request, error) { +// NewRegenerateServiceKeyRequest generates requests for RegenerateServiceKey +func NewRegenerateServiceKeyRequest(server string, id ProjectId, keyId openapi_types.UUID) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "keyId", keyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/projects/%s/service-keys/%s/regenerate", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewReplaceSharedVariablesRequest calls the generic ReplaceSharedVariables builder with application/json body +func NewReplaceSharedVariablesRequest(server string, id ProjectId, body ReplaceSharedVariablesJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateVariableRequestWithBody(server, id, name, "application/json", bodyReader) + return NewReplaceSharedVariablesRequestWithBody(server, id, "application/json", bodyReader) } -// NewUpdateVariableRequestWithBody generates requests for UpdateVariable with any type of body -func NewUpdateVariableRequestWithBody(server string, id ProjectId, name VariableName, contentType string, body io.Reader) (*http.Request, error) { +// NewReplaceSharedVariablesRequestWithBody generates requests for ReplaceSharedVariables with any type of body +func NewReplaceSharedVariablesRequestWithBody(server string, id ProjectId, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -27109,9 +30322,38 @@ func NewUpdateVariableRequestWithBody(server string, id ProjectId, name Variable return nil, err } - var pathParam1 string + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + operationPath := fmt.Sprintf("/projects/%s/shared-variables", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewCancelProjectSourceExportRequest generates requests for CancelProjectSourceExport +func NewCancelProjectSourceExportRequest(server string, id ProjectId) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -27121,7 +30363,7 @@ func NewUpdateVariableRequestWithBody(server string, id ProjectId, name Variable return nil, err } - operationPath := fmt.Sprintf("/projects/%s/variables/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/projects/%s/source-export", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -27131,37 +30373,66 @@ func NewUpdateVariableRequestWithBody(server string, id ProjectId, name Variable return nil, err } - req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewDownloadPublicFileRequest generates requests for DownloadPublicFile -func NewDownloadPublicFileRequest(server string, projectId openapi_types.UUID, bucketName BucketName, path string) (*http.Request, error) { +// NewGetProjectSourceExportRequest generates requests for GetProjectSourceExport +func NewGetProjectSourceExportRequest(server string, id ProjectId) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectId", projectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } - var pathParam1 string + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + operationPath := fmt.Sprintf("/projects/%s/source-export", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - var pathParam2 string + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + if err != nil { + return nil, err + } - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "path", path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + return req, nil +} + +// NewExportProjectSourceRequest calls the generic ExportProjectSource builder with application/json body +func NewExportProjectSourceRequest(server string, id ProjectId, body ExportProjectSourceJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewExportProjectSourceRequestWithBody(server, id, "application/json", bodyReader) +} + +// NewExportProjectSourceRequestWithBody generates requests for ExportProjectSource with any type of body +func NewExportProjectSourceRequestWithBody(server string, id ProjectId, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -27171,7 +30442,7 @@ func NewDownloadPublicFileRequest(server string, projectId openapi_types.UUID, b return nil, err } - operationPath := fmt.Sprintf("/public/%s/%s/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/projects/%s/source-export", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -27181,21 +30452,23 @@ func NewDownloadPublicFileRequest(server string, projectId openapi_types.UUID, b return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewListStorageObjectsRequest generates requests for ListStorageObjects -func NewListStorageObjectsRequest(server string, bucketName BucketName, params *ListStorageObjectsParams) (*http.Request, error) { +// NewListStorageBucketsRequest generates requests for ListStorageBuckets +func NewListStorageBucketsRequest(server string, id ProjectId, params *ListStorageBucketsParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -27205,7 +30478,7 @@ func NewListStorageObjectsRequest(server string, bucketName BucketName, params * return nil, err } - operationPath := fmt.Sprintf("/storage/%s", pathParam0) + operationPath := fmt.Sprintf("/projects/%s/storage/buckets", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -27224,9 +30497,9 @@ func NewListStorageObjectsRequest(server string, bucketName BucketName, params * // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string - if params.Prefix != nil { + if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "prefix", *params.Prefix, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -27236,9 +30509,9 @@ func NewListStorageObjectsRequest(server string, bucketName BucketName, params * } - if params.Limit != nil { + if params.Cursor != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cursor", *params.Cursor, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -27248,9 +30521,33 @@ func NewListStorageObjectsRequest(server string, bucketName BucketName, params * } - if params.Cursor != nil { + if params.EndingBefore != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cursor", *params.Cursor, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ending_before", *params.EndingBefore, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if params.Offset != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if params.Search != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -27274,24 +30571,24 @@ func NewListStorageObjectsRequest(server string, bucketName BucketName, params * return req, nil } -// NewCopyStorageObjectRequest calls the generic CopyStorageObject builder with application/json body -func NewCopyStorageObjectRequest(server string, bucketName BucketName, body CopyStorageObjectJSONRequestBody) (*http.Request, error) { +// NewCreateStorageBucketRequest calls the generic CreateStorageBucket builder with application/json body +func NewCreateStorageBucketRequest(server string, id ProjectId, body CreateStorageBucketJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCopyStorageObjectRequestWithBody(server, bucketName, "application/json", bodyReader) + return NewCreateStorageBucketRequestWithBody(server, id, "application/json", bodyReader) } -// NewCopyStorageObjectRequestWithBody generates requests for CopyStorageObject with any type of body -func NewCopyStorageObjectRequestWithBody(server string, bucketName BucketName, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateStorageBucketRequestWithBody generates requests for CreateStorageBucket with any type of body +func NewCreateStorageBucketRequestWithBody(server string, id ProjectId, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -27301,7 +30598,7 @@ func NewCopyStorageObjectRequestWithBody(server string, bucketName BucketName, c return nil, err } - operationPath := fmt.Sprintf("/storage/%s/copy", pathParam0) + operationPath := fmt.Sprintf("/projects/%s/storage/buckets", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -27321,24 +30618,20 @@ func NewCopyStorageObjectRequestWithBody(server string, bucketName BucketName, c return req, nil } -// NewMoveStorageObjectRequest calls the generic MoveStorageObject builder with application/json body -func NewMoveStorageObjectRequest(server string, bucketName BucketName, body MoveStorageObjectJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +// NewDeleteStorageBucketRequest generates requests for DeleteStorageBucket +func NewDeleteStorageBucketRequest(server string, id ProjectId, bucketName BucketName) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewMoveStorageObjectRequestWithBody(server, bucketName, "application/json", bodyReader) -} -// NewMoveStorageObjectRequestWithBody generates requests for MoveStorageObject with any type of body -func NewMoveStorageObjectRequestWithBody(server string, bucketName BucketName, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string + var pathParam1 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -27348,7 +30641,7 @@ func NewMoveStorageObjectRequestWithBody(server string, bucketName BucketName, c return nil, err } - operationPath := fmt.Sprintf("/storage/%s/move", pathParam0) + operationPath := fmt.Sprintf("/projects/%s/storage/buckets/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -27358,30 +30651,28 @@ func NewMoveStorageObjectRequestWithBody(server string, bucketName BucketName, c return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewDeleteStorageObjectRequest generates requests for DeleteStorageObject -func NewDeleteStorageObjectRequest(server string, bucketName BucketName, path string, params *DeleteStorageObjectParams) (*http.Request, error) { +// NewGetStorageBucketRequest generates requests for GetStorageBucket +func NewGetStorageBucketRequest(server string, id ProjectId, bucketName BucketName) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "path", path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -27391,7 +30682,7 @@ func NewDeleteStorageObjectRequest(server string, bucketName BucketName, path st return nil, err } - operationPath := fmt.Sprintf("/storage/%s/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/projects/%s/storage/buckets/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -27401,43 +30692,39 @@ func NewDeleteStorageObjectRequest(server string, bucketName BucketName, path st return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } - if params != nil { - - if params.XUploadSession != nil { - var headerParam0 string - - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Upload-Session", *params.XUploadSession, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - req.Header.Set("X-Upload-Session", headerParam0) - } + return req, nil +} +// NewUpdateStorageBucketRequest calls the generic UpdateStorageBucket builder with application/json body +func NewUpdateStorageBucketRequest(server string, id ProjectId, bucketName BucketName, body UpdateStorageBucketJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err } - - return req, nil + bodyReader = bytes.NewReader(buf) + return NewUpdateStorageBucketRequestWithBody(server, id, bucketName, "application/json", bodyReader) } -// NewDownloadStorageObjectRequest generates requests for DownloadStorageObject -func NewDownloadStorageObjectRequest(server string, bucketName BucketName, path string, params *DownloadStorageObjectParams) (*http.Request, error) { +// NewUpdateStorageBucketRequestWithBody generates requests for UpdateStorageBucket with any type of body +func NewUpdateStorageBucketRequestWithBody(server string, id ProjectId, bucketName BucketName, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "path", path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -27447,7 +30734,7 @@ func NewDownloadStorageObjectRequest(server string, bucketName BucketName, path return nil, err } - operationPath := fmt.Sprintf("/storage/%s/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/projects/%s/storage/buckets/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -27457,65 +30744,30 @@ func NewDownloadStorageObjectRequest(server string, bucketName BucketName, path return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } - if params != nil { - - if params.Range != nil { - var headerParam0 string - - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "Range", *params.Range, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - req.Header.Set("Range", headerParam0) - } - - if params.XUploadSession != nil { - var headerParam1 string - - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Upload-Session", *params.XUploadSession, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - req.Header.Set("X-Upload-Session", headerParam1) - } - - } + req.Header.Add("Content-Type", contentType) return req, nil } -// NewUploadStorageObjectRequest calls the generic UploadStorageObject builder with application/json body -func NewUploadStorageObjectRequest(server string, bucketName BucketName, path string, params *UploadStorageObjectParams, body UploadStorageObjectJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUploadStorageObjectRequestWithBody(server, bucketName, path, params, "application/json", bodyReader) -} - -// NewUploadStorageObjectRequestWithBody generates requests for UploadStorageObject with any type of body -func NewUploadStorageObjectRequestWithBody(server string, bucketName BucketName, path string, params *UploadStorageObjectParams, contentType string, body io.Reader) (*http.Request, error) { +// NewListStoragePoliciesRequest generates requests for ListStoragePolicies +func NewListStoragePoliciesRequest(server string, id ProjectId, bucketName BucketName) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "path", path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -27525,7 +30777,7 @@ func NewUploadStorageObjectRequestWithBody(server string, bucketName BucketName, return nil, err } - operationPath := fmt.Sprintf("/storage/%s/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/projects/%s/storage/buckets/%s/policies", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -27535,56 +30787,39 @@ func NewUploadStorageObjectRequestWithBody(server string, bucketName BucketName, return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - - if params != nil { - - if params.XUploadSession != nil { - var headerParam0 string - - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Upload-Session", *params.XUploadSession, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - req.Header.Set("X-Upload-Session", headerParam0) - } - - if params.XUploadComplete != nil { - var headerParam1 string - - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Upload-Complete", *params.XUploadComplete, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - req.Header.Set("X-Upload-Complete", headerParam1) - } + return req, nil +} +// NewCreateStoragePolicyRequest calls the generic CreateStoragePolicy builder with application/json body +func NewCreateStoragePolicyRequest(server string, id ProjectId, bucketName BucketName, body CreateStoragePolicyJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err } - - return req, nil + bodyReader = bytes.NewReader(buf) + return NewCreateStoragePolicyRequestWithBody(server, id, bucketName, "application/json", bodyReader) } -// NewUploadPartRequestWithBody generates requests for UploadPart with any type of body -func NewUploadPartRequestWithBody(server string, bucketName BucketName, path string, params *UploadPartParams, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateStoragePolicyRequestWithBody generates requests for CreateStoragePolicy with any type of body +func NewCreateStoragePolicyRequestWithBody(server string, id ProjectId, bucketName BucketName, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "path", path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -27594,7 +30829,7 @@ func NewUploadPartRequestWithBody(server string, bucketName BucketName, path str return nil, err } - operationPath := fmt.Sprintf("/storage/%s/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/projects/%s/storage/buckets/%s/policies", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -27604,63 +30839,37 @@ func NewUploadPartRequestWithBody(server string, bucketName BucketName, path str return nil, err } - req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) - if params != nil { - - var headerParam0 string - - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Upload-Session", params.XUploadSession, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - req.Header.Set("X-Upload-Session", headerParam0) - - var headerParam1 string - - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Part-Number", params.XPartNumber, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "integer", Format: ""}) - if err != nil { - return nil, err - } - - req.Header.Set("X-Part-Number", headerParam1) - - } - return req, nil } -// NewUpdateStorageObjectVisibilityRequest calls the generic UpdateStorageObjectVisibility builder with application/json body -func NewUpdateStorageObjectVisibilityRequest(server string, bucketName BucketName, path string, body UpdateStorageObjectVisibilityJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUpdateStorageObjectVisibilityRequestWithBody(server, bucketName, path, "application/json", bodyReader) -} - -// NewUpdateStorageObjectVisibilityRequestWithBody generates requests for UpdateStorageObjectVisibility with any type of body -func NewUpdateStorageObjectVisibilityRequestWithBody(server string, bucketName BucketName, path string, contentType string, body io.Reader) (*http.Request, error) { +// NewDeleteStoragePolicyRequest generates requests for DeleteStoragePolicy +func NewDeleteStoragePolicyRequest(server string, id ProjectId, bucketName BucketName, policyId openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "path", path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "policyId", policyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -27670,7 +30879,7 @@ func NewUpdateStorageObjectVisibilityRequestWithBody(server string, bucketName B return nil, err } - operationPath := fmt.Sprintf("/storage/%s/%s/visibility", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/projects/%s/storage/buckets/%s/policies/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -27680,27 +30889,32 @@ func NewUpdateStorageObjectVisibilityRequestWithBody(server string, bucketName B return nil, err } - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewStartGitConnectRequest generates requests for StartGitConnect -func NewStartGitConnectRequest(server string, params *StartGitConnectParams) (*http.Request, error) { +// NewListStorageObjectsAdminRequest generates requests for ListStorageObjectsAdmin +func NewListStorageObjectsAdminRequest(server string, id ProjectId, params *ListStorageObjectsAdminParams) (*http.Request, error) { var err error - serverURL, err := url.Parse(server) + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/user/git/connect") - if operationPath[0] == '/' { + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/projects/%s/storage/objects", pathParam0) + if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -27718,9 +30932,9 @@ func NewStartGitConnectRequest(server string, params *StartGitConnectParams) (*h // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string - if params.Provider != nil { + if params.OwnerId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "provider", *params.Provider, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "owner_id", *params.OwnerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -27730,9 +30944,9 @@ func NewStartGitConnectRequest(server string, params *StartGitConnectParams) (*h } - if params.Redirect != nil { + if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "redirect", *params.Redirect, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -27742,74 +30956,73 @@ func NewStartGitConnectRequest(server string, params *StartGitConnectParams) (*h } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } + if params.Limit != nil { - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } - return req, nil -} + } -// NewListGitConnectionsRequest generates requests for ListGitConnections -func NewListGitConnectionsRequest(server string) (*http.Request, error) { - var err error + if params.Cursor != nil { - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cursor", *params.Cursor, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } - operationPath := fmt.Sprintf("/user/git/connections") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + } - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + if params.EndingBefore != nil { - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ending_before", *params.EndingBefore, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } - return req, nil -} + } -// NewDeleteGitConnectionRequest generates requests for DeleteGitConnection -func NewDeleteGitConnectionRequest(server string, connectionId openapi_types.UUID) (*http.Request, error) { - var err error + if params.Offset != nil { - var pathParam0 string + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "connectionId", connectionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) - if err != nil { - return nil, err - } + } - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + if params.Search != nil { - operationPath := fmt.Sprintf("/user/git/connections/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err + } + + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -27817,13 +31030,13 @@ func NewDeleteGitConnectionRequest(server string, connectionId openapi_types.UUI return req, nil } -// NewListGitInstallationsRequest generates requests for ListGitInstallations -func NewListGitInstallationsRequest(server string, connectionId openapi_types.UUID) (*http.Request, error) { +// NewGetStorageStatsRequest generates requests for GetStorageStats +func NewGetStorageStatsRequest(server string, id ProjectId) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "connectionId", connectionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -27833,7 +31046,7 @@ func NewListGitInstallationsRequest(server string, connectionId openapi_types.UU return nil, err } - operationPath := fmt.Sprintf("/user/git/connections/%s/installations", pathParam0) + operationPath := fmt.Sprintf("/projects/%s/storage/stats", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -27851,20 +31064,13 @@ func NewListGitInstallationsRequest(server string, connectionId openapi_types.UU return req, nil } -// NewListGitInstallationRepositoriesRequest generates requests for ListGitInstallationRepositories -func NewListGitInstallationRepositoriesRequest(server string, connectionId openapi_types.UUID, installationId int64) (*http.Request, error) { +// NewGetProjectUsageRequest generates requests for GetProjectUsage +func NewGetProjectUsageRequest(server string, id ProjectId) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "connectionId", connectionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "installationId", installationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -27874,7 +31080,7 @@ func NewListGitInstallationRepositoriesRequest(server string, connectionId opena return nil, err } - operationPath := fmt.Sprintf("/user/git/connections/%s/installations/%s/repositories", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/projects/%s/usage", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -27892,16 +31098,23 @@ func NewListGitInstallationRepositoriesRequest(server string, connectionId opena return req, nil } -// NewStartImportConnectRequest generates requests for StartImportConnect -func NewStartImportConnectRequest(server string, params *StartImportConnectParams) (*http.Request, error) { +// NewListVariablesRequest generates requests for ListVariables +func NewListVariablesRequest(server string, id ProjectId, params *ListVariablesParams) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/user/imports/connect") + operationPath := fmt.Sprintf("/projects/%s/variables", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -27920,9 +31133,9 @@ func NewStartImportConnectRequest(server string, params *StartImportConnectParam // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string - if params.Provider != nil { + if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "provider", *params.Provider, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -27932,9 +31145,57 @@ func NewStartImportConnectRequest(server string, params *StartImportConnectParam } - if params.Redirect != nil { + if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "redirect", *params.Redirect, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uri"}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if params.Cursor != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cursor", *params.Cursor, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if params.EndingBefore != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ending_before", *params.EndingBefore, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if params.Offset != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if params.Search != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -27950,7 +31211,7 @@ func NewStartImportConnectRequest(server string, params *StartImportConnectParam queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -27958,16 +31219,34 @@ func NewStartImportConnectRequest(server string, params *StartImportConnectParam return req, nil } -// NewListImportConnectionsRequest generates requests for ListImportConnections -func NewListImportConnectionsRequest(server string) (*http.Request, error) { +// NewCreateVariableRequest calls the generic CreateVariable builder with application/json body +func NewCreateVariableRequest(server string, id ProjectId, body CreateVariableJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateVariableRequestWithBody(server, id, "application/json", bodyReader) +} + +// NewCreateVariableRequestWithBody generates requests for CreateVariable with any type of body +func NewCreateVariableRequestWithBody(server string, id ProjectId, contentType string, body io.Reader) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/user/imports/connections") + operationPath := fmt.Sprintf("/projects/%s/variables", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -27977,21 +31256,30 @@ func NewListImportConnectionsRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewDeleteImportConnectionRequest generates requests for DeleteImportConnection -func NewDeleteImportConnectionRequest(server string, connectionId openapi_types.UUID) (*http.Request, error) { +// NewDeleteVariableRequest generates requests for DeleteVariable +func NewDeleteVariableRequest(server string, id ProjectId, name VariableName) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "connectionId", connectionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -28001,7 +31289,7 @@ func NewDeleteImportConnectionRequest(server string, connectionId openapi_types. return nil, err } - operationPath := fmt.Sprintf("/user/imports/connections/%s", pathParam0) + operationPath := fmt.Sprintf("/projects/%s/variables/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -28019,1091 +31307,5127 @@ func NewDeleteImportConnectionRequest(server string, connectionId openapi_types. return req, nil } -func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error { - for _, r := range c.RequestEditors { - if err := r(ctx, req); err != nil { - return err - } - } - for _, r := range additionalEditors { - if err := r(ctx, req); err != nil { - return err - } +// NewGetVariableRequest generates requests for GetVariable +func NewGetVariableRequest(server string, id ProjectId, name VariableName) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err } - return nil -} -// ClientWithResponses builds on ClientInterface to offer response payloads -type ClientWithResponses struct { - ClientInterface -} + var pathParam1 string -// NewClientWithResponses creates a new ClientWithResponses, which wraps -// Client with return type handling -func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) { - client, err := NewClient(server, opts...) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } - return &ClientWithResponses{client}, nil -} -// WithBaseURL overrides the baseURL. -func WithBaseURL(baseURL string) ClientOption { - return func(c *Client) error { - newBaseURL, err := url.Parse(baseURL) - if err != nil { - return err - } - c.Server = newBaseURL.String() - return nil + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } -} -// ClientWithResponsesInterface is the interface specification for the client with responses above. -type ClientWithResponsesInterface interface { - // AuthConfirmEmailWithBodyWithResponse request with any body - AuthConfirmEmailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthConfirmEmailClientResponse, error) + operationPath := fmt.Sprintf("/projects/%s/variables/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - AuthConfirmEmailWithResponse(ctx context.Context, body AuthConfirmEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthConfirmEmailClientResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // AuthDeviceAuthorizeWithBodyWithResponse request with any body - AuthDeviceAuthorizeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthDeviceAuthorizeClientResponse, error) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + if err != nil { + return nil, err + } - AuthDeviceAuthorizeWithResponse(ctx context.Context, body AuthDeviceAuthorizeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthDeviceAuthorizeClientResponse, error) + return req, nil +} - // AuthDeviceTokenWithBodyWithResponse request with any body - AuthDeviceTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthDeviceTokenClientResponse, error) +// NewUpdateVariableRequest calls the generic UpdateVariable builder with application/json body +func NewUpdateVariableRequest(server string, id ProjectId, name VariableName, body UpdateVariableJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateVariableRequestWithBody(server, id, name, "application/json", bodyReader) +} - AuthDeviceTokenWithResponse(ctx context.Context, body AuthDeviceTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthDeviceTokenClientResponse, error) +// NewUpdateVariableRequestWithBody generates requests for UpdateVariable with any type of body +func NewUpdateVariableRequestWithBody(server string, id ProjectId, name VariableName, contentType string, body io.Reader) (*http.Request, error) { + var err error - // AuthDeviceVerifyWithBodyWithResponse request with any body - AuthDeviceVerifyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthDeviceVerifyClientResponse, error) + var pathParam0 string - AuthDeviceVerifyWithResponse(ctx context.Context, body AuthDeviceVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthDeviceVerifyClientResponse, error) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } - // AuthForgotPasswordWithBodyWithResponse request with any body - AuthForgotPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthForgotPasswordClientResponse, error) + var pathParam1 string - AuthForgotPasswordWithResponse(ctx context.Context, body AuthForgotPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthForgotPasswordClientResponse, error) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } - // AuthLogoutWithBodyWithResponse request with any body - AuthLogoutWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthLogoutClientResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - AuthLogoutWithResponse(ctx context.Context, body AuthLogoutJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthLogoutClientResponse, error) + operationPath := fmt.Sprintf("/projects/%s/variables/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // AuthOAuthExchangeWithBodyWithResponse request with any body - AuthOAuthExchangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthOAuthExchangeClientResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - AuthOAuthExchangeWithResponse(ctx context.Context, body AuthOAuthExchangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthOAuthExchangeClientResponse, error) + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) + if err != nil { + return nil, err + } - // AuthListOAuthProvidersWithResponse request - AuthListOAuthProvidersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthListOAuthProvidersClientResponse, error) + req.Header.Add("Content-Type", contentType) - // AuthOAuthAuthorizeWithResponse request - AuthOAuthAuthorizeWithResponse(ctx context.Context, provider AuthOAuthAuthorizeParamsProvider, params *AuthOAuthAuthorizeParams, reqEditors ...RequestEditorFn) (*AuthOAuthAuthorizeClientResponse, error) + return req, nil +} - // CallOAuthProviderAPIWithBodyWithResponse request with any body - CallOAuthProviderAPIWithBodyWithResponse(ctx context.Context, provider CallOAuthProviderAPIParamsProvider, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CallOAuthProviderAPIClientResponse, error) +// NewDownloadPublicFileRequest generates requests for DownloadPublicFile +func NewDownloadPublicFileRequest(server string, projectId openapi_types.UUID, bucketName BucketName, path string) (*http.Request, error) { + var err error - CallOAuthProviderAPIWithResponse(ctx context.Context, provider CallOAuthProviderAPIParamsProvider, body CallOAuthProviderAPIJSONRequestBody, reqEditors ...RequestEditorFn) (*CallOAuthProviderAPIClientResponse, error) + var pathParam0 string - // AuthOAuthCallbackWithResponse request - AuthOAuthCallbackWithResponse(ctx context.Context, provider AuthOAuthCallbackParamsProvider, params *AuthOAuthCallbackParams, reqEditors ...RequestEditorFn) (*AuthOAuthCallbackClientResponse, error) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectId", projectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } - // AuthLinkOAuthProviderWithResponse request - AuthLinkOAuthProviderWithResponse(ctx context.Context, provider AuthLinkOAuthProviderParamsProvider, params *AuthLinkOAuthProviderParams, reqEditors ...RequestEditorFn) (*AuthLinkOAuthProviderClientResponse, error) + var pathParam1 string - // RefreshOAuthProviderTokenWithResponse request - RefreshOAuthProviderTokenWithResponse(ctx context.Context, provider RefreshOAuthProviderTokenParamsProvider, reqEditors ...RequestEditorFn) (*RefreshOAuthProviderTokenClientResponse, error) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } - // GetOAuthProviderTokenWithResponse request - GetOAuthProviderTokenWithResponse(ctx context.Context, provider GetOAuthProviderTokenParamsProvider, reqEditors ...RequestEditorFn) (*GetOAuthProviderTokenClientResponse, error) + var pathParam2 string - // AuthUnlinkOAuthProviderWithResponse request - AuthUnlinkOAuthProviderWithResponse(ctx context.Context, provider AuthUnlinkOAuthProviderParamsProvider, reqEditors ...RequestEditorFn) (*AuthUnlinkOAuthProviderClientResponse, error) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "path", path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } - // AuthGetPasswordPolicyWithResponse request - AuthGetPasswordPolicyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthGetPasswordPolicyClientResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // AuthPlatformExchangeWithBodyWithResponse request with any body - AuthPlatformExchangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthPlatformExchangeClientResponse, error) + operationPath := fmt.Sprintf("/public/%s/%s/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - AuthPlatformExchangeWithResponse(ctx context.Context, body AuthPlatformExchangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthPlatformExchangeClientResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // AuthRefreshWithBodyWithResponse request with any body - AuthRefreshWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthRefreshClientResponse, error) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + if err != nil { + return nil, err + } - AuthRefreshWithResponse(ctx context.Context, body AuthRefreshJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRefreshClientResponse, error) + return req, nil +} - // AuthResendConfirmationWithBodyWithResponse request with any body - AuthResendConfirmationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthResendConfirmationClientResponse, error) +// NewTerminateSandboxSessionRequest generates requests for TerminateSandboxSession +func NewTerminateSandboxSessionRequest(server string, sessionId openapi_types.UUID) (*http.Request, error) { + var err error - AuthResendConfirmationWithResponse(ctx context.Context, body AuthResendConfirmationJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthResendConfirmationClientResponse, error) + var pathParam0 string - // AuthResetPasswordWithBodyWithResponse request with any body - AuthResetPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthResetPasswordClientResponse, error) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "sessionId", sessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } - AuthResetPasswordWithResponse(ctx context.Context, body AuthResetPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthResetPasswordClientResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // AuthSigninWithBodyWithResponse request with any body - AuthSigninWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthSigninClientResponse, error) + operationPath := fmt.Sprintf("/sandbox-sessions/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - AuthSigninWithResponse(ctx context.Context, body AuthSigninJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthSigninClientResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // AuthSignupWithBodyWithResponse request with any body - AuthSignupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthSignupClientResponse, error) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + if err != nil { + return nil, err + } - AuthSignupWithResponse(ctx context.Context, body AuthSignupJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthSignupClientResponse, error) + return req, nil +} - // AuthSignupAnonymousWithBodyWithResponse request with any body - AuthSignupAnonymousWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthSignupAnonymousClientResponse, error) +// NewGetSandboxSessionRequest generates requests for GetSandboxSession +func NewGetSandboxSessionRequest(server string, sessionId openapi_types.UUID) (*http.Request, error) { + var err error - AuthSignupAnonymousWithResponse(ctx context.Context, body AuthSignupAnonymousJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthSignupAnonymousClientResponse, error) + var pathParam0 string - // AuthGetUserWithResponse request - AuthGetUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthGetUserClientResponse, error) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "sessionId", sessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } - // AuthUpdateUserWithBodyWithResponse request with any body - AuthUpdateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthUpdateUserClientResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - AuthUpdateUserWithResponse(ctx context.Context, body AuthUpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthUpdateUserClientResponse, error) + operationPath := fmt.Sprintf("/sandbox-sessions/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // AuthCancelEmailChangeWithResponse request - AuthCancelEmailChangeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthCancelEmailChangeClientResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // AuthRequestEmailChangeWithBodyWithResponse request with any body - AuthRequestEmailChangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthRequestEmailChangeClientResponse, error) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + if err != nil { + return nil, err + } - AuthRequestEmailChangeWithResponse(ctx context.Context, body AuthRequestEmailChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRequestEmailChangeClientResponse, error) + return req, nil +} - // AuthConfirmEmailChangeWithBodyWithResponse request with any body - AuthConfirmEmailChangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthConfirmEmailChangeClientResponse, error) +// NewCreateSandboxSessionAccessRequest calls the generic CreateSandboxSessionAccess builder with application/json body +func NewCreateSandboxSessionAccessRequest(server string, sessionId openapi_types.UUID, body CreateSandboxSessionAccessJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateSandboxSessionAccessRequestWithBody(server, sessionId, "application/json", bodyReader) +} - AuthConfirmEmailChangeWithResponse(ctx context.Context, body AuthConfirmEmailChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthConfirmEmailChangeClientResponse, error) +// NewCreateSandboxSessionAccessRequestWithBody generates requests for CreateSandboxSessionAccess with any type of body +func NewCreateSandboxSessionAccessRequestWithBody(server string, sessionId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { + var err error - // AuthConvertAnonymousWithBodyWithResponse request with any body - AuthConvertAnonymousWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthConvertAnonymousClientResponse, error) + var pathParam0 string - AuthConvertAnonymousWithResponse(ctx context.Context, body AuthConvertAnonymousJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthConvertAnonymousClientResponse, error) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "sessionId", sessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } - // AuthListIdentitiesWithResponse request - AuthListIdentitiesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthListIdentitiesClientResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // AuthUnlinkIdentityWithResponse request - AuthUnlinkIdentityWithResponse(ctx context.Context, identityId openapi_types.UUID, reqEditors ...RequestEditorFn) (*AuthUnlinkIdentityClientResponse, error) + operationPath := fmt.Sprintf("/sandbox-sessions/%s/access", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // AuthListMethodsWithResponse request - AuthListMethodsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthListMethodsClientResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // AuthPromoteMethodWithResponse request - AuthPromoteMethodWithResponse(ctx context.Context, methodId openapi_types.UUID, reqEditors ...RequestEditorFn) (*AuthPromoteMethodClientResponse, error) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + if err != nil { + return nil, err + } - // AuthDeleteAllMySessionsWithResponse request - AuthDeleteAllMySessionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthDeleteAllMySessionsClientResponse, error) + req.Header.Add("Content-Type", contentType) - // AuthGetMySessionsWithResponse request - AuthGetMySessionsWithResponse(ctx context.Context, params *AuthGetMySessionsParams, reqEditors ...RequestEditorFn) (*AuthGetMySessionsClientResponse, error) + return req, nil +} - // AuthDeleteMySessionWithResponse request - AuthDeleteMySessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*AuthDeleteMySessionClientResponse, error) +// NewExecuteSandboxSessionRequest calls the generic ExecuteSandboxSession builder with application/json body +func NewExecuteSandboxSessionRequest(server string, sessionId openapi_types.UUID, params *ExecuteSandboxSessionParams, body ExecuteSandboxSessionJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewExecuteSandboxSessionRequestWithBody(server, sessionId, params, "application/json", bodyReader) +} - // ListPostgresVersionsWithResponse request - ListPostgresVersionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListPostgresVersionsClientResponse, error) +// NewExecuteSandboxSessionRequestWithBody generates requests for ExecuteSandboxSession with any type of body +func NewExecuteSandboxSessionRequestWithBody(server string, sessionId openapi_types.UUID, params *ExecuteSandboxSessionParams, contentType string, body io.Reader) (*http.Request, error) { + var err error - // ListDatabaseRegionsWithResponse request - ListDatabaseRegionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListDatabaseRegionsClientResponse, error) + var pathParam0 string - // QueryDatabaseBranchDeleteWithBodyWithResponse request with any body - QueryDatabaseBranchDeleteWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchDeleteClientResponse, error) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "sessionId", sessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } - QueryDatabaseBranchDeleteWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchDeleteClientResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // QueryDatabaseBranchInsertWithBodyWithResponse request with any body - QueryDatabaseBranchInsertWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchInsertClientResponse, error) + operationPath := fmt.Sprintf("/sandbox-sessions/%s/exec", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - QueryDatabaseBranchInsertWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchInsertJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchInsertClientResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // QueryDatabaseBranchPingWithResponse request - QueryDatabaseBranchPingWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchPingClientResponse, error) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + if err != nil { + return nil, err + } - // QueryDatabaseBranchSelectWithBodyWithResponse request with any body - QueryDatabaseBranchSelectWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchSelectClientResponse, error) + req.Header.Add("Content-Type", contentType) - QueryDatabaseBranchSelectWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchSelectJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchSelectClientResponse, error) + if params != nil { - // QueryDatabaseBranchUpdateWithBodyWithResponse request with any body - QueryDatabaseBranchUpdateWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchUpdateClientResponse, error) + var headerParam0 string - QueryDatabaseBranchUpdateWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchUpdateClientResponse, error) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "Idempotency-Key", params.IdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } - // QueryDatabaseDeleteWithBodyWithResponse request with any body - QueryDatabaseDeleteWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseDeleteClientResponse, error) + req.Header.Set("Idempotency-Key", headerParam0) - QueryDatabaseDeleteWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseDeleteClientResponse, error) + } - // QueryDatabaseInsertWithBodyWithResponse request with any body - QueryDatabaseInsertWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseInsertClientResponse, error) + return req, nil +} - QueryDatabaseInsertWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseInsertJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseInsertClientResponse, error) +// NewReadSandboxSessionFileRequest calls the generic ReadSandboxSessionFile builder with application/json body +func NewReadSandboxSessionFileRequest(server string, sessionId openapi_types.UUID, body ReadSandboxSessionFileJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewReadSandboxSessionFileRequestWithBody(server, sessionId, "application/json", bodyReader) +} - // QueryDatabasePingWithResponse request - QueryDatabasePingWithResponse(ctx context.Context, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*QueryDatabasePingClientResponse, error) +// NewReadSandboxSessionFileRequestWithBody generates requests for ReadSandboxSessionFile with any type of body +func NewReadSandboxSessionFileRequestWithBody(server string, sessionId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { + var err error - // QueryDatabaseSelectWithBodyWithResponse request with any body - QueryDatabaseSelectWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseSelectClientResponse, error) + var pathParam0 string - QueryDatabaseSelectWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseSelectJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseSelectClientResponse, error) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "sessionId", sessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } - // QueryDatabaseUpdateWithBodyWithResponse request with any body - QueryDatabaseUpdateWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseUpdateClientResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - QueryDatabaseUpdateWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseUpdateClientResponse, error) + operationPath := fmt.Sprintf("/sandbox-sessions/%s/files/read", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // ListDeploymentsWithResponse request - ListDeploymentsWithResponse(ctx context.Context, params *ListDeploymentsParams, reqEditors ...RequestEditorFn) (*ListDeploymentsClientResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // GetDefaultEmailTemplatesWithResponse request - GetDefaultEmailTemplatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDefaultEmailTemplatesClientResponse, error) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + if err != nil { + return nil, err + } - // GetDefaultEmailTemplateWithResponse request - GetDefaultEmailTemplateWithResponse(ctx context.Context, pType GetDefaultEmailTemplateParamsType, reqEditors ...RequestEditorFn) (*GetDefaultEmailTemplateClientResponse, error) + req.Header.Add("Content-Type", contentType) - // ListFunctionRegionsWithResponse request - ListFunctionRegionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListFunctionRegionsClientResponse, error) + return req, nil +} - // ResolveFunctionForInvocationWithResponse request - ResolveFunctionForInvocationWithResponse(ctx context.Context, params *ResolveFunctionForInvocationParams, reqEditors ...RequestEditorFn) (*ResolveFunctionForInvocationClientResponse, error) +// NewWriteSandboxSessionFileRequest calls the generic WriteSandboxSessionFile builder with application/json body +func NewWriteSandboxSessionFileRequest(server string, sessionId openapi_types.UUID, body WriteSandboxSessionFileJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewWriteSandboxSessionFileRequestWithBody(server, sessionId, "application/json", bodyReader) +} - // ListFunctionRuntimesWithResponse request - ListFunctionRuntimesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListFunctionRuntimesClientResponse, error) +// NewWriteSandboxSessionFileRequestWithBody generates requests for WriteSandboxSessionFile with any type of body +func NewWriteSandboxSessionFileRequestWithBody(server string, sessionId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { + var err error - // InvokeFunctionWithBodyWithResponse request with any body - InvokeFunctionWithBodyWithResponse(ctx context.Context, functionId FunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InvokeFunctionClientResponse, error) + var pathParam0 string - InvokeFunctionWithResponse(ctx context.Context, functionId FunctionId, body InvokeFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*InvokeFunctionClientResponse, error) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "sessionId", sessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } - // GitConnectCallbackWithResponse request - GitConnectCallbackWithResponse(ctx context.Context, params *GitConnectCallbackParams, reqEditors ...RequestEditorFn) (*GitConnectCallbackClientResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // HealthCheckWithResponse request - HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckClientResponse, error) + operationPath := fmt.Sprintf("/sandbox-sessions/%s/files/write", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // CompleteImportConnectWithResponse request - CompleteImportConnectWithResponse(ctx context.Context, provider ImportProvider, params *CompleteImportConnectParams, reqEditors ...RequestEditorFn) (*CompleteImportConnectClientResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // PreflightProjectImportWithBodyWithResponse request with any body - PreflightProjectImportWithBodyWithResponse(ctx context.Context, provider ImportProvider, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PreflightProjectImportClientResponse, error) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + if err != nil { + return nil, err + } - PreflightProjectImportWithResponse(ctx context.Context, provider ImportProvider, body PreflightProjectImportJSONRequestBody, reqEditors ...RequestEditorFn) (*PreflightProjectImportClientResponse, error) + req.Header.Add("Content-Type", contentType) - // StartProjectImportWithBodyWithResponse request with any body - StartProjectImportWithBodyWithResponse(ctx context.Context, provider ImportProvider, params *StartProjectImportParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartProjectImportClientResponse, error) + return req, nil +} - StartProjectImportWithResponse(ctx context.Context, provider ImportProvider, params *StartProjectImportParams, body StartProjectImportJSONRequestBody, reqEditors ...RequestEditorFn) (*StartProjectImportClientResponse, error) +// NewRevokeSandboxSessionRequest generates requests for RevokeSandboxSession +func NewRevokeSandboxSessionRequest(server string, sessionId openapi_types.UUID, subjectId openapi_types.UUID) (*http.Request, error) { + var err error - // GetProjectImportRunWithResponse request - GetProjectImportRunWithResponse(ctx context.Context, provider ImportProvider, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectImportRunClientResponse, error) + var pathParam0 string - // ListImportSourcesWithResponse request - ListImportSourcesWithResponse(ctx context.Context, provider ImportProvider, params *ListImportSourcesParams, reqEditors ...RequestEditorFn) (*ListImportSourcesClientResponse, error) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "sessionId", sessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } - // ForceReleaseProjectLockWithResponse request - ForceReleaseProjectLockWithResponse(ctx context.Context, key LockKey, params *ForceReleaseProjectLockParams, reqEditors ...RequestEditorFn) (*ForceReleaseProjectLockClientResponse, error) + var pathParam1 string - // GetProjectLockWithResponse request - GetProjectLockWithResponse(ctx context.Context, key LockKey, params *GetProjectLockParams, reqEditors ...RequestEditorFn) (*GetProjectLockClientResponse, error) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "subjectId", subjectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } - // ReleaseProjectLockWithResponse request - ReleaseProjectLockWithResponse(ctx context.Context, key LockKey, params *ReleaseProjectLockParams, reqEditors ...RequestEditorFn) (*ReleaseProjectLockClientResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // RenewProjectLockWithBodyWithResponse request with any body - RenewProjectLockWithBodyWithResponse(ctx context.Context, key LockKey, params *RenewProjectLockParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenewProjectLockClientResponse, error) + operationPath := fmt.Sprintf("/sandbox-sessions/%s/grants/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - RenewProjectLockWithResponse(ctx context.Context, key LockKey, params *RenewProjectLockParams, body RenewProjectLockJSONRequestBody, reqEditors ...RequestEditorFn) (*RenewProjectLockClientResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // AcquireProjectLockWithBodyWithResponse request with any body - AcquireProjectLockWithBodyWithResponse(ctx context.Context, key LockKey, params *AcquireProjectLockParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AcquireProjectLockClientResponse, error) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + if err != nil { + return nil, err + } - AcquireProjectLockWithResponse(ctx context.Context, key LockKey, params *AcquireProjectLockParams, body AcquireProjectLockJSONRequestBody, reqEditors ...RequestEditorFn) (*AcquireProjectLockClientResponse, error) + return req, nil +} - // ListProjectsWithResponse request - ListProjectsWithResponse(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*ListProjectsClientResponse, error) +// NewGrantSandboxSessionRequest calls the generic GrantSandboxSession builder with application/json body +func NewGrantSandboxSessionRequest(server string, sessionId openapi_types.UUID, subjectId openapi_types.UUID, body GrantSandboxSessionJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGrantSandboxSessionRequestWithBody(server, sessionId, subjectId, "application/json", bodyReader) +} - // CreateProjectWithBodyWithResponse request with any body - CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectClientResponse, error) +// NewGrantSandboxSessionRequestWithBody generates requests for GrantSandboxSession with any type of body +func NewGrantSandboxSessionRequestWithBody(server string, sessionId openapi_types.UUID, subjectId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { + var err error - CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectClientResponse, error) + var pathParam0 string - // DeleteProjectWithResponse request - DeleteProjectWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*DeleteProjectClientResponse, error) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "sessionId", sessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } - // GetProjectWithResponse request - GetProjectWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectClientResponse, error) + var pathParam1 string - // UpdateProjectWithBodyWithResponse request with any body - UpdateProjectWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectClientResponse, error) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "subjectId", subjectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } - UpdateProjectWithResponse(ctx context.Context, id ProjectId, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectClientResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // ListProjectAccessTokensWithResponse request - ListProjectAccessTokensWithResponse(ctx context.Context, id ProjectId, params *ListProjectAccessTokensParams, reqEditors ...RequestEditorFn) (*ListProjectAccessTokensClientResponse, error) + operationPath := fmt.Sprintf("/sandbox-sessions/%s/grants/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // CreateProjectAccessTokenWithBodyWithResponse request with any body - CreateProjectAccessTokenWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectAccessTokenClientResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - CreateProjectAccessTokenWithResponse(ctx context.Context, id ProjectId, body CreateProjectAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectAccessTokenClientResponse, error) + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) + if err != nil { + return nil, err + } - // ListProjectAccessTokensUsageWithResponse request - ListProjectAccessTokensUsageWithResponse(ctx context.Context, id ProjectId, params *ListProjectAccessTokensUsageParams, reqEditors ...RequestEditorFn) (*ListProjectAccessTokensUsageClientResponse, error) + req.Header.Add("Content-Type", contentType) - // RevokeProjectAccessTokenWithResponse request - RevokeProjectAccessTokenWithResponse(ctx context.Context, id ProjectId, tokenId TokenId, reqEditors ...RequestEditorFn) (*RevokeProjectAccessTokenClientResponse, error) + return req, nil +} - // GetProjectAccessTokenWithResponse request - GetProjectAccessTokenWithResponse(ctx context.Context, id ProjectId, tokenId TokenId, reqEditors ...RequestEditorFn) (*GetProjectAccessTokenClientResponse, error) +// NewResumeSandboxSessionRequest generates requests for ResumeSandboxSession +func NewResumeSandboxSessionRequest(server string, sessionId openapi_types.UUID) (*http.Request, error) { + var err error - // GetProjectAccessTokenUsageWithResponse request - GetProjectAccessTokenUsageWithResponse(ctx context.Context, id ProjectId, tokenId TokenId, params *GetProjectAccessTokenUsageParams, reqEditors ...RequestEditorFn) (*GetProjectAccessTokenUsageClientResponse, error) + var pathParam0 string - // ListAnonKeysWithResponse request - ListAnonKeysWithResponse(ctx context.Context, id ProjectId, params *ListAnonKeysParams, reqEditors ...RequestEditorFn) (*ListAnonKeysClientResponse, error) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "sessionId", sessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } - // CreateAnonKeyWithBodyWithResponse request with any body - CreateAnonKeyWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAnonKeyClientResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - CreateAnonKeyWithResponse(ctx context.Context, id ProjectId, body CreateAnonKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAnonKeyClientResponse, error) + operationPath := fmt.Sprintf("/sandbox-sessions/%s/resume", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // RevokeAnonKeyWithResponse request - RevokeAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RevokeAnonKeyClientResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // GetAnonKeyWithResponse request - GetAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAnonKeyClientResponse, error) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + if err != nil { + return nil, err + } - // RegenerateAnonKeyWithResponse request - RegenerateAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RegenerateAnonKeyClientResponse, error) + return req, nil +} - // SetDefaultAnonKeyWithResponse request - SetDefaultAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*SetDefaultAnonKeyClientResponse, error) +// NewSuspendSandboxSessionRequest generates requests for SuspendSandboxSession +func NewSuspendSandboxSessionRequest(server string, sessionId openapi_types.UUID) (*http.Request, error) { + var err error - // GetAuthConfigWithResponse request - GetAuthConfigWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetAuthConfigClientResponse, error) + var pathParam0 string - // UpdateAuthConfigWithBodyWithResponse request with any body - UpdateAuthConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAuthConfigClientResponse, error) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "sessionId", sessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } - UpdateAuthConfigWithResponse(ctx context.Context, id ProjectId, body UpdateAuthConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAuthConfigClientResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // TestEmailConfigWithBodyWithResponse request with any body - TestEmailConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestEmailConfigClientResponse, error) + operationPath := fmt.Sprintf("/sandbox-sessions/%s/suspend", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - TestEmailConfigWithResponse(ctx context.Context, id ProjectId, body TestEmailConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*TestEmailConfigClientResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // RenderDefaultManagedAuthPageWithResponse request - RenderDefaultManagedAuthPageWithResponse(ctx context.Context, id ProjectId, params *RenderDefaultManagedAuthPageParams, reqEditors ...RequestEditorFn) (*RenderDefaultManagedAuthPageClientResponse, error) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + if err != nil { + return nil, err + } - // GetAuthHostedPageWithResponse request - GetAuthHostedPageWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, reqEditors ...RequestEditorFn) (*GetAuthHostedPageClientResponse, error) + return req, nil +} - // UpdateAuthHostedPageWithBodyWithResponse request with any body - UpdateAuthHostedPageWithBodyWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAuthHostedPageClientResponse, error) +// NewListSandboxPresetsRequest generates requests for ListSandboxPresets +func NewListSandboxPresetsRequest(server string) (*http.Request, error) { + var err error - UpdateAuthHostedPageWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, body UpdateAuthHostedPageJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAuthHostedPageClientResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // HostedLoginCheckEmailWithBodyWithResponse request with any body - HostedLoginCheckEmailWithBodyWithResponse(ctx context.Context, id ProjectId, params *HostedLoginCheckEmailParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HostedLoginCheckEmailClientResponse, error) + operationPath := fmt.Sprintf("/sandboxes/presets") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - HostedLoginCheckEmailWithResponse(ctx context.Context, id ProjectId, params *HostedLoginCheckEmailParams, body HostedLoginCheckEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*HostedLoginCheckEmailClientResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // GetHostedLoginOptionsWithResponse request - GetHostedLoginOptionsWithResponse(ctx context.Context, id ProjectId, params *GetHostedLoginOptionsParams, reqEditors ...RequestEditorFn) (*GetHostedLoginOptionsClientResponse, error) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + if err != nil { + return nil, err + } - // RenderManagedAuthPageWithResponse request - RenderManagedAuthPageWithResponse(ctx context.Context, id ProjectId, pageType HostedRenderablePageType, reqEditors ...RequestEditorFn) (*RenderManagedAuthPageClientResponse, error) + return req, nil +} - // GetAuthInsightsWithResponse request - GetAuthInsightsWithResponse(ctx context.Context, id ProjectId, params *GetAuthInsightsParams, reqEditors ...RequestEditorFn) (*GetAuthInsightsClientResponse, error) +// NewListStorageObjectsRequest generates requests for ListStorageObjects +func NewListStorageObjectsRequest(server string, bucketName BucketName, params *ListStorageObjectsParams) (*http.Request, error) { + var err error - // GetAuthMethodsWithResponse request - GetAuthMethodsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetAuthMethodsClientResponse, error) + var pathParam0 string - // ConfigureAuthMethodsWithBodyWithResponse request with any body - ConfigureAuthMethodsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfigureAuthMethodsClientResponse, error) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } - ConfigureAuthMethodsWithResponse(ctx context.Context, id ProjectId, body ConfigureAuthMethodsJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfigureAuthMethodsClientResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // ListAuthUsersWithResponse request - ListAuthUsersWithResponse(ctx context.Context, id ProjectId, params *ListAuthUsersParams, reqEditors ...RequestEditorFn) (*ListAuthUsersClientResponse, error) + operationPath := fmt.Sprintf("/storage/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // DeleteAuthUserWithResponse request - DeleteAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAuthUserClientResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // GetAuthUserWithResponse request - GetAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAuthUserClientResponse, error) + if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). + queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string - // BanAuthUserWithBodyWithResponse request with any body - BanAuthUserWithBodyWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BanAuthUserClientResponse, error) + if params.Prefix != nil { - BanAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, body BanAuthUserJSONRequestBody, reqEditors ...RequestEditorFn) (*BanAuthUserClientResponse, error) + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "prefix", *params.Prefix, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } - // DeleteAllUserSessionsWithResponse request - DeleteAllUserSessionsWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAllUserSessionsClientResponse, error) + } - // ListUserSessionsWithResponse request - ListUserSessionsWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, params *ListUserSessionsParams, reqEditors ...RequestEditorFn) (*ListUserSessionsClientResponse, error) + if params.Limit != nil { - // DeleteUserSessionWithResponse request - DeleteUserSessionWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteUserSessionClientResponse, error) + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } - // UnbanAuthUserWithResponse request - UnbanAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*UnbanAuthUserClientResponse, error) + } - // GetProjectConfigWithResponse request - GetProjectConfigWithResponse(ctx context.Context, id ProjectId, params *GetProjectConfigParams, reqEditors ...RequestEditorFn) (*GetProjectConfigClientResponse, error) + if params.Cursor != nil { - // ApplyProjectConfigWithBodyWithResponse request with any body - ApplyProjectConfigWithBodyWithResponse(ctx context.Context, id ProjectId, params *ApplyProjectConfigParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplyProjectConfigClientResponse, error) + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cursor", *params.Cursor, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } - ApplyProjectConfigWithResponse(ctx context.Context, id ProjectId, params *ApplyProjectConfigParams, body ApplyProjectConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplyProjectConfigClientResponse, error) + } - // ListDatabasesWithResponse request - ListDatabasesWithResponse(ctx context.Context, id ProjectId, params *ListDatabasesParams, reqEditors ...RequestEditorFn) (*ListDatabasesClientResponse, error) + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + } - // CreateDatabaseWithBodyWithResponse request with any body - CreateDatabaseWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseClientResponse, error) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + if err != nil { + return nil, err + } - CreateDatabaseWithResponse(ctx context.Context, id ProjectId, body CreateDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseClientResponse, error) + return req, nil +} - // DeleteDatabaseWithResponse request - DeleteDatabaseWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*DeleteDatabaseClientResponse, error) +// NewCopyStorageObjectRequest calls the generic CopyStorageObject builder with application/json body +func NewCopyStorageObjectRequest(server string, bucketName BucketName, body CopyStorageObjectJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCopyStorageObjectRequestWithBody(server, bucketName, "application/json", bodyReader) +} - // GetDatabaseWithResponse request - GetDatabaseWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*GetDatabaseClientResponse, error) +// NewCopyStorageObjectRequestWithBody generates requests for CopyStorageObject with any type of body +func NewCopyStorageObjectRequestWithBody(server string, bucketName BucketName, contentType string, body io.Reader) (*http.Request, error) { + var err error - // GetDatabaseBackupScheduleWithResponse request - GetDatabaseBackupScheduleWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*GetDatabaseBackupScheduleClientResponse, error) + var pathParam0 string - // UpdateDatabaseBackupScheduleWithBodyWithResponse request with any body - UpdateDatabaseBackupScheduleWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDatabaseBackupScheduleClientResponse, error) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } - UpdateDatabaseBackupScheduleWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body UpdateDatabaseBackupScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDatabaseBackupScheduleClientResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // ListDatabaseBackupsWithResponse request - ListDatabaseBackupsWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ListDatabaseBackupsClientResponse, error) + operationPath := fmt.Sprintf("/storage/%s/copy", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // CreateDatabaseBackupWithBodyWithResponse request with any body - CreateDatabaseBackupWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseBackupClientResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - CreateDatabaseBackupWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body CreateDatabaseBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseBackupClientResponse, error) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + if err != nil { + return nil, err + } - // DeleteDatabaseBackupWithResponse request - DeleteDatabaseBackupWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, backupName BackupName, reqEditors ...RequestEditorFn) (*DeleteDatabaseBackupClientResponse, error) + req.Header.Add("Content-Type", contentType) - // GetDatabaseBackupWithResponse request - GetDatabaseBackupWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, backupName BackupName, reqEditors ...RequestEditorFn) (*GetDatabaseBackupClientResponse, error) + return req, nil +} - // ListDatabaseBranchesWithResponse request - ListDatabaseBranchesWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ListDatabaseBranchesClientResponse, error) +// NewMoveStorageObjectRequest calls the generic MoveStorageObject builder with application/json body +func NewMoveStorageObjectRequest(server string, bucketName BucketName, body MoveStorageObjectJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewMoveStorageObjectRequestWithBody(server, bucketName, "application/json", bodyReader) +} - // CreateDatabaseBranchWithBodyWithResponse request with any body - CreateDatabaseBranchWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseBranchClientResponse, error) +// NewMoveStorageObjectRequestWithBody generates requests for MoveStorageObject with any type of body +func NewMoveStorageObjectRequestWithBody(server string, bucketName BucketName, contentType string, body io.Reader) (*http.Request, error) { + var err error - CreateDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body CreateDatabaseBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseBranchClientResponse, error) + var pathParam0 string - // DeleteDatabaseBranchWithResponse request - DeleteDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*DeleteDatabaseBranchClientResponse, error) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } - // GetDatabaseBranchWithResponse request - GetDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*GetDatabaseBranchClientResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // UpdateDatabaseBranchWithBodyWithResponse request with any body - UpdateDatabaseBranchWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDatabaseBranchClientResponse, error) + operationPath := fmt.Sprintf("/storage/%s/move", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - UpdateDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, body UpdateDatabaseBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDatabaseBranchClientResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // ResetDatabaseBranchWithResponse request - ResetDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*ResetDatabaseBranchClientResponse, error) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + if err != nil { + return nil, err + } - // ResetDatabaseBranchPasswordWithResponse request - ResetDatabaseBranchPasswordWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*ResetDatabaseBranchPasswordClientResponse, error) + req.Header.Add("Content-Type", contentType) - // GetProjectDatabaseQueriesWithResponse request - GetProjectDatabaseQueriesWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, params *GetProjectDatabaseQueriesParams, reqEditors ...RequestEditorFn) (*GetProjectDatabaseQueriesClientResponse, error) + return req, nil +} - // ResetDatabasePasswordWithResponse request - ResetDatabasePasswordWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ResetDatabasePasswordClientResponse, error) +// NewDeleteStorageObjectRequest generates requests for DeleteStorageObject +func NewDeleteStorageObjectRequest(server string, bucketName BucketName, path string, params *DeleteStorageObjectParams) (*http.Request, error) { + var err error - // ListDatabaseRestoresWithResponse request - ListDatabaseRestoresWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ListDatabaseRestoresClientResponse, error) + var pathParam0 string - // CreateDatabaseRestoreWithBodyWithResponse request with any body - CreateDatabaseRestoreWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseRestoreClientResponse, error) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } - CreateDatabaseRestoreWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body CreateDatabaseRestoreJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseRestoreClientResponse, error) + var pathParam1 string - // GetDatabaseRestoreWithResponse request - GetDatabaseRestoreWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, restoreId RestoreId, reqEditors ...RequestEditorFn) (*GetDatabaseRestoreClientResponse, error) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "path", path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } - // GetDatabaseStatsWithResponse request - GetDatabaseStatsWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, params *GetDatabaseStatsParams, reqEditors ...RequestEditorFn) (*GetDatabaseStatsClientResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // UpdateDatabaseTypeWithBodyWithResponse request with any body - UpdateDatabaseTypeWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDatabaseTypeClientResponse, error) + operationPath := fmt.Sprintf("/storage/%s/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - UpdateDatabaseTypeWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body UpdateDatabaseTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDatabaseTypeClientResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // ListProjectDeploymentsWithResponse request - ListProjectDeploymentsWithResponse(ctx context.Context, id ProjectId, params *ListProjectDeploymentsParams, reqEditors ...RequestEditorFn) (*ListProjectDeploymentsClientResponse, error) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + if err != nil { + return nil, err + } - // SummarizeProjectDeploymentsWithResponse request - SummarizeProjectDeploymentsWithResponse(ctx context.Context, id ProjectId, params *SummarizeProjectDeploymentsParams, reqEditors ...RequestEditorFn) (*SummarizeProjectDeploymentsClientResponse, error) + if params != nil { - // ListProjectCustomDomainsWithResponse request - ListProjectCustomDomainsWithResponse(ctx context.Context, id ProjectId, params *ListProjectCustomDomainsParams, reqEditors ...RequestEditorFn) (*ListProjectCustomDomainsClientResponse, error) + if params.XUploadSession != nil { + var headerParam0 string - // ListDurableFunctionsWithResponse request - ListDurableFunctionsWithResponse(ctx context.Context, id ProjectId, params *ListDurableFunctionsParams, reqEditors ...RequestEditorFn) (*ListDurableFunctionsClientResponse, error) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Upload-Session", *params.XUploadSession, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + if err != nil { + return nil, err + } - // CreateDurableFunctionWithBodyWithResponse request with any body - CreateDurableFunctionWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDurableFunctionClientResponse, error) + req.Header.Set("X-Upload-Session", headerParam0) + } - // DeleteDurableFunctionWithResponse request - DeleteDurableFunctionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, reqEditors ...RequestEditorFn) (*DeleteDurableFunctionClientResponse, error) + } - // GetDurableFunctionWithResponse request - GetDurableFunctionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, reqEditors ...RequestEditorFn) (*GetDurableFunctionClientResponse, error) + return req, nil +} - // ListDurableFunctionDeploymentsWithResponse request - ListDurableFunctionDeploymentsWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *ListDurableFunctionDeploymentsParams, reqEditors ...RequestEditorFn) (*ListDurableFunctionDeploymentsClientResponse, error) +// NewDownloadStorageObjectRequest generates requests for DownloadStorageObject +func NewDownloadStorageObjectRequest(server string, bucketName BucketName, path string, params *DownloadStorageObjectParams) (*http.Request, error) { + var err error - // ListDurableExecutionsWithResponse request - ListDurableExecutionsWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *ListDurableExecutionsParams, reqEditors ...RequestEditorFn) (*ListDurableExecutionsClientResponse, error) + var pathParam0 string - // StartDurableExecutionWithBodyWithResponse request with any body - StartDurableExecutionWithBodyWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *StartDurableExecutionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartDurableExecutionClientResponse, error) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } - StartDurableExecutionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *StartDurableExecutionParams, body StartDurableExecutionJSONRequestBody, reqEditors ...RequestEditorFn) (*StartDurableExecutionClientResponse, error) + var pathParam1 string - // GetDurableExecutionWithResponse request - GetDurableExecutionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, executionId DurableExecutionId, reqEditors ...RequestEditorFn) (*GetDurableExecutionClientResponse, error) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "path", path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } - // StopDurableExecutionWithResponse request - StopDurableExecutionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, executionId DurableExecutionId, reqEditors ...RequestEditorFn) (*StopDurableExecutionClientResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // ListDurableFunctionSchedulersWithResponse request - ListDurableFunctionSchedulersWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, reqEditors ...RequestEditorFn) (*ListDurableFunctionSchedulersClientResponse, error) + operationPath := fmt.Sprintf("/storage/%s/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // CreateDurableFunctionSchedulerWithBodyWithResponse request with any body - CreateDurableFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDurableFunctionSchedulerClientResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - CreateDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, body CreateDurableFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDurableFunctionSchedulerClientResponse, error) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + if err != nil { + return nil, err + } - // DeleteDurableFunctionSchedulerWithResponse request - DeleteDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*DeleteDurableFunctionSchedulerClientResponse, error) + if params != nil { - // GetDurableFunctionSchedulerWithResponse request - GetDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*GetDurableFunctionSchedulerClientResponse, error) + if params.Range != nil { + var headerParam0 string - // UpdateDurableFunctionSchedulerWithBodyWithResponse request with any body - UpdateDurableFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDurableFunctionSchedulerClientResponse, error) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "Range", *params.Range, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + if err != nil { + return nil, err + } - UpdateDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, body UpdateDurableFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDurableFunctionSchedulerClientResponse, error) + req.Header.Set("Range", headerParam0) + } - // ListEmailTemplatesWithResponse request - ListEmailTemplatesWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*ListEmailTemplatesClientResponse, error) + if params.XUploadSession != nil { + var headerParam1 string - // CreateEmailTemplateWithBodyWithResponse request with any body - CreateEmailTemplateWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEmailTemplateClientResponse, error) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Upload-Session", *params.XUploadSession, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + if err != nil { + return nil, err + } - CreateEmailTemplateWithResponse(ctx context.Context, id ProjectId, body CreateEmailTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEmailTemplateClientResponse, error) + req.Header.Set("X-Upload-Session", headerParam1) + } - // DeleteEmailTemplateWithResponse request - DeleteEmailTemplateWithResponse(ctx context.Context, id ProjectId, pType DeleteEmailTemplateParamsType, reqEditors ...RequestEditorFn) (*DeleteEmailTemplateClientResponse, error) + } - // GetEmailTemplateWithResponse request - GetEmailTemplateWithResponse(ctx context.Context, id ProjectId, pType GetEmailTemplateParamsType, reqEditors ...RequestEditorFn) (*GetEmailTemplateClientResponse, error) + return req, nil +} - // UpdateEmailTemplateWithBodyWithResponse request with any body - UpdateEmailTemplateWithBodyWithResponse(ctx context.Context, id ProjectId, pType UpdateEmailTemplateParamsType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEmailTemplateClientResponse, error) +// NewUploadStorageObjectRequest calls the generic UploadStorageObject builder with application/json body +func NewUploadStorageObjectRequest(server string, bucketName BucketName, path string, params *UploadStorageObjectParams, body UploadStorageObjectJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUploadStorageObjectRequestWithBody(server, bucketName, path, params, "application/json", bodyReader) +} - UpdateEmailTemplateWithResponse(ctx context.Context, id ProjectId, pType UpdateEmailTemplateParamsType, body UpdateEmailTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEmailTemplateClientResponse, error) +// NewUploadStorageObjectRequestWithBody generates requests for UploadStorageObject with any type of body +func NewUploadStorageObjectRequestWithBody(server string, bucketName BucketName, path string, params *UploadStorageObjectParams, contentType string, body io.Reader) (*http.Request, error) { + var err error - // ListFrontendsWithResponse request - ListFrontendsWithResponse(ctx context.Context, id ProjectId, params *ListFrontendsParams, reqEditors ...RequestEditorFn) (*ListFrontendsClientResponse, error) + var pathParam0 string - // CreateFrontendWithBodyWithResponse request with any body - CreateFrontendWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFrontendClientResponse, error) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } - // DeleteFrontendWithResponse request - DeleteFrontendWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*DeleteFrontendClientResponse, error) + var pathParam1 string - // GetFrontendWithResponse request - GetFrontendWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*GetFrontendClientResponse, error) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "path", path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } - // ListFrontendDeploymentsWithResponse request - ListFrontendDeploymentsWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, params *ListFrontendDeploymentsParams, reqEditors ...RequestEditorFn) (*ListFrontendDeploymentsClientResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // DeleteFrontendCustomDomainWithResponse request - DeleteFrontendCustomDomainWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*DeleteFrontendCustomDomainClientResponse, error) + operationPath := fmt.Sprintf("/storage/%s/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // GetFrontendCustomDomainWithResponse request - GetFrontendCustomDomainWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*GetFrontendCustomDomainClientResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // CreateFrontendCustomDomainWithBodyWithResponse request with any body - CreateFrontendCustomDomainWithBodyWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFrontendCustomDomainClientResponse, error) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + if err != nil { + return nil, err + } - CreateFrontendCustomDomainWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, body CreateFrontendCustomDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFrontendCustomDomainClientResponse, error) + req.Header.Add("Content-Type", contentType) - // RedeployFrontendWithResponse request - RedeployFrontendWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*RedeployFrontendClientResponse, error) + if params != nil { - // GetFrontendUsageHistoryWithResponse request - GetFrontendUsageHistoryWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, params *GetFrontendUsageHistoryParams, reqEditors ...RequestEditorFn) (*GetFrontendUsageHistoryClientResponse, error) + if params.XUploadSession != nil { + var headerParam0 string - // ListFunctionsWithResponse request - ListFunctionsWithResponse(ctx context.Context, id ProjectId, params *ListFunctionsParams, reqEditors ...RequestEditorFn) (*ListFunctionsClientResponse, error) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Upload-Session", *params.XUploadSession, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + if err != nil { + return nil, err + } - // CreateFunctionWithBodyWithResponse request with any body - CreateFunctionWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFunctionClientResponse, error) + req.Header.Set("X-Upload-Session", headerParam0) + } - // CreateFunctionsBatchWithBodyWithResponse request with any body - CreateFunctionsBatchWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFunctionsBatchClientResponse, error) + if params.XUploadComplete != nil { + var headerParam1 string - // DeleteFunctionWithResponse request - DeleteFunctionWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, reqEditors ...RequestEditorFn) (*DeleteFunctionClientResponse, error) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Upload-Complete", *params.XUploadComplete, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + if err != nil { + return nil, err + } - // GetFunctionWithResponse request - GetFunctionWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, reqEditors ...RequestEditorFn) (*GetFunctionClientResponse, error) + req.Header.Set("X-Upload-Complete", headerParam1) + } - // UpdateFunctionWithBodyWithResponse request with any body - UpdateFunctionWithBodyWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFunctionClientResponse, error) + } - UpdateFunctionWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, body UpdateFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFunctionClientResponse, error) + return req, nil +} - // ListFunctionDeploymentsWithResponse request - ListFunctionDeploymentsWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, params *ListFunctionDeploymentsParams, reqEditors ...RequestEditorFn) (*ListFunctionDeploymentsClientResponse, error) +// NewUploadPartRequestWithBody generates requests for UploadPart with any type of body +func NewUploadPartRequestWithBody(server string, bucketName BucketName, path string, params *UploadPartParams, contentType string, body io.Reader) (*http.Request, error) { + var err error - // ListFunctionSchedulersWithResponse request - ListFunctionSchedulersWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, reqEditors ...RequestEditorFn) (*ListFunctionSchedulersClientResponse, error) + var pathParam0 string - // CreateFunctionSchedulerWithBodyWithResponse request with any body - CreateFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFunctionSchedulerClientResponse, error) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } - CreateFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, body CreateFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFunctionSchedulerClientResponse, error) + var pathParam1 string - // DeleteFunctionSchedulerWithResponse request - DeleteFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*DeleteFunctionSchedulerClientResponse, error) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "path", path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } - // GetFunctionSchedulerWithResponse request - GetFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*GetFunctionSchedulerClientResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // UpdateFunctionSchedulerWithBodyWithResponse request with any body - UpdateFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFunctionSchedulerClientResponse, error) + operationPath := fmt.Sprintf("/storage/%s/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - UpdateFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, body UpdateFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFunctionSchedulerClientResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // DisconnectProjectGitWithResponse request - DisconnectProjectGitWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*DisconnectProjectGitClientResponse, error) + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) + if err != nil { + return nil, err + } - // GetProjectGitConnectionWithResponse request - GetProjectGitConnectionWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectGitConnectionClientResponse, error) + req.Header.Add("Content-Type", contentType) - // ConnectProjectGitWithBodyWithResponse request with any body - ConnectProjectGitWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConnectProjectGitClientResponse, error) + if params != nil { - ConnectProjectGitWithResponse(ctx context.Context, id ProjectId, body ConnectProjectGitJSONRequestBody, reqEditors ...RequestEditorFn) (*ConnectProjectGitClientResponse, error) + var headerParam0 string - // SetProjectGitProductionBranchWithBodyWithResponse request with any body - SetProjectGitProductionBranchWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetProjectGitProductionBranchClientResponse, error) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Upload-Session", params.XUploadSession, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + if err != nil { + return nil, err + } - SetProjectGitProductionBranchWithResponse(ctx context.Context, id ProjectId, body SetProjectGitProductionBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*SetProjectGitProductionBranchClientResponse, error) + req.Header.Set("X-Upload-Session", headerParam0) - // CreateProjectGitRepositoryWithBodyWithResponse request with any body - CreateProjectGitRepositoryWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectGitRepositoryClientResponse, error) + var headerParam1 string - CreateProjectGitRepositoryWithResponse(ctx context.Context, id ProjectId, body CreateProjectGitRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectGitRepositoryClientResponse, error) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Part-Number", params.XPartNumber, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "integer", Format: ""}) + if err != nil { + return nil, err + } - // GetProjectGitDeploySettingsWithResponse request - GetProjectGitDeploySettingsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectGitDeploySettingsClientResponse, error) + req.Header.Set("X-Part-Number", headerParam1) - // UpdateProjectGitDeploySettingsWithBodyWithResponse request with any body - UpdateProjectGitDeploySettingsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectGitDeploySettingsClientResponse, error) + } - UpdateProjectGitDeploySettingsWithResponse(ctx context.Context, id ProjectId, body UpdateProjectGitDeploySettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectGitDeploySettingsClientResponse, error) + return req, nil +} - // GetProjectHealthWithResponse request - GetProjectHealthWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectHealthClientResponse, error) +// NewUpdateStorageObjectVisibilityRequest calls the generic UpdateStorageObjectVisibility builder with application/json body +func NewUpdateStorageObjectVisibilityRequest(server string, bucketName BucketName, path string, body UpdateStorageObjectVisibilityJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateStorageObjectVisibilityRequestWithBody(server, bucketName, path, "application/json", bodyReader) +} - // DeleteProjectLogoWithResponse request - DeleteProjectLogoWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*DeleteProjectLogoClientResponse, error) +// NewUpdateStorageObjectVisibilityRequestWithBody generates requests for UpdateStorageObjectVisibility with any type of body +func NewUpdateStorageObjectVisibilityRequestWithBody(server string, bucketName BucketName, path string, contentType string, body io.Reader) (*http.Request, error) { + var err error - // GetProjectLogoWithResponse request - GetProjectLogoWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectLogoClientResponse, error) + var pathParam0 string - // UploadProjectLogoWithBodyWithResponse request with any body - UploadProjectLogoWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadProjectLogoClientResponse, error) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } - // GetProjectLogActivityWithBodyWithResponse request with any body - GetProjectLogActivityWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetProjectLogActivityClientResponse, error) + var pathParam1 string - GetProjectLogActivityWithResponse(ctx context.Context, id ProjectId, body GetProjectLogActivityJSONRequestBody, reqEditors ...RequestEditorFn) (*GetProjectLogActivityClientResponse, error) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "path", path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } - // SearchProjectLogsWithBodyWithResponse request with any body - SearchProjectLogsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SearchProjectLogsClientResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - SearchProjectLogsWithResponse(ctx context.Context, id ProjectId, body SearchProjectLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*SearchProjectLogsClientResponse, error) + operationPath := fmt.Sprintf("/storage/%s/%s/visibility", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // StreamProjectLogsWithBodyWithResponse request with any body - StreamProjectLogsWithBodyWithResponse(ctx context.Context, id ProjectId, params *StreamProjectLogsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StreamProjectLogsClientResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - StreamProjectLogsWithResponse(ctx context.Context, id ProjectId, params *StreamProjectLogsParams, body StreamProjectLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*StreamProjectLogsClientResponse, error) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) + if err != nil { + return nil, err + } - // QueryProjectMetricsWithBodyWithResponse request with any body - QueryProjectMetricsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryProjectMetricsClientResponse, error) + req.Header.Add("Content-Type", contentType) - QueryProjectMetricsWithResponse(ctx context.Context, id ProjectId, body QueryProjectMetricsJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryProjectMetricsClientResponse, error) + return req, nil +} - // ListOAuthConfigsWithResponse request - ListOAuthConfigsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*ListOAuthConfigsClientResponse, error) +// NewStartGitConnectRequest generates requests for StartGitConnect +func NewStartGitConnectRequest(server string, params *StartGitConnectParams) (*http.Request, error) { + var err error - // CreateOAuthConfigWithBodyWithResponse request with any body - CreateOAuthConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOAuthConfigClientResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - CreateOAuthConfigWithResponse(ctx context.Context, id ProjectId, body CreateOAuthConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOAuthConfigClientResponse, error) + operationPath := fmt.Sprintf("/user/git/connect") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // DeleteOAuthConfigWithResponse request - DeleteOAuthConfigWithResponse(ctx context.Context, id ProjectId, provider DeleteOAuthConfigParamsProvider, params *DeleteOAuthConfigParams, reqEditors ...RequestEditorFn) (*DeleteOAuthConfigClientResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // GetOAuthConfigWithResponse request - GetOAuthConfigWithResponse(ctx context.Context, id ProjectId, provider GetOAuthConfigParamsProvider, params *GetOAuthConfigParams, reqEditors ...RequestEditorFn) (*GetOAuthConfigClientResponse, error) + if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). + queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string - // UpdateOAuthConfigWithBodyWithResponse request with any body - UpdateOAuthConfigWithBodyWithResponse(ctx context.Context, id ProjectId, provider UpdateOAuthConfigParamsProvider, params *UpdateOAuthConfigParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOAuthConfigClientResponse, error) + if params.Provider != nil { - UpdateOAuthConfigWithResponse(ctx context.Context, id ProjectId, provider UpdateOAuthConfigParamsProvider, params *UpdateOAuthConfigParams, body UpdateOAuthConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOAuthConfigClientResponse, error) + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "provider", *params.Provider, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } - // ListAvailableOAuthProvidersWithResponse request - ListAvailableOAuthProvidersWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*ListAvailableOAuthProvidersClientResponse, error) + } - // GetRealtimeConfigWithResponse request - GetRealtimeConfigWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetRealtimeConfigClientResponse, error) + if params.Redirect != nil { - // UpdateRealtimeConfigWithBodyWithResponse request with any body - UpdateRealtimeConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRealtimeConfigClientResponse, error) + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "redirect", *params.Redirect, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } - UpdateRealtimeConfigWithResponse(ctx context.Context, id ProjectId, body UpdateRealtimeConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRealtimeConfigClientResponse, error) + } - // GetRealtimeStatsWithResponse request - GetRealtimeStatsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetRealtimeStatsClientResponse, error) + if params.CallbackUrl != nil { - // ListProjectSchedulersWithResponse request - ListProjectSchedulersWithResponse(ctx context.Context, id ProjectId, params *ListProjectSchedulersParams, reqEditors ...RequestEditorFn) (*ListProjectSchedulersClientResponse, error) + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "callback_url", *params.CallbackUrl, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uri"}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } - // ListServiceKeysWithResponse request - ListServiceKeysWithResponse(ctx context.Context, id ProjectId, params *ListServiceKeysParams, reqEditors ...RequestEditorFn) (*ListServiceKeysClientResponse, error) + } - // CreateServiceKeyWithBodyWithResponse request with any body - CreateServiceKeyWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceKeyClientResponse, error) + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + } - CreateServiceKeyWithResponse(ctx context.Context, id ProjectId, body CreateServiceKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceKeyClientResponse, error) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + if err != nil { + return nil, err + } - // DeleteServiceKeyWithResponse request - DeleteServiceKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteServiceKeyClientResponse, error) + return req, nil +} - // GetServiceKeyWithResponse request - GetServiceKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetServiceKeyClientResponse, error) +// NewListGitConnectionsRequest generates requests for ListGitConnections +func NewListGitConnectionsRequest(server string) (*http.Request, error) { + var err error - // RegenerateServiceKeyWithResponse request - RegenerateServiceKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RegenerateServiceKeyClientResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // ListStorageBucketsWithResponse request - ListStorageBucketsWithResponse(ctx context.Context, id ProjectId, params *ListStorageBucketsParams, reqEditors ...RequestEditorFn) (*ListStorageBucketsClientResponse, error) + operationPath := fmt.Sprintf("/user/git/connections") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // CreateStorageBucketWithBodyWithResponse request with any body - CreateStorageBucketWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateStorageBucketClientResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - CreateStorageBucketWithResponse(ctx context.Context, id ProjectId, body CreateStorageBucketJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateStorageBucketClientResponse, error) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + if err != nil { + return nil, err + } - // DeleteStorageBucketWithResponse request - DeleteStorageBucketWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, reqEditors ...RequestEditorFn) (*DeleteStorageBucketClientResponse, error) + return req, nil +} - // GetStorageBucketWithResponse request - GetStorageBucketWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, reqEditors ...RequestEditorFn) (*GetStorageBucketClientResponse, error) +// NewDeleteGitConnectionRequest generates requests for DeleteGitConnection +func NewDeleteGitConnectionRequest(server string, connectionId openapi_types.UUID) (*http.Request, error) { + var err error - // UpdateStorageBucketWithBodyWithResponse request with any body - UpdateStorageBucketWithBodyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStorageBucketClientResponse, error) + var pathParam0 string - UpdateStorageBucketWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, body UpdateStorageBucketJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStorageBucketClientResponse, error) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "connectionId", connectionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } - // ListStoragePoliciesWithResponse request - ListStoragePoliciesWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, reqEditors ...RequestEditorFn) (*ListStoragePoliciesClientResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // CreateStoragePolicyWithBodyWithResponse request with any body - CreateStoragePolicyWithBodyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateStoragePolicyClientResponse, error) + operationPath := fmt.Sprintf("/user/git/connections/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - CreateStoragePolicyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, body CreateStoragePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateStoragePolicyClientResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // DeleteStoragePolicyWithResponse request - DeleteStoragePolicyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, policyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteStoragePolicyClientResponse, error) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + if err != nil { + return nil, err + } - // ListStorageObjectsAdminWithResponse request - ListStorageObjectsAdminWithResponse(ctx context.Context, id ProjectId, params *ListStorageObjectsAdminParams, reqEditors ...RequestEditorFn) (*ListStorageObjectsAdminClientResponse, error) + return req, nil +} - // GetStorageStatsWithResponse request - GetStorageStatsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetStorageStatsClientResponse, error) +// NewListGitInstallationsRequest generates requests for ListGitInstallations +func NewListGitInstallationsRequest(server string, connectionId openapi_types.UUID) (*http.Request, error) { + var err error - // GetProjectUsageWithResponse request - GetProjectUsageWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectUsageClientResponse, error) + var pathParam0 string - // ListVariablesWithResponse request - ListVariablesWithResponse(ctx context.Context, id ProjectId, params *ListVariablesParams, reqEditors ...RequestEditorFn) (*ListVariablesClientResponse, error) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "connectionId", connectionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } - // CreateVariableWithBodyWithResponse request with any body - CreateVariableWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVariableClientResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - CreateVariableWithResponse(ctx context.Context, id ProjectId, body CreateVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVariableClientResponse, error) + operationPath := fmt.Sprintf("/user/git/connections/%s/installations", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // DeleteVariableWithResponse request - DeleteVariableWithResponse(ctx context.Context, id ProjectId, name VariableName, reqEditors ...RequestEditorFn) (*DeleteVariableClientResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // GetVariableWithResponse request - GetVariableWithResponse(ctx context.Context, id ProjectId, name VariableName, reqEditors ...RequestEditorFn) (*GetVariableClientResponse, error) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + if err != nil { + return nil, err + } - // UpdateVariableWithBodyWithResponse request with any body - UpdateVariableWithBodyWithResponse(ctx context.Context, id ProjectId, name VariableName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateVariableClientResponse, error) + return req, nil +} - UpdateVariableWithResponse(ctx context.Context, id ProjectId, name VariableName, body UpdateVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateVariableClientResponse, error) +// NewListGitInstallationRepositoriesRequest generates requests for ListGitInstallationRepositories +func NewListGitInstallationRepositoriesRequest(server string, connectionId openapi_types.UUID, installationId int64) (*http.Request, error) { + var err error - // DownloadPublicFileWithResponse request - DownloadPublicFileWithResponse(ctx context.Context, projectId openapi_types.UUID, bucketName BucketName, path string, reqEditors ...RequestEditorFn) (*DownloadPublicFileClientResponse, error) + var pathParam0 string - // ListStorageObjectsWithResponse request - ListStorageObjectsWithResponse(ctx context.Context, bucketName BucketName, params *ListStorageObjectsParams, reqEditors ...RequestEditorFn) (*ListStorageObjectsClientResponse, error) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "connectionId", connectionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } - // CopyStorageObjectWithBodyWithResponse request with any body - CopyStorageObjectWithBodyWithResponse(ctx context.Context, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CopyStorageObjectClientResponse, error) + var pathParam1 string - CopyStorageObjectWithResponse(ctx context.Context, bucketName BucketName, body CopyStorageObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CopyStorageObjectClientResponse, error) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "installationId", installationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + if err != nil { + return nil, err + } - // MoveStorageObjectWithBodyWithResponse request with any body - MoveStorageObjectWithBodyWithResponse(ctx context.Context, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MoveStorageObjectClientResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - MoveStorageObjectWithResponse(ctx context.Context, bucketName BucketName, body MoveStorageObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*MoveStorageObjectClientResponse, error) + operationPath := fmt.Sprintf("/user/git/connections/%s/installations/%s/repositories", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // DeleteStorageObjectWithResponse request - DeleteStorageObjectWithResponse(ctx context.Context, bucketName BucketName, path string, params *DeleteStorageObjectParams, reqEditors ...RequestEditorFn) (*DeleteStorageObjectClientResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // DownloadStorageObjectWithResponse request - DownloadStorageObjectWithResponse(ctx context.Context, bucketName BucketName, path string, params *DownloadStorageObjectParams, reqEditors ...RequestEditorFn) (*DownloadStorageObjectClientResponse, error) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + if err != nil { + return nil, err + } - // UploadStorageObjectWithBodyWithResponse request with any body - UploadStorageObjectWithBodyWithResponse(ctx context.Context, bucketName BucketName, path string, params *UploadStorageObjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadStorageObjectClientResponse, error) + return req, nil +} - UploadStorageObjectWithResponse(ctx context.Context, bucketName BucketName, path string, params *UploadStorageObjectParams, body UploadStorageObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UploadStorageObjectClientResponse, error) +// NewStartImportConnectRequest generates requests for StartImportConnect +func NewStartImportConnectRequest(server string, params *StartImportConnectParams) (*http.Request, error) { + var err error - // UploadPartWithBodyWithResponse request with any body - UploadPartWithBodyWithResponse(ctx context.Context, bucketName BucketName, path string, params *UploadPartParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadPartClientResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // UpdateStorageObjectVisibilityWithBodyWithResponse request with any body - UpdateStorageObjectVisibilityWithBodyWithResponse(ctx context.Context, bucketName BucketName, path string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStorageObjectVisibilityClientResponse, error) + operationPath := fmt.Sprintf("/user/imports/connect") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - UpdateStorageObjectVisibilityWithResponse(ctx context.Context, bucketName BucketName, path string, body UpdateStorageObjectVisibilityJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStorageObjectVisibilityClientResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // StartGitConnectWithResponse request - StartGitConnectWithResponse(ctx context.Context, params *StartGitConnectParams, reqEditors ...RequestEditorFn) (*StartGitConnectClientResponse, error) + if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). + queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string - // ListGitConnectionsWithResponse request - ListGitConnectionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListGitConnectionsClientResponse, error) + if params.Provider != nil { - // DeleteGitConnectionWithResponse request - DeleteGitConnectionWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteGitConnectionClientResponse, error) + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "provider", *params.Provider, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } - // ListGitInstallationsWithResponse request - ListGitInstallationsWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListGitInstallationsClientResponse, error) + } - // ListGitInstallationRepositoriesWithResponse request - ListGitInstallationRepositoriesWithResponse(ctx context.Context, connectionId openapi_types.UUID, installationId int64, reqEditors ...RequestEditorFn) (*ListGitInstallationRepositoriesClientResponse, error) + if params.Redirect != nil { - // StartImportConnectWithResponse request - StartImportConnectWithResponse(ctx context.Context, params *StartImportConnectParams, reqEditors ...RequestEditorFn) (*StartImportConnectClientResponse, error) + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "redirect", *params.Redirect, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uri"}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } - // ListImportConnectionsWithResponse request - ListImportConnectionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListImportConnectionsClientResponse, error) + } - // DeleteImportConnectionWithResponse request - DeleteImportConnectionWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteImportConnectionClientResponse, error) -} + if params.CallbackUrl != nil { -type AuthConfirmEmailClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Message *AuthConfirmEmail200JSONResponseBodyMessage `json:"message,omitempty"` - } -} + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "callback_url", *params.CallbackUrl, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uri"}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } -// Status returns HTTPResponse.Status -func (r AuthConfirmEmailClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + } -// StatusCode returns HTTPResponse.StatusCode -func (r AuthConfirmEmailClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - return 0 -} -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthConfirmEmailClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + if err != nil { + return nil, err } - return "" -} -type AuthDeviceAuthorizeClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *DeviceAuthorizationResponse - JSON400 *OAuthErrorResponse + return req, nil } -// Status returns HTTPResponse.Status -func (r AuthDeviceAuthorizeClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} +// NewListImportConnectionsRequest generates requests for ListImportConnections +func NewListImportConnectionsRequest(server string) (*http.Request, error) { + var err error -// StatusCode returns HTTPResponse.StatusCode -func (r AuthDeviceAuthorizeClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return 0 -} -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthDeviceAuthorizeClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") + operationPath := fmt.Sprintf("/user/imports/connections") + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return "" -} - -type AuthDeviceTokenClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *AuthTokenResponse - JSON400 *OAuthErrorResponse - JSON403 *OAuthErrorResponse -} -// Status returns HTTPResponse.Status -func (r AuthDeviceTokenClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r AuthDeviceTokenClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + if err != nil { + return nil, err } - return 0 + + return req, nil } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthDeviceTokenClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// NewDeleteImportConnectionRequest generates requests for DeleteImportConnection +func NewDeleteImportConnectionRequest(server string, connectionId openapi_types.UUID) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "connectionId", connectionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err } - return "" -} -type AuthDeviceVerifyClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Status *string `json:"status,omitempty"` - Success *bool `json:"success,omitempty"` + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - JSON401 *Error -} -// Status returns HTTPResponse.Status -func (r AuthDeviceVerifyClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + operationPath := fmt.Sprintf("/user/imports/connections/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r AuthDeviceVerifyClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return 0 -} -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthDeviceVerifyClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + if err != nil { + return nil, err } - return "" + + return req, nil } -type AuthForgotPasswordClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Message *string `json:"message,omitempty"` +func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error { + for _, r := range c.RequestEditors { + if err := r(ctx, req); err != nil { + return err + } } - JSON403 *Error - JSON429 *Error + for _, r := range additionalEditors { + if err := r(ctx, req); err != nil { + return err + } + } + return nil } -// Status returns HTTPResponse.Status -func (r AuthForgotPasswordClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) +// ClientWithResponses builds on ClientInterface to offer response payloads +type ClientWithResponses struct { + ClientInterface } -// StatusCode returns HTTPResponse.StatusCode -func (r AuthForgotPasswordClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// NewClientWithResponses creates a new ClientWithResponses, which wraps +// Client with return type handling +func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) { + client, err := NewClient(server, opts...) + if err != nil { + return nil, err } - return 0 + return &ClientWithResponses{client}, nil } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthForgotPasswordClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// WithBaseURL overrides the baseURL. +func WithBaseURL(baseURL string) ClientOption { + return func(c *Client) error { + newBaseURL, err := url.Parse(baseURL) + if err != nil { + return err + } + c.Server = newBaseURL.String() + return nil } - return "" } -type AuthLogoutClientResponse struct { - Body []byte - HTTPResponse *http.Response -} +// ClientWithResponsesInterface is the interface specification for the client with responses above. +type ClientWithResponsesInterface interface { + // AuthConfirmEmailWithBodyWithResponse request with any body + AuthConfirmEmailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthConfirmEmailClientResponse, error) + + AuthConfirmEmailWithResponse(ctx context.Context, body AuthConfirmEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthConfirmEmailClientResponse, error) + + // AuthDeviceAuthorizeWithBodyWithResponse request with any body + AuthDeviceAuthorizeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthDeviceAuthorizeClientResponse, error) + + AuthDeviceAuthorizeWithResponse(ctx context.Context, body AuthDeviceAuthorizeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthDeviceAuthorizeClientResponse, error) + + // AuthDeviceTokenWithBodyWithResponse request with any body + AuthDeviceTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthDeviceTokenClientResponse, error) + + AuthDeviceTokenWithResponse(ctx context.Context, body AuthDeviceTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthDeviceTokenClientResponse, error) + + // AuthDeviceVerifyWithBodyWithResponse request with any body + AuthDeviceVerifyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthDeviceVerifyClientResponse, error) + + AuthDeviceVerifyWithResponse(ctx context.Context, body AuthDeviceVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthDeviceVerifyClientResponse, error) + + // AuthForgotPasswordWithBodyWithResponse request with any body + AuthForgotPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthForgotPasswordClientResponse, error) + + AuthForgotPasswordWithResponse(ctx context.Context, body AuthForgotPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthForgotPasswordClientResponse, error) + + // AuthLogoutWithBodyWithResponse request with any body + AuthLogoutWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthLogoutClientResponse, error) + + AuthLogoutWithResponse(ctx context.Context, body AuthLogoutJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthLogoutClientResponse, error) + + // AuthOAuthExchangeWithBodyWithResponse request with any body + AuthOAuthExchangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthOAuthExchangeClientResponse, error) + + AuthOAuthExchangeWithResponse(ctx context.Context, body AuthOAuthExchangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthOAuthExchangeClientResponse, error) + + // AuthListOAuthProvidersWithResponse request + AuthListOAuthProvidersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthListOAuthProvidersClientResponse, error) + + // AuthOAuthAuthorizeWithResponse request + AuthOAuthAuthorizeWithResponse(ctx context.Context, provider AuthOAuthAuthorizeParamsProvider, params *AuthOAuthAuthorizeParams, reqEditors ...RequestEditorFn) (*AuthOAuthAuthorizeClientResponse, error) + + // CallOAuthProviderAPIWithBodyWithResponse request with any body + CallOAuthProviderAPIWithBodyWithResponse(ctx context.Context, provider CallOAuthProviderAPIParamsProvider, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CallOAuthProviderAPIClientResponse, error) + + CallOAuthProviderAPIWithResponse(ctx context.Context, provider CallOAuthProviderAPIParamsProvider, body CallOAuthProviderAPIJSONRequestBody, reqEditors ...RequestEditorFn) (*CallOAuthProviderAPIClientResponse, error) + + // AuthOAuthCallbackWithResponse request + AuthOAuthCallbackWithResponse(ctx context.Context, provider AuthOAuthCallbackParamsProvider, params *AuthOAuthCallbackParams, reqEditors ...RequestEditorFn) (*AuthOAuthCallbackClientResponse, error) + + // AuthLinkOAuthProviderWithResponse request + AuthLinkOAuthProviderWithResponse(ctx context.Context, provider AuthLinkOAuthProviderParamsProvider, params *AuthLinkOAuthProviderParams, reqEditors ...RequestEditorFn) (*AuthLinkOAuthProviderClientResponse, error) + + // RefreshOAuthProviderTokenWithResponse request + RefreshOAuthProviderTokenWithResponse(ctx context.Context, provider RefreshOAuthProviderTokenParamsProvider, reqEditors ...RequestEditorFn) (*RefreshOAuthProviderTokenClientResponse, error) + + // GetOAuthProviderTokenWithResponse request + GetOAuthProviderTokenWithResponse(ctx context.Context, provider GetOAuthProviderTokenParamsProvider, reqEditors ...RequestEditorFn) (*GetOAuthProviderTokenClientResponse, error) + + // AuthUnlinkOAuthProviderWithResponse request + AuthUnlinkOAuthProviderWithResponse(ctx context.Context, provider AuthUnlinkOAuthProviderParamsProvider, reqEditors ...RequestEditorFn) (*AuthUnlinkOAuthProviderClientResponse, error) + + // AuthGetPasswordPolicyWithResponse request + AuthGetPasswordPolicyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthGetPasswordPolicyClientResponse, error) + + // AuthPlatformExchangeWithBodyWithResponse request with any body + AuthPlatformExchangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthPlatformExchangeClientResponse, error) + + AuthPlatformExchangeWithResponse(ctx context.Context, body AuthPlatformExchangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthPlatformExchangeClientResponse, error) + + // AuthRefreshWithBodyWithResponse request with any body + AuthRefreshWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthRefreshClientResponse, error) + + AuthRefreshWithResponse(ctx context.Context, body AuthRefreshJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRefreshClientResponse, error) + + // AuthResendConfirmationWithBodyWithResponse request with any body + AuthResendConfirmationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthResendConfirmationClientResponse, error) + + AuthResendConfirmationWithResponse(ctx context.Context, body AuthResendConfirmationJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthResendConfirmationClientResponse, error) + + // AuthResetPasswordWithBodyWithResponse request with any body + AuthResetPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthResetPasswordClientResponse, error) + + AuthResetPasswordWithResponse(ctx context.Context, body AuthResetPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthResetPasswordClientResponse, error) + + // AuthSigninWithBodyWithResponse request with any body + AuthSigninWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthSigninClientResponse, error) + + AuthSigninWithResponse(ctx context.Context, body AuthSigninJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthSigninClientResponse, error) + + // AuthSignupWithBodyWithResponse request with any body + AuthSignupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthSignupClientResponse, error) + + AuthSignupWithResponse(ctx context.Context, body AuthSignupJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthSignupClientResponse, error) + + // AuthSignupAnonymousWithBodyWithResponse request with any body + AuthSignupAnonymousWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthSignupAnonymousClientResponse, error) + + AuthSignupAnonymousWithResponse(ctx context.Context, body AuthSignupAnonymousJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthSignupAnonymousClientResponse, error) + + // AuthGetUserWithResponse request + AuthGetUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthGetUserClientResponse, error) + + // AuthUpdateUserWithBodyWithResponse request with any body + AuthUpdateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthUpdateUserClientResponse, error) + + AuthUpdateUserWithResponse(ctx context.Context, body AuthUpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthUpdateUserClientResponse, error) + + // AuthCancelEmailChangeWithResponse request + AuthCancelEmailChangeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthCancelEmailChangeClientResponse, error) + + // AuthRequestEmailChangeWithBodyWithResponse request with any body + AuthRequestEmailChangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthRequestEmailChangeClientResponse, error) + + AuthRequestEmailChangeWithResponse(ctx context.Context, body AuthRequestEmailChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRequestEmailChangeClientResponse, error) + + // AuthConfirmEmailChangeWithBodyWithResponse request with any body + AuthConfirmEmailChangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthConfirmEmailChangeClientResponse, error) + + AuthConfirmEmailChangeWithResponse(ctx context.Context, body AuthConfirmEmailChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthConfirmEmailChangeClientResponse, error) + + // AuthConvertAnonymousWithBodyWithResponse request with any body + AuthConvertAnonymousWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthConvertAnonymousClientResponse, error) + + AuthConvertAnonymousWithResponse(ctx context.Context, body AuthConvertAnonymousJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthConvertAnonymousClientResponse, error) + + // AuthListIdentitiesWithResponse request + AuthListIdentitiesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthListIdentitiesClientResponse, error) + + // AuthUnlinkIdentityWithResponse request + AuthUnlinkIdentityWithResponse(ctx context.Context, identityId openapi_types.UUID, reqEditors ...RequestEditorFn) (*AuthUnlinkIdentityClientResponse, error) + + // AuthListMethodsWithResponse request + AuthListMethodsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthListMethodsClientResponse, error) + + // AuthPromoteMethodWithResponse request + AuthPromoteMethodWithResponse(ctx context.Context, methodId openapi_types.UUID, reqEditors ...RequestEditorFn) (*AuthPromoteMethodClientResponse, error) + + // AuthDeleteAllMySessionsWithResponse request + AuthDeleteAllMySessionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthDeleteAllMySessionsClientResponse, error) + + // AuthGetMySessionsWithResponse request + AuthGetMySessionsWithResponse(ctx context.Context, params *AuthGetMySessionsParams, reqEditors ...RequestEditorFn) (*AuthGetMySessionsClientResponse, error) + + // AuthDeleteMySessionWithResponse request + AuthDeleteMySessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*AuthDeleteMySessionClientResponse, error) + + // ListPostgresVersionsWithResponse request + ListPostgresVersionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListPostgresVersionsClientResponse, error) + + // ListDatabaseRegionsWithResponse request + ListDatabaseRegionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListDatabaseRegionsClientResponse, error) + + // QueryDatabaseBranchDeleteWithBodyWithResponse request with any body + QueryDatabaseBranchDeleteWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchDeleteClientResponse, error) + + QueryDatabaseBranchDeleteWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchDeleteClientResponse, error) + + // QueryDatabaseBranchInsertWithBodyWithResponse request with any body + QueryDatabaseBranchInsertWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchInsertClientResponse, error) + + QueryDatabaseBranchInsertWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchInsertJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchInsertClientResponse, error) + + // QueryDatabaseBranchPingWithResponse request + QueryDatabaseBranchPingWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchPingClientResponse, error) + + // QueryDatabaseBranchSelectWithBodyWithResponse request with any body + QueryDatabaseBranchSelectWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchSelectClientResponse, error) + + QueryDatabaseBranchSelectWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchSelectJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchSelectClientResponse, error) + + // QueryDatabaseBranchUpdateWithBodyWithResponse request with any body + QueryDatabaseBranchUpdateWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchUpdateClientResponse, error) + + QueryDatabaseBranchUpdateWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchUpdateClientResponse, error) + + // QueryDatabaseDeleteWithBodyWithResponse request with any body + QueryDatabaseDeleteWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseDeleteClientResponse, error) + + QueryDatabaseDeleteWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseDeleteClientResponse, error) + + // QueryDatabaseInsertWithBodyWithResponse request with any body + QueryDatabaseInsertWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseInsertClientResponse, error) + + QueryDatabaseInsertWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseInsertJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseInsertClientResponse, error) + + // QueryDatabasePingWithResponse request + QueryDatabasePingWithResponse(ctx context.Context, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*QueryDatabasePingClientResponse, error) + + // QueryDatabaseSelectWithBodyWithResponse request with any body + QueryDatabaseSelectWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseSelectClientResponse, error) + + QueryDatabaseSelectWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseSelectJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseSelectClientResponse, error) + + // QueryDatabaseUpdateWithBodyWithResponse request with any body + QueryDatabaseUpdateWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseUpdateClientResponse, error) + + QueryDatabaseUpdateWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseUpdateClientResponse, error) + + // ListDeploymentsWithResponse request + ListDeploymentsWithResponse(ctx context.Context, params *ListDeploymentsParams, reqEditors ...RequestEditorFn) (*ListDeploymentsClientResponse, error) + + // StartDurableExecutionFromApplicationWithBodyWithResponse request with any body + StartDurableExecutionFromApplicationWithBodyWithResponse(ctx context.Context, functionId DurableFunctionId, params *StartDurableExecutionFromApplicationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartDurableExecutionFromApplicationClientResponse, error) + + StartDurableExecutionFromApplicationWithResponse(ctx context.Context, functionId DurableFunctionId, params *StartDurableExecutionFromApplicationParams, body StartDurableExecutionFromApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*StartDurableExecutionFromApplicationClientResponse, error) + + // GetDefaultEmailTemplatesWithResponse request + GetDefaultEmailTemplatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDefaultEmailTemplatesClientResponse, error) + + // GetDefaultEmailTemplateWithResponse request + GetDefaultEmailTemplateWithResponse(ctx context.Context, pType GetDefaultEmailTemplateParamsType, reqEditors ...RequestEditorFn) (*GetDefaultEmailTemplateClientResponse, error) + + // ListFunctionRegionsWithResponse request + ListFunctionRegionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListFunctionRegionsClientResponse, error) + + // ResolveFunctionForInvocationWithResponse request + ResolveFunctionForInvocationWithResponse(ctx context.Context, params *ResolveFunctionForInvocationParams, reqEditors ...RequestEditorFn) (*ResolveFunctionForInvocationClientResponse, error) + + // ListFunctionRuntimesWithResponse request + ListFunctionRuntimesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListFunctionRuntimesClientResponse, error) + + // InvokeFunctionWithBodyWithResponse request with any body + InvokeFunctionWithBodyWithResponse(ctx context.Context, functionId FunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InvokeFunctionClientResponse, error) + + InvokeFunctionWithResponse(ctx context.Context, functionId FunctionId, body InvokeFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*InvokeFunctionClientResponse, error) + + // GitConnectCallbackWithResponse request + GitConnectCallbackWithResponse(ctx context.Context, params *GitConnectCallbackParams, reqEditors ...RequestEditorFn) (*GitConnectCallbackClientResponse, error) + + // HealthCheckWithResponse request + HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckClientResponse, error) + + // CompleteImportConnectWithResponse request + CompleteImportConnectWithResponse(ctx context.Context, provider ImportProvider, params *CompleteImportConnectParams, reqEditors ...RequestEditorFn) (*CompleteImportConnectClientResponse, error) + + // PreflightProjectImportWithBodyWithResponse request with any body + PreflightProjectImportWithBodyWithResponse(ctx context.Context, provider ImportProvider, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PreflightProjectImportClientResponse, error) + + PreflightProjectImportWithResponse(ctx context.Context, provider ImportProvider, body PreflightProjectImportJSONRequestBody, reqEditors ...RequestEditorFn) (*PreflightProjectImportClientResponse, error) + + // StartProjectImportWithBodyWithResponse request with any body + StartProjectImportWithBodyWithResponse(ctx context.Context, provider ImportProvider, params *StartProjectImportParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartProjectImportClientResponse, error) + + StartProjectImportWithResponse(ctx context.Context, provider ImportProvider, params *StartProjectImportParams, body StartProjectImportJSONRequestBody, reqEditors ...RequestEditorFn) (*StartProjectImportClientResponse, error) + + // GetProjectImportRunWithResponse request + GetProjectImportRunWithResponse(ctx context.Context, provider ImportProvider, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectImportRunClientResponse, error) + + // ListImportSourcesWithResponse request + ListImportSourcesWithResponse(ctx context.Context, provider ImportProvider, params *ListImportSourcesParams, reqEditors ...RequestEditorFn) (*ListImportSourcesClientResponse, error) + + // ForceReleaseProjectLockWithResponse request + ForceReleaseProjectLockWithResponse(ctx context.Context, key LockKey, params *ForceReleaseProjectLockParams, reqEditors ...RequestEditorFn) (*ForceReleaseProjectLockClientResponse, error) + + // GetProjectLockWithResponse request + GetProjectLockWithResponse(ctx context.Context, key LockKey, params *GetProjectLockParams, reqEditors ...RequestEditorFn) (*GetProjectLockClientResponse, error) + + // ReleaseProjectLockWithResponse request + ReleaseProjectLockWithResponse(ctx context.Context, key LockKey, params *ReleaseProjectLockParams, reqEditors ...RequestEditorFn) (*ReleaseProjectLockClientResponse, error) + + // RenewProjectLockWithBodyWithResponse request with any body + RenewProjectLockWithBodyWithResponse(ctx context.Context, key LockKey, params *RenewProjectLockParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenewProjectLockClientResponse, error) + + RenewProjectLockWithResponse(ctx context.Context, key LockKey, params *RenewProjectLockParams, body RenewProjectLockJSONRequestBody, reqEditors ...RequestEditorFn) (*RenewProjectLockClientResponse, error) + + // AcquireProjectLockWithBodyWithResponse request with any body + AcquireProjectLockWithBodyWithResponse(ctx context.Context, key LockKey, params *AcquireProjectLockParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AcquireProjectLockClientResponse, error) + + AcquireProjectLockWithResponse(ctx context.Context, key LockKey, params *AcquireProjectLockParams, body AcquireProjectLockJSONRequestBody, reqEditors ...RequestEditorFn) (*AcquireProjectLockClientResponse, error) + + // CallMCPWithBodyWithResponse request with any body + CallMCPWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CallMCPClientResponse, error) + + CallMCPWithResponse(ctx context.Context, body CallMCPJSONRequestBody, reqEditors ...RequestEditorFn) (*CallMCPClientResponse, error) + + // GetOpenAPISpecJSONWithResponse request + GetOpenAPISpecJSONWithResponse(ctx context.Context, params *GetOpenAPISpecJSONParams, reqEditors ...RequestEditorFn) (*GetOpenAPISpecJSONClientResponse, error) + + // HeadOpenAPISpecJSONWithResponse request + HeadOpenAPISpecJSONWithResponse(ctx context.Context, params *HeadOpenAPISpecJSONParams, reqEditors ...RequestEditorFn) (*HeadOpenAPISpecJSONClientResponse, error) + + // GetOpenAPISpecYAMLWithResponse request + GetOpenAPISpecYAMLWithResponse(ctx context.Context, params *GetOpenAPISpecYAMLParams, reqEditors ...RequestEditorFn) (*GetOpenAPISpecYAMLClientResponse, error) + + // HeadOpenAPISpecYAMLWithResponse request + HeadOpenAPISpecYAMLWithResponse(ctx context.Context, params *HeadOpenAPISpecYAMLParams, reqEditors ...RequestEditorFn) (*HeadOpenAPISpecYAMLClientResponse, error) + + // ListProjectsWithResponse request + ListProjectsWithResponse(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*ListProjectsClientResponse, error) + + // CreateProjectWithBodyWithResponse request with any body + CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectClientResponse, error) + + CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectClientResponse, error) + + // DeleteProjectWithResponse request + DeleteProjectWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*DeleteProjectClientResponse, error) + + // GetProjectWithResponse request + GetProjectWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectClientResponse, error) + + // UpdateProjectWithBodyWithResponse request with any body + UpdateProjectWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectClientResponse, error) + + UpdateProjectWithResponse(ctx context.Context, id ProjectId, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectClientResponse, error) + + // ListProjectAccessTokensWithResponse request + ListProjectAccessTokensWithResponse(ctx context.Context, id ProjectId, params *ListProjectAccessTokensParams, reqEditors ...RequestEditorFn) (*ListProjectAccessTokensClientResponse, error) + + // CreateProjectAccessTokenWithBodyWithResponse request with any body + CreateProjectAccessTokenWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectAccessTokenClientResponse, error) + + CreateProjectAccessTokenWithResponse(ctx context.Context, id ProjectId, body CreateProjectAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectAccessTokenClientResponse, error) + + // ListProjectAccessTokensUsageWithResponse request + ListProjectAccessTokensUsageWithResponse(ctx context.Context, id ProjectId, params *ListProjectAccessTokensUsageParams, reqEditors ...RequestEditorFn) (*ListProjectAccessTokensUsageClientResponse, error) + + // RevokeProjectAccessTokenWithResponse request + RevokeProjectAccessTokenWithResponse(ctx context.Context, id ProjectId, tokenId TokenId, reqEditors ...RequestEditorFn) (*RevokeProjectAccessTokenClientResponse, error) + + // GetProjectAccessTokenWithResponse request + GetProjectAccessTokenWithResponse(ctx context.Context, id ProjectId, tokenId TokenId, reqEditors ...RequestEditorFn) (*GetProjectAccessTokenClientResponse, error) + + // GetProjectAccessTokenUsageWithResponse request + GetProjectAccessTokenUsageWithResponse(ctx context.Context, id ProjectId, tokenId TokenId, params *GetProjectAccessTokenUsageParams, reqEditors ...RequestEditorFn) (*GetProjectAccessTokenUsageClientResponse, error) + + // ListAnonKeysWithResponse request + ListAnonKeysWithResponse(ctx context.Context, id ProjectId, params *ListAnonKeysParams, reqEditors ...RequestEditorFn) (*ListAnonKeysClientResponse, error) + + // CreateAnonKeyWithBodyWithResponse request with any body + CreateAnonKeyWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAnonKeyClientResponse, error) + + CreateAnonKeyWithResponse(ctx context.Context, id ProjectId, body CreateAnonKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAnonKeyClientResponse, error) + + // RevokeAnonKeyWithResponse request + RevokeAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RevokeAnonKeyClientResponse, error) + + // GetAnonKeyWithResponse request + GetAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAnonKeyClientResponse, error) + + // RegenerateAnonKeyWithResponse request + RegenerateAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RegenerateAnonKeyClientResponse, error) + + // SetDefaultAnonKeyWithResponse request + SetDefaultAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*SetDefaultAnonKeyClientResponse, error) + + // GetAuthConfigWithResponse request + GetAuthConfigWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetAuthConfigClientResponse, error) + + // UpdateAuthConfigWithBodyWithResponse request with any body + UpdateAuthConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAuthConfigClientResponse, error) + + UpdateAuthConfigWithResponse(ctx context.Context, id ProjectId, body UpdateAuthConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAuthConfigClientResponse, error) + + // TestEmailConfigWithBodyWithResponse request with any body + TestEmailConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestEmailConfigClientResponse, error) + + TestEmailConfigWithResponse(ctx context.Context, id ProjectId, body TestEmailConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*TestEmailConfigClientResponse, error) + + // RenderDefaultManagedAuthPageWithResponse request + RenderDefaultManagedAuthPageWithResponse(ctx context.Context, id ProjectId, params *RenderDefaultManagedAuthPageParams, reqEditors ...RequestEditorFn) (*RenderDefaultManagedAuthPageClientResponse, error) + + // GetAuthHostedPageWithResponse request + GetAuthHostedPageWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, reqEditors ...RequestEditorFn) (*GetAuthHostedPageClientResponse, error) + + // UpdateAuthHostedPageWithBodyWithResponse request with any body + UpdateAuthHostedPageWithBodyWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAuthHostedPageClientResponse, error) + + UpdateAuthHostedPageWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, body UpdateAuthHostedPageJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAuthHostedPageClientResponse, error) + + // HostedLoginCheckEmailWithBodyWithResponse request with any body + HostedLoginCheckEmailWithBodyWithResponse(ctx context.Context, id ProjectId, params *HostedLoginCheckEmailParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HostedLoginCheckEmailClientResponse, error) + + HostedLoginCheckEmailWithResponse(ctx context.Context, id ProjectId, params *HostedLoginCheckEmailParams, body HostedLoginCheckEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*HostedLoginCheckEmailClientResponse, error) + + // GetHostedLoginOptionsWithResponse request + GetHostedLoginOptionsWithResponse(ctx context.Context, id ProjectId, params *GetHostedLoginOptionsParams, reqEditors ...RequestEditorFn) (*GetHostedLoginOptionsClientResponse, error) + + // RenderManagedAuthPageWithResponse request + RenderManagedAuthPageWithResponse(ctx context.Context, id ProjectId, pageType HostedRenderablePageType, reqEditors ...RequestEditorFn) (*RenderManagedAuthPageClientResponse, error) + + // GetAuthInsightsWithResponse request + GetAuthInsightsWithResponse(ctx context.Context, id ProjectId, params *GetAuthInsightsParams, reqEditors ...RequestEditorFn) (*GetAuthInsightsClientResponse, error) + + // GetAuthMethodsWithResponse request + GetAuthMethodsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetAuthMethodsClientResponse, error) + + // ConfigureAuthMethodsWithBodyWithResponse request with any body + ConfigureAuthMethodsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfigureAuthMethodsClientResponse, error) + + ConfigureAuthMethodsWithResponse(ctx context.Context, id ProjectId, body ConfigureAuthMethodsJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfigureAuthMethodsClientResponse, error) + + // GetAuthPageAppearanceWithResponse request + GetAuthPageAppearanceWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetAuthPageAppearanceClientResponse, error) + + // DeleteAuthPageThemeWithResponse request + DeleteAuthPageThemeWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*DeleteAuthPageThemeClientResponse, error) + + // UpdateAuthPageThemeWithBodyWithResponse request with any body + UpdateAuthPageThemeWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAuthPageThemeClientResponse, error) + + UpdateAuthPageThemeWithResponse(ctx context.Context, id ProjectId, body UpdateAuthPageThemeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAuthPageThemeClientResponse, error) + + // DeleteAuthPageLayoutWithResponse request + DeleteAuthPageLayoutWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, reqEditors ...RequestEditorFn) (*DeleteAuthPageLayoutClientResponse, error) + + // UpdateAuthPageLayoutWithBodyWithResponse request with any body + UpdateAuthPageLayoutWithBodyWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAuthPageLayoutClientResponse, error) + + UpdateAuthPageLayoutWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, body UpdateAuthPageLayoutJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAuthPageLayoutClientResponse, error) + + // RenderAuthPagePreviewWithResponse request + RenderAuthPagePreviewWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, params *RenderAuthPagePreviewParams, reqEditors ...RequestEditorFn) (*RenderAuthPagePreviewClientResponse, error) + + // PreviewAuthPageWithBodyWithResponse request with any body + PreviewAuthPageWithBodyWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PreviewAuthPageClientResponse, error) + + PreviewAuthPageWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, body PreviewAuthPageJSONRequestBody, reqEditors ...RequestEditorFn) (*PreviewAuthPageClientResponse, error) + + // ListAuthUsersWithResponse request + ListAuthUsersWithResponse(ctx context.Context, id ProjectId, params *ListAuthUsersParams, reqEditors ...RequestEditorFn) (*ListAuthUsersClientResponse, error) + + // DeleteAuthUserWithResponse request + DeleteAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAuthUserClientResponse, error) + + // GetAuthUserWithResponse request + GetAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAuthUserClientResponse, error) + + // BanAuthUserWithBodyWithResponse request with any body + BanAuthUserWithBodyWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BanAuthUserClientResponse, error) + + BanAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, body BanAuthUserJSONRequestBody, reqEditors ...RequestEditorFn) (*BanAuthUserClientResponse, error) + + // DeleteAllUserSessionsWithResponse request + DeleteAllUserSessionsWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAllUserSessionsClientResponse, error) + + // ListUserSessionsWithResponse request + ListUserSessionsWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, params *ListUserSessionsParams, reqEditors ...RequestEditorFn) (*ListUserSessionsClientResponse, error) + + // DeleteUserSessionWithResponse request + DeleteUserSessionWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteUserSessionClientResponse, error) + + // UnbanAuthUserWithResponse request + UnbanAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*UnbanAuthUserClientResponse, error) + + // GetProjectConfigWithResponse request + GetProjectConfigWithResponse(ctx context.Context, id ProjectId, params *GetProjectConfigParams, reqEditors ...RequestEditorFn) (*GetProjectConfigClientResponse, error) + + // ApplyProjectConfigWithBodyWithResponse request with any body + ApplyProjectConfigWithBodyWithResponse(ctx context.Context, id ProjectId, params *ApplyProjectConfigParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplyProjectConfigClientResponse, error) + + ApplyProjectConfigWithResponse(ctx context.Context, id ProjectId, params *ApplyProjectConfigParams, body ApplyProjectConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplyProjectConfigClientResponse, error) + + // ListDatabasesWithResponse request + ListDatabasesWithResponse(ctx context.Context, id ProjectId, params *ListDatabasesParams, reqEditors ...RequestEditorFn) (*ListDatabasesClientResponse, error) + + // CreateDatabaseWithBodyWithResponse request with any body + CreateDatabaseWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseClientResponse, error) + + CreateDatabaseWithResponse(ctx context.Context, id ProjectId, body CreateDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseClientResponse, error) + + // DeleteDatabaseWithResponse request + DeleteDatabaseWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*DeleteDatabaseClientResponse, error) + + // GetDatabaseWithResponse request + GetDatabaseWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*GetDatabaseClientResponse, error) + + // GetDatabaseBackupScheduleWithResponse request + GetDatabaseBackupScheduleWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*GetDatabaseBackupScheduleClientResponse, error) + + // UpdateDatabaseBackupScheduleWithBodyWithResponse request with any body + UpdateDatabaseBackupScheduleWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDatabaseBackupScheduleClientResponse, error) + + UpdateDatabaseBackupScheduleWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body UpdateDatabaseBackupScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDatabaseBackupScheduleClientResponse, error) + + // ListDatabaseBackupsWithResponse request + ListDatabaseBackupsWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ListDatabaseBackupsClientResponse, error) + + // CreateDatabaseBackupWithBodyWithResponse request with any body + CreateDatabaseBackupWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseBackupClientResponse, error) + + CreateDatabaseBackupWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body CreateDatabaseBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseBackupClientResponse, error) + + // DeleteDatabaseBackupWithResponse request + DeleteDatabaseBackupWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, backupName BackupName, reqEditors ...RequestEditorFn) (*DeleteDatabaseBackupClientResponse, error) + + // GetDatabaseBackupWithResponse request + GetDatabaseBackupWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, backupName BackupName, reqEditors ...RequestEditorFn) (*GetDatabaseBackupClientResponse, error) + + // ListDatabaseBranchesWithResponse request + ListDatabaseBranchesWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ListDatabaseBranchesClientResponse, error) + + // CreateDatabaseBranchWithBodyWithResponse request with any body + CreateDatabaseBranchWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseBranchClientResponse, error) + + CreateDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body CreateDatabaseBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseBranchClientResponse, error) + + // DeleteDatabaseBranchWithResponse request + DeleteDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*DeleteDatabaseBranchClientResponse, error) + + // GetDatabaseBranchWithResponse request + GetDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*GetDatabaseBranchClientResponse, error) + + // UpdateDatabaseBranchWithBodyWithResponse request with any body + UpdateDatabaseBranchWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDatabaseBranchClientResponse, error) + + UpdateDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, body UpdateDatabaseBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDatabaseBranchClientResponse, error) + + // ResetDatabaseBranchWithResponse request + ResetDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*ResetDatabaseBranchClientResponse, error) + + // ResetDatabaseBranchPasswordWithResponse request + ResetDatabaseBranchPasswordWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*ResetDatabaseBranchPasswordClientResponse, error) + + // GetProjectDatabaseQueriesWithResponse request + GetProjectDatabaseQueriesWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, params *GetProjectDatabaseQueriesParams, reqEditors ...RequestEditorFn) (*GetProjectDatabaseQueriesClientResponse, error) + + // ResetDatabasePasswordWithResponse request + ResetDatabasePasswordWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ResetDatabasePasswordClientResponse, error) + + // ListDatabaseRestoresWithResponse request + ListDatabaseRestoresWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ListDatabaseRestoresClientResponse, error) + + // CreateDatabaseRestoreWithBodyWithResponse request with any body + CreateDatabaseRestoreWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseRestoreClientResponse, error) + + CreateDatabaseRestoreWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body CreateDatabaseRestoreJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseRestoreClientResponse, error) + + // GetDatabaseRestoreWithResponse request + GetDatabaseRestoreWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, restoreId RestoreId, reqEditors ...RequestEditorFn) (*GetDatabaseRestoreClientResponse, error) + + // GetDatabaseStatsWithResponse request + GetDatabaseStatsWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, params *GetDatabaseStatsParams, reqEditors ...RequestEditorFn) (*GetDatabaseStatsClientResponse, error) + + // UpdateDatabaseTypeWithBodyWithResponse request with any body + UpdateDatabaseTypeWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDatabaseTypeClientResponse, error) + + UpdateDatabaseTypeWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body UpdateDatabaseTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDatabaseTypeClientResponse, error) + + // ListProjectDeploymentsWithResponse request + ListProjectDeploymentsWithResponse(ctx context.Context, id ProjectId, params *ListProjectDeploymentsParams, reqEditors ...RequestEditorFn) (*ListProjectDeploymentsClientResponse, error) + + // SummarizeProjectDeploymentsWithResponse request + SummarizeProjectDeploymentsWithResponse(ctx context.Context, id ProjectId, params *SummarizeProjectDeploymentsParams, reqEditors ...RequestEditorFn) (*SummarizeProjectDeploymentsClientResponse, error) + + // ListProjectCustomDomainsWithResponse request + ListProjectCustomDomainsWithResponse(ctx context.Context, id ProjectId, params *ListProjectCustomDomainsParams, reqEditors ...RequestEditorFn) (*ListProjectCustomDomainsClientResponse, error) + + // ListDurableFunctionsWithResponse request + ListDurableFunctionsWithResponse(ctx context.Context, id ProjectId, params *ListDurableFunctionsParams, reqEditors ...RequestEditorFn) (*ListDurableFunctionsClientResponse, error) + + // CreateDurableFunctionWithBodyWithResponse request with any body + CreateDurableFunctionWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDurableFunctionClientResponse, error) + + // DeleteDurableFunctionWithResponse request + DeleteDurableFunctionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, reqEditors ...RequestEditorFn) (*DeleteDurableFunctionClientResponse, error) + + // GetDurableFunctionWithResponse request + GetDurableFunctionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, reqEditors ...RequestEditorFn) (*GetDurableFunctionClientResponse, error) + + // ListDurableFunctionDeploymentsWithResponse request + ListDurableFunctionDeploymentsWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *ListDurableFunctionDeploymentsParams, reqEditors ...RequestEditorFn) (*ListDurableFunctionDeploymentsClientResponse, error) + + // ListDurableExecutionsWithResponse request + ListDurableExecutionsWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *ListDurableExecutionsParams, reqEditors ...RequestEditorFn) (*ListDurableExecutionsClientResponse, error) + + // StartDurableExecutionWithBodyWithResponse request with any body + StartDurableExecutionWithBodyWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *StartDurableExecutionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartDurableExecutionClientResponse, error) + + StartDurableExecutionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *StartDurableExecutionParams, body StartDurableExecutionJSONRequestBody, reqEditors ...RequestEditorFn) (*StartDurableExecutionClientResponse, error) + + // GetDurableExecutionWithResponse request + GetDurableExecutionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, executionId DurableExecutionId, reqEditors ...RequestEditorFn) (*GetDurableExecutionClientResponse, error) + + // StopDurableExecutionWithResponse request + StopDurableExecutionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, executionId DurableExecutionId, reqEditors ...RequestEditorFn) (*StopDurableExecutionClientResponse, error) + + // ListDurableFunctionSchedulersWithResponse request + ListDurableFunctionSchedulersWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, reqEditors ...RequestEditorFn) (*ListDurableFunctionSchedulersClientResponse, error) + + // CreateDurableFunctionSchedulerWithBodyWithResponse request with any body + CreateDurableFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDurableFunctionSchedulerClientResponse, error) + + CreateDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, body CreateDurableFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDurableFunctionSchedulerClientResponse, error) + + // DeleteDurableFunctionSchedulerWithResponse request + DeleteDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*DeleteDurableFunctionSchedulerClientResponse, error) + + // GetDurableFunctionSchedulerWithResponse request + GetDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*GetDurableFunctionSchedulerClientResponse, error) + + // UpdateDurableFunctionSchedulerWithBodyWithResponse request with any body + UpdateDurableFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDurableFunctionSchedulerClientResponse, error) + + UpdateDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, body UpdateDurableFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDurableFunctionSchedulerClientResponse, error) + + // ListEmailTemplatesWithResponse request + ListEmailTemplatesWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*ListEmailTemplatesClientResponse, error) + + // CreateEmailTemplateWithBodyWithResponse request with any body + CreateEmailTemplateWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEmailTemplateClientResponse, error) + + CreateEmailTemplateWithResponse(ctx context.Context, id ProjectId, body CreateEmailTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEmailTemplateClientResponse, error) + + // DeleteEmailTemplateWithResponse request + DeleteEmailTemplateWithResponse(ctx context.Context, id ProjectId, pType DeleteEmailTemplateParamsType, reqEditors ...RequestEditorFn) (*DeleteEmailTemplateClientResponse, error) + + // GetEmailTemplateWithResponse request + GetEmailTemplateWithResponse(ctx context.Context, id ProjectId, pType GetEmailTemplateParamsType, reqEditors ...RequestEditorFn) (*GetEmailTemplateClientResponse, error) + + // UpdateEmailTemplateWithBodyWithResponse request with any body + UpdateEmailTemplateWithBodyWithResponse(ctx context.Context, id ProjectId, pType UpdateEmailTemplateParamsType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEmailTemplateClientResponse, error) + + UpdateEmailTemplateWithResponse(ctx context.Context, id ProjectId, pType UpdateEmailTemplateParamsType, body UpdateEmailTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEmailTemplateClientResponse, error) + + // ReplaceFrontendSharedVariablesWithBodyWithResponse request with any body + ReplaceFrontendSharedVariablesWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceFrontendSharedVariablesClientResponse, error) + + ReplaceFrontendSharedVariablesWithResponse(ctx context.Context, id ProjectId, body ReplaceFrontendSharedVariablesJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceFrontendSharedVariablesClientResponse, error) + + // ListFrontendsWithResponse request + ListFrontendsWithResponse(ctx context.Context, id ProjectId, params *ListFrontendsParams, reqEditors ...RequestEditorFn) (*ListFrontendsClientResponse, error) + + // CreateFrontendWithBodyWithResponse request with any body + CreateFrontendWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFrontendClientResponse, error) + + // DeleteFrontendWithResponse request + DeleteFrontendWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*DeleteFrontendClientResponse, error) + + // GetFrontendWithResponse request + GetFrontendWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*GetFrontendClientResponse, error) + + // ListFrontendDeploymentsWithResponse request + ListFrontendDeploymentsWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, params *ListFrontendDeploymentsParams, reqEditors ...RequestEditorFn) (*ListFrontendDeploymentsClientResponse, error) + + // DeleteFrontendCustomDomainWithResponse request + DeleteFrontendCustomDomainWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*DeleteFrontendCustomDomainClientResponse, error) + + // GetFrontendCustomDomainWithResponse request + GetFrontendCustomDomainWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*GetFrontendCustomDomainClientResponse, error) + + // CreateFrontendCustomDomainWithBodyWithResponse request with any body + CreateFrontendCustomDomainWithBodyWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFrontendCustomDomainClientResponse, error) + + CreateFrontendCustomDomainWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, body CreateFrontendCustomDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFrontendCustomDomainClientResponse, error) + + // ListFrontendFunctionRoutesWithResponse request + ListFrontendFunctionRoutesWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*ListFrontendFunctionRoutesClientResponse, error) + + // CreateFrontendFunctionRouteWithBodyWithResponse request with any body + CreateFrontendFunctionRouteWithBodyWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFrontendFunctionRouteClientResponse, error) + + CreateFrontendFunctionRouteWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, body CreateFrontendFunctionRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFrontendFunctionRouteClientResponse, error) + + // DeleteFrontendFunctionRouteWithResponse request + DeleteFrontendFunctionRouteWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, routeId FrontendFunctionRouteId, reqEditors ...RequestEditorFn) (*DeleteFrontendFunctionRouteClientResponse, error) + + // UpdateFrontendFunctionRouteWithBodyWithResponse request with any body + UpdateFrontendFunctionRouteWithBodyWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, routeId FrontendFunctionRouteId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFrontendFunctionRouteClientResponse, error) + + UpdateFrontendFunctionRouteWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, routeId FrontendFunctionRouteId, body UpdateFrontendFunctionRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFrontendFunctionRouteClientResponse, error) + + // RedeployFrontendWithResponse request + RedeployFrontendWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*RedeployFrontendClientResponse, error) + + // GetFrontendUsageHistoryWithResponse request + GetFrontendUsageHistoryWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, params *GetFrontendUsageHistoryParams, reqEditors ...RequestEditorFn) (*GetFrontendUsageHistoryClientResponse, error) + + // ListFunctionsWithResponse request + ListFunctionsWithResponse(ctx context.Context, id ProjectId, params *ListFunctionsParams, reqEditors ...RequestEditorFn) (*ListFunctionsClientResponse, error) + + // CreateFunctionWithBodyWithResponse request with any body + CreateFunctionWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFunctionClientResponse, error) + + // CreateFunctionsBatchWithBodyWithResponse request with any body + CreateFunctionsBatchWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFunctionsBatchClientResponse, error) + + // DeleteFunctionWithResponse request + DeleteFunctionWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, reqEditors ...RequestEditorFn) (*DeleteFunctionClientResponse, error) + + // GetFunctionWithResponse request + GetFunctionWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, reqEditors ...RequestEditorFn) (*GetFunctionClientResponse, error) + + // UpdateFunctionWithBodyWithResponse request with any body + UpdateFunctionWithBodyWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFunctionClientResponse, error) + + UpdateFunctionWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, body UpdateFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFunctionClientResponse, error) + + // ListFunctionDeploymentsWithResponse request + ListFunctionDeploymentsWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, params *ListFunctionDeploymentsParams, reqEditors ...RequestEditorFn) (*ListFunctionDeploymentsClientResponse, error) + + // ListFunctionSchedulersWithResponse request + ListFunctionSchedulersWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, reqEditors ...RequestEditorFn) (*ListFunctionSchedulersClientResponse, error) + + // CreateFunctionSchedulerWithBodyWithResponse request with any body + CreateFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFunctionSchedulerClientResponse, error) + + CreateFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, body CreateFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFunctionSchedulerClientResponse, error) + + // DeleteFunctionSchedulerWithResponse request + DeleteFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*DeleteFunctionSchedulerClientResponse, error) + + // GetFunctionSchedulerWithResponse request + GetFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*GetFunctionSchedulerClientResponse, error) + + // UpdateFunctionSchedulerWithBodyWithResponse request with any body + UpdateFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFunctionSchedulerClientResponse, error) + + UpdateFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, body UpdateFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFunctionSchedulerClientResponse, error) + + // DisconnectProjectGitWithResponse request + DisconnectProjectGitWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*DisconnectProjectGitClientResponse, error) + + // GetProjectGitConnectionWithResponse request + GetProjectGitConnectionWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectGitConnectionClientResponse, error) + + // ConnectProjectGitWithBodyWithResponse request with any body + ConnectProjectGitWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConnectProjectGitClientResponse, error) + + ConnectProjectGitWithResponse(ctx context.Context, id ProjectId, body ConnectProjectGitJSONRequestBody, reqEditors ...RequestEditorFn) (*ConnectProjectGitClientResponse, error) + + // SetProjectGitProductionBranchWithBodyWithResponse request with any body + SetProjectGitProductionBranchWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetProjectGitProductionBranchClientResponse, error) + + SetProjectGitProductionBranchWithResponse(ctx context.Context, id ProjectId, body SetProjectGitProductionBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*SetProjectGitProductionBranchClientResponse, error) + + // GetProjectGitDeploySettingsWithResponse request + GetProjectGitDeploySettingsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectGitDeploySettingsClientResponse, error) + + // UpdateProjectGitDeploySettingsWithBodyWithResponse request with any body + UpdateProjectGitDeploySettingsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectGitDeploySettingsClientResponse, error) + + UpdateProjectGitDeploySettingsWithResponse(ctx context.Context, id ProjectId, body UpdateProjectGitDeploySettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectGitDeploySettingsClientResponse, error) + + // GetProjectHealthWithResponse request + GetProjectHealthWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectHealthClientResponse, error) + + // DeleteProjectLogoWithResponse request + DeleteProjectLogoWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*DeleteProjectLogoClientResponse, error) + + // GetProjectLogoWithResponse request + GetProjectLogoWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectLogoClientResponse, error) + + // UploadProjectLogoWithBodyWithResponse request with any body + UploadProjectLogoWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadProjectLogoClientResponse, error) + + // GetProjectLogActivityWithBodyWithResponse request with any body + GetProjectLogActivityWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetProjectLogActivityClientResponse, error) + + GetProjectLogActivityWithResponse(ctx context.Context, id ProjectId, body GetProjectLogActivityJSONRequestBody, reqEditors ...RequestEditorFn) (*GetProjectLogActivityClientResponse, error) + + // SearchProjectLogsWithBodyWithResponse request with any body + SearchProjectLogsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SearchProjectLogsClientResponse, error) + + SearchProjectLogsWithResponse(ctx context.Context, id ProjectId, body SearchProjectLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*SearchProjectLogsClientResponse, error) + + // StreamProjectLogsWithBodyWithResponse request with any body + StreamProjectLogsWithBodyWithResponse(ctx context.Context, id ProjectId, params *StreamProjectLogsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StreamProjectLogsClientResponse, error) + + StreamProjectLogsWithResponse(ctx context.Context, id ProjectId, params *StreamProjectLogsParams, body StreamProjectLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*StreamProjectLogsClientResponse, error) + + // QueryProjectMetricsWithBodyWithResponse request with any body + QueryProjectMetricsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryProjectMetricsClientResponse, error) + + QueryProjectMetricsWithResponse(ctx context.Context, id ProjectId, body QueryProjectMetricsJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryProjectMetricsClientResponse, error) + + // ListOAuthConfigsWithResponse request + ListOAuthConfigsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*ListOAuthConfigsClientResponse, error) + + // CreateOAuthConfigWithBodyWithResponse request with any body + CreateOAuthConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOAuthConfigClientResponse, error) + + CreateOAuthConfigWithResponse(ctx context.Context, id ProjectId, body CreateOAuthConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOAuthConfigClientResponse, error) + + // DeleteOAuthConfigWithResponse request + DeleteOAuthConfigWithResponse(ctx context.Context, id ProjectId, provider DeleteOAuthConfigParamsProvider, params *DeleteOAuthConfigParams, reqEditors ...RequestEditorFn) (*DeleteOAuthConfigClientResponse, error) + + // GetOAuthConfigWithResponse request + GetOAuthConfigWithResponse(ctx context.Context, id ProjectId, provider GetOAuthConfigParamsProvider, params *GetOAuthConfigParams, reqEditors ...RequestEditorFn) (*GetOAuthConfigClientResponse, error) + + // UpdateOAuthConfigWithBodyWithResponse request with any body + UpdateOAuthConfigWithBodyWithResponse(ctx context.Context, id ProjectId, provider UpdateOAuthConfigParamsProvider, params *UpdateOAuthConfigParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOAuthConfigClientResponse, error) + + UpdateOAuthConfigWithResponse(ctx context.Context, id ProjectId, provider UpdateOAuthConfigParamsProvider, params *UpdateOAuthConfigParams, body UpdateOAuthConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOAuthConfigClientResponse, error) + + // ListAvailableOAuthProvidersWithResponse request + ListAvailableOAuthProvidersWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*ListAvailableOAuthProvidersClientResponse, error) + + // GetRealtimeConfigWithResponse request + GetRealtimeConfigWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetRealtimeConfigClientResponse, error) + + // UpdateRealtimeConfigWithBodyWithResponse request with any body + UpdateRealtimeConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRealtimeConfigClientResponse, error) + + UpdateRealtimeConfigWithResponse(ctx context.Context, id ProjectId, body UpdateRealtimeConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRealtimeConfigClientResponse, error) + + // GetRealtimeStatsWithResponse request + GetRealtimeStatsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetRealtimeStatsClientResponse, error) + + // ExecuteSandboxWithBodyWithResponse request with any body + ExecuteSandboxWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, params *ExecuteSandboxParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExecuteSandboxClientResponse, error) + + ExecuteSandboxWithResponse(ctx context.Context, id openapi_types.UUID, params *ExecuteSandboxParams, body ExecuteSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*ExecuteSandboxClientResponse, error) + + // ListSandboxSessionsWithResponse request + ListSandboxSessionsWithResponse(ctx context.Context, id openapi_types.UUID, params *ListSandboxSessionsParams, reqEditors ...RequestEditorFn) (*ListSandboxSessionsClientResponse, error) + + // CreateSandboxSessionWithBodyWithResponse request with any body + CreateSandboxSessionWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, params *CreateSandboxSessionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSandboxSessionClientResponse, error) + + CreateSandboxSessionWithResponse(ctx context.Context, id openapi_types.UUID, params *CreateSandboxSessionParams, body CreateSandboxSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSandboxSessionClientResponse, error) + + // ListSandboxesWithResponse request + ListSandboxesWithResponse(ctx context.Context, id openapi_types.UUID, params *ListSandboxesParams, reqEditors ...RequestEditorFn) (*ListSandboxesClientResponse, error) + + // CreateSandboxWithBodyWithResponse request with any body + CreateSandboxWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, params *CreateSandboxParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSandboxClientResponse, error) + + CreateSandboxWithResponse(ctx context.Context, id openapi_types.UUID, params *CreateSandboxParams, body CreateSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSandboxClientResponse, error) + + // DeleteSandboxWithResponse request + DeleteSandboxWithResponse(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteSandboxClientResponse, error) + + // GetSandboxWithResponse request + GetSandboxWithResponse(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSandboxClientResponse, error) + + // UpdateSandboxWithBodyWithResponse request with any body + UpdateSandboxWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSandboxClientResponse, error) + + UpdateSandboxWithResponse(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, body UpdateSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSandboxClientResponse, error) + + // ListSandboxDeploymentsWithResponse request + ListSandboxDeploymentsWithResponse(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, params *ListSandboxDeploymentsParams, reqEditors ...RequestEditorFn) (*ListSandboxDeploymentsClientResponse, error) + + // ListProjectSchedulersWithResponse request + ListProjectSchedulersWithResponse(ctx context.Context, id ProjectId, params *ListProjectSchedulersParams, reqEditors ...RequestEditorFn) (*ListProjectSchedulersClientResponse, error) + + // ListServiceKeysWithResponse request + ListServiceKeysWithResponse(ctx context.Context, id ProjectId, params *ListServiceKeysParams, reqEditors ...RequestEditorFn) (*ListServiceKeysClientResponse, error) + + // CreateServiceKeyWithBodyWithResponse request with any body + CreateServiceKeyWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceKeyClientResponse, error) + + CreateServiceKeyWithResponse(ctx context.Context, id ProjectId, body CreateServiceKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceKeyClientResponse, error) + + // DeleteServiceKeyWithResponse request + DeleteServiceKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteServiceKeyClientResponse, error) + + // GetServiceKeyWithResponse request + GetServiceKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetServiceKeyClientResponse, error) + + // RegenerateServiceKeyWithResponse request + RegenerateServiceKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RegenerateServiceKeyClientResponse, error) + + // ReplaceSharedVariablesWithBodyWithResponse request with any body + ReplaceSharedVariablesWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceSharedVariablesClientResponse, error) + + ReplaceSharedVariablesWithResponse(ctx context.Context, id ProjectId, body ReplaceSharedVariablesJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceSharedVariablesClientResponse, error) + + // CancelProjectSourceExportWithResponse request + CancelProjectSourceExportWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*CancelProjectSourceExportClientResponse, error) + + // GetProjectSourceExportWithResponse request + GetProjectSourceExportWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectSourceExportClientResponse, error) + + // ExportProjectSourceWithBodyWithResponse request with any body + ExportProjectSourceWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExportProjectSourceClientResponse, error) + + ExportProjectSourceWithResponse(ctx context.Context, id ProjectId, body ExportProjectSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*ExportProjectSourceClientResponse, error) + + // ListStorageBucketsWithResponse request + ListStorageBucketsWithResponse(ctx context.Context, id ProjectId, params *ListStorageBucketsParams, reqEditors ...RequestEditorFn) (*ListStorageBucketsClientResponse, error) + + // CreateStorageBucketWithBodyWithResponse request with any body + CreateStorageBucketWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateStorageBucketClientResponse, error) + + CreateStorageBucketWithResponse(ctx context.Context, id ProjectId, body CreateStorageBucketJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateStorageBucketClientResponse, error) + + // DeleteStorageBucketWithResponse request + DeleteStorageBucketWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, reqEditors ...RequestEditorFn) (*DeleteStorageBucketClientResponse, error) + + // GetStorageBucketWithResponse request + GetStorageBucketWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, reqEditors ...RequestEditorFn) (*GetStorageBucketClientResponse, error) + + // UpdateStorageBucketWithBodyWithResponse request with any body + UpdateStorageBucketWithBodyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStorageBucketClientResponse, error) + + UpdateStorageBucketWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, body UpdateStorageBucketJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStorageBucketClientResponse, error) + + // ListStoragePoliciesWithResponse request + ListStoragePoliciesWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, reqEditors ...RequestEditorFn) (*ListStoragePoliciesClientResponse, error) + + // CreateStoragePolicyWithBodyWithResponse request with any body + CreateStoragePolicyWithBodyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateStoragePolicyClientResponse, error) + + CreateStoragePolicyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, body CreateStoragePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateStoragePolicyClientResponse, error) + + // DeleteStoragePolicyWithResponse request + DeleteStoragePolicyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, policyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteStoragePolicyClientResponse, error) + + // ListStorageObjectsAdminWithResponse request + ListStorageObjectsAdminWithResponse(ctx context.Context, id ProjectId, params *ListStorageObjectsAdminParams, reqEditors ...RequestEditorFn) (*ListStorageObjectsAdminClientResponse, error) + + // GetStorageStatsWithResponse request + GetStorageStatsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetStorageStatsClientResponse, error) + + // GetProjectUsageWithResponse request + GetProjectUsageWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectUsageClientResponse, error) + + // ListVariablesWithResponse request + ListVariablesWithResponse(ctx context.Context, id ProjectId, params *ListVariablesParams, reqEditors ...RequestEditorFn) (*ListVariablesClientResponse, error) + + // CreateVariableWithBodyWithResponse request with any body + CreateVariableWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVariableClientResponse, error) + + CreateVariableWithResponse(ctx context.Context, id ProjectId, body CreateVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVariableClientResponse, error) + + // DeleteVariableWithResponse request + DeleteVariableWithResponse(ctx context.Context, id ProjectId, name VariableName, reqEditors ...RequestEditorFn) (*DeleteVariableClientResponse, error) + + // GetVariableWithResponse request + GetVariableWithResponse(ctx context.Context, id ProjectId, name VariableName, reqEditors ...RequestEditorFn) (*GetVariableClientResponse, error) + + // UpdateVariableWithBodyWithResponse request with any body + UpdateVariableWithBodyWithResponse(ctx context.Context, id ProjectId, name VariableName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateVariableClientResponse, error) + + UpdateVariableWithResponse(ctx context.Context, id ProjectId, name VariableName, body UpdateVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateVariableClientResponse, error) + + // DownloadPublicFileWithResponse request + DownloadPublicFileWithResponse(ctx context.Context, projectId openapi_types.UUID, bucketName BucketName, path string, reqEditors ...RequestEditorFn) (*DownloadPublicFileClientResponse, error) + + // TerminateSandboxSessionWithResponse request + TerminateSandboxSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*TerminateSandboxSessionClientResponse, error) + + // GetSandboxSessionWithResponse request + GetSandboxSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSandboxSessionClientResponse, error) + + // CreateSandboxSessionAccessWithBodyWithResponse request with any body + CreateSandboxSessionAccessWithBodyWithResponse(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSandboxSessionAccessClientResponse, error) + + CreateSandboxSessionAccessWithResponse(ctx context.Context, sessionId openapi_types.UUID, body CreateSandboxSessionAccessJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSandboxSessionAccessClientResponse, error) + + // ExecuteSandboxSessionWithBodyWithResponse request with any body + ExecuteSandboxSessionWithBodyWithResponse(ctx context.Context, sessionId openapi_types.UUID, params *ExecuteSandboxSessionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExecuteSandboxSessionClientResponse, error) + + ExecuteSandboxSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, params *ExecuteSandboxSessionParams, body ExecuteSandboxSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*ExecuteSandboxSessionClientResponse, error) + + // ReadSandboxSessionFileWithBodyWithResponse request with any body + ReadSandboxSessionFileWithBodyWithResponse(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReadSandboxSessionFileClientResponse, error) + + ReadSandboxSessionFileWithResponse(ctx context.Context, sessionId openapi_types.UUID, body ReadSandboxSessionFileJSONRequestBody, reqEditors ...RequestEditorFn) (*ReadSandboxSessionFileClientResponse, error) + + // WriteSandboxSessionFileWithBodyWithResponse request with any body + WriteSandboxSessionFileWithBodyWithResponse(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WriteSandboxSessionFileClientResponse, error) + + WriteSandboxSessionFileWithResponse(ctx context.Context, sessionId openapi_types.UUID, body WriteSandboxSessionFileJSONRequestBody, reqEditors ...RequestEditorFn) (*WriteSandboxSessionFileClientResponse, error) + + // RevokeSandboxSessionWithResponse request + RevokeSandboxSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, subjectId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RevokeSandboxSessionClientResponse, error) + + // GrantSandboxSessionWithBodyWithResponse request with any body + GrantSandboxSessionWithBodyWithResponse(ctx context.Context, sessionId openapi_types.UUID, subjectId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GrantSandboxSessionClientResponse, error) + + GrantSandboxSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, subjectId openapi_types.UUID, body GrantSandboxSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*GrantSandboxSessionClientResponse, error) + + // ResumeSandboxSessionWithResponse request + ResumeSandboxSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*ResumeSandboxSessionClientResponse, error) + + // SuspendSandboxSessionWithResponse request + SuspendSandboxSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*SuspendSandboxSessionClientResponse, error) + + // ListSandboxPresetsWithResponse request + ListSandboxPresetsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSandboxPresetsClientResponse, error) + + // ListStorageObjectsWithResponse request + ListStorageObjectsWithResponse(ctx context.Context, bucketName BucketName, params *ListStorageObjectsParams, reqEditors ...RequestEditorFn) (*ListStorageObjectsClientResponse, error) + + // CopyStorageObjectWithBodyWithResponse request with any body + CopyStorageObjectWithBodyWithResponse(ctx context.Context, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CopyStorageObjectClientResponse, error) + + CopyStorageObjectWithResponse(ctx context.Context, bucketName BucketName, body CopyStorageObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CopyStorageObjectClientResponse, error) + + // MoveStorageObjectWithBodyWithResponse request with any body + MoveStorageObjectWithBodyWithResponse(ctx context.Context, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MoveStorageObjectClientResponse, error) + + MoveStorageObjectWithResponse(ctx context.Context, bucketName BucketName, body MoveStorageObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*MoveStorageObjectClientResponse, error) + + // DeleteStorageObjectWithResponse request + DeleteStorageObjectWithResponse(ctx context.Context, bucketName BucketName, path string, params *DeleteStorageObjectParams, reqEditors ...RequestEditorFn) (*DeleteStorageObjectClientResponse, error) + + // DownloadStorageObjectWithResponse request + DownloadStorageObjectWithResponse(ctx context.Context, bucketName BucketName, path string, params *DownloadStorageObjectParams, reqEditors ...RequestEditorFn) (*DownloadStorageObjectClientResponse, error) + + // UploadStorageObjectWithBodyWithResponse request with any body + UploadStorageObjectWithBodyWithResponse(ctx context.Context, bucketName BucketName, path string, params *UploadStorageObjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadStorageObjectClientResponse, error) + + UploadStorageObjectWithResponse(ctx context.Context, bucketName BucketName, path string, params *UploadStorageObjectParams, body UploadStorageObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UploadStorageObjectClientResponse, error) + + // UploadPartWithBodyWithResponse request with any body + UploadPartWithBodyWithResponse(ctx context.Context, bucketName BucketName, path string, params *UploadPartParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadPartClientResponse, error) + + // UpdateStorageObjectVisibilityWithBodyWithResponse request with any body + UpdateStorageObjectVisibilityWithBodyWithResponse(ctx context.Context, bucketName BucketName, path string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStorageObjectVisibilityClientResponse, error) + + UpdateStorageObjectVisibilityWithResponse(ctx context.Context, bucketName BucketName, path string, body UpdateStorageObjectVisibilityJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStorageObjectVisibilityClientResponse, error) + + // StartGitConnectWithResponse request + StartGitConnectWithResponse(ctx context.Context, params *StartGitConnectParams, reqEditors ...RequestEditorFn) (*StartGitConnectClientResponse, error) + + // ListGitConnectionsWithResponse request + ListGitConnectionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListGitConnectionsClientResponse, error) + + // DeleteGitConnectionWithResponse request + DeleteGitConnectionWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteGitConnectionClientResponse, error) + + // ListGitInstallationsWithResponse request + ListGitInstallationsWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListGitInstallationsClientResponse, error) + + // ListGitInstallationRepositoriesWithResponse request + ListGitInstallationRepositoriesWithResponse(ctx context.Context, connectionId openapi_types.UUID, installationId int64, reqEditors ...RequestEditorFn) (*ListGitInstallationRepositoriesClientResponse, error) + + // StartImportConnectWithResponse request + StartImportConnectWithResponse(ctx context.Context, params *StartImportConnectParams, reqEditors ...RequestEditorFn) (*StartImportConnectClientResponse, error) + + // ListImportConnectionsWithResponse request + ListImportConnectionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListImportConnectionsClientResponse, error) + + // DeleteImportConnectionWithResponse request + DeleteImportConnectionWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteImportConnectionClientResponse, error) +} + +type AuthConfirmEmailClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Message *AuthConfirmEmail200JSONResponseBodyMessage `json:"message,omitempty"` + } +} + +// Status returns HTTPResponse.Status +func (r AuthConfirmEmailClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthConfirmEmailClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthConfirmEmailClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthDeviceAuthorizeClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *DeviceAuthorizationResponse + JSON400 *OAuthErrorResponse +} + +// Status returns HTTPResponse.Status +func (r AuthDeviceAuthorizeClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthDeviceAuthorizeClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthDeviceAuthorizeClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthDeviceTokenClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AuthTokenResponse + JSON400 *OAuthErrorResponse + JSON403 *OAuthErrorResponse +} + +// Status returns HTTPResponse.Status +func (r AuthDeviceTokenClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthDeviceTokenClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthDeviceTokenClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthDeviceVerifyClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Status *string `json:"status,omitempty"` + Success *bool `json:"success,omitempty"` + } + JSON401 *Error +} + +// Status returns HTTPResponse.Status +func (r AuthDeviceVerifyClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthDeviceVerifyClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthDeviceVerifyClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthForgotPasswordClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Message *string `json:"message,omitempty"` + } + JSON403 *Error + JSON429 *Error +} + +// Status returns HTTPResponse.Status +func (r AuthForgotPasswordClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthForgotPasswordClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthForgotPasswordClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthLogoutClientResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r AuthLogoutClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthLogoutClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthLogoutClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthOAuthExchangeClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AuthTokenResponse +} + +// Status returns HTTPResponse.Status +func (r AuthOAuthExchangeClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthOAuthExchangeClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthOAuthExchangeClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthListOAuthProvidersClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Providers *[]struct { + LinkedAt *time.Time `json:"linked_at,omitempty"` + Provider *string `json:"provider,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + } `json:"providers,omitempty"` + } + JSON401 *Error +} + +// Status returns HTTPResponse.Status +func (r AuthListOAuthProvidersClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthListOAuthProvidersClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthListOAuthProvidersClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthOAuthAuthorizeClientResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r AuthOAuthAuthorizeClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthOAuthAuthorizeClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthOAuthAuthorizeClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type CallOAuthProviderAPIClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // Data Raw provider JSON value, or null when the provider returns no body + Data interface{} `json:"data"` + Endpoint string `json:"endpoint"` + Provider CallOAuthProviderAPI200JSONResponseBodyProvider `json:"provider"` + StatusCode int `json:"status_code"` + } + JSON400 *Error + JSON401 *Error + JSON404 *Error + JSON500 *Error + JSON502 *Error +} + +// Status returns HTTPResponse.Status +func (r CallOAuthProviderAPIClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CallOAuthProviderAPIClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CallOAuthProviderAPIClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthOAuthCallbackClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AuthTokenResponse + JSON201 *AuthTokenResponse +} + +// Status returns HTTPResponse.Status +func (r AuthOAuthCallbackClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthOAuthCallbackClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthOAuthCallbackClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthLinkOAuthProviderClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + AuthorizationUrl *string `json:"authorization_url,omitempty"` + } + JSON400 *Error + JSON401 *Error + JSON404 *Error + JSON409 *Error +} + +// Status returns HTTPResponse.Status +func (r AuthLinkOAuthProviderClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthLinkOAuthProviderClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthLinkOAuthProviderClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type RefreshOAuthProviderTokenClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + ExpiresIn *int `json:"expires_in,omitempty"` + Message *string `json:"message,omitempty"` + Provider *string `json:"provider,omitempty"` + } + JSON400 *Error + JSON401 *Error + JSON404 *Error +} + +// Status returns HTTPResponse.Status +func (r RefreshOAuthProviderTokenClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r RefreshOAuthProviderTokenClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r RefreshOAuthProviderTokenClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type GetOAuthProviderTokenClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + ExpiresIn *int `json:"expires_in,omitempty"` + Message *string `json:"message,omitempty"` + Provider *string `json:"provider,omitempty"` + } + JSON401 *Error + JSON404 *Error +} + +// Status returns HTTPResponse.Status +func (r GetOAuthProviderTokenClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOAuthProviderTokenClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetOAuthProviderTokenClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthUnlinkOAuthProviderClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *Error + JSON401 *Error + JSON404 *Error +} + +// Status returns HTTPResponse.Status +func (r AuthUnlinkOAuthProviderClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthUnlinkOAuthProviderClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthUnlinkOAuthProviderClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthGetPasswordPolicyClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AuthPasswordPolicy + JSON401 *Error + JSON404 *Error +} + +// Status returns HTTPResponse.Status +func (r AuthGetPasswordPolicyClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthGetPasswordPolicyClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthGetPasswordPolicyClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthPlatformExchangeClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PlatformExchangeResponse + JSON403 *Error +} + +// Status returns HTTPResponse.Status +func (r AuthPlatformExchangeClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthPlatformExchangeClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthPlatformExchangeClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthRefreshClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AuthTokenResponse + JSON401 *Error + JSON403 *Error + JSON429 *Error +} + +// Status returns HTTPResponse.Status +func (r AuthRefreshClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthRefreshClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthRefreshClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthResendConfirmationClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Message *string `json:"message,omitempty"` + } + JSON429 *Error +} + +// Status returns HTTPResponse.Status +func (r AuthResendConfirmationClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthResendConfirmationClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthResendConfirmationClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthResetPasswordClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Message *string `json:"message,omitempty"` + } + JSON503 *Error +} + +// Status returns HTTPResponse.Status +func (r AuthResetPasswordClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthResetPasswordClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthResetPasswordClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthSigninClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AuthTokenResponse +} + +// Status returns HTTPResponse.Status +func (r AuthSigninClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthSigninClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthSigninClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthSignupClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *AuthSignupResponse + JSON503 *Error +} + +// Status returns HTTPResponse.Status +func (r AuthSignupClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthSignupClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthSignupClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthSignupAnonymousClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *AuthTokenResponse +} + +// Status returns HTTPResponse.Status +func (r AuthSignupAnonymousClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthSignupAnonymousClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthSignupAnonymousClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthGetUserClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + User *AuthUser `json:"user,omitempty"` + } + JSON401 *Error +} + +// Status returns HTTPResponse.Status +func (r AuthGetUserClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthGetUserClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthGetUserClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthUpdateUserClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + User *AuthUser `json:"user,omitempty"` + } + JSON400 *Error + JSON401 *Error + JSON503 *Error +} + +// Status returns HTTPResponse.Status +func (r AuthUpdateUserClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthUpdateUserClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthUpdateUserClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthCancelEmailChangeClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Message *string `json:"message,omitempty"` + } + JSON401 *Error +} + +// Status returns HTTPResponse.Status +func (r AuthCancelEmailChangeClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthCancelEmailChangeClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthCancelEmailChangeClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthRequestEmailChangeClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Message *string `json:"message,omitempty"` + NewEmail *string `json:"new_email,omitempty"` + } + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON409 *Error + JSON429 *Error +} + +// Status returns HTTPResponse.Status +func (r AuthRequestEmailChangeClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthRequestEmailChangeClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthRequestEmailChangeClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthConfirmEmailChangeClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Message *string `json:"message,omitempty"` + User *AuthUser `json:"user,omitempty"` + } + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON409 *Error +} + +// Status returns HTTPResponse.Status +func (r AuthConfirmEmailChangeClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthConfirmEmailChangeClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthConfirmEmailChangeClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthConvertAnonymousClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + User *AuthUser `json:"user,omitempty"` + } + JSON503 *Error +} + +// Status returns HTTPResponse.Status +func (r AuthConvertAnonymousClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthConvertAnonymousClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthConvertAnonymousClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthListIdentitiesClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AuthIdentitiesResponse + JSON401 *Error +} + +// Status returns HTTPResponse.Status +func (r AuthListIdentitiesClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthListIdentitiesClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthListIdentitiesClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthUnlinkIdentityClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *Error + JSON401 *Error + JSON404 *Error +} + +// Status returns HTTPResponse.Status +func (r AuthUnlinkIdentityClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthUnlinkIdentityClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthUnlinkIdentityClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthListMethodsClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AuthMethodsResponse + JSON401 *Error +} + +// Status returns HTTPResponse.Status +func (r AuthListMethodsClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthListMethodsClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthListMethodsClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthPromoteMethodClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AuthMethodSummary + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error +} + +// Status returns HTTPResponse.Status +func (r AuthPromoteMethodClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthPromoteMethodClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthPromoteMethodClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthDeleteAllMySessionsClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON401 *Error +} + +// Status returns HTTPResponse.Status +func (r AuthDeleteAllMySessionsClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthDeleteAllMySessionsClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthDeleteAllMySessionsClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthGetMySessionsClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // Data Sessions for this page (cursor pagination only) + Data *[]AuthSession `json:"data,omitempty"` + + // HasMore Whether a further page exists (cursor pagination only) + HasMore *bool `json:"has_more,omitempty"` + + // Limit Number of sessions per page + Limit *int `json:"limit,omitempty"` + + // NextCursor Opaque cursor for the next page (cursor pagination only) + NextCursor *string `json:"next_cursor,omitempty"` + + // Page Current page number + Page *int `json:"page,omitempty"` + + // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`. + PrevCursor *string `json:"prev_cursor,omitempty"` + Sessions *[]AuthSession `json:"sessions,omitempty"` + + // Total Total number of sessions + Total *int `json:"total,omitempty"` + + // TotalPages Total number of pages + TotalPages *int `json:"total_pages,omitempty"` + } + JSON400 *Error + JSON401 *Error +} + +// Status returns HTTPResponse.Status +func (r AuthGetMySessionsClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthGetMySessionsClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthGetMySessionsClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AuthDeleteMySessionClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON401 *Error + JSON404 *Error +} + +// Status returns HTTPResponse.Status +func (r AuthDeleteMySessionClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthDeleteMySessionClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthDeleteMySessionClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type ListPostgresVersionsClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + // Default Whether this is the default version (recommended) + Default *bool `json:"default,omitempty"` + + // Deprecated Whether this version is deprecated (approaching EOL) + Deprecated *bool `json:"deprecated,omitempty"` + + // Name Human-readable version name + Name *string `json:"name,omitempty"` + + // Version PostgreSQL major version number + Version *string `json:"version,omitempty"` + } +} + +// Status returns HTTPResponse.Status +func (r ListPostgresVersionsClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListPostgresVersionsClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListPostgresVersionsClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type ListDatabaseRegionsClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + // Id Region identifier for API usage + Id *string `json:"id,omitempty"` + + // Name Human-readable region location + Name *string `json:"name,omitempty"` + } +} + +// Status returns HTTPResponse.Status +func (r ListDatabaseRegionsClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListDatabaseRegionsClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListDatabaseRegionsClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type QueryDatabaseBranchDeleteClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *DatabaseQueryResult + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON429 *DatabaseQueryCapExceeded + JSON503 *DatabaseBranchQueryUnavailable +} + +// Status returns HTTPResponse.Status +func (r QueryDatabaseBranchDeleteClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r QueryDatabaseBranchDeleteClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r QueryDatabaseBranchDeleteClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type QueryDatabaseBranchInsertClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *DatabaseQueryResult + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON429 *DatabaseQueryCapExceeded + JSON503 *DatabaseBranchQueryUnavailable +} + +// Status returns HTTPResponse.Status +func (r QueryDatabaseBranchInsertClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r QueryDatabaseBranchInsertClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r QueryDatabaseBranchInsertClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type QueryDatabaseBranchPingClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *DatabaseQueryResult + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON429 *DatabaseQueryCapExceeded + JSON503 *DatabaseBranchQueryUnavailable +} + +// Status returns HTTPResponse.Status +func (r QueryDatabaseBranchPingClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r QueryDatabaseBranchPingClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r QueryDatabaseBranchPingClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type QueryDatabaseBranchSelectClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *DatabaseQueryResult + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON429 *DatabaseQueryCapExceeded + JSON503 *DatabaseBranchQueryUnavailable +} + +// Status returns HTTPResponse.Status +func (r QueryDatabaseBranchSelectClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r QueryDatabaseBranchSelectClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r QueryDatabaseBranchSelectClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type QueryDatabaseBranchUpdateClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *DatabaseQueryResult + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON429 *DatabaseQueryCapExceeded + JSON503 *DatabaseBranchQueryUnavailable +} + +// Status returns HTTPResponse.Status +func (r QueryDatabaseBranchUpdateClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r QueryDatabaseBranchUpdateClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r QueryDatabaseBranchUpdateClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type QueryDatabaseDeleteClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *DatabaseQueryResult + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON429 *DatabaseQueryCapExceeded +} + +// Status returns HTTPResponse.Status +func (r QueryDatabaseDeleteClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r QueryDatabaseDeleteClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r QueryDatabaseDeleteClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type QueryDatabaseInsertClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *DatabaseQueryResult + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON429 *DatabaseQueryCapExceeded +} + +// Status returns HTTPResponse.Status +func (r QueryDatabaseInsertClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r QueryDatabaseInsertClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r QueryDatabaseInsertClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type QueryDatabasePingClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *DatabaseQueryResult + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON429 *DatabaseQueryCapExceeded +} + +// Status returns HTTPResponse.Status +func (r QueryDatabasePingClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r QueryDatabasePingClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r QueryDatabasePingClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type QueryDatabaseSelectClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *DatabaseQueryResult + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON429 *DatabaseQueryCapExceeded +} + +// Status returns HTTPResponse.Status +func (r QueryDatabaseSelectClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r QueryDatabaseSelectClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r QueryDatabaseSelectClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type QueryDatabaseUpdateClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *DatabaseQueryResult + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON429 *DatabaseQueryCapExceeded +} + +// Status returns HTTPResponse.Status +func (r QueryDatabaseUpdateClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r QueryDatabaseUpdateClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r QueryDatabaseUpdateClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type ListDeploymentsClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PaginatedProjectDeployments + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON500 *Error +} + +// Status returns HTTPResponse.Status +func (r ListDeploymentsClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListDeploymentsClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListDeploymentsClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type StartDurableExecutionFromApplicationClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON202 *DurableExecution + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON409 *Error + JSON413 *Error + JSON429 *Error + JSON503 *Error +} + +// Status returns HTTPResponse.Status +func (r StartDurableExecutionFromApplicationClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r StartDurableExecutionFromApplicationClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r StartDurableExecutionFromApplicationClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type GetDefaultEmailTemplatesClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Data *[]EmailTemplate `json:"data,omitempty"` + } +} + +// Status returns HTTPResponse.Status +func (r GetDefaultEmailTemplatesClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetDefaultEmailTemplatesClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetDefaultEmailTemplatesClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type GetDefaultEmailTemplateClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *EmailTemplate +} + +// Status returns HTTPResponse.Status +func (r GetDefaultEmailTemplateClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetDefaultEmailTemplateClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetDefaultEmailTemplateClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type ListFunctionRegionsClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]FunctionRegion +} + +// Status returns HTTPResponse.Status +func (r ListFunctionRegionsClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListFunctionRegionsClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListFunctionRegionsClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type ResolveFunctionForInvocationClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ResolveFunctionResponse + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error +} + +// Status returns HTTPResponse.Status +func (r ResolveFunctionForInvocationClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ResolveFunctionForInvocationClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ResolveFunctionForInvocationClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type ListFunctionRuntimesClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *FunctionRuntimesResponse +} + +// Status returns HTTPResponse.Status +func (r ListFunctionRuntimesClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListFunctionRuntimesClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListFunctionRuntimesClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type InvokeFunctionClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *FunctionInvocationResponse + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON429 *Error + JSON503 *Error + JSONDefault *FunctionInvocationResponse +} + +// Status returns HTTPResponse.Status +func (r InvokeFunctionClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InvokeFunctionClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r InvokeFunctionClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type GitConnectCallbackClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *Error + JSON429 *Error + JSON500 *Error + JSON503 *Error +} + +// Status returns HTTPResponse.Status +func (r GitConnectCallbackClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GitConnectCallbackClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GitConnectCallbackClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type HealthCheckClientResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r HealthCheckClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r HealthCheckClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r HealthCheckClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type CompleteImportConnectClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *Error + JSON429 *Error + JSON500 *Error + JSON503 *Error +} + +// Status returns HTTPResponse.Status +func (r CompleteImportConnectClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CompleteImportConnectClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CompleteImportConnectClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type PreflightProjectImportClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ProjectImportReport + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON409 *Error + JSON429 *Error + JSON500 *Error + JSON503 *Error +} + +// Status returns HTTPResponse.Status +func (r PreflightProjectImportClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PreflightProjectImportClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r PreflightProjectImportClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type StartProjectImportClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON202 *ProjectImportRun + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON409 *Error + JSON422 *Error + JSON429 *Error + JSON500 *Error + JSON503 *Error +} + +// Status returns HTTPResponse.Status +func (r StartProjectImportClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r StartProjectImportClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r StartProjectImportClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type GetProjectImportRunClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ProjectImportRun + JSON400 *Error + JSON401 *Error + JSON404 *Error + JSON500 *Error +} + +// Status returns HTTPResponse.Status +func (r GetProjectImportRunClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetProjectImportRunClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetProjectImportRunClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type ListImportSourcesClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ImportSourcesResponse + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON409 *Error + JSON429 *Error + JSON500 *Error + JSON503 *Error +} + +// Status returns HTTPResponse.Status +func (r ListImportSourcesClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListImportSourcesClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListImportSourcesClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type ForceReleaseProjectLockClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON429 *Error + JSON503 *Error +} + +// Status returns HTTPResponse.Status +func (r ForceReleaseProjectLockClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ForceReleaseProjectLockClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ForceReleaseProjectLockClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type GetProjectLockClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ProjectLockState + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON429 *Error + JSON503 *Error +} + +// Status returns HTTPResponse.Status +func (r GetProjectLockClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetProjectLockClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetProjectLockClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type ReleaseProjectLockClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON409 *Error + JSON429 *Error + JSON503 *Error +} + +// Status returns HTTPResponse.Status +func (r ReleaseProjectLockClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ReleaseProjectLockClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ReleaseProjectLockClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type RenewProjectLockClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ProjectLockLease + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON409 *Error + JSON429 *Error + JSON503 *Error +} + +// Status returns HTTPResponse.Status +func (r RenewProjectLockClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r RenewProjectLockClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r RenewProjectLockClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type AcquireProjectLockClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ProjectLockLease + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON409 *Error + JSON429 *Error + JSON503 *Error +} + +// Status returns HTTPResponse.Status +func (r AcquireProjectLockClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AcquireProjectLockClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AcquireProjectLockClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type CallMCPClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Error *struct { + Code int `json:"code"` + Message string `json:"message"` + } `json:"error,omitempty"` + + // Id Echoes the request's id. Null when the request could not be read well enough to determine one. + Id *CallMCP200JSONResponseBody_Id `json:"id"` + Jsonrpc CallMCP200JSONResponseBodyJsonrpc `json:"jsonrpc"` + Result *map[string]interface{} `json:"result,omitempty"` + } + JSON401 *Error + JSON403 *Error +} + +// Status returns HTTPResponse.Status +func (r CallMCPClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CallMCPClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CallMCPClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type GetOpenAPISpecJSONClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *OpenAPISpecDocument + JSON429 *OpenAPISpecThrottled +} + +// Status returns HTTPResponse.Status +func (r GetOpenAPISpecJSONClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOpenAPISpecJSONClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetOpenAPISpecJSONClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type HeadOpenAPISpecJSONClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON429 *OpenAPISpecThrottled +} + +// Status returns HTTPResponse.Status +func (r HeadOpenAPISpecJSONClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r HeadOpenAPISpecJSONClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r HeadOpenAPISpecJSONClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type GetOpenAPISpecYAMLClientResponse struct { + Body []byte + HTTPResponse *http.Response + YAML200 *OpenAPISpecDocument + JSON429 *OpenAPISpecThrottled +} + +// Status returns HTTPResponse.Status +func (r GetOpenAPISpecYAMLClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOpenAPISpecYAMLClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetOpenAPISpecYAMLClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type HeadOpenAPISpecYAMLClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON429 *OpenAPISpecThrottled +} + +// Status returns HTTPResponse.Status +func (r HeadOpenAPISpecYAMLClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r HeadOpenAPISpecYAMLClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r HeadOpenAPISpecYAMLClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type ListProjectsClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PaginatedProjects + JSON400 *Error +} + +// Status returns HTTPResponse.Status +func (r ListProjectsClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListProjectsClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListProjectsClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type CreateProjectClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *Project + JSON400 *Error + JSON403 *Error +} + +// Status returns HTTPResponse.Status +func (r CreateProjectClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateProjectClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateProjectClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type DeleteProjectClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON404 *Error +} + +// Status returns HTTPResponse.Status +func (r DeleteProjectClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteProjectClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteProjectClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type GetProjectClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Project + JSON404 *Error +} // Status returns HTTPResponse.Status -func (r AuthLogoutClientResponse) Status() string { +func (r GetProjectClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -29111,7 +36435,7 @@ func (r AuthLogoutClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthLogoutClientResponse) StatusCode() int { +func (r GetProjectClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -29119,21 +36443,25 @@ func (r AuthLogoutClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthLogoutClientResponse) ContentType() string { +func (r GetProjectClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type AuthOAuthExchangeClientResponse struct { +type UpdateProjectClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *AuthTokenResponse + JSON200 *Project + JSON400 *Error + JSON403 *Error + JSON404 *Error + JSON409 *Error } // Status returns HTTPResponse.Status -func (r AuthOAuthExchangeClientResponse) Status() string { +func (r UpdateProjectClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -29141,7 +36469,7 @@ func (r AuthOAuthExchangeClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthOAuthExchangeClientResponse) StatusCode() int { +func (r UpdateProjectClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -29149,28 +36477,24 @@ func (r AuthOAuthExchangeClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthOAuthExchangeClientResponse) ContentType() string { +func (r UpdateProjectClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type AuthListOAuthProvidersClientResponse struct { +type ListProjectAccessTokensClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - Providers *[]struct { - LinkedAt *time.Time `json:"linked_at,omitempty"` - Provider *string `json:"provider,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` - } `json:"providers,omitempty"` - } - JSON401 *Error + JSON200 *PaginatedProjectAccessTokens + JSON401 *Error + JSON403 *Error + JSON404 *Error } // Status returns HTTPResponse.Status -func (r AuthListOAuthProvidersClientResponse) Status() string { +func (r ListProjectAccessTokensClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -29178,7 +36502,7 @@ func (r AuthListOAuthProvidersClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthListOAuthProvidersClientResponse) StatusCode() int { +func (r ListProjectAccessTokensClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -29186,20 +36510,26 @@ func (r AuthListOAuthProvidersClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthListOAuthProvidersClientResponse) ContentType() string { +func (r ListProjectAccessTokensClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type AuthOAuthAuthorizeClientResponse struct { +type CreateProjectAccessTokenClientResponse struct { Body []byte HTTPResponse *http.Response + JSON201 *CreatedProjectAccessToken + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON409 *Error } // Status returns HTTPResponse.Status -func (r AuthOAuthAuthorizeClientResponse) Status() string { +func (r CreateProjectAccessTokenClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -29207,7 +36537,7 @@ func (r AuthOAuthAuthorizeClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthOAuthAuthorizeClientResponse) StatusCode() int { +func (r CreateProjectAccessTokenClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -29215,24 +36545,25 @@ func (r AuthOAuthAuthorizeClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthOAuthAuthorizeClientResponse) ContentType() string { +func (r CreateProjectAccessTokenClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type CallOAuthProviderAPIClientResponse struct { +type ListProjectAccessTokensUsageClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *map[string]interface{} + JSON200 *[]ProjectAccessTokenUsage JSON400 *Error JSON401 *Error - JSON502 *Error + JSON403 *Error + JSON404 *Error } // Status returns HTTPResponse.Status -func (r CallOAuthProviderAPIClientResponse) Status() string { +func (r ListProjectAccessTokensUsageClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -29240,7 +36571,7 @@ func (r CallOAuthProviderAPIClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CallOAuthProviderAPIClientResponse) StatusCode() int { +func (r ListProjectAccessTokensUsageClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -29248,22 +36579,24 @@ func (r CallOAuthProviderAPIClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CallOAuthProviderAPIClientResponse) ContentType() string { +func (r ListProjectAccessTokensUsageClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type AuthOAuthCallbackClientResponse struct { +type RevokeProjectAccessTokenClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *AuthTokenResponse - JSON201 *AuthTokenResponse + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON409 *Error } // Status returns HTTPResponse.Status -func (r AuthOAuthCallbackClientResponse) Status() string { +func (r RevokeProjectAccessTokenClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -29271,7 +36604,7 @@ func (r AuthOAuthCallbackClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthOAuthCallbackClientResponse) StatusCode() int { +func (r RevokeProjectAccessTokenClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -29279,27 +36612,102 @@ func (r AuthOAuthCallbackClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthOAuthCallbackClientResponse) ContentType() string { +func (r RevokeProjectAccessTokenClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type AuthLinkOAuthProviderClientResponse struct { +type GetProjectAccessTokenClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ProjectAccessToken + JSON401 *Error + JSON403 *Error + JSON404 *Error +} + +// Status returns HTTPResponse.Status +func (r GetProjectAccessTokenClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetProjectAccessTokenClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetProjectAccessTokenClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type GetProjectAccessTokenUsageClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ProjectAccessTokenUsage + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error +} + +// Status returns HTTPResponse.Status +func (r GetProjectAccessTokenUsageClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetProjectAccessTokenUsageClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetProjectAccessTokenUsageClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type ListAnonKeysClientResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { - AuthorizationUrl *string `json:"authorization_url,omitempty"` + Data *[]AnonKey `json:"data,omitempty"` + + // HasMore Whether a next page exists. + HasMore *bool `json:"has_more,omitempty"` + + // NextCursor Opaque cursor for the next page (cursor pagination only) + NextCursor *string `json:"next_cursor,omitempty"` + + // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`. + PrevCursor *string `json:"prev_cursor,omitempty"` + + // Total Total number of items matching the query (so the UI can render numbered pages). + Total *int `json:"total,omitempty"` } - JSON400 *Error - JSON401 *Error - JSON404 *Error - JSON409 *Error } // Status returns HTTPResponse.Status -func (r AuthLinkOAuthProviderClientResponse) Status() string { +func (r ListAnonKeysClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -29307,7 +36715,339 @@ func (r AuthLinkOAuthProviderClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthLinkOAuthProviderClientResponse) StatusCode() int { +func (r ListAnonKeysClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListAnonKeysClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type CreateAnonKeyClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *AnonKey +} + +// Status returns HTTPResponse.Status +func (r CreateAnonKeyClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateAnonKeyClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateAnonKeyClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type RevokeAnonKeyClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON409 *Error + JSON500 *Error +} + +// Status returns HTTPResponse.Status +func (r RevokeAnonKeyClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r RevokeAnonKeyClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r RevokeAnonKeyClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type GetAnonKeyClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AnonKey +} + +// Status returns HTTPResponse.Status +func (r GetAnonKeyClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAnonKeyClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetAnonKeyClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type RegenerateAnonKeyClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AnonKey +} + +// Status returns HTTPResponse.Status +func (r RegenerateAnonKeyClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r RegenerateAnonKeyClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r RegenerateAnonKeyClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type SetDefaultAnonKeyClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AnonKey + JSON500 *Error +} + +// Status returns HTTPResponse.Status +func (r SetDefaultAnonKeyClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r SetDefaultAnonKeyClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r SetDefaultAnonKeyClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type GetAuthConfigClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AuthConfig +} + +// Status returns HTTPResponse.Status +func (r GetAuthConfigClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAuthConfigClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetAuthConfigClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type UpdateAuthConfigClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AuthConfig + JSON403 *Error +} + +// Status returns HTTPResponse.Status +func (r UpdateAuthConfigClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateAuthConfigClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpdateAuthConfigClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type TestEmailConfigClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TestEmailResponse +} + +// Status returns HTTPResponse.Status +func (r TestEmailConfigClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r TestEmailConfigClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r TestEmailConfigClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type RenderDefaultManagedAuthPageClientResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r RenderDefaultManagedAuthPageClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r RenderDefaultManagedAuthPageClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r RenderDefaultManagedAuthPageClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type GetAuthHostedPageClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AuthHostedPageResponse +} + +// Status returns HTTPResponse.Status +func (r GetAuthHostedPageClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAuthHostedPageClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetAuthHostedPageClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type UpdateAuthHostedPageClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AuthHostedPageResponse +} + +// Status returns HTTPResponse.Status +func (r UpdateAuthHostedPageClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateAuthHostedPageClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -29315,28 +37055,21 @@ func (r AuthLinkOAuthProviderClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthLinkOAuthProviderClientResponse) ContentType() string { +func (r UpdateAuthHostedPageClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type RefreshOAuthProviderTokenClientResponse struct { +type HostedLoginCheckEmailClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - ExpiresIn *int `json:"expires_in,omitempty"` - Message *string `json:"message,omitempty"` - Provider *string `json:"provider,omitempty"` - } - JSON400 *Error - JSON401 *Error - JSON404 *Error + JSON200 *HostedLoginEmailCheckResponse } // Status returns HTTPResponse.Status -func (r RefreshOAuthProviderTokenClientResponse) Status() string { +func (r HostedLoginCheckEmailClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -29344,7 +37077,7 @@ func (r RefreshOAuthProviderTokenClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r RefreshOAuthProviderTokenClientResponse) StatusCode() int { +func (r HostedLoginCheckEmailClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -29352,27 +37085,21 @@ func (r RefreshOAuthProviderTokenClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RefreshOAuthProviderTokenClientResponse) ContentType() string { +func (r HostedLoginCheckEmailClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetOAuthProviderTokenClientResponse struct { +type GetHostedLoginOptionsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - ExpiresIn *int `json:"expires_in,omitempty"` - Message *string `json:"message,omitempty"` - Provider *string `json:"provider,omitempty"` - } - JSON401 *Error - JSON404 *Error + JSON200 *HostedLoginOptionsResponse } // Status returns HTTPResponse.Status -func (r GetOAuthProviderTokenClientResponse) Status() string { +func (r GetHostedLoginOptionsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -29380,7 +37107,7 @@ func (r GetOAuthProviderTokenClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOAuthProviderTokenClientResponse) StatusCode() int { +func (r GetHostedLoginOptionsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -29388,23 +37115,20 @@ func (r GetOAuthProviderTokenClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetOAuthProviderTokenClientResponse) ContentType() string { +func (r GetHostedLoginOptionsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type AuthUnlinkOAuthProviderClientResponse struct { +type RenderManagedAuthPageClientResponse struct { Body []byte HTTPResponse *http.Response - JSON400 *Error - JSON401 *Error - JSON404 *Error } // Status returns HTTPResponse.Status -func (r AuthUnlinkOAuthProviderClientResponse) Status() string { +func (r RenderManagedAuthPageClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -29412,7 +37136,7 @@ func (r AuthUnlinkOAuthProviderClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthUnlinkOAuthProviderClientResponse) StatusCode() int { +func (r RenderManagedAuthPageClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -29420,23 +37144,26 @@ func (r AuthUnlinkOAuthProviderClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthUnlinkOAuthProviderClientResponse) ContentType() string { +func (r RenderManagedAuthPageClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type AuthGetPasswordPolicyClientResponse struct { +type GetAuthInsightsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *AuthPasswordPolicy + JSON200 *AuthInsightsResponse + JSON400 *Error JSON401 *Error + JSON403 *Error JSON404 *Error + JSON500 *Error } // Status returns HTTPResponse.Status -func (r AuthGetPasswordPolicyClientResponse) Status() string { +func (r GetAuthInsightsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -29444,7 +37171,7 @@ func (r AuthGetPasswordPolicyClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthGetPasswordPolicyClientResponse) StatusCode() int { +func (r GetAuthInsightsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -29452,22 +37179,41 @@ func (r AuthGetPasswordPolicyClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthGetPasswordPolicyClientResponse) ContentType() string { +func (r GetAuthInsightsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type AuthPlatformExchangeClientResponse struct { +type GetAuthMethodsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *PlatformExchangeResponse - JSON403 *Error + JSON200 *struct { + Anonymous *struct { + Enabled *bool `json:"enabled,omitempty"` + Method *string `json:"method,omitempty"` + Name *string `json:"name,omitempty"` + } `json:"anonymous,omitempty"` + AvailableMethods *[]string `json:"available_methods,omitempty"` + EmailPassword *struct { + Enabled *bool `json:"enabled,omitempty"` + Method *string `json:"method,omitempty"` + Name *string `json:"name,omitempty"` + } `json:"email_password,omitempty"` + OauthProviders *[]struct { + Enabled *bool `json:"enabled,omitempty"` + Method *string `json:"method,omitempty"` + Name *string `json:"name,omitempty"` + Provider *string `json:"provider,omitempty"` + RedirectUrl *string `json:"redirect_url,omitempty"` + Scopes *[]string `json:"scopes,omitempty"` + } `json:"oauth_providers,omitempty"` + } } // Status returns HTTPResponse.Status -func (r AuthPlatformExchangeClientResponse) Status() string { +func (r GetAuthMethodsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -29475,7 +37221,7 @@ func (r AuthPlatformExchangeClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthPlatformExchangeClientResponse) StatusCode() int { +func (r GetAuthMethodsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -29483,24 +37229,20 @@ func (r AuthPlatformExchangeClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthPlatformExchangeClientResponse) ContentType() string { +func (r GetAuthMethodsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type AuthRefreshClientResponse struct { +type ConfigureAuthMethodsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *AuthTokenResponse - JSON401 *Error - JSON403 *Error - JSON429 *Error } // Status returns HTTPResponse.Status -func (r AuthRefreshClientResponse) Status() string { +func (r ConfigureAuthMethodsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -29508,7 +37250,7 @@ func (r AuthRefreshClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthRefreshClientResponse) StatusCode() int { +func (r ConfigureAuthMethodsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -29516,24 +37258,25 @@ func (r AuthRefreshClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthRefreshClientResponse) ContentType() string { +func (r ConfigureAuthMethodsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type AuthResendConfirmationClientResponse struct { +type GetAuthPageAppearanceClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - Message *string `json:"message,omitempty"` - } - JSON429 *Error + JSON200 *AuthPageAppearanceResponse + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON500 *Error } // Status returns HTTPResponse.Status -func (r AuthResendConfirmationClientResponse) Status() string { +func (r GetAuthPageAppearanceClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -29541,7 +37284,7 @@ func (r AuthResendConfirmationClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthResendConfirmationClientResponse) StatusCode() int { +func (r GetAuthPageAppearanceClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -29549,24 +37292,24 @@ func (r AuthResendConfirmationClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthResendConfirmationClientResponse) ContentType() string { +func (r GetAuthPageAppearanceClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type AuthResetPasswordClientResponse struct { +type DeleteAuthPageThemeClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - Message *string `json:"message,omitempty"` - } - JSON503 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON500 *Error } // Status returns HTTPResponse.Status -func (r AuthResetPasswordClientResponse) Status() string { +func (r DeleteAuthPageThemeClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -29574,7 +37317,7 @@ func (r AuthResetPasswordClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthResetPasswordClientResponse) StatusCode() int { +func (r DeleteAuthPageThemeClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -29582,21 +37325,26 @@ func (r AuthResetPasswordClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthResetPasswordClientResponse) ContentType() string { +func (r DeleteAuthPageThemeClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type AuthSigninClientResponse struct { +type UpdateAuthPageThemeClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *AuthTokenResponse + JSON200 *UpdateAuthPageThemeRequest + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON500 *Error } // Status returns HTTPResponse.Status -func (r AuthSigninClientResponse) Status() string { +func (r UpdateAuthPageThemeClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -29604,7 +37352,7 @@ func (r AuthSigninClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthSigninClientResponse) StatusCode() int { +func (r UpdateAuthPageThemeClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -29612,22 +37360,25 @@ func (r AuthSigninClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthSigninClientResponse) ContentType() string { +func (r UpdateAuthPageThemeClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type AuthSignupClientResponse struct { +type DeleteAuthPageLayoutClientResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *AuthSignupResponse - JSON503 *Error + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON500 *Error } // Status returns HTTPResponse.Status -func (r AuthSignupClientResponse) Status() string { +func (r DeleteAuthPageLayoutClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -29635,7 +37386,7 @@ func (r AuthSignupClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthSignupClientResponse) StatusCode() int { +func (r DeleteAuthPageLayoutClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -29643,21 +37394,26 @@ func (r AuthSignupClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthSignupClientResponse) ContentType() string { +func (r DeleteAuthPageLayoutClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type AuthSignupAnonymousClientResponse struct { +type UpdateAuthPageLayoutClientResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *AuthTokenResponse + JSON200 *UpdateAuthPageLayoutRequest + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON500 *Error } // Status returns HTTPResponse.Status -func (r AuthSignupAnonymousClientResponse) Status() string { +func (r UpdateAuthPageLayoutClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -29665,7 +37421,7 @@ func (r AuthSignupAnonymousClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthSignupAnonymousClientResponse) StatusCode() int { +func (r UpdateAuthPageLayoutClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -29673,24 +37429,20 @@ func (r AuthSignupAnonymousClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthSignupAnonymousClientResponse) ContentType() string { +func (r UpdateAuthPageLayoutClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type AuthGetUserClientResponse struct { +type RenderAuthPagePreviewClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - User *AuthUser `json:"user,omitempty"` - } - JSON401 *Error } // Status returns HTTPResponse.Status -func (r AuthGetUserClientResponse) Status() string { +func (r RenderAuthPagePreviewClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -29698,7 +37450,7 @@ func (r AuthGetUserClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthGetUserClientResponse) StatusCode() int { +func (r RenderAuthPagePreviewClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -29706,26 +37458,26 @@ func (r AuthGetUserClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthGetUserClientResponse) ContentType() string { +func (r RenderAuthPagePreviewClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type AuthUpdateUserClientResponse struct { +type PreviewAuthPageClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - User *AuthUser `json:"user,omitempty"` - } - JSON400 *Error - JSON401 *Error - JSON503 *Error + JSON200 *PreviewAuthPageResponse + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON500 *Error } // Status returns HTTPResponse.Status -func (r AuthUpdateUserClientResponse) Status() string { +func (r PreviewAuthPageClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -29733,7 +37485,7 @@ func (r AuthUpdateUserClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthUpdateUserClientResponse) StatusCode() int { +func (r PreviewAuthPageClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -29741,24 +37493,22 @@ func (r AuthUpdateUserClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthUpdateUserClientResponse) ContentType() string { +func (r PreviewAuthPageClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type AuthCancelEmailChangeClientResponse struct { +type ListAuthUsersClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - Message *string `json:"message,omitempty"` - } - JSON401 *Error + JSON200 *PaginatedAuthUsers + JSON400 *Error } // Status returns HTTPResponse.Status -func (r AuthCancelEmailChangeClientResponse) Status() string { +func (r ListAuthUsersClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -29766,7 +37516,7 @@ func (r AuthCancelEmailChangeClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthCancelEmailChangeClientResponse) StatusCode() int { +func (r ListAuthUsersClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -29774,29 +37524,20 @@ func (r AuthCancelEmailChangeClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthCancelEmailChangeClientResponse) ContentType() string { +func (r ListAuthUsersClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type AuthRequestEmailChangeClientResponse struct { +type DeleteAuthUserClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - Message *string `json:"message,omitempty"` - NewEmail *string `json:"new_email,omitempty"` - } - JSON400 *Error - JSON401 *Error - JSON403 *Error - JSON409 *Error - JSON429 *Error } // Status returns HTTPResponse.Status -func (r AuthRequestEmailChangeClientResponse) Status() string { +func (r DeleteAuthUserClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -29804,7 +37545,7 @@ func (r AuthRequestEmailChangeClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthRequestEmailChangeClientResponse) StatusCode() int { +func (r DeleteAuthUserClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -29812,28 +37553,21 @@ func (r AuthRequestEmailChangeClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthRequestEmailChangeClientResponse) ContentType() string { +func (r DeleteAuthUserClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type AuthConfirmEmailChangeClientResponse struct { +type GetAuthUserClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - Message *string `json:"message,omitempty"` - User *AuthUser `json:"user,omitempty"` - } - JSON400 *Error - JSON401 *Error - JSON403 *Error - JSON409 *Error + JSON200 *AuthUser } // Status returns HTTPResponse.Status -func (r AuthConfirmEmailChangeClientResponse) Status() string { +func (r GetAuthUserClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -29841,7 +37575,7 @@ func (r AuthConfirmEmailChangeClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthConfirmEmailChangeClientResponse) StatusCode() int { +func (r GetAuthUserClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -29849,24 +37583,22 @@ func (r AuthConfirmEmailChangeClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthConfirmEmailChangeClientResponse) ContentType() string { +func (r GetAuthUserClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type AuthConvertAnonymousClientResponse struct { +type BanAuthUserClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - User *AuthUser `json:"user,omitempty"` - } - JSON503 *Error + JSON200 *BanUserResponse + JSON404 *Error } // Status returns HTTPResponse.Status -func (r AuthConvertAnonymousClientResponse) Status() string { +func (r BanAuthUserClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -29874,7 +37606,7 @@ func (r AuthConvertAnonymousClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthConvertAnonymousClientResponse) StatusCode() int { +func (r BanAuthUserClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -29882,22 +37614,20 @@ func (r AuthConvertAnonymousClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthConvertAnonymousClientResponse) ContentType() string { +func (r BanAuthUserClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type AuthListIdentitiesClientResponse struct { +type DeleteAllUserSessionsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *AuthIdentitiesResponse - JSON401 *Error } // Status returns HTTPResponse.Status -func (r AuthListIdentitiesClientResponse) Status() string { +func (r DeleteAllUserSessionsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -29905,7 +37635,7 @@ func (r AuthListIdentitiesClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthListIdentitiesClientResponse) StatusCode() int { +func (r DeleteAllUserSessionsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -29913,23 +37643,47 @@ func (r AuthListIdentitiesClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthListIdentitiesClientResponse) ContentType() string { +func (r DeleteAllUserSessionsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type AuthUnlinkIdentityClientResponse struct { +type ListUserSessionsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON400 *Error - JSON401 *Error - JSON404 *Error + JSON200 *struct { + // Data Sessions for this page (cursor pagination only) + Data *[]AuthSession `json:"data,omitempty"` + + // HasMore Whether a further page exists (cursor pagination only) + HasMore *bool `json:"has_more,omitempty"` + + // Limit Number of sessions per page + Limit *int `json:"limit,omitempty"` + + // NextCursor Opaque cursor for the next page (cursor pagination only) + NextCursor *string `json:"next_cursor,omitempty"` + + // Page Current page number + Page *int `json:"page,omitempty"` + + // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`. + PrevCursor *string `json:"prev_cursor,omitempty"` + Sessions *[]AuthSession `json:"sessions,omitempty"` + + // Total Total number of sessions + Total *int `json:"total,omitempty"` + + // TotalPages Total number of pages + TotalPages *int `json:"total_pages,omitempty"` + } + JSON400 *Error } // Status returns HTTPResponse.Status -func (r AuthUnlinkIdentityClientResponse) Status() string { +func (r ListUserSessionsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -29937,7 +37691,7 @@ func (r AuthUnlinkIdentityClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthUnlinkIdentityClientResponse) StatusCode() int { +func (r ListUserSessionsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -29945,22 +37699,20 @@ func (r AuthUnlinkIdentityClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthUnlinkIdentityClientResponse) ContentType() string { +func (r ListUserSessionsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type AuthListMethodsClientResponse struct { +type DeleteUserSessionClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *AuthMethodsResponse - JSON401 *Error } // Status returns HTTPResponse.Status -func (r AuthListMethodsClientResponse) Status() string { +func (r DeleteUserSessionClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -29968,7 +37720,7 @@ func (r AuthListMethodsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthListMethodsClientResponse) StatusCode() int { +func (r DeleteUserSessionClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -29976,25 +37728,22 @@ func (r AuthListMethodsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthListMethodsClientResponse) ContentType() string { +func (r DeleteUserSessionClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type AuthPromoteMethodClientResponse struct { +type UnbanAuthUserClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *AuthMethodSummary - JSON400 *Error - JSON401 *Error - JSON403 *Error + JSON200 *UnbanUserResponse JSON404 *Error } // Status returns HTTPResponse.Status -func (r AuthPromoteMethodClientResponse) Status() string { +func (r UnbanAuthUserClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -30002,7 +37751,7 @@ func (r AuthPromoteMethodClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthPromoteMethodClientResponse) StatusCode() int { +func (r UnbanAuthUserClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -30010,21 +37759,25 @@ func (r AuthPromoteMethodClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthPromoteMethodClientResponse) ContentType() string { +func (r UnbanAuthUserClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type AuthDeleteAllMySessionsClientResponse struct { +type GetProjectConfigClientResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *ProjectConfig + YAML200 *openapi_types.File JSON401 *Error + JSON404 *Error + JSON413 *Error } // Status returns HTTPResponse.Status -func (r AuthDeleteAllMySessionsClientResponse) Status() string { +func (r GetProjectConfigClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -30032,7 +37785,7 @@ func (r AuthDeleteAllMySessionsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthDeleteAllMySessionsClientResponse) StatusCode() int { +func (r GetProjectConfigClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -30040,48 +37793,27 @@ func (r AuthDeleteAllMySessionsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthDeleteAllMySessionsClientResponse) ContentType() string { +func (r GetProjectConfigClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type AuthGetMySessionsClientResponse struct { +type ApplyProjectConfigClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - // Data Sessions for this page (cursor pagination only) - Data *[]AuthSession `json:"data,omitempty"` - - // HasMore Whether a further page exists (cursor pagination only) - HasMore *bool `json:"has_more,omitempty"` - - // Limit Number of sessions per page - Limit *int `json:"limit,omitempty"` - - // NextCursor Opaque cursor for the next page (cursor pagination only) - NextCursor *string `json:"next_cursor,omitempty"` - - // Page Current page number - Page *int `json:"page,omitempty"` - - // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`. - PrevCursor *string `json:"prev_cursor,omitempty"` - Sessions *[]AuthSession `json:"sessions,omitempty"` - - // Total Total number of sessions - Total *int `json:"total,omitempty"` - - // TotalPages Total number of pages - TotalPages *int `json:"total_pages,omitempty"` - } - JSON400 *Error - JSON401 *Error + JSON200 *ProjectConfigApplyResult + JSON400 *Error + JSON401 *Error + JSON404 *Error + JSON409 *Error + JSON422 *ProjectConfigValidationErrorResponse + JSON503 *Error } // Status returns HTTPResponse.Status -func (r AuthGetMySessionsClientResponse) Status() string { +func (r ApplyProjectConfigClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -30089,7 +37821,7 @@ func (r AuthGetMySessionsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthGetMySessionsClientResponse) StatusCode() int { +func (r ApplyProjectConfigClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -30097,22 +37829,21 @@ func (r AuthGetMySessionsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthGetMySessionsClientResponse) ContentType() string { +func (r ApplyProjectConfigClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type AuthDeleteMySessionClientResponse struct { +type ListDatabasesClientResponse struct { Body []byte HTTPResponse *http.Response - JSON401 *Error - JSON404 *Error + JSON200 *PaginatedDatabases } // Status returns HTTPResponse.Status -func (r AuthDeleteMySessionClientResponse) Status() string { +func (r ListDatabasesClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -30120,7 +37851,7 @@ func (r AuthDeleteMySessionClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthDeleteMySessionClientResponse) StatusCode() int { +func (r ListDatabasesClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -30128,33 +37859,22 @@ func (r AuthDeleteMySessionClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthDeleteMySessionClientResponse) ContentType() string { +func (r ListDatabasesClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ListPostgresVersionsClientResponse struct { +type CreateDatabaseClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]struct { - // Default Whether this is the default version (recommended) - Default *bool `json:"default,omitempty"` - - // Deprecated Whether this version is deprecated (approaching EOL) - Deprecated *bool `json:"deprecated,omitempty"` - - // Name Human-readable version name - Name *string `json:"name,omitempty"` - - // Version PostgreSQL major version number - Version *string `json:"version,omitempty"` - } + JSON201 *Database + JSON403 *Error } // Status returns HTTPResponse.Status -func (r ListPostgresVersionsClientResponse) Status() string { +func (r CreateDatabaseClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -30162,7 +37882,7 @@ func (r ListPostgresVersionsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListPostgresVersionsClientResponse) StatusCode() int { +func (r CreateDatabaseClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -30170,27 +37890,27 @@ func (r ListPostgresVersionsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListPostgresVersionsClientResponse) ContentType() string { +func (r CreateDatabaseClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ListDatabaseRegionsClientResponse struct { +type DeleteDatabaseClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]struct { - // Id Region identifier for API usage - Id *string `json:"id,omitempty"` - - // Name Human-readable region name - Name *string `json:"name,omitempty"` + JSON202 *struct { + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` } + JSON404 *Error + JSON409 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r ListDatabaseRegionsClientResponse) Status() string { +func (r DeleteDatabaseClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -30198,7 +37918,7 @@ func (r ListDatabaseRegionsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListDatabaseRegionsClientResponse) StatusCode() int { +func (r DeleteDatabaseClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -30206,26 +37926,21 @@ func (r ListDatabaseRegionsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListDatabaseRegionsClientResponse) ContentType() string { +func (r DeleteDatabaseClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type QueryDatabaseBranchDeleteClientResponse struct { +type GetDatabaseClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DatabaseQueryResult - JSON400 *Error - JSON401 *Error - JSON403 *Error - JSON404 *Error - JSON429 *DatabaseQueryCapExceeded + JSON200 *Database } // Status returns HTTPResponse.Status -func (r QueryDatabaseBranchDeleteClientResponse) Status() string { +func (r GetDatabaseClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -30233,7 +37948,7 @@ func (r QueryDatabaseBranchDeleteClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r QueryDatabaseBranchDeleteClientResponse) StatusCode() int { +func (r GetDatabaseClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -30241,26 +37956,25 @@ func (r QueryDatabaseBranchDeleteClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r QueryDatabaseBranchDeleteClientResponse) ContentType() string { +func (r GetDatabaseClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type QueryDatabaseBranchInsertClientResponse struct { +type GetDatabaseBackupScheduleClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DatabaseQueryResult - JSON400 *Error - JSON401 *Error + JSON200 *DatabaseBackupSchedule JSON403 *Error JSON404 *Error - JSON429 *DatabaseQueryCapExceeded + JSON409 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r QueryDatabaseBranchInsertClientResponse) Status() string { +func (r GetDatabaseBackupScheduleClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -30268,7 +37982,7 @@ func (r QueryDatabaseBranchInsertClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r QueryDatabaseBranchInsertClientResponse) StatusCode() int { +func (r GetDatabaseBackupScheduleClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -30276,25 +37990,26 @@ func (r QueryDatabaseBranchInsertClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r QueryDatabaseBranchInsertClientResponse) ContentType() string { +func (r GetDatabaseBackupScheduleClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type QueryDatabaseBranchPingClientResponse struct { +type UpdateDatabaseBackupScheduleClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DatabaseQueryResult - JSON401 *Error + JSON200 *DatabaseBackupSchedule + JSON400 *Error JSON403 *Error JSON404 *Error - JSON429 *DatabaseQueryCapExceeded + JSON409 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r QueryDatabaseBranchPingClientResponse) Status() string { +func (r UpdateDatabaseBackupScheduleClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -30302,7 +38017,7 @@ func (r QueryDatabaseBranchPingClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r QueryDatabaseBranchPingClientResponse) StatusCode() int { +func (r UpdateDatabaseBackupScheduleClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -30310,26 +38025,25 @@ func (r QueryDatabaseBranchPingClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r QueryDatabaseBranchPingClientResponse) ContentType() string { +func (r UpdateDatabaseBackupScheduleClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type QueryDatabaseBranchSelectClientResponse struct { +type ListDatabaseBackupsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DatabaseQueryResult - JSON400 *Error - JSON401 *Error + JSON200 *DatabaseBackupList JSON403 *Error JSON404 *Error - JSON429 *DatabaseQueryCapExceeded + JSON409 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r QueryDatabaseBranchSelectClientResponse) Status() string { +func (r ListDatabaseBackupsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -30337,7 +38051,7 @@ func (r QueryDatabaseBranchSelectClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r QueryDatabaseBranchSelectClientResponse) StatusCode() int { +func (r ListDatabaseBackupsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -30345,26 +38059,26 @@ func (r QueryDatabaseBranchSelectClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r QueryDatabaseBranchSelectClientResponse) ContentType() string { +func (r ListDatabaseBackupsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type QueryDatabaseBranchUpdateClientResponse struct { +type CreateDatabaseBackupClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DatabaseQueryResult + JSON201 *DatabaseBackup JSON400 *Error - JSON401 *Error JSON403 *Error JSON404 *Error - JSON429 *DatabaseQueryCapExceeded + JSON409 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r QueryDatabaseBranchUpdateClientResponse) Status() string { +func (r CreateDatabaseBackupClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -30372,7 +38086,7 @@ func (r QueryDatabaseBranchUpdateClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r QueryDatabaseBranchUpdateClientResponse) StatusCode() int { +func (r CreateDatabaseBackupClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -30380,26 +38094,28 @@ func (r QueryDatabaseBranchUpdateClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r QueryDatabaseBranchUpdateClientResponse) ContentType() string { +func (r CreateDatabaseBackupClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type QueryDatabaseDeleteClientResponse struct { +type DeleteDatabaseBackupClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DatabaseQueryResult - JSON400 *Error - JSON401 *Error - JSON403 *Error - JSON404 *Error - JSON429 *DatabaseQueryCapExceeded + JSON200 *struct { + Message string `json:"message"` + Status string `json:"status"` + } + JSON403 *Error + JSON404 *Error + JSON409 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r QueryDatabaseDeleteClientResponse) Status() string { +func (r DeleteDatabaseBackupClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -30407,7 +38123,7 @@ func (r QueryDatabaseDeleteClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r QueryDatabaseDeleteClientResponse) StatusCode() int { +func (r DeleteDatabaseBackupClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -30415,26 +38131,25 @@ func (r QueryDatabaseDeleteClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r QueryDatabaseDeleteClientResponse) ContentType() string { +func (r DeleteDatabaseBackupClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type QueryDatabaseInsertClientResponse struct { +type GetDatabaseBackupClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DatabaseQueryResult - JSON400 *Error - JSON401 *Error + JSON200 *DatabaseBackup JSON403 *Error JSON404 *Error - JSON429 *DatabaseQueryCapExceeded + JSON409 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r QueryDatabaseInsertClientResponse) Status() string { +func (r GetDatabaseBackupClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -30442,7 +38157,7 @@ func (r QueryDatabaseInsertClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r QueryDatabaseInsertClientResponse) StatusCode() int { +func (r GetDatabaseBackupClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -30450,25 +38165,23 @@ func (r QueryDatabaseInsertClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r QueryDatabaseInsertClientResponse) ContentType() string { +func (r GetDatabaseBackupClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type QueryDatabasePingClientResponse struct { +type ListDatabaseBranchesClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DatabaseQueryResult - JSON401 *Error - JSON403 *Error + JSON200 *DatabaseBranchList JSON404 *Error - JSON429 *DatabaseQueryCapExceeded + JSON503 *Error } // Status returns HTTPResponse.Status -func (r QueryDatabasePingClientResponse) Status() string { +func (r ListDatabaseBranchesClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -30476,7 +38189,7 @@ func (r QueryDatabasePingClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r QueryDatabasePingClientResponse) StatusCode() int { +func (r ListDatabaseBranchesClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -30484,26 +38197,26 @@ func (r QueryDatabasePingClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r QueryDatabasePingClientResponse) ContentType() string { +func (r ListDatabaseBranchesClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type QueryDatabaseSelectClientResponse struct { +type CreateDatabaseBranchClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DatabaseQueryResult + JSON202 *DatabaseBranch JSON400 *Error - JSON401 *Error JSON403 *Error JSON404 *Error - JSON429 *DatabaseQueryCapExceeded + JSON409 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r QueryDatabaseSelectClientResponse) Status() string { +func (r CreateDatabaseBranchClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -30511,7 +38224,7 @@ func (r QueryDatabaseSelectClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r QueryDatabaseSelectClientResponse) StatusCode() int { +func (r CreateDatabaseBranchClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -30519,26 +38232,26 @@ func (r QueryDatabaseSelectClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r QueryDatabaseSelectClientResponse) ContentType() string { +func (r CreateDatabaseBranchClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type QueryDatabaseUpdateClientResponse struct { +type DeleteDatabaseBranchClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DatabaseQueryResult - JSON400 *Error - JSON401 *Error - JSON403 *Error - JSON404 *Error - JSON429 *DatabaseQueryCapExceeded + JSON202 *struct { + Message string `json:"message"` + Status string `json:"status"` + } + JSON404 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r QueryDatabaseUpdateClientResponse) Status() string { +func (r DeleteDatabaseBranchClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -30546,7 +38259,7 @@ func (r QueryDatabaseUpdateClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r QueryDatabaseUpdateClientResponse) StatusCode() int { +func (r DeleteDatabaseBranchClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -30554,25 +38267,23 @@ func (r QueryDatabaseUpdateClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r QueryDatabaseUpdateClientResponse) ContentType() string { +func (r DeleteDatabaseBranchClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ListDeploymentsClientResponse struct { +type GetDatabaseBranchClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *PaginatedProjectDeployments - JSON400 *Error - JSON401 *Error - JSON403 *Error - JSON500 *Error + JSON200 *DatabaseBranch + JSON404 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r ListDeploymentsClientResponse) Status() string { +func (r GetDatabaseBranchClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -30580,7 +38291,7 @@ func (r ListDeploymentsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListDeploymentsClientResponse) StatusCode() int { +func (r GetDatabaseBranchClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -30588,23 +38299,25 @@ func (r ListDeploymentsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListDeploymentsClientResponse) ContentType() string { +func (r GetDatabaseBranchClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetDefaultEmailTemplatesClientResponse struct { +type UpdateDatabaseBranchClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - Data *[]EmailTemplate `json:"data,omitempty"` - } + JSON200 *DatabaseBranch + JSON400 *Error + JSON404 *Error + JSON409 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r GetDefaultEmailTemplatesClientResponse) Status() string { +func (r UpdateDatabaseBranchClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -30612,7 +38325,7 @@ func (r GetDefaultEmailTemplatesClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetDefaultEmailTemplatesClientResponse) StatusCode() int { +func (r UpdateDatabaseBranchClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -30620,21 +38333,24 @@ func (r GetDefaultEmailTemplatesClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetDefaultEmailTemplatesClientResponse) ContentType() string { +func (r UpdateDatabaseBranchClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetDefaultEmailTemplateClientResponse struct { +type ResetDatabaseBranchClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *EmailTemplate + JSON202 *DatabaseBranch + JSON404 *Error + JSON409 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r GetDefaultEmailTemplateClientResponse) Status() string { +func (r ResetDatabaseBranchClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -30642,7 +38358,7 @@ func (r GetDefaultEmailTemplateClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetDefaultEmailTemplateClientResponse) StatusCode() int { +func (r ResetDatabaseBranchClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -30650,21 +38366,24 @@ func (r GetDefaultEmailTemplateClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetDefaultEmailTemplateClientResponse) ContentType() string { +func (r ResetDatabaseBranchClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ListFunctionRegionsClientResponse struct { +type ResetDatabaseBranchPasswordClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]FunctionRegion + JSON200 *DatabaseBranch + JSON404 *Error + JSON409 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r ListFunctionRegionsClientResponse) Status() string { +func (r ResetDatabaseBranchPasswordClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -30672,7 +38391,7 @@ func (r ListFunctionRegionsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListFunctionRegionsClientResponse) StatusCode() int { +func (r ResetDatabaseBranchPasswordClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -30680,25 +38399,26 @@ func (r ListFunctionRegionsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListFunctionRegionsClientResponse) ContentType() string { +func (r ResetDatabaseBranchPasswordClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ResolveFunctionForInvocationClientResponse struct { +type GetProjectDatabaseQueriesClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ResolveFunctionResponse + JSON200 *DatabaseQueryPerformanceResponse JSON400 *Error JSON401 *Error JSON403 *Error JSON404 *Error + JSON500 *Error } // Status returns HTTPResponse.Status -func (r ResolveFunctionForInvocationClientResponse) Status() string { +func (r GetProjectDatabaseQueriesClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -30706,7 +38426,7 @@ func (r ResolveFunctionForInvocationClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ResolveFunctionForInvocationClientResponse) StatusCode() int { +func (r GetProjectDatabaseQueriesClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -30714,21 +38434,35 @@ func (r ResolveFunctionForInvocationClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ResolveFunctionForInvocationClientResponse) ContentType() string { +func (r GetProjectDatabaseQueriesClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ListFunctionRuntimesClientResponse struct { +type ResetDatabasePasswordClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *FunctionRuntimesResponse + JSON200 *struct { + // ConnectionString Updated pgproxy connection string using Volcano-managed credentials. + ConnectionString *string `json:"connection_string,omitempty"` + Message *string `json:"message,omitempty"` + + // NewPassword New Volcano-managed client password. Always starts with `vpg_`. + NewPassword *string `json:"new_password,omitempty"` + + // RoleName Volcano-managed per-database client login (also the pgproxy routing username) + RoleName *string `json:"role_name,omitempty"` + } + JSON400 *Error + JSON404 *Error + JSON409 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r ListFunctionRuntimesClientResponse) Status() string { +func (r ResetDatabasePasswordClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -30736,7 +38470,7 @@ func (r ListFunctionRuntimesClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListFunctionRuntimesClientResponse) StatusCode() int { +func (r ResetDatabasePasswordClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -30744,28 +38478,24 @@ func (r ListFunctionRuntimesClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListFunctionRuntimesClientResponse) ContentType() string { +func (r ResetDatabasePasswordClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type InvokeFunctionClientResponse struct { +type ListDatabaseRestoresClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *FunctionInvocationResponse - JSON400 *Error - JSON401 *Error + JSON200 *DatabaseRestoreList JSON403 *Error JSON404 *Error - JSON429 *Error JSON503 *Error - JSONDefault *FunctionInvocationResponse } // Status returns HTTPResponse.Status -func (r InvokeFunctionClientResponse) Status() string { +func (r ListDatabaseRestoresClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -30773,7 +38503,7 @@ func (r InvokeFunctionClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r InvokeFunctionClientResponse) StatusCode() int { +func (r ListDatabaseRestoresClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -30781,24 +38511,26 @@ func (r InvokeFunctionClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r InvokeFunctionClientResponse) ContentType() string { +func (r ListDatabaseRestoresClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GitConnectCallbackClientResponse struct { +type CreateDatabaseRestoreClientResponse struct { Body []byte HTTPResponse *http.Response + JSON202 *DatabaseRestore JSON400 *Error - JSON429 *Error - JSON500 *Error + JSON403 *Error + JSON404 *Error + JSON409 *Error JSON503 *Error } // Status returns HTTPResponse.Status -func (r GitConnectCallbackClientResponse) Status() string { +func (r CreateDatabaseRestoreClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -30806,7 +38538,7 @@ func (r GitConnectCallbackClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GitConnectCallbackClientResponse) StatusCode() int { +func (r CreateDatabaseRestoreClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -30814,20 +38546,24 @@ func (r GitConnectCallbackClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GitConnectCallbackClientResponse) ContentType() string { +func (r CreateDatabaseRestoreClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type HealthCheckClientResponse struct { +type GetDatabaseRestoreClientResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *DatabaseRestore + JSON403 *Error + JSON404 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r HealthCheckClientResponse) Status() string { +func (r GetDatabaseRestoreClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -30835,7 +38571,7 @@ func (r HealthCheckClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r HealthCheckClientResponse) StatusCode() int { +func (r GetDatabaseRestoreClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -30843,24 +38579,24 @@ func (r HealthCheckClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r HealthCheckClientResponse) ContentType() string { +func (r GetDatabaseRestoreClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type CompleteImportConnectClientResponse struct { +type GetDatabaseStatsClientResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *DatabaseStats JSON400 *Error - JSON429 *Error - JSON500 *Error + JSON404 *Error JSON503 *Error } // Status returns HTTPResponse.Status -func (r CompleteImportConnectClientResponse) Status() string { +func (r GetDatabaseStatsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -30868,7 +38604,7 @@ func (r CompleteImportConnectClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CompleteImportConnectClientResponse) StatusCode() int { +func (r GetDatabaseStatsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -30876,29 +38612,23 @@ func (r CompleteImportConnectClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CompleteImportConnectClientResponse) ContentType() string { +func (r GetDatabaseStatsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type PreflightProjectImportClientResponse struct { +type UpdateDatabaseTypeClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ProjectImportReport - JSON400 *Error - JSON401 *Error - JSON403 *Error - JSON404 *Error + JSON200 *Database JSON409 *Error - JSON429 *Error - JSON500 *Error JSON503 *Error } // Status returns HTTPResponse.Status -func (r PreflightProjectImportClientResponse) Status() string { +func (r UpdateDatabaseTypeClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -30906,7 +38636,7 @@ func (r PreflightProjectImportClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PreflightProjectImportClientResponse) StatusCode() int { +func (r UpdateDatabaseTypeClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -30914,30 +38644,25 @@ func (r PreflightProjectImportClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PreflightProjectImportClientResponse) ContentType() string { +func (r UpdateDatabaseTypeClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type StartProjectImportClientResponse struct { +type ListProjectDeploymentsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON202 *ProjectImportRun + JSON200 *PaginatedProjectDeployments JSON400 *Error JSON401 *Error JSON403 *Error - JSON404 *Error - JSON409 *Error - JSON422 *Error - JSON429 *Error JSON500 *Error - JSON503 *Error } // Status returns HTTPResponse.Status -func (r StartProjectImportClientResponse) Status() string { +func (r ListProjectDeploymentsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -30945,7 +38670,7 @@ func (r StartProjectImportClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r StartProjectImportClientResponse) StatusCode() int { +func (r ListProjectDeploymentsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -30953,25 +38678,25 @@ func (r StartProjectImportClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r StartProjectImportClientResponse) ContentType() string { +func (r ListProjectDeploymentsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetProjectImportRunClientResponse struct { +type SummarizeProjectDeploymentsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ProjectImportRun + JSON200 *ProjectDeploymentSummary JSON400 *Error JSON401 *Error - JSON404 *Error + JSON403 *Error JSON500 *Error } // Status returns HTTPResponse.Status -func (r GetProjectImportRunClientResponse) Status() string { +func (r SummarizeProjectDeploymentsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -30979,7 +38704,7 @@ func (r GetProjectImportRunClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetProjectImportRunClientResponse) StatusCode() int { +func (r SummarizeProjectDeploymentsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -30987,29 +38712,25 @@ func (r GetProjectImportRunClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetProjectImportRunClientResponse) ContentType() string { +func (r SummarizeProjectDeploymentsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ListImportSourcesClientResponse struct { +type ListProjectCustomDomainsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ImportSourcesResponse + JSON200 *PaginatedProjectCustomDomains JSON400 *Error JSON401 *Error JSON403 *Error - JSON404 *Error - JSON409 *Error - JSON429 *Error JSON500 *Error - JSON503 *Error } // Status returns HTTPResponse.Status -func (r ListImportSourcesClientResponse) Status() string { +func (r ListProjectCustomDomainsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31017,7 +38738,7 @@ func (r ListImportSourcesClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListImportSourcesClientResponse) StatusCode() int { +func (r ListProjectCustomDomainsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -31025,25 +38746,23 @@ func (r ListImportSourcesClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListImportSourcesClientResponse) ContentType() string { +func (r ListProjectCustomDomainsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ForceReleaseProjectLockClientResponse struct { +type ListDurableFunctionsClientResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *PaginatedDurableFunctions JSON400 *Error - JSON401 *Error - JSON403 *Error - JSON429 *Error - JSON503 *Error + JSON404 *Error } // Status returns HTTPResponse.Status -func (r ForceReleaseProjectLockClientResponse) Status() string { +func (r ListDurableFunctionsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31051,7 +38770,7 @@ func (r ForceReleaseProjectLockClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ForceReleaseProjectLockClientResponse) StatusCode() int { +func (r ListDurableFunctionsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -31059,26 +38778,27 @@ func (r ForceReleaseProjectLockClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ForceReleaseProjectLockClientResponse) ContentType() string { +func (r ListDurableFunctionsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetProjectLockClientResponse struct { +type CreateDurableFunctionClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ProjectLockState + JSON200 *DurableFunction + JSON201 *DurableFunction JSON400 *Error - JSON401 *Error JSON403 *Error - JSON429 *Error + JSON409 *Error + JSON500 *Error JSON503 *Error } // Status returns HTTPResponse.Status -func (r GetProjectLockClientResponse) Status() string { +func (r CreateDurableFunctionClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31086,7 +38806,7 @@ func (r GetProjectLockClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetProjectLockClientResponse) StatusCode() int { +func (r CreateDurableFunctionClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -31094,26 +38814,21 @@ func (r GetProjectLockClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetProjectLockClientResponse) ContentType() string { +func (r CreateDurableFunctionClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ReleaseProjectLockClientResponse struct { +type DeleteDurableFunctionClientResponse struct { Body []byte HTTPResponse *http.Response - JSON400 *Error - JSON401 *Error - JSON403 *Error - JSON409 *Error - JSON429 *Error - JSON503 *Error + JSON404 *Error } // Status returns HTTPResponse.Status -func (r ReleaseProjectLockClientResponse) Status() string { +func (r DeleteDurableFunctionClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31121,7 +38836,7 @@ func (r ReleaseProjectLockClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ReleaseProjectLockClientResponse) StatusCode() int { +func (r DeleteDurableFunctionClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -31129,27 +38844,22 @@ func (r ReleaseProjectLockClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ReleaseProjectLockClientResponse) ContentType() string { +func (r DeleteDurableFunctionClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type RenewProjectLockClientResponse struct { +type GetDurableFunctionClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ProjectLockLease - JSON400 *Error - JSON401 *Error - JSON403 *Error - JSON409 *Error - JSON429 *Error - JSON503 *Error + JSON200 *DurableFunction + JSON404 *Error } // Status returns HTTPResponse.Status -func (r RenewProjectLockClientResponse) Status() string { +func (r GetDurableFunctionClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31157,7 +38867,7 @@ func (r RenewProjectLockClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r RenewProjectLockClientResponse) StatusCode() int { +func (r GetDurableFunctionClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -31165,27 +38875,22 @@ func (r RenewProjectLockClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RenewProjectLockClientResponse) ContentType() string { +func (r GetDurableFunctionClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type AcquireProjectLockClientResponse struct { +type ListDurableFunctionDeploymentsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *ProjectLockLease - JSON400 *Error - JSON401 *Error - JSON403 *Error - JSON409 *Error - JSON429 *Error - JSON503 *Error + JSON200 *PaginatedFunctionDeployments + JSON404 *Error } // Status returns HTTPResponse.Status -func (r AcquireProjectLockClientResponse) Status() string { +func (r ListDurableFunctionDeploymentsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31193,7 +38898,7 @@ func (r AcquireProjectLockClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AcquireProjectLockClientResponse) StatusCode() int { +func (r ListDurableFunctionDeploymentsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -31201,22 +38906,23 @@ func (r AcquireProjectLockClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AcquireProjectLockClientResponse) ContentType() string { +func (r ListDurableFunctionDeploymentsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ListProjectsClientResponse struct { +type ListDurableExecutionsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *PaginatedProjects + JSON200 *PaginatedDurableExecutions JSON400 *Error + JSON404 *Error } // Status returns HTTPResponse.Status -func (r ListProjectsClientResponse) Status() string { +func (r ListDurableExecutionsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31224,7 +38930,7 @@ func (r ListProjectsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListProjectsClientResponse) StatusCode() int { +func (r ListDurableExecutionsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -31232,23 +38938,27 @@ func (r ListProjectsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListProjectsClientResponse) ContentType() string { +func (r ListDurableExecutionsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type CreateProjectClientResponse struct { +type StartDurableExecutionClientResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *Project + JSON202 *DurableExecution JSON400 *Error - JSON403 *Error + JSON404 *Error + JSON409 *Error + JSON413 *Error + JSON429 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r CreateProjectClientResponse) Status() string { +func (r StartDurableExecutionClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31256,7 +38966,7 @@ func (r CreateProjectClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateProjectClientResponse) StatusCode() int { +func (r StartDurableExecutionClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -31264,21 +38974,23 @@ func (r CreateProjectClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateProjectClientResponse) ContentType() string { +func (r StartDurableExecutionClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type DeleteProjectClientResponse struct { +type GetDurableExecutionClientResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *DurableExecution JSON404 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r DeleteProjectClientResponse) Status() string { +func (r GetDurableExecutionClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31286,7 +38998,7 @@ func (r DeleteProjectClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteProjectClientResponse) StatusCode() int { +func (r GetDurableExecutionClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -31294,22 +39006,24 @@ func (r DeleteProjectClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteProjectClientResponse) ContentType() string { +func (r GetDurableExecutionClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetProjectClientResponse struct { +type StopDurableExecutionClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Project + JSON200 *DurableExecution JSON404 *Error + JSON409 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r GetProjectClientResponse) Status() string { +func (r StopDurableExecutionClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31317,7 +39031,7 @@ func (r GetProjectClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetProjectClientResponse) StatusCode() int { +func (r StopDurableExecutionClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -31325,25 +39039,22 @@ func (r GetProjectClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetProjectClientResponse) ContentType() string { +func (r StopDurableExecutionClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type UpdateProjectClientResponse struct { +type ListDurableFunctionSchedulersClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Project - JSON400 *Error - JSON403 *Error + JSON200 *FunctionSchedulerListResponse JSON404 *Error - JSON409 *Error } // Status returns HTTPResponse.Status -func (r UpdateProjectClientResponse) Status() string { +func (r ListDurableFunctionSchedulersClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31351,7 +39062,7 @@ func (r UpdateProjectClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateProjectClientResponse) StatusCode() int { +func (r ListDurableFunctionSchedulersClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -31359,24 +39070,24 @@ func (r UpdateProjectClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateProjectClientResponse) ContentType() string { +func (r ListDurableFunctionSchedulersClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ListProjectAccessTokensClientResponse struct { +type CreateDurableFunctionSchedulerClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *PaginatedProjectAccessTokens - JSON401 *Error + JSON201 *FunctionScheduler + JSON400 *Error JSON403 *Error JSON404 *Error } // Status returns HTTPResponse.Status -func (r ListProjectAccessTokensClientResponse) Status() string { +func (r CreateDurableFunctionSchedulerClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31384,7 +39095,7 @@ func (r ListProjectAccessTokensClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListProjectAccessTokensClientResponse) StatusCode() int { +func (r CreateDurableFunctionSchedulerClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -31392,26 +39103,21 @@ func (r ListProjectAccessTokensClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListProjectAccessTokensClientResponse) ContentType() string { +func (r CreateDurableFunctionSchedulerClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type CreateProjectAccessTokenClientResponse struct { +type DeleteDurableFunctionSchedulerClientResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *CreatedProjectAccessToken - JSON400 *Error - JSON401 *Error - JSON403 *Error JSON404 *Error - JSON409 *Error } // Status returns HTTPResponse.Status -func (r CreateProjectAccessTokenClientResponse) Status() string { +func (r DeleteDurableFunctionSchedulerClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31419,7 +39125,7 @@ func (r CreateProjectAccessTokenClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateProjectAccessTokenClientResponse) StatusCode() int { +func (r DeleteDurableFunctionSchedulerClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -31427,25 +39133,22 @@ func (r CreateProjectAccessTokenClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateProjectAccessTokenClientResponse) ContentType() string { +func (r DeleteDurableFunctionSchedulerClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ListProjectAccessTokensUsageClientResponse struct { +type GetDurableFunctionSchedulerClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]ProjectAccessTokenUsage - JSON400 *Error - JSON401 *Error - JSON403 *Error + JSON200 *FunctionScheduler JSON404 *Error } // Status returns HTTPResponse.Status -func (r ListProjectAccessTokensUsageClientResponse) Status() string { +func (r GetDurableFunctionSchedulerClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31453,7 +39156,7 @@ func (r ListProjectAccessTokensUsageClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListProjectAccessTokensUsageClientResponse) StatusCode() int { +func (r GetDurableFunctionSchedulerClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -31461,24 +39164,23 @@ func (r ListProjectAccessTokensUsageClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListProjectAccessTokensUsageClientResponse) ContentType() string { +func (r GetDurableFunctionSchedulerClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type RevokeProjectAccessTokenClientResponse struct { +type UpdateDurableFunctionSchedulerClientResponse struct { Body []byte HTTPResponse *http.Response - JSON401 *Error - JSON403 *Error + JSON200 *FunctionScheduler + JSON400 *Error JSON404 *Error - JSON409 *Error } // Status returns HTTPResponse.Status -func (r RevokeProjectAccessTokenClientResponse) Status() string { +func (r UpdateDurableFunctionSchedulerClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31486,7 +39188,7 @@ func (r RevokeProjectAccessTokenClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r RevokeProjectAccessTokenClientResponse) StatusCode() int { +func (r UpdateDurableFunctionSchedulerClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -31494,24 +39196,23 @@ func (r RevokeProjectAccessTokenClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RevokeProjectAccessTokenClientResponse) ContentType() string { +func (r UpdateDurableFunctionSchedulerClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetProjectAccessTokenClientResponse struct { +type ListEmailTemplatesClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ProjectAccessToken - JSON401 *Error - JSON403 *Error - JSON404 *Error + JSON200 *struct { + Data *[]EmailTemplate `json:"data,omitempty"` + } } // Status returns HTTPResponse.Status -func (r GetProjectAccessTokenClientResponse) Status() string { +func (r ListEmailTemplatesClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31519,7 +39220,7 @@ func (r GetProjectAccessTokenClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetProjectAccessTokenClientResponse) StatusCode() int { +func (r ListEmailTemplatesClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -31527,25 +39228,24 @@ func (r GetProjectAccessTokenClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetProjectAccessTokenClientResponse) ContentType() string { +func (r ListEmailTemplatesClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetProjectAccessTokenUsageClientResponse struct { +type CreateEmailTemplateClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ProjectAccessTokenUsage + JSON201 *EmailTemplate JSON400 *Error - JSON401 *Error JSON403 *Error - JSON404 *Error + JSON409 *Error } // Status returns HTTPResponse.Status -func (r GetProjectAccessTokenUsageClientResponse) Status() string { +func (r CreateEmailTemplateClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31553,43 +39253,29 @@ func (r GetProjectAccessTokenUsageClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetProjectAccessTokenUsageClientResponse) StatusCode() int { +func (r CreateEmailTemplateClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetProjectAccessTokenUsageClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ListAnonKeysClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Data *[]AnonKey `json:"data,omitempty"` - - // HasMore Whether a next page exists. - HasMore *bool `json:"has_more,omitempty"` - - // NextCursor Opaque cursor for the next page (cursor pagination only) - NextCursor *string `json:"next_cursor,omitempty"` - - // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`. - PrevCursor *string `json:"prev_cursor,omitempty"` - - // Total Total number of items matching the query (so the UI can render numbered pages). - Total *int `json:"total,omitempty"` +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateEmailTemplateClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } + return "" +} + +type DeleteEmailTemplateClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON403 *Error } // Status returns HTTPResponse.Status -func (r ListAnonKeysClientResponse) Status() string { +func (r DeleteEmailTemplateClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31597,7 +39283,7 @@ func (r ListAnonKeysClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListAnonKeysClientResponse) StatusCode() int { +func (r DeleteEmailTemplateClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -31605,21 +39291,21 @@ func (r ListAnonKeysClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListAnonKeysClientResponse) ContentType() string { +func (r DeleteEmailTemplateClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type CreateAnonKeyClientResponse struct { +type GetEmailTemplateClientResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *AnonKey + JSON200 *EmailTemplate } // Status returns HTTPResponse.Status -func (r CreateAnonKeyClientResponse) Status() string { +func (r GetEmailTemplateClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31627,7 +39313,7 @@ func (r CreateAnonKeyClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateAnonKeyClientResponse) StatusCode() int { +func (r GetEmailTemplateClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -31635,22 +39321,22 @@ func (r CreateAnonKeyClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateAnonKeyClientResponse) ContentType() string { +func (r GetEmailTemplateClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type RevokeAnonKeyClientResponse struct { +type UpdateEmailTemplateClientResponse struct { Body []byte HTTPResponse *http.Response - JSON409 *Error - JSON500 *Error + JSON200 *EmailTemplate + JSON403 *Error } // Status returns HTTPResponse.Status -func (r RevokeAnonKeyClientResponse) Status() string { +func (r UpdateEmailTemplateClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31658,7 +39344,7 @@ func (r RevokeAnonKeyClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r RevokeAnonKeyClientResponse) StatusCode() int { +func (r UpdateEmailTemplateClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -31666,21 +39352,23 @@ func (r RevokeAnonKeyClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RevokeAnonKeyClientResponse) ContentType() string { +func (r UpdateEmailTemplateClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetAnonKeyClientResponse struct { +type ReplaceFrontendSharedVariablesClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *AnonKey + JSON400 *Error + JSON409 *Error + JSON413 *Error } // Status returns HTTPResponse.Status -func (r GetAnonKeyClientResponse) Status() string { +func (r ReplaceFrontendSharedVariablesClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31688,7 +39376,7 @@ func (r GetAnonKeyClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetAnonKeyClientResponse) StatusCode() int { +func (r ReplaceFrontendSharedVariablesClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -31696,21 +39384,26 @@ func (r GetAnonKeyClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetAnonKeyClientResponse) ContentType() string { +func (r ReplaceFrontendSharedVariablesClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type RegenerateAnonKeyClientResponse struct { +type ListFrontendsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *AnonKey + JSON200 *PaginatedFrontends + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON500 *Error } // Status returns HTTPResponse.Status -func (r RegenerateAnonKeyClientResponse) Status() string { +func (r ListFrontendsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31718,7 +39411,7 @@ func (r RegenerateAnonKeyClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r RegenerateAnonKeyClientResponse) StatusCode() int { +func (r ListFrontendsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -31726,22 +39419,29 @@ func (r RegenerateAnonKeyClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RegenerateAnonKeyClientResponse) ContentType() string { +func (r ListFrontendsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type SetDefaultAnonKeyClientResponse struct { +type CreateFrontendClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *AnonKey + JSON200 *Frontend + JSON201 *Frontend + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON409 *Error JSON500 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r SetDefaultAnonKeyClientResponse) Status() string { +func (r CreateFrontendClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31749,7 +39449,7 @@ func (r SetDefaultAnonKeyClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r SetDefaultAnonKeyClientResponse) StatusCode() int { +func (r CreateFrontendClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -31757,21 +39457,26 @@ func (r SetDefaultAnonKeyClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SetDefaultAnonKeyClientResponse) ContentType() string { +func (r CreateFrontendClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetAuthConfigClientResponse struct { +type DeleteFrontendClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *AuthConfig + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON500 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r GetAuthConfigClientResponse) Status() string { +func (r DeleteFrontendClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31779,7 +39484,7 @@ func (r GetAuthConfigClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetAuthConfigClientResponse) StatusCode() int { +func (r DeleteFrontendClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -31787,22 +39492,26 @@ func (r GetAuthConfigClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetAuthConfigClientResponse) ContentType() string { +func (r DeleteFrontendClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type UpdateAuthConfigClientResponse struct { +type GetFrontendClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *AuthConfig + JSON200 *Frontend + JSON400 *Error + JSON401 *Error JSON403 *Error + JSON404 *Error + JSON500 *Error } // Status returns HTTPResponse.Status -func (r UpdateAuthConfigClientResponse) Status() string { +func (r GetFrontendClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31810,7 +39519,7 @@ func (r UpdateAuthConfigClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateAuthConfigClientResponse) StatusCode() int { +func (r GetFrontendClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -31818,21 +39527,26 @@ func (r UpdateAuthConfigClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateAuthConfigClientResponse) ContentType() string { +func (r GetFrontendClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type TestEmailConfigClientResponse struct { +type ListFrontendDeploymentsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *TestEmailResponse + JSON200 *PaginatedFrontendDeployments + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON500 *Error } // Status returns HTTPResponse.Status -func (r TestEmailConfigClientResponse) Status() string { +func (r ListFrontendDeploymentsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31840,7 +39554,7 @@ func (r TestEmailConfigClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r TestEmailConfigClientResponse) StatusCode() int { +func (r ListFrontendDeploymentsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -31848,20 +39562,25 @@ func (r TestEmailConfigClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r TestEmailConfigClientResponse) ContentType() string { +func (r ListFrontendDeploymentsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type RenderDefaultManagedAuthPageClientResponse struct { +type DeleteFrontendCustomDomainClientResponse struct { Body []byte HTTPResponse *http.Response + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON500 *Error } // Status returns HTTPResponse.Status -func (r RenderDefaultManagedAuthPageClientResponse) Status() string { +func (r DeleteFrontendCustomDomainClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31869,7 +39588,7 @@ func (r RenderDefaultManagedAuthPageClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r RenderDefaultManagedAuthPageClientResponse) StatusCode() int { +func (r DeleteFrontendCustomDomainClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -31877,21 +39596,26 @@ func (r RenderDefaultManagedAuthPageClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RenderDefaultManagedAuthPageClientResponse) ContentType() string { +func (r DeleteFrontendCustomDomainClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetAuthHostedPageClientResponse struct { +type GetFrontendCustomDomainClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *AuthHostedPageResponse + JSON200 *FrontendCustomDomainResponse + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON500 *Error } // Status returns HTTPResponse.Status -func (r GetAuthHostedPageClientResponse) Status() string { +func (r GetFrontendCustomDomainClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31899,7 +39623,7 @@ func (r GetAuthHostedPageClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetAuthHostedPageClientResponse) StatusCode() int { +func (r GetFrontendCustomDomainClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -31907,21 +39631,29 @@ func (r GetAuthHostedPageClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetAuthHostedPageClientResponse) ContentType() string { +func (r GetFrontendCustomDomainClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type UpdateAuthHostedPageClientResponse struct { +type CreateFrontendCustomDomainClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *AuthHostedPageResponse + JSON200 *FrontendCustomDomainResponse + JSON201 *FrontendCustomDomainResponse + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON409 *Error + JSON500 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r UpdateAuthHostedPageClientResponse) Status() string { +func (r CreateFrontendCustomDomainClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31929,7 +39661,7 @@ func (r UpdateAuthHostedPageClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateAuthHostedPageClientResponse) StatusCode() int { +func (r CreateFrontendCustomDomainClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -31937,21 +39669,24 @@ func (r UpdateAuthHostedPageClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateAuthHostedPageClientResponse) ContentType() string { +func (r CreateFrontendCustomDomainClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type HostedLoginCheckEmailClientResponse struct { +type ListFrontendFunctionRoutesClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *HostedLoginEmailCheckResponse + JSON200 *FrontendFunctionRouteList + JSON401 *Error + JSON403 *Error + JSON500 *Error } // Status returns HTTPResponse.Status -func (r HostedLoginCheckEmailClientResponse) Status() string { +func (r ListFrontendFunctionRoutesClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31959,7 +39694,7 @@ func (r HostedLoginCheckEmailClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r HostedLoginCheckEmailClientResponse) StatusCode() int { +func (r ListFrontendFunctionRoutesClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -31967,21 +39702,27 @@ func (r HostedLoginCheckEmailClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r HostedLoginCheckEmailClientResponse) ContentType() string { +func (r ListFrontendFunctionRoutesClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetHostedLoginOptionsClientResponse struct { +type CreateFrontendFunctionRouteClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *HostedLoginOptionsResponse + JSON201 *FrontendFunctionRoute + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON409 *Error + JSON500 *Error } // Status returns HTTPResponse.Status -func (r GetHostedLoginOptionsClientResponse) Status() string { +func (r CreateFrontendFunctionRouteClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -31989,7 +39730,7 @@ func (r GetHostedLoginOptionsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetHostedLoginOptionsClientResponse) StatusCode() int { +func (r CreateFrontendFunctionRouteClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -31997,20 +39738,24 @@ func (r GetHostedLoginOptionsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetHostedLoginOptionsClientResponse) ContentType() string { +func (r CreateFrontendFunctionRouteClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type RenderManagedAuthPageClientResponse struct { +type DeleteFrontendFunctionRouteClientResponse struct { Body []byte HTTPResponse *http.Response + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON500 *Error } // Status returns HTTPResponse.Status -func (r RenderManagedAuthPageClientResponse) Status() string { +func (r DeleteFrontendFunctionRouteClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -32018,7 +39763,7 @@ func (r RenderManagedAuthPageClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r RenderManagedAuthPageClientResponse) StatusCode() int { +func (r DeleteFrontendFunctionRouteClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -32026,26 +39771,27 @@ func (r RenderManagedAuthPageClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RenderManagedAuthPageClientResponse) ContentType() string { +func (r DeleteFrontendFunctionRouteClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetAuthInsightsClientResponse struct { +type UpdateFrontendFunctionRouteClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *AuthInsightsResponse + JSON200 *FrontendFunctionRoute JSON400 *Error JSON401 *Error JSON403 *Error JSON404 *Error + JSON409 *Error JSON500 *Error } // Status returns HTTPResponse.Status -func (r GetAuthInsightsClientResponse) Status() string { +func (r UpdateFrontendFunctionRouteClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -32053,7 +39799,7 @@ func (r GetAuthInsightsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetAuthInsightsClientResponse) StatusCode() int { +func (r UpdateFrontendFunctionRouteClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -32061,41 +39807,28 @@ func (r GetAuthInsightsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetAuthInsightsClientResponse) ContentType() string { +func (r UpdateFrontendFunctionRouteClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetAuthMethodsClientResponse struct { +type RedeployFrontendClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - Anonymous *struct { - Enabled *bool `json:"enabled,omitempty"` - Method *string `json:"method,omitempty"` - Name *string `json:"name,omitempty"` - } `json:"anonymous,omitempty"` - AvailableMethods *[]string `json:"available_methods,omitempty"` - EmailPassword *struct { - Enabled *bool `json:"enabled,omitempty"` - Method *string `json:"method,omitempty"` - Name *string `json:"name,omitempty"` - } `json:"email_password,omitempty"` - OauthProviders *[]struct { - Enabled *bool `json:"enabled,omitempty"` - Method *string `json:"method,omitempty"` - Name *string `json:"name,omitempty"` - Provider *string `json:"provider,omitempty"` - RedirectUrl *string `json:"redirect_url,omitempty"` - Scopes *[]string `json:"scopes,omitempty"` - } `json:"oauth_providers,omitempty"` - } + JSON200 *Frontend + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON409 *Error + JSON500 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r GetAuthMethodsClientResponse) Status() string { +func (r RedeployFrontendClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -32103,7 +39836,7 @@ func (r GetAuthMethodsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetAuthMethodsClientResponse) StatusCode() int { +func (r RedeployFrontendClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -32111,20 +39844,26 @@ func (r GetAuthMethodsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetAuthMethodsClientResponse) ContentType() string { +func (r RedeployFrontendClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ConfigureAuthMethodsClientResponse struct { +type GetFrontendUsageHistoryClientResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *FrontendUsageHistoryResponse + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON500 *Error } // Status returns HTTPResponse.Status -func (r ConfigureAuthMethodsClientResponse) Status() string { +func (r GetFrontendUsageHistoryClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -32132,7 +39871,7 @@ func (r ConfigureAuthMethodsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ConfigureAuthMethodsClientResponse) StatusCode() int { +func (r GetFrontendUsageHistoryClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -32140,22 +39879,22 @@ func (r ConfigureAuthMethodsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ConfigureAuthMethodsClientResponse) ContentType() string { +func (r GetFrontendUsageHistoryClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ListAuthUsersClientResponse struct { +type ListFunctionsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *PaginatedAuthUsers - JSON400 *Error + JSON200 *PaginatedFunctions + JSON404 *Error } // Status returns HTTPResponse.Status -func (r ListAuthUsersClientResponse) Status() string { +func (r ListFunctionsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -32163,7 +39902,7 @@ func (r ListAuthUsersClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListAuthUsersClientResponse) StatusCode() int { +func (r ListFunctionsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -32171,20 +39910,28 @@ func (r ListAuthUsersClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListAuthUsersClientResponse) ContentType() string { +func (r ListFunctionsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type DeleteAuthUserClientResponse struct { +type CreateFunctionClientResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *Function + JSON201 *Function + JSON400 *Error + JSON403 *Error + JSON409 *Error + JSON429 *Error + JSON500 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r DeleteAuthUserClientResponse) Status() string { +func (r CreateFunctionClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -32192,7 +39939,7 @@ func (r DeleteAuthUserClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteAuthUserClientResponse) StatusCode() int { +func (r CreateFunctionClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -32200,21 +39947,27 @@ func (r DeleteAuthUserClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteAuthUserClientResponse) ContentType() string { +func (r CreateFunctionClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetAuthUserClientResponse struct { +type CreateFunctionsBatchClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *AuthUser + JSON202 *BatchFunctionDeployResponse + JSON207 *BatchFunctionDeployResponse + JSON400 *Error + JSON403 *Error + JSON409 *Error + JSON429 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r GetAuthUserClientResponse) Status() string { +func (r CreateFunctionsBatchClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -32222,7 +39975,7 @@ func (r GetAuthUserClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetAuthUserClientResponse) StatusCode() int { +func (r CreateFunctionsBatchClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -32230,22 +39983,21 @@ func (r GetAuthUserClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetAuthUserClientResponse) ContentType() string { +func (r CreateFunctionsBatchClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type BanAuthUserClientResponse struct { +type DeleteFunctionClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *BanUserResponse JSON404 *Error } // Status returns HTTPResponse.Status -func (r BanAuthUserClientResponse) Status() string { +func (r DeleteFunctionClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -32253,7 +40005,7 @@ func (r BanAuthUserClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r BanAuthUserClientResponse) StatusCode() int { +func (r DeleteFunctionClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -32261,20 +40013,22 @@ func (r BanAuthUserClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r BanAuthUserClientResponse) ContentType() string { +func (r DeleteFunctionClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type DeleteAllUserSessionsClientResponse struct { +type GetFunctionClientResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *Function + JSON404 *Error } // Status returns HTTPResponse.Status -func (r DeleteAllUserSessionsClientResponse) Status() string { +func (r GetFunctionClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -32282,7 +40036,7 @@ func (r DeleteAllUserSessionsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteAllUserSessionsClientResponse) StatusCode() int { +func (r GetFunctionClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -32290,47 +40044,24 @@ func (r DeleteAllUserSessionsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteAllUserSessionsClientResponse) ContentType() string { +func (r GetFunctionClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ListUserSessionsClientResponse struct { +type UpdateFunctionClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - // Data Sessions for this page (cursor pagination only) - Data *[]AuthSession `json:"data,omitempty"` - - // HasMore Whether a further page exists (cursor pagination only) - HasMore *bool `json:"has_more,omitempty"` - - // Limit Number of sessions per page - Limit *int `json:"limit,omitempty"` - - // NextCursor Opaque cursor for the next page (cursor pagination only) - NextCursor *string `json:"next_cursor,omitempty"` - - // Page Current page number - Page *int `json:"page,omitempty"` - - // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`. - PrevCursor *string `json:"prev_cursor,omitempty"` - Sessions *[]AuthSession `json:"sessions,omitempty"` - - // Total Total number of sessions - Total *int `json:"total,omitempty"` - - // TotalPages Total number of pages - TotalPages *int `json:"total_pages,omitempty"` - } - JSON400 *Error + JSON200 *Function + JSON400 *Error + JSON404 *Error + JSON409 *Error } // Status returns HTTPResponse.Status -func (r ListUserSessionsClientResponse) Status() string { +func (r UpdateFunctionClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -32338,7 +40069,7 @@ func (r ListUserSessionsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListUserSessionsClientResponse) StatusCode() int { +func (r UpdateFunctionClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -32346,20 +40077,22 @@ func (r ListUserSessionsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListUserSessionsClientResponse) ContentType() string { +func (r UpdateFunctionClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type DeleteUserSessionClientResponse struct { +type ListFunctionDeploymentsClientResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *PaginatedFunctionDeployments + JSON404 *Error } // Status returns HTTPResponse.Status -func (r DeleteUserSessionClientResponse) Status() string { +func (r ListFunctionDeploymentsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -32367,7 +40100,7 @@ func (r DeleteUserSessionClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteUserSessionClientResponse) StatusCode() int { +func (r ListFunctionDeploymentsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -32375,22 +40108,22 @@ func (r DeleteUserSessionClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteUserSessionClientResponse) ContentType() string { +func (r ListFunctionDeploymentsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type UnbanAuthUserClientResponse struct { +type ListFunctionSchedulersClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *UnbanUserResponse + JSON200 *FunctionSchedulerListResponse JSON404 *Error } // Status returns HTTPResponse.Status -func (r UnbanAuthUserClientResponse) Status() string { +func (r ListFunctionSchedulersClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -32398,7 +40131,7 @@ func (r UnbanAuthUserClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UnbanAuthUserClientResponse) StatusCode() int { +func (r ListFunctionSchedulersClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -32406,25 +40139,24 @@ func (r UnbanAuthUserClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UnbanAuthUserClientResponse) ContentType() string { +func (r ListFunctionSchedulersClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetProjectConfigClientResponse struct { +type CreateFunctionSchedulerClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ProjectConfig - YAML200 *openapi_types.File - JSON401 *Error + JSON201 *FunctionScheduler + JSON400 *Error + JSON403 *Error JSON404 *Error - JSON413 *Error } // Status returns HTTPResponse.Status -func (r GetProjectConfigClientResponse) Status() string { +func (r CreateFunctionSchedulerClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -32432,7 +40164,7 @@ func (r GetProjectConfigClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetProjectConfigClientResponse) StatusCode() int { +func (r CreateFunctionSchedulerClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -32440,26 +40172,21 @@ func (r GetProjectConfigClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetProjectConfigClientResponse) ContentType() string { +func (r CreateFunctionSchedulerClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ApplyProjectConfigClientResponse struct { +type DeleteFunctionSchedulerClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ProjectConfigApplyResult - JSON400 *Error - JSON401 *Error JSON404 *Error - JSON409 *Error - JSON422 *ProjectConfigValidationErrorResponse } // Status returns HTTPResponse.Status -func (r ApplyProjectConfigClientResponse) Status() string { +func (r DeleteFunctionSchedulerClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -32467,7 +40194,7 @@ func (r ApplyProjectConfigClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ApplyProjectConfigClientResponse) StatusCode() int { +func (r DeleteFunctionSchedulerClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -32475,21 +40202,22 @@ func (r ApplyProjectConfigClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ApplyProjectConfigClientResponse) ContentType() string { +func (r DeleteFunctionSchedulerClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ListDatabasesClientResponse struct { +type GetFunctionSchedulerClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *PaginatedDatabases + JSON200 *FunctionScheduler + JSON404 *Error } // Status returns HTTPResponse.Status -func (r ListDatabasesClientResponse) Status() string { +func (r GetFunctionSchedulerClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -32497,7 +40225,7 @@ func (r ListDatabasesClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListDatabasesClientResponse) StatusCode() int { +func (r GetFunctionSchedulerClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -32505,22 +40233,23 @@ func (r ListDatabasesClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListDatabasesClientResponse) ContentType() string { +func (r GetFunctionSchedulerClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type CreateDatabaseClientResponse struct { +type UpdateFunctionSchedulerClientResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *Database - JSON403 *Error + JSON200 *FunctionScheduler + JSON400 *Error + JSON404 *Error } // Status returns HTTPResponse.Status -func (r CreateDatabaseClientResponse) Status() string { +func (r UpdateFunctionSchedulerClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -32528,7 +40257,7 @@ func (r CreateDatabaseClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateDatabaseClientResponse) StatusCode() int { +func (r UpdateFunctionSchedulerClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -32536,26 +40265,25 @@ func (r CreateDatabaseClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateDatabaseClientResponse) ContentType() string { +func (r UpdateFunctionSchedulerClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type DeleteDatabaseClientResponse struct { +type DisconnectProjectGitClientResponse struct { Body []byte HTTPResponse *http.Response - JSON202 *struct { - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` - } - JSON404 *Error - JSON409 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON409 *Error + JSON500 *Error } // Status returns HTTPResponse.Status -func (r DeleteDatabaseClientResponse) Status() string { +func (r DisconnectProjectGitClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -32563,7 +40291,7 @@ func (r DeleteDatabaseClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteDatabaseClientResponse) StatusCode() int { +func (r DisconnectProjectGitClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -32571,21 +40299,25 @@ func (r DeleteDatabaseClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteDatabaseClientResponse) ContentType() string { +func (r DisconnectProjectGitClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetDatabaseClientResponse struct { +type GetProjectGitConnectionClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Database + JSON200 *ProjectGitConnection + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON500 *Error } // Status returns HTTPResponse.Status -func (r GetDatabaseClientResponse) Status() string { +func (r GetProjectGitConnectionClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -32593,7 +40325,7 @@ func (r GetDatabaseClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetDatabaseClientResponse) StatusCode() int { +func (r GetProjectGitConnectionClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -32601,25 +40333,28 @@ func (r GetDatabaseClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetDatabaseClientResponse) ContentType() string { +func (r GetProjectGitConnectionClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetDatabaseBackupScheduleClientResponse struct { +type ConnectProjectGitClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DatabaseBackupSchedule + JSON200 *ProjectGitConnection + JSON400 *Error + JSON401 *Error JSON403 *Error JSON404 *Error JSON409 *Error + JSON500 *Error JSON503 *Error } // Status returns HTTPResponse.Status -func (r GetDatabaseBackupScheduleClientResponse) Status() string { +func (r ConnectProjectGitClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -32627,7 +40362,7 @@ func (r GetDatabaseBackupScheduleClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetDatabaseBackupScheduleClientResponse) StatusCode() int { +func (r ConnectProjectGitClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -32635,26 +40370,27 @@ func (r GetDatabaseBackupScheduleClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetDatabaseBackupScheduleClientResponse) ContentType() string { +func (r ConnectProjectGitClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type UpdateDatabaseBackupScheduleClientResponse struct { +type SetProjectGitProductionBranchClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DatabaseBackupSchedule + JSON200 *ProjectGitConnection JSON400 *Error + JSON401 *Error JSON403 *Error JSON404 *Error JSON409 *Error - JSON503 *Error + JSON500 *Error } // Status returns HTTPResponse.Status -func (r UpdateDatabaseBackupScheduleClientResponse) Status() string { +func (r SetProjectGitProductionBranchClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -32662,7 +40398,7 @@ func (r UpdateDatabaseBackupScheduleClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateDatabaseBackupScheduleClientResponse) StatusCode() int { +func (r SetProjectGitProductionBranchClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -32670,25 +40406,25 @@ func (r UpdateDatabaseBackupScheduleClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateDatabaseBackupScheduleClientResponse) ContentType() string { +func (r SetProjectGitProductionBranchClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ListDatabaseBackupsClientResponse struct { +type GetProjectGitDeploySettingsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DatabaseBackupList + JSON200 *ProjectGitDeploySettings + JSON401 *Error JSON403 *Error JSON404 *Error - JSON409 *Error - JSON503 *Error + JSON500 *Error } // Status returns HTTPResponse.Status -func (r ListDatabaseBackupsClientResponse) Status() string { +func (r GetProjectGitDeploySettingsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -32696,7 +40432,7 @@ func (r ListDatabaseBackupsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListDatabaseBackupsClientResponse) StatusCode() int { +func (r GetProjectGitDeploySettingsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -32704,26 +40440,27 @@ func (r ListDatabaseBackupsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListDatabaseBackupsClientResponse) ContentType() string { +func (r GetProjectGitDeploySettingsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type CreateDatabaseBackupClientResponse struct { +type UpdateProjectGitDeploySettingsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *DatabaseBackup + JSON200 *ProjectGitDeploySettings JSON400 *Error + JSON401 *Error JSON403 *Error JSON404 *Error JSON409 *Error - JSON503 *Error + JSON500 *Error } // Status returns HTTPResponse.Status -func (r CreateDatabaseBackupClientResponse) Status() string { +func (r UpdateProjectGitDeploySettingsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -32731,7 +40468,7 @@ func (r CreateDatabaseBackupClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateDatabaseBackupClientResponse) StatusCode() int { +func (r UpdateProjectGitDeploySettingsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -32739,28 +40476,25 @@ func (r CreateDatabaseBackupClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateDatabaseBackupClientResponse) ContentType() string { +func (r UpdateProjectGitDeploySettingsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type DeleteDatabaseBackupClientResponse struct { +type GetProjectHealthClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - Message string `json:"message"` - Status string `json:"status"` - } - JSON403 *Error - JSON404 *Error - JSON409 *Error - JSON503 *Error + JSON200 *ProjectHealthResponse + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON500 *Error } // Status returns HTTPResponse.Status -func (r DeleteDatabaseBackupClientResponse) Status() string { +func (r GetProjectHealthClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -32768,7 +40502,7 @@ func (r DeleteDatabaseBackupClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteDatabaseBackupClientResponse) StatusCode() int { +func (r GetProjectHealthClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -32776,17 +40510,17 @@ func (r DeleteDatabaseBackupClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteDatabaseBackupClientResponse) ContentType() string { +func (r GetProjectHealthClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetDatabaseBackupClientResponse struct { +type DeleteProjectLogoClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DatabaseBackup + JSON200 *Project JSON403 *Error JSON404 *Error JSON409 *Error @@ -32794,7 +40528,7 @@ type GetDatabaseBackupClientResponse struct { } // Status returns HTTPResponse.Status -func (r GetDatabaseBackupClientResponse) Status() string { +func (r DeleteProjectLogoClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -32802,7 +40536,7 @@ func (r GetDatabaseBackupClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetDatabaseBackupClientResponse) StatusCode() int { +func (r DeleteProjectLogoClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -32810,23 +40544,21 @@ func (r GetDatabaseBackupClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetDatabaseBackupClientResponse) ContentType() string { +func (r DeleteProjectLogoClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ListDatabaseBranchesClientResponse struct { +type GetProjectLogoClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DatabaseBranchList JSON404 *Error - JSON503 *Error } // Status returns HTTPResponse.Status -func (r ListDatabaseBranchesClientResponse) Status() string { +func (r GetProjectLogoClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -32834,7 +40566,7 @@ func (r ListDatabaseBranchesClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListDatabaseBranchesClientResponse) StatusCode() int { +func (r GetProjectLogoClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -32842,17 +40574,17 @@ func (r ListDatabaseBranchesClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListDatabaseBranchesClientResponse) ContentType() string { +func (r GetProjectLogoClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type CreateDatabaseBranchClientResponse struct { +type UploadProjectLogoClientResponse struct { Body []byte HTTPResponse *http.Response - JSON202 *DatabaseBranch + JSON200 *Project JSON400 *Error JSON403 *Error JSON404 *Error @@ -32861,7 +40593,7 @@ type CreateDatabaseBranchClientResponse struct { } // Status returns HTTPResponse.Status -func (r CreateDatabaseBranchClientResponse) Status() string { +func (r UploadProjectLogoClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -32869,7 +40601,7 @@ func (r CreateDatabaseBranchClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateDatabaseBranchClientResponse) StatusCode() int { +func (r UploadProjectLogoClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -32877,26 +40609,25 @@ func (r CreateDatabaseBranchClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateDatabaseBranchClientResponse) ContentType() string { +func (r UploadProjectLogoClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type DeleteDatabaseBranchClientResponse struct { +type GetProjectLogActivityClientResponse struct { Body []byte HTTPResponse *http.Response - JSON202 *struct { - Message string `json:"message"` - Status string `json:"status"` - } - JSON404 *Error - JSON503 *Error + JSON200 *LogActivityResponse + JSON400 *Error + JSON401 *Error + JSON403 *Error + JSON404 *Error } // Status returns HTTPResponse.Status -func (r DeleteDatabaseBranchClientResponse) Status() string { +func (r GetProjectLogActivityClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -32904,7 +40635,7 @@ func (r DeleteDatabaseBranchClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteDatabaseBranchClientResponse) StatusCode() int { +func (r GetProjectLogActivityClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -32912,23 +40643,25 @@ func (r DeleteDatabaseBranchClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteDatabaseBranchClientResponse) ContentType() string { +func (r GetProjectLogActivityClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetDatabaseBranchClientResponse struct { +type SearchProjectLogsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DatabaseBranch + JSON200 *LogSearchResponse + JSON400 *Error + JSON401 *Error + JSON403 *Error JSON404 *Error - JSON503 *Error } // Status returns HTTPResponse.Status -func (r GetDatabaseBranchClientResponse) Status() string { +func (r SearchProjectLogsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -32936,7 +40669,7 @@ func (r GetDatabaseBranchClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetDatabaseBranchClientResponse) StatusCode() int { +func (r SearchProjectLogsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -32944,25 +40677,25 @@ func (r GetDatabaseBranchClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetDatabaseBranchClientResponse) ContentType() string { +func (r SearchProjectLogsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type UpdateDatabaseBranchClientResponse struct { +type StreamProjectLogsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DatabaseBranch JSON400 *Error + JSON401 *Error + JSON403 *Error JSON404 *Error - JSON409 *Error - JSON503 *Error + JSON500 *Error } // Status returns HTTPResponse.Status -func (r UpdateDatabaseBranchClientResponse) Status() string { +func (r StreamProjectLogsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -32970,7 +40703,7 @@ func (r UpdateDatabaseBranchClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateDatabaseBranchClientResponse) StatusCode() int { +func (r StreamProjectLogsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -32978,24 +40711,27 @@ func (r UpdateDatabaseBranchClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateDatabaseBranchClientResponse) ContentType() string { +func (r StreamProjectLogsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ResetDatabaseBranchClientResponse struct { +type QueryProjectMetricsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON202 *DatabaseBranch + JSON200 *ProjectMetricsQueryResponse + JSON400 *Error + JSON401 *Error + JSON403 *Error JSON404 *Error - JSON409 *Error + JSON500 *Error JSON503 *Error } // Status returns HTTPResponse.Status -func (r ResetDatabaseBranchClientResponse) Status() string { +func (r QueryProjectMetricsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33003,7 +40739,7 @@ func (r ResetDatabaseBranchClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ResetDatabaseBranchClientResponse) StatusCode() int { +func (r QueryProjectMetricsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33011,24 +40747,23 @@ func (r ResetDatabaseBranchClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ResetDatabaseBranchClientResponse) ContentType() string { +func (r QueryProjectMetricsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ResetDatabaseBranchPasswordClientResponse struct { +type ListOAuthConfigsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DatabaseBranch - JSON404 *Error - JSON409 *Error - JSON503 *Error + JSON200 *struct { + Configs *[]OAuthConfig `json:"configs,omitempty"` + } } // Status returns HTTPResponse.Status -func (r ResetDatabaseBranchPasswordClientResponse) Status() string { +func (r ListOAuthConfigsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33036,7 +40771,7 @@ func (r ResetDatabaseBranchPasswordClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ResetDatabaseBranchPasswordClientResponse) StatusCode() int { +func (r ListOAuthConfigsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33044,26 +40779,21 @@ func (r ResetDatabaseBranchPasswordClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ResetDatabaseBranchPasswordClientResponse) ContentType() string { +func (r ListOAuthConfigsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetProjectDatabaseQueriesClientResponse struct { +type CreateOAuthConfigClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DatabaseQueryPerformanceResponse - JSON400 *Error - JSON401 *Error - JSON403 *Error - JSON404 *Error - JSON500 *Error + JSON201 *OAuthConfig } // Status returns HTTPResponse.Status -func (r GetProjectDatabaseQueriesClientResponse) Status() string { +func (r CreateOAuthConfigClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33071,7 +40801,7 @@ func (r GetProjectDatabaseQueriesClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetProjectDatabaseQueriesClientResponse) StatusCode() int { +func (r CreateOAuthConfigClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33079,34 +40809,20 @@ func (r GetProjectDatabaseQueriesClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetProjectDatabaseQueriesClientResponse) ContentType() string { +func (r CreateOAuthConfigClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ResetDatabasePasswordClientResponse struct { +type DeleteOAuthConfigClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - // ConnectionString Updated pgproxy connection string using Volcano-managed credentials. - ConnectionString *string `json:"connection_string,omitempty"` - Message *string `json:"message,omitempty"` - - // NewPassword New Volcano-managed client password. Always starts with `vpg_`. - NewPassword *string `json:"new_password,omitempty"` - - // RoleName Volcano-managed per-database client login (also the pgproxy routing username) - RoleName *string `json:"role_name,omitempty"` - } - JSON400 *Error - JSON404 *Error - JSON409 *Error } // Status returns HTTPResponse.Status -func (r ResetDatabasePasswordClientResponse) Status() string { +func (r DeleteOAuthConfigClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33114,7 +40830,7 @@ func (r ResetDatabasePasswordClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ResetDatabasePasswordClientResponse) StatusCode() int { +func (r DeleteOAuthConfigClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33122,24 +40838,21 @@ func (r ResetDatabasePasswordClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ResetDatabasePasswordClientResponse) ContentType() string { +func (r DeleteOAuthConfigClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ListDatabaseRestoresClientResponse struct { +type GetOAuthConfigClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DatabaseRestoreList - JSON403 *Error - JSON404 *Error - JSON503 *Error + JSON200 *OAuthConfig } // Status returns HTTPResponse.Status -func (r ListDatabaseRestoresClientResponse) Status() string { +func (r GetOAuthConfigClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33147,7 +40860,7 @@ func (r ListDatabaseRestoresClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListDatabaseRestoresClientResponse) StatusCode() int { +func (r GetOAuthConfigClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33155,26 +40868,21 @@ func (r ListDatabaseRestoresClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListDatabaseRestoresClientResponse) ContentType() string { +func (r GetOAuthConfigClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type CreateDatabaseRestoreClientResponse struct { +type UpdateOAuthConfigClientResponse struct { Body []byte HTTPResponse *http.Response - JSON202 *DatabaseRestore - JSON400 *Error - JSON403 *Error - JSON404 *Error - JSON409 *Error - JSON503 *Error + JSON200 *OAuthConfig } // Status returns HTTPResponse.Status -func (r CreateDatabaseRestoreClientResponse) Status() string { +func (r UpdateOAuthConfigClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33182,7 +40890,7 @@ func (r CreateDatabaseRestoreClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateDatabaseRestoreClientResponse) StatusCode() int { +func (r UpdateOAuthConfigClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33190,24 +40898,27 @@ func (r CreateDatabaseRestoreClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateDatabaseRestoreClientResponse) ContentType() string { +func (r UpdateOAuthConfigClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetDatabaseRestoreClientResponse struct { +type ListAvailableOAuthProvidersClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DatabaseRestore - JSON403 *Error - JSON404 *Error - JSON503 *Error + JSON200 *struct { + Providers *[]struct { + DefaultScopes *[]string `json:"default_scopes,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + } `json:"providers,omitempty"` + } } // Status returns HTTPResponse.Status -func (r GetDatabaseRestoreClientResponse) Status() string { +func (r ListAvailableOAuthProvidersClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33215,7 +40926,7 @@ func (r GetDatabaseRestoreClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetDatabaseRestoreClientResponse) StatusCode() int { +func (r ListAvailableOAuthProvidersClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33223,24 +40934,23 @@ func (r GetDatabaseRestoreClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetDatabaseRestoreClientResponse) ContentType() string { +func (r ListAvailableOAuthProvidersClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetDatabaseStatsClientResponse struct { +type GetRealtimeConfigClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DatabaseStats - JSON400 *Error + JSON200 *RealtimeConfig + JSON401 *Error JSON404 *Error - JSON503 *Error } // Status returns HTTPResponse.Status -func (r GetDatabaseStatsClientResponse) Status() string { +func (r GetRealtimeConfigClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33248,7 +40958,7 @@ func (r GetDatabaseStatsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetDatabaseStatsClientResponse) StatusCode() int { +func (r GetRealtimeConfigClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33256,22 +40966,23 @@ func (r GetDatabaseStatsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetDatabaseStatsClientResponse) ContentType() string { +func (r GetRealtimeConfigClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type UpdateDatabaseTypeClientResponse struct { +type UpdateRealtimeConfigClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Database - JSON409 *Error + JSON200 *RealtimeConfig + JSON400 *Error + JSON401 *Error } // Status returns HTTPResponse.Status -func (r UpdateDatabaseTypeClientResponse) Status() string { +func (r UpdateRealtimeConfigClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33279,7 +40990,7 @@ func (r UpdateDatabaseTypeClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateDatabaseTypeClientResponse) StatusCode() int { +func (r UpdateRealtimeConfigClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33287,25 +40998,22 @@ func (r UpdateDatabaseTypeClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateDatabaseTypeClientResponse) ContentType() string { +func (r UpdateRealtimeConfigClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ListProjectDeploymentsClientResponse struct { +type GetRealtimeStatsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *PaginatedProjectDeployments - JSON400 *Error + JSON200 *RealtimeStats JSON401 *Error - JSON403 *Error - JSON500 *Error } // Status returns HTTPResponse.Status -func (r ListProjectDeploymentsClientResponse) Status() string { +func (r GetRealtimeStatsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33313,7 +41021,7 @@ func (r ListProjectDeploymentsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListProjectDeploymentsClientResponse) StatusCode() int { +func (r GetRealtimeStatsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33321,25 +41029,22 @@ func (r ListProjectDeploymentsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListProjectDeploymentsClientResponse) ContentType() string { +func (r GetRealtimeStatsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type SummarizeProjectDeploymentsClientResponse struct { +type ExecuteSandboxClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ProjectDeploymentSummary - JSON400 *Error - JSON401 *Error - JSON403 *Error - JSON500 *Error + JSON200 *SandboxExecutionResult + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r SummarizeProjectDeploymentsClientResponse) Status() string { +func (r ExecuteSandboxClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33347,7 +41052,7 @@ func (r SummarizeProjectDeploymentsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r SummarizeProjectDeploymentsClientResponse) StatusCode() int { +func (r ExecuteSandboxClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33355,25 +41060,22 @@ func (r SummarizeProjectDeploymentsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SummarizeProjectDeploymentsClientResponse) ContentType() string { +func (r ExecuteSandboxClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ListProjectCustomDomainsClientResponse struct { +type ListSandboxSessionsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *PaginatedProjectCustomDomains - JSON400 *Error - JSON401 *Error - JSON403 *Error - JSON500 *Error + JSON200 *SandboxSessionPage + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r ListProjectCustomDomainsClientResponse) Status() string { +func (r ListSandboxSessionsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33381,7 +41083,7 @@ func (r ListProjectCustomDomainsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListProjectCustomDomainsClientResponse) StatusCode() int { +func (r ListSandboxSessionsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33389,23 +41091,22 @@ func (r ListProjectCustomDomainsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListProjectCustomDomainsClientResponse) ContentType() string { +func (r ListSandboxSessionsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ListDurableFunctionsClientResponse struct { +type CreateSandboxSessionClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *PaginatedDurableFunctions - JSON400 *Error - JSON404 *Error + JSON201 *SandboxSession + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r ListDurableFunctionsClientResponse) Status() string { +func (r CreateSandboxSessionClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33413,7 +41114,7 @@ func (r ListDurableFunctionsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListDurableFunctionsClientResponse) StatusCode() int { +func (r CreateSandboxSessionClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33421,26 +41122,22 @@ func (r ListDurableFunctionsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListDurableFunctionsClientResponse) ContentType() string { +func (r CreateSandboxSessionClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type CreateDurableFunctionClientResponse struct { +type ListSandboxesClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DurableFunction - JSON201 *DurableFunction - JSON400 *Error - JSON403 *Error - JSON409 *Error - JSON503 *Error + JSON200 *SandboxTemplatePage + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r CreateDurableFunctionClientResponse) Status() string { +func (r ListSandboxesClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33448,7 +41145,7 @@ func (r CreateDurableFunctionClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateDurableFunctionClientResponse) StatusCode() int { +func (r ListSandboxesClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33456,21 +41153,22 @@ func (r CreateDurableFunctionClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateDurableFunctionClientResponse) ContentType() string { +func (r ListSandboxesClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type DeleteDurableFunctionClientResponse struct { +type CreateSandboxClientResponse struct { Body []byte HTTPResponse *http.Response - JSON404 *Error + JSON201 *SandboxTemplate + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r DeleteDurableFunctionClientResponse) Status() string { +func (r CreateSandboxClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33478,7 +41176,7 @@ func (r DeleteDurableFunctionClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteDurableFunctionClientResponse) StatusCode() int { +func (r CreateSandboxClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33486,22 +41184,21 @@ func (r DeleteDurableFunctionClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteDurableFunctionClientResponse) ContentType() string { +func (r CreateSandboxClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetDurableFunctionClientResponse struct { +type DeleteSandboxClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DurableFunction - JSON404 *Error + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r GetDurableFunctionClientResponse) Status() string { +func (r DeleteSandboxClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33509,7 +41206,7 @@ func (r GetDurableFunctionClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetDurableFunctionClientResponse) StatusCode() int { +func (r DeleteSandboxClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33517,22 +41214,22 @@ func (r GetDurableFunctionClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetDurableFunctionClientResponse) ContentType() string { +func (r DeleteSandboxClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ListDurableFunctionDeploymentsClientResponse struct { +type GetSandboxClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *PaginatedFunctionDeployments - JSON404 *Error + JSON200 *SandboxTemplate + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r ListDurableFunctionDeploymentsClientResponse) Status() string { +func (r GetSandboxClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33540,7 +41237,7 @@ func (r ListDurableFunctionDeploymentsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListDurableFunctionDeploymentsClientResponse) StatusCode() int { +func (r GetSandboxClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33548,23 +41245,22 @@ func (r ListDurableFunctionDeploymentsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListDurableFunctionDeploymentsClientResponse) ContentType() string { +func (r GetSandboxClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ListDurableExecutionsClientResponse struct { +type UpdateSandboxClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *PaginatedDurableExecutions - JSON400 *Error - JSON404 *Error + JSON200 *SandboxTemplate + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r ListDurableExecutionsClientResponse) Status() string { +func (r UpdateSandboxClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33572,7 +41268,7 @@ func (r ListDurableExecutionsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListDurableExecutionsClientResponse) StatusCode() int { +func (r UpdateSandboxClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33580,27 +41276,22 @@ func (r ListDurableExecutionsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListDurableExecutionsClientResponse) ContentType() string { +func (r UpdateSandboxClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type StartDurableExecutionClientResponse struct { +type ListSandboxDeploymentsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON202 *DurableExecution - JSON400 *Error - JSON404 *Error - JSON409 *Error - JSON413 *Error - JSON429 *Error - JSON503 *Error + JSON200 *SandboxDeploymentPage + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r StartDurableExecutionClientResponse) Status() string { +func (r ListSandboxDeploymentsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33608,7 +41299,7 @@ func (r StartDurableExecutionClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r StartDurableExecutionClientResponse) StatusCode() int { +func (r ListSandboxDeploymentsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33616,23 +41307,21 @@ func (r StartDurableExecutionClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r StartDurableExecutionClientResponse) ContentType() string { +func (r ListSandboxDeploymentsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetDurableExecutionClientResponse struct { +type ListProjectSchedulersClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DurableExecution - JSON404 *Error - JSON503 *Error + JSON200 *FunctionSchedulerListResponse } // Status returns HTTPResponse.Status -func (r GetDurableExecutionClientResponse) Status() string { +func (r ListProjectSchedulersClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33640,7 +41329,7 @@ func (r GetDurableExecutionClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetDurableExecutionClientResponse) StatusCode() int { +func (r ListProjectSchedulersClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33648,24 +41337,21 @@ func (r GetDurableExecutionClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetDurableExecutionClientResponse) ContentType() string { +func (r ListProjectSchedulersClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type StopDurableExecutionClientResponse struct { +type ListServiceKeysClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DurableExecution - JSON404 *Error - JSON409 *Error - JSON503 *Error + JSON200 *PaginatedServiceKeys } // Status returns HTTPResponse.Status -func (r StopDurableExecutionClientResponse) Status() string { +func (r ListServiceKeysClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33673,7 +41359,7 @@ func (r StopDurableExecutionClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r StopDurableExecutionClientResponse) StatusCode() int { +func (r ListServiceKeysClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33681,22 +41367,21 @@ func (r StopDurableExecutionClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r StopDurableExecutionClientResponse) ContentType() string { +func (r ListServiceKeysClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ListDurableFunctionSchedulersClientResponse struct { +type CreateServiceKeyClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *FunctionSchedulerListResponse - JSON404 *Error + JSON201 *ServiceKey } // Status returns HTTPResponse.Status -func (r ListDurableFunctionSchedulersClientResponse) Status() string { +func (r CreateServiceKeyClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33704,7 +41389,7 @@ func (r ListDurableFunctionSchedulersClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListDurableFunctionSchedulersClientResponse) StatusCode() int { +func (r CreateServiceKeyClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33712,24 +41397,20 @@ func (r ListDurableFunctionSchedulersClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListDurableFunctionSchedulersClientResponse) ContentType() string { +func (r CreateServiceKeyClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type CreateDurableFunctionSchedulerClientResponse struct { +type DeleteServiceKeyClientResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *FunctionScheduler - JSON400 *Error - JSON403 *Error - JSON404 *Error } // Status returns HTTPResponse.Status -func (r CreateDurableFunctionSchedulerClientResponse) Status() string { +func (r DeleteServiceKeyClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33737,7 +41418,7 @@ func (r CreateDurableFunctionSchedulerClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateDurableFunctionSchedulerClientResponse) StatusCode() int { +func (r DeleteServiceKeyClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33745,21 +41426,21 @@ func (r CreateDurableFunctionSchedulerClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateDurableFunctionSchedulerClientResponse) ContentType() string { +func (r DeleteServiceKeyClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type DeleteDurableFunctionSchedulerClientResponse struct { +type GetServiceKeyClientResponse struct { Body []byte HTTPResponse *http.Response - JSON404 *Error + JSON200 *ServiceKey } // Status returns HTTPResponse.Status -func (r DeleteDurableFunctionSchedulerClientResponse) Status() string { +func (r GetServiceKeyClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33767,7 +41448,7 @@ func (r DeleteDurableFunctionSchedulerClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteDurableFunctionSchedulerClientResponse) StatusCode() int { +func (r GetServiceKeyClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33775,22 +41456,21 @@ func (r DeleteDurableFunctionSchedulerClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteDurableFunctionSchedulerClientResponse) ContentType() string { +func (r GetServiceKeyClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetDurableFunctionSchedulerClientResponse struct { +type RegenerateServiceKeyClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *FunctionScheduler - JSON404 *Error + JSON200 *ServiceKey } // Status returns HTTPResponse.Status -func (r GetDurableFunctionSchedulerClientResponse) Status() string { +func (r RegenerateServiceKeyClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33798,7 +41478,7 @@ func (r GetDurableFunctionSchedulerClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetDurableFunctionSchedulerClientResponse) StatusCode() int { +func (r RegenerateServiceKeyClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33806,23 +41486,24 @@ func (r GetDurableFunctionSchedulerClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetDurableFunctionSchedulerClientResponse) ContentType() string { +func (r RegenerateServiceKeyClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type UpdateDurableFunctionSchedulerClientResponse struct { +type ReplaceSharedVariablesClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *FunctionScheduler JSON400 *Error - JSON404 *Error + JSON409 *Error + JSON413 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r UpdateDurableFunctionSchedulerClientResponse) Status() string { +func (r ReplaceSharedVariablesClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33830,7 +41511,7 @@ func (r UpdateDurableFunctionSchedulerClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateDurableFunctionSchedulerClientResponse) StatusCode() int { +func (r ReplaceSharedVariablesClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33838,23 +41519,26 @@ func (r UpdateDurableFunctionSchedulerClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateDurableFunctionSchedulerClientResponse) ContentType() string { +func (r ReplaceSharedVariablesClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ListEmailTemplatesClientResponse struct { +type CancelProjectSourceExportClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - Data *[]EmailTemplate `json:"data,omitempty"` - } + JSON401 *Error + JSON403 *Error + JSON404 *Error + JSON409 *Error + JSON500 *Error + JSON501 *Error } // Status returns HTTPResponse.Status -func (r ListEmailTemplatesClientResponse) Status() string { +func (r CancelProjectSourceExportClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33862,7 +41546,7 @@ func (r ListEmailTemplatesClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListEmailTemplatesClientResponse) StatusCode() int { +func (r CancelProjectSourceExportClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33870,24 +41554,26 @@ func (r ListEmailTemplatesClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListEmailTemplatesClientResponse) ContentType() string { +func (r CancelProjectSourceExportClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type CreateEmailTemplateClientResponse struct { +type GetProjectSourceExportClientResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *EmailTemplate - JSON400 *Error + JSON200 *ProjectSourceExportState + JSON401 *Error JSON403 *Error - JSON409 *Error + JSON404 *Error + JSON500 *Error + JSON501 *Error } // Status returns HTTPResponse.Status -func (r CreateEmailTemplateClientResponse) Status() string { +func (r GetProjectSourceExportClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33895,7 +41581,7 @@ func (r CreateEmailTemplateClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateEmailTemplateClientResponse) StatusCode() int { +func (r GetProjectSourceExportClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33903,21 +41589,31 @@ func (r CreateEmailTemplateClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateEmailTemplateClientResponse) ContentType() string { +func (r GetProjectSourceExportClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type DeleteEmailTemplateClientResponse struct { +type ExportProjectSourceClientResponse struct { Body []byte HTTPResponse *http.Response + JSON201 *ProjectSourceExport + JSON400 *Error + JSON401 *Error JSON403 *Error + JSON404 *Error + JSON409 *Error + JSON422 *Error + JSON429 *Error + JSON500 *Error + JSON501 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r DeleteEmailTemplateClientResponse) Status() string { +func (r ExportProjectSourceClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33925,7 +41621,7 @@ func (r DeleteEmailTemplateClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteEmailTemplateClientResponse) StatusCode() int { +func (r ExportProjectSourceClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33933,21 +41629,21 @@ func (r DeleteEmailTemplateClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteEmailTemplateClientResponse) ContentType() string { +func (r ExportProjectSourceClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetEmailTemplateClientResponse struct { +type ListStorageBucketsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *EmailTemplate + JSON200 *ListStorageBuckets200JSONResponseBody } // Status returns HTTPResponse.Status -func (r GetEmailTemplateClientResponse) Status() string { +func (r ListStorageBucketsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33955,7 +41651,7 @@ func (r GetEmailTemplateClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetEmailTemplateClientResponse) StatusCode() int { +func (r ListStorageBucketsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33963,22 +41659,21 @@ func (r GetEmailTemplateClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetEmailTemplateClientResponse) ContentType() string { +func (r ListStorageBucketsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type UpdateEmailTemplateClientResponse struct { +type CreateStorageBucketClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *EmailTemplate - JSON403 *Error + JSON201 *StorageBucket } // Status returns HTTPResponse.Status -func (r UpdateEmailTemplateClientResponse) Status() string { +func (r CreateStorageBucketClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33986,7 +41681,7 @@ func (r UpdateEmailTemplateClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateEmailTemplateClientResponse) StatusCode() int { +func (r CreateStorageBucketClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -33994,26 +41689,20 @@ func (r UpdateEmailTemplateClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateEmailTemplateClientResponse) ContentType() string { +func (r CreateStorageBucketClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ListFrontendsClientResponse struct { +type DeleteStorageBucketClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *PaginatedFrontends - JSON400 *Error - JSON401 *Error - JSON403 *Error - JSON404 *Error - JSON500 *Error } // Status returns HTTPResponse.Status -func (r ListFrontendsClientResponse) Status() string { +func (r DeleteStorageBucketClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34021,7 +41710,7 @@ func (r ListFrontendsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListFrontendsClientResponse) StatusCode() int { +func (r DeleteStorageBucketClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -34029,29 +41718,21 @@ func (r ListFrontendsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListFrontendsClientResponse) ContentType() string { +func (r DeleteStorageBucketClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type CreateFrontendClientResponse struct { +type GetStorageBucketClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Frontend - JSON201 *Frontend - JSON400 *Error - JSON401 *Error - JSON403 *Error - JSON404 *Error - JSON409 *Error - JSON500 *Error - JSON503 *Error + JSON200 *StorageBucket } // Status returns HTTPResponse.Status -func (r CreateFrontendClientResponse) Status() string { +func (r GetStorageBucketClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34059,7 +41740,7 @@ func (r CreateFrontendClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateFrontendClientResponse) StatusCode() int { +func (r GetStorageBucketClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -34067,26 +41748,21 @@ func (r CreateFrontendClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateFrontendClientResponse) ContentType() string { +func (r GetStorageBucketClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type DeleteFrontendClientResponse struct { +type UpdateStorageBucketClientResponse struct { Body []byte HTTPResponse *http.Response - JSON400 *Error - JSON401 *Error - JSON403 *Error - JSON404 *Error - JSON500 *Error - JSON503 *Error + JSON200 *StorageBucket } // Status returns HTTPResponse.Status -func (r DeleteFrontendClientResponse) Status() string { +func (r UpdateStorageBucketClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34094,7 +41770,7 @@ func (r DeleteFrontendClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteFrontendClientResponse) StatusCode() int { +func (r UpdateStorageBucketClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -34102,26 +41778,21 @@ func (r DeleteFrontendClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteFrontendClientResponse) ContentType() string { +func (r UpdateStorageBucketClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetFrontendClientResponse struct { +type ListStoragePoliciesClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Frontend - JSON400 *Error - JSON401 *Error - JSON403 *Error - JSON404 *Error - JSON500 *Error + JSON200 *[]StoragePolicy } // Status returns HTTPResponse.Status -func (r GetFrontendClientResponse) Status() string { +func (r ListStoragePoliciesClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34129,7 +41800,7 @@ func (r GetFrontendClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetFrontendClientResponse) StatusCode() int { +func (r ListStoragePoliciesClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -34137,26 +41808,21 @@ func (r GetFrontendClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetFrontendClientResponse) ContentType() string { +func (r ListStoragePoliciesClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ListFrontendDeploymentsClientResponse struct { +type CreateStoragePolicyClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *PaginatedFrontendDeployments - JSON400 *Error - JSON401 *Error - JSON403 *Error - JSON404 *Error - JSON500 *Error + JSON201 *StoragePolicy } // Status returns HTTPResponse.Status -func (r ListFrontendDeploymentsClientResponse) Status() string { +func (r CreateStoragePolicyClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34164,7 +41830,7 @@ func (r ListFrontendDeploymentsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListFrontendDeploymentsClientResponse) StatusCode() int { +func (r CreateStoragePolicyClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -34172,25 +41838,20 @@ func (r ListFrontendDeploymentsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListFrontendDeploymentsClientResponse) ContentType() string { +func (r CreateStoragePolicyClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type DeleteFrontendCustomDomainClientResponse struct { +type DeleteStoragePolicyClientResponse struct { Body []byte HTTPResponse *http.Response - JSON400 *Error - JSON401 *Error - JSON403 *Error - JSON404 *Error - JSON500 *Error } // Status returns HTTPResponse.Status -func (r DeleteFrontendCustomDomainClientResponse) Status() string { +func (r DeleteStoragePolicyClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34198,7 +41859,7 @@ func (r DeleteFrontendCustomDomainClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteFrontendCustomDomainClientResponse) StatusCode() int { +func (r DeleteStoragePolicyClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -34206,26 +41867,33 @@ func (r DeleteFrontendCustomDomainClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteFrontendCustomDomainClientResponse) ContentType() string { +func (r DeleteStoragePolicyClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetFrontendCustomDomainClientResponse struct { +type ListStorageObjectsAdminClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *FrontendCustomDomainResponse - JSON400 *Error - JSON401 *Error - JSON403 *Error - JSON404 *Error - JSON500 *Error + JSON200 *struct { + Data *[]StorageObjectWithBucket `json:"data,omitempty"` + HasMore *bool `json:"has_more,omitempty"` + Limit *int `json:"limit,omitempty"` + + // NextCursor Opaque cursor for the next page (cursor pagination only) + NextCursor *string `json:"next_cursor,omitempty"` + Page *int `json:"page,omitempty"` + + // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`. + PrevCursor *string `json:"prev_cursor,omitempty"` + Total *int `json:"total,omitempty"` + } } // Status returns HTTPResponse.Status -func (r GetFrontendCustomDomainClientResponse) Status() string { +func (r ListStorageObjectsAdminClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34233,7 +41901,7 @@ func (r GetFrontendCustomDomainClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetFrontendCustomDomainClientResponse) StatusCode() int { +func (r ListStorageObjectsAdminClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -34241,29 +41909,21 @@ func (r GetFrontendCustomDomainClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetFrontendCustomDomainClientResponse) ContentType() string { +func (r ListStorageObjectsAdminClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type CreateFrontendCustomDomainClientResponse struct { +type GetStorageStatsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *FrontendCustomDomainResponse - JSON201 *FrontendCustomDomainResponse - JSON400 *Error - JSON401 *Error - JSON403 *Error - JSON404 *Error - JSON409 *Error - JSON500 *Error - JSON503 *Error + JSON200 *StorageStats } // Status returns HTTPResponse.Status -func (r CreateFrontendCustomDomainClientResponse) Status() string { +func (r GetStorageStatsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34271,7 +41931,7 @@ func (r CreateFrontendCustomDomainClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateFrontendCustomDomainClientResponse) StatusCode() int { +func (r GetStorageStatsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -34279,28 +41939,23 @@ func (r CreateFrontendCustomDomainClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateFrontendCustomDomainClientResponse) ContentType() string { +func (r GetStorageStatsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type RedeployFrontendClientResponse struct { +type GetProjectUsageClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Frontend - JSON400 *Error - JSON401 *Error + JSON200 *ProjectUsageResponse JSON403 *Error JSON404 *Error - JSON409 *Error - JSON500 *Error - JSON503 *Error } // Status returns HTTPResponse.Status -func (r RedeployFrontendClientResponse) Status() string { +func (r GetProjectUsageClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34308,7 +41963,7 @@ func (r RedeployFrontendClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r RedeployFrontendClientResponse) StatusCode() int { +func (r GetProjectUsageClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -34316,26 +41971,22 @@ func (r RedeployFrontendClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RedeployFrontendClientResponse) ContentType() string { +func (r GetProjectUsageClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetFrontendUsageHistoryClientResponse struct { +type ListVariablesClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *FrontendUsageHistoryResponse - JSON400 *Error - JSON401 *Error - JSON403 *Error + JSON200 *PaginatedVariables JSON404 *Error - JSON500 *Error } // Status returns HTTPResponse.Status -func (r GetFrontendUsageHistoryClientResponse) Status() string { +func (r ListVariablesClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34343,7 +41994,7 @@ func (r GetFrontendUsageHistoryClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetFrontendUsageHistoryClientResponse) StatusCode() int { +func (r ListVariablesClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -34351,22 +42002,23 @@ func (r GetFrontendUsageHistoryClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetFrontendUsageHistoryClientResponse) ContentType() string { +func (r ListVariablesClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ListFunctionsClientResponse struct { +type CreateVariableClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *PaginatedFunctions - JSON404 *Error + JSON201 *Variable + JSON400 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r ListFunctionsClientResponse) Status() string { +func (r CreateVariableClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34374,7 +42026,7 @@ func (r ListFunctionsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListFunctionsClientResponse) StatusCode() int { +func (r CreateVariableClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -34382,26 +42034,21 @@ func (r ListFunctionsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListFunctionsClientResponse) ContentType() string { +func (r CreateVariableClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type CreateFunctionClientResponse struct { +type DeleteVariableClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Function - JSON201 *Function - JSON400 *Error - JSON403 *Error - JSON409 *Error - JSON500 *Error + JSON404 *Error } // Status returns HTTPResponse.Status -func (r CreateFunctionClientResponse) Status() string { +func (r DeleteVariableClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34409,7 +42056,7 @@ func (r CreateFunctionClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateFunctionClientResponse) StatusCode() int { +func (r DeleteVariableClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -34417,23 +42064,22 @@ func (r CreateFunctionClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateFunctionClientResponse) ContentType() string { +func (r DeleteVariableClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type CreateFunctionsBatchClientResponse struct { +type GetVariableClientResponse struct { Body []byte HTTPResponse *http.Response - JSON202 *BatchFunctionDeployResponse - JSON207 *BatchFunctionDeployResponse - JSON400 *Error + JSON200 *Variable + JSON404 *Error } // Status returns HTTPResponse.Status -func (r CreateFunctionsBatchClientResponse) Status() string { +func (r GetVariableClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34441,7 +42087,7 @@ func (r CreateFunctionsBatchClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateFunctionsBatchClientResponse) StatusCode() int { +func (r GetVariableClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -34449,21 +42095,24 @@ func (r CreateFunctionsBatchClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateFunctionsBatchClientResponse) ContentType() string { +func (r GetVariableClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type DeleteFunctionClientResponse struct { +type UpdateVariableClientResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *Variable + JSON400 *Error JSON404 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r DeleteFunctionClientResponse) Status() string { +func (r UpdateVariableClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34471,7 +42120,7 @@ func (r DeleteFunctionClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteFunctionClientResponse) StatusCode() int { +func (r UpdateVariableClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -34479,22 +42128,21 @@ func (r DeleteFunctionClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteFunctionClientResponse) ContentType() string { +func (r UpdateVariableClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetFunctionClientResponse struct { +type DownloadPublicFileClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Function - JSON404 *Error + JSON429 *BandwidthCapExceeded } // Status returns HTTPResponse.Status -func (r GetFunctionClientResponse) Status() string { +func (r DownloadPublicFileClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34502,7 +42150,7 @@ func (r GetFunctionClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetFunctionClientResponse) StatusCode() int { +func (r DownloadPublicFileClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -34510,23 +42158,22 @@ func (r GetFunctionClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetFunctionClientResponse) ContentType() string { +func (r DownloadPublicFileClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type UpdateFunctionClientResponse struct { +type TerminateSandboxSessionClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Function - JSON400 *Error - JSON404 *Error + JSON202 *SandboxSession + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r UpdateFunctionClientResponse) Status() string { +func (r TerminateSandboxSessionClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34534,7 +42181,7 @@ func (r UpdateFunctionClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateFunctionClientResponse) StatusCode() int { +func (r TerminateSandboxSessionClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -34542,22 +42189,22 @@ func (r UpdateFunctionClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateFunctionClientResponse) ContentType() string { +func (r TerminateSandboxSessionClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ListFunctionDeploymentsClientResponse struct { +type GetSandboxSessionClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *PaginatedFunctionDeployments - JSON404 *Error + JSON200 *SandboxSession + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r ListFunctionDeploymentsClientResponse) Status() string { +func (r GetSandboxSessionClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34565,7 +42212,7 @@ func (r ListFunctionDeploymentsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListFunctionDeploymentsClientResponse) StatusCode() int { +func (r GetSandboxSessionClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -34573,21 +42220,22 @@ func (r ListFunctionDeploymentsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListFunctionDeploymentsClientResponse) ContentType() string { +func (r GetSandboxSessionClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ListFunctionSchedulersClientResponse struct { +type CreateSandboxSessionAccessClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *FunctionSchedulerListResponse + JSON200 *SandboxAccess + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r ListFunctionSchedulersClientResponse) Status() string { +func (r CreateSandboxSessionAccessClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34595,7 +42243,7 @@ func (r ListFunctionSchedulersClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListFunctionSchedulersClientResponse) StatusCode() int { +func (r CreateSandboxSessionAccessClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -34603,22 +42251,22 @@ func (r ListFunctionSchedulersClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListFunctionSchedulersClientResponse) ContentType() string { +func (r CreateSandboxSessionAccessClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type CreateFunctionSchedulerClientResponse struct { +type ExecuteSandboxSessionClientResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *FunctionScheduler - JSON400 *Error + JSON200 *SandboxCommandResult + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r CreateFunctionSchedulerClientResponse) Status() string { +func (r ExecuteSandboxSessionClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34626,7 +42274,7 @@ func (r CreateFunctionSchedulerClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateFunctionSchedulerClientResponse) StatusCode() int { +func (r ExecuteSandboxSessionClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -34634,20 +42282,22 @@ func (r CreateFunctionSchedulerClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateFunctionSchedulerClientResponse) ContentType() string { +func (r ExecuteSandboxSessionClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type DeleteFunctionSchedulerClientResponse struct { +type ReadSandboxSessionFileClientResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *SandboxFileResult + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r DeleteFunctionSchedulerClientResponse) Status() string { +func (r ReadSandboxSessionFileClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34655,7 +42305,7 @@ func (r DeleteFunctionSchedulerClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteFunctionSchedulerClientResponse) StatusCode() int { +func (r ReadSandboxSessionFileClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -34663,21 +42313,21 @@ func (r DeleteFunctionSchedulerClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteFunctionSchedulerClientResponse) ContentType() string { +func (r ReadSandboxSessionFileClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetFunctionSchedulerClientResponse struct { +type WriteSandboxSessionFileClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *FunctionScheduler + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r GetFunctionSchedulerClientResponse) Status() string { +func (r WriteSandboxSessionFileClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34685,7 +42335,7 @@ func (r GetFunctionSchedulerClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetFunctionSchedulerClientResponse) StatusCode() int { +func (r WriteSandboxSessionFileClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -34693,21 +42343,21 @@ func (r GetFunctionSchedulerClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetFunctionSchedulerClientResponse) ContentType() string { +func (r WriteSandboxSessionFileClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type UpdateFunctionSchedulerClientResponse struct { +type RevokeSandboxSessionClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *FunctionScheduler + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r UpdateFunctionSchedulerClientResponse) Status() string { +func (r RevokeSandboxSessionClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34715,7 +42365,7 @@ func (r UpdateFunctionSchedulerClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateFunctionSchedulerClientResponse) StatusCode() int { +func (r RevokeSandboxSessionClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -34723,24 +42373,21 @@ func (r UpdateFunctionSchedulerClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateFunctionSchedulerClientResponse) ContentType() string { +func (r RevokeSandboxSessionClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type DisconnectProjectGitClientResponse struct { +type GrantSandboxSessionClientResponse struct { Body []byte HTTPResponse *http.Response - JSON401 *Error - JSON403 *Error - JSON404 *Error - JSON500 *Error + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r DisconnectProjectGitClientResponse) Status() string { +func (r GrantSandboxSessionClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34748,7 +42395,7 @@ func (r DisconnectProjectGitClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DisconnectProjectGitClientResponse) StatusCode() int { +func (r GrantSandboxSessionClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -34756,25 +42403,22 @@ func (r DisconnectProjectGitClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DisconnectProjectGitClientResponse) ContentType() string { +func (r GrantSandboxSessionClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetProjectGitConnectionClientResponse struct { +type ResumeSandboxSessionClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ProjectGitConnection - JSON401 *Error - JSON403 *Error - JSON404 *Error - JSON500 *Error + JSON202 *SandboxSession + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r GetProjectGitConnectionClientResponse) Status() string { +func (r ResumeSandboxSessionClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34782,7 +42426,7 @@ func (r GetProjectGitConnectionClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetProjectGitConnectionClientResponse) StatusCode() int { +func (r ResumeSandboxSessionClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -34790,27 +42434,22 @@ func (r GetProjectGitConnectionClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetProjectGitConnectionClientResponse) ContentType() string { +func (r ResumeSandboxSessionClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ConnectProjectGitClientResponse struct { +type SuspendSandboxSessionClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ProjectGitConnection - JSON400 *Error - JSON401 *Error - JSON403 *Error - JSON404 *Error - JSON500 *Error - JSON503 *Error + JSON202 *SandboxSession + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r ConnectProjectGitClientResponse) Status() string { +func (r SuspendSandboxSessionClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34818,7 +42457,7 @@ func (r ConnectProjectGitClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ConnectProjectGitClientResponse) StatusCode() int { +func (r SuspendSandboxSessionClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -34826,26 +42465,22 @@ func (r ConnectProjectGitClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ConnectProjectGitClientResponse) ContentType() string { +func (r SuspendSandboxSessionClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type SetProjectGitProductionBranchClientResponse struct { +type ListSandboxPresetsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ProjectGitConnection - JSON400 *Error - JSON401 *Error - JSON403 *Error - JSON404 *Error - JSON500 *Error + JSON200 *SandboxPresetList + JSONDefault *Error } // Status returns HTTPResponse.Status -func (r SetProjectGitProductionBranchClientResponse) Status() string { +func (r ListSandboxPresetsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34853,7 +42488,7 @@ func (r SetProjectGitProductionBranchClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r SetProjectGitProductionBranchClientResponse) StatusCode() int { +func (r ListSandboxPresetsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -34861,30 +42496,22 @@ func (r SetProjectGitProductionBranchClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SetProjectGitProductionBranchClientResponse) ContentType() string { +func (r ListSandboxPresetsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type CreateProjectGitRepositoryClientResponse struct { +type ListStorageObjectsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *CreatedProjectGitConnection - JSON400 *Error - JSON401 *Error - JSON403 *Error - JSON404 *Error - JSON409 *Error - JSON422 *Error - JSON429 *Error - JSON500 *Error - JSON503 *Error + JSON200 *StorageListResponse + JSON429 *BandwidthCapExceeded } // Status returns HTTPResponse.Status -func (r CreateProjectGitRepositoryClientResponse) Status() string { +func (r ListStorageObjectsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34892,7 +42519,7 @@ func (r CreateProjectGitRepositoryClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateProjectGitRepositoryClientResponse) StatusCode() int { +func (r ListStorageObjectsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -34900,25 +42527,22 @@ func (r CreateProjectGitRepositoryClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateProjectGitRepositoryClientResponse) ContentType() string { +func (r ListStorageObjectsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetProjectGitDeploySettingsClientResponse struct { +type CopyStorageObjectClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ProjectGitDeploySettings - JSON401 *Error - JSON403 *Error - JSON404 *Error - JSON500 *Error + JSON201 *StorageObject + JSON429 *BandwidthCapExceeded } // Status returns HTTPResponse.Status -func (r GetProjectGitDeploySettingsClientResponse) Status() string { +func (r CopyStorageObjectClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34926,7 +42550,7 @@ func (r GetProjectGitDeploySettingsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetProjectGitDeploySettingsClientResponse) StatusCode() int { +func (r CopyStorageObjectClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -34934,26 +42558,22 @@ func (r GetProjectGitDeploySettingsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetProjectGitDeploySettingsClientResponse) ContentType() string { +func (r CopyStorageObjectClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type UpdateProjectGitDeploySettingsClientResponse struct { +type MoveStorageObjectClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ProjectGitDeploySettings - JSON400 *Error - JSON401 *Error - JSON403 *Error - JSON404 *Error - JSON500 *Error + JSON200 *StorageObject + JSON429 *BandwidthCapExceeded } // Status returns HTTPResponse.Status -func (r UpdateProjectGitDeploySettingsClientResponse) Status() string { +func (r MoveStorageObjectClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34961,7 +42581,7 @@ func (r UpdateProjectGitDeploySettingsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateProjectGitDeploySettingsClientResponse) StatusCode() int { +func (r MoveStorageObjectClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -34969,25 +42589,21 @@ func (r UpdateProjectGitDeploySettingsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateProjectGitDeploySettingsClientResponse) ContentType() string { +func (r MoveStorageObjectClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetProjectHealthClientResponse struct { +type DeleteStorageObjectClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ProjectHealthResponse - JSON401 *Error - JSON403 *Error - JSON404 *Error - JSON500 *Error + JSON429 *BandwidthCapExceeded } // Status returns HTTPResponse.Status -func (r GetProjectHealthClientResponse) Status() string { +func (r DeleteStorageObjectClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34995,7 +42611,7 @@ func (r GetProjectHealthClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetProjectHealthClientResponse) StatusCode() int { +func (r DeleteStorageObjectClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -35003,25 +42619,22 @@ func (r GetProjectHealthClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetProjectHealthClientResponse) ContentType() string { +func (r DeleteStorageObjectClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type DeleteProjectLogoClientResponse struct { +type DownloadStorageObjectClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Project - JSON403 *Error - JSON404 *Error - JSON409 *Error - JSON503 *Error + JSON200 *UploadSessionStatusResponse + JSON429 *BandwidthCapExceeded } // Status returns HTTPResponse.Status -func (r DeleteProjectLogoClientResponse) Status() string { +func (r DownloadStorageObjectClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35029,7 +42642,7 @@ func (r DeleteProjectLogoClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteProjectLogoClientResponse) StatusCode() int { +func (r DownloadStorageObjectClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -35037,21 +42650,23 @@ func (r DeleteProjectLogoClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteProjectLogoClientResponse) ContentType() string { +func (r DownloadStorageObjectClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetProjectLogoClientResponse struct { +type UploadStorageObjectClientResponse struct { Body []byte HTTPResponse *http.Response - JSON404 *Error + JSON200 *CompleteUploadSessionResponse + JSON201 *UploadStorageObject201JSONResponseBody + JSON429 *BandwidthCapExceeded } // Status returns HTTPResponse.Status -func (r GetProjectLogoClientResponse) Status() string { +func (r UploadStorageObjectClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35059,7 +42674,7 @@ func (r GetProjectLogoClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetProjectLogoClientResponse) StatusCode() int { +func (r UploadStorageObjectClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -35067,26 +42682,21 @@ func (r GetProjectLogoClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetProjectLogoClientResponse) ContentType() string { +func (r UploadStorageObjectClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type UploadProjectLogoClientResponse struct { +type UploadPartClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Project - JSON400 *Error - JSON403 *Error - JSON404 *Error - JSON409 *Error - JSON503 *Error + JSON200 *UploadSessionPart } // Status returns HTTPResponse.Status -func (r UploadProjectLogoClientResponse) Status() string { +func (r UploadPartClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35094,7 +42704,7 @@ func (r UploadProjectLogoClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UploadProjectLogoClientResponse) StatusCode() int { +func (r UploadPartClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -35102,25 +42712,21 @@ func (r UploadProjectLogoClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UploadProjectLogoClientResponse) ContentType() string { +func (r UploadPartClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetProjectLogActivityClientResponse struct { +type UpdateStorageObjectVisibilityClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *LogActivityResponse - JSON400 *Error - JSON401 *Error - JSON403 *Error - JSON404 *Error + JSON200 *StorageObject } // Status returns HTTPResponse.Status -func (r GetProjectLogActivityClientResponse) Status() string { +func (r UpdateStorageObjectVisibilityClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35128,7 +42734,7 @@ func (r GetProjectLogActivityClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetProjectLogActivityClientResponse) StatusCode() int { +func (r UpdateStorageObjectVisibilityClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -35136,25 +42742,25 @@ func (r GetProjectLogActivityClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetProjectLogActivityClientResponse) ContentType() string { +func (r UpdateStorageObjectVisibilityClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type SearchProjectLogsClientResponse struct { +type StartGitConnectClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *LogSearchResponse + JSON200 *GitConnectStartResponse JSON400 *Error JSON401 *Error - JSON403 *Error - JSON404 *Error + JSON500 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r SearchProjectLogsClientResponse) Status() string { +func (r StartGitConnectClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35162,7 +42768,7 @@ func (r SearchProjectLogsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r SearchProjectLogsClientResponse) StatusCode() int { +func (r StartGitConnectClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -35170,25 +42776,24 @@ func (r SearchProjectLogsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SearchProjectLogsClientResponse) ContentType() string { +func (r StartGitConnectClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type StreamProjectLogsClientResponse struct { +type ListGitConnectionsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON400 *Error + JSON200 *GitConnectionsResponse JSON401 *Error - JSON403 *Error - JSON404 *Error JSON500 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r StreamProjectLogsClientResponse) Status() string { +func (r ListGitConnectionsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35196,7 +42801,7 @@ func (r StreamProjectLogsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r StreamProjectLogsClientResponse) StatusCode() int { +func (r ListGitConnectionsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -35204,27 +42809,25 @@ func (r StreamProjectLogsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r StreamProjectLogsClientResponse) ContentType() string { +func (r ListGitConnectionsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type QueryProjectMetricsClientResponse struct { +type DeleteGitConnectionClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ProjectMetricsQueryResponse JSON400 *Error JSON401 *Error - JSON403 *Error JSON404 *Error JSON500 *Error JSON503 *Error } // Status returns HTTPResponse.Status -func (r QueryProjectMetricsClientResponse) Status() string { +func (r DeleteGitConnectionClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35232,7 +42835,7 @@ func (r QueryProjectMetricsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r QueryProjectMetricsClientResponse) StatusCode() int { +func (r DeleteGitConnectionClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -35240,23 +42843,26 @@ func (r QueryProjectMetricsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r QueryProjectMetricsClientResponse) ContentType() string { +func (r DeleteGitConnectionClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ListOAuthConfigsClientResponse struct { +type ListGitInstallationsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - Configs *[]OAuthConfig `json:"configs,omitempty"` - } + JSON200 *GitInstallationsResponse + JSON400 *Error + JSON401 *Error + JSON404 *Error + JSON500 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r ListOAuthConfigsClientResponse) Status() string { +func (r ListGitInstallationsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35264,7 +42870,7 @@ func (r ListOAuthConfigsClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListOAuthConfigsClientResponse) StatusCode() int { +func (r ListGitInstallationsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -35272,21 +42878,26 @@ func (r ListOAuthConfigsClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListOAuthConfigsClientResponse) ContentType() string { +func (r ListGitInstallationsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type CreateOAuthConfigClientResponse struct { +type ListGitInstallationRepositoriesClientResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *OAuthConfig + JSON200 *GitRepositoriesResponse + JSON400 *Error + JSON401 *Error + JSON404 *Error + JSON500 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r CreateOAuthConfigClientResponse) Status() string { +func (r ListGitInstallationRepositoriesClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35294,7 +42905,7 @@ func (r CreateOAuthConfigClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateOAuthConfigClientResponse) StatusCode() int { +func (r ListGitInstallationRepositoriesClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -35302,20 +42913,25 @@ func (r CreateOAuthConfigClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateOAuthConfigClientResponse) ContentType() string { +func (r ListGitInstallationRepositoriesClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type DeleteOAuthConfigClientResponse struct { +type StartImportConnectClientResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *ImportConnectStartResponse + JSON400 *Error + JSON401 *Error + JSON500 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r DeleteOAuthConfigClientResponse) Status() string { +func (r StartImportConnectClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35323,7 +42939,7 @@ func (r DeleteOAuthConfigClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteOAuthConfigClientResponse) StatusCode() int { +func (r StartImportConnectClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -35331,21 +42947,23 @@ func (r DeleteOAuthConfigClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteOAuthConfigClientResponse) ContentType() string { +func (r StartImportConnectClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type GetOAuthConfigClientResponse struct { +type ListImportConnectionsClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *OAuthConfig + JSON200 *ImportConnectionsResponse + JSON401 *Error + JSON500 *Error } // Status returns HTTPResponse.Status -func (r GetOAuthConfigClientResponse) Status() string { +func (r ListImportConnectionsClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35353,7 +42971,7 @@ func (r GetOAuthConfigClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOAuthConfigClientResponse) StatusCode() int { +func (r ListImportConnectionsClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -35361,21 +42979,26 @@ func (r GetOAuthConfigClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetOAuthConfigClientResponse) ContentType() string { +func (r ListImportConnectionsClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type UpdateOAuthConfigClientResponse struct { +type DeleteImportConnectionClientResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *OAuthConfig + JSON400 *Error + JSON401 *Error + JSON404 *Error + JSON409 *Error + JSON500 *Error + JSON503 *Error } // Status returns HTTPResponse.Status -func (r UpdateOAuthConfigClientResponse) Status() string { +func (r DeleteImportConnectionClientResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35383,7 +43006,7 @@ func (r UpdateOAuthConfigClientResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateOAuthConfigClientResponse) StatusCode() int { +func (r DeleteImportConnectionClientResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -35391,4265 +43014,5368 @@ func (r UpdateOAuthConfigClientResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateOAuthConfigClientResponse) ContentType() string { +func (r DeleteImportConnectionClientResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -type ListAvailableOAuthProvidersClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Providers *[]struct { - DefaultScopes *[]string `json:"default_scopes,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - } `json:"providers,omitempty"` +// AuthConfirmEmailWithBodyWithResponse request with arbitrary body returning *AuthConfirmEmailClientResponse +func (c *ClientWithResponses) AuthConfirmEmailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthConfirmEmailClientResponse, error) { + rsp, err := c.AuthConfirmEmailWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAuthConfirmEmailClientResponse(rsp) +} + +func (c *ClientWithResponses) AuthConfirmEmailWithResponse(ctx context.Context, body AuthConfirmEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthConfirmEmailClientResponse, error) { + rsp, err := c.AuthConfirmEmail(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAuthConfirmEmailClientResponse(rsp) +} + +// AuthDeviceAuthorizeWithBodyWithResponse request with arbitrary body returning *AuthDeviceAuthorizeClientResponse +func (c *ClientWithResponses) AuthDeviceAuthorizeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthDeviceAuthorizeClientResponse, error) { + rsp, err := c.AuthDeviceAuthorizeWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAuthDeviceAuthorizeClientResponse(rsp) +} + +func (c *ClientWithResponses) AuthDeviceAuthorizeWithResponse(ctx context.Context, body AuthDeviceAuthorizeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthDeviceAuthorizeClientResponse, error) { + rsp, err := c.AuthDeviceAuthorize(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAuthDeviceAuthorizeClientResponse(rsp) +} + +// AuthDeviceTokenWithBodyWithResponse request with arbitrary body returning *AuthDeviceTokenClientResponse +func (c *ClientWithResponses) AuthDeviceTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthDeviceTokenClientResponse, error) { + rsp, err := c.AuthDeviceTokenWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseAuthDeviceTokenClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r ListAvailableOAuthProvidersClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) AuthDeviceTokenWithResponse(ctx context.Context, body AuthDeviceTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthDeviceTokenClientResponse, error) { + rsp, err := c.AuthDeviceToken(ctx, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseAuthDeviceTokenClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListAvailableOAuthProvidersClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// AuthDeviceVerifyWithBodyWithResponse request with arbitrary body returning *AuthDeviceVerifyClientResponse +func (c *ClientWithResponses) AuthDeviceVerifyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthDeviceVerifyClientResponse, error) { + rsp, err := c.AuthDeviceVerifyWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseAuthDeviceVerifyClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListAvailableOAuthProvidersClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +func (c *ClientWithResponses) AuthDeviceVerifyWithResponse(ctx context.Context, body AuthDeviceVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthDeviceVerifyClientResponse, error) { + rsp, err := c.AuthDeviceVerify(ctx, body, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseAuthDeviceVerifyClientResponse(rsp) } -type GetRealtimeConfigClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *RealtimeConfig - JSON401 *Error - JSON404 *Error +// AuthForgotPasswordWithBodyWithResponse request with arbitrary body returning *AuthForgotPasswordClientResponse +func (c *ClientWithResponses) AuthForgotPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthForgotPasswordClientResponse, error) { + rsp, err := c.AuthForgotPasswordWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAuthForgotPasswordClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r GetRealtimeConfigClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) AuthForgotPasswordWithResponse(ctx context.Context, body AuthForgotPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthForgotPasswordClientResponse, error) { + rsp, err := c.AuthForgotPassword(ctx, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseAuthForgotPasswordClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetRealtimeConfigClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// AuthLogoutWithBodyWithResponse request with arbitrary body returning *AuthLogoutClientResponse +func (c *ClientWithResponses) AuthLogoutWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthLogoutClientResponse, error) { + rsp, err := c.AuthLogoutWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseAuthLogoutClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetRealtimeConfigClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +func (c *ClientWithResponses) AuthLogoutWithResponse(ctx context.Context, body AuthLogoutJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthLogoutClientResponse, error) { + rsp, err := c.AuthLogout(ctx, body, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseAuthLogoutClientResponse(rsp) } -type UpdateRealtimeConfigClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *RealtimeConfig - JSON400 *Error - JSON401 *Error +// AuthOAuthExchangeWithBodyWithResponse request with arbitrary body returning *AuthOAuthExchangeClientResponse +func (c *ClientWithResponses) AuthOAuthExchangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthOAuthExchangeClientResponse, error) { + rsp, err := c.AuthOAuthExchangeWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAuthOAuthExchangeClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r UpdateRealtimeConfigClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) AuthOAuthExchangeWithResponse(ctx context.Context, body AuthOAuthExchangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthOAuthExchangeClientResponse, error) { + rsp, err := c.AuthOAuthExchange(ctx, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseAuthOAuthExchangeClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateRealtimeConfigClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// AuthListOAuthProvidersWithResponse request returning *AuthListOAuthProvidersClientResponse +func (c *ClientWithResponses) AuthListOAuthProvidersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthListOAuthProvidersClientResponse, error) { + rsp, err := c.AuthListOAuthProviders(ctx, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseAuthListOAuthProvidersClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateRealtimeConfigClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// AuthOAuthAuthorizeWithResponse request returning *AuthOAuthAuthorizeClientResponse +func (c *ClientWithResponses) AuthOAuthAuthorizeWithResponse(ctx context.Context, provider AuthOAuthAuthorizeParamsProvider, params *AuthOAuthAuthorizeParams, reqEditors ...RequestEditorFn) (*AuthOAuthAuthorizeClientResponse, error) { + rsp, err := c.AuthOAuthAuthorize(ctx, provider, params, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseAuthOAuthAuthorizeClientResponse(rsp) } -type GetRealtimeStatsClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *RealtimeStats - JSON401 *Error +// CallOAuthProviderAPIWithBodyWithResponse request with arbitrary body returning *CallOAuthProviderAPIClientResponse +func (c *ClientWithResponses) CallOAuthProviderAPIWithBodyWithResponse(ctx context.Context, provider CallOAuthProviderAPIParamsProvider, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CallOAuthProviderAPIClientResponse, error) { + rsp, err := c.CallOAuthProviderAPIWithBody(ctx, provider, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCallOAuthProviderAPIClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r GetRealtimeStatsClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) CallOAuthProviderAPIWithResponse(ctx context.Context, provider CallOAuthProviderAPIParamsProvider, body CallOAuthProviderAPIJSONRequestBody, reqEditors ...RequestEditorFn) (*CallOAuthProviderAPIClientResponse, error) { + rsp, err := c.CallOAuthProviderAPI(ctx, provider, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseCallOAuthProviderAPIClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetRealtimeStatsClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// AuthOAuthCallbackWithResponse request returning *AuthOAuthCallbackClientResponse +func (c *ClientWithResponses) AuthOAuthCallbackWithResponse(ctx context.Context, provider AuthOAuthCallbackParamsProvider, params *AuthOAuthCallbackParams, reqEditors ...RequestEditorFn) (*AuthOAuthCallbackClientResponse, error) { + rsp, err := c.AuthOAuthCallback(ctx, provider, params, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseAuthOAuthCallbackClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetRealtimeStatsClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// AuthLinkOAuthProviderWithResponse request returning *AuthLinkOAuthProviderClientResponse +func (c *ClientWithResponses) AuthLinkOAuthProviderWithResponse(ctx context.Context, provider AuthLinkOAuthProviderParamsProvider, params *AuthLinkOAuthProviderParams, reqEditors ...RequestEditorFn) (*AuthLinkOAuthProviderClientResponse, error) { + rsp, err := c.AuthLinkOAuthProvider(ctx, provider, params, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseAuthLinkOAuthProviderClientResponse(rsp) } -type ListProjectSchedulersClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *FunctionSchedulerListResponse +// RefreshOAuthProviderTokenWithResponse request returning *RefreshOAuthProviderTokenClientResponse +func (c *ClientWithResponses) RefreshOAuthProviderTokenWithResponse(ctx context.Context, provider RefreshOAuthProviderTokenParamsProvider, reqEditors ...RequestEditorFn) (*RefreshOAuthProviderTokenClientResponse, error) { + rsp, err := c.RefreshOAuthProviderToken(ctx, provider, reqEditors...) + if err != nil { + return nil, err + } + return ParseRefreshOAuthProviderTokenClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r ListProjectSchedulersClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetOAuthProviderTokenWithResponse request returning *GetOAuthProviderTokenClientResponse +func (c *ClientWithResponses) GetOAuthProviderTokenWithResponse(ctx context.Context, provider GetOAuthProviderTokenParamsProvider, reqEditors ...RequestEditorFn) (*GetOAuthProviderTokenClientResponse, error) { + rsp, err := c.GetOAuthProviderToken(ctx, provider, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetOAuthProviderTokenClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListProjectSchedulersClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// AuthUnlinkOAuthProviderWithResponse request returning *AuthUnlinkOAuthProviderClientResponse +func (c *ClientWithResponses) AuthUnlinkOAuthProviderWithResponse(ctx context.Context, provider AuthUnlinkOAuthProviderParamsProvider, reqEditors ...RequestEditorFn) (*AuthUnlinkOAuthProviderClientResponse, error) { + rsp, err := c.AuthUnlinkOAuthProvider(ctx, provider, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseAuthUnlinkOAuthProviderClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListProjectSchedulersClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// AuthGetPasswordPolicyWithResponse request returning *AuthGetPasswordPolicyClientResponse +func (c *ClientWithResponses) AuthGetPasswordPolicyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthGetPasswordPolicyClientResponse, error) { + rsp, err := c.AuthGetPasswordPolicy(ctx, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseAuthGetPasswordPolicyClientResponse(rsp) } -type ListServiceKeysClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *PaginatedServiceKeys +// AuthPlatformExchangeWithBodyWithResponse request with arbitrary body returning *AuthPlatformExchangeClientResponse +func (c *ClientWithResponses) AuthPlatformExchangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthPlatformExchangeClientResponse, error) { + rsp, err := c.AuthPlatformExchangeWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAuthPlatformExchangeClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r ListServiceKeysClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) AuthPlatformExchangeWithResponse(ctx context.Context, body AuthPlatformExchangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthPlatformExchangeClientResponse, error) { + rsp, err := c.AuthPlatformExchange(ctx, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseAuthPlatformExchangeClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListServiceKeysClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// AuthRefreshWithBodyWithResponse request with arbitrary body returning *AuthRefreshClientResponse +func (c *ClientWithResponses) AuthRefreshWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthRefreshClientResponse, error) { + rsp, err := c.AuthRefreshWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseAuthRefreshClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListServiceKeysClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +func (c *ClientWithResponses) AuthRefreshWithResponse(ctx context.Context, body AuthRefreshJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRefreshClientResponse, error) { + rsp, err := c.AuthRefresh(ctx, body, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseAuthRefreshClientResponse(rsp) } -type CreateServiceKeyClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *ServiceKey +// AuthResendConfirmationWithBodyWithResponse request with arbitrary body returning *AuthResendConfirmationClientResponse +func (c *ClientWithResponses) AuthResendConfirmationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthResendConfirmationClientResponse, error) { + rsp, err := c.AuthResendConfirmationWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAuthResendConfirmationClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r CreateServiceKeyClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) AuthResendConfirmationWithResponse(ctx context.Context, body AuthResendConfirmationJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthResendConfirmationClientResponse, error) { + rsp, err := c.AuthResendConfirmation(ctx, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseAuthResendConfirmationClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r CreateServiceKeyClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// AuthResetPasswordWithBodyWithResponse request with arbitrary body returning *AuthResetPasswordClientResponse +func (c *ClientWithResponses) AuthResetPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthResetPasswordClientResponse, error) { + rsp, err := c.AuthResetPasswordWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseAuthResetPasswordClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateServiceKeyClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +func (c *ClientWithResponses) AuthResetPasswordWithResponse(ctx context.Context, body AuthResetPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthResetPasswordClientResponse, error) { + rsp, err := c.AuthResetPassword(ctx, body, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseAuthResetPasswordClientResponse(rsp) } -type DeleteServiceKeyClientResponse struct { - Body []byte - HTTPResponse *http.Response +// AuthSigninWithBodyWithResponse request with arbitrary body returning *AuthSigninClientResponse +func (c *ClientWithResponses) AuthSigninWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthSigninClientResponse, error) { + rsp, err := c.AuthSigninWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAuthSigninClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r DeleteServiceKeyClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) AuthSigninWithResponse(ctx context.Context, body AuthSigninJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthSigninClientResponse, error) { + rsp, err := c.AuthSignin(ctx, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseAuthSigninClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteServiceKeyClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// AuthSignupWithBodyWithResponse request with arbitrary body returning *AuthSignupClientResponse +func (c *ClientWithResponses) AuthSignupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthSignupClientResponse, error) { + rsp, err := c.AuthSignupWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseAuthSignupClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteServiceKeyClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +func (c *ClientWithResponses) AuthSignupWithResponse(ctx context.Context, body AuthSignupJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthSignupClientResponse, error) { + rsp, err := c.AuthSignup(ctx, body, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseAuthSignupClientResponse(rsp) } -type GetServiceKeyClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ServiceKey +// AuthSignupAnonymousWithBodyWithResponse request with arbitrary body returning *AuthSignupAnonymousClientResponse +func (c *ClientWithResponses) AuthSignupAnonymousWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthSignupAnonymousClientResponse, error) { + rsp, err := c.AuthSignupAnonymousWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAuthSignupAnonymousClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r GetServiceKeyClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) AuthSignupAnonymousWithResponse(ctx context.Context, body AuthSignupAnonymousJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthSignupAnonymousClientResponse, error) { + rsp, err := c.AuthSignupAnonymous(ctx, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseAuthSignupAnonymousClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetServiceKeyClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// AuthGetUserWithResponse request returning *AuthGetUserClientResponse +func (c *ClientWithResponses) AuthGetUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthGetUserClientResponse, error) { + rsp, err := c.AuthGetUser(ctx, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseAuthGetUserClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetServiceKeyClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// AuthUpdateUserWithBodyWithResponse request with arbitrary body returning *AuthUpdateUserClientResponse +func (c *ClientWithResponses) AuthUpdateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthUpdateUserClientResponse, error) { + rsp, err := c.AuthUpdateUserWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseAuthUpdateUserClientResponse(rsp) } -type RegenerateServiceKeyClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ServiceKey +func (c *ClientWithResponses) AuthUpdateUserWithResponse(ctx context.Context, body AuthUpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthUpdateUserClientResponse, error) { + rsp, err := c.AuthUpdateUser(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAuthUpdateUserClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r RegenerateServiceKeyClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// AuthCancelEmailChangeWithResponse request returning *AuthCancelEmailChangeClientResponse +func (c *ClientWithResponses) AuthCancelEmailChangeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthCancelEmailChangeClientResponse, error) { + rsp, err := c.AuthCancelEmailChange(ctx, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseAuthCancelEmailChangeClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r RegenerateServiceKeyClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// AuthRequestEmailChangeWithBodyWithResponse request with arbitrary body returning *AuthRequestEmailChangeClientResponse +func (c *ClientWithResponses) AuthRequestEmailChangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthRequestEmailChangeClientResponse, error) { + rsp, err := c.AuthRequestEmailChangeWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseAuthRequestEmailChangeClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RegenerateServiceKeyClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +func (c *ClientWithResponses) AuthRequestEmailChangeWithResponse(ctx context.Context, body AuthRequestEmailChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRequestEmailChangeClientResponse, error) { + rsp, err := c.AuthRequestEmailChange(ctx, body, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseAuthRequestEmailChangeClientResponse(rsp) } -type ListStorageBucketsClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListStorageBuckets200JSONResponseBody +// AuthConfirmEmailChangeWithBodyWithResponse request with arbitrary body returning *AuthConfirmEmailChangeClientResponse +func (c *ClientWithResponses) AuthConfirmEmailChangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthConfirmEmailChangeClientResponse, error) { + rsp, err := c.AuthConfirmEmailChangeWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAuthConfirmEmailChangeClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r ListStorageBucketsClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) AuthConfirmEmailChangeWithResponse(ctx context.Context, body AuthConfirmEmailChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthConfirmEmailChangeClientResponse, error) { + rsp, err := c.AuthConfirmEmailChange(ctx, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseAuthConfirmEmailChangeClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListStorageBucketsClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// AuthConvertAnonymousWithBodyWithResponse request with arbitrary body returning *AuthConvertAnonymousClientResponse +func (c *ClientWithResponses) AuthConvertAnonymousWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthConvertAnonymousClientResponse, error) { + rsp, err := c.AuthConvertAnonymousWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseAuthConvertAnonymousClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListStorageBucketsClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +func (c *ClientWithResponses) AuthConvertAnonymousWithResponse(ctx context.Context, body AuthConvertAnonymousJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthConvertAnonymousClientResponse, error) { + rsp, err := c.AuthConvertAnonymous(ctx, body, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseAuthConvertAnonymousClientResponse(rsp) } -type CreateStorageBucketClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *StorageBucket +// AuthListIdentitiesWithResponse request returning *AuthListIdentitiesClientResponse +func (c *ClientWithResponses) AuthListIdentitiesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthListIdentitiesClientResponse, error) { + rsp, err := c.AuthListIdentities(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseAuthListIdentitiesClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r CreateStorageBucketClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// AuthUnlinkIdentityWithResponse request returning *AuthUnlinkIdentityClientResponse +func (c *ClientWithResponses) AuthUnlinkIdentityWithResponse(ctx context.Context, identityId openapi_types.UUID, reqEditors ...RequestEditorFn) (*AuthUnlinkIdentityClientResponse, error) { + rsp, err := c.AuthUnlinkIdentity(ctx, identityId, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseAuthUnlinkIdentityClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r CreateStorageBucketClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// AuthListMethodsWithResponse request returning *AuthListMethodsClientResponse +func (c *ClientWithResponses) AuthListMethodsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthListMethodsClientResponse, error) { + rsp, err := c.AuthListMethods(ctx, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseAuthListMethodsClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateStorageBucketClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// AuthPromoteMethodWithResponse request returning *AuthPromoteMethodClientResponse +func (c *ClientWithResponses) AuthPromoteMethodWithResponse(ctx context.Context, methodId openapi_types.UUID, reqEditors ...RequestEditorFn) (*AuthPromoteMethodClientResponse, error) { + rsp, err := c.AuthPromoteMethod(ctx, methodId, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseAuthPromoteMethodClientResponse(rsp) } -type DeleteStorageBucketClientResponse struct { - Body []byte - HTTPResponse *http.Response +// AuthDeleteAllMySessionsWithResponse request returning *AuthDeleteAllMySessionsClientResponse +func (c *ClientWithResponses) AuthDeleteAllMySessionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthDeleteAllMySessionsClientResponse, error) { + rsp, err := c.AuthDeleteAllMySessions(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseAuthDeleteAllMySessionsClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r DeleteStorageBucketClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// AuthGetMySessionsWithResponse request returning *AuthGetMySessionsClientResponse +func (c *ClientWithResponses) AuthGetMySessionsWithResponse(ctx context.Context, params *AuthGetMySessionsParams, reqEditors ...RequestEditorFn) (*AuthGetMySessionsClientResponse, error) { + rsp, err := c.AuthGetMySessions(ctx, params, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseAuthGetMySessionsClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteStorageBucketClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// AuthDeleteMySessionWithResponse request returning *AuthDeleteMySessionClientResponse +func (c *ClientWithResponses) AuthDeleteMySessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*AuthDeleteMySessionClientResponse, error) { + rsp, err := c.AuthDeleteMySession(ctx, sessionId, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseAuthDeleteMySessionClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteStorageBucketClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// ListPostgresVersionsWithResponse request returning *ListPostgresVersionsClientResponse +func (c *ClientWithResponses) ListPostgresVersionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListPostgresVersionsClientResponse, error) { + rsp, err := c.ListPostgresVersions(ctx, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseListPostgresVersionsClientResponse(rsp) } -type GetStorageBucketClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *StorageBucket +// ListDatabaseRegionsWithResponse request returning *ListDatabaseRegionsClientResponse +func (c *ClientWithResponses) ListDatabaseRegionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListDatabaseRegionsClientResponse, error) { + rsp, err := c.ListDatabaseRegions(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseListDatabaseRegionsClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r GetStorageBucketClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// QueryDatabaseBranchDeleteWithBodyWithResponse request with arbitrary body returning *QueryDatabaseBranchDeleteClientResponse +func (c *ClientWithResponses) QueryDatabaseBranchDeleteWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchDeleteClientResponse, error) { + rsp, err := c.QueryDatabaseBranchDeleteWithBody(ctx, databaseName, branchName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseQueryDatabaseBranchDeleteClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetStorageBucketClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) QueryDatabaseBranchDeleteWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchDeleteClientResponse, error) { + rsp, err := c.QueryDatabaseBranchDelete(ctx, databaseName, branchName, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseQueryDatabaseBranchDeleteClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetStorageBucketClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// QueryDatabaseBranchInsertWithBodyWithResponse request with arbitrary body returning *QueryDatabaseBranchInsertClientResponse +func (c *ClientWithResponses) QueryDatabaseBranchInsertWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchInsertClientResponse, error) { + rsp, err := c.QueryDatabaseBranchInsertWithBody(ctx, databaseName, branchName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseQueryDatabaseBranchInsertClientResponse(rsp) } -type UpdateStorageBucketClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *StorageBucket +func (c *ClientWithResponses) QueryDatabaseBranchInsertWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchInsertJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchInsertClientResponse, error) { + rsp, err := c.QueryDatabaseBranchInsert(ctx, databaseName, branchName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseQueryDatabaseBranchInsertClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r UpdateStorageBucketClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// QueryDatabaseBranchPingWithResponse request returning *QueryDatabaseBranchPingClientResponse +func (c *ClientWithResponses) QueryDatabaseBranchPingWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchPingClientResponse, error) { + rsp, err := c.QueryDatabaseBranchPing(ctx, databaseName, branchName, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseQueryDatabaseBranchPingClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateStorageBucketClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// QueryDatabaseBranchSelectWithBodyWithResponse request with arbitrary body returning *QueryDatabaseBranchSelectClientResponse +func (c *ClientWithResponses) QueryDatabaseBranchSelectWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchSelectClientResponse, error) { + rsp, err := c.QueryDatabaseBranchSelectWithBody(ctx, databaseName, branchName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseQueryDatabaseBranchSelectClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateStorageBucketClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +func (c *ClientWithResponses) QueryDatabaseBranchSelectWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchSelectJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchSelectClientResponse, error) { + rsp, err := c.QueryDatabaseBranchSelect(ctx, databaseName, branchName, body, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseQueryDatabaseBranchSelectClientResponse(rsp) } -type ListStoragePoliciesClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *[]StoragePolicy +// QueryDatabaseBranchUpdateWithBodyWithResponse request with arbitrary body returning *QueryDatabaseBranchUpdateClientResponse +func (c *ClientWithResponses) QueryDatabaseBranchUpdateWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchUpdateClientResponse, error) { + rsp, err := c.QueryDatabaseBranchUpdateWithBody(ctx, databaseName, branchName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseQueryDatabaseBranchUpdateClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r ListStoragePoliciesClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) QueryDatabaseBranchUpdateWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchUpdateClientResponse, error) { + rsp, err := c.QueryDatabaseBranchUpdate(ctx, databaseName, branchName, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseQueryDatabaseBranchUpdateClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListStoragePoliciesClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// QueryDatabaseDeleteWithBodyWithResponse request with arbitrary body returning *QueryDatabaseDeleteClientResponse +func (c *ClientWithResponses) QueryDatabaseDeleteWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseDeleteClientResponse, error) { + rsp, err := c.QueryDatabaseDeleteWithBody(ctx, databaseName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseQueryDatabaseDeleteClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListStoragePoliciesClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +func (c *ClientWithResponses) QueryDatabaseDeleteWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseDeleteClientResponse, error) { + rsp, err := c.QueryDatabaseDelete(ctx, databaseName, body, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseQueryDatabaseDeleteClientResponse(rsp) } -type CreateStoragePolicyClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *StoragePolicy +// QueryDatabaseInsertWithBodyWithResponse request with arbitrary body returning *QueryDatabaseInsertClientResponse +func (c *ClientWithResponses) QueryDatabaseInsertWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseInsertClientResponse, error) { + rsp, err := c.QueryDatabaseInsertWithBody(ctx, databaseName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseQueryDatabaseInsertClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r CreateStoragePolicyClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) QueryDatabaseInsertWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseInsertJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseInsertClientResponse, error) { + rsp, err := c.QueryDatabaseInsert(ctx, databaseName, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseQueryDatabaseInsertClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r CreateStoragePolicyClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// QueryDatabasePingWithResponse request returning *QueryDatabasePingClientResponse +func (c *ClientWithResponses) QueryDatabasePingWithResponse(ctx context.Context, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*QueryDatabasePingClientResponse, error) { + rsp, err := c.QueryDatabasePing(ctx, databaseName, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseQueryDatabasePingClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateStoragePolicyClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// QueryDatabaseSelectWithBodyWithResponse request with arbitrary body returning *QueryDatabaseSelectClientResponse +func (c *ClientWithResponses) QueryDatabaseSelectWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseSelectClientResponse, error) { + rsp, err := c.QueryDatabaseSelectWithBody(ctx, databaseName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseQueryDatabaseSelectClientResponse(rsp) } -type DeleteStoragePolicyClientResponse struct { - Body []byte - HTTPResponse *http.Response +func (c *ClientWithResponses) QueryDatabaseSelectWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseSelectJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseSelectClientResponse, error) { + rsp, err := c.QueryDatabaseSelect(ctx, databaseName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseQueryDatabaseSelectClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r DeleteStoragePolicyClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// QueryDatabaseUpdateWithBodyWithResponse request with arbitrary body returning *QueryDatabaseUpdateClientResponse +func (c *ClientWithResponses) QueryDatabaseUpdateWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseUpdateClientResponse, error) { + rsp, err := c.QueryDatabaseUpdateWithBody(ctx, databaseName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseQueryDatabaseUpdateClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteStoragePolicyClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) QueryDatabaseUpdateWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseUpdateClientResponse, error) { + rsp, err := c.QueryDatabaseUpdate(ctx, databaseName, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseQueryDatabaseUpdateClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteStoragePolicyClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// ListDeploymentsWithResponse request returning *ListDeploymentsClientResponse +func (c *ClientWithResponses) ListDeploymentsWithResponse(ctx context.Context, params *ListDeploymentsParams, reqEditors ...RequestEditorFn) (*ListDeploymentsClientResponse, error) { + rsp, err := c.ListDeployments(ctx, params, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseListDeploymentsClientResponse(rsp) } -type ListStorageObjectsAdminClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Data *[]StorageObjectWithBucket `json:"data,omitempty"` - HasMore *bool `json:"has_more,omitempty"` - Limit *int `json:"limit,omitempty"` - - // NextCursor Opaque cursor for the next page (cursor pagination only) - NextCursor *string `json:"next_cursor,omitempty"` - Page *int `json:"page,omitempty"` +// StartDurableExecutionFromApplicationWithBodyWithResponse request with arbitrary body returning *StartDurableExecutionFromApplicationClientResponse +func (c *ClientWithResponses) StartDurableExecutionFromApplicationWithBodyWithResponse(ctx context.Context, functionId DurableFunctionId, params *StartDurableExecutionFromApplicationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartDurableExecutionFromApplicationClientResponse, error) { + rsp, err := c.StartDurableExecutionFromApplicationWithBody(ctx, functionId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseStartDurableExecutionFromApplicationClientResponse(rsp) +} - // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`. - PrevCursor *string `json:"prev_cursor,omitempty"` - Total *int `json:"total,omitempty"` +func (c *ClientWithResponses) StartDurableExecutionFromApplicationWithResponse(ctx context.Context, functionId DurableFunctionId, params *StartDurableExecutionFromApplicationParams, body StartDurableExecutionFromApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*StartDurableExecutionFromApplicationClientResponse, error) { + rsp, err := c.StartDurableExecutionFromApplication(ctx, functionId, params, body, reqEditors...) + if err != nil { + return nil, err } + return ParseStartDurableExecutionFromApplicationClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r ListStorageObjectsAdminClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetDefaultEmailTemplatesWithResponse request returning *GetDefaultEmailTemplatesClientResponse +func (c *ClientWithResponses) GetDefaultEmailTemplatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDefaultEmailTemplatesClientResponse, error) { + rsp, err := c.GetDefaultEmailTemplates(ctx, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetDefaultEmailTemplatesClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListStorageObjectsAdminClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// GetDefaultEmailTemplateWithResponse request returning *GetDefaultEmailTemplateClientResponse +func (c *ClientWithResponses) GetDefaultEmailTemplateWithResponse(ctx context.Context, pType GetDefaultEmailTemplateParamsType, reqEditors ...RequestEditorFn) (*GetDefaultEmailTemplateClientResponse, error) { + rsp, err := c.GetDefaultEmailTemplate(ctx, pType, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseGetDefaultEmailTemplateClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListStorageObjectsAdminClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// ListFunctionRegionsWithResponse request returning *ListFunctionRegionsClientResponse +func (c *ClientWithResponses) ListFunctionRegionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListFunctionRegionsClientResponse, error) { + rsp, err := c.ListFunctionRegions(ctx, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseListFunctionRegionsClientResponse(rsp) } -type GetStorageStatsClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *StorageStats +// ResolveFunctionForInvocationWithResponse request returning *ResolveFunctionForInvocationClientResponse +func (c *ClientWithResponses) ResolveFunctionForInvocationWithResponse(ctx context.Context, params *ResolveFunctionForInvocationParams, reqEditors ...RequestEditorFn) (*ResolveFunctionForInvocationClientResponse, error) { + rsp, err := c.ResolveFunctionForInvocation(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseResolveFunctionForInvocationClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r GetStorageStatsClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ListFunctionRuntimesWithResponse request returning *ListFunctionRuntimesClientResponse +func (c *ClientWithResponses) ListFunctionRuntimesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListFunctionRuntimesClientResponse, error) { + rsp, err := c.ListFunctionRuntimes(ctx, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseListFunctionRuntimesClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetStorageStatsClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// InvokeFunctionWithBodyWithResponse request with arbitrary body returning *InvokeFunctionClientResponse +func (c *ClientWithResponses) InvokeFunctionWithBodyWithResponse(ctx context.Context, functionId FunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InvokeFunctionClientResponse, error) { + rsp, err := c.InvokeFunctionWithBody(ctx, functionId, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseInvokeFunctionClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetStorageStatsClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +func (c *ClientWithResponses) InvokeFunctionWithResponse(ctx context.Context, functionId FunctionId, body InvokeFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*InvokeFunctionClientResponse, error) { + rsp, err := c.InvokeFunction(ctx, functionId, body, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseInvokeFunctionClientResponse(rsp) } -type GetProjectUsageClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ProjectUsageResponse - JSON403 *Error - JSON404 *Error +// GitConnectCallbackWithResponse request returning *GitConnectCallbackClientResponse +func (c *ClientWithResponses) GitConnectCallbackWithResponse(ctx context.Context, params *GitConnectCallbackParams, reqEditors ...RequestEditorFn) (*GitConnectCallbackClientResponse, error) { + rsp, err := c.GitConnectCallback(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGitConnectCallbackClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r GetProjectUsageClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// HealthCheckWithResponse request returning *HealthCheckClientResponse +func (c *ClientWithResponses) HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckClientResponse, error) { + rsp, err := c.HealthCheck(ctx, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseHealthCheckClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetProjectUsageClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// CompleteImportConnectWithResponse request returning *CompleteImportConnectClientResponse +func (c *ClientWithResponses) CompleteImportConnectWithResponse(ctx context.Context, provider ImportProvider, params *CompleteImportConnectParams, reqEditors ...RequestEditorFn) (*CompleteImportConnectClientResponse, error) { + rsp, err := c.CompleteImportConnect(ctx, provider, params, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseCompleteImportConnectClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetProjectUsageClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// PreflightProjectImportWithBodyWithResponse request with arbitrary body returning *PreflightProjectImportClientResponse +func (c *ClientWithResponses) PreflightProjectImportWithBodyWithResponse(ctx context.Context, provider ImportProvider, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PreflightProjectImportClientResponse, error) { + rsp, err := c.PreflightProjectImportWithBody(ctx, provider, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParsePreflightProjectImportClientResponse(rsp) } -type ListVariablesClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *PaginatedVariables - JSON404 *Error +func (c *ClientWithResponses) PreflightProjectImportWithResponse(ctx context.Context, provider ImportProvider, body PreflightProjectImportJSONRequestBody, reqEditors ...RequestEditorFn) (*PreflightProjectImportClientResponse, error) { + rsp, err := c.PreflightProjectImport(ctx, provider, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePreflightProjectImportClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r ListVariablesClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// StartProjectImportWithBodyWithResponse request with arbitrary body returning *StartProjectImportClientResponse +func (c *ClientWithResponses) StartProjectImportWithBodyWithResponse(ctx context.Context, provider ImportProvider, params *StartProjectImportParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartProjectImportClientResponse, error) { + rsp, err := c.StartProjectImportWithBody(ctx, provider, params, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseStartProjectImportClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListVariablesClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) StartProjectImportWithResponse(ctx context.Context, provider ImportProvider, params *StartProjectImportParams, body StartProjectImportJSONRequestBody, reqEditors ...RequestEditorFn) (*StartProjectImportClientResponse, error) { + rsp, err := c.StartProjectImport(ctx, provider, params, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseStartProjectImportClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListVariablesClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// GetProjectImportRunWithResponse request returning *GetProjectImportRunClientResponse +func (c *ClientWithResponses) GetProjectImportRunWithResponse(ctx context.Context, provider ImportProvider, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectImportRunClientResponse, error) { + rsp, err := c.GetProjectImportRun(ctx, provider, runId, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseGetProjectImportRunClientResponse(rsp) } -type CreateVariableClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Variable - JSON400 *Error +// ListImportSourcesWithResponse request returning *ListImportSourcesClientResponse +func (c *ClientWithResponses) ListImportSourcesWithResponse(ctx context.Context, provider ImportProvider, params *ListImportSourcesParams, reqEditors ...RequestEditorFn) (*ListImportSourcesClientResponse, error) { + rsp, err := c.ListImportSources(ctx, provider, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListImportSourcesClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r CreateVariableClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ForceReleaseProjectLockWithResponse request returning *ForceReleaseProjectLockClientResponse +func (c *ClientWithResponses) ForceReleaseProjectLockWithResponse(ctx context.Context, key LockKey, params *ForceReleaseProjectLockParams, reqEditors ...RequestEditorFn) (*ForceReleaseProjectLockClientResponse, error) { + rsp, err := c.ForceReleaseProjectLock(ctx, key, params, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseForceReleaseProjectLockClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r CreateVariableClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// GetProjectLockWithResponse request returning *GetProjectLockClientResponse +func (c *ClientWithResponses) GetProjectLockWithResponse(ctx context.Context, key LockKey, params *GetProjectLockParams, reqEditors ...RequestEditorFn) (*GetProjectLockClientResponse, error) { + rsp, err := c.GetProjectLock(ctx, key, params, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseGetProjectLockClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateVariableClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// ReleaseProjectLockWithResponse request returning *ReleaseProjectLockClientResponse +func (c *ClientWithResponses) ReleaseProjectLockWithResponse(ctx context.Context, key LockKey, params *ReleaseProjectLockParams, reqEditors ...RequestEditorFn) (*ReleaseProjectLockClientResponse, error) { + rsp, err := c.ReleaseProjectLock(ctx, key, params, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseReleaseProjectLockClientResponse(rsp) } -type DeleteVariableClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON404 *Error +// RenewProjectLockWithBodyWithResponse request with arbitrary body returning *RenewProjectLockClientResponse +func (c *ClientWithResponses) RenewProjectLockWithBodyWithResponse(ctx context.Context, key LockKey, params *RenewProjectLockParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenewProjectLockClientResponse, error) { + rsp, err := c.RenewProjectLockWithBody(ctx, key, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseRenewProjectLockClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r DeleteVariableClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) RenewProjectLockWithResponse(ctx context.Context, key LockKey, params *RenewProjectLockParams, body RenewProjectLockJSONRequestBody, reqEditors ...RequestEditorFn) (*RenewProjectLockClientResponse, error) { + rsp, err := c.RenewProjectLock(ctx, key, params, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseRenewProjectLockClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteVariableClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// AcquireProjectLockWithBodyWithResponse request with arbitrary body returning *AcquireProjectLockClientResponse +func (c *ClientWithResponses) AcquireProjectLockWithBodyWithResponse(ctx context.Context, key LockKey, params *AcquireProjectLockParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AcquireProjectLockClientResponse, error) { + rsp, err := c.AcquireProjectLockWithBody(ctx, key, params, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseAcquireProjectLockClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteVariableClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +func (c *ClientWithResponses) AcquireProjectLockWithResponse(ctx context.Context, key LockKey, params *AcquireProjectLockParams, body AcquireProjectLockJSONRequestBody, reqEditors ...RequestEditorFn) (*AcquireProjectLockClientResponse, error) { + rsp, err := c.AcquireProjectLock(ctx, key, params, body, reqEditors...) + if err != nil { + return nil, err } - return "" -} - -type GetVariableClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Variable - JSON404 *Error + return ParseAcquireProjectLockClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r GetVariableClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// CallMCPWithBodyWithResponse request with arbitrary body returning *CallMCPClientResponse +func (c *ClientWithResponses) CallMCPWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CallMCPClientResponse, error) { + rsp, err := c.CallMCPWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseCallMCPClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetVariableClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) CallMCPWithResponse(ctx context.Context, body CallMCPJSONRequestBody, reqEditors ...RequestEditorFn) (*CallMCPClientResponse, error) { + rsp, err := c.CallMCP(ctx, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseCallMCPClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetVariableClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// GetOpenAPISpecJSONWithResponse request returning *GetOpenAPISpecJSONClientResponse +func (c *ClientWithResponses) GetOpenAPISpecJSONWithResponse(ctx context.Context, params *GetOpenAPISpecJSONParams, reqEditors ...RequestEditorFn) (*GetOpenAPISpecJSONClientResponse, error) { + rsp, err := c.GetOpenAPISpecJSON(ctx, params, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseGetOpenAPISpecJSONClientResponse(rsp) } -type UpdateVariableClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Variable - JSON404 *Error +// HeadOpenAPISpecJSONWithResponse request returning *HeadOpenAPISpecJSONClientResponse +func (c *ClientWithResponses) HeadOpenAPISpecJSONWithResponse(ctx context.Context, params *HeadOpenAPISpecJSONParams, reqEditors ...RequestEditorFn) (*HeadOpenAPISpecJSONClientResponse, error) { + rsp, err := c.HeadOpenAPISpecJSON(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseHeadOpenAPISpecJSONClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r UpdateVariableClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetOpenAPISpecYAMLWithResponse request returning *GetOpenAPISpecYAMLClientResponse +func (c *ClientWithResponses) GetOpenAPISpecYAMLWithResponse(ctx context.Context, params *GetOpenAPISpecYAMLParams, reqEditors ...RequestEditorFn) (*GetOpenAPISpecYAMLClientResponse, error) { + rsp, err := c.GetOpenAPISpecYAML(ctx, params, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetOpenAPISpecYAMLClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateVariableClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// HeadOpenAPISpecYAMLWithResponse request returning *HeadOpenAPISpecYAMLClientResponse +func (c *ClientWithResponses) HeadOpenAPISpecYAMLWithResponse(ctx context.Context, params *HeadOpenAPISpecYAMLParams, reqEditors ...RequestEditorFn) (*HeadOpenAPISpecYAMLClientResponse, error) { + rsp, err := c.HeadOpenAPISpecYAML(ctx, params, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseHeadOpenAPISpecYAMLClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateVariableClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// ListProjectsWithResponse request returning *ListProjectsClientResponse +func (c *ClientWithResponses) ListProjectsWithResponse(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*ListProjectsClientResponse, error) { + rsp, err := c.ListProjects(ctx, params, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseListProjectsClientResponse(rsp) } -type DownloadPublicFileClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON429 *BandwidthCapExceeded +// CreateProjectWithBodyWithResponse request with arbitrary body returning *CreateProjectClientResponse +func (c *ClientWithResponses) CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectClientResponse, error) { + rsp, err := c.CreateProjectWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateProjectClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r DownloadPublicFileClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectClientResponse, error) { + rsp, err := c.CreateProject(ctx, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseCreateProjectClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DownloadPublicFileClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// DeleteProjectWithResponse request returning *DeleteProjectClientResponse +func (c *ClientWithResponses) DeleteProjectWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*DeleteProjectClientResponse, error) { + rsp, err := c.DeleteProject(ctx, id, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseDeleteProjectClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DownloadPublicFileClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// GetProjectWithResponse request returning *GetProjectClientResponse +func (c *ClientWithResponses) GetProjectWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectClientResponse, error) { + rsp, err := c.GetProject(ctx, id, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseGetProjectClientResponse(rsp) } -type ListStorageObjectsClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *StorageListResponse - JSON429 *BandwidthCapExceeded +// UpdateProjectWithBodyWithResponse request with arbitrary body returning *UpdateProjectClientResponse +func (c *ClientWithResponses) UpdateProjectWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectClientResponse, error) { + rsp, err := c.UpdateProjectWithBody(ctx, id, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateProjectClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r ListStorageObjectsClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) UpdateProjectWithResponse(ctx context.Context, id ProjectId, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectClientResponse, error) { + rsp, err := c.UpdateProject(ctx, id, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseUpdateProjectClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListStorageObjectsClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// ListProjectAccessTokensWithResponse request returning *ListProjectAccessTokensClientResponse +func (c *ClientWithResponses) ListProjectAccessTokensWithResponse(ctx context.Context, id ProjectId, params *ListProjectAccessTokensParams, reqEditors ...RequestEditorFn) (*ListProjectAccessTokensClientResponse, error) { + rsp, err := c.ListProjectAccessTokens(ctx, id, params, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseListProjectAccessTokensClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListStorageObjectsClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// CreateProjectAccessTokenWithBodyWithResponse request with arbitrary body returning *CreateProjectAccessTokenClientResponse +func (c *ClientWithResponses) CreateProjectAccessTokenWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectAccessTokenClientResponse, error) { + rsp, err := c.CreateProjectAccessTokenWithBody(ctx, id, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseCreateProjectAccessTokenClientResponse(rsp) } -type CopyStorageObjectClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *StorageObject - JSON429 *BandwidthCapExceeded +func (c *ClientWithResponses) CreateProjectAccessTokenWithResponse(ctx context.Context, id ProjectId, body CreateProjectAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectAccessTokenClientResponse, error) { + rsp, err := c.CreateProjectAccessToken(ctx, id, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateProjectAccessTokenClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r CopyStorageObjectClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ListProjectAccessTokensUsageWithResponse request returning *ListProjectAccessTokensUsageClientResponse +func (c *ClientWithResponses) ListProjectAccessTokensUsageWithResponse(ctx context.Context, id ProjectId, params *ListProjectAccessTokensUsageParams, reqEditors ...RequestEditorFn) (*ListProjectAccessTokensUsageClientResponse, error) { + rsp, err := c.ListProjectAccessTokensUsage(ctx, id, params, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseListProjectAccessTokensUsageClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r CopyStorageObjectClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// RevokeProjectAccessTokenWithResponse request returning *RevokeProjectAccessTokenClientResponse +func (c *ClientWithResponses) RevokeProjectAccessTokenWithResponse(ctx context.Context, id ProjectId, tokenId TokenId, reqEditors ...RequestEditorFn) (*RevokeProjectAccessTokenClientResponse, error) { + rsp, err := c.RevokeProjectAccessToken(ctx, id, tokenId, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseRevokeProjectAccessTokenClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CopyStorageObjectClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// GetProjectAccessTokenWithResponse request returning *GetProjectAccessTokenClientResponse +func (c *ClientWithResponses) GetProjectAccessTokenWithResponse(ctx context.Context, id ProjectId, tokenId TokenId, reqEditors ...RequestEditorFn) (*GetProjectAccessTokenClientResponse, error) { + rsp, err := c.GetProjectAccessToken(ctx, id, tokenId, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseGetProjectAccessTokenClientResponse(rsp) } -type MoveStorageObjectClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *StorageObject - JSON429 *BandwidthCapExceeded +// GetProjectAccessTokenUsageWithResponse request returning *GetProjectAccessTokenUsageClientResponse +func (c *ClientWithResponses) GetProjectAccessTokenUsageWithResponse(ctx context.Context, id ProjectId, tokenId TokenId, params *GetProjectAccessTokenUsageParams, reqEditors ...RequestEditorFn) (*GetProjectAccessTokenUsageClientResponse, error) { + rsp, err := c.GetProjectAccessTokenUsage(ctx, id, tokenId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetProjectAccessTokenUsageClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r MoveStorageObjectClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ListAnonKeysWithResponse request returning *ListAnonKeysClientResponse +func (c *ClientWithResponses) ListAnonKeysWithResponse(ctx context.Context, id ProjectId, params *ListAnonKeysParams, reqEditors ...RequestEditorFn) (*ListAnonKeysClientResponse, error) { + rsp, err := c.ListAnonKeys(ctx, id, params, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseListAnonKeysClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r MoveStorageObjectClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// CreateAnonKeyWithBodyWithResponse request with arbitrary body returning *CreateAnonKeyClientResponse +func (c *ClientWithResponses) CreateAnonKeyWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAnonKeyClientResponse, error) { + rsp, err := c.CreateAnonKeyWithBody(ctx, id, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseCreateAnonKeyClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r MoveStorageObjectClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +func (c *ClientWithResponses) CreateAnonKeyWithResponse(ctx context.Context, id ProjectId, body CreateAnonKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAnonKeyClientResponse, error) { + rsp, err := c.CreateAnonKey(ctx, id, body, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseCreateAnonKeyClientResponse(rsp) } -type DeleteStorageObjectClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON429 *BandwidthCapExceeded +// RevokeAnonKeyWithResponse request returning *RevokeAnonKeyClientResponse +func (c *ClientWithResponses) RevokeAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RevokeAnonKeyClientResponse, error) { + rsp, err := c.RevokeAnonKey(ctx, id, keyId, reqEditors...) + if err != nil { + return nil, err + } + return ParseRevokeAnonKeyClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r DeleteStorageObjectClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetAnonKeyWithResponse request returning *GetAnonKeyClientResponse +func (c *ClientWithResponses) GetAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAnonKeyClientResponse, error) { + rsp, err := c.GetAnonKey(ctx, id, keyId, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetAnonKeyClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteStorageObjectClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// RegenerateAnonKeyWithResponse request returning *RegenerateAnonKeyClientResponse +func (c *ClientWithResponses) RegenerateAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RegenerateAnonKeyClientResponse, error) { + rsp, err := c.RegenerateAnonKey(ctx, id, keyId, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseRegenerateAnonKeyClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteStorageObjectClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// SetDefaultAnonKeyWithResponse request returning *SetDefaultAnonKeyClientResponse +func (c *ClientWithResponses) SetDefaultAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*SetDefaultAnonKeyClientResponse, error) { + rsp, err := c.SetDefaultAnonKey(ctx, id, keyId, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseSetDefaultAnonKeyClientResponse(rsp) } -type DownloadStorageObjectClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *UploadSessionStatusResponse - JSON429 *BandwidthCapExceeded +// GetAuthConfigWithResponse request returning *GetAuthConfigClientResponse +func (c *ClientWithResponses) GetAuthConfigWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetAuthConfigClientResponse, error) { + rsp, err := c.GetAuthConfig(ctx, id, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAuthConfigClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r DownloadStorageObjectClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// UpdateAuthConfigWithBodyWithResponse request with arbitrary body returning *UpdateAuthConfigClientResponse +func (c *ClientWithResponses) UpdateAuthConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAuthConfigClientResponse, error) { + rsp, err := c.UpdateAuthConfigWithBody(ctx, id, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseUpdateAuthConfigClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DownloadStorageObjectClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) UpdateAuthConfigWithResponse(ctx context.Context, id ProjectId, body UpdateAuthConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAuthConfigClientResponse, error) { + rsp, err := c.UpdateAuthConfig(ctx, id, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseUpdateAuthConfigClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DownloadStorageObjectClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// TestEmailConfigWithBodyWithResponse request with arbitrary body returning *TestEmailConfigClientResponse +func (c *ClientWithResponses) TestEmailConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestEmailConfigClientResponse, error) { + rsp, err := c.TestEmailConfigWithBody(ctx, id, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseTestEmailConfigClientResponse(rsp) } -type UploadStorageObjectClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *CompleteUploadSessionResponse - JSON201 *UploadStorageObject201JSONResponseBody - JSON429 *BandwidthCapExceeded +func (c *ClientWithResponses) TestEmailConfigWithResponse(ctx context.Context, id ProjectId, body TestEmailConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*TestEmailConfigClientResponse, error) { + rsp, err := c.TestEmailConfig(ctx, id, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseTestEmailConfigClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r UploadStorageObjectClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// RenderDefaultManagedAuthPageWithResponse request returning *RenderDefaultManagedAuthPageClientResponse +func (c *ClientWithResponses) RenderDefaultManagedAuthPageWithResponse(ctx context.Context, id ProjectId, params *RenderDefaultManagedAuthPageParams, reqEditors ...RequestEditorFn) (*RenderDefaultManagedAuthPageClientResponse, error) { + rsp, err := c.RenderDefaultManagedAuthPage(ctx, id, params, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseRenderDefaultManagedAuthPageClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r UploadStorageObjectClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// GetAuthHostedPageWithResponse request returning *GetAuthHostedPageClientResponse +func (c *ClientWithResponses) GetAuthHostedPageWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, reqEditors ...RequestEditorFn) (*GetAuthHostedPageClientResponse, error) { + rsp, err := c.GetAuthHostedPage(ctx, id, pageType, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseGetAuthHostedPageClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UploadStorageObjectClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// UpdateAuthHostedPageWithBodyWithResponse request with arbitrary body returning *UpdateAuthHostedPageClientResponse +func (c *ClientWithResponses) UpdateAuthHostedPageWithBodyWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAuthHostedPageClientResponse, error) { + rsp, err := c.UpdateAuthHostedPageWithBody(ctx, id, pageType, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseUpdateAuthHostedPageClientResponse(rsp) } -type UploadPartClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *UploadSessionPart +func (c *ClientWithResponses) UpdateAuthHostedPageWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, body UpdateAuthHostedPageJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAuthHostedPageClientResponse, error) { + rsp, err := c.UpdateAuthHostedPage(ctx, id, pageType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateAuthHostedPageClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r UploadPartClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// HostedLoginCheckEmailWithBodyWithResponse request with arbitrary body returning *HostedLoginCheckEmailClientResponse +func (c *ClientWithResponses) HostedLoginCheckEmailWithBodyWithResponse(ctx context.Context, id ProjectId, params *HostedLoginCheckEmailParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HostedLoginCheckEmailClientResponse, error) { + rsp, err := c.HostedLoginCheckEmailWithBody(ctx, id, params, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseHostedLoginCheckEmailClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r UploadPartClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) HostedLoginCheckEmailWithResponse(ctx context.Context, id ProjectId, params *HostedLoginCheckEmailParams, body HostedLoginCheckEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*HostedLoginCheckEmailClientResponse, error) { + rsp, err := c.HostedLoginCheckEmail(ctx, id, params, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseHostedLoginCheckEmailClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UploadPartClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// GetHostedLoginOptionsWithResponse request returning *GetHostedLoginOptionsClientResponse +func (c *ClientWithResponses) GetHostedLoginOptionsWithResponse(ctx context.Context, id ProjectId, params *GetHostedLoginOptionsParams, reqEditors ...RequestEditorFn) (*GetHostedLoginOptionsClientResponse, error) { + rsp, err := c.GetHostedLoginOptions(ctx, id, params, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseGetHostedLoginOptionsClientResponse(rsp) } -type UpdateStorageObjectVisibilityClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *StorageObject +// RenderManagedAuthPageWithResponse request returning *RenderManagedAuthPageClientResponse +func (c *ClientWithResponses) RenderManagedAuthPageWithResponse(ctx context.Context, id ProjectId, pageType HostedRenderablePageType, reqEditors ...RequestEditorFn) (*RenderManagedAuthPageClientResponse, error) { + rsp, err := c.RenderManagedAuthPage(ctx, id, pageType, reqEditors...) + if err != nil { + return nil, err + } + return ParseRenderManagedAuthPageClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r UpdateStorageObjectVisibilityClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetAuthInsightsWithResponse request returning *GetAuthInsightsClientResponse +func (c *ClientWithResponses) GetAuthInsightsWithResponse(ctx context.Context, id ProjectId, params *GetAuthInsightsParams, reqEditors ...RequestEditorFn) (*GetAuthInsightsClientResponse, error) { + rsp, err := c.GetAuthInsights(ctx, id, params, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetAuthInsightsClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateStorageObjectVisibilityClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// GetAuthMethodsWithResponse request returning *GetAuthMethodsClientResponse +func (c *ClientWithResponses) GetAuthMethodsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetAuthMethodsClientResponse, error) { + rsp, err := c.GetAuthMethods(ctx, id, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseGetAuthMethodsClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateStorageObjectVisibilityClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// ConfigureAuthMethodsWithBodyWithResponse request with arbitrary body returning *ConfigureAuthMethodsClientResponse +func (c *ClientWithResponses) ConfigureAuthMethodsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfigureAuthMethodsClientResponse, error) { + rsp, err := c.ConfigureAuthMethodsWithBody(ctx, id, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseConfigureAuthMethodsClientResponse(rsp) } -type StartGitConnectClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *GitConnectStartResponse - JSON400 *Error - JSON401 *Error - JSON500 *Error - JSON503 *Error +func (c *ClientWithResponses) ConfigureAuthMethodsWithResponse(ctx context.Context, id ProjectId, body ConfigureAuthMethodsJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfigureAuthMethodsClientResponse, error) { + rsp, err := c.ConfigureAuthMethods(ctx, id, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseConfigureAuthMethodsClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r StartGitConnectClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetAuthPageAppearanceWithResponse request returning *GetAuthPageAppearanceClientResponse +func (c *ClientWithResponses) GetAuthPageAppearanceWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetAuthPageAppearanceClientResponse, error) { + rsp, err := c.GetAuthPageAppearance(ctx, id, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetAuthPageAppearanceClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r StartGitConnectClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// DeleteAuthPageThemeWithResponse request returning *DeleteAuthPageThemeClientResponse +func (c *ClientWithResponses) DeleteAuthPageThemeWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*DeleteAuthPageThemeClientResponse, error) { + rsp, err := c.DeleteAuthPageTheme(ctx, id, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseDeleteAuthPageThemeClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r StartGitConnectClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// UpdateAuthPageThemeWithBodyWithResponse request with arbitrary body returning *UpdateAuthPageThemeClientResponse +func (c *ClientWithResponses) UpdateAuthPageThemeWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAuthPageThemeClientResponse, error) { + rsp, err := c.UpdateAuthPageThemeWithBody(ctx, id, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseUpdateAuthPageThemeClientResponse(rsp) } -type ListGitConnectionsClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *GitConnectionsResponse - JSON401 *Error - JSON500 *Error - JSON503 *Error +func (c *ClientWithResponses) UpdateAuthPageThemeWithResponse(ctx context.Context, id ProjectId, body UpdateAuthPageThemeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAuthPageThemeClientResponse, error) { + rsp, err := c.UpdateAuthPageTheme(ctx, id, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateAuthPageThemeClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r ListGitConnectionsClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// DeleteAuthPageLayoutWithResponse request returning *DeleteAuthPageLayoutClientResponse +func (c *ClientWithResponses) DeleteAuthPageLayoutWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, reqEditors ...RequestEditorFn) (*DeleteAuthPageLayoutClientResponse, error) { + rsp, err := c.DeleteAuthPageLayout(ctx, id, pageType, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseDeleteAuthPageLayoutClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListGitConnectionsClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// UpdateAuthPageLayoutWithBodyWithResponse request with arbitrary body returning *UpdateAuthPageLayoutClientResponse +func (c *ClientWithResponses) UpdateAuthPageLayoutWithBodyWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAuthPageLayoutClientResponse, error) { + rsp, err := c.UpdateAuthPageLayoutWithBody(ctx, id, pageType, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseUpdateAuthPageLayoutClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListGitConnectionsClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +func (c *ClientWithResponses) UpdateAuthPageLayoutWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, body UpdateAuthPageLayoutJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAuthPageLayoutClientResponse, error) { + rsp, err := c.UpdateAuthPageLayout(ctx, id, pageType, body, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseUpdateAuthPageLayoutClientResponse(rsp) } -type DeleteGitConnectionClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *Error - JSON401 *Error - JSON404 *Error - JSON500 *Error - JSON503 *Error +// RenderAuthPagePreviewWithResponse request returning *RenderAuthPagePreviewClientResponse +func (c *ClientWithResponses) RenderAuthPagePreviewWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, params *RenderAuthPagePreviewParams, reqEditors ...RequestEditorFn) (*RenderAuthPagePreviewClientResponse, error) { + rsp, err := c.RenderAuthPagePreview(ctx, id, pageType, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseRenderAuthPagePreviewClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r DeleteGitConnectionClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// PreviewAuthPageWithBodyWithResponse request with arbitrary body returning *PreviewAuthPageClientResponse +func (c *ClientWithResponses) PreviewAuthPageWithBodyWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PreviewAuthPageClientResponse, error) { + rsp, err := c.PreviewAuthPageWithBody(ctx, id, pageType, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParsePreviewAuthPageClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteGitConnectionClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) PreviewAuthPageWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, body PreviewAuthPageJSONRequestBody, reqEditors ...RequestEditorFn) (*PreviewAuthPageClientResponse, error) { + rsp, err := c.PreviewAuthPage(ctx, id, pageType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParsePreviewAuthPageClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteGitConnectionClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// ListAuthUsersWithResponse request returning *ListAuthUsersClientResponse +func (c *ClientWithResponses) ListAuthUsersWithResponse(ctx context.Context, id ProjectId, params *ListAuthUsersParams, reqEditors ...RequestEditorFn) (*ListAuthUsersClientResponse, error) { + rsp, err := c.ListAuthUsers(ctx, id, params, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseListAuthUsersClientResponse(rsp) } -type ListGitInstallationsClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *GitInstallationsResponse - JSON400 *Error - JSON401 *Error - JSON404 *Error - JSON500 *Error - JSON503 *Error +// DeleteAuthUserWithResponse request returning *DeleteAuthUserClientResponse +func (c *ClientWithResponses) DeleteAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAuthUserClientResponse, error) { + rsp, err := c.DeleteAuthUser(ctx, id, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteAuthUserClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r ListGitInstallationsClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetAuthUserWithResponse request returning *GetAuthUserClientResponse +func (c *ClientWithResponses) GetAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAuthUserClientResponse, error) { + rsp, err := c.GetAuthUser(ctx, id, userId, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetAuthUserClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListGitInstallationsClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// BanAuthUserWithBodyWithResponse request with arbitrary body returning *BanAuthUserClientResponse +func (c *ClientWithResponses) BanAuthUserWithBodyWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BanAuthUserClientResponse, error) { + rsp, err := c.BanAuthUserWithBody(ctx, id, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseBanAuthUserClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListGitInstallationsClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +func (c *ClientWithResponses) BanAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, body BanAuthUserJSONRequestBody, reqEditors ...RequestEditorFn) (*BanAuthUserClientResponse, error) { + rsp, err := c.BanAuthUser(ctx, id, userId, body, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseBanAuthUserClientResponse(rsp) } -type ListGitInstallationRepositoriesClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *GitRepositoriesResponse - JSON400 *Error - JSON401 *Error - JSON404 *Error - JSON500 *Error - JSON503 *Error +// DeleteAllUserSessionsWithResponse request returning *DeleteAllUserSessionsClientResponse +func (c *ClientWithResponses) DeleteAllUserSessionsWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAllUserSessionsClientResponse, error) { + rsp, err := c.DeleteAllUserSessions(ctx, id, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteAllUserSessionsClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r ListGitInstallationRepositoriesClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ListUserSessionsWithResponse request returning *ListUserSessionsClientResponse +func (c *ClientWithResponses) ListUserSessionsWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, params *ListUserSessionsParams, reqEditors ...RequestEditorFn) (*ListUserSessionsClientResponse, error) { + rsp, err := c.ListUserSessions(ctx, id, userId, params, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseListUserSessionsClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListGitInstallationRepositoriesClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// DeleteUserSessionWithResponse request returning *DeleteUserSessionClientResponse +func (c *ClientWithResponses) DeleteUserSessionWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteUserSessionClientResponse, error) { + rsp, err := c.DeleteUserSession(ctx, id, userId, sessionId, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseDeleteUserSessionClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListGitInstallationRepositoriesClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// UnbanAuthUserWithResponse request returning *UnbanAuthUserClientResponse +func (c *ClientWithResponses) UnbanAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*UnbanAuthUserClientResponse, error) { + rsp, err := c.UnbanAuthUser(ctx, id, userId, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseUnbanAuthUserClientResponse(rsp) } -type StartImportConnectClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ImportConnectStartResponse - JSON400 *Error - JSON401 *Error - JSON500 *Error - JSON503 *Error +// GetProjectConfigWithResponse request returning *GetProjectConfigClientResponse +func (c *ClientWithResponses) GetProjectConfigWithResponse(ctx context.Context, id ProjectId, params *GetProjectConfigParams, reqEditors ...RequestEditorFn) (*GetProjectConfigClientResponse, error) { + rsp, err := c.GetProjectConfig(ctx, id, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetProjectConfigClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r StartImportConnectClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ApplyProjectConfigWithBodyWithResponse request with arbitrary body returning *ApplyProjectConfigClientResponse +func (c *ClientWithResponses) ApplyProjectConfigWithBodyWithResponse(ctx context.Context, id ProjectId, params *ApplyProjectConfigParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplyProjectConfigClientResponse, error) { + rsp, err := c.ApplyProjectConfigWithBody(ctx, id, params, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseApplyProjectConfigClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r StartImportConnectClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) ApplyProjectConfigWithResponse(ctx context.Context, id ProjectId, params *ApplyProjectConfigParams, body ApplyProjectConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplyProjectConfigClientResponse, error) { + rsp, err := c.ApplyProjectConfig(ctx, id, params, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseApplyProjectConfigClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r StartImportConnectClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// ListDatabasesWithResponse request returning *ListDatabasesClientResponse +func (c *ClientWithResponses) ListDatabasesWithResponse(ctx context.Context, id ProjectId, params *ListDatabasesParams, reqEditors ...RequestEditorFn) (*ListDatabasesClientResponse, error) { + rsp, err := c.ListDatabases(ctx, id, params, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseListDatabasesClientResponse(rsp) } -type ListImportConnectionsClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ImportConnectionsResponse - JSON401 *Error - JSON500 *Error +// CreateDatabaseWithBodyWithResponse request with arbitrary body returning *CreateDatabaseClientResponse +func (c *ClientWithResponses) CreateDatabaseWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseClientResponse, error) { + rsp, err := c.CreateDatabaseWithBody(ctx, id, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateDatabaseClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r ListImportConnectionsClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) CreateDatabaseWithResponse(ctx context.Context, id ProjectId, body CreateDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseClientResponse, error) { + rsp, err := c.CreateDatabase(ctx, id, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseCreateDatabaseClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListImportConnectionsClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// DeleteDatabaseWithResponse request returning *DeleteDatabaseClientResponse +func (c *ClientWithResponses) DeleteDatabaseWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*DeleteDatabaseClientResponse, error) { + rsp, err := c.DeleteDatabase(ctx, id, databaseName, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseDeleteDatabaseClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListImportConnectionsClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// GetDatabaseWithResponse request returning *GetDatabaseClientResponse +func (c *ClientWithResponses) GetDatabaseWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*GetDatabaseClientResponse, error) { + rsp, err := c.GetDatabase(ctx, id, databaseName, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseGetDatabaseClientResponse(rsp) } -type DeleteImportConnectionClientResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *Error - JSON401 *Error - JSON404 *Error - JSON409 *Error - JSON500 *Error - JSON503 *Error +// GetDatabaseBackupScheduleWithResponse request returning *GetDatabaseBackupScheduleClientResponse +func (c *ClientWithResponses) GetDatabaseBackupScheduleWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*GetDatabaseBackupScheduleClientResponse, error) { + rsp, err := c.GetDatabaseBackupSchedule(ctx, id, databaseName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetDatabaseBackupScheduleClientResponse(rsp) } -// Status returns HTTPResponse.Status -func (r DeleteImportConnectionClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// UpdateDatabaseBackupScheduleWithBodyWithResponse request with arbitrary body returning *UpdateDatabaseBackupScheduleClientResponse +func (c *ClientWithResponses) UpdateDatabaseBackupScheduleWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDatabaseBackupScheduleClientResponse, error) { + rsp, err := c.UpdateDatabaseBackupScheduleWithBody(ctx, id, databaseName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseUpdateDatabaseBackupScheduleClientResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteImportConnectionClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) UpdateDatabaseBackupScheduleWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body UpdateDatabaseBackupScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDatabaseBackupScheduleClientResponse, error) { + rsp, err := c.UpdateDatabaseBackupSchedule(ctx, id, databaseName, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseUpdateDatabaseBackupScheduleClientResponse(rsp) } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteImportConnectionClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") +// ListDatabaseBackupsWithResponse request returning *ListDatabaseBackupsClientResponse +func (c *ClientWithResponses) ListDatabaseBackupsWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ListDatabaseBackupsClientResponse, error) { + rsp, err := c.ListDatabaseBackups(ctx, id, databaseName, reqEditors...) + if err != nil { + return nil, err } - return "" + return ParseListDatabaseBackupsClientResponse(rsp) } -// AuthConfirmEmailWithBodyWithResponse request with arbitrary body returning *AuthConfirmEmailClientResponse -func (c *ClientWithResponses) AuthConfirmEmailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthConfirmEmailClientResponse, error) { - rsp, err := c.AuthConfirmEmailWithBody(ctx, contentType, body, reqEditors...) +// CreateDatabaseBackupWithBodyWithResponse request with arbitrary body returning *CreateDatabaseBackupClientResponse +func (c *ClientWithResponses) CreateDatabaseBackupWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseBackupClientResponse, error) { + rsp, err := c.CreateDatabaseBackupWithBody(ctx, id, databaseName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseAuthConfirmEmailClientResponse(rsp) + return ParseCreateDatabaseBackupClientResponse(rsp) } -func (c *ClientWithResponses) AuthConfirmEmailWithResponse(ctx context.Context, body AuthConfirmEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthConfirmEmailClientResponse, error) { - rsp, err := c.AuthConfirmEmail(ctx, body, reqEditors...) +func (c *ClientWithResponses) CreateDatabaseBackupWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body CreateDatabaseBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseBackupClientResponse, error) { + rsp, err := c.CreateDatabaseBackup(ctx, id, databaseName, body, reqEditors...) if err != nil { return nil, err } - return ParseAuthConfirmEmailClientResponse(rsp) + return ParseCreateDatabaseBackupClientResponse(rsp) } -// AuthDeviceAuthorizeWithBodyWithResponse request with arbitrary body returning *AuthDeviceAuthorizeClientResponse -func (c *ClientWithResponses) AuthDeviceAuthorizeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthDeviceAuthorizeClientResponse, error) { - rsp, err := c.AuthDeviceAuthorizeWithBody(ctx, contentType, body, reqEditors...) +// DeleteDatabaseBackupWithResponse request returning *DeleteDatabaseBackupClientResponse +func (c *ClientWithResponses) DeleteDatabaseBackupWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, backupName BackupName, reqEditors ...RequestEditorFn) (*DeleteDatabaseBackupClientResponse, error) { + rsp, err := c.DeleteDatabaseBackup(ctx, id, databaseName, backupName, reqEditors...) if err != nil { return nil, err } - return ParseAuthDeviceAuthorizeClientResponse(rsp) + return ParseDeleteDatabaseBackupClientResponse(rsp) } -func (c *ClientWithResponses) AuthDeviceAuthorizeWithResponse(ctx context.Context, body AuthDeviceAuthorizeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthDeviceAuthorizeClientResponse, error) { - rsp, err := c.AuthDeviceAuthorize(ctx, body, reqEditors...) +// GetDatabaseBackupWithResponse request returning *GetDatabaseBackupClientResponse +func (c *ClientWithResponses) GetDatabaseBackupWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, backupName BackupName, reqEditors ...RequestEditorFn) (*GetDatabaseBackupClientResponse, error) { + rsp, err := c.GetDatabaseBackup(ctx, id, databaseName, backupName, reqEditors...) if err != nil { return nil, err } - return ParseAuthDeviceAuthorizeClientResponse(rsp) + return ParseGetDatabaseBackupClientResponse(rsp) } -// AuthDeviceTokenWithBodyWithResponse request with arbitrary body returning *AuthDeviceTokenClientResponse -func (c *ClientWithResponses) AuthDeviceTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthDeviceTokenClientResponse, error) { - rsp, err := c.AuthDeviceTokenWithBody(ctx, contentType, body, reqEditors...) +// ListDatabaseBranchesWithResponse request returning *ListDatabaseBranchesClientResponse +func (c *ClientWithResponses) ListDatabaseBranchesWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ListDatabaseBranchesClientResponse, error) { + rsp, err := c.ListDatabaseBranches(ctx, id, databaseName, reqEditors...) if err != nil { return nil, err } - return ParseAuthDeviceTokenClientResponse(rsp) + return ParseListDatabaseBranchesClientResponse(rsp) } -func (c *ClientWithResponses) AuthDeviceTokenWithResponse(ctx context.Context, body AuthDeviceTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthDeviceTokenClientResponse, error) { - rsp, err := c.AuthDeviceToken(ctx, body, reqEditors...) +// CreateDatabaseBranchWithBodyWithResponse request with arbitrary body returning *CreateDatabaseBranchClientResponse +func (c *ClientWithResponses) CreateDatabaseBranchWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseBranchClientResponse, error) { + rsp, err := c.CreateDatabaseBranchWithBody(ctx, id, databaseName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseAuthDeviceTokenClientResponse(rsp) + return ParseCreateDatabaseBranchClientResponse(rsp) } -// AuthDeviceVerifyWithBodyWithResponse request with arbitrary body returning *AuthDeviceVerifyClientResponse -func (c *ClientWithResponses) AuthDeviceVerifyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthDeviceVerifyClientResponse, error) { - rsp, err := c.AuthDeviceVerifyWithBody(ctx, contentType, body, reqEditors...) +func (c *ClientWithResponses) CreateDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body CreateDatabaseBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseBranchClientResponse, error) { + rsp, err := c.CreateDatabaseBranch(ctx, id, databaseName, body, reqEditors...) if err != nil { return nil, err } - return ParseAuthDeviceVerifyClientResponse(rsp) + return ParseCreateDatabaseBranchClientResponse(rsp) } -func (c *ClientWithResponses) AuthDeviceVerifyWithResponse(ctx context.Context, body AuthDeviceVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthDeviceVerifyClientResponse, error) { - rsp, err := c.AuthDeviceVerify(ctx, body, reqEditors...) +// DeleteDatabaseBranchWithResponse request returning *DeleteDatabaseBranchClientResponse +func (c *ClientWithResponses) DeleteDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*DeleteDatabaseBranchClientResponse, error) { + rsp, err := c.DeleteDatabaseBranch(ctx, id, databaseName, branchName, reqEditors...) if err != nil { return nil, err } - return ParseAuthDeviceVerifyClientResponse(rsp) + return ParseDeleteDatabaseBranchClientResponse(rsp) } -// AuthForgotPasswordWithBodyWithResponse request with arbitrary body returning *AuthForgotPasswordClientResponse -func (c *ClientWithResponses) AuthForgotPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthForgotPasswordClientResponse, error) { - rsp, err := c.AuthForgotPasswordWithBody(ctx, contentType, body, reqEditors...) +// GetDatabaseBranchWithResponse request returning *GetDatabaseBranchClientResponse +func (c *ClientWithResponses) GetDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*GetDatabaseBranchClientResponse, error) { + rsp, err := c.GetDatabaseBranch(ctx, id, databaseName, branchName, reqEditors...) if err != nil { return nil, err } - return ParseAuthForgotPasswordClientResponse(rsp) + return ParseGetDatabaseBranchClientResponse(rsp) } -func (c *ClientWithResponses) AuthForgotPasswordWithResponse(ctx context.Context, body AuthForgotPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthForgotPasswordClientResponse, error) { - rsp, err := c.AuthForgotPassword(ctx, body, reqEditors...) +// UpdateDatabaseBranchWithBodyWithResponse request with arbitrary body returning *UpdateDatabaseBranchClientResponse +func (c *ClientWithResponses) UpdateDatabaseBranchWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDatabaseBranchClientResponse, error) { + rsp, err := c.UpdateDatabaseBranchWithBody(ctx, id, databaseName, branchName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseAuthForgotPasswordClientResponse(rsp) + return ParseUpdateDatabaseBranchClientResponse(rsp) } -// AuthLogoutWithBodyWithResponse request with arbitrary body returning *AuthLogoutClientResponse -func (c *ClientWithResponses) AuthLogoutWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthLogoutClientResponse, error) { - rsp, err := c.AuthLogoutWithBody(ctx, contentType, body, reqEditors...) +func (c *ClientWithResponses) UpdateDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, body UpdateDatabaseBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDatabaseBranchClientResponse, error) { + rsp, err := c.UpdateDatabaseBranch(ctx, id, databaseName, branchName, body, reqEditors...) if err != nil { return nil, err } - return ParseAuthLogoutClientResponse(rsp) + return ParseUpdateDatabaseBranchClientResponse(rsp) } -func (c *ClientWithResponses) AuthLogoutWithResponse(ctx context.Context, body AuthLogoutJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthLogoutClientResponse, error) { - rsp, err := c.AuthLogout(ctx, body, reqEditors...) +// ResetDatabaseBranchWithResponse request returning *ResetDatabaseBranchClientResponse +func (c *ClientWithResponses) ResetDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*ResetDatabaseBranchClientResponse, error) { + rsp, err := c.ResetDatabaseBranch(ctx, id, databaseName, branchName, reqEditors...) if err != nil { return nil, err } - return ParseAuthLogoutClientResponse(rsp) + return ParseResetDatabaseBranchClientResponse(rsp) } -// AuthOAuthExchangeWithBodyWithResponse request with arbitrary body returning *AuthOAuthExchangeClientResponse -func (c *ClientWithResponses) AuthOAuthExchangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthOAuthExchangeClientResponse, error) { - rsp, err := c.AuthOAuthExchangeWithBody(ctx, contentType, body, reqEditors...) +// ResetDatabaseBranchPasswordWithResponse request returning *ResetDatabaseBranchPasswordClientResponse +func (c *ClientWithResponses) ResetDatabaseBranchPasswordWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*ResetDatabaseBranchPasswordClientResponse, error) { + rsp, err := c.ResetDatabaseBranchPassword(ctx, id, databaseName, branchName, reqEditors...) if err != nil { return nil, err } - return ParseAuthOAuthExchangeClientResponse(rsp) + return ParseResetDatabaseBranchPasswordClientResponse(rsp) } -func (c *ClientWithResponses) AuthOAuthExchangeWithResponse(ctx context.Context, body AuthOAuthExchangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthOAuthExchangeClientResponse, error) { - rsp, err := c.AuthOAuthExchange(ctx, body, reqEditors...) +// GetProjectDatabaseQueriesWithResponse request returning *GetProjectDatabaseQueriesClientResponse +func (c *ClientWithResponses) GetProjectDatabaseQueriesWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, params *GetProjectDatabaseQueriesParams, reqEditors ...RequestEditorFn) (*GetProjectDatabaseQueriesClientResponse, error) { + rsp, err := c.GetProjectDatabaseQueries(ctx, id, databaseName, params, reqEditors...) if err != nil { return nil, err } - return ParseAuthOAuthExchangeClientResponse(rsp) + return ParseGetProjectDatabaseQueriesClientResponse(rsp) } -// AuthListOAuthProvidersWithResponse request returning *AuthListOAuthProvidersClientResponse -func (c *ClientWithResponses) AuthListOAuthProvidersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthListOAuthProvidersClientResponse, error) { - rsp, err := c.AuthListOAuthProviders(ctx, reqEditors...) +// ResetDatabasePasswordWithResponse request returning *ResetDatabasePasswordClientResponse +func (c *ClientWithResponses) ResetDatabasePasswordWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ResetDatabasePasswordClientResponse, error) { + rsp, err := c.ResetDatabasePassword(ctx, id, databaseName, reqEditors...) if err != nil { return nil, err } - return ParseAuthListOAuthProvidersClientResponse(rsp) + return ParseResetDatabasePasswordClientResponse(rsp) } -// AuthOAuthAuthorizeWithResponse request returning *AuthOAuthAuthorizeClientResponse -func (c *ClientWithResponses) AuthOAuthAuthorizeWithResponse(ctx context.Context, provider AuthOAuthAuthorizeParamsProvider, params *AuthOAuthAuthorizeParams, reqEditors ...RequestEditorFn) (*AuthOAuthAuthorizeClientResponse, error) { - rsp, err := c.AuthOAuthAuthorize(ctx, provider, params, reqEditors...) +// ListDatabaseRestoresWithResponse request returning *ListDatabaseRestoresClientResponse +func (c *ClientWithResponses) ListDatabaseRestoresWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ListDatabaseRestoresClientResponse, error) { + rsp, err := c.ListDatabaseRestores(ctx, id, databaseName, reqEditors...) if err != nil { return nil, err } - return ParseAuthOAuthAuthorizeClientResponse(rsp) + return ParseListDatabaseRestoresClientResponse(rsp) } -// CallOAuthProviderAPIWithBodyWithResponse request with arbitrary body returning *CallOAuthProviderAPIClientResponse -func (c *ClientWithResponses) CallOAuthProviderAPIWithBodyWithResponse(ctx context.Context, provider CallOAuthProviderAPIParamsProvider, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CallOAuthProviderAPIClientResponse, error) { - rsp, err := c.CallOAuthProviderAPIWithBody(ctx, provider, contentType, body, reqEditors...) +// CreateDatabaseRestoreWithBodyWithResponse request with arbitrary body returning *CreateDatabaseRestoreClientResponse +func (c *ClientWithResponses) CreateDatabaseRestoreWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseRestoreClientResponse, error) { + rsp, err := c.CreateDatabaseRestoreWithBody(ctx, id, databaseName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseCallOAuthProviderAPIClientResponse(rsp) + return ParseCreateDatabaseRestoreClientResponse(rsp) } -func (c *ClientWithResponses) CallOAuthProviderAPIWithResponse(ctx context.Context, provider CallOAuthProviderAPIParamsProvider, body CallOAuthProviderAPIJSONRequestBody, reqEditors ...RequestEditorFn) (*CallOAuthProviderAPIClientResponse, error) { - rsp, err := c.CallOAuthProviderAPI(ctx, provider, body, reqEditors...) +func (c *ClientWithResponses) CreateDatabaseRestoreWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body CreateDatabaseRestoreJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseRestoreClientResponse, error) { + rsp, err := c.CreateDatabaseRestore(ctx, id, databaseName, body, reqEditors...) if err != nil { return nil, err } - return ParseCallOAuthProviderAPIClientResponse(rsp) + return ParseCreateDatabaseRestoreClientResponse(rsp) } -// AuthOAuthCallbackWithResponse request returning *AuthOAuthCallbackClientResponse -func (c *ClientWithResponses) AuthOAuthCallbackWithResponse(ctx context.Context, provider AuthOAuthCallbackParamsProvider, params *AuthOAuthCallbackParams, reqEditors ...RequestEditorFn) (*AuthOAuthCallbackClientResponse, error) { - rsp, err := c.AuthOAuthCallback(ctx, provider, params, reqEditors...) +// GetDatabaseRestoreWithResponse request returning *GetDatabaseRestoreClientResponse +func (c *ClientWithResponses) GetDatabaseRestoreWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, restoreId RestoreId, reqEditors ...RequestEditorFn) (*GetDatabaseRestoreClientResponse, error) { + rsp, err := c.GetDatabaseRestore(ctx, id, databaseName, restoreId, reqEditors...) if err != nil { return nil, err } - return ParseAuthOAuthCallbackClientResponse(rsp) + return ParseGetDatabaseRestoreClientResponse(rsp) } -// AuthLinkOAuthProviderWithResponse request returning *AuthLinkOAuthProviderClientResponse -func (c *ClientWithResponses) AuthLinkOAuthProviderWithResponse(ctx context.Context, provider AuthLinkOAuthProviderParamsProvider, params *AuthLinkOAuthProviderParams, reqEditors ...RequestEditorFn) (*AuthLinkOAuthProviderClientResponse, error) { - rsp, err := c.AuthLinkOAuthProvider(ctx, provider, params, reqEditors...) +// GetDatabaseStatsWithResponse request returning *GetDatabaseStatsClientResponse +func (c *ClientWithResponses) GetDatabaseStatsWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, params *GetDatabaseStatsParams, reqEditors ...RequestEditorFn) (*GetDatabaseStatsClientResponse, error) { + rsp, err := c.GetDatabaseStats(ctx, id, databaseName, params, reqEditors...) if err != nil { return nil, err } - return ParseAuthLinkOAuthProviderClientResponse(rsp) + return ParseGetDatabaseStatsClientResponse(rsp) } -// RefreshOAuthProviderTokenWithResponse request returning *RefreshOAuthProviderTokenClientResponse -func (c *ClientWithResponses) RefreshOAuthProviderTokenWithResponse(ctx context.Context, provider RefreshOAuthProviderTokenParamsProvider, reqEditors ...RequestEditorFn) (*RefreshOAuthProviderTokenClientResponse, error) { - rsp, err := c.RefreshOAuthProviderToken(ctx, provider, reqEditors...) +// UpdateDatabaseTypeWithBodyWithResponse request with arbitrary body returning *UpdateDatabaseTypeClientResponse +func (c *ClientWithResponses) UpdateDatabaseTypeWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDatabaseTypeClientResponse, error) { + rsp, err := c.UpdateDatabaseTypeWithBody(ctx, id, databaseName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseRefreshOAuthProviderTokenClientResponse(rsp) + return ParseUpdateDatabaseTypeClientResponse(rsp) } -// GetOAuthProviderTokenWithResponse request returning *GetOAuthProviderTokenClientResponse -func (c *ClientWithResponses) GetOAuthProviderTokenWithResponse(ctx context.Context, provider GetOAuthProviderTokenParamsProvider, reqEditors ...RequestEditorFn) (*GetOAuthProviderTokenClientResponse, error) { - rsp, err := c.GetOAuthProviderToken(ctx, provider, reqEditors...) +func (c *ClientWithResponses) UpdateDatabaseTypeWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body UpdateDatabaseTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDatabaseTypeClientResponse, error) { + rsp, err := c.UpdateDatabaseType(ctx, id, databaseName, body, reqEditors...) if err != nil { return nil, err } - return ParseGetOAuthProviderTokenClientResponse(rsp) + return ParseUpdateDatabaseTypeClientResponse(rsp) } -// AuthUnlinkOAuthProviderWithResponse request returning *AuthUnlinkOAuthProviderClientResponse -func (c *ClientWithResponses) AuthUnlinkOAuthProviderWithResponse(ctx context.Context, provider AuthUnlinkOAuthProviderParamsProvider, reqEditors ...RequestEditorFn) (*AuthUnlinkOAuthProviderClientResponse, error) { - rsp, err := c.AuthUnlinkOAuthProvider(ctx, provider, reqEditors...) +// ListProjectDeploymentsWithResponse request returning *ListProjectDeploymentsClientResponse +func (c *ClientWithResponses) ListProjectDeploymentsWithResponse(ctx context.Context, id ProjectId, params *ListProjectDeploymentsParams, reqEditors ...RequestEditorFn) (*ListProjectDeploymentsClientResponse, error) { + rsp, err := c.ListProjectDeployments(ctx, id, params, reqEditors...) if err != nil { return nil, err } - return ParseAuthUnlinkOAuthProviderClientResponse(rsp) + return ParseListProjectDeploymentsClientResponse(rsp) } -// AuthGetPasswordPolicyWithResponse request returning *AuthGetPasswordPolicyClientResponse -func (c *ClientWithResponses) AuthGetPasswordPolicyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthGetPasswordPolicyClientResponse, error) { - rsp, err := c.AuthGetPasswordPolicy(ctx, reqEditors...) +// SummarizeProjectDeploymentsWithResponse request returning *SummarizeProjectDeploymentsClientResponse +func (c *ClientWithResponses) SummarizeProjectDeploymentsWithResponse(ctx context.Context, id ProjectId, params *SummarizeProjectDeploymentsParams, reqEditors ...RequestEditorFn) (*SummarizeProjectDeploymentsClientResponse, error) { + rsp, err := c.SummarizeProjectDeployments(ctx, id, params, reqEditors...) if err != nil { return nil, err } - return ParseAuthGetPasswordPolicyClientResponse(rsp) + return ParseSummarizeProjectDeploymentsClientResponse(rsp) } -// AuthPlatformExchangeWithBodyWithResponse request with arbitrary body returning *AuthPlatformExchangeClientResponse -func (c *ClientWithResponses) AuthPlatformExchangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthPlatformExchangeClientResponse, error) { - rsp, err := c.AuthPlatformExchangeWithBody(ctx, contentType, body, reqEditors...) +// ListProjectCustomDomainsWithResponse request returning *ListProjectCustomDomainsClientResponse +func (c *ClientWithResponses) ListProjectCustomDomainsWithResponse(ctx context.Context, id ProjectId, params *ListProjectCustomDomainsParams, reqEditors ...RequestEditorFn) (*ListProjectCustomDomainsClientResponse, error) { + rsp, err := c.ListProjectCustomDomains(ctx, id, params, reqEditors...) if err != nil { return nil, err } - return ParseAuthPlatformExchangeClientResponse(rsp) + return ParseListProjectCustomDomainsClientResponse(rsp) } -func (c *ClientWithResponses) AuthPlatformExchangeWithResponse(ctx context.Context, body AuthPlatformExchangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthPlatformExchangeClientResponse, error) { - rsp, err := c.AuthPlatformExchange(ctx, body, reqEditors...) +// ListDurableFunctionsWithResponse request returning *ListDurableFunctionsClientResponse +func (c *ClientWithResponses) ListDurableFunctionsWithResponse(ctx context.Context, id ProjectId, params *ListDurableFunctionsParams, reqEditors ...RequestEditorFn) (*ListDurableFunctionsClientResponse, error) { + rsp, err := c.ListDurableFunctions(ctx, id, params, reqEditors...) if err != nil { return nil, err } - return ParseAuthPlatformExchangeClientResponse(rsp) + return ParseListDurableFunctionsClientResponse(rsp) } -// AuthRefreshWithBodyWithResponse request with arbitrary body returning *AuthRefreshClientResponse -func (c *ClientWithResponses) AuthRefreshWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthRefreshClientResponse, error) { - rsp, err := c.AuthRefreshWithBody(ctx, contentType, body, reqEditors...) +// CreateDurableFunctionWithBodyWithResponse request with arbitrary body returning *CreateDurableFunctionClientResponse +func (c *ClientWithResponses) CreateDurableFunctionWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDurableFunctionClientResponse, error) { + rsp, err := c.CreateDurableFunctionWithBody(ctx, id, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseAuthRefreshClientResponse(rsp) + return ParseCreateDurableFunctionClientResponse(rsp) } -func (c *ClientWithResponses) AuthRefreshWithResponse(ctx context.Context, body AuthRefreshJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRefreshClientResponse, error) { - rsp, err := c.AuthRefresh(ctx, body, reqEditors...) +// DeleteDurableFunctionWithResponse request returning *DeleteDurableFunctionClientResponse +func (c *ClientWithResponses) DeleteDurableFunctionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, reqEditors ...RequestEditorFn) (*DeleteDurableFunctionClientResponse, error) { + rsp, err := c.DeleteDurableFunction(ctx, id, functionId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteDurableFunctionClientResponse(rsp) +} + +// GetDurableFunctionWithResponse request returning *GetDurableFunctionClientResponse +func (c *ClientWithResponses) GetDurableFunctionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, reqEditors ...RequestEditorFn) (*GetDurableFunctionClientResponse, error) { + rsp, err := c.GetDurableFunction(ctx, id, functionId, reqEditors...) if err != nil { return nil, err } - return ParseAuthRefreshClientResponse(rsp) + return ParseGetDurableFunctionClientResponse(rsp) } -// AuthResendConfirmationWithBodyWithResponse request with arbitrary body returning *AuthResendConfirmationClientResponse -func (c *ClientWithResponses) AuthResendConfirmationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthResendConfirmationClientResponse, error) { - rsp, err := c.AuthResendConfirmationWithBody(ctx, contentType, body, reqEditors...) +// ListDurableFunctionDeploymentsWithResponse request returning *ListDurableFunctionDeploymentsClientResponse +func (c *ClientWithResponses) ListDurableFunctionDeploymentsWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *ListDurableFunctionDeploymentsParams, reqEditors ...RequestEditorFn) (*ListDurableFunctionDeploymentsClientResponse, error) { + rsp, err := c.ListDurableFunctionDeployments(ctx, id, functionId, params, reqEditors...) if err != nil { return nil, err } - return ParseAuthResendConfirmationClientResponse(rsp) + return ParseListDurableFunctionDeploymentsClientResponse(rsp) } -func (c *ClientWithResponses) AuthResendConfirmationWithResponse(ctx context.Context, body AuthResendConfirmationJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthResendConfirmationClientResponse, error) { - rsp, err := c.AuthResendConfirmation(ctx, body, reqEditors...) +// ListDurableExecutionsWithResponse request returning *ListDurableExecutionsClientResponse +func (c *ClientWithResponses) ListDurableExecutionsWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *ListDurableExecutionsParams, reqEditors ...RequestEditorFn) (*ListDurableExecutionsClientResponse, error) { + rsp, err := c.ListDurableExecutions(ctx, id, functionId, params, reqEditors...) if err != nil { return nil, err } - return ParseAuthResendConfirmationClientResponse(rsp) + return ParseListDurableExecutionsClientResponse(rsp) } -// AuthResetPasswordWithBodyWithResponse request with arbitrary body returning *AuthResetPasswordClientResponse -func (c *ClientWithResponses) AuthResetPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthResetPasswordClientResponse, error) { - rsp, err := c.AuthResetPasswordWithBody(ctx, contentType, body, reqEditors...) +// StartDurableExecutionWithBodyWithResponse request with arbitrary body returning *StartDurableExecutionClientResponse +func (c *ClientWithResponses) StartDurableExecutionWithBodyWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *StartDurableExecutionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartDurableExecutionClientResponse, error) { + rsp, err := c.StartDurableExecutionWithBody(ctx, id, functionId, params, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseAuthResetPasswordClientResponse(rsp) + return ParseStartDurableExecutionClientResponse(rsp) } -func (c *ClientWithResponses) AuthResetPasswordWithResponse(ctx context.Context, body AuthResetPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthResetPasswordClientResponse, error) { - rsp, err := c.AuthResetPassword(ctx, body, reqEditors...) +func (c *ClientWithResponses) StartDurableExecutionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *StartDurableExecutionParams, body StartDurableExecutionJSONRequestBody, reqEditors ...RequestEditorFn) (*StartDurableExecutionClientResponse, error) { + rsp, err := c.StartDurableExecution(ctx, id, functionId, params, body, reqEditors...) if err != nil { return nil, err } - return ParseAuthResetPasswordClientResponse(rsp) + return ParseStartDurableExecutionClientResponse(rsp) } -// AuthSigninWithBodyWithResponse request with arbitrary body returning *AuthSigninClientResponse -func (c *ClientWithResponses) AuthSigninWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthSigninClientResponse, error) { - rsp, err := c.AuthSigninWithBody(ctx, contentType, body, reqEditors...) +// GetDurableExecutionWithResponse request returning *GetDurableExecutionClientResponse +func (c *ClientWithResponses) GetDurableExecutionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, executionId DurableExecutionId, reqEditors ...RequestEditorFn) (*GetDurableExecutionClientResponse, error) { + rsp, err := c.GetDurableExecution(ctx, id, functionId, executionId, reqEditors...) if err != nil { return nil, err } - return ParseAuthSigninClientResponse(rsp) + return ParseGetDurableExecutionClientResponse(rsp) } -func (c *ClientWithResponses) AuthSigninWithResponse(ctx context.Context, body AuthSigninJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthSigninClientResponse, error) { - rsp, err := c.AuthSignin(ctx, body, reqEditors...) +// StopDurableExecutionWithResponse request returning *StopDurableExecutionClientResponse +func (c *ClientWithResponses) StopDurableExecutionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, executionId DurableExecutionId, reqEditors ...RequestEditorFn) (*StopDurableExecutionClientResponse, error) { + rsp, err := c.StopDurableExecution(ctx, id, functionId, executionId, reqEditors...) if err != nil { return nil, err } - return ParseAuthSigninClientResponse(rsp) + return ParseStopDurableExecutionClientResponse(rsp) } -// AuthSignupWithBodyWithResponse request with arbitrary body returning *AuthSignupClientResponse -func (c *ClientWithResponses) AuthSignupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthSignupClientResponse, error) { - rsp, err := c.AuthSignupWithBody(ctx, contentType, body, reqEditors...) +// ListDurableFunctionSchedulersWithResponse request returning *ListDurableFunctionSchedulersClientResponse +func (c *ClientWithResponses) ListDurableFunctionSchedulersWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, reqEditors ...RequestEditorFn) (*ListDurableFunctionSchedulersClientResponse, error) { + rsp, err := c.ListDurableFunctionSchedulers(ctx, id, functionId, reqEditors...) if err != nil { return nil, err } - return ParseAuthSignupClientResponse(rsp) + return ParseListDurableFunctionSchedulersClientResponse(rsp) } -func (c *ClientWithResponses) AuthSignupWithResponse(ctx context.Context, body AuthSignupJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthSignupClientResponse, error) { - rsp, err := c.AuthSignup(ctx, body, reqEditors...) +// CreateDurableFunctionSchedulerWithBodyWithResponse request with arbitrary body returning *CreateDurableFunctionSchedulerClientResponse +func (c *ClientWithResponses) CreateDurableFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDurableFunctionSchedulerClientResponse, error) { + rsp, err := c.CreateDurableFunctionSchedulerWithBody(ctx, id, functionId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseAuthSignupClientResponse(rsp) + return ParseCreateDurableFunctionSchedulerClientResponse(rsp) } -// AuthSignupAnonymousWithBodyWithResponse request with arbitrary body returning *AuthSignupAnonymousClientResponse -func (c *ClientWithResponses) AuthSignupAnonymousWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthSignupAnonymousClientResponse, error) { - rsp, err := c.AuthSignupAnonymousWithBody(ctx, contentType, body, reqEditors...) +func (c *ClientWithResponses) CreateDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, body CreateDurableFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDurableFunctionSchedulerClientResponse, error) { + rsp, err := c.CreateDurableFunctionScheduler(ctx, id, functionId, body, reqEditors...) if err != nil { return nil, err } - return ParseAuthSignupAnonymousClientResponse(rsp) + return ParseCreateDurableFunctionSchedulerClientResponse(rsp) } -func (c *ClientWithResponses) AuthSignupAnonymousWithResponse(ctx context.Context, body AuthSignupAnonymousJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthSignupAnonymousClientResponse, error) { - rsp, err := c.AuthSignupAnonymous(ctx, body, reqEditors...) +// DeleteDurableFunctionSchedulerWithResponse request returning *DeleteDurableFunctionSchedulerClientResponse +func (c *ClientWithResponses) DeleteDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*DeleteDurableFunctionSchedulerClientResponse, error) { + rsp, err := c.DeleteDurableFunctionScheduler(ctx, id, functionId, schedulerId, reqEditors...) if err != nil { return nil, err } - return ParseAuthSignupAnonymousClientResponse(rsp) + return ParseDeleteDurableFunctionSchedulerClientResponse(rsp) } -// AuthGetUserWithResponse request returning *AuthGetUserClientResponse -func (c *ClientWithResponses) AuthGetUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthGetUserClientResponse, error) { - rsp, err := c.AuthGetUser(ctx, reqEditors...) +// GetDurableFunctionSchedulerWithResponse request returning *GetDurableFunctionSchedulerClientResponse +func (c *ClientWithResponses) GetDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*GetDurableFunctionSchedulerClientResponse, error) { + rsp, err := c.GetDurableFunctionScheduler(ctx, id, functionId, schedulerId, reqEditors...) if err != nil { return nil, err } - return ParseAuthGetUserClientResponse(rsp) + return ParseGetDurableFunctionSchedulerClientResponse(rsp) } -// AuthUpdateUserWithBodyWithResponse request with arbitrary body returning *AuthUpdateUserClientResponse -func (c *ClientWithResponses) AuthUpdateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthUpdateUserClientResponse, error) { - rsp, err := c.AuthUpdateUserWithBody(ctx, contentType, body, reqEditors...) +// UpdateDurableFunctionSchedulerWithBodyWithResponse request with arbitrary body returning *UpdateDurableFunctionSchedulerClientResponse +func (c *ClientWithResponses) UpdateDurableFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDurableFunctionSchedulerClientResponse, error) { + rsp, err := c.UpdateDurableFunctionSchedulerWithBody(ctx, id, functionId, schedulerId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseAuthUpdateUserClientResponse(rsp) + return ParseUpdateDurableFunctionSchedulerClientResponse(rsp) } -func (c *ClientWithResponses) AuthUpdateUserWithResponse(ctx context.Context, body AuthUpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthUpdateUserClientResponse, error) { - rsp, err := c.AuthUpdateUser(ctx, body, reqEditors...) +func (c *ClientWithResponses) UpdateDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, body UpdateDurableFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDurableFunctionSchedulerClientResponse, error) { + rsp, err := c.UpdateDurableFunctionScheduler(ctx, id, functionId, schedulerId, body, reqEditors...) if err != nil { return nil, err } - return ParseAuthUpdateUserClientResponse(rsp) + return ParseUpdateDurableFunctionSchedulerClientResponse(rsp) } -// AuthCancelEmailChangeWithResponse request returning *AuthCancelEmailChangeClientResponse -func (c *ClientWithResponses) AuthCancelEmailChangeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthCancelEmailChangeClientResponse, error) { - rsp, err := c.AuthCancelEmailChange(ctx, reqEditors...) +// ListEmailTemplatesWithResponse request returning *ListEmailTemplatesClientResponse +func (c *ClientWithResponses) ListEmailTemplatesWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*ListEmailTemplatesClientResponse, error) { + rsp, err := c.ListEmailTemplates(ctx, id, reqEditors...) if err != nil { return nil, err } - return ParseAuthCancelEmailChangeClientResponse(rsp) + return ParseListEmailTemplatesClientResponse(rsp) } -// AuthRequestEmailChangeWithBodyWithResponse request with arbitrary body returning *AuthRequestEmailChangeClientResponse -func (c *ClientWithResponses) AuthRequestEmailChangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthRequestEmailChangeClientResponse, error) { - rsp, err := c.AuthRequestEmailChangeWithBody(ctx, contentType, body, reqEditors...) +// CreateEmailTemplateWithBodyWithResponse request with arbitrary body returning *CreateEmailTemplateClientResponse +func (c *ClientWithResponses) CreateEmailTemplateWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEmailTemplateClientResponse, error) { + rsp, err := c.CreateEmailTemplateWithBody(ctx, id, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseAuthRequestEmailChangeClientResponse(rsp) + return ParseCreateEmailTemplateClientResponse(rsp) } -func (c *ClientWithResponses) AuthRequestEmailChangeWithResponse(ctx context.Context, body AuthRequestEmailChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRequestEmailChangeClientResponse, error) { - rsp, err := c.AuthRequestEmailChange(ctx, body, reqEditors...) +func (c *ClientWithResponses) CreateEmailTemplateWithResponse(ctx context.Context, id ProjectId, body CreateEmailTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEmailTemplateClientResponse, error) { + rsp, err := c.CreateEmailTemplate(ctx, id, body, reqEditors...) if err != nil { return nil, err } - return ParseAuthRequestEmailChangeClientResponse(rsp) + return ParseCreateEmailTemplateClientResponse(rsp) } -// AuthConfirmEmailChangeWithBodyWithResponse request with arbitrary body returning *AuthConfirmEmailChangeClientResponse -func (c *ClientWithResponses) AuthConfirmEmailChangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthConfirmEmailChangeClientResponse, error) { - rsp, err := c.AuthConfirmEmailChangeWithBody(ctx, contentType, body, reqEditors...) +// DeleteEmailTemplateWithResponse request returning *DeleteEmailTemplateClientResponse +func (c *ClientWithResponses) DeleteEmailTemplateWithResponse(ctx context.Context, id ProjectId, pType DeleteEmailTemplateParamsType, reqEditors ...RequestEditorFn) (*DeleteEmailTemplateClientResponse, error) { + rsp, err := c.DeleteEmailTemplate(ctx, id, pType, reqEditors...) if err != nil { return nil, err } - return ParseAuthConfirmEmailChangeClientResponse(rsp) + return ParseDeleteEmailTemplateClientResponse(rsp) } -func (c *ClientWithResponses) AuthConfirmEmailChangeWithResponse(ctx context.Context, body AuthConfirmEmailChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthConfirmEmailChangeClientResponse, error) { - rsp, err := c.AuthConfirmEmailChange(ctx, body, reqEditors...) +// GetEmailTemplateWithResponse request returning *GetEmailTemplateClientResponse +func (c *ClientWithResponses) GetEmailTemplateWithResponse(ctx context.Context, id ProjectId, pType GetEmailTemplateParamsType, reqEditors ...RequestEditorFn) (*GetEmailTemplateClientResponse, error) { + rsp, err := c.GetEmailTemplate(ctx, id, pType, reqEditors...) if err != nil { return nil, err } - return ParseAuthConfirmEmailChangeClientResponse(rsp) + return ParseGetEmailTemplateClientResponse(rsp) } -// AuthConvertAnonymousWithBodyWithResponse request with arbitrary body returning *AuthConvertAnonymousClientResponse -func (c *ClientWithResponses) AuthConvertAnonymousWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthConvertAnonymousClientResponse, error) { - rsp, err := c.AuthConvertAnonymousWithBody(ctx, contentType, body, reqEditors...) +// UpdateEmailTemplateWithBodyWithResponse request with arbitrary body returning *UpdateEmailTemplateClientResponse +func (c *ClientWithResponses) UpdateEmailTemplateWithBodyWithResponse(ctx context.Context, id ProjectId, pType UpdateEmailTemplateParamsType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEmailTemplateClientResponse, error) { + rsp, err := c.UpdateEmailTemplateWithBody(ctx, id, pType, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseAuthConvertAnonymousClientResponse(rsp) + return ParseUpdateEmailTemplateClientResponse(rsp) } -func (c *ClientWithResponses) AuthConvertAnonymousWithResponse(ctx context.Context, body AuthConvertAnonymousJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthConvertAnonymousClientResponse, error) { - rsp, err := c.AuthConvertAnonymous(ctx, body, reqEditors...) +func (c *ClientWithResponses) UpdateEmailTemplateWithResponse(ctx context.Context, id ProjectId, pType UpdateEmailTemplateParamsType, body UpdateEmailTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEmailTemplateClientResponse, error) { + rsp, err := c.UpdateEmailTemplate(ctx, id, pType, body, reqEditors...) if err != nil { return nil, err } - return ParseAuthConvertAnonymousClientResponse(rsp) + return ParseUpdateEmailTemplateClientResponse(rsp) } -// AuthListIdentitiesWithResponse request returning *AuthListIdentitiesClientResponse -func (c *ClientWithResponses) AuthListIdentitiesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthListIdentitiesClientResponse, error) { - rsp, err := c.AuthListIdentities(ctx, reqEditors...) +// ReplaceFrontendSharedVariablesWithBodyWithResponse request with arbitrary body returning *ReplaceFrontendSharedVariablesClientResponse +func (c *ClientWithResponses) ReplaceFrontendSharedVariablesWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceFrontendSharedVariablesClientResponse, error) { + rsp, err := c.ReplaceFrontendSharedVariablesWithBody(ctx, id, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseAuthListIdentitiesClientResponse(rsp) + return ParseReplaceFrontendSharedVariablesClientResponse(rsp) } -// AuthUnlinkIdentityWithResponse request returning *AuthUnlinkIdentityClientResponse -func (c *ClientWithResponses) AuthUnlinkIdentityWithResponse(ctx context.Context, identityId openapi_types.UUID, reqEditors ...RequestEditorFn) (*AuthUnlinkIdentityClientResponse, error) { - rsp, err := c.AuthUnlinkIdentity(ctx, identityId, reqEditors...) +func (c *ClientWithResponses) ReplaceFrontendSharedVariablesWithResponse(ctx context.Context, id ProjectId, body ReplaceFrontendSharedVariablesJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceFrontendSharedVariablesClientResponse, error) { + rsp, err := c.ReplaceFrontendSharedVariables(ctx, id, body, reqEditors...) if err != nil { return nil, err } - return ParseAuthUnlinkIdentityClientResponse(rsp) + return ParseReplaceFrontendSharedVariablesClientResponse(rsp) } -// AuthListMethodsWithResponse request returning *AuthListMethodsClientResponse -func (c *ClientWithResponses) AuthListMethodsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthListMethodsClientResponse, error) { - rsp, err := c.AuthListMethods(ctx, reqEditors...) +// ListFrontendsWithResponse request returning *ListFrontendsClientResponse +func (c *ClientWithResponses) ListFrontendsWithResponse(ctx context.Context, id ProjectId, params *ListFrontendsParams, reqEditors ...RequestEditorFn) (*ListFrontendsClientResponse, error) { + rsp, err := c.ListFrontends(ctx, id, params, reqEditors...) if err != nil { return nil, err } - return ParseAuthListMethodsClientResponse(rsp) + return ParseListFrontendsClientResponse(rsp) } -// AuthPromoteMethodWithResponse request returning *AuthPromoteMethodClientResponse -func (c *ClientWithResponses) AuthPromoteMethodWithResponse(ctx context.Context, methodId openapi_types.UUID, reqEditors ...RequestEditorFn) (*AuthPromoteMethodClientResponse, error) { - rsp, err := c.AuthPromoteMethod(ctx, methodId, reqEditors...) +// CreateFrontendWithBodyWithResponse request with arbitrary body returning *CreateFrontendClientResponse +func (c *ClientWithResponses) CreateFrontendWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFrontendClientResponse, error) { + rsp, err := c.CreateFrontendWithBody(ctx, id, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseAuthPromoteMethodClientResponse(rsp) + return ParseCreateFrontendClientResponse(rsp) } -// AuthDeleteAllMySessionsWithResponse request returning *AuthDeleteAllMySessionsClientResponse -func (c *ClientWithResponses) AuthDeleteAllMySessionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthDeleteAllMySessionsClientResponse, error) { - rsp, err := c.AuthDeleteAllMySessions(ctx, reqEditors...) +// DeleteFrontendWithResponse request returning *DeleteFrontendClientResponse +func (c *ClientWithResponses) DeleteFrontendWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*DeleteFrontendClientResponse, error) { + rsp, err := c.DeleteFrontend(ctx, id, frontendId, reqEditors...) if err != nil { return nil, err } - return ParseAuthDeleteAllMySessionsClientResponse(rsp) + return ParseDeleteFrontendClientResponse(rsp) } -// AuthGetMySessionsWithResponse request returning *AuthGetMySessionsClientResponse -func (c *ClientWithResponses) AuthGetMySessionsWithResponse(ctx context.Context, params *AuthGetMySessionsParams, reqEditors ...RequestEditorFn) (*AuthGetMySessionsClientResponse, error) { - rsp, err := c.AuthGetMySessions(ctx, params, reqEditors...) +// GetFrontendWithResponse request returning *GetFrontendClientResponse +func (c *ClientWithResponses) GetFrontendWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*GetFrontendClientResponse, error) { + rsp, err := c.GetFrontend(ctx, id, frontendId, reqEditors...) if err != nil { return nil, err } - return ParseAuthGetMySessionsClientResponse(rsp) + return ParseGetFrontendClientResponse(rsp) } -// AuthDeleteMySessionWithResponse request returning *AuthDeleteMySessionClientResponse -func (c *ClientWithResponses) AuthDeleteMySessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*AuthDeleteMySessionClientResponse, error) { - rsp, err := c.AuthDeleteMySession(ctx, sessionId, reqEditors...) +// ListFrontendDeploymentsWithResponse request returning *ListFrontendDeploymentsClientResponse +func (c *ClientWithResponses) ListFrontendDeploymentsWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, params *ListFrontendDeploymentsParams, reqEditors ...RequestEditorFn) (*ListFrontendDeploymentsClientResponse, error) { + rsp, err := c.ListFrontendDeployments(ctx, id, frontendId, params, reqEditors...) if err != nil { return nil, err } - return ParseAuthDeleteMySessionClientResponse(rsp) + return ParseListFrontendDeploymentsClientResponse(rsp) } -// ListPostgresVersionsWithResponse request returning *ListPostgresVersionsClientResponse -func (c *ClientWithResponses) ListPostgresVersionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListPostgresVersionsClientResponse, error) { - rsp, err := c.ListPostgresVersions(ctx, reqEditors...) +// DeleteFrontendCustomDomainWithResponse request returning *DeleteFrontendCustomDomainClientResponse +func (c *ClientWithResponses) DeleteFrontendCustomDomainWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*DeleteFrontendCustomDomainClientResponse, error) { + rsp, err := c.DeleteFrontendCustomDomain(ctx, id, frontendId, reqEditors...) if err != nil { return nil, err } - return ParseListPostgresVersionsClientResponse(rsp) + return ParseDeleteFrontendCustomDomainClientResponse(rsp) } -// ListDatabaseRegionsWithResponse request returning *ListDatabaseRegionsClientResponse -func (c *ClientWithResponses) ListDatabaseRegionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListDatabaseRegionsClientResponse, error) { - rsp, err := c.ListDatabaseRegions(ctx, reqEditors...) +// GetFrontendCustomDomainWithResponse request returning *GetFrontendCustomDomainClientResponse +func (c *ClientWithResponses) GetFrontendCustomDomainWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*GetFrontendCustomDomainClientResponse, error) { + rsp, err := c.GetFrontendCustomDomain(ctx, id, frontendId, reqEditors...) if err != nil { return nil, err } - return ParseListDatabaseRegionsClientResponse(rsp) + return ParseGetFrontendCustomDomainClientResponse(rsp) } -// QueryDatabaseBranchDeleteWithBodyWithResponse request with arbitrary body returning *QueryDatabaseBranchDeleteClientResponse -func (c *ClientWithResponses) QueryDatabaseBranchDeleteWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchDeleteClientResponse, error) { - rsp, err := c.QueryDatabaseBranchDeleteWithBody(ctx, databaseName, branchName, contentType, body, reqEditors...) +// CreateFrontendCustomDomainWithBodyWithResponse request with arbitrary body returning *CreateFrontendCustomDomainClientResponse +func (c *ClientWithResponses) CreateFrontendCustomDomainWithBodyWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFrontendCustomDomainClientResponse, error) { + rsp, err := c.CreateFrontendCustomDomainWithBody(ctx, id, frontendId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseQueryDatabaseBranchDeleteClientResponse(rsp) + return ParseCreateFrontendCustomDomainClientResponse(rsp) } -func (c *ClientWithResponses) QueryDatabaseBranchDeleteWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchDeleteClientResponse, error) { - rsp, err := c.QueryDatabaseBranchDelete(ctx, databaseName, branchName, body, reqEditors...) +func (c *ClientWithResponses) CreateFrontendCustomDomainWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, body CreateFrontendCustomDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFrontendCustomDomainClientResponse, error) { + rsp, err := c.CreateFrontendCustomDomain(ctx, id, frontendId, body, reqEditors...) if err != nil { return nil, err } - return ParseQueryDatabaseBranchDeleteClientResponse(rsp) + return ParseCreateFrontendCustomDomainClientResponse(rsp) } -// QueryDatabaseBranchInsertWithBodyWithResponse request with arbitrary body returning *QueryDatabaseBranchInsertClientResponse -func (c *ClientWithResponses) QueryDatabaseBranchInsertWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchInsertClientResponse, error) { - rsp, err := c.QueryDatabaseBranchInsertWithBody(ctx, databaseName, branchName, contentType, body, reqEditors...) +// ListFrontendFunctionRoutesWithResponse request returning *ListFrontendFunctionRoutesClientResponse +func (c *ClientWithResponses) ListFrontendFunctionRoutesWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*ListFrontendFunctionRoutesClientResponse, error) { + rsp, err := c.ListFrontendFunctionRoutes(ctx, id, frontendId, reqEditors...) if err != nil { return nil, err } - return ParseQueryDatabaseBranchInsertClientResponse(rsp) + return ParseListFrontendFunctionRoutesClientResponse(rsp) } -func (c *ClientWithResponses) QueryDatabaseBranchInsertWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchInsertJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchInsertClientResponse, error) { - rsp, err := c.QueryDatabaseBranchInsert(ctx, databaseName, branchName, body, reqEditors...) +// CreateFrontendFunctionRouteWithBodyWithResponse request with arbitrary body returning *CreateFrontendFunctionRouteClientResponse +func (c *ClientWithResponses) CreateFrontendFunctionRouteWithBodyWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFrontendFunctionRouteClientResponse, error) { + rsp, err := c.CreateFrontendFunctionRouteWithBody(ctx, id, frontendId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseQueryDatabaseBranchInsertClientResponse(rsp) + return ParseCreateFrontendFunctionRouteClientResponse(rsp) } -// QueryDatabaseBranchPingWithResponse request returning *QueryDatabaseBranchPingClientResponse -func (c *ClientWithResponses) QueryDatabaseBranchPingWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchPingClientResponse, error) { - rsp, err := c.QueryDatabaseBranchPing(ctx, databaseName, branchName, reqEditors...) +func (c *ClientWithResponses) CreateFrontendFunctionRouteWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, body CreateFrontendFunctionRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFrontendFunctionRouteClientResponse, error) { + rsp, err := c.CreateFrontendFunctionRoute(ctx, id, frontendId, body, reqEditors...) if err != nil { return nil, err } - return ParseQueryDatabaseBranchPingClientResponse(rsp) + return ParseCreateFrontendFunctionRouteClientResponse(rsp) } -// QueryDatabaseBranchSelectWithBodyWithResponse request with arbitrary body returning *QueryDatabaseBranchSelectClientResponse -func (c *ClientWithResponses) QueryDatabaseBranchSelectWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchSelectClientResponse, error) { - rsp, err := c.QueryDatabaseBranchSelectWithBody(ctx, databaseName, branchName, contentType, body, reqEditors...) +// DeleteFrontendFunctionRouteWithResponse request returning *DeleteFrontendFunctionRouteClientResponse +func (c *ClientWithResponses) DeleteFrontendFunctionRouteWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, routeId FrontendFunctionRouteId, reqEditors ...RequestEditorFn) (*DeleteFrontendFunctionRouteClientResponse, error) { + rsp, err := c.DeleteFrontendFunctionRoute(ctx, id, frontendId, routeId, reqEditors...) if err != nil { return nil, err } - return ParseQueryDatabaseBranchSelectClientResponse(rsp) + return ParseDeleteFrontendFunctionRouteClientResponse(rsp) } -func (c *ClientWithResponses) QueryDatabaseBranchSelectWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchSelectJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchSelectClientResponse, error) { - rsp, err := c.QueryDatabaseBranchSelect(ctx, databaseName, branchName, body, reqEditors...) +// UpdateFrontendFunctionRouteWithBodyWithResponse request with arbitrary body returning *UpdateFrontendFunctionRouteClientResponse +func (c *ClientWithResponses) UpdateFrontendFunctionRouteWithBodyWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, routeId FrontendFunctionRouteId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFrontendFunctionRouteClientResponse, error) { + rsp, err := c.UpdateFrontendFunctionRouteWithBody(ctx, id, frontendId, routeId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseQueryDatabaseBranchSelectClientResponse(rsp) + return ParseUpdateFrontendFunctionRouteClientResponse(rsp) } -// QueryDatabaseBranchUpdateWithBodyWithResponse request with arbitrary body returning *QueryDatabaseBranchUpdateClientResponse -func (c *ClientWithResponses) QueryDatabaseBranchUpdateWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchUpdateClientResponse, error) { - rsp, err := c.QueryDatabaseBranchUpdateWithBody(ctx, databaseName, branchName, contentType, body, reqEditors...) +func (c *ClientWithResponses) UpdateFrontendFunctionRouteWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, routeId FrontendFunctionRouteId, body UpdateFrontendFunctionRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFrontendFunctionRouteClientResponse, error) { + rsp, err := c.UpdateFrontendFunctionRoute(ctx, id, frontendId, routeId, body, reqEditors...) if err != nil { return nil, err } - return ParseQueryDatabaseBranchUpdateClientResponse(rsp) + return ParseUpdateFrontendFunctionRouteClientResponse(rsp) } -func (c *ClientWithResponses) QueryDatabaseBranchUpdateWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchUpdateClientResponse, error) { - rsp, err := c.QueryDatabaseBranchUpdate(ctx, databaseName, branchName, body, reqEditors...) +// RedeployFrontendWithResponse request returning *RedeployFrontendClientResponse +func (c *ClientWithResponses) RedeployFrontendWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*RedeployFrontendClientResponse, error) { + rsp, err := c.RedeployFrontend(ctx, id, frontendId, reqEditors...) if err != nil { return nil, err } - return ParseQueryDatabaseBranchUpdateClientResponse(rsp) + return ParseRedeployFrontendClientResponse(rsp) } -// QueryDatabaseDeleteWithBodyWithResponse request with arbitrary body returning *QueryDatabaseDeleteClientResponse -func (c *ClientWithResponses) QueryDatabaseDeleteWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseDeleteClientResponse, error) { - rsp, err := c.QueryDatabaseDeleteWithBody(ctx, databaseName, contentType, body, reqEditors...) +// GetFrontendUsageHistoryWithResponse request returning *GetFrontendUsageHistoryClientResponse +func (c *ClientWithResponses) GetFrontendUsageHistoryWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, params *GetFrontendUsageHistoryParams, reqEditors ...RequestEditorFn) (*GetFrontendUsageHistoryClientResponse, error) { + rsp, err := c.GetFrontendUsageHistory(ctx, id, frontendId, params, reqEditors...) if err != nil { return nil, err } - return ParseQueryDatabaseDeleteClientResponse(rsp) + return ParseGetFrontendUsageHistoryClientResponse(rsp) } -func (c *ClientWithResponses) QueryDatabaseDeleteWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseDeleteClientResponse, error) { - rsp, err := c.QueryDatabaseDelete(ctx, databaseName, body, reqEditors...) +// ListFunctionsWithResponse request returning *ListFunctionsClientResponse +func (c *ClientWithResponses) ListFunctionsWithResponse(ctx context.Context, id ProjectId, params *ListFunctionsParams, reqEditors ...RequestEditorFn) (*ListFunctionsClientResponse, error) { + rsp, err := c.ListFunctions(ctx, id, params, reqEditors...) if err != nil { return nil, err } - return ParseQueryDatabaseDeleteClientResponse(rsp) + return ParseListFunctionsClientResponse(rsp) } -// QueryDatabaseInsertWithBodyWithResponse request with arbitrary body returning *QueryDatabaseInsertClientResponse -func (c *ClientWithResponses) QueryDatabaseInsertWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseInsertClientResponse, error) { - rsp, err := c.QueryDatabaseInsertWithBody(ctx, databaseName, contentType, body, reqEditors...) +// CreateFunctionWithBodyWithResponse request with arbitrary body returning *CreateFunctionClientResponse +func (c *ClientWithResponses) CreateFunctionWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFunctionClientResponse, error) { + rsp, err := c.CreateFunctionWithBody(ctx, id, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseQueryDatabaseInsertClientResponse(rsp) + return ParseCreateFunctionClientResponse(rsp) } -func (c *ClientWithResponses) QueryDatabaseInsertWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseInsertJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseInsertClientResponse, error) { - rsp, err := c.QueryDatabaseInsert(ctx, databaseName, body, reqEditors...) +// CreateFunctionsBatchWithBodyWithResponse request with arbitrary body returning *CreateFunctionsBatchClientResponse +func (c *ClientWithResponses) CreateFunctionsBatchWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFunctionsBatchClientResponse, error) { + rsp, err := c.CreateFunctionsBatchWithBody(ctx, id, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseQueryDatabaseInsertClientResponse(rsp) + return ParseCreateFunctionsBatchClientResponse(rsp) } -// QueryDatabasePingWithResponse request returning *QueryDatabasePingClientResponse -func (c *ClientWithResponses) QueryDatabasePingWithResponse(ctx context.Context, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*QueryDatabasePingClientResponse, error) { - rsp, err := c.QueryDatabasePing(ctx, databaseName, reqEditors...) +// DeleteFunctionWithResponse request returning *DeleteFunctionClientResponse +func (c *ClientWithResponses) DeleteFunctionWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, reqEditors ...RequestEditorFn) (*DeleteFunctionClientResponse, error) { + rsp, err := c.DeleteFunction(ctx, id, functionId, reqEditors...) if err != nil { return nil, err } - return ParseQueryDatabasePingClientResponse(rsp) + return ParseDeleteFunctionClientResponse(rsp) } -// QueryDatabaseSelectWithBodyWithResponse request with arbitrary body returning *QueryDatabaseSelectClientResponse -func (c *ClientWithResponses) QueryDatabaseSelectWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseSelectClientResponse, error) { - rsp, err := c.QueryDatabaseSelectWithBody(ctx, databaseName, contentType, body, reqEditors...) +// GetFunctionWithResponse request returning *GetFunctionClientResponse +func (c *ClientWithResponses) GetFunctionWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, reqEditors ...RequestEditorFn) (*GetFunctionClientResponse, error) { + rsp, err := c.GetFunction(ctx, id, functionId, reqEditors...) if err != nil { return nil, err } - return ParseQueryDatabaseSelectClientResponse(rsp) + return ParseGetFunctionClientResponse(rsp) } -func (c *ClientWithResponses) QueryDatabaseSelectWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseSelectJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseSelectClientResponse, error) { - rsp, err := c.QueryDatabaseSelect(ctx, databaseName, body, reqEditors...) +// UpdateFunctionWithBodyWithResponse request with arbitrary body returning *UpdateFunctionClientResponse +func (c *ClientWithResponses) UpdateFunctionWithBodyWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFunctionClientResponse, error) { + rsp, err := c.UpdateFunctionWithBody(ctx, id, functionId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseQueryDatabaseSelectClientResponse(rsp) + return ParseUpdateFunctionClientResponse(rsp) } -// QueryDatabaseUpdateWithBodyWithResponse request with arbitrary body returning *QueryDatabaseUpdateClientResponse -func (c *ClientWithResponses) QueryDatabaseUpdateWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseUpdateClientResponse, error) { - rsp, err := c.QueryDatabaseUpdateWithBody(ctx, databaseName, contentType, body, reqEditors...) +func (c *ClientWithResponses) UpdateFunctionWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, body UpdateFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFunctionClientResponse, error) { + rsp, err := c.UpdateFunction(ctx, id, functionId, body, reqEditors...) if err != nil { return nil, err } - return ParseQueryDatabaseUpdateClientResponse(rsp) + return ParseUpdateFunctionClientResponse(rsp) } -func (c *ClientWithResponses) QueryDatabaseUpdateWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseUpdateClientResponse, error) { - rsp, err := c.QueryDatabaseUpdate(ctx, databaseName, body, reqEditors...) +// ListFunctionDeploymentsWithResponse request returning *ListFunctionDeploymentsClientResponse +func (c *ClientWithResponses) ListFunctionDeploymentsWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, params *ListFunctionDeploymentsParams, reqEditors ...RequestEditorFn) (*ListFunctionDeploymentsClientResponse, error) { + rsp, err := c.ListFunctionDeployments(ctx, id, functionId, params, reqEditors...) if err != nil { return nil, err } - return ParseQueryDatabaseUpdateClientResponse(rsp) + return ParseListFunctionDeploymentsClientResponse(rsp) } -// ListDeploymentsWithResponse request returning *ListDeploymentsClientResponse -func (c *ClientWithResponses) ListDeploymentsWithResponse(ctx context.Context, params *ListDeploymentsParams, reqEditors ...RequestEditorFn) (*ListDeploymentsClientResponse, error) { - rsp, err := c.ListDeployments(ctx, params, reqEditors...) +// ListFunctionSchedulersWithResponse request returning *ListFunctionSchedulersClientResponse +func (c *ClientWithResponses) ListFunctionSchedulersWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, reqEditors ...RequestEditorFn) (*ListFunctionSchedulersClientResponse, error) { + rsp, err := c.ListFunctionSchedulers(ctx, id, functionId, reqEditors...) if err != nil { return nil, err } - return ParseListDeploymentsClientResponse(rsp) + return ParseListFunctionSchedulersClientResponse(rsp) } -// GetDefaultEmailTemplatesWithResponse request returning *GetDefaultEmailTemplatesClientResponse -func (c *ClientWithResponses) GetDefaultEmailTemplatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDefaultEmailTemplatesClientResponse, error) { - rsp, err := c.GetDefaultEmailTemplates(ctx, reqEditors...) +// CreateFunctionSchedulerWithBodyWithResponse request with arbitrary body returning *CreateFunctionSchedulerClientResponse +func (c *ClientWithResponses) CreateFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFunctionSchedulerClientResponse, error) { + rsp, err := c.CreateFunctionSchedulerWithBody(ctx, id, functionId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetDefaultEmailTemplatesClientResponse(rsp) + return ParseCreateFunctionSchedulerClientResponse(rsp) } -// GetDefaultEmailTemplateWithResponse request returning *GetDefaultEmailTemplateClientResponse -func (c *ClientWithResponses) GetDefaultEmailTemplateWithResponse(ctx context.Context, pType GetDefaultEmailTemplateParamsType, reqEditors ...RequestEditorFn) (*GetDefaultEmailTemplateClientResponse, error) { - rsp, err := c.GetDefaultEmailTemplate(ctx, pType, reqEditors...) +func (c *ClientWithResponses) CreateFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, body CreateFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFunctionSchedulerClientResponse, error) { + rsp, err := c.CreateFunctionScheduler(ctx, id, functionId, body, reqEditors...) if err != nil { return nil, err } - return ParseGetDefaultEmailTemplateClientResponse(rsp) + return ParseCreateFunctionSchedulerClientResponse(rsp) } -// ListFunctionRegionsWithResponse request returning *ListFunctionRegionsClientResponse -func (c *ClientWithResponses) ListFunctionRegionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListFunctionRegionsClientResponse, error) { - rsp, err := c.ListFunctionRegions(ctx, reqEditors...) +// DeleteFunctionSchedulerWithResponse request returning *DeleteFunctionSchedulerClientResponse +func (c *ClientWithResponses) DeleteFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*DeleteFunctionSchedulerClientResponse, error) { + rsp, err := c.DeleteFunctionScheduler(ctx, id, functionId, schedulerId, reqEditors...) if err != nil { return nil, err } - return ParseListFunctionRegionsClientResponse(rsp) + return ParseDeleteFunctionSchedulerClientResponse(rsp) } -// ResolveFunctionForInvocationWithResponse request returning *ResolveFunctionForInvocationClientResponse -func (c *ClientWithResponses) ResolveFunctionForInvocationWithResponse(ctx context.Context, params *ResolveFunctionForInvocationParams, reqEditors ...RequestEditorFn) (*ResolveFunctionForInvocationClientResponse, error) { - rsp, err := c.ResolveFunctionForInvocation(ctx, params, reqEditors...) +// GetFunctionSchedulerWithResponse request returning *GetFunctionSchedulerClientResponse +func (c *ClientWithResponses) GetFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*GetFunctionSchedulerClientResponse, error) { + rsp, err := c.GetFunctionScheduler(ctx, id, functionId, schedulerId, reqEditors...) if err != nil { return nil, err } - return ParseResolveFunctionForInvocationClientResponse(rsp) + return ParseGetFunctionSchedulerClientResponse(rsp) } -// ListFunctionRuntimesWithResponse request returning *ListFunctionRuntimesClientResponse -func (c *ClientWithResponses) ListFunctionRuntimesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListFunctionRuntimesClientResponse, error) { - rsp, err := c.ListFunctionRuntimes(ctx, reqEditors...) +// UpdateFunctionSchedulerWithBodyWithResponse request with arbitrary body returning *UpdateFunctionSchedulerClientResponse +func (c *ClientWithResponses) UpdateFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFunctionSchedulerClientResponse, error) { + rsp, err := c.UpdateFunctionSchedulerWithBody(ctx, id, functionId, schedulerId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseListFunctionRuntimesClientResponse(rsp) + return ParseUpdateFunctionSchedulerClientResponse(rsp) } -// InvokeFunctionWithBodyWithResponse request with arbitrary body returning *InvokeFunctionClientResponse -func (c *ClientWithResponses) InvokeFunctionWithBodyWithResponse(ctx context.Context, functionId FunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InvokeFunctionClientResponse, error) { - rsp, err := c.InvokeFunctionWithBody(ctx, functionId, contentType, body, reqEditors...) +func (c *ClientWithResponses) UpdateFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, body UpdateFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFunctionSchedulerClientResponse, error) { + rsp, err := c.UpdateFunctionScheduler(ctx, id, functionId, schedulerId, body, reqEditors...) if err != nil { return nil, err } - return ParseInvokeFunctionClientResponse(rsp) + return ParseUpdateFunctionSchedulerClientResponse(rsp) } -func (c *ClientWithResponses) InvokeFunctionWithResponse(ctx context.Context, functionId FunctionId, body InvokeFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*InvokeFunctionClientResponse, error) { - rsp, err := c.InvokeFunction(ctx, functionId, body, reqEditors...) +// DisconnectProjectGitWithResponse request returning *DisconnectProjectGitClientResponse +func (c *ClientWithResponses) DisconnectProjectGitWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*DisconnectProjectGitClientResponse, error) { + rsp, err := c.DisconnectProjectGit(ctx, id, reqEditors...) if err != nil { return nil, err } - return ParseInvokeFunctionClientResponse(rsp) + return ParseDisconnectProjectGitClientResponse(rsp) } -// GitConnectCallbackWithResponse request returning *GitConnectCallbackClientResponse -func (c *ClientWithResponses) GitConnectCallbackWithResponse(ctx context.Context, params *GitConnectCallbackParams, reqEditors ...RequestEditorFn) (*GitConnectCallbackClientResponse, error) { - rsp, err := c.GitConnectCallback(ctx, params, reqEditors...) +// GetProjectGitConnectionWithResponse request returning *GetProjectGitConnectionClientResponse +func (c *ClientWithResponses) GetProjectGitConnectionWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectGitConnectionClientResponse, error) { + rsp, err := c.GetProjectGitConnection(ctx, id, reqEditors...) if err != nil { return nil, err } - return ParseGitConnectCallbackClientResponse(rsp) + return ParseGetProjectGitConnectionClientResponse(rsp) } -// HealthCheckWithResponse request returning *HealthCheckClientResponse -func (c *ClientWithResponses) HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckClientResponse, error) { - rsp, err := c.HealthCheck(ctx, reqEditors...) +// ConnectProjectGitWithBodyWithResponse request with arbitrary body returning *ConnectProjectGitClientResponse +func (c *ClientWithResponses) ConnectProjectGitWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConnectProjectGitClientResponse, error) { + rsp, err := c.ConnectProjectGitWithBody(ctx, id, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseHealthCheckClientResponse(rsp) + return ParseConnectProjectGitClientResponse(rsp) } -// CompleteImportConnectWithResponse request returning *CompleteImportConnectClientResponse -func (c *ClientWithResponses) CompleteImportConnectWithResponse(ctx context.Context, provider ImportProvider, params *CompleteImportConnectParams, reqEditors ...RequestEditorFn) (*CompleteImportConnectClientResponse, error) { - rsp, err := c.CompleteImportConnect(ctx, provider, params, reqEditors...) +func (c *ClientWithResponses) ConnectProjectGitWithResponse(ctx context.Context, id ProjectId, body ConnectProjectGitJSONRequestBody, reqEditors ...RequestEditorFn) (*ConnectProjectGitClientResponse, error) { + rsp, err := c.ConnectProjectGit(ctx, id, body, reqEditors...) if err != nil { return nil, err } - return ParseCompleteImportConnectClientResponse(rsp) + return ParseConnectProjectGitClientResponse(rsp) } -// PreflightProjectImportWithBodyWithResponse request with arbitrary body returning *PreflightProjectImportClientResponse -func (c *ClientWithResponses) PreflightProjectImportWithBodyWithResponse(ctx context.Context, provider ImportProvider, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PreflightProjectImportClientResponse, error) { - rsp, err := c.PreflightProjectImportWithBody(ctx, provider, contentType, body, reqEditors...) +// SetProjectGitProductionBranchWithBodyWithResponse request with arbitrary body returning *SetProjectGitProductionBranchClientResponse +func (c *ClientWithResponses) SetProjectGitProductionBranchWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetProjectGitProductionBranchClientResponse, error) { + rsp, err := c.SetProjectGitProductionBranchWithBody(ctx, id, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePreflightProjectImportClientResponse(rsp) + return ParseSetProjectGitProductionBranchClientResponse(rsp) } -func (c *ClientWithResponses) PreflightProjectImportWithResponse(ctx context.Context, provider ImportProvider, body PreflightProjectImportJSONRequestBody, reqEditors ...RequestEditorFn) (*PreflightProjectImportClientResponse, error) { - rsp, err := c.PreflightProjectImport(ctx, provider, body, reqEditors...) +func (c *ClientWithResponses) SetProjectGitProductionBranchWithResponse(ctx context.Context, id ProjectId, body SetProjectGitProductionBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*SetProjectGitProductionBranchClientResponse, error) { + rsp, err := c.SetProjectGitProductionBranch(ctx, id, body, reqEditors...) if err != nil { return nil, err } - return ParsePreflightProjectImportClientResponse(rsp) + return ParseSetProjectGitProductionBranchClientResponse(rsp) } -// StartProjectImportWithBodyWithResponse request with arbitrary body returning *StartProjectImportClientResponse -func (c *ClientWithResponses) StartProjectImportWithBodyWithResponse(ctx context.Context, provider ImportProvider, params *StartProjectImportParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartProjectImportClientResponse, error) { - rsp, err := c.StartProjectImportWithBody(ctx, provider, params, contentType, body, reqEditors...) +// GetProjectGitDeploySettingsWithResponse request returning *GetProjectGitDeploySettingsClientResponse +func (c *ClientWithResponses) GetProjectGitDeploySettingsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectGitDeploySettingsClientResponse, error) { + rsp, err := c.GetProjectGitDeploySettings(ctx, id, reqEditors...) if err != nil { return nil, err } - return ParseStartProjectImportClientResponse(rsp) + return ParseGetProjectGitDeploySettingsClientResponse(rsp) } -func (c *ClientWithResponses) StartProjectImportWithResponse(ctx context.Context, provider ImportProvider, params *StartProjectImportParams, body StartProjectImportJSONRequestBody, reqEditors ...RequestEditorFn) (*StartProjectImportClientResponse, error) { - rsp, err := c.StartProjectImport(ctx, provider, params, body, reqEditors...) +// UpdateProjectGitDeploySettingsWithBodyWithResponse request with arbitrary body returning *UpdateProjectGitDeploySettingsClientResponse +func (c *ClientWithResponses) UpdateProjectGitDeploySettingsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectGitDeploySettingsClientResponse, error) { + rsp, err := c.UpdateProjectGitDeploySettingsWithBody(ctx, id, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseStartProjectImportClientResponse(rsp) + return ParseUpdateProjectGitDeploySettingsClientResponse(rsp) } -// GetProjectImportRunWithResponse request returning *GetProjectImportRunClientResponse -func (c *ClientWithResponses) GetProjectImportRunWithResponse(ctx context.Context, provider ImportProvider, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectImportRunClientResponse, error) { - rsp, err := c.GetProjectImportRun(ctx, provider, runId, reqEditors...) +func (c *ClientWithResponses) UpdateProjectGitDeploySettingsWithResponse(ctx context.Context, id ProjectId, body UpdateProjectGitDeploySettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectGitDeploySettingsClientResponse, error) { + rsp, err := c.UpdateProjectGitDeploySettings(ctx, id, body, reqEditors...) if err != nil { return nil, err } - return ParseGetProjectImportRunClientResponse(rsp) + return ParseUpdateProjectGitDeploySettingsClientResponse(rsp) } -// ListImportSourcesWithResponse request returning *ListImportSourcesClientResponse -func (c *ClientWithResponses) ListImportSourcesWithResponse(ctx context.Context, provider ImportProvider, params *ListImportSourcesParams, reqEditors ...RequestEditorFn) (*ListImportSourcesClientResponse, error) { - rsp, err := c.ListImportSources(ctx, provider, params, reqEditors...) +// GetProjectHealthWithResponse request returning *GetProjectHealthClientResponse +func (c *ClientWithResponses) GetProjectHealthWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectHealthClientResponse, error) { + rsp, err := c.GetProjectHealth(ctx, id, reqEditors...) if err != nil { return nil, err } - return ParseListImportSourcesClientResponse(rsp) + return ParseGetProjectHealthClientResponse(rsp) } -// ForceReleaseProjectLockWithResponse request returning *ForceReleaseProjectLockClientResponse -func (c *ClientWithResponses) ForceReleaseProjectLockWithResponse(ctx context.Context, key LockKey, params *ForceReleaseProjectLockParams, reqEditors ...RequestEditorFn) (*ForceReleaseProjectLockClientResponse, error) { - rsp, err := c.ForceReleaseProjectLock(ctx, key, params, reqEditors...) +// DeleteProjectLogoWithResponse request returning *DeleteProjectLogoClientResponse +func (c *ClientWithResponses) DeleteProjectLogoWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*DeleteProjectLogoClientResponse, error) { + rsp, err := c.DeleteProjectLogo(ctx, id, reqEditors...) if err != nil { return nil, err } - return ParseForceReleaseProjectLockClientResponse(rsp) + return ParseDeleteProjectLogoClientResponse(rsp) } -// GetProjectLockWithResponse request returning *GetProjectLockClientResponse -func (c *ClientWithResponses) GetProjectLockWithResponse(ctx context.Context, key LockKey, params *GetProjectLockParams, reqEditors ...RequestEditorFn) (*GetProjectLockClientResponse, error) { - rsp, err := c.GetProjectLock(ctx, key, params, reqEditors...) +// GetProjectLogoWithResponse request returning *GetProjectLogoClientResponse +func (c *ClientWithResponses) GetProjectLogoWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectLogoClientResponse, error) { + rsp, err := c.GetProjectLogo(ctx, id, reqEditors...) if err != nil { return nil, err } - return ParseGetProjectLockClientResponse(rsp) + return ParseGetProjectLogoClientResponse(rsp) } -// ReleaseProjectLockWithResponse request returning *ReleaseProjectLockClientResponse -func (c *ClientWithResponses) ReleaseProjectLockWithResponse(ctx context.Context, key LockKey, params *ReleaseProjectLockParams, reqEditors ...RequestEditorFn) (*ReleaseProjectLockClientResponse, error) { - rsp, err := c.ReleaseProjectLock(ctx, key, params, reqEditors...) +// UploadProjectLogoWithBodyWithResponse request with arbitrary body returning *UploadProjectLogoClientResponse +func (c *ClientWithResponses) UploadProjectLogoWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadProjectLogoClientResponse, error) { + rsp, err := c.UploadProjectLogoWithBody(ctx, id, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseReleaseProjectLockClientResponse(rsp) + return ParseUploadProjectLogoClientResponse(rsp) } -// RenewProjectLockWithBodyWithResponse request with arbitrary body returning *RenewProjectLockClientResponse -func (c *ClientWithResponses) RenewProjectLockWithBodyWithResponse(ctx context.Context, key LockKey, params *RenewProjectLockParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenewProjectLockClientResponse, error) { - rsp, err := c.RenewProjectLockWithBody(ctx, key, params, contentType, body, reqEditors...) +// GetProjectLogActivityWithBodyWithResponse request with arbitrary body returning *GetProjectLogActivityClientResponse +func (c *ClientWithResponses) GetProjectLogActivityWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetProjectLogActivityClientResponse, error) { + rsp, err := c.GetProjectLogActivityWithBody(ctx, id, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseRenewProjectLockClientResponse(rsp) + return ParseGetProjectLogActivityClientResponse(rsp) } -func (c *ClientWithResponses) RenewProjectLockWithResponse(ctx context.Context, key LockKey, params *RenewProjectLockParams, body RenewProjectLockJSONRequestBody, reqEditors ...RequestEditorFn) (*RenewProjectLockClientResponse, error) { - rsp, err := c.RenewProjectLock(ctx, key, params, body, reqEditors...) +func (c *ClientWithResponses) GetProjectLogActivityWithResponse(ctx context.Context, id ProjectId, body GetProjectLogActivityJSONRequestBody, reqEditors ...RequestEditorFn) (*GetProjectLogActivityClientResponse, error) { + rsp, err := c.GetProjectLogActivity(ctx, id, body, reqEditors...) if err != nil { return nil, err } - return ParseRenewProjectLockClientResponse(rsp) + return ParseGetProjectLogActivityClientResponse(rsp) } -// AcquireProjectLockWithBodyWithResponse request with arbitrary body returning *AcquireProjectLockClientResponse -func (c *ClientWithResponses) AcquireProjectLockWithBodyWithResponse(ctx context.Context, key LockKey, params *AcquireProjectLockParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AcquireProjectLockClientResponse, error) { - rsp, err := c.AcquireProjectLockWithBody(ctx, key, params, contentType, body, reqEditors...) +// SearchProjectLogsWithBodyWithResponse request with arbitrary body returning *SearchProjectLogsClientResponse +func (c *ClientWithResponses) SearchProjectLogsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SearchProjectLogsClientResponse, error) { + rsp, err := c.SearchProjectLogsWithBody(ctx, id, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseAcquireProjectLockClientResponse(rsp) + return ParseSearchProjectLogsClientResponse(rsp) } -func (c *ClientWithResponses) AcquireProjectLockWithResponse(ctx context.Context, key LockKey, params *AcquireProjectLockParams, body AcquireProjectLockJSONRequestBody, reqEditors ...RequestEditorFn) (*AcquireProjectLockClientResponse, error) { - rsp, err := c.AcquireProjectLock(ctx, key, params, body, reqEditors...) +func (c *ClientWithResponses) SearchProjectLogsWithResponse(ctx context.Context, id ProjectId, body SearchProjectLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*SearchProjectLogsClientResponse, error) { + rsp, err := c.SearchProjectLogs(ctx, id, body, reqEditors...) if err != nil { return nil, err } - return ParseAcquireProjectLockClientResponse(rsp) + return ParseSearchProjectLogsClientResponse(rsp) } -// ListProjectsWithResponse request returning *ListProjectsClientResponse -func (c *ClientWithResponses) ListProjectsWithResponse(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*ListProjectsClientResponse, error) { - rsp, err := c.ListProjects(ctx, params, reqEditors...) +// StreamProjectLogsWithBodyWithResponse request with arbitrary body returning *StreamProjectLogsClientResponse +func (c *ClientWithResponses) StreamProjectLogsWithBodyWithResponse(ctx context.Context, id ProjectId, params *StreamProjectLogsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StreamProjectLogsClientResponse, error) { + rsp, err := c.StreamProjectLogsWithBody(ctx, id, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseStreamProjectLogsClientResponse(rsp) +} + +func (c *ClientWithResponses) StreamProjectLogsWithResponse(ctx context.Context, id ProjectId, params *StreamProjectLogsParams, body StreamProjectLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*StreamProjectLogsClientResponse, error) { + rsp, err := c.StreamProjectLogs(ctx, id, params, body, reqEditors...) if err != nil { return nil, err } - return ParseListProjectsClientResponse(rsp) + return ParseStreamProjectLogsClientResponse(rsp) } -// CreateProjectWithBodyWithResponse request with arbitrary body returning *CreateProjectClientResponse -func (c *ClientWithResponses) CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectClientResponse, error) { - rsp, err := c.CreateProjectWithBody(ctx, contentType, body, reqEditors...) +// QueryProjectMetricsWithBodyWithResponse request with arbitrary body returning *QueryProjectMetricsClientResponse +func (c *ClientWithResponses) QueryProjectMetricsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryProjectMetricsClientResponse, error) { + rsp, err := c.QueryProjectMetricsWithBody(ctx, id, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateProjectClientResponse(rsp) + return ParseQueryProjectMetricsClientResponse(rsp) } -func (c *ClientWithResponses) CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectClientResponse, error) { - rsp, err := c.CreateProject(ctx, body, reqEditors...) +func (c *ClientWithResponses) QueryProjectMetricsWithResponse(ctx context.Context, id ProjectId, body QueryProjectMetricsJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryProjectMetricsClientResponse, error) { + rsp, err := c.QueryProjectMetrics(ctx, id, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateProjectClientResponse(rsp) + return ParseQueryProjectMetricsClientResponse(rsp) } -// DeleteProjectWithResponse request returning *DeleteProjectClientResponse -func (c *ClientWithResponses) DeleteProjectWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*DeleteProjectClientResponse, error) { - rsp, err := c.DeleteProject(ctx, id, reqEditors...) +// ListOAuthConfigsWithResponse request returning *ListOAuthConfigsClientResponse +func (c *ClientWithResponses) ListOAuthConfigsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*ListOAuthConfigsClientResponse, error) { + rsp, err := c.ListOAuthConfigs(ctx, id, reqEditors...) if err != nil { return nil, err } - return ParseDeleteProjectClientResponse(rsp) + return ParseListOAuthConfigsClientResponse(rsp) } -// GetProjectWithResponse request returning *GetProjectClientResponse -func (c *ClientWithResponses) GetProjectWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectClientResponse, error) { - rsp, err := c.GetProject(ctx, id, reqEditors...) +// CreateOAuthConfigWithBodyWithResponse request with arbitrary body returning *CreateOAuthConfigClientResponse +func (c *ClientWithResponses) CreateOAuthConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOAuthConfigClientResponse, error) { + rsp, err := c.CreateOAuthConfigWithBody(ctx, id, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetProjectClientResponse(rsp) + return ParseCreateOAuthConfigClientResponse(rsp) } -// UpdateProjectWithBodyWithResponse request with arbitrary body returning *UpdateProjectClientResponse -func (c *ClientWithResponses) UpdateProjectWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectClientResponse, error) { - rsp, err := c.UpdateProjectWithBody(ctx, id, contentType, body, reqEditors...) +func (c *ClientWithResponses) CreateOAuthConfigWithResponse(ctx context.Context, id ProjectId, body CreateOAuthConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOAuthConfigClientResponse, error) { + rsp, err := c.CreateOAuthConfig(ctx, id, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateProjectClientResponse(rsp) + return ParseCreateOAuthConfigClientResponse(rsp) } -func (c *ClientWithResponses) UpdateProjectWithResponse(ctx context.Context, id ProjectId, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectClientResponse, error) { - rsp, err := c.UpdateProject(ctx, id, body, reqEditors...) +// DeleteOAuthConfigWithResponse request returning *DeleteOAuthConfigClientResponse +func (c *ClientWithResponses) DeleteOAuthConfigWithResponse(ctx context.Context, id ProjectId, provider DeleteOAuthConfigParamsProvider, params *DeleteOAuthConfigParams, reqEditors ...RequestEditorFn) (*DeleteOAuthConfigClientResponse, error) { + rsp, err := c.DeleteOAuthConfig(ctx, id, provider, params, reqEditors...) if err != nil { return nil, err } - return ParseUpdateProjectClientResponse(rsp) + return ParseDeleteOAuthConfigClientResponse(rsp) } -// ListProjectAccessTokensWithResponse request returning *ListProjectAccessTokensClientResponse -func (c *ClientWithResponses) ListProjectAccessTokensWithResponse(ctx context.Context, id ProjectId, params *ListProjectAccessTokensParams, reqEditors ...RequestEditorFn) (*ListProjectAccessTokensClientResponse, error) { - rsp, err := c.ListProjectAccessTokens(ctx, id, params, reqEditors...) +// GetOAuthConfigWithResponse request returning *GetOAuthConfigClientResponse +func (c *ClientWithResponses) GetOAuthConfigWithResponse(ctx context.Context, id ProjectId, provider GetOAuthConfigParamsProvider, params *GetOAuthConfigParams, reqEditors ...RequestEditorFn) (*GetOAuthConfigClientResponse, error) { + rsp, err := c.GetOAuthConfig(ctx, id, provider, params, reqEditors...) if err != nil { return nil, err } - return ParseListProjectAccessTokensClientResponse(rsp) + return ParseGetOAuthConfigClientResponse(rsp) } -// CreateProjectAccessTokenWithBodyWithResponse request with arbitrary body returning *CreateProjectAccessTokenClientResponse -func (c *ClientWithResponses) CreateProjectAccessTokenWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectAccessTokenClientResponse, error) { - rsp, err := c.CreateProjectAccessTokenWithBody(ctx, id, contentType, body, reqEditors...) +// UpdateOAuthConfigWithBodyWithResponse request with arbitrary body returning *UpdateOAuthConfigClientResponse +func (c *ClientWithResponses) UpdateOAuthConfigWithBodyWithResponse(ctx context.Context, id ProjectId, provider UpdateOAuthConfigParamsProvider, params *UpdateOAuthConfigParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOAuthConfigClientResponse, error) { + rsp, err := c.UpdateOAuthConfigWithBody(ctx, id, provider, params, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateProjectAccessTokenClientResponse(rsp) + return ParseUpdateOAuthConfigClientResponse(rsp) } -func (c *ClientWithResponses) CreateProjectAccessTokenWithResponse(ctx context.Context, id ProjectId, body CreateProjectAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectAccessTokenClientResponse, error) { - rsp, err := c.CreateProjectAccessToken(ctx, id, body, reqEditors...) +func (c *ClientWithResponses) UpdateOAuthConfigWithResponse(ctx context.Context, id ProjectId, provider UpdateOAuthConfigParamsProvider, params *UpdateOAuthConfigParams, body UpdateOAuthConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOAuthConfigClientResponse, error) { + rsp, err := c.UpdateOAuthConfig(ctx, id, provider, params, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateProjectAccessTokenClientResponse(rsp) + return ParseUpdateOAuthConfigClientResponse(rsp) } -// ListProjectAccessTokensUsageWithResponse request returning *ListProjectAccessTokensUsageClientResponse -func (c *ClientWithResponses) ListProjectAccessTokensUsageWithResponse(ctx context.Context, id ProjectId, params *ListProjectAccessTokensUsageParams, reqEditors ...RequestEditorFn) (*ListProjectAccessTokensUsageClientResponse, error) { - rsp, err := c.ListProjectAccessTokensUsage(ctx, id, params, reqEditors...) +// ListAvailableOAuthProvidersWithResponse request returning *ListAvailableOAuthProvidersClientResponse +func (c *ClientWithResponses) ListAvailableOAuthProvidersWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*ListAvailableOAuthProvidersClientResponse, error) { + rsp, err := c.ListAvailableOAuthProviders(ctx, id, reqEditors...) if err != nil { return nil, err } - return ParseListProjectAccessTokensUsageClientResponse(rsp) + return ParseListAvailableOAuthProvidersClientResponse(rsp) } -// RevokeProjectAccessTokenWithResponse request returning *RevokeProjectAccessTokenClientResponse -func (c *ClientWithResponses) RevokeProjectAccessTokenWithResponse(ctx context.Context, id ProjectId, tokenId TokenId, reqEditors ...RequestEditorFn) (*RevokeProjectAccessTokenClientResponse, error) { - rsp, err := c.RevokeProjectAccessToken(ctx, id, tokenId, reqEditors...) +// GetRealtimeConfigWithResponse request returning *GetRealtimeConfigClientResponse +func (c *ClientWithResponses) GetRealtimeConfigWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetRealtimeConfigClientResponse, error) { + rsp, err := c.GetRealtimeConfig(ctx, id, reqEditors...) if err != nil { return nil, err } - return ParseRevokeProjectAccessTokenClientResponse(rsp) + return ParseGetRealtimeConfigClientResponse(rsp) } -// GetProjectAccessTokenWithResponse request returning *GetProjectAccessTokenClientResponse -func (c *ClientWithResponses) GetProjectAccessTokenWithResponse(ctx context.Context, id ProjectId, tokenId TokenId, reqEditors ...RequestEditorFn) (*GetProjectAccessTokenClientResponse, error) { - rsp, err := c.GetProjectAccessToken(ctx, id, tokenId, reqEditors...) +// UpdateRealtimeConfigWithBodyWithResponse request with arbitrary body returning *UpdateRealtimeConfigClientResponse +func (c *ClientWithResponses) UpdateRealtimeConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRealtimeConfigClientResponse, error) { + rsp, err := c.UpdateRealtimeConfigWithBody(ctx, id, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetProjectAccessTokenClientResponse(rsp) + return ParseUpdateRealtimeConfigClientResponse(rsp) } -// GetProjectAccessTokenUsageWithResponse request returning *GetProjectAccessTokenUsageClientResponse -func (c *ClientWithResponses) GetProjectAccessTokenUsageWithResponse(ctx context.Context, id ProjectId, tokenId TokenId, params *GetProjectAccessTokenUsageParams, reqEditors ...RequestEditorFn) (*GetProjectAccessTokenUsageClientResponse, error) { - rsp, err := c.GetProjectAccessTokenUsage(ctx, id, tokenId, params, reqEditors...) +func (c *ClientWithResponses) UpdateRealtimeConfigWithResponse(ctx context.Context, id ProjectId, body UpdateRealtimeConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRealtimeConfigClientResponse, error) { + rsp, err := c.UpdateRealtimeConfig(ctx, id, body, reqEditors...) if err != nil { return nil, err } - return ParseGetProjectAccessTokenUsageClientResponse(rsp) + return ParseUpdateRealtimeConfigClientResponse(rsp) } -// ListAnonKeysWithResponse request returning *ListAnonKeysClientResponse -func (c *ClientWithResponses) ListAnonKeysWithResponse(ctx context.Context, id ProjectId, params *ListAnonKeysParams, reqEditors ...RequestEditorFn) (*ListAnonKeysClientResponse, error) { - rsp, err := c.ListAnonKeys(ctx, id, params, reqEditors...) +// GetRealtimeStatsWithResponse request returning *GetRealtimeStatsClientResponse +func (c *ClientWithResponses) GetRealtimeStatsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetRealtimeStatsClientResponse, error) { + rsp, err := c.GetRealtimeStats(ctx, id, reqEditors...) if err != nil { return nil, err } - return ParseListAnonKeysClientResponse(rsp) + return ParseGetRealtimeStatsClientResponse(rsp) } -// CreateAnonKeyWithBodyWithResponse request with arbitrary body returning *CreateAnonKeyClientResponse -func (c *ClientWithResponses) CreateAnonKeyWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAnonKeyClientResponse, error) { - rsp, err := c.CreateAnonKeyWithBody(ctx, id, contentType, body, reqEditors...) +// ExecuteSandboxWithBodyWithResponse request with arbitrary body returning *ExecuteSandboxClientResponse +func (c *ClientWithResponses) ExecuteSandboxWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, params *ExecuteSandboxParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExecuteSandboxClientResponse, error) { + rsp, err := c.ExecuteSandboxWithBody(ctx, id, params, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateAnonKeyClientResponse(rsp) + return ParseExecuteSandboxClientResponse(rsp) } -func (c *ClientWithResponses) CreateAnonKeyWithResponse(ctx context.Context, id ProjectId, body CreateAnonKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAnonKeyClientResponse, error) { - rsp, err := c.CreateAnonKey(ctx, id, body, reqEditors...) +func (c *ClientWithResponses) ExecuteSandboxWithResponse(ctx context.Context, id openapi_types.UUID, params *ExecuteSandboxParams, body ExecuteSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*ExecuteSandboxClientResponse, error) { + rsp, err := c.ExecuteSandbox(ctx, id, params, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateAnonKeyClientResponse(rsp) + return ParseExecuteSandboxClientResponse(rsp) } -// RevokeAnonKeyWithResponse request returning *RevokeAnonKeyClientResponse -func (c *ClientWithResponses) RevokeAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RevokeAnonKeyClientResponse, error) { - rsp, err := c.RevokeAnonKey(ctx, id, keyId, reqEditors...) +// ListSandboxSessionsWithResponse request returning *ListSandboxSessionsClientResponse +func (c *ClientWithResponses) ListSandboxSessionsWithResponse(ctx context.Context, id openapi_types.UUID, params *ListSandboxSessionsParams, reqEditors ...RequestEditorFn) (*ListSandboxSessionsClientResponse, error) { + rsp, err := c.ListSandboxSessions(ctx, id, params, reqEditors...) if err != nil { return nil, err } - return ParseRevokeAnonKeyClientResponse(rsp) + return ParseListSandboxSessionsClientResponse(rsp) } -// GetAnonKeyWithResponse request returning *GetAnonKeyClientResponse -func (c *ClientWithResponses) GetAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAnonKeyClientResponse, error) { - rsp, err := c.GetAnonKey(ctx, id, keyId, reqEditors...) +// CreateSandboxSessionWithBodyWithResponse request with arbitrary body returning *CreateSandboxSessionClientResponse +func (c *ClientWithResponses) CreateSandboxSessionWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, params *CreateSandboxSessionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSandboxSessionClientResponse, error) { + rsp, err := c.CreateSandboxSessionWithBody(ctx, id, params, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetAnonKeyClientResponse(rsp) + return ParseCreateSandboxSessionClientResponse(rsp) } -// RegenerateAnonKeyWithResponse request returning *RegenerateAnonKeyClientResponse -func (c *ClientWithResponses) RegenerateAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RegenerateAnonKeyClientResponse, error) { - rsp, err := c.RegenerateAnonKey(ctx, id, keyId, reqEditors...) +func (c *ClientWithResponses) CreateSandboxSessionWithResponse(ctx context.Context, id openapi_types.UUID, params *CreateSandboxSessionParams, body CreateSandboxSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSandboxSessionClientResponse, error) { + rsp, err := c.CreateSandboxSession(ctx, id, params, body, reqEditors...) if err != nil { return nil, err } - return ParseRegenerateAnonKeyClientResponse(rsp) + return ParseCreateSandboxSessionClientResponse(rsp) } -// SetDefaultAnonKeyWithResponse request returning *SetDefaultAnonKeyClientResponse -func (c *ClientWithResponses) SetDefaultAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*SetDefaultAnonKeyClientResponse, error) { - rsp, err := c.SetDefaultAnonKey(ctx, id, keyId, reqEditors...) +// ListSandboxesWithResponse request returning *ListSandboxesClientResponse +func (c *ClientWithResponses) ListSandboxesWithResponse(ctx context.Context, id openapi_types.UUID, params *ListSandboxesParams, reqEditors ...RequestEditorFn) (*ListSandboxesClientResponse, error) { + rsp, err := c.ListSandboxes(ctx, id, params, reqEditors...) if err != nil { return nil, err } - return ParseSetDefaultAnonKeyClientResponse(rsp) + return ParseListSandboxesClientResponse(rsp) } -// GetAuthConfigWithResponse request returning *GetAuthConfigClientResponse -func (c *ClientWithResponses) GetAuthConfigWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetAuthConfigClientResponse, error) { - rsp, err := c.GetAuthConfig(ctx, id, reqEditors...) +// CreateSandboxWithBodyWithResponse request with arbitrary body returning *CreateSandboxClientResponse +func (c *ClientWithResponses) CreateSandboxWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, params *CreateSandboxParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSandboxClientResponse, error) { + rsp, err := c.CreateSandboxWithBody(ctx, id, params, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetAuthConfigClientResponse(rsp) + return ParseCreateSandboxClientResponse(rsp) } -// UpdateAuthConfigWithBodyWithResponse request with arbitrary body returning *UpdateAuthConfigClientResponse -func (c *ClientWithResponses) UpdateAuthConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAuthConfigClientResponse, error) { - rsp, err := c.UpdateAuthConfigWithBody(ctx, id, contentType, body, reqEditors...) +func (c *ClientWithResponses) CreateSandboxWithResponse(ctx context.Context, id openapi_types.UUID, params *CreateSandboxParams, body CreateSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSandboxClientResponse, error) { + rsp, err := c.CreateSandbox(ctx, id, params, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateAuthConfigClientResponse(rsp) + return ParseCreateSandboxClientResponse(rsp) } -func (c *ClientWithResponses) UpdateAuthConfigWithResponse(ctx context.Context, id ProjectId, body UpdateAuthConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAuthConfigClientResponse, error) { - rsp, err := c.UpdateAuthConfig(ctx, id, body, reqEditors...) +// DeleteSandboxWithResponse request returning *DeleteSandboxClientResponse +func (c *ClientWithResponses) DeleteSandboxWithResponse(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteSandboxClientResponse, error) { + rsp, err := c.DeleteSandbox(ctx, id, sandboxId, reqEditors...) if err != nil { return nil, err } - return ParseUpdateAuthConfigClientResponse(rsp) + return ParseDeleteSandboxClientResponse(rsp) } -// TestEmailConfigWithBodyWithResponse request with arbitrary body returning *TestEmailConfigClientResponse -func (c *ClientWithResponses) TestEmailConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestEmailConfigClientResponse, error) { - rsp, err := c.TestEmailConfigWithBody(ctx, id, contentType, body, reqEditors...) +// GetSandboxWithResponse request returning *GetSandboxClientResponse +func (c *ClientWithResponses) GetSandboxWithResponse(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSandboxClientResponse, error) { + rsp, err := c.GetSandbox(ctx, id, sandboxId, reqEditors...) if err != nil { return nil, err } - return ParseTestEmailConfigClientResponse(rsp) + return ParseGetSandboxClientResponse(rsp) } -func (c *ClientWithResponses) TestEmailConfigWithResponse(ctx context.Context, id ProjectId, body TestEmailConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*TestEmailConfigClientResponse, error) { - rsp, err := c.TestEmailConfig(ctx, id, body, reqEditors...) +// UpdateSandboxWithBodyWithResponse request with arbitrary body returning *UpdateSandboxClientResponse +func (c *ClientWithResponses) UpdateSandboxWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSandboxClientResponse, error) { + rsp, err := c.UpdateSandboxWithBody(ctx, id, sandboxId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseTestEmailConfigClientResponse(rsp) + return ParseUpdateSandboxClientResponse(rsp) } -// RenderDefaultManagedAuthPageWithResponse request returning *RenderDefaultManagedAuthPageClientResponse -func (c *ClientWithResponses) RenderDefaultManagedAuthPageWithResponse(ctx context.Context, id ProjectId, params *RenderDefaultManagedAuthPageParams, reqEditors ...RequestEditorFn) (*RenderDefaultManagedAuthPageClientResponse, error) { - rsp, err := c.RenderDefaultManagedAuthPage(ctx, id, params, reqEditors...) +func (c *ClientWithResponses) UpdateSandboxWithResponse(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, body UpdateSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSandboxClientResponse, error) { + rsp, err := c.UpdateSandbox(ctx, id, sandboxId, body, reqEditors...) if err != nil { return nil, err } - return ParseRenderDefaultManagedAuthPageClientResponse(rsp) + return ParseUpdateSandboxClientResponse(rsp) } -// GetAuthHostedPageWithResponse request returning *GetAuthHostedPageClientResponse -func (c *ClientWithResponses) GetAuthHostedPageWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, reqEditors ...RequestEditorFn) (*GetAuthHostedPageClientResponse, error) { - rsp, err := c.GetAuthHostedPage(ctx, id, pageType, reqEditors...) +// ListSandboxDeploymentsWithResponse request returning *ListSandboxDeploymentsClientResponse +func (c *ClientWithResponses) ListSandboxDeploymentsWithResponse(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, params *ListSandboxDeploymentsParams, reqEditors ...RequestEditorFn) (*ListSandboxDeploymentsClientResponse, error) { + rsp, err := c.ListSandboxDeployments(ctx, id, sandboxId, params, reqEditors...) if err != nil { return nil, err } - return ParseGetAuthHostedPageClientResponse(rsp) + return ParseListSandboxDeploymentsClientResponse(rsp) } -// UpdateAuthHostedPageWithBodyWithResponse request with arbitrary body returning *UpdateAuthHostedPageClientResponse -func (c *ClientWithResponses) UpdateAuthHostedPageWithBodyWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAuthHostedPageClientResponse, error) { - rsp, err := c.UpdateAuthHostedPageWithBody(ctx, id, pageType, contentType, body, reqEditors...) +// ListProjectSchedulersWithResponse request returning *ListProjectSchedulersClientResponse +func (c *ClientWithResponses) ListProjectSchedulersWithResponse(ctx context.Context, id ProjectId, params *ListProjectSchedulersParams, reqEditors ...RequestEditorFn) (*ListProjectSchedulersClientResponse, error) { + rsp, err := c.ListProjectSchedulers(ctx, id, params, reqEditors...) if err != nil { return nil, err } - return ParseUpdateAuthHostedPageClientResponse(rsp) + return ParseListProjectSchedulersClientResponse(rsp) } -func (c *ClientWithResponses) UpdateAuthHostedPageWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, body UpdateAuthHostedPageJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAuthHostedPageClientResponse, error) { - rsp, err := c.UpdateAuthHostedPage(ctx, id, pageType, body, reqEditors...) +// ListServiceKeysWithResponse request returning *ListServiceKeysClientResponse +func (c *ClientWithResponses) ListServiceKeysWithResponse(ctx context.Context, id ProjectId, params *ListServiceKeysParams, reqEditors ...RequestEditorFn) (*ListServiceKeysClientResponse, error) { + rsp, err := c.ListServiceKeys(ctx, id, params, reqEditors...) if err != nil { return nil, err } - return ParseUpdateAuthHostedPageClientResponse(rsp) + return ParseListServiceKeysClientResponse(rsp) } -// HostedLoginCheckEmailWithBodyWithResponse request with arbitrary body returning *HostedLoginCheckEmailClientResponse -func (c *ClientWithResponses) HostedLoginCheckEmailWithBodyWithResponse(ctx context.Context, id ProjectId, params *HostedLoginCheckEmailParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HostedLoginCheckEmailClientResponse, error) { - rsp, err := c.HostedLoginCheckEmailWithBody(ctx, id, params, contentType, body, reqEditors...) +// CreateServiceKeyWithBodyWithResponse request with arbitrary body returning *CreateServiceKeyClientResponse +func (c *ClientWithResponses) CreateServiceKeyWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceKeyClientResponse, error) { + rsp, err := c.CreateServiceKeyWithBody(ctx, id, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseHostedLoginCheckEmailClientResponse(rsp) + return ParseCreateServiceKeyClientResponse(rsp) } -func (c *ClientWithResponses) HostedLoginCheckEmailWithResponse(ctx context.Context, id ProjectId, params *HostedLoginCheckEmailParams, body HostedLoginCheckEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*HostedLoginCheckEmailClientResponse, error) { - rsp, err := c.HostedLoginCheckEmail(ctx, id, params, body, reqEditors...) +func (c *ClientWithResponses) CreateServiceKeyWithResponse(ctx context.Context, id ProjectId, body CreateServiceKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceKeyClientResponse, error) { + rsp, err := c.CreateServiceKey(ctx, id, body, reqEditors...) if err != nil { return nil, err } - return ParseHostedLoginCheckEmailClientResponse(rsp) + return ParseCreateServiceKeyClientResponse(rsp) } -// GetHostedLoginOptionsWithResponse request returning *GetHostedLoginOptionsClientResponse -func (c *ClientWithResponses) GetHostedLoginOptionsWithResponse(ctx context.Context, id ProjectId, params *GetHostedLoginOptionsParams, reqEditors ...RequestEditorFn) (*GetHostedLoginOptionsClientResponse, error) { - rsp, err := c.GetHostedLoginOptions(ctx, id, params, reqEditors...) +// DeleteServiceKeyWithResponse request returning *DeleteServiceKeyClientResponse +func (c *ClientWithResponses) DeleteServiceKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteServiceKeyClientResponse, error) { + rsp, err := c.DeleteServiceKey(ctx, id, keyId, reqEditors...) if err != nil { return nil, err } - return ParseGetHostedLoginOptionsClientResponse(rsp) + return ParseDeleteServiceKeyClientResponse(rsp) } -// RenderManagedAuthPageWithResponse request returning *RenderManagedAuthPageClientResponse -func (c *ClientWithResponses) RenderManagedAuthPageWithResponse(ctx context.Context, id ProjectId, pageType HostedRenderablePageType, reqEditors ...RequestEditorFn) (*RenderManagedAuthPageClientResponse, error) { - rsp, err := c.RenderManagedAuthPage(ctx, id, pageType, reqEditors...) +// GetServiceKeyWithResponse request returning *GetServiceKeyClientResponse +func (c *ClientWithResponses) GetServiceKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetServiceKeyClientResponse, error) { + rsp, err := c.GetServiceKey(ctx, id, keyId, reqEditors...) if err != nil { return nil, err } - return ParseRenderManagedAuthPageClientResponse(rsp) + return ParseGetServiceKeyClientResponse(rsp) } -// GetAuthInsightsWithResponse request returning *GetAuthInsightsClientResponse -func (c *ClientWithResponses) GetAuthInsightsWithResponse(ctx context.Context, id ProjectId, params *GetAuthInsightsParams, reqEditors ...RequestEditorFn) (*GetAuthInsightsClientResponse, error) { - rsp, err := c.GetAuthInsights(ctx, id, params, reqEditors...) +// RegenerateServiceKeyWithResponse request returning *RegenerateServiceKeyClientResponse +func (c *ClientWithResponses) RegenerateServiceKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RegenerateServiceKeyClientResponse, error) { + rsp, err := c.RegenerateServiceKey(ctx, id, keyId, reqEditors...) if err != nil { return nil, err } - return ParseGetAuthInsightsClientResponse(rsp) + return ParseRegenerateServiceKeyClientResponse(rsp) } -// GetAuthMethodsWithResponse request returning *GetAuthMethodsClientResponse -func (c *ClientWithResponses) GetAuthMethodsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetAuthMethodsClientResponse, error) { - rsp, err := c.GetAuthMethods(ctx, id, reqEditors...) +// ReplaceSharedVariablesWithBodyWithResponse request with arbitrary body returning *ReplaceSharedVariablesClientResponse +func (c *ClientWithResponses) ReplaceSharedVariablesWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceSharedVariablesClientResponse, error) { + rsp, err := c.ReplaceSharedVariablesWithBody(ctx, id, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetAuthMethodsClientResponse(rsp) + return ParseReplaceSharedVariablesClientResponse(rsp) } -// ConfigureAuthMethodsWithBodyWithResponse request with arbitrary body returning *ConfigureAuthMethodsClientResponse -func (c *ClientWithResponses) ConfigureAuthMethodsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfigureAuthMethodsClientResponse, error) { - rsp, err := c.ConfigureAuthMethodsWithBody(ctx, id, contentType, body, reqEditors...) +func (c *ClientWithResponses) ReplaceSharedVariablesWithResponse(ctx context.Context, id ProjectId, body ReplaceSharedVariablesJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceSharedVariablesClientResponse, error) { + rsp, err := c.ReplaceSharedVariables(ctx, id, body, reqEditors...) if err != nil { return nil, err } - return ParseConfigureAuthMethodsClientResponse(rsp) + return ParseReplaceSharedVariablesClientResponse(rsp) } -func (c *ClientWithResponses) ConfigureAuthMethodsWithResponse(ctx context.Context, id ProjectId, body ConfigureAuthMethodsJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfigureAuthMethodsClientResponse, error) { - rsp, err := c.ConfigureAuthMethods(ctx, id, body, reqEditors...) +// CancelProjectSourceExportWithResponse request returning *CancelProjectSourceExportClientResponse +func (c *ClientWithResponses) CancelProjectSourceExportWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*CancelProjectSourceExportClientResponse, error) { + rsp, err := c.CancelProjectSourceExport(ctx, id, reqEditors...) if err != nil { return nil, err } - return ParseConfigureAuthMethodsClientResponse(rsp) + return ParseCancelProjectSourceExportClientResponse(rsp) } -// ListAuthUsersWithResponse request returning *ListAuthUsersClientResponse -func (c *ClientWithResponses) ListAuthUsersWithResponse(ctx context.Context, id ProjectId, params *ListAuthUsersParams, reqEditors ...RequestEditorFn) (*ListAuthUsersClientResponse, error) { - rsp, err := c.ListAuthUsers(ctx, id, params, reqEditors...) +// GetProjectSourceExportWithResponse request returning *GetProjectSourceExportClientResponse +func (c *ClientWithResponses) GetProjectSourceExportWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectSourceExportClientResponse, error) { + rsp, err := c.GetProjectSourceExport(ctx, id, reqEditors...) if err != nil { return nil, err } - return ParseListAuthUsersClientResponse(rsp) + return ParseGetProjectSourceExportClientResponse(rsp) } -// DeleteAuthUserWithResponse request returning *DeleteAuthUserClientResponse -func (c *ClientWithResponses) DeleteAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAuthUserClientResponse, error) { - rsp, err := c.DeleteAuthUser(ctx, id, userId, reqEditors...) +// ExportProjectSourceWithBodyWithResponse request with arbitrary body returning *ExportProjectSourceClientResponse +func (c *ClientWithResponses) ExportProjectSourceWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExportProjectSourceClientResponse, error) { + rsp, err := c.ExportProjectSourceWithBody(ctx, id, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseDeleteAuthUserClientResponse(rsp) + return ParseExportProjectSourceClientResponse(rsp) } -// GetAuthUserWithResponse request returning *GetAuthUserClientResponse -func (c *ClientWithResponses) GetAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAuthUserClientResponse, error) { - rsp, err := c.GetAuthUser(ctx, id, userId, reqEditors...) +func (c *ClientWithResponses) ExportProjectSourceWithResponse(ctx context.Context, id ProjectId, body ExportProjectSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*ExportProjectSourceClientResponse, error) { + rsp, err := c.ExportProjectSource(ctx, id, body, reqEditors...) if err != nil { return nil, err } - return ParseGetAuthUserClientResponse(rsp) + return ParseExportProjectSourceClientResponse(rsp) } -// BanAuthUserWithBodyWithResponse request with arbitrary body returning *BanAuthUserClientResponse -func (c *ClientWithResponses) BanAuthUserWithBodyWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BanAuthUserClientResponse, error) { - rsp, err := c.BanAuthUserWithBody(ctx, id, userId, contentType, body, reqEditors...) +// ListStorageBucketsWithResponse request returning *ListStorageBucketsClientResponse +func (c *ClientWithResponses) ListStorageBucketsWithResponse(ctx context.Context, id ProjectId, params *ListStorageBucketsParams, reqEditors ...RequestEditorFn) (*ListStorageBucketsClientResponse, error) { + rsp, err := c.ListStorageBuckets(ctx, id, params, reqEditors...) if err != nil { return nil, err } - return ParseBanAuthUserClientResponse(rsp) + return ParseListStorageBucketsClientResponse(rsp) } -func (c *ClientWithResponses) BanAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, body BanAuthUserJSONRequestBody, reqEditors ...RequestEditorFn) (*BanAuthUserClientResponse, error) { - rsp, err := c.BanAuthUser(ctx, id, userId, body, reqEditors...) +// CreateStorageBucketWithBodyWithResponse request with arbitrary body returning *CreateStorageBucketClientResponse +func (c *ClientWithResponses) CreateStorageBucketWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateStorageBucketClientResponse, error) { + rsp, err := c.CreateStorageBucketWithBody(ctx, id, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseBanAuthUserClientResponse(rsp) + return ParseCreateStorageBucketClientResponse(rsp) } -// DeleteAllUserSessionsWithResponse request returning *DeleteAllUserSessionsClientResponse -func (c *ClientWithResponses) DeleteAllUserSessionsWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAllUserSessionsClientResponse, error) { - rsp, err := c.DeleteAllUserSessions(ctx, id, userId, reqEditors...) +func (c *ClientWithResponses) CreateStorageBucketWithResponse(ctx context.Context, id ProjectId, body CreateStorageBucketJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateStorageBucketClientResponse, error) { + rsp, err := c.CreateStorageBucket(ctx, id, body, reqEditors...) if err != nil { return nil, err } - return ParseDeleteAllUserSessionsClientResponse(rsp) + return ParseCreateStorageBucketClientResponse(rsp) } -// ListUserSessionsWithResponse request returning *ListUserSessionsClientResponse -func (c *ClientWithResponses) ListUserSessionsWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, params *ListUserSessionsParams, reqEditors ...RequestEditorFn) (*ListUserSessionsClientResponse, error) { - rsp, err := c.ListUserSessions(ctx, id, userId, params, reqEditors...) +// DeleteStorageBucketWithResponse request returning *DeleteStorageBucketClientResponse +func (c *ClientWithResponses) DeleteStorageBucketWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, reqEditors ...RequestEditorFn) (*DeleteStorageBucketClientResponse, error) { + rsp, err := c.DeleteStorageBucket(ctx, id, bucketName, reqEditors...) if err != nil { return nil, err } - return ParseListUserSessionsClientResponse(rsp) + return ParseDeleteStorageBucketClientResponse(rsp) } -// DeleteUserSessionWithResponse request returning *DeleteUserSessionClientResponse -func (c *ClientWithResponses) DeleteUserSessionWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteUserSessionClientResponse, error) { - rsp, err := c.DeleteUserSession(ctx, id, userId, sessionId, reqEditors...) +// GetStorageBucketWithResponse request returning *GetStorageBucketClientResponse +func (c *ClientWithResponses) GetStorageBucketWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, reqEditors ...RequestEditorFn) (*GetStorageBucketClientResponse, error) { + rsp, err := c.GetStorageBucket(ctx, id, bucketName, reqEditors...) if err != nil { return nil, err } - return ParseDeleteUserSessionClientResponse(rsp) + return ParseGetStorageBucketClientResponse(rsp) } -// UnbanAuthUserWithResponse request returning *UnbanAuthUserClientResponse -func (c *ClientWithResponses) UnbanAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*UnbanAuthUserClientResponse, error) { - rsp, err := c.UnbanAuthUser(ctx, id, userId, reqEditors...) +// UpdateStorageBucketWithBodyWithResponse request with arbitrary body returning *UpdateStorageBucketClientResponse +func (c *ClientWithResponses) UpdateStorageBucketWithBodyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStorageBucketClientResponse, error) { + rsp, err := c.UpdateStorageBucketWithBody(ctx, id, bucketName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseUnbanAuthUserClientResponse(rsp) + return ParseUpdateStorageBucketClientResponse(rsp) } -// GetProjectConfigWithResponse request returning *GetProjectConfigClientResponse -func (c *ClientWithResponses) GetProjectConfigWithResponse(ctx context.Context, id ProjectId, params *GetProjectConfigParams, reqEditors ...RequestEditorFn) (*GetProjectConfigClientResponse, error) { - rsp, err := c.GetProjectConfig(ctx, id, params, reqEditors...) +func (c *ClientWithResponses) UpdateStorageBucketWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, body UpdateStorageBucketJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStorageBucketClientResponse, error) { + rsp, err := c.UpdateStorageBucket(ctx, id, bucketName, body, reqEditors...) if err != nil { return nil, err } - return ParseGetProjectConfigClientResponse(rsp) + return ParseUpdateStorageBucketClientResponse(rsp) } -// ApplyProjectConfigWithBodyWithResponse request with arbitrary body returning *ApplyProjectConfigClientResponse -func (c *ClientWithResponses) ApplyProjectConfigWithBodyWithResponse(ctx context.Context, id ProjectId, params *ApplyProjectConfigParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplyProjectConfigClientResponse, error) { - rsp, err := c.ApplyProjectConfigWithBody(ctx, id, params, contentType, body, reqEditors...) +// ListStoragePoliciesWithResponse request returning *ListStoragePoliciesClientResponse +func (c *ClientWithResponses) ListStoragePoliciesWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, reqEditors ...RequestEditorFn) (*ListStoragePoliciesClientResponse, error) { + rsp, err := c.ListStoragePolicies(ctx, id, bucketName, reqEditors...) if err != nil { return nil, err } - return ParseApplyProjectConfigClientResponse(rsp) + return ParseListStoragePoliciesClientResponse(rsp) } -func (c *ClientWithResponses) ApplyProjectConfigWithResponse(ctx context.Context, id ProjectId, params *ApplyProjectConfigParams, body ApplyProjectConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplyProjectConfigClientResponse, error) { - rsp, err := c.ApplyProjectConfig(ctx, id, params, body, reqEditors...) +// CreateStoragePolicyWithBodyWithResponse request with arbitrary body returning *CreateStoragePolicyClientResponse +func (c *ClientWithResponses) CreateStoragePolicyWithBodyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateStoragePolicyClientResponse, error) { + rsp, err := c.CreateStoragePolicyWithBody(ctx, id, bucketName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseApplyProjectConfigClientResponse(rsp) + return ParseCreateStoragePolicyClientResponse(rsp) } -// ListDatabasesWithResponse request returning *ListDatabasesClientResponse -func (c *ClientWithResponses) ListDatabasesWithResponse(ctx context.Context, id ProjectId, params *ListDatabasesParams, reqEditors ...RequestEditorFn) (*ListDatabasesClientResponse, error) { - rsp, err := c.ListDatabases(ctx, id, params, reqEditors...) +func (c *ClientWithResponses) CreateStoragePolicyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, body CreateStoragePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateStoragePolicyClientResponse, error) { + rsp, err := c.CreateStoragePolicy(ctx, id, bucketName, body, reqEditors...) if err != nil { return nil, err } - return ParseListDatabasesClientResponse(rsp) + return ParseCreateStoragePolicyClientResponse(rsp) } -// CreateDatabaseWithBodyWithResponse request with arbitrary body returning *CreateDatabaseClientResponse -func (c *ClientWithResponses) CreateDatabaseWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseClientResponse, error) { - rsp, err := c.CreateDatabaseWithBody(ctx, id, contentType, body, reqEditors...) +// DeleteStoragePolicyWithResponse request returning *DeleteStoragePolicyClientResponse +func (c *ClientWithResponses) DeleteStoragePolicyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, policyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteStoragePolicyClientResponse, error) { + rsp, err := c.DeleteStoragePolicy(ctx, id, bucketName, policyId, reqEditors...) if err != nil { return nil, err } - return ParseCreateDatabaseClientResponse(rsp) + return ParseDeleteStoragePolicyClientResponse(rsp) } -func (c *ClientWithResponses) CreateDatabaseWithResponse(ctx context.Context, id ProjectId, body CreateDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseClientResponse, error) { - rsp, err := c.CreateDatabase(ctx, id, body, reqEditors...) +// ListStorageObjectsAdminWithResponse request returning *ListStorageObjectsAdminClientResponse +func (c *ClientWithResponses) ListStorageObjectsAdminWithResponse(ctx context.Context, id ProjectId, params *ListStorageObjectsAdminParams, reqEditors ...RequestEditorFn) (*ListStorageObjectsAdminClientResponse, error) { + rsp, err := c.ListStorageObjectsAdmin(ctx, id, params, reqEditors...) if err != nil { return nil, err } - return ParseCreateDatabaseClientResponse(rsp) + return ParseListStorageObjectsAdminClientResponse(rsp) } -// DeleteDatabaseWithResponse request returning *DeleteDatabaseClientResponse -func (c *ClientWithResponses) DeleteDatabaseWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*DeleteDatabaseClientResponse, error) { - rsp, err := c.DeleteDatabase(ctx, id, databaseName, reqEditors...) +// GetStorageStatsWithResponse request returning *GetStorageStatsClientResponse +func (c *ClientWithResponses) GetStorageStatsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetStorageStatsClientResponse, error) { + rsp, err := c.GetStorageStats(ctx, id, reqEditors...) if err != nil { return nil, err } - return ParseDeleteDatabaseClientResponse(rsp) + return ParseGetStorageStatsClientResponse(rsp) } -// GetDatabaseWithResponse request returning *GetDatabaseClientResponse -func (c *ClientWithResponses) GetDatabaseWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*GetDatabaseClientResponse, error) { - rsp, err := c.GetDatabase(ctx, id, databaseName, reqEditors...) +// GetProjectUsageWithResponse request returning *GetProjectUsageClientResponse +func (c *ClientWithResponses) GetProjectUsageWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectUsageClientResponse, error) { + rsp, err := c.GetProjectUsage(ctx, id, reqEditors...) if err != nil { return nil, err } - return ParseGetDatabaseClientResponse(rsp) + return ParseGetProjectUsageClientResponse(rsp) } -// GetDatabaseBackupScheduleWithResponse request returning *GetDatabaseBackupScheduleClientResponse -func (c *ClientWithResponses) GetDatabaseBackupScheduleWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*GetDatabaseBackupScheduleClientResponse, error) { - rsp, err := c.GetDatabaseBackupSchedule(ctx, id, databaseName, reqEditors...) +// ListVariablesWithResponse request returning *ListVariablesClientResponse +func (c *ClientWithResponses) ListVariablesWithResponse(ctx context.Context, id ProjectId, params *ListVariablesParams, reqEditors ...RequestEditorFn) (*ListVariablesClientResponse, error) { + rsp, err := c.ListVariables(ctx, id, params, reqEditors...) if err != nil { return nil, err } - return ParseGetDatabaseBackupScheduleClientResponse(rsp) + return ParseListVariablesClientResponse(rsp) } -// UpdateDatabaseBackupScheduleWithBodyWithResponse request with arbitrary body returning *UpdateDatabaseBackupScheduleClientResponse -func (c *ClientWithResponses) UpdateDatabaseBackupScheduleWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDatabaseBackupScheduleClientResponse, error) { - rsp, err := c.UpdateDatabaseBackupScheduleWithBody(ctx, id, databaseName, contentType, body, reqEditors...) +// CreateVariableWithBodyWithResponse request with arbitrary body returning *CreateVariableClientResponse +func (c *ClientWithResponses) CreateVariableWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVariableClientResponse, error) { + rsp, err := c.CreateVariableWithBody(ctx, id, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateDatabaseBackupScheduleClientResponse(rsp) + return ParseCreateVariableClientResponse(rsp) } -func (c *ClientWithResponses) UpdateDatabaseBackupScheduleWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body UpdateDatabaseBackupScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDatabaseBackupScheduleClientResponse, error) { - rsp, err := c.UpdateDatabaseBackupSchedule(ctx, id, databaseName, body, reqEditors...) +func (c *ClientWithResponses) CreateVariableWithResponse(ctx context.Context, id ProjectId, body CreateVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVariableClientResponse, error) { + rsp, err := c.CreateVariable(ctx, id, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateDatabaseBackupScheduleClientResponse(rsp) + return ParseCreateVariableClientResponse(rsp) } -// ListDatabaseBackupsWithResponse request returning *ListDatabaseBackupsClientResponse -func (c *ClientWithResponses) ListDatabaseBackupsWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ListDatabaseBackupsClientResponse, error) { - rsp, err := c.ListDatabaseBackups(ctx, id, databaseName, reqEditors...) +// DeleteVariableWithResponse request returning *DeleteVariableClientResponse +func (c *ClientWithResponses) DeleteVariableWithResponse(ctx context.Context, id ProjectId, name VariableName, reqEditors ...RequestEditorFn) (*DeleteVariableClientResponse, error) { + rsp, err := c.DeleteVariable(ctx, id, name, reqEditors...) if err != nil { return nil, err } - return ParseListDatabaseBackupsClientResponse(rsp) + return ParseDeleteVariableClientResponse(rsp) } -// CreateDatabaseBackupWithBodyWithResponse request with arbitrary body returning *CreateDatabaseBackupClientResponse -func (c *ClientWithResponses) CreateDatabaseBackupWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseBackupClientResponse, error) { - rsp, err := c.CreateDatabaseBackupWithBody(ctx, id, databaseName, contentType, body, reqEditors...) +// GetVariableWithResponse request returning *GetVariableClientResponse +func (c *ClientWithResponses) GetVariableWithResponse(ctx context.Context, id ProjectId, name VariableName, reqEditors ...RequestEditorFn) (*GetVariableClientResponse, error) { + rsp, err := c.GetVariable(ctx, id, name, reqEditors...) if err != nil { return nil, err } - return ParseCreateDatabaseBackupClientResponse(rsp) + return ParseGetVariableClientResponse(rsp) } -func (c *ClientWithResponses) CreateDatabaseBackupWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body CreateDatabaseBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseBackupClientResponse, error) { - rsp, err := c.CreateDatabaseBackup(ctx, id, databaseName, body, reqEditors...) +// UpdateVariableWithBodyWithResponse request with arbitrary body returning *UpdateVariableClientResponse +func (c *ClientWithResponses) UpdateVariableWithBodyWithResponse(ctx context.Context, id ProjectId, name VariableName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateVariableClientResponse, error) { + rsp, err := c.UpdateVariableWithBody(ctx, id, name, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateDatabaseBackupClientResponse(rsp) + return ParseUpdateVariableClientResponse(rsp) } -// DeleteDatabaseBackupWithResponse request returning *DeleteDatabaseBackupClientResponse -func (c *ClientWithResponses) DeleteDatabaseBackupWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, backupName BackupName, reqEditors ...RequestEditorFn) (*DeleteDatabaseBackupClientResponse, error) { - rsp, err := c.DeleteDatabaseBackup(ctx, id, databaseName, backupName, reqEditors...) +func (c *ClientWithResponses) UpdateVariableWithResponse(ctx context.Context, id ProjectId, name VariableName, body UpdateVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateVariableClientResponse, error) { + rsp, err := c.UpdateVariable(ctx, id, name, body, reqEditors...) if err != nil { return nil, err } - return ParseDeleteDatabaseBackupClientResponse(rsp) + return ParseUpdateVariableClientResponse(rsp) } -// GetDatabaseBackupWithResponse request returning *GetDatabaseBackupClientResponse -func (c *ClientWithResponses) GetDatabaseBackupWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, backupName BackupName, reqEditors ...RequestEditorFn) (*GetDatabaseBackupClientResponse, error) { - rsp, err := c.GetDatabaseBackup(ctx, id, databaseName, backupName, reqEditors...) +// DownloadPublicFileWithResponse request returning *DownloadPublicFileClientResponse +func (c *ClientWithResponses) DownloadPublicFileWithResponse(ctx context.Context, projectId openapi_types.UUID, bucketName BucketName, path string, reqEditors ...RequestEditorFn) (*DownloadPublicFileClientResponse, error) { + rsp, err := c.DownloadPublicFile(ctx, projectId, bucketName, path, reqEditors...) if err != nil { return nil, err } - return ParseGetDatabaseBackupClientResponse(rsp) + return ParseDownloadPublicFileClientResponse(rsp) } -// ListDatabaseBranchesWithResponse request returning *ListDatabaseBranchesClientResponse -func (c *ClientWithResponses) ListDatabaseBranchesWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ListDatabaseBranchesClientResponse, error) { - rsp, err := c.ListDatabaseBranches(ctx, id, databaseName, reqEditors...) +// TerminateSandboxSessionWithResponse request returning *TerminateSandboxSessionClientResponse +func (c *ClientWithResponses) TerminateSandboxSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*TerminateSandboxSessionClientResponse, error) { + rsp, err := c.TerminateSandboxSession(ctx, sessionId, reqEditors...) if err != nil { return nil, err } - return ParseListDatabaseBranchesClientResponse(rsp) + return ParseTerminateSandboxSessionClientResponse(rsp) } -// CreateDatabaseBranchWithBodyWithResponse request with arbitrary body returning *CreateDatabaseBranchClientResponse -func (c *ClientWithResponses) CreateDatabaseBranchWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseBranchClientResponse, error) { - rsp, err := c.CreateDatabaseBranchWithBody(ctx, id, databaseName, contentType, body, reqEditors...) +// GetSandboxSessionWithResponse request returning *GetSandboxSessionClientResponse +func (c *ClientWithResponses) GetSandboxSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSandboxSessionClientResponse, error) { + rsp, err := c.GetSandboxSession(ctx, sessionId, reqEditors...) if err != nil { return nil, err } - return ParseCreateDatabaseBranchClientResponse(rsp) + return ParseGetSandboxSessionClientResponse(rsp) } -func (c *ClientWithResponses) CreateDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body CreateDatabaseBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseBranchClientResponse, error) { - rsp, err := c.CreateDatabaseBranch(ctx, id, databaseName, body, reqEditors...) +// CreateSandboxSessionAccessWithBodyWithResponse request with arbitrary body returning *CreateSandboxSessionAccessClientResponse +func (c *ClientWithResponses) CreateSandboxSessionAccessWithBodyWithResponse(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSandboxSessionAccessClientResponse, error) { + rsp, err := c.CreateSandboxSessionAccessWithBody(ctx, sessionId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateDatabaseBranchClientResponse(rsp) + return ParseCreateSandboxSessionAccessClientResponse(rsp) } -// DeleteDatabaseBranchWithResponse request returning *DeleteDatabaseBranchClientResponse -func (c *ClientWithResponses) DeleteDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*DeleteDatabaseBranchClientResponse, error) { - rsp, err := c.DeleteDatabaseBranch(ctx, id, databaseName, branchName, reqEditors...) +func (c *ClientWithResponses) CreateSandboxSessionAccessWithResponse(ctx context.Context, sessionId openapi_types.UUID, body CreateSandboxSessionAccessJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSandboxSessionAccessClientResponse, error) { + rsp, err := c.CreateSandboxSessionAccess(ctx, sessionId, body, reqEditors...) if err != nil { return nil, err } - return ParseDeleteDatabaseBranchClientResponse(rsp) + return ParseCreateSandboxSessionAccessClientResponse(rsp) } -// GetDatabaseBranchWithResponse request returning *GetDatabaseBranchClientResponse -func (c *ClientWithResponses) GetDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*GetDatabaseBranchClientResponse, error) { - rsp, err := c.GetDatabaseBranch(ctx, id, databaseName, branchName, reqEditors...) +// ExecuteSandboxSessionWithBodyWithResponse request with arbitrary body returning *ExecuteSandboxSessionClientResponse +func (c *ClientWithResponses) ExecuteSandboxSessionWithBodyWithResponse(ctx context.Context, sessionId openapi_types.UUID, params *ExecuteSandboxSessionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExecuteSandboxSessionClientResponse, error) { + rsp, err := c.ExecuteSandboxSessionWithBody(ctx, sessionId, params, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetDatabaseBranchClientResponse(rsp) + return ParseExecuteSandboxSessionClientResponse(rsp) } -// UpdateDatabaseBranchWithBodyWithResponse request with arbitrary body returning *UpdateDatabaseBranchClientResponse -func (c *ClientWithResponses) UpdateDatabaseBranchWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDatabaseBranchClientResponse, error) { - rsp, err := c.UpdateDatabaseBranchWithBody(ctx, id, databaseName, branchName, contentType, body, reqEditors...) +func (c *ClientWithResponses) ExecuteSandboxSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, params *ExecuteSandboxSessionParams, body ExecuteSandboxSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*ExecuteSandboxSessionClientResponse, error) { + rsp, err := c.ExecuteSandboxSession(ctx, sessionId, params, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateDatabaseBranchClientResponse(rsp) + return ParseExecuteSandboxSessionClientResponse(rsp) } -func (c *ClientWithResponses) UpdateDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, body UpdateDatabaseBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDatabaseBranchClientResponse, error) { - rsp, err := c.UpdateDatabaseBranch(ctx, id, databaseName, branchName, body, reqEditors...) +// ReadSandboxSessionFileWithBodyWithResponse request with arbitrary body returning *ReadSandboxSessionFileClientResponse +func (c *ClientWithResponses) ReadSandboxSessionFileWithBodyWithResponse(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReadSandboxSessionFileClientResponse, error) { + rsp, err := c.ReadSandboxSessionFileWithBody(ctx, sessionId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateDatabaseBranchClientResponse(rsp) + return ParseReadSandboxSessionFileClientResponse(rsp) } -// ResetDatabaseBranchWithResponse request returning *ResetDatabaseBranchClientResponse -func (c *ClientWithResponses) ResetDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*ResetDatabaseBranchClientResponse, error) { - rsp, err := c.ResetDatabaseBranch(ctx, id, databaseName, branchName, reqEditors...) +func (c *ClientWithResponses) ReadSandboxSessionFileWithResponse(ctx context.Context, sessionId openapi_types.UUID, body ReadSandboxSessionFileJSONRequestBody, reqEditors ...RequestEditorFn) (*ReadSandboxSessionFileClientResponse, error) { + rsp, err := c.ReadSandboxSessionFile(ctx, sessionId, body, reqEditors...) if err != nil { return nil, err } - return ParseResetDatabaseBranchClientResponse(rsp) + return ParseReadSandboxSessionFileClientResponse(rsp) } -// ResetDatabaseBranchPasswordWithResponse request returning *ResetDatabaseBranchPasswordClientResponse -func (c *ClientWithResponses) ResetDatabaseBranchPasswordWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*ResetDatabaseBranchPasswordClientResponse, error) { - rsp, err := c.ResetDatabaseBranchPassword(ctx, id, databaseName, branchName, reqEditors...) +// WriteSandboxSessionFileWithBodyWithResponse request with arbitrary body returning *WriteSandboxSessionFileClientResponse +func (c *ClientWithResponses) WriteSandboxSessionFileWithBodyWithResponse(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WriteSandboxSessionFileClientResponse, error) { + rsp, err := c.WriteSandboxSessionFileWithBody(ctx, sessionId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseResetDatabaseBranchPasswordClientResponse(rsp) + return ParseWriteSandboxSessionFileClientResponse(rsp) } -// GetProjectDatabaseQueriesWithResponse request returning *GetProjectDatabaseQueriesClientResponse -func (c *ClientWithResponses) GetProjectDatabaseQueriesWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, params *GetProjectDatabaseQueriesParams, reqEditors ...RequestEditorFn) (*GetProjectDatabaseQueriesClientResponse, error) { - rsp, err := c.GetProjectDatabaseQueries(ctx, id, databaseName, params, reqEditors...) +func (c *ClientWithResponses) WriteSandboxSessionFileWithResponse(ctx context.Context, sessionId openapi_types.UUID, body WriteSandboxSessionFileJSONRequestBody, reqEditors ...RequestEditorFn) (*WriteSandboxSessionFileClientResponse, error) { + rsp, err := c.WriteSandboxSessionFile(ctx, sessionId, body, reqEditors...) if err != nil { return nil, err } - return ParseGetProjectDatabaseQueriesClientResponse(rsp) + return ParseWriteSandboxSessionFileClientResponse(rsp) } -// ResetDatabasePasswordWithResponse request returning *ResetDatabasePasswordClientResponse -func (c *ClientWithResponses) ResetDatabasePasswordWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ResetDatabasePasswordClientResponse, error) { - rsp, err := c.ResetDatabasePassword(ctx, id, databaseName, reqEditors...) +// RevokeSandboxSessionWithResponse request returning *RevokeSandboxSessionClientResponse +func (c *ClientWithResponses) RevokeSandboxSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, subjectId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RevokeSandboxSessionClientResponse, error) { + rsp, err := c.RevokeSandboxSession(ctx, sessionId, subjectId, reqEditors...) if err != nil { return nil, err } - return ParseResetDatabasePasswordClientResponse(rsp) + return ParseRevokeSandboxSessionClientResponse(rsp) } -// ListDatabaseRestoresWithResponse request returning *ListDatabaseRestoresClientResponse -func (c *ClientWithResponses) ListDatabaseRestoresWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ListDatabaseRestoresClientResponse, error) { - rsp, err := c.ListDatabaseRestores(ctx, id, databaseName, reqEditors...) +// GrantSandboxSessionWithBodyWithResponse request with arbitrary body returning *GrantSandboxSessionClientResponse +func (c *ClientWithResponses) GrantSandboxSessionWithBodyWithResponse(ctx context.Context, sessionId openapi_types.UUID, subjectId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GrantSandboxSessionClientResponse, error) { + rsp, err := c.GrantSandboxSessionWithBody(ctx, sessionId, subjectId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseListDatabaseRestoresClientResponse(rsp) + return ParseGrantSandboxSessionClientResponse(rsp) } -// CreateDatabaseRestoreWithBodyWithResponse request with arbitrary body returning *CreateDatabaseRestoreClientResponse -func (c *ClientWithResponses) CreateDatabaseRestoreWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseRestoreClientResponse, error) { - rsp, err := c.CreateDatabaseRestoreWithBody(ctx, id, databaseName, contentType, body, reqEditors...) +func (c *ClientWithResponses) GrantSandboxSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, subjectId openapi_types.UUID, body GrantSandboxSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*GrantSandboxSessionClientResponse, error) { + rsp, err := c.GrantSandboxSession(ctx, sessionId, subjectId, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateDatabaseRestoreClientResponse(rsp) + return ParseGrantSandboxSessionClientResponse(rsp) } -func (c *ClientWithResponses) CreateDatabaseRestoreWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body CreateDatabaseRestoreJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseRestoreClientResponse, error) { - rsp, err := c.CreateDatabaseRestore(ctx, id, databaseName, body, reqEditors...) +// ResumeSandboxSessionWithResponse request returning *ResumeSandboxSessionClientResponse +func (c *ClientWithResponses) ResumeSandboxSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*ResumeSandboxSessionClientResponse, error) { + rsp, err := c.ResumeSandboxSession(ctx, sessionId, reqEditors...) if err != nil { return nil, err } - return ParseCreateDatabaseRestoreClientResponse(rsp) + return ParseResumeSandboxSessionClientResponse(rsp) } -// GetDatabaseRestoreWithResponse request returning *GetDatabaseRestoreClientResponse -func (c *ClientWithResponses) GetDatabaseRestoreWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, restoreId RestoreId, reqEditors ...RequestEditorFn) (*GetDatabaseRestoreClientResponse, error) { - rsp, err := c.GetDatabaseRestore(ctx, id, databaseName, restoreId, reqEditors...) +// SuspendSandboxSessionWithResponse request returning *SuspendSandboxSessionClientResponse +func (c *ClientWithResponses) SuspendSandboxSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*SuspendSandboxSessionClientResponse, error) { + rsp, err := c.SuspendSandboxSession(ctx, sessionId, reqEditors...) if err != nil { return nil, err } - return ParseGetDatabaseRestoreClientResponse(rsp) + return ParseSuspendSandboxSessionClientResponse(rsp) } -// GetDatabaseStatsWithResponse request returning *GetDatabaseStatsClientResponse -func (c *ClientWithResponses) GetDatabaseStatsWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, params *GetDatabaseStatsParams, reqEditors ...RequestEditorFn) (*GetDatabaseStatsClientResponse, error) { - rsp, err := c.GetDatabaseStats(ctx, id, databaseName, params, reqEditors...) +// ListSandboxPresetsWithResponse request returning *ListSandboxPresetsClientResponse +func (c *ClientWithResponses) ListSandboxPresetsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSandboxPresetsClientResponse, error) { + rsp, err := c.ListSandboxPresets(ctx, reqEditors...) if err != nil { return nil, err } - return ParseGetDatabaseStatsClientResponse(rsp) + return ParseListSandboxPresetsClientResponse(rsp) } -// UpdateDatabaseTypeWithBodyWithResponse request with arbitrary body returning *UpdateDatabaseTypeClientResponse -func (c *ClientWithResponses) UpdateDatabaseTypeWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDatabaseTypeClientResponse, error) { - rsp, err := c.UpdateDatabaseTypeWithBody(ctx, id, databaseName, contentType, body, reqEditors...) +// ListStorageObjectsWithResponse request returning *ListStorageObjectsClientResponse +func (c *ClientWithResponses) ListStorageObjectsWithResponse(ctx context.Context, bucketName BucketName, params *ListStorageObjectsParams, reqEditors ...RequestEditorFn) (*ListStorageObjectsClientResponse, error) { + rsp, err := c.ListStorageObjects(ctx, bucketName, params, reqEditors...) if err != nil { return nil, err } - return ParseUpdateDatabaseTypeClientResponse(rsp) + return ParseListStorageObjectsClientResponse(rsp) } -func (c *ClientWithResponses) UpdateDatabaseTypeWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body UpdateDatabaseTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDatabaseTypeClientResponse, error) { - rsp, err := c.UpdateDatabaseType(ctx, id, databaseName, body, reqEditors...) +// CopyStorageObjectWithBodyWithResponse request with arbitrary body returning *CopyStorageObjectClientResponse +func (c *ClientWithResponses) CopyStorageObjectWithBodyWithResponse(ctx context.Context, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CopyStorageObjectClientResponse, error) { + rsp, err := c.CopyStorageObjectWithBody(ctx, bucketName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateDatabaseTypeClientResponse(rsp) + return ParseCopyStorageObjectClientResponse(rsp) } -// ListProjectDeploymentsWithResponse request returning *ListProjectDeploymentsClientResponse -func (c *ClientWithResponses) ListProjectDeploymentsWithResponse(ctx context.Context, id ProjectId, params *ListProjectDeploymentsParams, reqEditors ...RequestEditorFn) (*ListProjectDeploymentsClientResponse, error) { - rsp, err := c.ListProjectDeployments(ctx, id, params, reqEditors...) +func (c *ClientWithResponses) CopyStorageObjectWithResponse(ctx context.Context, bucketName BucketName, body CopyStorageObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CopyStorageObjectClientResponse, error) { + rsp, err := c.CopyStorageObject(ctx, bucketName, body, reqEditors...) if err != nil { return nil, err } - return ParseListProjectDeploymentsClientResponse(rsp) + return ParseCopyStorageObjectClientResponse(rsp) } -// SummarizeProjectDeploymentsWithResponse request returning *SummarizeProjectDeploymentsClientResponse -func (c *ClientWithResponses) SummarizeProjectDeploymentsWithResponse(ctx context.Context, id ProjectId, params *SummarizeProjectDeploymentsParams, reqEditors ...RequestEditorFn) (*SummarizeProjectDeploymentsClientResponse, error) { - rsp, err := c.SummarizeProjectDeployments(ctx, id, params, reqEditors...) +// MoveStorageObjectWithBodyWithResponse request with arbitrary body returning *MoveStorageObjectClientResponse +func (c *ClientWithResponses) MoveStorageObjectWithBodyWithResponse(ctx context.Context, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MoveStorageObjectClientResponse, error) { + rsp, err := c.MoveStorageObjectWithBody(ctx, bucketName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseSummarizeProjectDeploymentsClientResponse(rsp) + return ParseMoveStorageObjectClientResponse(rsp) } -// ListProjectCustomDomainsWithResponse request returning *ListProjectCustomDomainsClientResponse -func (c *ClientWithResponses) ListProjectCustomDomainsWithResponse(ctx context.Context, id ProjectId, params *ListProjectCustomDomainsParams, reqEditors ...RequestEditorFn) (*ListProjectCustomDomainsClientResponse, error) { - rsp, err := c.ListProjectCustomDomains(ctx, id, params, reqEditors...) +func (c *ClientWithResponses) MoveStorageObjectWithResponse(ctx context.Context, bucketName BucketName, body MoveStorageObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*MoveStorageObjectClientResponse, error) { + rsp, err := c.MoveStorageObject(ctx, bucketName, body, reqEditors...) if err != nil { return nil, err } - return ParseListProjectCustomDomainsClientResponse(rsp) + return ParseMoveStorageObjectClientResponse(rsp) } -// ListDurableFunctionsWithResponse request returning *ListDurableFunctionsClientResponse -func (c *ClientWithResponses) ListDurableFunctionsWithResponse(ctx context.Context, id ProjectId, params *ListDurableFunctionsParams, reqEditors ...RequestEditorFn) (*ListDurableFunctionsClientResponse, error) { - rsp, err := c.ListDurableFunctions(ctx, id, params, reqEditors...) +// DeleteStorageObjectWithResponse request returning *DeleteStorageObjectClientResponse +func (c *ClientWithResponses) DeleteStorageObjectWithResponse(ctx context.Context, bucketName BucketName, path string, params *DeleteStorageObjectParams, reqEditors ...RequestEditorFn) (*DeleteStorageObjectClientResponse, error) { + rsp, err := c.DeleteStorageObject(ctx, bucketName, path, params, reqEditors...) if err != nil { return nil, err } - return ParseListDurableFunctionsClientResponse(rsp) + return ParseDeleteStorageObjectClientResponse(rsp) } - -// CreateDurableFunctionWithBodyWithResponse request with arbitrary body returning *CreateDurableFunctionClientResponse -func (c *ClientWithResponses) CreateDurableFunctionWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDurableFunctionClientResponse, error) { - rsp, err := c.CreateDurableFunctionWithBody(ctx, id, contentType, body, reqEditors...) + +// DownloadStorageObjectWithResponse request returning *DownloadStorageObjectClientResponse +func (c *ClientWithResponses) DownloadStorageObjectWithResponse(ctx context.Context, bucketName BucketName, path string, params *DownloadStorageObjectParams, reqEditors ...RequestEditorFn) (*DownloadStorageObjectClientResponse, error) { + rsp, err := c.DownloadStorageObject(ctx, bucketName, path, params, reqEditors...) if err != nil { return nil, err } - return ParseCreateDurableFunctionClientResponse(rsp) + return ParseDownloadStorageObjectClientResponse(rsp) } -// DeleteDurableFunctionWithResponse request returning *DeleteDurableFunctionClientResponse -func (c *ClientWithResponses) DeleteDurableFunctionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, reqEditors ...RequestEditorFn) (*DeleteDurableFunctionClientResponse, error) { - rsp, err := c.DeleteDurableFunction(ctx, id, functionId, reqEditors...) +// UploadStorageObjectWithBodyWithResponse request with arbitrary body returning *UploadStorageObjectClientResponse +func (c *ClientWithResponses) UploadStorageObjectWithBodyWithResponse(ctx context.Context, bucketName BucketName, path string, params *UploadStorageObjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadStorageObjectClientResponse, error) { + rsp, err := c.UploadStorageObjectWithBody(ctx, bucketName, path, params, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseDeleteDurableFunctionClientResponse(rsp) + return ParseUploadStorageObjectClientResponse(rsp) } -// GetDurableFunctionWithResponse request returning *GetDurableFunctionClientResponse -func (c *ClientWithResponses) GetDurableFunctionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, reqEditors ...RequestEditorFn) (*GetDurableFunctionClientResponse, error) { - rsp, err := c.GetDurableFunction(ctx, id, functionId, reqEditors...) +func (c *ClientWithResponses) UploadStorageObjectWithResponse(ctx context.Context, bucketName BucketName, path string, params *UploadStorageObjectParams, body UploadStorageObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UploadStorageObjectClientResponse, error) { + rsp, err := c.UploadStorageObject(ctx, bucketName, path, params, body, reqEditors...) if err != nil { return nil, err } - return ParseGetDurableFunctionClientResponse(rsp) + return ParseUploadStorageObjectClientResponse(rsp) } -// ListDurableFunctionDeploymentsWithResponse request returning *ListDurableFunctionDeploymentsClientResponse -func (c *ClientWithResponses) ListDurableFunctionDeploymentsWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *ListDurableFunctionDeploymentsParams, reqEditors ...RequestEditorFn) (*ListDurableFunctionDeploymentsClientResponse, error) { - rsp, err := c.ListDurableFunctionDeployments(ctx, id, functionId, params, reqEditors...) +// UploadPartWithBodyWithResponse request with arbitrary body returning *UploadPartClientResponse +func (c *ClientWithResponses) UploadPartWithBodyWithResponse(ctx context.Context, bucketName BucketName, path string, params *UploadPartParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadPartClientResponse, error) { + rsp, err := c.UploadPartWithBody(ctx, bucketName, path, params, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseListDurableFunctionDeploymentsClientResponse(rsp) + return ParseUploadPartClientResponse(rsp) } -// ListDurableExecutionsWithResponse request returning *ListDurableExecutionsClientResponse -func (c *ClientWithResponses) ListDurableExecutionsWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *ListDurableExecutionsParams, reqEditors ...RequestEditorFn) (*ListDurableExecutionsClientResponse, error) { - rsp, err := c.ListDurableExecutions(ctx, id, functionId, params, reqEditors...) +// UpdateStorageObjectVisibilityWithBodyWithResponse request with arbitrary body returning *UpdateStorageObjectVisibilityClientResponse +func (c *ClientWithResponses) UpdateStorageObjectVisibilityWithBodyWithResponse(ctx context.Context, bucketName BucketName, path string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStorageObjectVisibilityClientResponse, error) { + rsp, err := c.UpdateStorageObjectVisibilityWithBody(ctx, bucketName, path, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseListDurableExecutionsClientResponse(rsp) + return ParseUpdateStorageObjectVisibilityClientResponse(rsp) } -// StartDurableExecutionWithBodyWithResponse request with arbitrary body returning *StartDurableExecutionClientResponse -func (c *ClientWithResponses) StartDurableExecutionWithBodyWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *StartDurableExecutionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartDurableExecutionClientResponse, error) { - rsp, err := c.StartDurableExecutionWithBody(ctx, id, functionId, params, contentType, body, reqEditors...) +func (c *ClientWithResponses) UpdateStorageObjectVisibilityWithResponse(ctx context.Context, bucketName BucketName, path string, body UpdateStorageObjectVisibilityJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStorageObjectVisibilityClientResponse, error) { + rsp, err := c.UpdateStorageObjectVisibility(ctx, bucketName, path, body, reqEditors...) if err != nil { return nil, err } - return ParseStartDurableExecutionClientResponse(rsp) + return ParseUpdateStorageObjectVisibilityClientResponse(rsp) } -func (c *ClientWithResponses) StartDurableExecutionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *StartDurableExecutionParams, body StartDurableExecutionJSONRequestBody, reqEditors ...RequestEditorFn) (*StartDurableExecutionClientResponse, error) { - rsp, err := c.StartDurableExecution(ctx, id, functionId, params, body, reqEditors...) +// StartGitConnectWithResponse request returning *StartGitConnectClientResponse +func (c *ClientWithResponses) StartGitConnectWithResponse(ctx context.Context, params *StartGitConnectParams, reqEditors ...RequestEditorFn) (*StartGitConnectClientResponse, error) { + rsp, err := c.StartGitConnect(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParseStartDurableExecutionClientResponse(rsp) + return ParseStartGitConnectClientResponse(rsp) } -// GetDurableExecutionWithResponse request returning *GetDurableExecutionClientResponse -func (c *ClientWithResponses) GetDurableExecutionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, executionId DurableExecutionId, reqEditors ...RequestEditorFn) (*GetDurableExecutionClientResponse, error) { - rsp, err := c.GetDurableExecution(ctx, id, functionId, executionId, reqEditors...) +// ListGitConnectionsWithResponse request returning *ListGitConnectionsClientResponse +func (c *ClientWithResponses) ListGitConnectionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListGitConnectionsClientResponse, error) { + rsp, err := c.ListGitConnections(ctx, reqEditors...) if err != nil { return nil, err } - return ParseGetDurableExecutionClientResponse(rsp) + return ParseListGitConnectionsClientResponse(rsp) } -// StopDurableExecutionWithResponse request returning *StopDurableExecutionClientResponse -func (c *ClientWithResponses) StopDurableExecutionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, executionId DurableExecutionId, reqEditors ...RequestEditorFn) (*StopDurableExecutionClientResponse, error) { - rsp, err := c.StopDurableExecution(ctx, id, functionId, executionId, reqEditors...) +// DeleteGitConnectionWithResponse request returning *DeleteGitConnectionClientResponse +func (c *ClientWithResponses) DeleteGitConnectionWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteGitConnectionClientResponse, error) { + rsp, err := c.DeleteGitConnection(ctx, connectionId, reqEditors...) if err != nil { return nil, err } - return ParseStopDurableExecutionClientResponse(rsp) + return ParseDeleteGitConnectionClientResponse(rsp) } -// ListDurableFunctionSchedulersWithResponse request returning *ListDurableFunctionSchedulersClientResponse -func (c *ClientWithResponses) ListDurableFunctionSchedulersWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, reqEditors ...RequestEditorFn) (*ListDurableFunctionSchedulersClientResponse, error) { - rsp, err := c.ListDurableFunctionSchedulers(ctx, id, functionId, reqEditors...) +// ListGitInstallationsWithResponse request returning *ListGitInstallationsClientResponse +func (c *ClientWithResponses) ListGitInstallationsWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListGitInstallationsClientResponse, error) { + rsp, err := c.ListGitInstallations(ctx, connectionId, reqEditors...) if err != nil { return nil, err } - return ParseListDurableFunctionSchedulersClientResponse(rsp) + return ParseListGitInstallationsClientResponse(rsp) } -// CreateDurableFunctionSchedulerWithBodyWithResponse request with arbitrary body returning *CreateDurableFunctionSchedulerClientResponse -func (c *ClientWithResponses) CreateDurableFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDurableFunctionSchedulerClientResponse, error) { - rsp, err := c.CreateDurableFunctionSchedulerWithBody(ctx, id, functionId, contentType, body, reqEditors...) +// ListGitInstallationRepositoriesWithResponse request returning *ListGitInstallationRepositoriesClientResponse +func (c *ClientWithResponses) ListGitInstallationRepositoriesWithResponse(ctx context.Context, connectionId openapi_types.UUID, installationId int64, reqEditors ...RequestEditorFn) (*ListGitInstallationRepositoriesClientResponse, error) { + rsp, err := c.ListGitInstallationRepositories(ctx, connectionId, installationId, reqEditors...) if err != nil { return nil, err } - return ParseCreateDurableFunctionSchedulerClientResponse(rsp) + return ParseListGitInstallationRepositoriesClientResponse(rsp) } -func (c *ClientWithResponses) CreateDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, body CreateDurableFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDurableFunctionSchedulerClientResponse, error) { - rsp, err := c.CreateDurableFunctionScheduler(ctx, id, functionId, body, reqEditors...) +// StartImportConnectWithResponse request returning *StartImportConnectClientResponse +func (c *ClientWithResponses) StartImportConnectWithResponse(ctx context.Context, params *StartImportConnectParams, reqEditors ...RequestEditorFn) (*StartImportConnectClientResponse, error) { + rsp, err := c.StartImportConnect(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParseCreateDurableFunctionSchedulerClientResponse(rsp) + return ParseStartImportConnectClientResponse(rsp) } -// DeleteDurableFunctionSchedulerWithResponse request returning *DeleteDurableFunctionSchedulerClientResponse -func (c *ClientWithResponses) DeleteDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*DeleteDurableFunctionSchedulerClientResponse, error) { - rsp, err := c.DeleteDurableFunctionScheduler(ctx, id, functionId, schedulerId, reqEditors...) +// ListImportConnectionsWithResponse request returning *ListImportConnectionsClientResponse +func (c *ClientWithResponses) ListImportConnectionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListImportConnectionsClientResponse, error) { + rsp, err := c.ListImportConnections(ctx, reqEditors...) if err != nil { return nil, err } - return ParseDeleteDurableFunctionSchedulerClientResponse(rsp) + return ParseListImportConnectionsClientResponse(rsp) } -// GetDurableFunctionSchedulerWithResponse request returning *GetDurableFunctionSchedulerClientResponse -func (c *ClientWithResponses) GetDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*GetDurableFunctionSchedulerClientResponse, error) { - rsp, err := c.GetDurableFunctionScheduler(ctx, id, functionId, schedulerId, reqEditors...) +// DeleteImportConnectionWithResponse request returning *DeleteImportConnectionClientResponse +func (c *ClientWithResponses) DeleteImportConnectionWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteImportConnectionClientResponse, error) { + rsp, err := c.DeleteImportConnection(ctx, connectionId, reqEditors...) if err != nil { return nil, err } - return ParseGetDurableFunctionSchedulerClientResponse(rsp) + return ParseDeleteImportConnectionClientResponse(rsp) } -// UpdateDurableFunctionSchedulerWithBodyWithResponse request with arbitrary body returning *UpdateDurableFunctionSchedulerClientResponse -func (c *ClientWithResponses) UpdateDurableFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDurableFunctionSchedulerClientResponse, error) { - rsp, err := c.UpdateDurableFunctionSchedulerWithBody(ctx, id, functionId, schedulerId, contentType, body, reqEditors...) +// ParseAuthConfirmEmailClientResponse parses an HTTP response from a AuthConfirmEmailWithResponse call +func ParseAuthConfirmEmailClientResponse(rsp *http.Response) (*AuthConfirmEmailClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseUpdateDurableFunctionSchedulerClientResponse(rsp) + + response := &AuthConfirmEmailClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Message *AuthConfirmEmail200JSONResponseBodyMessage `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil } -func (c *ClientWithResponses) UpdateDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, body UpdateDurableFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDurableFunctionSchedulerClientResponse, error) { - rsp, err := c.UpdateDurableFunctionScheduler(ctx, id, functionId, schedulerId, body, reqEditors...) +// ParseAuthDeviceAuthorizeClientResponse parses an HTTP response from a AuthDeviceAuthorizeWithResponse call +func ParseAuthDeviceAuthorizeClientResponse(rsp *http.Response) (*AuthDeviceAuthorizeClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseUpdateDurableFunctionSchedulerClientResponse(rsp) + + response := &AuthDeviceAuthorizeClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest DeviceAuthorizationResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest OAuthErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + } + + return response, nil } -// ListEmailTemplatesWithResponse request returning *ListEmailTemplatesClientResponse -func (c *ClientWithResponses) ListEmailTemplatesWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*ListEmailTemplatesClientResponse, error) { - rsp, err := c.ListEmailTemplates(ctx, id, reqEditors...) +// ParseAuthDeviceTokenClientResponse parses an HTTP response from a AuthDeviceTokenWithResponse call +func ParseAuthDeviceTokenClientResponse(rsp *http.Response) (*AuthDeviceTokenClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseListEmailTemplatesClientResponse(rsp) + + response := &AuthDeviceTokenClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest AuthTokenResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest OAuthErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest OAuthErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + } + + return response, nil } -// CreateEmailTemplateWithBodyWithResponse request with arbitrary body returning *CreateEmailTemplateClientResponse -func (c *ClientWithResponses) CreateEmailTemplateWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEmailTemplateClientResponse, error) { - rsp, err := c.CreateEmailTemplateWithBody(ctx, id, contentType, body, reqEditors...) +// ParseAuthDeviceVerifyClientResponse parses an HTTP response from a AuthDeviceVerifyWithResponse call +func ParseAuthDeviceVerifyClientResponse(rsp *http.Response) (*AuthDeviceVerifyClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseCreateEmailTemplateClientResponse(rsp) + + response := &AuthDeviceVerifyClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Status *string `json:"status,omitempty"` + Success *bool `json:"success,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + } + + return response, nil } -func (c *ClientWithResponses) CreateEmailTemplateWithResponse(ctx context.Context, id ProjectId, body CreateEmailTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEmailTemplateClientResponse, error) { - rsp, err := c.CreateEmailTemplate(ctx, id, body, reqEditors...) +// ParseAuthForgotPasswordClientResponse parses an HTTP response from a AuthForgotPasswordWithResponse call +func ParseAuthForgotPasswordClientResponse(rsp *http.Response) (*AuthForgotPasswordClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseCreateEmailTemplateClientResponse(rsp) + + response := &AuthForgotPasswordClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + } + + return response, nil } -// DeleteEmailTemplateWithResponse request returning *DeleteEmailTemplateClientResponse -func (c *ClientWithResponses) DeleteEmailTemplateWithResponse(ctx context.Context, id ProjectId, pType DeleteEmailTemplateParamsType, reqEditors ...RequestEditorFn) (*DeleteEmailTemplateClientResponse, error) { - rsp, err := c.DeleteEmailTemplate(ctx, id, pType, reqEditors...) +// ParseAuthLogoutClientResponse parses an HTTP response from a AuthLogoutWithResponse call +func ParseAuthLogoutClientResponse(rsp *http.Response) (*AuthLogoutClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseDeleteEmailTemplateClientResponse(rsp) + + response := &AuthLogoutClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil } -// GetEmailTemplateWithResponse request returning *GetEmailTemplateClientResponse -func (c *ClientWithResponses) GetEmailTemplateWithResponse(ctx context.Context, id ProjectId, pType GetEmailTemplateParamsType, reqEditors ...RequestEditorFn) (*GetEmailTemplateClientResponse, error) { - rsp, err := c.GetEmailTemplate(ctx, id, pType, reqEditors...) +// ParseAuthOAuthExchangeClientResponse parses an HTTP response from a AuthOAuthExchangeWithResponse call +func ParseAuthOAuthExchangeClientResponse(rsp *http.Response) (*AuthOAuthExchangeClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseGetEmailTemplateClientResponse(rsp) + + response := &AuthOAuthExchangeClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest AuthTokenResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil } -// UpdateEmailTemplateWithBodyWithResponse request with arbitrary body returning *UpdateEmailTemplateClientResponse -func (c *ClientWithResponses) UpdateEmailTemplateWithBodyWithResponse(ctx context.Context, id ProjectId, pType UpdateEmailTemplateParamsType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEmailTemplateClientResponse, error) { - rsp, err := c.UpdateEmailTemplateWithBody(ctx, id, pType, contentType, body, reqEditors...) +// ParseAuthListOAuthProvidersClientResponse parses an HTTP response from a AuthListOAuthProvidersWithResponse call +func ParseAuthListOAuthProvidersClientResponse(rsp *http.Response) (*AuthListOAuthProvidersClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseUpdateEmailTemplateClientResponse(rsp) + + response := &AuthListOAuthProvidersClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Providers *[]struct { + LinkedAt *time.Time `json:"linked_at,omitempty"` + Provider *string `json:"provider,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + } `json:"providers,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + } + + return response, nil } -func (c *ClientWithResponses) UpdateEmailTemplateWithResponse(ctx context.Context, id ProjectId, pType UpdateEmailTemplateParamsType, body UpdateEmailTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEmailTemplateClientResponse, error) { - rsp, err := c.UpdateEmailTemplate(ctx, id, pType, body, reqEditors...) +// ParseAuthOAuthAuthorizeClientResponse parses an HTTP response from a AuthOAuthAuthorizeWithResponse call +func ParseAuthOAuthAuthorizeClientResponse(rsp *http.Response) (*AuthOAuthAuthorizeClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseUpdateEmailTemplateClientResponse(rsp) + + response := &AuthOAuthAuthorizeClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil } -// ListFrontendsWithResponse request returning *ListFrontendsClientResponse -func (c *ClientWithResponses) ListFrontendsWithResponse(ctx context.Context, id ProjectId, params *ListFrontendsParams, reqEditors ...RequestEditorFn) (*ListFrontendsClientResponse, error) { - rsp, err := c.ListFrontends(ctx, id, params, reqEditors...) +// ParseCallOAuthProviderAPIClientResponse parses an HTTP response from a CallOAuthProviderAPIWithResponse call +func ParseCallOAuthProviderAPIClientResponse(rsp *http.Response) (*CallOAuthProviderAPIClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseListFrontendsClientResponse(rsp) + + response := &CallOAuthProviderAPIClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + // Data Raw provider JSON value, or null when the provider returns no body + Data interface{} `json:"data"` + Endpoint string `json:"endpoint"` + Provider CallOAuthProviderAPI200JSONResponseBodyProvider `json:"provider"` + StatusCode int `json:"status_code"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 502: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON502 = &dest + + } + + return response, nil } -// CreateFrontendWithBodyWithResponse request with arbitrary body returning *CreateFrontendClientResponse -func (c *ClientWithResponses) CreateFrontendWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFrontendClientResponse, error) { - rsp, err := c.CreateFrontendWithBody(ctx, id, contentType, body, reqEditors...) +// ParseAuthOAuthCallbackClientResponse parses an HTTP response from a AuthOAuthCallbackWithResponse call +func ParseAuthOAuthCallbackClientResponse(rsp *http.Response) (*AuthOAuthCallbackClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseCreateFrontendClientResponse(rsp) + + response := &AuthOAuthCallbackClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest AuthTokenResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest AuthTokenResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil } -// DeleteFrontendWithResponse request returning *DeleteFrontendClientResponse -func (c *ClientWithResponses) DeleteFrontendWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*DeleteFrontendClientResponse, error) { - rsp, err := c.DeleteFrontend(ctx, id, frontendId, reqEditors...) +// ParseAuthLinkOAuthProviderClientResponse parses an HTTP response from a AuthLinkOAuthProviderWithResponse call +func ParseAuthLinkOAuthProviderClientResponse(rsp *http.Response) (*AuthLinkOAuthProviderClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseDeleteFrontendClientResponse(rsp) -} -// GetFrontendWithResponse request returning *GetFrontendClientResponse -func (c *ClientWithResponses) GetFrontendWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*GetFrontendClientResponse, error) { - rsp, err := c.GetFrontend(ctx, id, frontendId, reqEditors...) - if err != nil { - return nil, err + response := &AuthLinkOAuthProviderClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + AuthorizationUrl *string `json:"authorization_url,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + } - return ParseGetFrontendClientResponse(rsp) -} -// ListFrontendDeploymentsWithResponse request returning *ListFrontendDeploymentsClientResponse -func (c *ClientWithResponses) ListFrontendDeploymentsWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, params *ListFrontendDeploymentsParams, reqEditors ...RequestEditorFn) (*ListFrontendDeploymentsClientResponse, error) { - rsp, err := c.ListFrontendDeployments(ctx, id, frontendId, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListFrontendDeploymentsClientResponse(rsp) + return response, nil } -// DeleteFrontendCustomDomainWithResponse request returning *DeleteFrontendCustomDomainClientResponse -func (c *ClientWithResponses) DeleteFrontendCustomDomainWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*DeleteFrontendCustomDomainClientResponse, error) { - rsp, err := c.DeleteFrontendCustomDomain(ctx, id, frontendId, reqEditors...) +// ParseRefreshOAuthProviderTokenClientResponse parses an HTTP response from a RefreshOAuthProviderTokenWithResponse call +func ParseRefreshOAuthProviderTokenClientResponse(rsp *http.Response) (*RefreshOAuthProviderTokenClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseDeleteFrontendCustomDomainClientResponse(rsp) -} -// GetFrontendCustomDomainWithResponse request returning *GetFrontendCustomDomainClientResponse -func (c *ClientWithResponses) GetFrontendCustomDomainWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*GetFrontendCustomDomainClientResponse, error) { - rsp, err := c.GetFrontendCustomDomain(ctx, id, frontendId, reqEditors...) - if err != nil { - return nil, err + response := &RefreshOAuthProviderTokenClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetFrontendCustomDomainClientResponse(rsp) -} -// CreateFrontendCustomDomainWithBodyWithResponse request with arbitrary body returning *CreateFrontendCustomDomainClientResponse -func (c *ClientWithResponses) CreateFrontendCustomDomainWithBodyWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFrontendCustomDomainClientResponse, error) { - rsp, err := c.CreateFrontendCustomDomainWithBody(ctx, id, frontendId, contentType, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + ExpiresIn *int `json:"expires_in,omitempty"` + Message *string `json:"message,omitempty"` + Provider *string `json:"provider,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + } - return ParseCreateFrontendCustomDomainClientResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) CreateFrontendCustomDomainWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, body CreateFrontendCustomDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFrontendCustomDomainClientResponse, error) { - rsp, err := c.CreateFrontendCustomDomain(ctx, id, frontendId, body, reqEditors...) +// ParseGetOAuthProviderTokenClientResponse parses an HTTP response from a GetOAuthProviderTokenWithResponse call +func ParseGetOAuthProviderTokenClientResponse(rsp *http.Response) (*GetOAuthProviderTokenClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseCreateFrontendCustomDomainClientResponse(rsp) -} -// RedeployFrontendWithResponse request returning *RedeployFrontendClientResponse -func (c *ClientWithResponses) RedeployFrontendWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*RedeployFrontendClientResponse, error) { - rsp, err := c.RedeployFrontend(ctx, id, frontendId, reqEditors...) - if err != nil { - return nil, err + response := &GetOAuthProviderTokenClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseRedeployFrontendClientResponse(rsp) -} -// GetFrontendUsageHistoryWithResponse request returning *GetFrontendUsageHistoryClientResponse -func (c *ClientWithResponses) GetFrontendUsageHistoryWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, params *GetFrontendUsageHistoryParams, reqEditors ...RequestEditorFn) (*GetFrontendUsageHistoryClientResponse, error) { - rsp, err := c.GetFrontendUsageHistory(ctx, id, frontendId, params, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + ExpiresIn *int `json:"expires_in,omitempty"` + Message *string `json:"message,omitempty"` + Provider *string `json:"provider,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + } - return ParseGetFrontendUsageHistoryClientResponse(rsp) + + return response, nil } -// ListFunctionsWithResponse request returning *ListFunctionsClientResponse -func (c *ClientWithResponses) ListFunctionsWithResponse(ctx context.Context, id ProjectId, params *ListFunctionsParams, reqEditors ...RequestEditorFn) (*ListFunctionsClientResponse, error) { - rsp, err := c.ListFunctions(ctx, id, params, reqEditors...) +// ParseAuthUnlinkOAuthProviderClientResponse parses an HTTP response from a AuthUnlinkOAuthProviderWithResponse call +func ParseAuthUnlinkOAuthProviderClientResponse(rsp *http.Response) (*AuthUnlinkOAuthProviderClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseListFunctionsClientResponse(rsp) -} -// CreateFunctionWithBodyWithResponse request with arbitrary body returning *CreateFunctionClientResponse -func (c *ClientWithResponses) CreateFunctionWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFunctionClientResponse, error) { - rsp, err := c.CreateFunctionWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &AuthUnlinkOAuthProviderClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseCreateFunctionClientResponse(rsp) -} -// CreateFunctionsBatchWithBodyWithResponse request with arbitrary body returning *CreateFunctionsBatchClientResponse -func (c *ClientWithResponses) CreateFunctionsBatchWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFunctionsBatchClientResponse, error) { - rsp, err := c.CreateFunctionsBatchWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + } - return ParseCreateFunctionsBatchClientResponse(rsp) + + return response, nil } -// DeleteFunctionWithResponse request returning *DeleteFunctionClientResponse -func (c *ClientWithResponses) DeleteFunctionWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, reqEditors ...RequestEditorFn) (*DeleteFunctionClientResponse, error) { - rsp, err := c.DeleteFunction(ctx, id, functionId, reqEditors...) +// ParseAuthGetPasswordPolicyClientResponse parses an HTTP response from a AuthGetPasswordPolicyWithResponse call +func ParseAuthGetPasswordPolicyClientResponse(rsp *http.Response) (*AuthGetPasswordPolicyClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseDeleteFunctionClientResponse(rsp) -} -// GetFunctionWithResponse request returning *GetFunctionClientResponse -func (c *ClientWithResponses) GetFunctionWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, reqEditors ...RequestEditorFn) (*GetFunctionClientResponse, error) { - rsp, err := c.GetFunction(ctx, id, functionId, reqEditors...) - if err != nil { - return nil, err + response := &AuthGetPasswordPolicyClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetFunctionClientResponse(rsp) -} -// UpdateFunctionWithBodyWithResponse request with arbitrary body returning *UpdateFunctionClientResponse -func (c *ClientWithResponses) UpdateFunctionWithBodyWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFunctionClientResponse, error) { - rsp, err := c.UpdateFunctionWithBody(ctx, id, functionId, contentType, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest AuthPasswordPolicy + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + } - return ParseUpdateFunctionClientResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) UpdateFunctionWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, body UpdateFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFunctionClientResponse, error) { - rsp, err := c.UpdateFunction(ctx, id, functionId, body, reqEditors...) +// ParseAuthPlatformExchangeClientResponse parses an HTTP response from a AuthPlatformExchangeWithResponse call +func ParseAuthPlatformExchangeClientResponse(rsp *http.Response) (*AuthPlatformExchangeClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseUpdateFunctionClientResponse(rsp) -} -// ListFunctionDeploymentsWithResponse request returning *ListFunctionDeploymentsClientResponse -func (c *ClientWithResponses) ListFunctionDeploymentsWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, params *ListFunctionDeploymentsParams, reqEditors ...RequestEditorFn) (*ListFunctionDeploymentsClientResponse, error) { - rsp, err := c.ListFunctionDeployments(ctx, id, functionId, params, reqEditors...) - if err != nil { - return nil, err + response := &AuthPlatformExchangeClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseListFunctionDeploymentsClientResponse(rsp) -} -// ListFunctionSchedulersWithResponse request returning *ListFunctionSchedulersClientResponse -func (c *ClientWithResponses) ListFunctionSchedulersWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, reqEditors ...RequestEditorFn) (*ListFunctionSchedulersClientResponse, error) { - rsp, err := c.ListFunctionSchedulers(ctx, id, functionId, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PlatformExchangeResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + } - return ParseListFunctionSchedulersClientResponse(rsp) + + return response, nil } -// CreateFunctionSchedulerWithBodyWithResponse request with arbitrary body returning *CreateFunctionSchedulerClientResponse -func (c *ClientWithResponses) CreateFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFunctionSchedulerClientResponse, error) { - rsp, err := c.CreateFunctionSchedulerWithBody(ctx, id, functionId, contentType, body, reqEditors...) +// ParseAuthRefreshClientResponse parses an HTTP response from a AuthRefreshWithResponse call +func ParseAuthRefreshClientResponse(rsp *http.Response) (*AuthRefreshClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseCreateFunctionSchedulerClientResponse(rsp) -} -func (c *ClientWithResponses) CreateFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, body CreateFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFunctionSchedulerClientResponse, error) { - rsp, err := c.CreateFunctionScheduler(ctx, id, functionId, body, reqEditors...) - if err != nil { - return nil, err + response := &AuthRefreshClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseCreateFunctionSchedulerClientResponse(rsp) -} -// DeleteFunctionSchedulerWithResponse request returning *DeleteFunctionSchedulerClientResponse -func (c *ClientWithResponses) DeleteFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*DeleteFunctionSchedulerClientResponse, error) { - rsp, err := c.DeleteFunctionScheduler(ctx, id, functionId, schedulerId, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest AuthTokenResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + } - return ParseDeleteFunctionSchedulerClientResponse(rsp) + + return response, nil } -// GetFunctionSchedulerWithResponse request returning *GetFunctionSchedulerClientResponse -func (c *ClientWithResponses) GetFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*GetFunctionSchedulerClientResponse, error) { - rsp, err := c.GetFunctionScheduler(ctx, id, functionId, schedulerId, reqEditors...) +// ParseAuthResendConfirmationClientResponse parses an HTTP response from a AuthResendConfirmationWithResponse call +func ParseAuthResendConfirmationClientResponse(rsp *http.Response) (*AuthResendConfirmationClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseGetFunctionSchedulerClientResponse(rsp) -} -// UpdateFunctionSchedulerWithBodyWithResponse request with arbitrary body returning *UpdateFunctionSchedulerClientResponse -func (c *ClientWithResponses) UpdateFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFunctionSchedulerClientResponse, error) { - rsp, err := c.UpdateFunctionSchedulerWithBody(ctx, id, functionId, schedulerId, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &AuthResendConfirmationClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseUpdateFunctionSchedulerClientResponse(rsp) -} -func (c *ClientWithResponses) UpdateFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, body UpdateFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFunctionSchedulerClientResponse, error) { - rsp, err := c.UpdateFunctionScheduler(ctx, id, functionId, schedulerId, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + } - return ParseUpdateFunctionSchedulerClientResponse(rsp) + + return response, nil } -// DisconnectProjectGitWithResponse request returning *DisconnectProjectGitClientResponse -func (c *ClientWithResponses) DisconnectProjectGitWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*DisconnectProjectGitClientResponse, error) { - rsp, err := c.DisconnectProjectGit(ctx, id, reqEditors...) +// ParseAuthResetPasswordClientResponse parses an HTTP response from a AuthResetPasswordWithResponse call +func ParseAuthResetPasswordClientResponse(rsp *http.Response) (*AuthResetPasswordClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseDisconnectProjectGitClientResponse(rsp) -} -// GetProjectGitConnectionWithResponse request returning *GetProjectGitConnectionClientResponse -func (c *ClientWithResponses) GetProjectGitConnectionWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectGitConnectionClientResponse, error) { - rsp, err := c.GetProjectGitConnection(ctx, id, reqEditors...) - if err != nil { - return nil, err + response := &AuthResetPasswordClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetProjectGitConnectionClientResponse(rsp) -} -// ConnectProjectGitWithBodyWithResponse request with arbitrary body returning *ConnectProjectGitClientResponse -func (c *ClientWithResponses) ConnectProjectGitWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConnectProjectGitClientResponse, error) { - rsp, err := c.ConnectProjectGitWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } - return ParseConnectProjectGitClientResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) ConnectProjectGitWithResponse(ctx context.Context, id ProjectId, body ConnectProjectGitJSONRequestBody, reqEditors ...RequestEditorFn) (*ConnectProjectGitClientResponse, error) { - rsp, err := c.ConnectProjectGit(ctx, id, body, reqEditors...) +// ParseAuthSigninClientResponse parses an HTTP response from a AuthSigninWithResponse call +func ParseAuthSigninClientResponse(rsp *http.Response) (*AuthSigninClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseConnectProjectGitClientResponse(rsp) -} -// SetProjectGitProductionBranchWithBodyWithResponse request with arbitrary body returning *SetProjectGitProductionBranchClientResponse -func (c *ClientWithResponses) SetProjectGitProductionBranchWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetProjectGitProductionBranchClientResponse, error) { - rsp, err := c.SetProjectGitProductionBranchWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &AuthSigninClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseSetProjectGitProductionBranchClientResponse(rsp) -} -func (c *ClientWithResponses) SetProjectGitProductionBranchWithResponse(ctx context.Context, id ProjectId, body SetProjectGitProductionBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*SetProjectGitProductionBranchClientResponse, error) { - rsp, err := c.SetProjectGitProductionBranch(ctx, id, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest AuthTokenResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseSetProjectGitProductionBranchClientResponse(rsp) + + return response, nil } -// CreateProjectGitRepositoryWithBodyWithResponse request with arbitrary body returning *CreateProjectGitRepositoryClientResponse -func (c *ClientWithResponses) CreateProjectGitRepositoryWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectGitRepositoryClientResponse, error) { - rsp, err := c.CreateProjectGitRepositoryWithBody(ctx, id, contentType, body, reqEditors...) +// ParseAuthSignupClientResponse parses an HTTP response from a AuthSignupWithResponse call +func ParseAuthSignupClientResponse(rsp *http.Response) (*AuthSignupClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseCreateProjectGitRepositoryClientResponse(rsp) -} -func (c *ClientWithResponses) CreateProjectGitRepositoryWithResponse(ctx context.Context, id ProjectId, body CreateProjectGitRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectGitRepositoryClientResponse, error) { - rsp, err := c.CreateProjectGitRepository(ctx, id, body, reqEditors...) - if err != nil { - return nil, err + response := &AuthSignupClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseCreateProjectGitRepositoryClientResponse(rsp) -} -// GetProjectGitDeploySettingsWithResponse request returning *GetProjectGitDeploySettingsClientResponse -func (c *ClientWithResponses) GetProjectGitDeploySettingsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectGitDeploySettingsClientResponse, error) { - rsp, err := c.GetProjectGitDeploySettings(ctx, id, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest AuthSignupResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } - return ParseGetProjectGitDeploySettingsClientResponse(rsp) + + return response, nil } -// UpdateProjectGitDeploySettingsWithBodyWithResponse request with arbitrary body returning *UpdateProjectGitDeploySettingsClientResponse -func (c *ClientWithResponses) UpdateProjectGitDeploySettingsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectGitDeploySettingsClientResponse, error) { - rsp, err := c.UpdateProjectGitDeploySettingsWithBody(ctx, id, contentType, body, reqEditors...) +// ParseAuthSignupAnonymousClientResponse parses an HTTP response from a AuthSignupAnonymousWithResponse call +func ParseAuthSignupAnonymousClientResponse(rsp *http.Response) (*AuthSignupAnonymousClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseUpdateProjectGitDeploySettingsClientResponse(rsp) -} -func (c *ClientWithResponses) UpdateProjectGitDeploySettingsWithResponse(ctx context.Context, id ProjectId, body UpdateProjectGitDeploySettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectGitDeploySettingsClientResponse, error) { - rsp, err := c.UpdateProjectGitDeploySettings(ctx, id, body, reqEditors...) - if err != nil { - return nil, err + response := &AuthSignupAnonymousClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseUpdateProjectGitDeploySettingsClientResponse(rsp) -} -// GetProjectHealthWithResponse request returning *GetProjectHealthClientResponse -func (c *ClientWithResponses) GetProjectHealthWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectHealthClientResponse, error) { - rsp, err := c.GetProjectHealth(ctx, id, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest AuthTokenResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + } - return ParseGetProjectHealthClientResponse(rsp) + + return response, nil } -// DeleteProjectLogoWithResponse request returning *DeleteProjectLogoClientResponse -func (c *ClientWithResponses) DeleteProjectLogoWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*DeleteProjectLogoClientResponse, error) { - rsp, err := c.DeleteProjectLogo(ctx, id, reqEditors...) +// ParseAuthGetUserClientResponse parses an HTTP response from a AuthGetUserWithResponse call +func ParseAuthGetUserClientResponse(rsp *http.Response) (*AuthGetUserClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseDeleteProjectLogoClientResponse(rsp) -} -// GetProjectLogoWithResponse request returning *GetProjectLogoClientResponse -func (c *ClientWithResponses) GetProjectLogoWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectLogoClientResponse, error) { - rsp, err := c.GetProjectLogo(ctx, id, reqEditors...) - if err != nil { - return nil, err + response := &AuthGetUserClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetProjectLogoClientResponse(rsp) -} -// UploadProjectLogoWithBodyWithResponse request with arbitrary body returning *UploadProjectLogoClientResponse -func (c *ClientWithResponses) UploadProjectLogoWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadProjectLogoClientResponse, error) { - rsp, err := c.UploadProjectLogoWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + User *AuthUser `json:"user,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + } - return ParseUploadProjectLogoClientResponse(rsp) + + return response, nil } -// GetProjectLogActivityWithBodyWithResponse request with arbitrary body returning *GetProjectLogActivityClientResponse -func (c *ClientWithResponses) GetProjectLogActivityWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetProjectLogActivityClientResponse, error) { - rsp, err := c.GetProjectLogActivityWithBody(ctx, id, contentType, body, reqEditors...) +// ParseAuthUpdateUserClientResponse parses an HTTP response from a AuthUpdateUserWithResponse call +func ParseAuthUpdateUserClientResponse(rsp *http.Response) (*AuthUpdateUserClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseGetProjectLogActivityClientResponse(rsp) -} -func (c *ClientWithResponses) GetProjectLogActivityWithResponse(ctx context.Context, id ProjectId, body GetProjectLogActivityJSONRequestBody, reqEditors ...RequestEditorFn) (*GetProjectLogActivityClientResponse, error) { - rsp, err := c.GetProjectLogActivity(ctx, id, body, reqEditors...) - if err != nil { - return nil, err + response := &AuthUpdateUserClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetProjectLogActivityClientResponse(rsp) -} -// SearchProjectLogsWithBodyWithResponse request with arbitrary body returning *SearchProjectLogsClientResponse -func (c *ClientWithResponses) SearchProjectLogsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SearchProjectLogsClientResponse, error) { - rsp, err := c.SearchProjectLogsWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + User *AuthUser `json:"user,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } - return ParseSearchProjectLogsClientResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) SearchProjectLogsWithResponse(ctx context.Context, id ProjectId, body SearchProjectLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*SearchProjectLogsClientResponse, error) { - rsp, err := c.SearchProjectLogs(ctx, id, body, reqEditors...) +// ParseAuthCancelEmailChangeClientResponse parses an HTTP response from a AuthCancelEmailChangeWithResponse call +func ParseAuthCancelEmailChangeClientResponse(rsp *http.Response) (*AuthCancelEmailChangeClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseSearchProjectLogsClientResponse(rsp) -} -// StreamProjectLogsWithBodyWithResponse request with arbitrary body returning *StreamProjectLogsClientResponse -func (c *ClientWithResponses) StreamProjectLogsWithBodyWithResponse(ctx context.Context, id ProjectId, params *StreamProjectLogsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StreamProjectLogsClientResponse, error) { - rsp, err := c.StreamProjectLogsWithBody(ctx, id, params, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &AuthCancelEmailChangeClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseStreamProjectLogsClientResponse(rsp) -} -func (c *ClientWithResponses) StreamProjectLogsWithResponse(ctx context.Context, id ProjectId, params *StreamProjectLogsParams, body StreamProjectLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*StreamProjectLogsClientResponse, error) { - rsp, err := c.StreamProjectLogs(ctx, id, params, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + } - return ParseStreamProjectLogsClientResponse(rsp) + + return response, nil } -// QueryProjectMetricsWithBodyWithResponse request with arbitrary body returning *QueryProjectMetricsClientResponse -func (c *ClientWithResponses) QueryProjectMetricsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryProjectMetricsClientResponse, error) { - rsp, err := c.QueryProjectMetricsWithBody(ctx, id, contentType, body, reqEditors...) +// ParseAuthRequestEmailChangeClientResponse parses an HTTP response from a AuthRequestEmailChangeWithResponse call +func ParseAuthRequestEmailChangeClientResponse(rsp *http.Response) (*AuthRequestEmailChangeClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseQueryProjectMetricsClientResponse(rsp) -} -func (c *ClientWithResponses) QueryProjectMetricsWithResponse(ctx context.Context, id ProjectId, body QueryProjectMetricsJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryProjectMetricsClientResponse, error) { - rsp, err := c.QueryProjectMetrics(ctx, id, body, reqEditors...) - if err != nil { - return nil, err + response := &AuthRequestEmailChangeClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseQueryProjectMetricsClientResponse(rsp) -} -// ListOAuthConfigsWithResponse request returning *ListOAuthConfigsClientResponse -func (c *ClientWithResponses) ListOAuthConfigsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*ListOAuthConfigsClientResponse, error) { - rsp, err := c.ListOAuthConfigs(ctx, id, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Message *string `json:"message,omitempty"` + NewEmail *string `json:"new_email,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + } - return ParseListOAuthConfigsClientResponse(rsp) + + return response, nil } -// CreateOAuthConfigWithBodyWithResponse request with arbitrary body returning *CreateOAuthConfigClientResponse -func (c *ClientWithResponses) CreateOAuthConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOAuthConfigClientResponse, error) { - rsp, err := c.CreateOAuthConfigWithBody(ctx, id, contentType, body, reqEditors...) +// ParseAuthConfirmEmailChangeClientResponse parses an HTTP response from a AuthConfirmEmailChangeWithResponse call +func ParseAuthConfirmEmailChangeClientResponse(rsp *http.Response) (*AuthConfirmEmailChangeClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseCreateOAuthConfigClientResponse(rsp) -} -func (c *ClientWithResponses) CreateOAuthConfigWithResponse(ctx context.Context, id ProjectId, body CreateOAuthConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOAuthConfigClientResponse, error) { - rsp, err := c.CreateOAuthConfig(ctx, id, body, reqEditors...) - if err != nil { - return nil, err + response := &AuthConfirmEmailChangeClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseCreateOAuthConfigClientResponse(rsp) -} -// DeleteOAuthConfigWithResponse request returning *DeleteOAuthConfigClientResponse -func (c *ClientWithResponses) DeleteOAuthConfigWithResponse(ctx context.Context, id ProjectId, provider DeleteOAuthConfigParamsProvider, params *DeleteOAuthConfigParams, reqEditors ...RequestEditorFn) (*DeleteOAuthConfigClientResponse, error) { - rsp, err := c.DeleteOAuthConfig(ctx, id, provider, params, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Message *string `json:"message,omitempty"` + User *AuthUser `json:"user,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + } - return ParseDeleteOAuthConfigClientResponse(rsp) + + return response, nil } -// GetOAuthConfigWithResponse request returning *GetOAuthConfigClientResponse -func (c *ClientWithResponses) GetOAuthConfigWithResponse(ctx context.Context, id ProjectId, provider GetOAuthConfigParamsProvider, params *GetOAuthConfigParams, reqEditors ...RequestEditorFn) (*GetOAuthConfigClientResponse, error) { - rsp, err := c.GetOAuthConfig(ctx, id, provider, params, reqEditors...) +// ParseAuthConvertAnonymousClientResponse parses an HTTP response from a AuthConvertAnonymousWithResponse call +func ParseAuthConvertAnonymousClientResponse(rsp *http.Response) (*AuthConvertAnonymousClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseGetOAuthConfigClientResponse(rsp) -} -// UpdateOAuthConfigWithBodyWithResponse request with arbitrary body returning *UpdateOAuthConfigClientResponse -func (c *ClientWithResponses) UpdateOAuthConfigWithBodyWithResponse(ctx context.Context, id ProjectId, provider UpdateOAuthConfigParamsProvider, params *UpdateOAuthConfigParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOAuthConfigClientResponse, error) { - rsp, err := c.UpdateOAuthConfigWithBody(ctx, id, provider, params, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &AuthConvertAnonymousClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseUpdateOAuthConfigClientResponse(rsp) -} -func (c *ClientWithResponses) UpdateOAuthConfigWithResponse(ctx context.Context, id ProjectId, provider UpdateOAuthConfigParamsProvider, params *UpdateOAuthConfigParams, body UpdateOAuthConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOAuthConfigClientResponse, error) { - rsp, err := c.UpdateOAuthConfig(ctx, id, provider, params, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + User *AuthUser `json:"user,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } - return ParseUpdateOAuthConfigClientResponse(rsp) + + return response, nil } -// ListAvailableOAuthProvidersWithResponse request returning *ListAvailableOAuthProvidersClientResponse -func (c *ClientWithResponses) ListAvailableOAuthProvidersWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*ListAvailableOAuthProvidersClientResponse, error) { - rsp, err := c.ListAvailableOAuthProviders(ctx, id, reqEditors...) +// ParseAuthListIdentitiesClientResponse parses an HTTP response from a AuthListIdentitiesWithResponse call +func ParseAuthListIdentitiesClientResponse(rsp *http.Response) (*AuthListIdentitiesClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseListAvailableOAuthProvidersClientResponse(rsp) -} -// GetRealtimeConfigWithResponse request returning *GetRealtimeConfigClientResponse -func (c *ClientWithResponses) GetRealtimeConfigWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetRealtimeConfigClientResponse, error) { - rsp, err := c.GetRealtimeConfig(ctx, id, reqEditors...) - if err != nil { - return nil, err + response := &AuthListIdentitiesClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetRealtimeConfigClientResponse(rsp) -} -// UpdateRealtimeConfigWithBodyWithResponse request with arbitrary body returning *UpdateRealtimeConfigClientResponse -func (c *ClientWithResponses) UpdateRealtimeConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRealtimeConfigClientResponse, error) { - rsp, err := c.UpdateRealtimeConfigWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest AuthIdentitiesResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + } - return ParseUpdateRealtimeConfigClientResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) UpdateRealtimeConfigWithResponse(ctx context.Context, id ProjectId, body UpdateRealtimeConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRealtimeConfigClientResponse, error) { - rsp, err := c.UpdateRealtimeConfig(ctx, id, body, reqEditors...) +// ParseAuthUnlinkIdentityClientResponse parses an HTTP response from a AuthUnlinkIdentityWithResponse call +func ParseAuthUnlinkIdentityClientResponse(rsp *http.Response) (*AuthUnlinkIdentityClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseUpdateRealtimeConfigClientResponse(rsp) -} -// GetRealtimeStatsWithResponse request returning *GetRealtimeStatsClientResponse -func (c *ClientWithResponses) GetRealtimeStatsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetRealtimeStatsClientResponse, error) { - rsp, err := c.GetRealtimeStats(ctx, id, reqEditors...) - if err != nil { - return nil, err + response := &AuthUnlinkIdentityClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetRealtimeStatsClientResponse(rsp) -} -// ListProjectSchedulersWithResponse request returning *ListProjectSchedulersClientResponse -func (c *ClientWithResponses) ListProjectSchedulersWithResponse(ctx context.Context, id ProjectId, params *ListProjectSchedulersParams, reqEditors ...RequestEditorFn) (*ListProjectSchedulersClientResponse, error) { - rsp, err := c.ListProjectSchedulers(ctx, id, params, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + } - return ParseListProjectSchedulersClientResponse(rsp) + + return response, nil } -// ListServiceKeysWithResponse request returning *ListServiceKeysClientResponse -func (c *ClientWithResponses) ListServiceKeysWithResponse(ctx context.Context, id ProjectId, params *ListServiceKeysParams, reqEditors ...RequestEditorFn) (*ListServiceKeysClientResponse, error) { - rsp, err := c.ListServiceKeys(ctx, id, params, reqEditors...) +// ParseAuthListMethodsClientResponse parses an HTTP response from a AuthListMethodsWithResponse call +func ParseAuthListMethodsClientResponse(rsp *http.Response) (*AuthListMethodsClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseListServiceKeysClientResponse(rsp) -} -// CreateServiceKeyWithBodyWithResponse request with arbitrary body returning *CreateServiceKeyClientResponse -func (c *ClientWithResponses) CreateServiceKeyWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceKeyClientResponse, error) { - rsp, err := c.CreateServiceKeyWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &AuthListMethodsClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseCreateServiceKeyClientResponse(rsp) -} -func (c *ClientWithResponses) CreateServiceKeyWithResponse(ctx context.Context, id ProjectId, body CreateServiceKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceKeyClientResponse, error) { - rsp, err := c.CreateServiceKey(ctx, id, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest AuthMethodsResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + } - return ParseCreateServiceKeyClientResponse(rsp) + + return response, nil } -// DeleteServiceKeyWithResponse request returning *DeleteServiceKeyClientResponse -func (c *ClientWithResponses) DeleteServiceKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteServiceKeyClientResponse, error) { - rsp, err := c.DeleteServiceKey(ctx, id, keyId, reqEditors...) +// ParseAuthPromoteMethodClientResponse parses an HTTP response from a AuthPromoteMethodWithResponse call +func ParseAuthPromoteMethodClientResponse(rsp *http.Response) (*AuthPromoteMethodClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseDeleteServiceKeyClientResponse(rsp) -} -// GetServiceKeyWithResponse request returning *GetServiceKeyClientResponse -func (c *ClientWithResponses) GetServiceKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetServiceKeyClientResponse, error) { - rsp, err := c.GetServiceKey(ctx, id, keyId, reqEditors...) - if err != nil { - return nil, err + response := &AuthPromoteMethodClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetServiceKeyClientResponse(rsp) + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest AuthMethodSummary + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil } -// RegenerateServiceKeyWithResponse request returning *RegenerateServiceKeyClientResponse -func (c *ClientWithResponses) RegenerateServiceKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RegenerateServiceKeyClientResponse, error) { - rsp, err := c.RegenerateServiceKey(ctx, id, keyId, reqEditors...) +// ParseAuthDeleteAllMySessionsClientResponse parses an HTTP response from a AuthDeleteAllMySessionsWithResponse call +func ParseAuthDeleteAllMySessionsClientResponse(rsp *http.Response) (*AuthDeleteAllMySessionsClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseRegenerateServiceKeyClientResponse(rsp) -} -// ListStorageBucketsWithResponse request returning *ListStorageBucketsClientResponse -func (c *ClientWithResponses) ListStorageBucketsWithResponse(ctx context.Context, id ProjectId, params *ListStorageBucketsParams, reqEditors ...RequestEditorFn) (*ListStorageBucketsClientResponse, error) { - rsp, err := c.ListStorageBuckets(ctx, id, params, reqEditors...) - if err != nil { - return nil, err + response := &AuthDeleteAllMySessionsClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseListStorageBucketsClientResponse(rsp) -} -// CreateStorageBucketWithBodyWithResponse request with arbitrary body returning *CreateStorageBucketClientResponse -func (c *ClientWithResponses) CreateStorageBucketWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateStorageBucketClientResponse, error) { - rsp, err := c.CreateStorageBucketWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + } - return ParseCreateStorageBucketClientResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) CreateStorageBucketWithResponse(ctx context.Context, id ProjectId, body CreateStorageBucketJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateStorageBucketClientResponse, error) { - rsp, err := c.CreateStorageBucket(ctx, id, body, reqEditors...) +// ParseAuthGetMySessionsClientResponse parses an HTTP response from a AuthGetMySessionsWithResponse call +func ParseAuthGetMySessionsClientResponse(rsp *http.Response) (*AuthGetMySessionsClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseCreateStorageBucketClientResponse(rsp) -} -// DeleteStorageBucketWithResponse request returning *DeleteStorageBucketClientResponse -func (c *ClientWithResponses) DeleteStorageBucketWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, reqEditors ...RequestEditorFn) (*DeleteStorageBucketClientResponse, error) { - rsp, err := c.DeleteStorageBucket(ctx, id, bucketName, reqEditors...) - if err != nil { - return nil, err + response := &AuthGetMySessionsClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseDeleteStorageBucketClientResponse(rsp) -} -// GetStorageBucketWithResponse request returning *GetStorageBucketClientResponse -func (c *ClientWithResponses) GetStorageBucketWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, reqEditors ...RequestEditorFn) (*GetStorageBucketClientResponse, error) { - rsp, err := c.GetStorageBucket(ctx, id, bucketName, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + // Data Sessions for this page (cursor pagination only) + Data *[]AuthSession `json:"data,omitempty"` + + // HasMore Whether a further page exists (cursor pagination only) + HasMore *bool `json:"has_more,omitempty"` + + // Limit Number of sessions per page + Limit *int `json:"limit,omitempty"` + + // NextCursor Opaque cursor for the next page (cursor pagination only) + NextCursor *string `json:"next_cursor,omitempty"` + + // Page Current page number + Page *int `json:"page,omitempty"` + + // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`. + PrevCursor *string `json:"prev_cursor,omitempty"` + Sessions *[]AuthSession `json:"sessions,omitempty"` + + // Total Total number of sessions + Total *int `json:"total,omitempty"` + + // TotalPages Total number of pages + TotalPages *int `json:"total_pages,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + } - return ParseGetStorageBucketClientResponse(rsp) + + return response, nil } -// UpdateStorageBucketWithBodyWithResponse request with arbitrary body returning *UpdateStorageBucketClientResponse -func (c *ClientWithResponses) UpdateStorageBucketWithBodyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStorageBucketClientResponse, error) { - rsp, err := c.UpdateStorageBucketWithBody(ctx, id, bucketName, contentType, body, reqEditors...) +// ParseAuthDeleteMySessionClientResponse parses an HTTP response from a AuthDeleteMySessionWithResponse call +func ParseAuthDeleteMySessionClientResponse(rsp *http.Response) (*AuthDeleteMySessionClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseUpdateStorageBucketClientResponse(rsp) -} -func (c *ClientWithResponses) UpdateStorageBucketWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, body UpdateStorageBucketJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStorageBucketClientResponse, error) { - rsp, err := c.UpdateStorageBucket(ctx, id, bucketName, body, reqEditors...) - if err != nil { - return nil, err + response := &AuthDeleteMySessionClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseUpdateStorageBucketClientResponse(rsp) -} -// ListStoragePoliciesWithResponse request returning *ListStoragePoliciesClientResponse -func (c *ClientWithResponses) ListStoragePoliciesWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, reqEditors ...RequestEditorFn) (*ListStoragePoliciesClientResponse, error) { - rsp, err := c.ListStoragePolicies(ctx, id, bucketName, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + } - return ParseListStoragePoliciesClientResponse(rsp) + + return response, nil } -// CreateStoragePolicyWithBodyWithResponse request with arbitrary body returning *CreateStoragePolicyClientResponse -func (c *ClientWithResponses) CreateStoragePolicyWithBodyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateStoragePolicyClientResponse, error) { - rsp, err := c.CreateStoragePolicyWithBody(ctx, id, bucketName, contentType, body, reqEditors...) +// ParseListPostgresVersionsClientResponse parses an HTTP response from a ListPostgresVersionsWithResponse call +func ParseListPostgresVersionsClientResponse(rsp *http.Response) (*ListPostgresVersionsClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseCreateStoragePolicyClientResponse(rsp) -} -func (c *ClientWithResponses) CreateStoragePolicyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, body CreateStoragePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateStoragePolicyClientResponse, error) { - rsp, err := c.CreateStoragePolicy(ctx, id, bucketName, body, reqEditors...) - if err != nil { - return nil, err + response := &ListPostgresVersionsClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseCreateStoragePolicyClientResponse(rsp) -} -// DeleteStoragePolicyWithResponse request returning *DeleteStoragePolicyClientResponse -func (c *ClientWithResponses) DeleteStoragePolicyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, policyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteStoragePolicyClientResponse, error) { - rsp, err := c.DeleteStoragePolicy(ctx, id, bucketName, policyId, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + // Default Whether this is the default version (recommended) + Default *bool `json:"default,omitempty"` + + // Deprecated Whether this version is deprecated (approaching EOL) + Deprecated *bool `json:"deprecated,omitempty"` + + // Name Human-readable version name + Name *string `json:"name,omitempty"` + + // Version PostgreSQL major version number + Version *string `json:"version,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseDeleteStoragePolicyClientResponse(rsp) + + return response, nil } -// ListStorageObjectsAdminWithResponse request returning *ListStorageObjectsAdminClientResponse -func (c *ClientWithResponses) ListStorageObjectsAdminWithResponse(ctx context.Context, id ProjectId, params *ListStorageObjectsAdminParams, reqEditors ...RequestEditorFn) (*ListStorageObjectsAdminClientResponse, error) { - rsp, err := c.ListStorageObjectsAdmin(ctx, id, params, reqEditors...) +// ParseListDatabaseRegionsClientResponse parses an HTTP response from a ListDatabaseRegionsWithResponse call +func ParseListDatabaseRegionsClientResponse(rsp *http.Response) (*ListDatabaseRegionsClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseListStorageObjectsAdminClientResponse(rsp) -} -// GetStorageStatsWithResponse request returning *GetStorageStatsClientResponse -func (c *ClientWithResponses) GetStorageStatsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetStorageStatsClientResponse, error) { - rsp, err := c.GetStorageStats(ctx, id, reqEditors...) - if err != nil { - return nil, err + response := &ListDatabaseRegionsClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetStorageStatsClientResponse(rsp) -} -// GetProjectUsageWithResponse request returning *GetProjectUsageClientResponse -func (c *ClientWithResponses) GetProjectUsageWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectUsageClientResponse, error) { - rsp, err := c.GetProjectUsage(ctx, id, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + // Id Region identifier for API usage + Id *string `json:"id,omitempty"` + + // Name Human-readable region location + Name *string `json:"name,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseGetProjectUsageClientResponse(rsp) + + return response, nil } -// ListVariablesWithResponse request returning *ListVariablesClientResponse -func (c *ClientWithResponses) ListVariablesWithResponse(ctx context.Context, id ProjectId, params *ListVariablesParams, reqEditors ...RequestEditorFn) (*ListVariablesClientResponse, error) { - rsp, err := c.ListVariables(ctx, id, params, reqEditors...) +// ParseQueryDatabaseBranchDeleteClientResponse parses an HTTP response from a QueryDatabaseBranchDeleteWithResponse call +func ParseQueryDatabaseBranchDeleteClientResponse(rsp *http.Response) (*QueryDatabaseBranchDeleteClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseListVariablesClientResponse(rsp) -} -// CreateVariableWithBodyWithResponse request with arbitrary body returning *CreateVariableClientResponse -func (c *ClientWithResponses) CreateVariableWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVariableClientResponse, error) { - rsp, err := c.CreateVariableWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &QueryDatabaseBranchDeleteClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseCreateVariableClientResponse(rsp) -} -func (c *ClientWithResponses) CreateVariableWithResponse(ctx context.Context, id ProjectId, body CreateVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVariableClientResponse, error) { - rsp, err := c.CreateVariable(ctx, id, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest DatabaseQueryResult + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest DatabaseQueryCapExceeded + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest DatabaseBranchQueryUnavailable + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } - return ParseCreateVariableClientResponse(rsp) + + return response, nil } -// DeleteVariableWithResponse request returning *DeleteVariableClientResponse -func (c *ClientWithResponses) DeleteVariableWithResponse(ctx context.Context, id ProjectId, name VariableName, reqEditors ...RequestEditorFn) (*DeleteVariableClientResponse, error) { - rsp, err := c.DeleteVariable(ctx, id, name, reqEditors...) +// ParseQueryDatabaseBranchInsertClientResponse parses an HTTP response from a QueryDatabaseBranchInsertWithResponse call +func ParseQueryDatabaseBranchInsertClientResponse(rsp *http.Response) (*QueryDatabaseBranchInsertClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseDeleteVariableClientResponse(rsp) -} -// GetVariableWithResponse request returning *GetVariableClientResponse -func (c *ClientWithResponses) GetVariableWithResponse(ctx context.Context, id ProjectId, name VariableName, reqEditors ...RequestEditorFn) (*GetVariableClientResponse, error) { - rsp, err := c.GetVariable(ctx, id, name, reqEditors...) - if err != nil { - return nil, err + response := &QueryDatabaseBranchInsertClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetVariableClientResponse(rsp) -} -// UpdateVariableWithBodyWithResponse request with arbitrary body returning *UpdateVariableClientResponse -func (c *ClientWithResponses) UpdateVariableWithBodyWithResponse(ctx context.Context, id ProjectId, name VariableName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateVariableClientResponse, error) { - rsp, err := c.UpdateVariableWithBody(ctx, id, name, contentType, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest DatabaseQueryResult + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest DatabaseQueryCapExceeded + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest DatabaseBranchQueryUnavailable + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } - return ParseUpdateVariableClientResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) UpdateVariableWithResponse(ctx context.Context, id ProjectId, name VariableName, body UpdateVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateVariableClientResponse, error) { - rsp, err := c.UpdateVariable(ctx, id, name, body, reqEditors...) +// ParseQueryDatabaseBranchPingClientResponse parses an HTTP response from a QueryDatabaseBranchPingWithResponse call +func ParseQueryDatabaseBranchPingClientResponse(rsp *http.Response) (*QueryDatabaseBranchPingClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseUpdateVariableClientResponse(rsp) -} -// DownloadPublicFileWithResponse request returning *DownloadPublicFileClientResponse -func (c *ClientWithResponses) DownloadPublicFileWithResponse(ctx context.Context, projectId openapi_types.UUID, bucketName BucketName, path string, reqEditors ...RequestEditorFn) (*DownloadPublicFileClientResponse, error) { - rsp, err := c.DownloadPublicFile(ctx, projectId, bucketName, path, reqEditors...) - if err != nil { - return nil, err + response := &QueryDatabaseBranchPingClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseDownloadPublicFileClientResponse(rsp) -} -// ListStorageObjectsWithResponse request returning *ListStorageObjectsClientResponse -func (c *ClientWithResponses) ListStorageObjectsWithResponse(ctx context.Context, bucketName BucketName, params *ListStorageObjectsParams, reqEditors ...RequestEditorFn) (*ListStorageObjectsClientResponse, error) { - rsp, err := c.ListStorageObjects(ctx, bucketName, params, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest DatabaseQueryResult + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest DatabaseQueryCapExceeded + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest DatabaseBranchQueryUnavailable + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } - return ParseListStorageObjectsClientResponse(rsp) + + return response, nil } -// CopyStorageObjectWithBodyWithResponse request with arbitrary body returning *CopyStorageObjectClientResponse -func (c *ClientWithResponses) CopyStorageObjectWithBodyWithResponse(ctx context.Context, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CopyStorageObjectClientResponse, error) { - rsp, err := c.CopyStorageObjectWithBody(ctx, bucketName, contentType, body, reqEditors...) +// ParseQueryDatabaseBranchSelectClientResponse parses an HTTP response from a QueryDatabaseBranchSelectWithResponse call +func ParseQueryDatabaseBranchSelectClientResponse(rsp *http.Response) (*QueryDatabaseBranchSelectClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseCopyStorageObjectClientResponse(rsp) -} -func (c *ClientWithResponses) CopyStorageObjectWithResponse(ctx context.Context, bucketName BucketName, body CopyStorageObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CopyStorageObjectClientResponse, error) { - rsp, err := c.CopyStorageObject(ctx, bucketName, body, reqEditors...) - if err != nil { - return nil, err + response := &QueryDatabaseBranchSelectClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest DatabaseQueryResult + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest DatabaseQueryCapExceeded + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest DatabaseBranchQueryUnavailable + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } - return ParseCopyStorageObjectClientResponse(rsp) -} -// MoveStorageObjectWithBodyWithResponse request with arbitrary body returning *MoveStorageObjectClientResponse -func (c *ClientWithResponses) MoveStorageObjectWithBodyWithResponse(ctx context.Context, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MoveStorageObjectClientResponse, error) { - rsp, err := c.MoveStorageObjectWithBody(ctx, bucketName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseMoveStorageObjectClientResponse(rsp) + return response, nil } -func (c *ClientWithResponses) MoveStorageObjectWithResponse(ctx context.Context, bucketName BucketName, body MoveStorageObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*MoveStorageObjectClientResponse, error) { - rsp, err := c.MoveStorageObject(ctx, bucketName, body, reqEditors...) +// ParseQueryDatabaseBranchUpdateClientResponse parses an HTTP response from a QueryDatabaseBranchUpdateWithResponse call +func ParseQueryDatabaseBranchUpdateClientResponse(rsp *http.Response) (*QueryDatabaseBranchUpdateClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseMoveStorageObjectClientResponse(rsp) -} -// DeleteStorageObjectWithResponse request returning *DeleteStorageObjectClientResponse -func (c *ClientWithResponses) DeleteStorageObjectWithResponse(ctx context.Context, bucketName BucketName, path string, params *DeleteStorageObjectParams, reqEditors ...RequestEditorFn) (*DeleteStorageObjectClientResponse, error) { - rsp, err := c.DeleteStorageObject(ctx, bucketName, path, params, reqEditors...) - if err != nil { - return nil, err + response := &QueryDatabaseBranchUpdateClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseDeleteStorageObjectClientResponse(rsp) -} -// DownloadStorageObjectWithResponse request returning *DownloadStorageObjectClientResponse -func (c *ClientWithResponses) DownloadStorageObjectWithResponse(ctx context.Context, bucketName BucketName, path string, params *DownloadStorageObjectParams, reqEditors ...RequestEditorFn) (*DownloadStorageObjectClientResponse, error) { - rsp, err := c.DownloadStorageObject(ctx, bucketName, path, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDownloadStorageObjectClientResponse(rsp) -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest DatabaseQueryResult + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// UploadStorageObjectWithBodyWithResponse request with arbitrary body returning *UploadStorageObjectClientResponse -func (c *ClientWithResponses) UploadStorageObjectWithBodyWithResponse(ctx context.Context, bucketName BucketName, path string, params *UploadStorageObjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadStorageObjectClientResponse, error) { - rsp, err := c.UploadStorageObjectWithBody(ctx, bucketName, path, params, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUploadStorageObjectClientResponse(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest -func (c *ClientWithResponses) UploadStorageObjectWithResponse(ctx context.Context, bucketName BucketName, path string, params *UploadStorageObjectParams, body UploadStorageObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UploadStorageObjectClientResponse, error) { - rsp, err := c.UploadStorageObject(ctx, bucketName, path, params, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUploadStorageObjectClientResponse(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest -// UploadPartWithBodyWithResponse request with arbitrary body returning *UploadPartClientResponse -func (c *ClientWithResponses) UploadPartWithBodyWithResponse(ctx context.Context, bucketName BucketName, path string, params *UploadPartParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadPartClientResponse, error) { - rsp, err := c.UploadPartWithBody(ctx, bucketName, path, params, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUploadPartClientResponse(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest -// UpdateStorageObjectVisibilityWithBodyWithResponse request with arbitrary body returning *UpdateStorageObjectVisibilityClientResponse -func (c *ClientWithResponses) UpdateStorageObjectVisibilityWithBodyWithResponse(ctx context.Context, bucketName BucketName, path string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStorageObjectVisibilityClientResponse, error) { - rsp, err := c.UpdateStorageObjectVisibilityWithBody(ctx, bucketName, path, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateStorageObjectVisibilityClientResponse(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest -func (c *ClientWithResponses) UpdateStorageObjectVisibilityWithResponse(ctx context.Context, bucketName BucketName, path string, body UpdateStorageObjectVisibilityJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStorageObjectVisibilityClientResponse, error) { - rsp, err := c.UpdateStorageObjectVisibility(ctx, bucketName, path, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateStorageObjectVisibilityClientResponse(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest DatabaseQueryCapExceeded + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest -// StartGitConnectWithResponse request returning *StartGitConnectClientResponse -func (c *ClientWithResponses) StartGitConnectWithResponse(ctx context.Context, params *StartGitConnectParams, reqEditors ...RequestEditorFn) (*StartGitConnectClientResponse, error) { - rsp, err := c.StartGitConnect(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseStartGitConnectClientResponse(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest DatabaseBranchQueryUnavailable + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest -// ListGitConnectionsWithResponse request returning *ListGitConnectionsClientResponse -func (c *ClientWithResponses) ListGitConnectionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListGitConnectionsClientResponse, error) { - rsp, err := c.ListGitConnections(ctx, reqEditors...) - if err != nil { - return nil, err } - return ParseListGitConnectionsClientResponse(rsp) -} -// DeleteGitConnectionWithResponse request returning *DeleteGitConnectionClientResponse -func (c *ClientWithResponses) DeleteGitConnectionWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteGitConnectionClientResponse, error) { - rsp, err := c.DeleteGitConnection(ctx, connectionId, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteGitConnectionClientResponse(rsp) + return response, nil } -// ListGitInstallationsWithResponse request returning *ListGitInstallationsClientResponse -func (c *ClientWithResponses) ListGitInstallationsWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListGitInstallationsClientResponse, error) { - rsp, err := c.ListGitInstallations(ctx, connectionId, reqEditors...) +// ParseQueryDatabaseDeleteClientResponse parses an HTTP response from a QueryDatabaseDeleteWithResponse call +func ParseQueryDatabaseDeleteClientResponse(rsp *http.Response) (*QueryDatabaseDeleteClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseListGitInstallationsClientResponse(rsp) -} -// ListGitInstallationRepositoriesWithResponse request returning *ListGitInstallationRepositoriesClientResponse -func (c *ClientWithResponses) ListGitInstallationRepositoriesWithResponse(ctx context.Context, connectionId openapi_types.UUID, installationId int64, reqEditors ...RequestEditorFn) (*ListGitInstallationRepositoriesClientResponse, error) { - rsp, err := c.ListGitInstallationRepositories(ctx, connectionId, installationId, reqEditors...) - if err != nil { - return nil, err + response := &QueryDatabaseDeleteClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseListGitInstallationRepositoriesClientResponse(rsp) -} -// StartImportConnectWithResponse request returning *StartImportConnectClientResponse -func (c *ClientWithResponses) StartImportConnectWithResponse(ctx context.Context, params *StartImportConnectParams, reqEditors ...RequestEditorFn) (*StartImportConnectClientResponse, error) { - rsp, err := c.StartImportConnect(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseStartImportConnectClientResponse(rsp) -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest DatabaseQueryResult + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// ListImportConnectionsWithResponse request returning *ListImportConnectionsClientResponse -func (c *ClientWithResponses) ListImportConnectionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListImportConnectionsClientResponse, error) { - rsp, err := c.ListImportConnections(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseListImportConnectionsClientResponse(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest DatabaseQueryCapExceeded + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest -// DeleteImportConnectionWithResponse request returning *DeleteImportConnectionClientResponse -func (c *ClientWithResponses) DeleteImportConnectionWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteImportConnectionClientResponse, error) { - rsp, err := c.DeleteImportConnection(ctx, connectionId, reqEditors...) - if err != nil { - return nil, err } - return ParseDeleteImportConnectionClientResponse(rsp) + + return response, nil } -// ParseAuthConfirmEmailClientResponse parses an HTTP response from a AuthConfirmEmailWithResponse call -func ParseAuthConfirmEmailClientResponse(rsp *http.Response) (*AuthConfirmEmailClientResponse, error) { +// ParseQueryDatabaseInsertClientResponse parses an HTTP response from a QueryDatabaseInsertWithResponse call +func ParseQueryDatabaseInsertClientResponse(rsp *http.Response) (*QueryDatabaseInsertClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthConfirmEmailClientResponse{ + response := &QueryDatabaseInsertClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Message *AuthConfirmEmail200JSONResponseBodyMessage `json:"message,omitempty"` - } + var dest DatabaseQueryResult if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest DatabaseQueryCapExceeded + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + } return response, nil } -// ParseAuthDeviceAuthorizeClientResponse parses an HTTP response from a AuthDeviceAuthorizeWithResponse call -func ParseAuthDeviceAuthorizeClientResponse(rsp *http.Response) (*AuthDeviceAuthorizeClientResponse, error) { +// ParseQueryDatabasePingClientResponse parses an HTTP response from a QueryDatabasePingWithResponse call +func ParseQueryDatabasePingClientResponse(rsp *http.Response) (*QueryDatabasePingClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthDeviceAuthorizeClientResponse{ + response := &QueryDatabasePingClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DeviceAuthorizationResponse + var dest DatabaseQueryResult if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest OAuthErrorResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest DatabaseQueryCapExceeded + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest } return response, nil } -// ParseAuthDeviceTokenClientResponse parses an HTTP response from a AuthDeviceTokenWithResponse call -func ParseAuthDeviceTokenClientResponse(rsp *http.Response) (*AuthDeviceTokenClientResponse, error) { +// ParseQueryDatabaseSelectClientResponse parses an HTTP response from a QueryDatabaseSelectWithResponse call +func ParseQueryDatabaseSelectClientResponse(rsp *http.Response) (*QueryDatabaseSelectClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthDeviceTokenClientResponse{ + response := &QueryDatabaseSelectClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AuthTokenResponse + var dest DatabaseQueryResult if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest OAuthErrorResponse + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest OAuthErrorResponse + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest DatabaseQueryCapExceeded + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + } return response, nil } -// ParseAuthDeviceVerifyClientResponse parses an HTTP response from a AuthDeviceVerifyWithResponse call -func ParseAuthDeviceVerifyClientResponse(rsp *http.Response) (*AuthDeviceVerifyClientResponse, error) { +// ParseQueryDatabaseUpdateClientResponse parses an HTTP response from a QueryDatabaseUpdateWithResponse call +func ParseQueryDatabaseUpdateClientResponse(rsp *http.Response) (*QueryDatabaseUpdateClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthDeviceVerifyClientResponse{ + response := &QueryDatabaseUpdateClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Status *string `json:"status,omitempty"` - Success *bool `json:"success,omitempty"` - } + var dest DatabaseQueryResult if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -39657,34 +48383,67 @@ func ParseAuthDeviceVerifyClientResponse(rsp *http.Response) (*AuthDeviceVerifyC } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest DatabaseQueryCapExceeded + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + } return response, nil } -// ParseAuthForgotPasswordClientResponse parses an HTTP response from a AuthForgotPasswordWithResponse call -func ParseAuthForgotPasswordClientResponse(rsp *http.Response) (*AuthForgotPasswordClientResponse, error) { +// ParseListDeploymentsClientResponse parses an HTTP response from a ListDeploymentsWithResponse call +func ParseListDeploymentsClientResponse(rsp *http.Response) (*ListDeploymentsClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthForgotPasswordClientResponse{ + response := &ListDeploymentsClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Message *string `json:"message,omitempty"` - } + var dest PaginatedProjectDeployments if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -39692,50 +48451,118 @@ func ParseAuthForgotPasswordClientResponse(rsp *http.Response) (*AuthForgotPassw } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON500 = &dest } return response, nil } -// ParseAuthLogoutClientResponse parses an HTTP response from a AuthLogoutWithResponse call -func ParseAuthLogoutClientResponse(rsp *http.Response) (*AuthLogoutClientResponse, error) { +// ParseStartDurableExecutionFromApplicationClientResponse parses an HTTP response from a StartDurableExecutionFromApplicationWithResponse call +func ParseStartDurableExecutionFromApplicationClientResponse(rsp *http.Response) (*StartDurableExecutionFromApplicationClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthLogoutClientResponse{ + response := &StartDurableExecutionFromApplicationClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202: + var dest DurableExecution + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON202 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 413: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON413 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + + } + return response, nil } -// ParseAuthOAuthExchangeClientResponse parses an HTTP response from a AuthOAuthExchangeWithResponse call -func ParseAuthOAuthExchangeClientResponse(rsp *http.Response) (*AuthOAuthExchangeClientResponse, error) { +// ParseGetDefaultEmailTemplatesClientResponse parses an HTTP response from a GetDefaultEmailTemplatesWithResponse call +func ParseGetDefaultEmailTemplatesClientResponse(rsp *http.Response) (*GetDefaultEmailTemplatesClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthOAuthExchangeClientResponse{ + response := &GetDefaultEmailTemplatesClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AuthTokenResponse + var dest struct { + Data *[]EmailTemplate `json:"data,omitempty"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -39746,77 +48573,74 @@ func ParseAuthOAuthExchangeClientResponse(rsp *http.Response) (*AuthOAuthExchang return response, nil } -// ParseAuthListOAuthProvidersClientResponse parses an HTTP response from a AuthListOAuthProvidersWithResponse call -func ParseAuthListOAuthProvidersClientResponse(rsp *http.Response) (*AuthListOAuthProvidersClientResponse, error) { +// ParseGetDefaultEmailTemplateClientResponse parses an HTTP response from a GetDefaultEmailTemplateWithResponse call +func ParseGetDefaultEmailTemplateClientResponse(rsp *http.Response) (*GetDefaultEmailTemplateClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthListOAuthProvidersClientResponse{ + response := &GetDefaultEmailTemplateClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Providers *[]struct { - LinkedAt *time.Time `json:"linked_at,omitempty"` - Provider *string `json:"provider,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` - } `json:"providers,omitempty"` - } + var dest EmailTemplate if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest - } return response, nil } -// ParseAuthOAuthAuthorizeClientResponse parses an HTTP response from a AuthOAuthAuthorizeWithResponse call -func ParseAuthOAuthAuthorizeClientResponse(rsp *http.Response) (*AuthOAuthAuthorizeClientResponse, error) { +// ParseListFunctionRegionsClientResponse parses an HTTP response from a ListFunctionRegionsWithResponse call +func ParseListFunctionRegionsClientResponse(rsp *http.Response) (*ListFunctionRegionsClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthOAuthAuthorizeClientResponse{ + response := &ListFunctionRegionsClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []FunctionRegion + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + return response, nil } -// ParseCallOAuthProviderAPIClientResponse parses an HTTP response from a CallOAuthProviderAPIWithResponse call -func ParseCallOAuthProviderAPIClientResponse(rsp *http.Response) (*CallOAuthProviderAPIClientResponse, error) { +// ParseResolveFunctionForInvocationClientResponse parses an HTTP response from a ResolveFunctionForInvocationWithResponse call +func ParseResolveFunctionForInvocationClientResponse(rsp *http.Response) (*ResolveFunctionForInvocationClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CallOAuthProviderAPIClientResponse{ + response := &ResolveFunctionForInvocationClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest map[string]interface{} + var dest ResolveFunctionResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -39836,69 +48660,67 @@ func ParseCallOAuthProviderAPIClientResponse(rsp *http.Response) (*CallOAuthProv } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 502: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON502 = &dest + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest } return response, nil } -// ParseAuthOAuthCallbackClientResponse parses an HTTP response from a AuthOAuthCallbackWithResponse call -func ParseAuthOAuthCallbackClientResponse(rsp *http.Response) (*AuthOAuthCallbackClientResponse, error) { +// ParseListFunctionRuntimesClientResponse parses an HTTP response from a ListFunctionRuntimesWithResponse call +func ParseListFunctionRuntimesClientResponse(rsp *http.Response) (*ListFunctionRuntimesClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthOAuthCallbackClientResponse{ + response := &ListFunctionRuntimesClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AuthTokenResponse + var dest FunctionRuntimesResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest AuthTokenResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - } return response, nil } -// ParseAuthLinkOAuthProviderClientResponse parses an HTTP response from a AuthLinkOAuthProviderWithResponse call -func ParseAuthLinkOAuthProviderClientResponse(rsp *http.Response) (*AuthLinkOAuthProviderClientResponse, error) { +// ParseInvokeFunctionClientResponse parses an HTTP response from a InvokeFunctionWithResponse call +func ParseInvokeFunctionClientResponse(rsp *http.Response) (*InvokeFunctionClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthLinkOAuthProviderClientResponse{ + response := &InvokeFunctionClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - AuthorizationUrl *string `json:"authorization_url,omitempty"` - } + var dest FunctionInvocationResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -39918,6 +48740,13 @@ func ParseAuthLinkOAuthProviderClientResponse(rsp *http.Response) (*AuthLinkOAut } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -39925,122 +48754,104 @@ func ParseAuthLinkOAuthProviderClientResponse(rsp *http.Response) (*AuthLinkOAut } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest FunctionInvocationResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest } return response, nil } -// ParseRefreshOAuthProviderTokenClientResponse parses an HTTP response from a RefreshOAuthProviderTokenWithResponse call -func ParseRefreshOAuthProviderTokenClientResponse(rsp *http.Response) (*RefreshOAuthProviderTokenClientResponse, error) { +// ParseGitConnectCallbackClientResponse parses an HTTP response from a GitConnectCallbackWithResponse call +func ParseGitConnectCallbackClientResponse(rsp *http.Response) (*GitConnectCallbackClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &RefreshOAuthProviderTokenClientResponse{ + response := &GitConnectCallbackClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - ExpiresIn *int `json:"expires_in,omitempty"` - Message *string `json:"message,omitempty"` - Provider *string `json:"provider,omitempty"` - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON500 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON503 = &dest } return response, nil } -// ParseGetOAuthProviderTokenClientResponse parses an HTTP response from a GetOAuthProviderTokenWithResponse call -func ParseGetOAuthProviderTokenClientResponse(rsp *http.Response) (*GetOAuthProviderTokenClientResponse, error) { +// ParseHealthCheckClientResponse parses an HTTP response from a HealthCheckWithResponse call +func ParseHealthCheckClientResponse(rsp *http.Response) (*HealthCheckClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOAuthProviderTokenClientResponse{ + response := &HealthCheckClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - ExpiresIn *int `json:"expires_in,omitempty"` - Message *string `json:"message,omitempty"` - Provider *string `json:"provider,omitempty"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - - } - return response, nil } -// ParseAuthUnlinkOAuthProviderClientResponse parses an HTTP response from a AuthUnlinkOAuthProviderWithResponse call -func ParseAuthUnlinkOAuthProviderClientResponse(rsp *http.Response) (*AuthUnlinkOAuthProviderClientResponse, error) { +// ParseCompleteImportConnectClientResponse parses an HTTP response from a CompleteImportConnectWithResponse call +func ParseCompleteImportConnectClientResponse(rsp *http.Response) (*CompleteImportConnectClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthUnlinkOAuthProviderClientResponse{ + response := &CompleteImportConnectClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -40053,46 +48864,60 @@ func ParseAuthUnlinkOAuthProviderClientResponse(rsp *http.Response) (*AuthUnlink } response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON500 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest } return response, nil } -// ParseAuthGetPasswordPolicyClientResponse parses an HTTP response from a AuthGetPasswordPolicyWithResponse call -func ParseAuthGetPasswordPolicyClientResponse(rsp *http.Response) (*AuthGetPasswordPolicyClientResponse, error) { +// ParsePreflightProjectImportClientResponse parses an HTTP response from a PreflightProjectImportWithResponse call +func ParsePreflightProjectImportClientResponse(rsp *http.Response) (*PreflightProjectImportClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthGetPasswordPolicyClientResponse{ + response := &PreflightProjectImportClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AuthPasswordPolicy + var dest ProjectImportReport if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -40100,6 +48925,13 @@ func ParseAuthGetPasswordPolicyClientResponse(rsp *http.Response) (*AuthGetPassw } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -40107,64 +48939,66 @@ func ParseAuthGetPasswordPolicyClientResponse(rsp *http.Response) (*AuthGetPassw } response.JSON404 = &dest - } - - return response, nil -} - -// ParseAuthPlatformExchangeClientResponse parses an HTTP response from a AuthPlatformExchangeWithResponse call -func ParseAuthPlatformExchangeClientResponse(rsp *http.Response) (*AuthPlatformExchangeClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest - response := &AuthPlatformExchangeClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PlatformExchangeResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON500 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON503 = &dest } return response, nil } -// ParseAuthRefreshClientResponse parses an HTTP response from a AuthRefreshWithResponse call -func ParseAuthRefreshClientResponse(rsp *http.Response) (*AuthRefreshClientResponse, error) { +// ParseStartProjectImportClientResponse parses an HTTP response from a StartProjectImportWithResponse call +func ParseStartProjectImportClientResponse(rsp *http.Response) (*StartProjectImportClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthRefreshClientResponse{ + response := &StartProjectImportClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AuthTokenResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202: + var dest ProjectImportRun if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON202 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Error @@ -40180,40 +49014,26 @@ func ParseAuthRefreshClientResponse(rsp *http.Response) (*AuthRefreshClientRespo } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest - - } - - return response, nil -} - -// ParseAuthResendConfirmationClientResponse parses an HTTP response from a AuthResendConfirmationWithResponse call -func ParseAuthResendConfirmationClientResponse(rsp *http.Response) (*AuthResendConfirmationClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &AuthResendConfirmationClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + response.JSON404 = &dest - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Message *string `json:"message,omitempty"` + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest Error @@ -40222,33 +49042,12 @@ func ParseAuthResendConfirmationClientResponse(rsp *http.Response) (*AuthResendC } response.JSON429 = &dest - } - - return response, nil -} - -// ParseAuthResetPasswordClientResponse parses an HTTP response from a AuthResetPasswordWithResponse call -func ParseAuthResetPasswordClientResponse(rsp *http.Response) (*AuthResetPasswordClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &AuthResetPasswordClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Message *string `json:"message,omitempty"` - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest Error @@ -40262,114 +49061,88 @@ func ParseAuthResetPasswordClientResponse(rsp *http.Response) (*AuthResetPasswor return response, nil } -// ParseAuthSigninClientResponse parses an HTTP response from a AuthSigninWithResponse call -func ParseAuthSigninClientResponse(rsp *http.Response) (*AuthSigninClientResponse, error) { +// ParseGetProjectImportRunClientResponse parses an HTTP response from a GetProjectImportRunWithResponse call +func ParseGetProjectImportRunClientResponse(rsp *http.Response) (*GetProjectImportRunClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthSigninClientResponse{ + response := &GetProjectImportRunClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AuthTokenResponse + var dest ProjectImportRun if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - } - - return response, nil -} - -// ParseAuthSignupClientResponse parses an HTTP response from a AuthSignupWithResponse call -func ParseAuthSignupClientResponse(rsp *http.Response) (*AuthSignupClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &AuthSignupClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest AuthSignupResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON503 = &dest - - } - - return response, nil -} - -// ParseAuthSignupAnonymousClientResponse parses an HTTP response from a AuthSignupAnonymousWithResponse call -func ParseAuthSignupAnonymousClientResponse(rsp *http.Response) (*AuthSignupAnonymousClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + response.JSON401 = &dest - response := &AuthSignupAnonymousClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest AuthTokenResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON500 = &dest } return response, nil } -// ParseAuthGetUserClientResponse parses an HTTP response from a AuthGetUserWithResponse call -func ParseAuthGetUserClientResponse(rsp *http.Response) (*AuthGetUserClientResponse, error) { +// ParseListImportSourcesClientResponse parses an HTTP response from a ListImportSourcesWithResponse call +func ParseListImportSourcesClientResponse(rsp *http.Response) (*ListImportSourcesClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthGetUserClientResponse{ + response := &ListImportSourcesClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - User *AuthUser `json:"user,omitempty"` - } + var dest ImportSourcesResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -40377,47 +49150,40 @@ func ParseAuthGetUserClientResponse(rsp *http.Response) (*AuthGetUserClientRespo } response.JSON401 = &dest - } - - return response, nil -} - -// ParseAuthUpdateUserClientResponse parses an HTTP response from a AuthUpdateUserWithResponse call -func ParseAuthUpdateUserClientResponse(rsp *http.Response) (*AuthUpdateUserClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &AuthUpdateUserClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - User *AuthUser `json:"user,omitempty"` + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest Error @@ -40431,28 +49197,26 @@ func ParseAuthUpdateUserClientResponse(rsp *http.Response) (*AuthUpdateUserClien return response, nil } -// ParseAuthCancelEmailChangeClientResponse parses an HTTP response from a AuthCancelEmailChangeWithResponse call -func ParseAuthCancelEmailChangeClientResponse(rsp *http.Response) (*AuthCancelEmailChangeClientResponse, error) { +// ParseForceReleaseProjectLockClientResponse parses an HTTP response from a ForceReleaseProjectLockWithResponse call +func ParseForceReleaseProjectLockClientResponse(rsp *http.Response) (*ForceReleaseProjectLockClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthCancelEmailChangeClientResponse{ + response := &ForceReleaseProjectLockClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Message *string `json:"message,omitempty"` - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Error @@ -40461,30 +49225,48 @@ func ParseAuthCancelEmailChangeClientResponse(rsp *http.Response) (*AuthCancelEm } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseAuthRequestEmailChangeClientResponse parses an HTTP response from a AuthRequestEmailChangeWithResponse call -func ParseAuthRequestEmailChangeClientResponse(rsp *http.Response) (*AuthRequestEmailChangeClientResponse, error) { +// ParseGetProjectLockClientResponse parses an HTTP response from a GetProjectLockWithResponse call +func ParseGetProjectLockClientResponse(rsp *http.Response) (*GetProjectLockClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthRequestEmailChangeClientResponse{ + response := &GetProjectLockClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Message *string `json:"message,omitempty"` - NewEmail *string `json:"new_email,omitempty"` - } + var dest ProjectLockState if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -40511,49 +49293,39 @@ func ParseAuthRequestEmailChangeClientResponse(rsp *http.Response) (*AuthRequest } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON503 = &dest } return response, nil } -// ParseAuthConfirmEmailChangeClientResponse parses an HTTP response from a AuthConfirmEmailChangeWithResponse call -func ParseAuthConfirmEmailChangeClientResponse(rsp *http.Response) (*AuthConfirmEmailChangeClientResponse, error) { +// ParseReleaseProjectLockClientResponse parses an HTTP response from a ReleaseProjectLockWithResponse call +func ParseReleaseProjectLockClientResponse(rsp *http.Response) (*ReleaseProjectLockClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthConfirmEmailChangeClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Message *string `json:"message,omitempty"` - User *AuthUser `json:"user,omitempty"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + response := &ReleaseProjectLockClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -40582,33 +49354,12 @@ func ParseAuthConfirmEmailChangeClientResponse(rsp *http.Response) (*AuthConfirm } response.JSON409 = &dest - } - - return response, nil -} - -// ParseAuthConvertAnonymousClientResponse parses an HTTP response from a AuthConvertAnonymousWithResponse call -func ParseAuthConvertAnonymousClientResponse(rsp *http.Response) (*AuthConvertAnonymousClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &AuthConvertAnonymousClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - User *AuthUser `json:"user,omitempty"` - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON429 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest Error @@ -40622,53 +49373,27 @@ func ParseAuthConvertAnonymousClientResponse(rsp *http.Response) (*AuthConvertAn return response, nil } -// ParseAuthListIdentitiesClientResponse parses an HTTP response from a AuthListIdentitiesWithResponse call -func ParseAuthListIdentitiesClientResponse(rsp *http.Response) (*AuthListIdentitiesClientResponse, error) { +// ParseRenewProjectLockClientResponse parses an HTTP response from a RenewProjectLockWithResponse call +func ParseRenewProjectLockClientResponse(rsp *http.Response) (*RenewProjectLockClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthListIdentitiesClientResponse{ + response := &RenewProjectLockClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AuthIdentitiesResponse + var dest ProjectLockLease if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest - - } - - return response, nil -} - -// ParseAuthUnlinkIdentityClientResponse parses an HTTP response from a AuthUnlinkIdentityWithResponse call -func ParseAuthUnlinkIdentityClientResponse(rsp *http.Response) (*AuthUnlinkIdentityClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &AuthUnlinkIdentityClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -40683,71 +49408,59 @@ func ParseAuthUnlinkIdentityClientResponse(rsp *http.Response) (*AuthUnlinkIdent } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest - - } - - return response, nil -} - -// ParseAuthListMethodsClientResponse parses an HTTP response from a AuthListMethodsWithResponse call -func ParseAuthListMethodsClientResponse(rsp *http.Response) (*AuthListMethodsClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + response.JSON403 = &dest - response := &AuthListMethodsClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AuthMethodsResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON503 = &dest } return response, nil } -// ParseAuthPromoteMethodClientResponse parses an HTTP response from a AuthPromoteMethodWithResponse call -func ParseAuthPromoteMethodClientResponse(rsp *http.Response) (*AuthPromoteMethodClientResponse, error) { +// ParseAcquireProjectLockClientResponse parses an HTTP response from a AcquireProjectLockWithResponse call +func ParseAcquireProjectLockClientResponse(rsp *http.Response) (*AcquireProjectLockClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthPromoteMethodClientResponse{ + response := &AcquireProjectLockClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AuthMethodSummary + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ProjectLockLease if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Error @@ -40770,53 +49483,41 @@ func ParseAuthPromoteMethodClientResponse(rsp *http.Response) (*AuthPromoteMetho } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest - - } - - return response, nil -} - -// ParseAuthDeleteAllMySessionsClientResponse parses an HTTP response from a AuthDeleteAllMySessionsWithResponse call -func ParseAuthDeleteAllMySessionsClientResponse(rsp *http.Response) (*AuthDeleteAllMySessionsClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + response.JSON409 = &dest - response := &AuthDeleteAllMySessionsClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON503 = &dest } return response, nil } -// ParseAuthGetMySessionsClientResponse parses an HTTP response from a AuthGetMySessionsWithResponse call -func ParseAuthGetMySessionsClientResponse(rsp *http.Response) (*AuthGetMySessionsClientResponse, error) { +// ParseCallMCPClientResponse parses an HTTP response from a CallMCPWithResponse call +func ParseCallMCPClientResponse(rsp *http.Response) (*CallMCPClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthGetMySessionsClientResponse{ + response := &CallMCPClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -40824,209 +49525,148 @@ func ParseAuthGetMySessionsClientResponse(rsp *http.Response) (*AuthGetMySession switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // Data Sessions for this page (cursor pagination only) - Data *[]AuthSession `json:"data,omitempty"` - - // HasMore Whether a further page exists (cursor pagination only) - HasMore *bool `json:"has_more,omitempty"` - - // Limit Number of sessions per page - Limit *int `json:"limit,omitempty"` - - // NextCursor Opaque cursor for the next page (cursor pagination only) - NextCursor *string `json:"next_cursor,omitempty"` - - // Page Current page number - Page *int `json:"page,omitempty"` - - // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`. - PrevCursor *string `json:"prev_cursor,omitempty"` - Sessions *[]AuthSession `json:"sessions,omitempty"` - - // Total Total number of sessions - Total *int `json:"total,omitempty"` + Error *struct { + Code int `json:"code"` + Message string `json:"message"` + } `json:"error,omitempty"` - // TotalPages Total number of pages - TotalPages *int `json:"total_pages,omitempty"` + // Id Echoes the request's id. Null when the request could not be read well enough to determine one. + Id *CallMCP200JSONResponseBody_Id `json:"id"` + Jsonrpc CallMCP200JSONResponseBodyJsonrpc `json:"jsonrpc"` + Result *map[string]interface{} `json:"result,omitempty"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON403 = &dest } return response, nil } -// ParseAuthDeleteMySessionClientResponse parses an HTTP response from a AuthDeleteMySessionWithResponse call -func ParseAuthDeleteMySessionClientResponse(rsp *http.Response) (*AuthDeleteMySessionClientResponse, error) { +// ParseGetOpenAPISpecJSONClientResponse parses an HTTP response from a GetOpenAPISpecJSONWithResponse call +func ParseGetOpenAPISpecJSONClientResponse(rsp *http.Response) (*GetOpenAPISpecJSONClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthDeleteMySessionClientResponse{ + response := &GetOpenAPISpecJSONClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Error + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest OpenAPISpecDocument if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest OpenAPISpecThrottled if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON429 = &dest } return response, nil } -// ParseListPostgresVersionsClientResponse parses an HTTP response from a ListPostgresVersionsWithResponse call -func ParseListPostgresVersionsClientResponse(rsp *http.Response) (*ListPostgresVersionsClientResponse, error) { +// ParseHeadOpenAPISpecJSONClientResponse parses an HTTP response from a HeadOpenAPISpecJSONWithResponse call +func ParseHeadOpenAPISpecJSONClientResponse(rsp *http.Response) (*HeadOpenAPISpecJSONClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListPostgresVersionsClientResponse{ + response := &HeadOpenAPISpecJSONClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []struct { - // Default Whether this is the default version (recommended) - Default *bool `json:"default,omitempty"` - - // Deprecated Whether this version is deprecated (approaching EOL) - Deprecated *bool `json:"deprecated,omitempty"` - - // Name Human-readable version name - Name *string `json:"name,omitempty"` - - // Version PostgreSQL major version number - Version *string `json:"version,omitempty"` - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest OpenAPISpecThrottled if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON429 = &dest } return response, nil } -// ParseListDatabaseRegionsClientResponse parses an HTTP response from a ListDatabaseRegionsWithResponse call -func ParseListDatabaseRegionsClientResponse(rsp *http.Response) (*ListDatabaseRegionsClientResponse, error) { +// ParseGetOpenAPISpecYAMLClientResponse parses an HTTP response from a GetOpenAPISpecYAMLWithResponse call +func ParseGetOpenAPISpecYAMLClientResponse(rsp *http.Response) (*GetOpenAPISpecYAMLClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListDatabaseRegionsClientResponse{ + response := &GetOpenAPISpecYAMLClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []struct { - // Id Region identifier for API usage - Id *string `json:"id,omitempty"` - - // Name Human-readable region name - Name *string `json:"name,omitempty"` - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest OpenAPISpecThrottled if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "yaml") && rsp.StatusCode == 200: + var dest OpenAPISpecDocument + if err := yaml.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.YAML200 = &dest } return response, nil } -// ParseQueryDatabaseBranchDeleteClientResponse parses an HTTP response from a QueryDatabaseBranchDeleteWithResponse call -func ParseQueryDatabaseBranchDeleteClientResponse(rsp *http.Response) (*QueryDatabaseBranchDeleteClientResponse, error) { +// ParseHeadOpenAPISpecYAMLClientResponse parses an HTTP response from a HeadOpenAPISpecYAMLWithResponse call +func ParseHeadOpenAPISpecYAMLClientResponse(rsp *http.Response) (*HeadOpenAPISpecYAMLClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &QueryDatabaseBranchDeleteClientResponse{ + response := &HeadOpenAPISpecYAMLClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DatabaseQueryResult - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest DatabaseQueryCapExceeded + var dest OpenAPISpecThrottled if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -41037,22 +49677,22 @@ func ParseQueryDatabaseBranchDeleteClientResponse(rsp *http.Response) (*QueryDat return response, nil } -// ParseQueryDatabaseBranchInsertClientResponse parses an HTTP response from a QueryDatabaseBranchInsertWithResponse call -func ParseQueryDatabaseBranchInsertClientResponse(rsp *http.Response) (*QueryDatabaseBranchInsertClientResponse, error) { +// ParseListProjectsClientResponse parses an HTTP response from a ListProjectsWithResponse call +func ParseListProjectsClientResponse(rsp *http.Response) (*ListProjectsClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &QueryDatabaseBranchInsertClientResponse{ + response := &ListProjectsClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DatabaseQueryResult + var dest PaginatedProjects if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -41065,66 +49705,38 @@ func ParseQueryDatabaseBranchInsertClientResponse(rsp *http.Response) (*QueryDat } response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest DatabaseQueryCapExceeded - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest - } return response, nil } -// ParseQueryDatabaseBranchPingClientResponse parses an HTTP response from a QueryDatabaseBranchPingWithResponse call -func ParseQueryDatabaseBranchPingClientResponse(rsp *http.Response) (*QueryDatabaseBranchPingClientResponse, error) { +// ParseCreateProjectClientResponse parses an HTTP response from a CreateProjectWithResponse call +func ParseCreateProjectClientResponse(rsp *http.Response) (*CreateProjectClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &QueryDatabaseBranchPingClientResponse{ + response := &CreateProjectClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DatabaseQueryResult + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Project if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Error @@ -41133,6 +49745,25 @@ func ParseQueryDatabaseBranchPingClientResponse(rsp *http.Response) (*QueryDatab } response.JSON403 = &dest + } + + return response, nil +} + +// ParseDeleteProjectClientResponse parses an HTTP response from a DeleteProjectWithResponse call +func ParseDeleteProjectClientResponse(rsp *http.Response) (*DeleteProjectClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteProjectClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -41140,60 +49771,32 @@ func ParseQueryDatabaseBranchPingClientResponse(rsp *http.Response) (*QueryDatab } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest DatabaseQueryCapExceeded - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest - } return response, nil } -// ParseQueryDatabaseBranchSelectClientResponse parses an HTTP response from a QueryDatabaseBranchSelectWithResponse call -func ParseQueryDatabaseBranchSelectClientResponse(rsp *http.Response) (*QueryDatabaseBranchSelectClientResponse, error) { +// ParseGetProjectClientResponse parses an HTTP response from a GetProjectWithResponse call +func ParseGetProjectClientResponse(rsp *http.Response) (*GetProjectClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &QueryDatabaseBranchSelectClientResponse{ + response := &GetProjectClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DatabaseQueryResult + var dest Project if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -41201,34 +49804,27 @@ func ParseQueryDatabaseBranchSelectClientResponse(rsp *http.Response) (*QueryDat } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest DatabaseQueryCapExceeded - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest - } return response, nil } -// ParseQueryDatabaseBranchUpdateClientResponse parses an HTTP response from a QueryDatabaseBranchUpdateWithResponse call -func ParseQueryDatabaseBranchUpdateClientResponse(rsp *http.Response) (*QueryDatabaseBranchUpdateClientResponse, error) { +// ParseUpdateProjectClientResponse parses an HTTP response from a UpdateProjectWithResponse call +func ParseUpdateProjectClientResponse(rsp *http.Response) (*UpdateProjectClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &QueryDatabaseBranchUpdateClientResponse{ + response := &UpdateProjectClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DatabaseQueryResult + var dest Project if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -41241,13 +49837,6 @@ func ParseQueryDatabaseBranchUpdateClientResponse(rsp *http.Response) (*QueryDat } response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -41262,46 +49851,39 @@ func ParseQueryDatabaseBranchUpdateClientResponse(rsp *http.Response) (*QueryDat } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest DatabaseQueryCapExceeded + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON409 = &dest } return response, nil } -// ParseQueryDatabaseDeleteClientResponse parses an HTTP response from a QueryDatabaseDeleteWithResponse call -func ParseQueryDatabaseDeleteClientResponse(rsp *http.Response) (*QueryDatabaseDeleteClientResponse, error) { +// ParseListProjectAccessTokensClientResponse parses an HTTP response from a ListProjectAccessTokensWithResponse call +func ParseListProjectAccessTokensClientResponse(rsp *http.Response) (*ListProjectAccessTokensClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &QueryDatabaseDeleteClientResponse{ + response := &ListProjectAccessTokensClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DatabaseQueryResult + var dest PaginatedProjectAccessTokens if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -41323,38 +49905,31 @@ func ParseQueryDatabaseDeleteClientResponse(rsp *http.Response) (*QueryDatabaseD } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest DatabaseQueryCapExceeded - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest - } return response, nil } -// ParseQueryDatabaseInsertClientResponse parses an HTTP response from a QueryDatabaseInsertWithResponse call -func ParseQueryDatabaseInsertClientResponse(rsp *http.Response) (*QueryDatabaseInsertClientResponse, error) { +// ParseCreateProjectAccessTokenClientResponse parses an HTTP response from a CreateProjectAccessTokenWithResponse call +func ParseCreateProjectAccessTokenClientResponse(rsp *http.Response) (*CreateProjectAccessTokenClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &QueryDatabaseInsertClientResponse{ + response := &CreateProjectAccessTokenClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DatabaseQueryResult + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest CreatedProjectAccessToken if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Error @@ -41384,39 +49959,46 @@ func ParseQueryDatabaseInsertClientResponse(rsp *http.Response) (*QueryDatabaseI } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest DatabaseQueryCapExceeded + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON409 = &dest } return response, nil } -// ParseQueryDatabasePingClientResponse parses an HTTP response from a QueryDatabasePingWithResponse call -func ParseQueryDatabasePingClientResponse(rsp *http.Response) (*QueryDatabasePingClientResponse, error) { +// ParseListProjectAccessTokensUsageClientResponse parses an HTTP response from a ListProjectAccessTokensUsageWithResponse call +func ParseListProjectAccessTokensUsageClientResponse(rsp *http.Response) (*ListProjectAccessTokensUsageClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &QueryDatabasePingClientResponse{ + response := &ListProjectAccessTokensUsageClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DatabaseQueryResult + var dest []ProjectAccessTokenUsage if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -41438,46 +50020,25 @@ func ParseQueryDatabasePingClientResponse(rsp *http.Response) (*QueryDatabasePin } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest DatabaseQueryCapExceeded - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest - } return response, nil } -// ParseQueryDatabaseSelectClientResponse parses an HTTP response from a QueryDatabaseSelectWithResponse call -func ParseQueryDatabaseSelectClientResponse(rsp *http.Response) (*QueryDatabaseSelectClientResponse, error) { +// ParseRevokeProjectAccessTokenClientResponse parses an HTTP response from a RevokeProjectAccessTokenWithResponse call +func ParseRevokeProjectAccessTokenClientResponse(rsp *http.Response) (*RevokeProjectAccessTokenClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &QueryDatabaseSelectClientResponse{ + response := &RevokeProjectAccessTokenClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DatabaseQueryResult - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -41499,45 +50060,38 @@ func ParseQueryDatabaseSelectClientResponse(rsp *http.Response) (*QueryDatabaseS } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest DatabaseQueryCapExceeded + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON409 = &dest } return response, nil } -// ParseQueryDatabaseUpdateClientResponse parses an HTTP response from a QueryDatabaseUpdateWithResponse call -func ParseQueryDatabaseUpdateClientResponse(rsp *http.Response) (*QueryDatabaseUpdateClientResponse, error) { +// ParseGetProjectAccessTokenClientResponse parses an HTTP response from a GetProjectAccessTokenWithResponse call +func ParseGetProjectAccessTokenClientResponse(rsp *http.Response) (*GetProjectAccessTokenClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &QueryDatabaseUpdateClientResponse{ + response := &GetProjectAccessTokenClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DatabaseQueryResult - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error + var dest ProjectAccessToken if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Error @@ -41560,34 +50114,27 @@ func ParseQueryDatabaseUpdateClientResponse(rsp *http.Response) (*QueryDatabaseU } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest DatabaseQueryCapExceeded - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest - } return response, nil } -// ParseListDeploymentsClientResponse parses an HTTP response from a ListDeploymentsWithResponse call -func ParseListDeploymentsClientResponse(rsp *http.Response) (*ListDeploymentsClientResponse, error) { +// ParseGetProjectAccessTokenUsageClientResponse parses an HTTP response from a GetProjectAccessTokenUsageWithResponse call +func ParseGetProjectAccessTokenUsageClientResponse(rsp *http.Response) (*GetProjectAccessTokenUsageClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListDeploymentsClientResponse{ + response := &GetProjectAccessTokenUsageClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PaginatedProjectDeployments + var dest ProjectAccessTokenUsage if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -41614,27 +50161,27 @@ func ParseListDeploymentsClientResponse(rsp *http.Response) (*ListDeploymentsCli } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON500 = &dest + response.JSON404 = &dest } return response, nil } -// ParseGetDefaultEmailTemplatesClientResponse parses an HTTP response from a GetDefaultEmailTemplatesWithResponse call -func ParseGetDefaultEmailTemplatesClientResponse(rsp *http.Response) (*GetDefaultEmailTemplatesClientResponse, error) { +// ParseListAnonKeysClientResponse parses an HTTP response from a ListAnonKeysWithResponse call +func ParseListAnonKeysClientResponse(rsp *http.Response) (*ListAnonKeysClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDefaultEmailTemplatesClientResponse{ + response := &ListAnonKeysClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -41642,7 +50189,19 @@ func ParseGetDefaultEmailTemplatesClientResponse(rsp *http.Response) (*GetDefaul switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Data *[]EmailTemplate `json:"data,omitempty"` + Data *[]AnonKey `json:"data,omitempty"` + + // HasMore Whether a next page exists. + HasMore *bool `json:"has_more,omitempty"` + + // NextCursor Opaque cursor for the next page (cursor pagination only) + NextCursor *string `json:"next_cursor,omitempty"` + + // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`. + PrevCursor *string `json:"prev_cursor,omitempty"` + + // Total Total number of items matching the query (so the UI can render numbered pages). + Total *int `json:"total,omitempty"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -41654,128 +50213,107 @@ func ParseGetDefaultEmailTemplatesClientResponse(rsp *http.Response) (*GetDefaul return response, nil } -// ParseGetDefaultEmailTemplateClientResponse parses an HTTP response from a GetDefaultEmailTemplateWithResponse call -func ParseGetDefaultEmailTemplateClientResponse(rsp *http.Response) (*GetDefaultEmailTemplateClientResponse, error) { +// ParseCreateAnonKeyClientResponse parses an HTTP response from a CreateAnonKeyWithResponse call +func ParseCreateAnonKeyClientResponse(rsp *http.Response) (*CreateAnonKeyClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDefaultEmailTemplateClientResponse{ + response := &CreateAnonKeyClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest EmailTemplate + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest AnonKey if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest } return response, nil } -// ParseListFunctionRegionsClientResponse parses an HTTP response from a ListFunctionRegionsWithResponse call -func ParseListFunctionRegionsClientResponse(rsp *http.Response) (*ListFunctionRegionsClientResponse, error) { +// ParseRevokeAnonKeyClientResponse parses an HTTP response from a RevokeAnonKeyWithResponse call +func ParseRevokeAnonKeyClientResponse(rsp *http.Response) (*RevokeAnonKeyClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListFunctionRegionsClientResponse{ + response := &RevokeAnonKeyClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []FunctionRegion + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest } return response, nil } -// ParseResolveFunctionForInvocationClientResponse parses an HTTP response from a ResolveFunctionForInvocationWithResponse call -func ParseResolveFunctionForInvocationClientResponse(rsp *http.Response) (*ResolveFunctionForInvocationClientResponse, error) { +// ParseGetAnonKeyClientResponse parses an HTTP response from a GetAnonKeyWithResponse call +func ParseGetAnonKeyClientResponse(rsp *http.Response) (*GetAnonKeyClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ResolveFunctionForInvocationClientResponse{ + response := &GetAnonKeyClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ResolveFunctionResponse + var dest AnonKey if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - } return response, nil } -// ParseListFunctionRuntimesClientResponse parses an HTTP response from a ListFunctionRuntimesWithResponse call -func ParseListFunctionRuntimesClientResponse(rsp *http.Response) (*ListFunctionRuntimesClientResponse, error) { +// ParseRegenerateAnonKeyClientResponse parses an HTTP response from a RegenerateAnonKeyWithResponse call +func ParseRegenerateAnonKeyClientResponse(rsp *http.Response) (*RegenerateAnonKeyClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListFunctionRuntimesClientResponse{ + response := &RegenerateAnonKeyClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest FunctionRuntimesResponse + var dest AnonKey if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -41786,137 +50324,133 @@ func ParseListFunctionRuntimesClientResponse(rsp *http.Response) (*ListFunctionR return response, nil } -// ParseInvokeFunctionClientResponse parses an HTTP response from a InvokeFunctionWithResponse call -func ParseInvokeFunctionClientResponse(rsp *http.Response) (*InvokeFunctionClientResponse, error) { +// ParseSetDefaultAnonKeyClientResponse parses an HTTP response from a SetDefaultAnonKeyWithResponse call +func ParseSetDefaultAnonKeyClientResponse(rsp *http.Response) (*SetDefaultAnonKeyClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &InvokeFunctionClientResponse{ + response := &SetDefaultAnonKeyClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest FunctionInvocationResponse + var dest AnonKey if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON500 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest + } - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest + return response, nil +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest +// ParseGetAuthConfigClientResponse parses an HTTP response from a GetAuthConfigWithResponse call +func ParseGetAuthConfigClientResponse(rsp *http.Response) (*GetAuthConfigClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON503 = &dest + response := &GetAuthConfigClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest FunctionInvocationResponse + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest AuthConfig if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSONDefault = &dest + response.JSON200 = &dest } return response, nil } -// ParseGitConnectCallbackClientResponse parses an HTTP response from a GitConnectCallbackWithResponse call -func ParseGitConnectCallbackClientResponse(rsp *http.Response) (*GitConnectCallbackClientResponse, error) { +// ParseUpdateAuthConfigClientResponse parses an HTTP response from a UpdateAuthConfigWithResponse call +func ParseUpdateAuthConfigClientResponse(rsp *http.Response) (*UpdateAuthConfigClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GitConnectCallbackClientResponse{ + response := &UpdateAuthConfigClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest AuthConfig if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest + } - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: - var dest Error + return response, nil +} + +// ParseTestEmailConfigClientResponse parses an HTTP response from a TestEmailConfigWithResponse call +func ParseTestEmailConfigClientResponse(rsp *http.Response) (*TestEmailConfigClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &TestEmailConfigClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TestEmailResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON503 = &dest + response.JSON200 = &dest } return response, nil } -// ParseHealthCheckClientResponse parses an HTTP response from a HealthCheckWithResponse call -func ParseHealthCheckClientResponse(rsp *http.Response) (*HealthCheckClientResponse, error) { +// ParseRenderDefaultManagedAuthPageClientResponse parses an HTTP response from a RenderDefaultManagedAuthPageWithResponse call +func ParseRenderDefaultManagedAuthPageClientResponse(rsp *http.Response) (*RenderDefaultManagedAuthPageClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &HealthCheckClientResponse{ + response := &RenderDefaultManagedAuthPageClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -41924,155 +50458,146 @@ func ParseHealthCheckClientResponse(rsp *http.Response) (*HealthCheckClientRespo return response, nil } -// ParseCompleteImportConnectClientResponse parses an HTTP response from a CompleteImportConnectWithResponse call -func ParseCompleteImportConnectClientResponse(rsp *http.Response) (*CompleteImportConnectClientResponse, error) { +// ParseGetAuthHostedPageClientResponse parses an HTTP response from a GetAuthHostedPageWithResponse call +func ParseGetAuthHostedPageClientResponse(rsp *http.Response) (*GetAuthHostedPageClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CompleteImportConnectClientResponse{ + response := &GetAuthHostedPageClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest AuthHostedPageResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest + } - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest + return response, nil +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: - var dest Error +// ParseUpdateAuthHostedPageClientResponse parses an HTTP response from a UpdateAuthHostedPageWithResponse call +func ParseUpdateAuthHostedPageClientResponse(rsp *http.Response) (*UpdateAuthHostedPageClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateAuthHostedPageClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest AuthHostedPageResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON503 = &dest + response.JSON200 = &dest } return response, nil } -// ParsePreflightProjectImportClientResponse parses an HTTP response from a PreflightProjectImportWithResponse call -func ParsePreflightProjectImportClientResponse(rsp *http.Response) (*PreflightProjectImportClientResponse, error) { +// ParseHostedLoginCheckEmailClientResponse parses an HTTP response from a HostedLoginCheckEmailWithResponse call +func ParseHostedLoginCheckEmailClientResponse(rsp *http.Response) (*HostedLoginCheckEmailClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PreflightProjectImportClientResponse{ + response := &HostedLoginCheckEmailClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ProjectImportReport + var dest HostedLoginEmailCheckResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest + } - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest + return response, nil +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest +// ParseGetHostedLoginOptionsClientResponse parses an HTTP response from a GetHostedLoginOptionsWithResponse call +func ParseGetHostedLoginOptionsClientResponse(rsp *http.Response) (*GetHostedLoginOptionsClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest + response := &GetHostedLoginOptionsClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Error + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest HostedLoginOptionsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest + } - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest + return response, nil +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON503 = &dest +// ParseRenderManagedAuthPageClientResponse parses an HTTP response from a RenderManagedAuthPageWithResponse call +func ParseRenderManagedAuthPageClientResponse(rsp *http.Response) (*RenderManagedAuthPageClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + response := &RenderManagedAuthPageClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } return response, nil } -// ParseStartProjectImportClientResponse parses an HTTP response from a StartProjectImportWithResponse call -func ParseStartProjectImportClientResponse(rsp *http.Response) (*StartProjectImportClientResponse, error) { +// ParseGetAuthInsightsClientResponse parses an HTTP response from a GetAuthInsightsWithResponse call +func ParseGetAuthInsightsClientResponse(rsp *http.Response) (*GetAuthInsightsClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &StartProjectImportClientResponse{ + response := &GetAuthInsightsClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202: - var dest ProjectImportRun + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest AuthInsightsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON202 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Error @@ -42102,27 +50627,6 @@ func ParseStartProjectImportClientResponse(rsp *http.Response) (*StartProjectImp } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -42130,100 +50634,94 @@ func ParseStartProjectImportClientResponse(rsp *http.Response) (*StartProjectImp } response.JSON500 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON503 = &dest - } return response, nil } -// ParseGetProjectImportRunClientResponse parses an HTTP response from a GetProjectImportRunWithResponse call -func ParseGetProjectImportRunClientResponse(rsp *http.Response) (*GetProjectImportRunClientResponse, error) { +// ParseGetAuthMethodsClientResponse parses an HTTP response from a GetAuthMethodsWithResponse call +func ParseGetAuthMethodsClientResponse(rsp *http.Response) (*GetAuthMethodsClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetProjectImportRunClientResponse{ + response := &GetAuthMethodsClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ProjectImportRun - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err + var dest struct { + Anonymous *struct { + Enabled *bool `json:"enabled,omitempty"` + Method *string `json:"method,omitempty"` + Name *string `json:"name,omitempty"` + } `json:"anonymous,omitempty"` + AvailableMethods *[]string `json:"available_methods,omitempty"` + EmailPassword *struct { + Enabled *bool `json:"enabled,omitempty"` + Method *string `json:"method,omitempty"` + Name *string `json:"name,omitempty"` + } `json:"email_password,omitempty"` + OauthProviders *[]struct { + Enabled *bool `json:"enabled,omitempty"` + Method *string `json:"method,omitempty"` + Name *string `json:"name,omitempty"` + Provider *string `json:"provider,omitempty"` + RedirectUrl *string `json:"redirect_url,omitempty"` + Scopes *[]string `json:"scopes,omitempty"` + } `json:"oauth_providers,omitempty"` } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest + } - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest + return response, nil +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +// ParseConfigureAuthMethodsClientResponse parses an HTTP response from a ConfigureAuthMethodsWithResponse call +func ParseConfigureAuthMethodsClientResponse(rsp *http.Response) (*ConfigureAuthMethodsClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + response := &ConfigureAuthMethodsClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } return response, nil } -// ParseListImportSourcesClientResponse parses an HTTP response from a ListImportSourcesWithResponse call -func ParseListImportSourcesClientResponse(rsp *http.Response) (*ListImportSourcesClientResponse, error) { +// ParseGetAuthPageAppearanceClientResponse parses an HTTP response from a GetAuthPageAppearanceWithResponse call +func ParseGetAuthPageAppearanceClientResponse(rsp *http.Response) (*GetAuthPageAppearanceClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListImportSourcesClientResponse{ + response := &GetAuthPageAppearanceClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ImportSourcesResponse + var dest AuthPageAppearanceResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -42245,20 +50743,6 @@ func ParseListImportSourcesClientResponse(rsp *http.Response) (*ListImportSource } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -42266,39 +50750,25 @@ func ParseListImportSourcesClientResponse(rsp *http.Response) (*ListImportSource } response.JSON500 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON503 = &dest - } return response, nil } -// ParseForceReleaseProjectLockClientResponse parses an HTTP response from a ForceReleaseProjectLockWithResponse call -func ParseForceReleaseProjectLockClientResponse(rsp *http.Response) (*ForceReleaseProjectLockClientResponse, error) { +// ParseDeleteAuthPageThemeClientResponse parses an HTTP response from a DeleteAuthPageThemeWithResponse call +func ParseDeleteAuthPageThemeClientResponse(rsp *http.Response) (*DeleteAuthPageThemeClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ForceReleaseProjectLockClientResponse{ + response := &DeleteAuthPageThemeClientResponse{ Body: bodyBytes, HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest + } + switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -42313,41 +50783,41 @@ func ParseForceReleaseProjectLockClientResponse(rsp *http.Response) (*ForceRelea } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON503 = &dest + response.JSON500 = &dest } return response, nil } -// ParseGetProjectLockClientResponse parses an HTTP response from a GetProjectLockWithResponse call -func ParseGetProjectLockClientResponse(rsp *http.Response) (*GetProjectLockClientResponse, error) { +// ParseUpdateAuthPageThemeClientResponse parses an HTTP response from a UpdateAuthPageThemeWithResponse call +func ParseUpdateAuthPageThemeClientResponse(rsp *http.Response) (*UpdateAuthPageThemeClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetProjectLockClientResponse{ + response := &UpdateAuthPageThemeClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ProjectLockState + var dest UpdateAuthPageThemeRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -42374,34 +50844,34 @@ func ParseGetProjectLockClientResponse(rsp *http.Response) (*GetProjectLockClien } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON503 = &dest + response.JSON500 = &dest } return response, nil } -// ParseReleaseProjectLockClientResponse parses an HTTP response from a ReleaseProjectLockWithResponse call -func ParseReleaseProjectLockClientResponse(rsp *http.Response) (*ReleaseProjectLockClientResponse, error) { +// ParseDeleteAuthPageLayoutClientResponse parses an HTTP response from a DeleteAuthPageLayoutWithResponse call +func ParseDeleteAuthPageLayoutClientResponse(rsp *http.Response) (*DeleteAuthPageLayoutClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ReleaseProjectLockClientResponse{ + response := &DeleteAuthPageLayoutClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -42428,48 +50898,41 @@ func ParseReleaseProjectLockClientResponse(rsp *http.Response) (*ReleaseProjectL } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON503 = &dest + response.JSON500 = &dest } return response, nil } -// ParseRenewProjectLockClientResponse parses an HTTP response from a RenewProjectLockWithResponse call -func ParseRenewProjectLockClientResponse(rsp *http.Response) (*RenewProjectLockClientResponse, error) { +// ParseUpdateAuthPageLayoutClientResponse parses an HTTP response from a UpdateAuthPageLayoutWithResponse call +func ParseUpdateAuthPageLayoutClientResponse(rsp *http.Response) (*UpdateAuthPageLayoutClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &RenewProjectLockClientResponse{ + response := &UpdateAuthPageLayoutClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ProjectLockLease + var dest UpdateAuthPageLayoutRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -42496,52 +50959,61 @@ func ParseRenewProjectLockClientResponse(rsp *http.Response) (*RenewProjectLockC } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON500 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON503 = &dest + } + + return response, nil +} + +// ParseRenderAuthPagePreviewClientResponse parses an HTTP response from a RenderAuthPagePreviewWithResponse call +func ParseRenderAuthPagePreviewClientResponse(rsp *http.Response) (*RenderAuthPagePreviewClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + response := &RenderAuthPagePreviewClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } return response, nil } -// ParseAcquireProjectLockClientResponse parses an HTTP response from a AcquireProjectLockWithResponse call -func ParseAcquireProjectLockClientResponse(rsp *http.Response) (*AcquireProjectLockClientResponse, error) { +// ParsePreviewAuthPageClientResponse parses an HTTP response from a PreviewAuthPageWithResponse call +func ParsePreviewAuthPageClientResponse(rsp *http.Response) (*PreviewAuthPageClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AcquireProjectLockClientResponse{ + response := &PreviewAuthPageClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ProjectLockLease + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PreviewAuthPageResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Error @@ -42564,48 +51036,41 @@ func ParseAcquireProjectLockClientResponse(rsp *http.Response) (*AcquireProjectL } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON503 = &dest + response.JSON500 = &dest } return response, nil } -// ParseListProjectsClientResponse parses an HTTP response from a ListProjectsWithResponse call -func ParseListProjectsClientResponse(rsp *http.Response) (*ListProjectsClientResponse, error) { +// ParseListAuthUsersClientResponse parses an HTTP response from a ListAuthUsersWithResponse call +func ParseListAuthUsersClientResponse(rsp *http.Response) (*ListAuthUsersClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListProjectsClientResponse{ + response := &ListAuthUsersClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PaginatedProjects + var dest PaginatedAuthUsers if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -42623,88 +51088,64 @@ func ParseListProjectsClientResponse(rsp *http.Response) (*ListProjectsClientRes return response, nil } -// ParseCreateProjectClientResponse parses an HTTP response from a CreateProjectWithResponse call -func ParseCreateProjectClientResponse(rsp *http.Response) (*CreateProjectClientResponse, error) { +// ParseDeleteAuthUserClientResponse parses an HTTP response from a DeleteAuthUserWithResponse call +func ParseDeleteAuthUserClientResponse(rsp *http.Response) (*DeleteAuthUserClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateProjectClientResponse{ + response := &DeleteAuthUserClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Project - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest - - } - return response, nil } -// ParseDeleteProjectClientResponse parses an HTTP response from a DeleteProjectWithResponse call -func ParseDeleteProjectClientResponse(rsp *http.Response) (*DeleteProjectClientResponse, error) { +// ParseGetAuthUserClientResponse parses an HTTP response from a GetAuthUserWithResponse call +func ParseGetAuthUserClientResponse(rsp *http.Response) (*GetAuthUserClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteProjectClientResponse{ + response := &GetAuthUserClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest AuthUser if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON200 = &dest } return response, nil } -// ParseGetProjectClientResponse parses an HTTP response from a GetProjectWithResponse call -func ParseGetProjectClientResponse(rsp *http.Response) (*GetProjectClientResponse, error) { +// ParseBanAuthUserClientResponse parses an HTTP response from a BanAuthUserWithResponse call +func ParseBanAuthUserClientResponse(rsp *http.Response) (*BanAuthUserClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetProjectClientResponse{ + response := &BanAuthUserClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Project + var dest BanUserResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -42722,22 +51163,63 @@ func ParseGetProjectClientResponse(rsp *http.Response) (*GetProjectClientRespons return response, nil } -// ParseUpdateProjectClientResponse parses an HTTP response from a UpdateProjectWithResponse call -func ParseUpdateProjectClientResponse(rsp *http.Response) (*UpdateProjectClientResponse, error) { +// ParseDeleteAllUserSessionsClientResponse parses an HTTP response from a DeleteAllUserSessionsWithResponse call +func ParseDeleteAllUserSessionsClientResponse(rsp *http.Response) (*DeleteAllUserSessionsClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateProjectClientResponse{ + response := &DeleteAllUserSessionsClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseListUserSessionsClientResponse parses an HTTP response from a ListUserSessionsWithResponse call +func ParseListUserSessionsClientResponse(rsp *http.Response) (*ListUserSessionsClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListUserSessionsClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Project + var dest struct { + // Data Sessions for this page (cursor pagination only) + Data *[]AuthSession `json:"data,omitempty"` + + // HasMore Whether a further page exists (cursor pagination only) + HasMore *bool `json:"has_more,omitempty"` + + // Limit Number of sessions per page + Limit *int `json:"limit,omitempty"` + + // NextCursor Opaque cursor for the next page (cursor pagination only) + NextCursor *string `json:"next_cursor,omitempty"` + + // Page Current page number + Page *int `json:"page,omitempty"` + + // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`. + PrevCursor *string `json:"prev_cursor,omitempty"` + Sessions *[]AuthSession `json:"sessions,omitempty"` + + // Total Total number of sessions + Total *int `json:"total,omitempty"` + + // TotalPages Total number of pages + TotalPages *int `json:"total_pages,omitempty"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -42750,12 +51232,47 @@ func ParseUpdateProjectClientResponse(rsp *http.Response) (*UpdateProjectClientR } response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Error + } + + return response, nil +} + +// ParseDeleteUserSessionClientResponse parses an HTTP response from a DeleteUserSessionWithResponse call +func ParseDeleteUserSessionClientResponse(rsp *http.Response) (*DeleteUserSessionClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteUserSessionClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseUnbanAuthUserClientResponse parses an HTTP response from a UnbanAuthUserWithResponse call +func ParseUnbanAuthUserClientResponse(rsp *http.Response) (*UnbanAuthUserClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UnbanAuthUserClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UnbanUserResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error @@ -42764,34 +51281,27 @@ func ParseUpdateProjectClientResponse(rsp *http.Response) (*UpdateProjectClientR } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - } return response, nil } -// ParseListProjectAccessTokensClientResponse parses an HTTP response from a ListProjectAccessTokensWithResponse call -func ParseListProjectAccessTokensClientResponse(rsp *http.Response) (*ListProjectAccessTokensClientResponse, error) { +// ParseGetProjectConfigClientResponse parses an HTTP response from a GetProjectConfigWithResponse call +func ParseGetProjectConfigClientResponse(rsp *http.Response) (*GetProjectConfigClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListProjectAccessTokensClientResponse{ + response := &GetProjectConfigClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PaginatedProjectAccessTokens + var dest ProjectConfig if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -42804,45 +51314,52 @@ func ParseListProjectAccessTokensClientResponse(rsp *http.Response) (*ListProjec } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 413: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON413 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "yaml") && rsp.StatusCode == 200: + var dest openapi_types.File + if err := yaml.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.YAML200 = &dest } return response, nil } -// ParseCreateProjectAccessTokenClientResponse parses an HTTP response from a CreateProjectAccessTokenWithResponse call -func ParseCreateProjectAccessTokenClientResponse(rsp *http.Response) (*CreateProjectAccessTokenClientResponse, error) { +// ParseApplyProjectConfigClientResponse parses an HTTP response from a ApplyProjectConfigWithResponse call +func ParseApplyProjectConfigClientResponse(rsp *http.Response) (*ApplyProjectConfigClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateProjectAccessTokenClientResponse{ + response := &ApplyProjectConfigClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest CreatedProjectAccessToken + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ProjectConfigApplyResult if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Error @@ -42858,66 +51375,85 @@ func ParseCreateProjectAccessTokenClientResponse(rsp *http.Response) (*CreatePro } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest ProjectConfigValidationErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON503 = &dest } return response, nil } -// ParseListProjectAccessTokensUsageClientResponse parses an HTTP response from a ListProjectAccessTokensUsageWithResponse call -func ParseListProjectAccessTokensUsageClientResponse(rsp *http.Response) (*ListProjectAccessTokensUsageClientResponse, error) { +// ParseListDatabasesClientResponse parses an HTTP response from a ListDatabasesWithResponse call +func ParseListDatabasesClientResponse(rsp *http.Response) (*ListDatabasesClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListProjectAccessTokensUsageClientResponse{ + response := &ListDatabasesClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []ProjectAccessTokenUsage + var dest PaginatedDatabases if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest + } - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Error + return response, nil +} + +// ParseCreateDatabaseClientResponse parses an HTTP response from a CreateDatabaseWithResponse call +func ParseCreateDatabaseClientResponse(rsp *http.Response) (*CreateDatabaseClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateDatabaseClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Database if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Error @@ -42926,45 +51462,34 @@ func ParseListProjectAccessTokensUsageClientResponse(rsp *http.Response) (*ListP } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - } return response, nil } -// ParseRevokeProjectAccessTokenClientResponse parses an HTTP response from a RevokeProjectAccessTokenWithResponse call -func ParseRevokeProjectAccessTokenClientResponse(rsp *http.Response) (*RevokeProjectAccessTokenClientResponse, error) { +// ParseDeleteDatabaseClientResponse parses an HTTP response from a DeleteDatabaseWithResponse call +func ParseDeleteDatabaseClientResponse(rsp *http.Response) (*DeleteDatabaseClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &RevokeProjectAccessTokenClientResponse{ + response := &DeleteDatabaseClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202: + var dest struct { + Message *string `json:"message,omitempty"` + Status *string `json:"status,omitempty"` } - response.JSON401 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON202 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error @@ -42980,38 +51505,64 @@ func ParseRevokeProjectAccessTokenClientResponse(rsp *http.Response) (*RevokePro } response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetProjectAccessTokenClientResponse parses an HTTP response from a GetProjectAccessTokenWithResponse call -func ParseGetProjectAccessTokenClientResponse(rsp *http.Response) (*GetProjectAccessTokenClientResponse, error) { +// ParseGetDatabaseClientResponse parses an HTTP response from a GetDatabaseWithResponse call +func ParseGetDatabaseClientResponse(rsp *http.Response) (*GetDatabaseClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetProjectAccessTokenClientResponse{ + response := &GetDatabaseClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ProjectAccessToken + var dest Database if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Error + } + + return response, nil +} + +// ParseGetDatabaseBackupScheduleClientResponse parses an HTTP response from a GetDatabaseBackupScheduleWithResponse call +func ParseGetDatabaseBackupScheduleClientResponse(rsp *http.Response) (*GetDatabaseBackupScheduleClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetDatabaseBackupScheduleClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest DatabaseBackupSchedule if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Error @@ -43027,27 +51578,41 @@ func ParseGetProjectAccessTokenClientResponse(rsp *http.Response) (*GetProjectAc } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetProjectAccessTokenUsageClientResponse parses an HTTP response from a GetProjectAccessTokenUsageWithResponse call -func ParseGetProjectAccessTokenUsageClientResponse(rsp *http.Response) (*GetProjectAccessTokenUsageClientResponse, error) { +// ParseUpdateDatabaseBackupScheduleClientResponse parses an HTTP response from a UpdateDatabaseBackupScheduleWithResponse call +func ParseUpdateDatabaseBackupScheduleClientResponse(rsp *http.Response) (*UpdateDatabaseBackupScheduleClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetProjectAccessTokenUsageClientResponse{ + response := &UpdateDatabaseBackupScheduleClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ProjectAccessTokenUsage + var dest DatabaseBackupSchedule if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -43060,112 +51625,135 @@ func ParseGetProjectAccessTokenUsageClientResponse(rsp *http.Response) (*GetProj } response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest } return response, nil } -// ParseListAnonKeysClientResponse parses an HTTP response from a ListAnonKeysWithResponse call -func ParseListAnonKeysClientResponse(rsp *http.Response) (*ListAnonKeysClientResponse, error) { +// ParseListDatabaseBackupsClientResponse parses an HTTP response from a ListDatabaseBackupsWithResponse call +func ParseListDatabaseBackupsClientResponse(rsp *http.Response) (*ListDatabaseBackupsClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListAnonKeysClientResponse{ + response := &ListDatabaseBackupsClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Data *[]AnonKey `json:"data,omitempty"` - - // HasMore Whether a next page exists. - HasMore *bool `json:"has_more,omitempty"` - - // NextCursor Opaque cursor for the next page (cursor pagination only) - NextCursor *string `json:"next_cursor,omitempty"` - - // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`. - PrevCursor *string `json:"prev_cursor,omitempty"` - - // Total Total number of items matching the query (so the UI can render numbered pages). - Total *int `json:"total,omitempty"` - } + var dest DatabaseBackupList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - } - - return response, nil -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest -// ParseCreateAnonKeyClientResponse parses an HTTP response from a CreateAnonKeyWithResponse call -func ParseCreateAnonKeyClientResponse(rsp *http.Response) (*CreateAnonKeyClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest - response := &CreateAnonKeyClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest AnonKey + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON503 = &dest } return response, nil } -// ParseRevokeAnonKeyClientResponse parses an HTTP response from a RevokeAnonKeyWithResponse call -func ParseRevokeAnonKeyClientResponse(rsp *http.Response) (*RevokeAnonKeyClientResponse, error) { +// ParseCreateDatabaseBackupClientResponse parses an HTTP response from a CreateDatabaseBackupWithResponse call +func ParseCreateDatabaseBackupClientResponse(rsp *http.Response) (*CreateDatabaseBackupClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &RevokeAnonKeyClientResponse{ + response := &CreateDatabaseBackupClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest DatabaseBackup + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -43173,149 +51761,196 @@ func ParseRevokeAnonKeyClientResponse(rsp *http.Response) (*RevokeAnonKeyClientR } response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON500 = &dest + response.JSON503 = &dest } return response, nil } -// ParseGetAnonKeyClientResponse parses an HTTP response from a GetAnonKeyWithResponse call -func ParseGetAnonKeyClientResponse(rsp *http.Response) (*GetAnonKeyClientResponse, error) { +// ParseDeleteDatabaseBackupClientResponse parses an HTTP response from a DeleteDatabaseBackupWithResponse call +func ParseDeleteDatabaseBackupClientResponse(rsp *http.Response) (*DeleteDatabaseBackupClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetAnonKeyClientResponse{ + response := &DeleteDatabaseBackupClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AnonKey + var dest struct { + Message string `json:"message"` + Status string `json:"status"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - } - - return response, nil -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest -// ParseRegenerateAnonKeyClientResponse parses an HTTP response from a RegenerateAnonKeyWithResponse call -func ParseRegenerateAnonKeyClientResponse(rsp *http.Response) (*RegenerateAnonKeyClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest - response := &RegenerateAnonKeyClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AnonKey + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON503 = &dest } return response, nil } -// ParseSetDefaultAnonKeyClientResponse parses an HTTP response from a SetDefaultAnonKeyWithResponse call -func ParseSetDefaultAnonKeyClientResponse(rsp *http.Response) (*SetDefaultAnonKeyClientResponse, error) { +// ParseGetDatabaseBackupClientResponse parses an HTTP response from a GetDatabaseBackupWithResponse call +func ParseGetDatabaseBackupClientResponse(rsp *http.Response) (*GetDatabaseBackupClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &SetDefaultAnonKeyClientResponse{ + response := &GetDatabaseBackupClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AnonKey + var dest DatabaseBackup if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON500 = &dest + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest } return response, nil } -// ParseGetAuthConfigClientResponse parses an HTTP response from a GetAuthConfigWithResponse call -func ParseGetAuthConfigClientResponse(rsp *http.Response) (*GetAuthConfigClientResponse, error) { +// ParseListDatabaseBranchesClientResponse parses an HTTP response from a ListDatabaseBranchesWithResponse call +func ParseListDatabaseBranchesClientResponse(rsp *http.Response) (*ListDatabaseBranchesClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetAuthConfigClientResponse{ + response := &ListDatabaseBranchesClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AuthConfig + var dest DatabaseBranchList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseUpdateAuthConfigClientResponse parses an HTTP response from a UpdateAuthConfigWithResponse call -func ParseUpdateAuthConfigClientResponse(rsp *http.Response) (*UpdateAuthConfigClientResponse, error) { +// ParseCreateDatabaseBranchClientResponse parses an HTTP response from a CreateDatabaseBranchWithResponse call +func ParseCreateDatabaseBranchClientResponse(rsp *http.Response) (*CreateDatabaseBranchClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateAuthConfigClientResponse{ + response := &CreateDatabaseBranchClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AuthConfig + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202: + var dest DatabaseBranch if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON202 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Error @@ -43324,189 +51959,279 @@ func ParseUpdateAuthConfigClientResponse(rsp *http.Response) (*UpdateAuthConfigC } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseTestEmailConfigClientResponse parses an HTTP response from a TestEmailConfigWithResponse call -func ParseTestEmailConfigClientResponse(rsp *http.Response) (*TestEmailConfigClientResponse, error) { +// ParseDeleteDatabaseBranchClientResponse parses an HTTP response from a DeleteDatabaseBranchWithResponse call +func ParseDeleteDatabaseBranchClientResponse(rsp *http.Response) (*DeleteDatabaseBranchClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &TestEmailConfigClientResponse{ + response := &DeleteDatabaseBranchClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest TestEmailResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202: + var dest struct { + Message string `json:"message"` + Status string `json:"status"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest - - } + response.JSON202 = &dest - return response, nil -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest -// ParseRenderDefaultManagedAuthPageClientResponse parses an HTTP response from a RenderDefaultManagedAuthPageWithResponse call -func ParseRenderDefaultManagedAuthPageClientResponse(rsp *http.Response) (*RenderDefaultManagedAuthPageClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest - response := &RenderDefaultManagedAuthPageClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, } return response, nil } -// ParseGetAuthHostedPageClientResponse parses an HTTP response from a GetAuthHostedPageWithResponse call -func ParseGetAuthHostedPageClientResponse(rsp *http.Response) (*GetAuthHostedPageClientResponse, error) { +// ParseGetDatabaseBranchClientResponse parses an HTTP response from a GetDatabaseBranchWithResponse call +func ParseGetDatabaseBranchClientResponse(rsp *http.Response) (*GetDatabaseBranchClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetAuthHostedPageClientResponse{ + response := &GetDatabaseBranchClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AuthHostedPageResponse + var dest DatabaseBranch if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseUpdateAuthHostedPageClientResponse parses an HTTP response from a UpdateAuthHostedPageWithResponse call -func ParseUpdateAuthHostedPageClientResponse(rsp *http.Response) (*UpdateAuthHostedPageClientResponse, error) { +// ParseUpdateDatabaseBranchClientResponse parses an HTTP response from a UpdateDatabaseBranchWithResponse call +func ParseUpdateDatabaseBranchClientResponse(rsp *http.Response) (*UpdateDatabaseBranchClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateAuthHostedPageClientResponse{ + response := &UpdateDatabaseBranchClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AuthHostedPageResponse + var dest DatabaseBranch if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseHostedLoginCheckEmailClientResponse parses an HTTP response from a HostedLoginCheckEmailWithResponse call -func ParseHostedLoginCheckEmailClientResponse(rsp *http.Response) (*HostedLoginCheckEmailClientResponse, error) { +// ParseResetDatabaseBranchClientResponse parses an HTTP response from a ResetDatabaseBranchWithResponse call +func ParseResetDatabaseBranchClientResponse(rsp *http.Response) (*ResetDatabaseBranchClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &HostedLoginCheckEmailClientResponse{ + response := &ResetDatabaseBranchClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest HostedLoginEmailCheckResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202: + var dest DatabaseBranch if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON202 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest } return response, nil } -// ParseGetHostedLoginOptionsClientResponse parses an HTTP response from a GetHostedLoginOptionsWithResponse call -func ParseGetHostedLoginOptionsClientResponse(rsp *http.Response) (*GetHostedLoginOptionsClientResponse, error) { +// ParseResetDatabaseBranchPasswordClientResponse parses an HTTP response from a ResetDatabaseBranchPasswordWithResponse call +func ParseResetDatabaseBranchPasswordClientResponse(rsp *http.Response) (*ResetDatabaseBranchPasswordClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetHostedLoginOptionsClientResponse{ + response := &ResetDatabaseBranchPasswordClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest HostedLoginOptionsResponse + var dest DatabaseBranch if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest - return response, nil -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest -// ParseRenderManagedAuthPageClientResponse parses an HTTP response from a RenderManagedAuthPageWithResponse call -func ParseRenderManagedAuthPageClientResponse(rsp *http.Response) (*RenderManagedAuthPageClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest - response := &RenderManagedAuthPageClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, } return response, nil } -// ParseGetAuthInsightsClientResponse parses an HTTP response from a GetAuthInsightsWithResponse call -func ParseGetAuthInsightsClientResponse(rsp *http.Response) (*GetAuthInsightsClientResponse, error) { +// ParseGetProjectDatabaseQueriesClientResponse parses an HTTP response from a GetProjectDatabaseQueriesWithResponse call +func ParseGetProjectDatabaseQueriesClientResponse(rsp *http.Response) (*GetProjectDatabaseQueriesClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetAuthInsightsClientResponse{ + response := &GetProjectDatabaseQueriesClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AuthInsightsResponse + var dest DatabaseQueryPerformanceResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -43552,15 +52277,15 @@ func ParseGetAuthInsightsClientResponse(rsp *http.Response) (*GetAuthInsightsCli return response, nil } -// ParseGetAuthMethodsClientResponse parses an HTTP response from a GetAuthMethodsWithResponse call -func ParseGetAuthMethodsClientResponse(rsp *http.Response) (*GetAuthMethodsClientResponse, error) { +// ParseResetDatabasePasswordClientResponse parses an HTTP response from a ResetDatabasePasswordWithResponse call +func ParseResetDatabasePasswordClientResponse(rsp *http.Response) (*ResetDatabasePasswordClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetAuthMethodsClientResponse{ + response := &ResetDatabasePasswordClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -43568,148 +52293,190 @@ func ParseGetAuthMethodsClientResponse(rsp *http.Response) (*GetAuthMethodsClien switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Anonymous *struct { - Enabled *bool `json:"enabled,omitempty"` - Method *string `json:"method,omitempty"` - Name *string `json:"name,omitempty"` - } `json:"anonymous,omitempty"` - AvailableMethods *[]string `json:"available_methods,omitempty"` - EmailPassword *struct { - Enabled *bool `json:"enabled,omitempty"` - Method *string `json:"method,omitempty"` - Name *string `json:"name,omitempty"` - } `json:"email_password,omitempty"` - OauthProviders *[]struct { - Enabled *bool `json:"enabled,omitempty"` - Method *string `json:"method,omitempty"` - Name *string `json:"name,omitempty"` - Provider *string `json:"provider,omitempty"` - RedirectUrl *string `json:"redirect_url,omitempty"` - Scopes *[]string `json:"scopes,omitempty"` - } `json:"oauth_providers,omitempty"` + // ConnectionString Updated pgproxy connection string using Volcano-managed credentials. + ConnectionString *string `json:"connection_string,omitempty"` + Message *string `json:"message,omitempty"` + + // NewPassword New Volcano-managed client password. Always starts with `vpg_`. + NewPassword *string `json:"new_password,omitempty"` + + // RoleName Volcano-managed per-database client login (also the pgproxy routing username) + RoleName *string `json:"role_name,omitempty"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest - return response, nil -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest -// ParseConfigureAuthMethodsClientResponse parses an HTTP response from a ConfigureAuthMethodsWithResponse call -func ParseConfigureAuthMethodsClientResponse(rsp *http.Response) (*ConfigureAuthMethodsClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest - response := &ConfigureAuthMethodsClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, } return response, nil } -// ParseListAuthUsersClientResponse parses an HTTP response from a ListAuthUsersWithResponse call -func ParseListAuthUsersClientResponse(rsp *http.Response) (*ListAuthUsersClientResponse, error) { +// ParseListDatabaseRestoresClientResponse parses an HTTP response from a ListDatabaseRestoresWithResponse call +func ParseListDatabaseRestoresClientResponse(rsp *http.Response) (*ListDatabaseRestoresClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListAuthUsersClientResponse{ + response := &ListDatabaseRestoresClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PaginatedAuthUsers + var dest DatabaseRestoreList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest - - } + response.JSON403 = &dest - return response, nil -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest -// ParseDeleteAuthUserClientResponse parses an HTTP response from a DeleteAuthUserWithResponse call -func ParseDeleteAuthUserClientResponse(rsp *http.Response) (*DeleteAuthUserClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest - response := &DeleteAuthUserClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, } return response, nil } -// ParseGetAuthUserClientResponse parses an HTTP response from a GetAuthUserWithResponse call -func ParseGetAuthUserClientResponse(rsp *http.Response) (*GetAuthUserClientResponse, error) { +// ParseCreateDatabaseRestoreClientResponse parses an HTTP response from a CreateDatabaseRestoreWithResponse call +func ParseCreateDatabaseRestoreClientResponse(rsp *http.Response) (*CreateDatabaseRestoreClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetAuthUserClientResponse{ + response := &CreateDatabaseRestoreClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AuthUser + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202: + var dest DatabaseRestore + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON202 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON503 = &dest } return response, nil } -// ParseBanAuthUserClientResponse parses an HTTP response from a BanAuthUserWithResponse call -func ParseBanAuthUserClientResponse(rsp *http.Response) (*BanAuthUserClientResponse, error) { +// ParseGetDatabaseRestoreClientResponse parses an HTTP response from a GetDatabaseRestoreWithResponse call +func ParseGetDatabaseRestoreClientResponse(rsp *http.Response) (*GetDatabaseRestoreClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &BanAuthUserClientResponse{ + response := &GetDatabaseRestoreClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest BanUserResponse + var dest DatabaseRestore if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -43717,68 +52484,34 @@ func ParseBanAuthUserClientResponse(rsp *http.Response) (*BanAuthUserClientRespo } response.JSON404 = &dest - } - - return response, nil -} - -// ParseDeleteAllUserSessionsClientResponse parses an HTTP response from a DeleteAllUserSessionsWithResponse call -func ParseDeleteAllUserSessionsClientResponse(rsp *http.Response) (*DeleteAllUserSessionsClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest - response := &DeleteAllUserSessionsClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, } return response, nil } -// ParseListUserSessionsClientResponse parses an HTTP response from a ListUserSessionsWithResponse call -func ParseListUserSessionsClientResponse(rsp *http.Response) (*ListUserSessionsClientResponse, error) { +// ParseGetDatabaseStatsClientResponse parses an HTTP response from a GetDatabaseStatsWithResponse call +func ParseGetDatabaseStatsClientResponse(rsp *http.Response) (*GetDatabaseStatsClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListUserSessionsClientResponse{ + response := &GetDatabaseStatsClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - // Data Sessions for this page (cursor pagination only) - Data *[]AuthSession `json:"data,omitempty"` - - // HasMore Whether a further page exists (cursor pagination only) - HasMore *bool `json:"has_more,omitempty"` - - // Limit Number of sessions per page - Limit *int `json:"limit,omitempty"` - - // NextCursor Opaque cursor for the next page (cursor pagination only) - NextCursor *string `json:"next_cursor,omitempty"` - - // Page Current page number - Page *int `json:"page,omitempty"` - - // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`. - PrevCursor *string `json:"prev_cursor,omitempty"` - Sessions *[]AuthSession `json:"sessions,omitempty"` - - // Total Total number of sessions - Total *int `json:"total,omitempty"` - - // TotalPages Total number of pages - TotalPages *int `json:"total_pages,omitempty"` - } + var dest DatabaseStats if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -43791,130 +52524,135 @@ func ParseListUserSessionsClientResponse(rsp *http.Response) (*ListUserSessionsC } response.JSON400 = &dest - } - - return response, nil -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest -// ParseDeleteUserSessionClientResponse parses an HTTP response from a DeleteUserSessionWithResponse call -func ParseDeleteUserSessionClientResponse(rsp *http.Response) (*DeleteUserSessionClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest - response := &DeleteUserSessionClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, } return response, nil } -// ParseUnbanAuthUserClientResponse parses an HTTP response from a UnbanAuthUserWithResponse call -func ParseUnbanAuthUserClientResponse(rsp *http.Response) (*UnbanAuthUserClientResponse, error) { +// ParseUpdateDatabaseTypeClientResponse parses an HTTP response from a UpdateDatabaseTypeWithResponse call +func ParseUpdateDatabaseTypeClientResponse(rsp *http.Response) (*UpdateDatabaseTypeClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UnbanAuthUserClientResponse{ + response := &UpdateDatabaseTypeClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest UnbanUserResponse + var dest Database if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest } return response, nil } -// ParseGetProjectConfigClientResponse parses an HTTP response from a GetProjectConfigWithResponse call -func ParseGetProjectConfigClientResponse(rsp *http.Response) (*GetProjectConfigClientResponse, error) { +// ParseListProjectDeploymentsClientResponse parses an HTTP response from a ListProjectDeploymentsWithResponse call +func ParseListProjectDeploymentsClientResponse(rsp *http.Response) (*ListProjectDeploymentsClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetProjectConfigClientResponse{ + response := &ListProjectDeploymentsClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ProjectConfig + var dest PaginatedProjectDeployments if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 413: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON413 = &dest + response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "yaml") && rsp.StatusCode == 200: - var dest openapi_types.File - if err := yaml.Unmarshal(bodyBytes, &dest); err != nil { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.YAML200 = &dest + response.JSON500 = &dest } return response, nil } -// ParseApplyProjectConfigClientResponse parses an HTTP response from a ApplyProjectConfigWithResponse call -func ParseApplyProjectConfigClientResponse(rsp *http.Response) (*ApplyProjectConfigClientResponse, error) { +// ParseSummarizeProjectDeploymentsClientResponse parses an HTTP response from a SummarizeProjectDeploymentsWithResponse call +func ParseSummarizeProjectDeploymentsClientResponse(rsp *http.Response) (*SummarizeProjectDeploymentsClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ApplyProjectConfigClientResponse{ + response := &SummarizeProjectDeploymentsClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ProjectConfigApplyResult + var dest ProjectDeploymentSummary if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -43934,121 +52672,160 @@ func ParseApplyProjectConfigClientResponse(rsp *http.Response) (*ApplyProjectCon } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest ProjectConfigValidationErrorResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest + response.JSON500 = &dest } return response, nil } -// ParseListDatabasesClientResponse parses an HTTP response from a ListDatabasesWithResponse call -func ParseListDatabasesClientResponse(rsp *http.Response) (*ListDatabasesClientResponse, error) { +// ParseListProjectCustomDomainsClientResponse parses an HTTP response from a ListProjectCustomDomainsWithResponse call +func ParseListProjectCustomDomainsClientResponse(rsp *http.Response) (*ListProjectCustomDomainsClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListDatabasesClientResponse{ + response := &ListProjectCustomDomainsClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PaginatedDatabases + var dest PaginatedProjectCustomDomains if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } return response, nil } -// ParseCreateDatabaseClientResponse parses an HTTP response from a CreateDatabaseWithResponse call -func ParseCreateDatabaseClientResponse(rsp *http.Response) (*CreateDatabaseClientResponse, error) { +// ParseListDurableFunctionsClientResponse parses an HTTP response from a ListDurableFunctionsWithResponse call +func ParseListDurableFunctionsClientResponse(rsp *http.Response) (*ListDurableFunctionsClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateDatabaseClientResponse{ + response := &ListDurableFunctionsClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Database + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PaginatedDurableFunctions if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest } return response, nil } -// ParseDeleteDatabaseClientResponse parses an HTTP response from a DeleteDatabaseWithResponse call -func ParseDeleteDatabaseClientResponse(rsp *http.Response) (*DeleteDatabaseClientResponse, error) { +// ParseCreateDurableFunctionClientResponse parses an HTTP response from a CreateDurableFunctionWithResponse call +func ParseCreateDurableFunctionClientResponse(rsp *http.Response) (*CreateDurableFunctionClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteDatabaseClientResponse{ + response := &CreateDurableFunctionClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202: - var dest struct { - Message *string `json:"message,omitempty"` - Status *string `json:"status,omitempty"` + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest DurableFunction + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest DurableFunction if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON202 = &dest + response.JSON201 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest Error @@ -44057,65 +52834,72 @@ func ParseDeleteDatabaseClientResponse(rsp *http.Response) (*DeleteDatabaseClien } response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetDatabaseClientResponse parses an HTTP response from a GetDatabaseWithResponse call -func ParseGetDatabaseClientResponse(rsp *http.Response) (*GetDatabaseClientResponse, error) { +// ParseDeleteDurableFunctionClientResponse parses an HTTP response from a DeleteDurableFunctionWithResponse call +func ParseDeleteDurableFunctionClientResponse(rsp *http.Response) (*DeleteDurableFunctionClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDatabaseClientResponse{ + response := &DeleteDurableFunctionClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Database + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON404 = &dest } return response, nil } -// ParseGetDatabaseBackupScheduleClientResponse parses an HTTP response from a GetDatabaseBackupScheduleWithResponse call -func ParseGetDatabaseBackupScheduleClientResponse(rsp *http.Response) (*GetDatabaseBackupScheduleClientResponse, error) { +// ParseGetDurableFunctionClientResponse parses an HTTP response from a GetDurableFunctionWithResponse call +func ParseGetDurableFunctionClientResponse(rsp *http.Response) (*GetDurableFunctionClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDatabaseBackupScheduleClientResponse{ + response := &GetDurableFunctionClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DatabaseBackupSchedule + var dest DurableFunction if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -44123,41 +52907,60 @@ func ParseGetDatabaseBackupScheduleClientResponse(rsp *http.Response) (*GetDatab } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Error + } + + return response, nil +} + +// ParseListDurableFunctionDeploymentsClientResponse parses an HTTP response from a ListDurableFunctionDeploymentsWithResponse call +func ParseListDurableFunctionDeploymentsClientResponse(rsp *http.Response) (*ListDurableFunctionDeploymentsClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListDurableFunctionDeploymentsClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PaginatedFunctionDeployments if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON503 = &dest + response.JSON404 = &dest } return response, nil } -// ParseUpdateDatabaseBackupScheduleClientResponse parses an HTTP response from a UpdateDatabaseBackupScheduleWithResponse call -func ParseUpdateDatabaseBackupScheduleClientResponse(rsp *http.Response) (*UpdateDatabaseBackupScheduleClientResponse, error) { +// ParseListDurableExecutionsClientResponse parses an HTTP response from a ListDurableExecutionsWithResponse call +func ParseListDurableExecutionsClientResponse(rsp *http.Response) (*ListDurableExecutionsClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateDatabaseBackupScheduleClientResponse{ + response := &ListDurableExecutionsClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DatabaseBackupSchedule + var dest PaginatedDurableExecutions if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -44170,13 +52973,6 @@ func ParseUpdateDatabaseBackupScheduleClientResponse(rsp *http.Response) (*Updat } response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -44184,52 +52980,38 @@ func ParseUpdateDatabaseBackupScheduleClientResponse(rsp *http.Response) (*Updat } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON503 = &dest - } return response, nil } -// ParseListDatabaseBackupsClientResponse parses an HTTP response from a ListDatabaseBackupsWithResponse call -func ParseListDatabaseBackupsClientResponse(rsp *http.Response) (*ListDatabaseBackupsClientResponse, error) { +// ParseStartDurableExecutionClientResponse parses an HTTP response from a StartDurableExecutionWithResponse call +func ParseStartDurableExecutionClientResponse(rsp *http.Response) (*StartDurableExecutionClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListDatabaseBackupsClientResponse{ + response := &StartDurableExecutionClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DatabaseBackupList + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202: + var dest DurableExecution if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON202 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error @@ -44245,6 +53027,20 @@ func ParseListDatabaseBackupsClientResponse(rsp *http.Response) (*ListDatabaseBa } response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 413: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON413 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -44257,40 +53053,26 @@ func ParseListDatabaseBackupsClientResponse(rsp *http.Response) (*ListDatabaseBa return response, nil } -// ParseCreateDatabaseBackupClientResponse parses an HTTP response from a CreateDatabaseBackupWithResponse call -func ParseCreateDatabaseBackupClientResponse(rsp *http.Response) (*CreateDatabaseBackupClientResponse, error) { +// ParseGetDurableExecutionClientResponse parses an HTTP response from a GetDurableExecutionWithResponse call +func ParseGetDurableExecutionClientResponse(rsp *http.Response) (*GetDurableExecutionClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateDatabaseBackupClientResponse{ + response := &GetDurableExecutionClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest DatabaseBackup - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Error + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest DurableExecution if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error @@ -44299,13 +53081,6 @@ func ParseCreateDatabaseBackupClientResponse(rsp *http.Response) (*CreateDatabas } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -44318,37 +53093,27 @@ func ParseCreateDatabaseBackupClientResponse(rsp *http.Response) (*CreateDatabas return response, nil } -// ParseDeleteDatabaseBackupClientResponse parses an HTTP response from a DeleteDatabaseBackupWithResponse call -func ParseDeleteDatabaseBackupClientResponse(rsp *http.Response) (*DeleteDatabaseBackupClientResponse, error) { +// ParseStopDurableExecutionClientResponse parses an HTTP response from a StopDurableExecutionWithResponse call +func ParseStopDurableExecutionClientResponse(rsp *http.Response) (*StopDurableExecutionClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteDatabaseBackupClientResponse{ + response := &StopDurableExecutionClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Message string `json:"message"` - Status string `json:"status"` - } + var dest DurableExecution if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -44375,134 +53140,132 @@ func ParseDeleteDatabaseBackupClientResponse(rsp *http.Response) (*DeleteDatabas return response, nil } -// ParseGetDatabaseBackupClientResponse parses an HTTP response from a GetDatabaseBackupWithResponse call -func ParseGetDatabaseBackupClientResponse(rsp *http.Response) (*GetDatabaseBackupClientResponse, error) { +// ParseListDurableFunctionSchedulersClientResponse parses an HTTP response from a ListDurableFunctionSchedulersWithResponse call +func ParseListDurableFunctionSchedulersClientResponse(rsp *http.Response) (*ListDurableFunctionSchedulersClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDatabaseBackupClientResponse{ + response := &ListDurableFunctionSchedulersClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DatabaseBackup + var dest FunctionSchedulerListResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + } + + return response, nil +} + +// ParseCreateDurableFunctionSchedulerClientResponse parses an HTTP response from a CreateDurableFunctionSchedulerWithResponse call +func ParseCreateDurableFunctionSchedulerClientResponse(rsp *http.Response) (*CreateDurableFunctionSchedulerClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateDurableFunctionSchedulerClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest FunctionScheduler + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON503 = &dest + response.JSON404 = &dest } return response, nil } -// ParseListDatabaseBranchesClientResponse parses an HTTP response from a ListDatabaseBranchesWithResponse call -func ParseListDatabaseBranchesClientResponse(rsp *http.Response) (*ListDatabaseBranchesClientResponse, error) { +// ParseDeleteDurableFunctionSchedulerClientResponse parses an HTTP response from a DeleteDurableFunctionSchedulerWithResponse call +func ParseDeleteDurableFunctionSchedulerClientResponse(rsp *http.Response) (*DeleteDurableFunctionSchedulerClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListDatabaseBranchesClientResponse{ + response := &DeleteDurableFunctionSchedulerClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DatabaseBranchList - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON503 = &dest + response.JSON404 = &dest } return response, nil } -// ParseCreateDatabaseBranchClientResponse parses an HTTP response from a CreateDatabaseBranchWithResponse call -func ParseCreateDatabaseBranchClientResponse(rsp *http.Response) (*CreateDatabaseBranchClientResponse, error) { +// ParseGetDurableFunctionSchedulerClientResponse parses an HTTP response from a GetDurableFunctionSchedulerWithResponse call +func ParseGetDurableFunctionSchedulerClientResponse(rsp *http.Response) (*GetDurableFunctionSchedulerClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateDatabaseBranchClientResponse{ + response := &GetDurableFunctionSchedulerClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202: - var dest DatabaseBranch - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON202 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Error + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest FunctionScheduler if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error @@ -44511,128 +53274,99 @@ func ParseCreateDatabaseBranchClientResponse(rsp *http.Response) (*CreateDatabas } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON503 = &dest - } return response, nil } -// ParseDeleteDatabaseBranchClientResponse parses an HTTP response from a DeleteDatabaseBranchWithResponse call -func ParseDeleteDatabaseBranchClientResponse(rsp *http.Response) (*DeleteDatabaseBranchClientResponse, error) { +// ParseUpdateDurableFunctionSchedulerClientResponse parses an HTTP response from a UpdateDurableFunctionSchedulerWithResponse call +func ParseUpdateDurableFunctionSchedulerClientResponse(rsp *http.Response) (*UpdateDurableFunctionSchedulerClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteDatabaseBranchClientResponse{ + response := &UpdateDurableFunctionSchedulerClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202: - var dest struct { - Message string `json:"message"` - Status string `json:"status"` - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest FunctionScheduler if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON202 = &dest + response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON503 = &dest + response.JSON404 = &dest } return response, nil } -// ParseGetDatabaseBranchClientResponse parses an HTTP response from a GetDatabaseBranchWithResponse call -func ParseGetDatabaseBranchClientResponse(rsp *http.Response) (*GetDatabaseBranchClientResponse, error) { +// ParseListEmailTemplatesClientResponse parses an HTTP response from a ListEmailTemplatesWithResponse call +func ParseListEmailTemplatesClientResponse(rsp *http.Response) (*ListEmailTemplatesClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDatabaseBranchClientResponse{ + response := &ListEmailTemplatesClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DatabaseBranch - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err + var dest struct { + Data *[]EmailTemplate `json:"data,omitempty"` } - response.JSON404 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: - var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON503 = &dest + response.JSON200 = &dest } return response, nil } -// ParseUpdateDatabaseBranchClientResponse parses an HTTP response from a UpdateDatabaseBranchWithResponse call -func ParseUpdateDatabaseBranchClientResponse(rsp *http.Response) (*UpdateDatabaseBranchClientResponse, error) { +// ParseCreateEmailTemplateClientResponse parses an HTTP response from a CreateEmailTemplateWithResponse call +func ParseCreateEmailTemplateClientResponse(rsp *http.Response) (*CreateEmailTemplateClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateDatabaseBranchClientResponse{ + response := &CreateEmailTemplateClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DatabaseBranch + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest EmailTemplate if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Error @@ -44641,12 +53375,12 @@ func ParseUpdateDatabaseBranchClientResponse(rsp *http.Response) (*UpdateDatabas } response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest Error @@ -44655,92 +53389,116 @@ func ParseUpdateDatabaseBranchClientResponse(rsp *http.Response) (*UpdateDatabas } response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + } + + return response, nil +} + +// ParseDeleteEmailTemplateClientResponse parses an HTTP response from a DeleteEmailTemplateWithResponse call +func ParseDeleteEmailTemplateClientResponse(rsp *http.Response) (*DeleteEmailTemplateClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteEmailTemplateClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON503 = &dest + response.JSON403 = &dest } return response, nil } -// ParseResetDatabaseBranchClientResponse parses an HTTP response from a ResetDatabaseBranchWithResponse call -func ParseResetDatabaseBranchClientResponse(rsp *http.Response) (*ResetDatabaseBranchClientResponse, error) { +// ParseGetEmailTemplateClientResponse parses an HTTP response from a GetEmailTemplateWithResponse call +func ParseGetEmailTemplateClientResponse(rsp *http.Response) (*GetEmailTemplateClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ResetDatabaseBranchClientResponse{ + response := &GetEmailTemplateClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202: - var dest DatabaseBranch + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest EmailTemplate if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON202 = &dest + response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest + } - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Error + return response, nil +} + +// ParseUpdateEmailTemplateClientResponse parses an HTTP response from a UpdateEmailTemplateWithResponse call +func ParseUpdateEmailTemplateClientResponse(rsp *http.Response) (*UpdateEmailTemplateClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateEmailTemplateClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest EmailTemplate if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON503 = &dest + response.JSON403 = &dest } return response, nil } -// ParseResetDatabaseBranchPasswordClientResponse parses an HTTP response from a ResetDatabaseBranchPasswordWithResponse call -func ParseResetDatabaseBranchPasswordClientResponse(rsp *http.Response) (*ResetDatabaseBranchPasswordClientResponse, error) { +// ParseReplaceFrontendSharedVariablesClientResponse parses an HTTP response from a ReplaceFrontendSharedVariablesWithResponse call +func ParseReplaceFrontendSharedVariablesClientResponse(rsp *http.Response) (*ReplaceFrontendSharedVariablesClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ResetDatabaseBranchPasswordClientResponse{ + response := &ReplaceFrontendSharedVariablesClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DatabaseBranch - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest Error @@ -44749,34 +53507,34 @@ func ParseResetDatabaseBranchPasswordClientResponse(rsp *http.Response) (*ResetD } response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 413: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON503 = &dest + response.JSON413 = &dest } return response, nil } -// ParseGetProjectDatabaseQueriesClientResponse parses an HTTP response from a GetProjectDatabaseQueriesWithResponse call -func ParseGetProjectDatabaseQueriesClientResponse(rsp *http.Response) (*GetProjectDatabaseQueriesClientResponse, error) { +// ParseListFrontendsClientResponse parses an HTTP response from a ListFrontendsWithResponse call +func ParseListFrontendsClientResponse(rsp *http.Response) (*ListFrontendsClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetProjectDatabaseQueriesClientResponse{ + response := &ListFrontendsClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DatabaseQueryPerformanceResponse + var dest PaginatedFrontends if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -44822,37 +53580,34 @@ func ParseGetProjectDatabaseQueriesClientResponse(rsp *http.Response) (*GetProje return response, nil } -// ParseResetDatabasePasswordClientResponse parses an HTTP response from a ResetDatabasePasswordWithResponse call -func ParseResetDatabasePasswordClientResponse(rsp *http.Response) (*ResetDatabasePasswordClientResponse, error) { +// ParseCreateFrontendClientResponse parses an HTTP response from a CreateFrontendWithResponse call +func ParseCreateFrontendClientResponse(rsp *http.Response) (*CreateFrontendClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ResetDatabasePasswordClientResponse{ + response := &CreateFrontendClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - // ConnectionString Updated pgproxy connection string using Volcano-managed credentials. - ConnectionString *string `json:"connection_string,omitempty"` - Message *string `json:"message,omitempty"` - - // NewPassword New Volcano-managed client password. Always starts with `vpg_`. - NewPassword *string `json:"new_password,omitempty"` - - // RoleName Volcano-managed per-database client login (also the pgproxy routing username) - RoleName *string `json:"role_name,omitempty"` - } + var dest Frontend if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Frontend + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -44860,59 +53615,40 @@ func ParseResetDatabasePasswordClientResponse(rsp *http.Response) (*ResetDatabas } response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest - - } - - return response, nil -} - -// ParseListDatabaseRestoresClientResponse parses an HTTP response from a ListDatabaseRestoresWithResponse call -func ParseListDatabaseRestoresClientResponse(rsp *http.Response) (*ListDatabaseRestoresClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ListDatabaseRestoresClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + response.JSON403 = &dest - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DatabaseRestoreList + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest Error @@ -44926,33 +53662,33 @@ func ParseListDatabaseRestoresClientResponse(rsp *http.Response) (*ListDatabaseR return response, nil } -// ParseCreateDatabaseRestoreClientResponse parses an HTTP response from a CreateDatabaseRestoreWithResponse call -func ParseCreateDatabaseRestoreClientResponse(rsp *http.Response) (*CreateDatabaseRestoreClientResponse, error) { +// ParseDeleteFrontendClientResponse parses an HTTP response from a DeleteFrontendWithResponse call +func ParseDeleteFrontendClientResponse(rsp *http.Response) (*DeleteFrontendClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateDatabaseRestoreClientResponse{ + response := &DeleteFrontendClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202: - var dest DatabaseRestore + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON202 = &dest + response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Error @@ -44968,12 +53704,12 @@ func ParseCreateDatabaseRestoreClientResponse(rsp *http.Response) (*CreateDataba } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest Error @@ -44987,27 +53723,41 @@ func ParseCreateDatabaseRestoreClientResponse(rsp *http.Response) (*CreateDataba return response, nil } -// ParseGetDatabaseRestoreClientResponse parses an HTTP response from a GetDatabaseRestoreWithResponse call -func ParseGetDatabaseRestoreClientResponse(rsp *http.Response) (*GetDatabaseRestoreClientResponse, error) { +// ParseGetFrontendClientResponse parses an HTTP response from a GetFrontendWithResponse call +func ParseGetFrontendClientResponse(rsp *http.Response) (*GetFrontendClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDatabaseRestoreClientResponse{ + response := &GetFrontendClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DatabaseRestore + var dest Frontend if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -45022,34 +53772,34 @@ func ParseGetDatabaseRestoreClientResponse(rsp *http.Response) (*GetDatabaseRest } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON503 = &dest + response.JSON500 = &dest } return response, nil } -// ParseGetDatabaseStatsClientResponse parses an HTTP response from a GetDatabaseStatsWithResponse call -func ParseGetDatabaseStatsClientResponse(rsp *http.Response) (*GetDatabaseStatsClientResponse, error) { +// ParseListFrontendDeploymentsClientResponse parses an HTTP response from a ListFrontendDeploymentsWithResponse call +func ParseListFrontendDeploymentsClientResponse(rsp *http.Response) (*ListFrontendDeploymentsClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDatabaseStatsClientResponse{ + response := &ListFrontendDeploymentsClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DatabaseStats + var dest PaginatedFrontendDeployments if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -45062,79 +53812,53 @@ func ParseGetDatabaseStatsClientResponse(rsp *http.Response) (*GetDatabaseStatsC } response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON503 = &dest - - } - - return response, nil -} - -// ParseUpdateDatabaseTypeClientResponse parses an HTTP response from a UpdateDatabaseTypeWithResponse call -func ParseUpdateDatabaseTypeClientResponse(rsp *http.Response) (*UpdateDatabaseTypeClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UpdateDatabaseTypeClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + response.JSON403 = &dest - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Database + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON500 = &dest } return response, nil } -// ParseListProjectDeploymentsClientResponse parses an HTTP response from a ListProjectDeploymentsWithResponse call -func ParseListProjectDeploymentsClientResponse(rsp *http.Response) (*ListProjectDeploymentsClientResponse, error) { +// ParseDeleteFrontendCustomDomainClientResponse parses an HTTP response from a DeleteFrontendCustomDomainWithResponse call +func ParseDeleteFrontendCustomDomainClientResponse(rsp *http.Response) (*DeleteFrontendCustomDomainClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListProjectDeploymentsClientResponse{ + response := &DeleteFrontendCustomDomainClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PaginatedProjectDeployments - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -45156,6 +53880,13 @@ func ParseListProjectDeploymentsClientResponse(rsp *http.Response) (*ListProject } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -45168,22 +53899,22 @@ func ParseListProjectDeploymentsClientResponse(rsp *http.Response) (*ListProject return response, nil } -// ParseSummarizeProjectDeploymentsClientResponse parses an HTTP response from a SummarizeProjectDeploymentsWithResponse call -func ParseSummarizeProjectDeploymentsClientResponse(rsp *http.Response) (*SummarizeProjectDeploymentsClientResponse, error) { +// ParseGetFrontendCustomDomainClientResponse parses an HTTP response from a GetFrontendCustomDomainWithResponse call +func ParseGetFrontendCustomDomainClientResponse(rsp *http.Response) (*GetFrontendCustomDomainClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &SummarizeProjectDeploymentsClientResponse{ + response := &GetFrontendCustomDomainClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ProjectDeploymentSummary + var dest FrontendCustomDomainResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -45210,6 +53941,13 @@ func ParseSummarizeProjectDeploymentsClientResponse(rsp *http.Response) (*Summar } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -45222,27 +53960,34 @@ func ParseSummarizeProjectDeploymentsClientResponse(rsp *http.Response) (*Summar return response, nil } -// ParseListProjectCustomDomainsClientResponse parses an HTTP response from a ListProjectCustomDomainsWithResponse call -func ParseListProjectCustomDomainsClientResponse(rsp *http.Response) (*ListProjectCustomDomainsClientResponse, error) { +// ParseCreateFrontendCustomDomainClientResponse parses an HTTP response from a CreateFrontendCustomDomainWithResponse call +func ParseCreateFrontendCustomDomainClientResponse(rsp *http.Response) (*CreateFrontendCustomDomainClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListProjectCustomDomainsClientResponse{ + response := &CreateFrontendCustomDomainClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PaginatedProjectCustomDomains + var dest FrontendCustomDomainResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest FrontendCustomDomainResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -45264,6 +54009,20 @@ func ParseListProjectCustomDomainsClientResponse(rsp *http.Response) (*ListProje } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -45271,74 +54030,81 @@ func ParseListProjectCustomDomainsClientResponse(rsp *http.Response) (*ListProje } response.JSON500 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseListDurableFunctionsClientResponse parses an HTTP response from a ListDurableFunctionsWithResponse call -func ParseListDurableFunctionsClientResponse(rsp *http.Response) (*ListDurableFunctionsClientResponse, error) { +// ParseListFrontendFunctionRoutesClientResponse parses an HTTP response from a ListFrontendFunctionRoutesWithResponse call +func ParseListFrontendFunctionRoutesClientResponse(rsp *http.Response) (*ListFrontendFunctionRoutesClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListDurableFunctionsClientResponse{ + response := &ListFrontendFunctionRoutesClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PaginatedDurableFunctions + var dest FrontendFunctionRouteList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest } return response, nil } -// ParseCreateDurableFunctionClientResponse parses an HTTP response from a CreateDurableFunctionWithResponse call -func ParseCreateDurableFunctionClientResponse(rsp *http.Response) (*CreateDurableFunctionClientResponse, error) { +// ParseCreateFrontendFunctionRouteClientResponse parses an HTTP response from a CreateFrontendFunctionRouteWithResponse call +func ParseCreateFrontendFunctionRouteClientResponse(rsp *http.Response) (*CreateFrontendFunctionRouteClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateDurableFunctionClientResponse{ + response := &CreateFrontendFunctionRouteClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DurableFunction - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest DurableFunction + var dest FrontendFunctionRoute if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -45351,46 +54117,20 @@ func ParseCreateDurableFunctionClientResponse(rsp *http.Response) (*CreateDurabl } response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON503 = &dest - - } - - return response, nil -} - -// ParseDeleteDurableFunctionClientResponse parses an HTTP response from a DeleteDurableFunctionWithResponse call -func ParseDeleteDurableFunctionClientResponse(rsp *http.Response) (*DeleteDurableFunctionClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteDurableFunctionClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + response.JSON403 = &dest - switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -45398,64 +54138,52 @@ func ParseDeleteDurableFunctionClientResponse(rsp *http.Response) (*DeleteDurabl } response.JSON404 = &dest - } - - return response, nil -} - -// ParseGetDurableFunctionClientResponse parses an HTTP response from a GetDurableFunctionWithResponse call -func ParseGetDurableFunctionClientResponse(rsp *http.Response) (*GetDurableFunctionClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetDurableFunctionClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DurableFunction + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON500 = &dest } return response, nil } -// ParseListDurableFunctionDeploymentsClientResponse parses an HTTP response from a ListDurableFunctionDeploymentsWithResponse call -func ParseListDurableFunctionDeploymentsClientResponse(rsp *http.Response) (*ListDurableFunctionDeploymentsClientResponse, error) { +// ParseDeleteFrontendFunctionRouteClientResponse parses an HTTP response from a DeleteFrontendFunctionRouteWithResponse call +func ParseDeleteFrontendFunctionRouteClientResponse(rsp *http.Response) (*DeleteFrontendFunctionRouteClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListDurableFunctionDeploymentsClientResponse{ + response := &DeleteFrontendFunctionRouteClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PaginatedFunctionDeployments + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error @@ -45464,27 +54192,34 @@ func ParseListDurableFunctionDeploymentsClientResponse(rsp *http.Response) (*Lis } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } return response, nil } -// ParseListDurableExecutionsClientResponse parses an HTTP response from a ListDurableExecutionsWithResponse call -func ParseListDurableExecutionsClientResponse(rsp *http.Response) (*ListDurableExecutionsClientResponse, error) { +// ParseUpdateFrontendFunctionRouteClientResponse parses an HTTP response from a UpdateFrontendFunctionRouteWithResponse call +func ParseUpdateFrontendFunctionRouteClientResponse(rsp *http.Response) (*UpdateFrontendFunctionRouteClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListDurableExecutionsClientResponse{ + response := &UpdateFrontendFunctionRouteClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PaginatedDurableExecutions + var dest FrontendFunctionRoute if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -45497,6 +54232,20 @@ func ParseListDurableExecutionsClientResponse(rsp *http.Response) (*ListDurableE } response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -45504,31 +54253,45 @@ func ParseListDurableExecutionsClientResponse(rsp *http.Response) (*ListDurableE } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } return response, nil } -// ParseStartDurableExecutionClientResponse parses an HTTP response from a StartDurableExecutionWithResponse call -func ParseStartDurableExecutionClientResponse(rsp *http.Response) (*StartDurableExecutionClientResponse, error) { +// ParseRedeployFrontendClientResponse parses an HTTP response from a RedeployFrontendWithResponse call +func ParseRedeployFrontendClientResponse(rsp *http.Response) (*RedeployFrontendClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &StartDurableExecutionClientResponse{ + response := &RedeployFrontendClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202: - var dest DurableExecution + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Frontend if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON202 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Error @@ -45537,33 +54300,40 @@ func ParseStartDurableExecutionClientResponse(rsp *http.Response) (*StartDurable } response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 413: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON413 = &dest + response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest Error @@ -45577,27 +54347,48 @@ func ParseStartDurableExecutionClientResponse(rsp *http.Response) (*StartDurable return response, nil } -// ParseGetDurableExecutionClientResponse parses an HTTP response from a GetDurableExecutionWithResponse call -func ParseGetDurableExecutionClientResponse(rsp *http.Response) (*GetDurableExecutionClientResponse, error) { +// ParseGetFrontendUsageHistoryClientResponse parses an HTTP response from a GetFrontendUsageHistoryWithResponse call +func ParseGetFrontendUsageHistoryClientResponse(rsp *http.Response) (*GetFrontendUsageHistoryClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDurableExecutionClientResponse{ + response := &GetFrontendUsageHistoryClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DurableExecution + var dest FrontendUsageHistoryResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -45605,34 +54396,34 @@ func ParseGetDurableExecutionClientResponse(rsp *http.Response) (*GetDurableExec } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON503 = &dest + response.JSON500 = &dest } return response, nil } -// ParseStopDurableExecutionClientResponse parses an HTTP response from a StopDurableExecutionWithResponse call -func ParseStopDurableExecutionClientResponse(rsp *http.Response) (*StopDurableExecutionClientResponse, error) { +// ParseListFunctionsClientResponse parses an HTTP response from a ListFunctionsWithResponse call +func ParseListFunctionsClientResponse(rsp *http.Response) (*ListFunctionsClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &StopDurableExecutionClientResponse{ + response := &ListFunctionsClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DurableExecution + var dest PaginatedFunctions if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -45645,78 +54436,113 @@ func ParseStopDurableExecutionClientResponse(rsp *http.Response) (*StopDurableEx } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON503 = &dest - } return response, nil } -// ParseListDurableFunctionSchedulersClientResponse parses an HTTP response from a ListDurableFunctionSchedulersWithResponse call -func ParseListDurableFunctionSchedulersClientResponse(rsp *http.Response) (*ListDurableFunctionSchedulersClientResponse, error) { +// ParseCreateFunctionClientResponse parses an HTTP response from a CreateFunctionWithResponse call +func ParseCreateFunctionClientResponse(rsp *http.Response) (*CreateFunctionClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListDurableFunctionSchedulersClientResponse{ + response := &CreateFunctionClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest FunctionSchedulerListResponse + var dest Function if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Function + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest } return response, nil } -// ParseCreateDurableFunctionSchedulerClientResponse parses an HTTP response from a CreateDurableFunctionSchedulerWithResponse call -func ParseCreateDurableFunctionSchedulerClientResponse(rsp *http.Response) (*CreateDurableFunctionSchedulerClientResponse, error) { +// ParseCreateFunctionsBatchClientResponse parses an HTTP response from a CreateFunctionsBatchWithResponse call +func ParseCreateFunctionsBatchClientResponse(rsp *http.Response) (*CreateFunctionsBatchClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateDurableFunctionSchedulerClientResponse{ + response := &CreateFunctionsBatchClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest FunctionScheduler + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202: + var dest BatchFunctionDeployResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON202 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 207: + var dest BatchFunctionDeployResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON207 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Error @@ -45732,27 +54558,41 @@ func ParseCreateDurableFunctionSchedulerClientResponse(rsp *http.Response) (*Cre } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest } return response, nil } -// ParseDeleteDurableFunctionSchedulerClientResponse parses an HTTP response from a DeleteDurableFunctionSchedulerWithResponse call -func ParseDeleteDurableFunctionSchedulerClientResponse(rsp *http.Response) (*DeleteDurableFunctionSchedulerClientResponse, error) { +// ParseDeleteFunctionClientResponse parses an HTTP response from a DeleteFunctionWithResponse call +func ParseDeleteFunctionClientResponse(rsp *http.Response) (*DeleteFunctionClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteDurableFunctionSchedulerClientResponse{ + response := &DeleteFunctionClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -45770,22 +54610,22 @@ func ParseDeleteDurableFunctionSchedulerClientResponse(rsp *http.Response) (*Del return response, nil } -// ParseGetDurableFunctionSchedulerClientResponse parses an HTTP response from a GetDurableFunctionSchedulerWithResponse call -func ParseGetDurableFunctionSchedulerClientResponse(rsp *http.Response) (*GetDurableFunctionSchedulerClientResponse, error) { +// ParseGetFunctionClientResponse parses an HTTP response from a GetFunctionWithResponse call +func ParseGetFunctionClientResponse(rsp *http.Response) (*GetFunctionClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDurableFunctionSchedulerClientResponse{ + response := &GetFunctionClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest FunctionScheduler + var dest Function if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -45803,22 +54643,22 @@ func ParseGetDurableFunctionSchedulerClientResponse(rsp *http.Response) (*GetDur return response, nil } -// ParseUpdateDurableFunctionSchedulerClientResponse parses an HTTP response from a UpdateDurableFunctionSchedulerWithResponse call -func ParseUpdateDurableFunctionSchedulerClientResponse(rsp *http.Response) (*UpdateDurableFunctionSchedulerClientResponse, error) { +// ParseUpdateFunctionClientResponse parses an HTTP response from a UpdateFunctionWithResponse call +func ParseUpdateFunctionClientResponse(rsp *http.Response) (*UpdateFunctionClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateDurableFunctionSchedulerClientResponse{ + response := &UpdateFunctionClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest FunctionScheduler + var dest Function if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -45838,100 +54678,112 @@ func ParseUpdateDurableFunctionSchedulerClientResponse(rsp *http.Response) (*Upd } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + } return response, nil } -// ParseListEmailTemplatesClientResponse parses an HTTP response from a ListEmailTemplatesWithResponse call -func ParseListEmailTemplatesClientResponse(rsp *http.Response) (*ListEmailTemplatesClientResponse, error) { +// ParseListFunctionDeploymentsClientResponse parses an HTTP response from a ListFunctionDeploymentsWithResponse call +func ParseListFunctionDeploymentsClientResponse(rsp *http.Response) (*ListFunctionDeploymentsClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListEmailTemplatesClientResponse{ + response := &ListFunctionDeploymentsClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Data *[]EmailTemplate `json:"data,omitempty"` - } + var dest PaginatedFunctionDeployments if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + } return response, nil } -// ParseCreateEmailTemplateClientResponse parses an HTTP response from a CreateEmailTemplateWithResponse call -func ParseCreateEmailTemplateClientResponse(rsp *http.Response) (*CreateEmailTemplateClientResponse, error) { +// ParseListFunctionSchedulersClientResponse parses an HTTP response from a ListFunctionSchedulersWithResponse call +func ParseListFunctionSchedulersClientResponse(rsp *http.Response) (*ListFunctionSchedulersClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateEmailTemplateClientResponse{ + response := &ListFunctionSchedulersClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest EmailTemplate - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Error + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest FunctionSchedulerListResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON404 = &dest } return response, nil } -// ParseDeleteEmailTemplateClientResponse parses an HTTP response from a DeleteEmailTemplateWithResponse call -func ParseDeleteEmailTemplateClientResponse(rsp *http.Response) (*DeleteEmailTemplateClientResponse, error) { +// ParseCreateFunctionSchedulerClientResponse parses an HTTP response from a CreateFunctionSchedulerWithResponse call +func ParseCreateFunctionSchedulerClientResponse(rsp *http.Response) (*CreateFunctionSchedulerClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteEmailTemplateClientResponse{ + response := &CreateFunctionSchedulerClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest FunctionScheduler + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -45939,112 +54791,65 @@ func ParseDeleteEmailTemplateClientResponse(rsp *http.Response) (*DeleteEmailTem } response.JSON403 = &dest - } - - return response, nil -} - -// ParseGetEmailTemplateClientResponse parses an HTTP response from a GetEmailTemplateWithResponse call -func ParseGetEmailTemplateClientResponse(rsp *http.Response) (*GetEmailTemplateClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetEmailTemplateClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest EmailTemplate + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON404 = &dest } return response, nil } -// ParseUpdateEmailTemplateClientResponse parses an HTTP response from a UpdateEmailTemplateWithResponse call -func ParseUpdateEmailTemplateClientResponse(rsp *http.Response) (*UpdateEmailTemplateClientResponse, error) { +// ParseDeleteFunctionSchedulerClientResponse parses an HTTP response from a DeleteFunctionSchedulerWithResponse call +func ParseDeleteFunctionSchedulerClientResponse(rsp *http.Response) (*DeleteFunctionSchedulerClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateEmailTemplateClientResponse{ + response := &DeleteFunctionSchedulerClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest EmailTemplate - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON404 = &dest } return response, nil } -// ParseListFrontendsClientResponse parses an HTTP response from a ListFrontendsWithResponse call -func ParseListFrontendsClientResponse(rsp *http.Response) (*ListFrontendsClientResponse, error) { +// ParseGetFunctionSchedulerClientResponse parses an HTTP response from a GetFunctionSchedulerWithResponse call +func ParseGetFunctionSchedulerClientResponse(rsp *http.Response) (*GetFunctionSchedulerClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListFrontendsClientResponse{ + response := &GetFunctionSchedulerClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PaginatedFrontends + var dest FunctionScheduler if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -46052,46 +54857,32 @@ func ParseListFrontendsClientResponse(rsp *http.Response) (*ListFrontendsClientR } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - } return response, nil } -// ParseCreateFrontendClientResponse parses an HTTP response from a CreateFrontendWithResponse call -func ParseCreateFrontendClientResponse(rsp *http.Response) (*CreateFrontendClientResponse, error) { +// ParseUpdateFunctionSchedulerClientResponse parses an HTTP response from a UpdateFunctionSchedulerWithResponse call +func ParseUpdateFunctionSchedulerClientResponse(rsp *http.Response) (*UpdateFunctionSchedulerClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateFrontendClientResponse{ + response := &UpdateFunctionSchedulerClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Frontend + var dest FunctionScheduler if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Frontend - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -46099,20 +54890,6 @@ func ParseCreateFrontendClientResponse(rsp *http.Response) (*CreateFrontendClien } response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -46120,53 +54897,25 @@ func ParseCreateFrontendClientResponse(rsp *http.Response) (*CreateFrontendClien } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON503 = &dest - } return response, nil } -// ParseDeleteFrontendClientResponse parses an HTTP response from a DeleteFrontendWithResponse call -func ParseDeleteFrontendClientResponse(rsp *http.Response) (*DeleteFrontendClientResponse, error) { +// ParseDisconnectProjectGitClientResponse parses an HTTP response from a DisconnectProjectGitWithResponse call +func ParseDisconnectProjectGitClientResponse(rsp *http.Response) (*DisconnectProjectGitClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteFrontendClientResponse{ + response := &DisconnectProjectGitClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -46188,53 +54937,46 @@ func ParseDeleteFrontendClientResponse(rsp *http.Response) (*DeleteFrontendClien } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON500 = &dest + response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON503 = &dest + response.JSON500 = &dest } return response, nil } -// ParseGetFrontendClientResponse parses an HTTP response from a GetFrontendWithResponse call -func ParseGetFrontendClientResponse(rsp *http.Response) (*GetFrontendClientResponse, error) { +// ParseGetProjectGitConnectionClientResponse parses an HTTP response from a GetProjectGitConnectionWithResponse call +func ParseGetProjectGitConnectionClientResponse(rsp *http.Response) (*GetProjectGitConnectionClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetFrontendClientResponse{ + response := &GetProjectGitConnectionClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Frontend + var dest ProjectGitConnection if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -46268,22 +55010,22 @@ func ParseGetFrontendClientResponse(rsp *http.Response) (*GetFrontendClientRespo return response, nil } -// ParseListFrontendDeploymentsClientResponse parses an HTTP response from a ListFrontendDeploymentsWithResponse call -func ParseListFrontendDeploymentsClientResponse(rsp *http.Response) (*ListFrontendDeploymentsClientResponse, error) { +// ParseConnectProjectGitClientResponse parses an HTTP response from a ConnectProjectGitWithResponse call +func ParseConnectProjectGitClientResponse(rsp *http.Response) (*ConnectProjectGitClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListFrontendDeploymentsClientResponse{ + response := &ConnectProjectGitClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PaginatedFrontendDeployments + var dest ProjectGitConnection if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -46317,6 +55059,13 @@ func ParseListFrontendDeploymentsClientResponse(rsp *http.Response) (*ListFronte } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -46324,25 +55073,39 @@ func ParseListFrontendDeploymentsClientResponse(rsp *http.Response) (*ListFronte } response.JSON500 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseDeleteFrontendCustomDomainClientResponse parses an HTTP response from a DeleteFrontendCustomDomainWithResponse call -func ParseDeleteFrontendCustomDomainClientResponse(rsp *http.Response) (*DeleteFrontendCustomDomainClientResponse, error) { +// ParseSetProjectGitProductionBranchClientResponse parses an HTTP response from a SetProjectGitProductionBranchWithResponse call +func ParseSetProjectGitProductionBranchClientResponse(rsp *http.Response) (*SetProjectGitProductionBranchClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteFrontendCustomDomainClientResponse{ + response := &SetProjectGitProductionBranchClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ProjectGitConnection + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -46371,6 +55134,13 @@ func ParseDeleteFrontendCustomDomainClientResponse(rsp *http.Response) (*DeleteF } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -46383,34 +55153,27 @@ func ParseDeleteFrontendCustomDomainClientResponse(rsp *http.Response) (*DeleteF return response, nil } -// ParseGetFrontendCustomDomainClientResponse parses an HTTP response from a GetFrontendCustomDomainWithResponse call -func ParseGetFrontendCustomDomainClientResponse(rsp *http.Response) (*GetFrontendCustomDomainClientResponse, error) { +// ParseGetProjectGitDeploySettingsClientResponse parses an HTTP response from a GetProjectGitDeploySettingsWithResponse call +func ParseGetProjectGitDeploySettingsClientResponse(rsp *http.Response) (*GetProjectGitDeploySettingsClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetFrontendCustomDomainClientResponse{ + response := &GetProjectGitDeploySettingsClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest FrontendCustomDomainResponse + var dest ProjectGitDeploySettings if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -46444,34 +55207,27 @@ func ParseGetFrontendCustomDomainClientResponse(rsp *http.Response) (*GetFronten return response, nil } -// ParseCreateFrontendCustomDomainClientResponse parses an HTTP response from a CreateFrontendCustomDomainWithResponse call -func ParseCreateFrontendCustomDomainClientResponse(rsp *http.Response) (*CreateFrontendCustomDomainClientResponse, error) { +// ParseUpdateProjectGitDeploySettingsClientResponse parses an HTTP response from a UpdateProjectGitDeploySettingsWithResponse call +func ParseUpdateProjectGitDeploySettingsClientResponse(rsp *http.Response) (*UpdateProjectGitDeploySettingsClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateFrontendCustomDomainClientResponse{ + response := &UpdateProjectGitDeploySettingsClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest FrontendCustomDomainResponse + var dest ProjectGitDeploySettings if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest FrontendCustomDomainResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -46514,46 +55270,32 @@ func ParseCreateFrontendCustomDomainClientResponse(rsp *http.Response) (*CreateF } response.JSON500 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON503 = &dest - } return response, nil } -// ParseRedeployFrontendClientResponse parses an HTTP response from a RedeployFrontendWithResponse call -func ParseRedeployFrontendClientResponse(rsp *http.Response) (*RedeployFrontendClientResponse, error) { +// ParseGetProjectHealthClientResponse parses an HTTP response from a GetProjectHealthWithResponse call +func ParseGetProjectHealthClientResponse(rsp *http.Response) (*GetProjectHealthClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &RedeployFrontendClientResponse{ + response := &GetProjectHealthClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Frontend + var dest ProjectHealthResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -46575,13 +55317,6 @@ func ParseRedeployFrontendClientResponse(rsp *http.Response) (*RedeployFrontendC } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -46589,100 +55324,79 @@ func ParseRedeployFrontendClientResponse(rsp *http.Response) (*RedeployFrontendC } response.JSON500 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON503 = &dest - } return response, nil } -// ParseGetFrontendUsageHistoryClientResponse parses an HTTP response from a GetFrontendUsageHistoryWithResponse call -func ParseGetFrontendUsageHistoryClientResponse(rsp *http.Response) (*GetFrontendUsageHistoryClientResponse, error) { +// ParseDeleteProjectLogoClientResponse parses an HTTP response from a DeleteProjectLogoWithResponse call +func ParseDeleteProjectLogoClientResponse(rsp *http.Response) (*DeleteProjectLogoClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetFrontendUsageHistoryClientResponse{ + response := &DeleteProjectLogoClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest FrontendUsageHistoryResponse + var dest Project if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON500 = &dest + response.JSON503 = &dest } return response, nil } -// ParseListFunctionsClientResponse parses an HTTP response from a ListFunctionsWithResponse call -func ParseListFunctionsClientResponse(rsp *http.Response) (*ListFunctionsClientResponse, error) { +// ParseGetProjectLogoClientResponse parses an HTTP response from a GetProjectLogoWithResponse call +func ParseGetProjectLogoClientResponse(rsp *http.Response) (*GetProjectLogoClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListFunctionsClientResponse{ + response := &GetProjectLogoClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PaginatedFunctions - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -46695,34 +55409,27 @@ func ParseListFunctionsClientResponse(rsp *http.Response) (*ListFunctionsClientR return response, nil } -// ParseCreateFunctionClientResponse parses an HTTP response from a CreateFunctionWithResponse call -func ParseCreateFunctionClientResponse(rsp *http.Response) (*CreateFunctionClientResponse, error) { +// ParseUploadProjectLogoClientResponse parses an HTTP response from a UploadProjectLogoWithResponse call +func ParseUploadProjectLogoClientResponse(rsp *http.Response) (*UploadProjectLogoClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateFunctionClientResponse{ + response := &UploadProjectLogoClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Function + var dest Project if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Function - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -46737,6 +55444,13 @@ func ParseCreateFunctionClientResponse(rsp *http.Response) (*CreateFunctionClien } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -46744,72 +55458,60 @@ func ParseCreateFunctionClientResponse(rsp *http.Response) (*CreateFunctionClien } response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON500 = &dest + response.JSON503 = &dest } return response, nil } -// ParseCreateFunctionsBatchClientResponse parses an HTTP response from a CreateFunctionsBatchWithResponse call -func ParseCreateFunctionsBatchClientResponse(rsp *http.Response) (*CreateFunctionsBatchClientResponse, error) { +// ParseGetProjectLogActivityClientResponse parses an HTTP response from a GetProjectLogActivityWithResponse call +func ParseGetProjectLogActivityClientResponse(rsp *http.Response) (*GetProjectLogActivityClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateFunctionsBatchClientResponse{ + response := &GetProjectLogActivityClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202: - var dest BatchFunctionDeployResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest LogActivityResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON202 = &dest + response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 207: - var dest BatchFunctionDeployResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON207 = &dest + response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest - - } - - return response, nil -} - -// ParseDeleteFunctionClientResponse parses an HTTP response from a DeleteFunctionWithResponse call -func ParseDeleteFunctionClientResponse(rsp *http.Response) (*DeleteFunctionClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + response.JSON401 = &dest - response := &DeleteFunctionClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest - switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -46822,27 +55524,48 @@ func ParseDeleteFunctionClientResponse(rsp *http.Response) (*DeleteFunctionClien return response, nil } -// ParseGetFunctionClientResponse parses an HTTP response from a GetFunctionWithResponse call -func ParseGetFunctionClientResponse(rsp *http.Response) (*GetFunctionClientResponse, error) { +// ParseSearchProjectLogsClientResponse parses an HTTP response from a SearchProjectLogsWithResponse call +func ParseSearchProjectLogsClientResponse(rsp *http.Response) (*SearchProjectLogsClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetFunctionClientResponse{ + response := &SearchProjectLogsClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Function + var dest LogSearchResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -46855,33 +55578,40 @@ func ParseGetFunctionClientResponse(rsp *http.Response) (*GetFunctionClientRespo return response, nil } -// ParseUpdateFunctionClientResponse parses an HTTP response from a UpdateFunctionWithResponse call -func ParseUpdateFunctionClientResponse(rsp *http.Response) (*UpdateFunctionClientResponse, error) { +// ParseStreamProjectLogsClientResponse parses an HTTP response from a StreamProjectLogsWithResponse call +func ParseStreamProjectLogsClientResponse(rsp *http.Response) (*StreamProjectLogsClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateFunctionClientResponse{ + response := &StreamProjectLogsClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Function + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error @@ -46890,32 +55620,60 @@ func ParseUpdateFunctionClientResponse(rsp *http.Response) (*UpdateFunctionClien } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } return response, nil } -// ParseListFunctionDeploymentsClientResponse parses an HTTP response from a ListFunctionDeploymentsWithResponse call -func ParseListFunctionDeploymentsClientResponse(rsp *http.Response) (*ListFunctionDeploymentsClientResponse, error) { +// ParseQueryProjectMetricsClientResponse parses an HTTP response from a QueryProjectMetricsWithResponse call +func ParseQueryProjectMetricsClientResponse(rsp *http.Response) (*QueryProjectMetricsClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListFunctionDeploymentsClientResponse{ + response := &QueryProjectMetricsClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PaginatedFunctionDeployments + var dest ProjectMetricsQueryResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -46923,27 +55681,43 @@ func ParseListFunctionDeploymentsClientResponse(rsp *http.Response) (*ListFuncti } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseListFunctionSchedulersClientResponse parses an HTTP response from a ListFunctionSchedulersWithResponse call -func ParseListFunctionSchedulersClientResponse(rsp *http.Response) (*ListFunctionSchedulersClientResponse, error) { +// ParseListOAuthConfigsClientResponse parses an HTTP response from a ListOAuthConfigsWithResponse call +func ParseListOAuthConfigsClientResponse(rsp *http.Response) (*ListOAuthConfigsClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListFunctionSchedulersClientResponse{ + response := &ListOAuthConfigsClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest FunctionSchedulerListResponse + var dest struct { + Configs *[]OAuthConfig `json:"configs,omitempty"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -46954,48 +55728,41 @@ func ParseListFunctionSchedulersClientResponse(rsp *http.Response) (*ListFunctio return response, nil } -// ParseCreateFunctionSchedulerClientResponse parses an HTTP response from a CreateFunctionSchedulerWithResponse call -func ParseCreateFunctionSchedulerClientResponse(rsp *http.Response) (*CreateFunctionSchedulerClientResponse, error) { +// ParseCreateOAuthConfigClientResponse parses an HTTP response from a CreateOAuthConfigWithResponse call +func ParseCreateOAuthConfigClientResponse(rsp *http.Response) (*CreateOAuthConfigClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateFunctionSchedulerClientResponse{ + response := &CreateOAuthConfigClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest FunctionScheduler + var dest OAuthConfig if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - } return response, nil } -// ParseDeleteFunctionSchedulerClientResponse parses an HTTP response from a DeleteFunctionSchedulerWithResponse call -func ParseDeleteFunctionSchedulerClientResponse(rsp *http.Response) (*DeleteFunctionSchedulerClientResponse, error) { +// ParseDeleteOAuthConfigClientResponse parses an HTTP response from a DeleteOAuthConfigWithResponse call +func ParseDeleteOAuthConfigClientResponse(rsp *http.Response) (*DeleteOAuthConfigClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteFunctionSchedulerClientResponse{ + response := &DeleteOAuthConfigClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -47003,22 +55770,22 @@ func ParseDeleteFunctionSchedulerClientResponse(rsp *http.Response) (*DeleteFunc return response, nil } -// ParseGetFunctionSchedulerClientResponse parses an HTTP response from a GetFunctionSchedulerWithResponse call -func ParseGetFunctionSchedulerClientResponse(rsp *http.Response) (*GetFunctionSchedulerClientResponse, error) { +// ParseGetOAuthConfigClientResponse parses an HTTP response from a GetOAuthConfigWithResponse call +func ParseGetOAuthConfigClientResponse(rsp *http.Response) (*GetOAuthConfigClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetFunctionSchedulerClientResponse{ + response := &GetOAuthConfigClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest FunctionScheduler + var dest OAuthConfig if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -47029,22 +55796,22 @@ func ParseGetFunctionSchedulerClientResponse(rsp *http.Response) (*GetFunctionSc return response, nil } -// ParseUpdateFunctionSchedulerClientResponse parses an HTTP response from a UpdateFunctionSchedulerWithResponse call -func ParseUpdateFunctionSchedulerClientResponse(rsp *http.Response) (*UpdateFunctionSchedulerClientResponse, error) { +// ParseUpdateOAuthConfigClientResponse parses an HTTP response from a UpdateOAuthConfigWithResponse call +func ParseUpdateOAuthConfigClientResponse(rsp *http.Response) (*UpdateOAuthConfigClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateFunctionSchedulerClientResponse{ + response := &UpdateOAuthConfigClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest FunctionScheduler + var dest OAuthConfig if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -47055,69 +55822,54 @@ func ParseUpdateFunctionSchedulerClientResponse(rsp *http.Response) (*UpdateFunc return response, nil } -// ParseDisconnectProjectGitClientResponse parses an HTTP response from a DisconnectProjectGitWithResponse call -func ParseDisconnectProjectGitClientResponse(rsp *http.Response) (*DisconnectProjectGitClientResponse, error) { +// ParseListAvailableOAuthProvidersClientResponse parses an HTTP response from a ListAvailableOAuthProvidersWithResponse call +func ParseListAvailableOAuthProvidersClientResponse(rsp *http.Response) (*ListAvailableOAuthProvidersClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DisconnectProjectGitClientResponse{ + response := &ListAvailableOAuthProvidersClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Providers *[]struct { + DefaultScopes *[]string `json:"default_scopes,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + } `json:"providers,omitempty"` } - response.JSON404 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON500 = &dest + response.JSON200 = &dest } return response, nil } -// ParseGetProjectGitConnectionClientResponse parses an HTTP response from a GetProjectGitConnectionWithResponse call -func ParseGetProjectGitConnectionClientResponse(rsp *http.Response) (*GetProjectGitConnectionClientResponse, error) { +// ParseGetRealtimeConfigClientResponse parses an HTTP response from a GetRealtimeConfigWithResponse call +func ParseGetRealtimeConfigClientResponse(rsp *http.Response) (*GetRealtimeConfigClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetProjectGitConnectionClientResponse{ + response := &GetRealtimeConfigClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ProjectGitConnection + var dest RealtimeConfig if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -47130,13 +55882,6 @@ func ParseGetProjectGitConnectionClientResponse(rsp *http.Response) (*GetProject } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -47144,34 +55889,27 @@ func ParseGetProjectGitConnectionClientResponse(rsp *http.Response) (*GetProject } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - } return response, nil } -// ParseConnectProjectGitClientResponse parses an HTTP response from a ConnectProjectGitWithResponse call -func ParseConnectProjectGitClientResponse(rsp *http.Response) (*ConnectProjectGitClientResponse, error) { +// ParseUpdateRealtimeConfigClientResponse parses an HTTP response from a UpdateRealtimeConfigWithResponse call +func ParseUpdateRealtimeConfigClientResponse(rsp *http.Response) (*UpdateRealtimeConfigClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ConnectProjectGitClientResponse{ + response := &UpdateRealtimeConfigClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ProjectGitConnection + var dest RealtimeConfig if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -47191,459 +55929,494 @@ func ParseConnectProjectGitClientResponse(rsp *http.Response) (*ConnectProjectGi } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest + } - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest + return response, nil +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest Error +// ParseGetRealtimeStatsClientResponse parses an HTTP response from a GetRealtimeStatsWithResponse call +func ParseGetRealtimeStatsClientResponse(rsp *http.Response) (*GetRealtimeStatsClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetRealtimeStatsClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest RealtimeStats if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON500 = &dest + response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON503 = &dest + response.JSON401 = &dest } return response, nil } -// ParseSetProjectGitProductionBranchClientResponse parses an HTTP response from a SetProjectGitProductionBranchWithResponse call -func ParseSetProjectGitProductionBranchClientResponse(rsp *http.Response) (*SetProjectGitProductionBranchClientResponse, error) { +// ParseExecuteSandboxClientResponse parses an HTTP response from a ExecuteSandboxWithResponse call +func ParseExecuteSandboxClientResponse(rsp *http.Response) (*ExecuteSandboxClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &SetProjectGitProductionBranchClientResponse{ + response := &ExecuteSandboxClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ProjectGitConnection + var dest SandboxExecutionResult if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSONDefault = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest + } - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest + return response, nil +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error +// ParseListSandboxSessionsClientResponse parses an HTTP response from a ListSandboxSessionsWithResponse call +func ParseListSandboxSessionsClientResponse(rsp *http.Response) (*ListSandboxSessionsClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListSandboxSessionsClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SandboxSessionPage if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON500 = &dest + response.JSONDefault = &dest } return response, nil } -// ParseCreateProjectGitRepositoryClientResponse parses an HTTP response from a CreateProjectGitRepositoryWithResponse call -func ParseCreateProjectGitRepositoryClientResponse(rsp *http.Response) (*CreateProjectGitRepositoryClientResponse, error) { +// ParseCreateSandboxSessionClientResponse parses an HTTP response from a CreateSandboxSessionWithResponse call +func ParseCreateSandboxSessionClientResponse(rsp *http.Response) (*CreateSandboxSessionClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateProjectGitRepositoryClientResponse{ + response := &CreateSandboxSessionClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest CreatedProjectGitConnection + var dest SandboxSession if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSONDefault = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest + } - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest + return response, nil +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest +// ParseListSandboxesClientResponse parses an HTTP response from a ListSandboxesWithResponse call +func ParseListSandboxesClientResponse(rsp *http.Response) (*ListSandboxesClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest + response := &ListSandboxesClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest Error + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SandboxTemplatePage if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON500 = &dest + response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON503 = &dest + response.JSONDefault = &dest } return response, nil } -// ParseGetProjectGitDeploySettingsClientResponse parses an HTTP response from a GetProjectGitDeploySettingsWithResponse call -func ParseGetProjectGitDeploySettingsClientResponse(rsp *http.Response) (*GetProjectGitDeploySettingsClientResponse, error) { +// ParseCreateSandboxClientResponse parses an HTTP response from a CreateSandboxWithResponse call +func ParseCreateSandboxClientResponse(rsp *http.Response) (*CreateSandboxClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetProjectGitDeploySettingsClientResponse{ + response := &CreateSandboxClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ProjectGitDeploySettings + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest SandboxTemplate if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSONDefault = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest + } - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest + return response, nil +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: +// ParseDeleteSandboxClientResponse parses an HTTP response from a DeleteSandboxWithResponse call +func ParseDeleteSandboxClientResponse(rsp *http.Response) (*DeleteSandboxClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteSandboxClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON500 = &dest + response.JSONDefault = &dest } return response, nil } -// ParseUpdateProjectGitDeploySettingsClientResponse parses an HTTP response from a UpdateProjectGitDeploySettingsWithResponse call -func ParseUpdateProjectGitDeploySettingsClientResponse(rsp *http.Response) (*UpdateProjectGitDeploySettingsClientResponse, error) { +// ParseGetSandboxClientResponse parses an HTTP response from a GetSandboxWithResponse call +func ParseGetSandboxClientResponse(rsp *http.Response) (*GetSandboxClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateProjectGitDeploySettingsClientResponse{ + response := &GetSandboxClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ProjectGitDeploySettings + var dest SandboxTemplate if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSONDefault = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest + } - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest + return response, nil +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error +// ParseUpdateSandboxClientResponse parses an HTTP response from a UpdateSandboxWithResponse call +func ParseUpdateSandboxClientResponse(rsp *http.Response) (*UpdateSandboxClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateSandboxClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SandboxTemplate if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON500 = &dest + response.JSONDefault = &dest } return response, nil } -// ParseGetProjectHealthClientResponse parses an HTTP response from a GetProjectHealthWithResponse call -func ParseGetProjectHealthClientResponse(rsp *http.Response) (*GetProjectHealthClientResponse, error) { +// ParseListSandboxDeploymentsClientResponse parses an HTTP response from a ListSandboxDeploymentsWithResponse call +func ParseListSandboxDeploymentsClientResponse(rsp *http.Response) (*ListSandboxDeploymentsClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetProjectHealthClientResponse{ + response := &ListSandboxDeploymentsClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ProjectHealthResponse + var dest SandboxDeploymentPage if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSONDefault = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest + } - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest + return response, nil +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest Error +// ParseListProjectSchedulersClientResponse parses an HTTP response from a ListProjectSchedulersWithResponse call +func ParseListProjectSchedulersClientResponse(rsp *http.Response) (*ListProjectSchedulersClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListProjectSchedulersClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest FunctionSchedulerListResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON500 = &dest + response.JSON200 = &dest } return response, nil } -// ParseDeleteProjectLogoClientResponse parses an HTTP response from a DeleteProjectLogoWithResponse call -func ParseDeleteProjectLogoClientResponse(rsp *http.Response) (*DeleteProjectLogoClientResponse, error) { +// ParseListServiceKeysClientResponse parses an HTTP response from a ListServiceKeysWithResponse call +func ParseListServiceKeysClientResponse(rsp *http.Response) (*ListServiceKeysClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteProjectLogoClientResponse{ + response := &ListServiceKeysClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Project + var dest PaginatedServiceKeys if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest + } - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest + return response, nil +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest +// ParseCreateServiceKeyClientResponse parses an HTTP response from a CreateServiceKeyWithResponse call +func ParseCreateServiceKeyClientResponse(rsp *http.Response) (*CreateServiceKeyClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: - var dest Error + response := &CreateServiceKeyClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ServiceKey if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON503 = &dest + response.JSON201 = &dest } return response, nil } -// ParseGetProjectLogoClientResponse parses an HTTP response from a GetProjectLogoWithResponse call -func ParseGetProjectLogoClientResponse(rsp *http.Response) (*GetProjectLogoClientResponse, error) { +// ParseDeleteServiceKeyClientResponse parses an HTTP response from a DeleteServiceKeyWithResponse call +func ParseDeleteServiceKeyClientResponse(rsp *http.Response) (*DeleteServiceKeyClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetProjectLogoClientResponse{ + response := &DeleteServiceKeyClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetServiceKeyClientResponse parses an HTTP response from a GetServiceKeyWithResponse call +func ParseGetServiceKeyClientResponse(rsp *http.Response) (*GetServiceKeyClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetServiceKeyClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ServiceKey if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON200 = &dest } return response, nil } -// ParseUploadProjectLogoClientResponse parses an HTTP response from a UploadProjectLogoWithResponse call -func ParseUploadProjectLogoClientResponse(rsp *http.Response) (*UploadProjectLogoClientResponse, error) { +// ParseRegenerateServiceKeyClientResponse parses an HTTP response from a RegenerateServiceKeyWithResponse call +func ParseRegenerateServiceKeyClientResponse(rsp *http.Response) (*RegenerateServiceKeyClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UploadProjectLogoClientResponse{ + response := &RegenerateServiceKeyClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Project + var dest ServiceKey if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + } + + return response, nil +} + +// ParseReplaceSharedVariablesClientResponse parses an HTTP response from a ReplaceSharedVariablesWithResponse call +func ParseReplaceSharedVariablesClientResponse(rsp *http.Response) (*ReplaceSharedVariablesClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ReplaceSharedVariablesClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -47651,26 +56424,19 @@ func ParseUploadProjectLogoClientResponse(rsp *http.Response) (*UploadProjectLog } response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 413: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON413 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest Error @@ -47684,88 +56450,88 @@ func ParseUploadProjectLogoClientResponse(rsp *http.Response) (*UploadProjectLog return response, nil } -// ParseGetProjectLogActivityClientResponse parses an HTTP response from a GetProjectLogActivityWithResponse call -func ParseGetProjectLogActivityClientResponse(rsp *http.Response) (*GetProjectLogActivityClientResponse, error) { +// ParseCancelProjectSourceExportClientResponse parses an HTTP response from a CancelProjectSourceExportWithResponse call +func ParseCancelProjectSourceExportClientResponse(rsp *http.Response) (*CancelProjectSourceExportClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetProjectLogActivityClientResponse{ + response := &CancelProjectSourceExportClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest LogActivityResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON500 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 501: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON501 = &dest } return response, nil } -// ParseSearchProjectLogsClientResponse parses an HTTP response from a SearchProjectLogsWithResponse call -func ParseSearchProjectLogsClientResponse(rsp *http.Response) (*SearchProjectLogsClientResponse, error) { +// ParseGetProjectSourceExportClientResponse parses an HTTP response from a GetProjectSourceExportWithResponse call +func ParseGetProjectSourceExportClientResponse(rsp *http.Response) (*GetProjectSourceExportClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &SearchProjectLogsClientResponse{ + response := &GetProjectSourceExportClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest LogSearchResponse + var dest ProjectSourceExportState if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -47787,25 +56553,46 @@ func ParseSearchProjectLogsClientResponse(rsp *http.Response) (*SearchProjectLog } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 501: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON501 = &dest + } return response, nil } -// ParseStreamProjectLogsClientResponse parses an HTTP response from a StreamProjectLogsWithResponse call -func ParseStreamProjectLogsClientResponse(rsp *http.Response) (*StreamProjectLogsClientResponse, error) { +// ParseExportProjectSourceClientResponse parses an HTTP response from a ExportProjectSourceWithResponse call +func ParseExportProjectSourceClientResponse(rsp *http.Response) (*ExportProjectSourceClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &StreamProjectLogsClientResponse{ + response := &ExportProjectSourceClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ProjectSourceExport + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -47828,79 +56615,46 @@ func ParseStreamProjectLogsClientResponse(rsp *http.Response) (*StreamProjectLog response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - - } - - return response, nil -} - -// ParseQueryProjectMetricsClientResponse parses an HTTP response from a QueryProjectMetricsWithResponse call -func ParseQueryProjectMetricsClientResponse(rsp *http.Response) (*QueryProjectMetricsClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &QueryProjectMetricsClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ProjectMetricsQueryResponse + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON422 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON500 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 501: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON500 = &dest + response.JSON501 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: var dest Error @@ -47914,24 +56668,22 @@ func ParseQueryProjectMetricsClientResponse(rsp *http.Response) (*QueryProjectMe return response, nil } -// ParseListOAuthConfigsClientResponse parses an HTTP response from a ListOAuthConfigsWithResponse call -func ParseListOAuthConfigsClientResponse(rsp *http.Response) (*ListOAuthConfigsClientResponse, error) { +// ParseListStorageBucketsClientResponse parses an HTTP response from a ListStorageBucketsWithResponse call +func ParseListStorageBucketsClientResponse(rsp *http.Response) (*ListStorageBucketsClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListOAuthConfigsClientResponse{ + response := &ListStorageBucketsClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Configs *[]OAuthConfig `json:"configs,omitempty"` - } + var dest ListStorageBuckets200JSONResponseBody if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -47942,22 +56694,22 @@ func ParseListOAuthConfigsClientResponse(rsp *http.Response) (*ListOAuthConfigsC return response, nil } -// ParseCreateOAuthConfigClientResponse parses an HTTP response from a CreateOAuthConfigWithResponse call -func ParseCreateOAuthConfigClientResponse(rsp *http.Response) (*CreateOAuthConfigClientResponse, error) { +// ParseCreateStorageBucketClientResponse parses an HTTP response from a CreateStorageBucketWithResponse call +func ParseCreateStorageBucketClientResponse(rsp *http.Response) (*CreateStorageBucketClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateOAuthConfigClientResponse{ + response := &CreateStorageBucketClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest OAuthConfig + var dest StorageBucket if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -47968,15 +56720,15 @@ func ParseCreateOAuthConfigClientResponse(rsp *http.Response) (*CreateOAuthConfi return response, nil } -// ParseDeleteOAuthConfigClientResponse parses an HTTP response from a DeleteOAuthConfigWithResponse call -func ParseDeleteOAuthConfigClientResponse(rsp *http.Response) (*DeleteOAuthConfigClientResponse, error) { +// ParseDeleteStorageBucketClientResponse parses an HTTP response from a DeleteStorageBucketWithResponse call +func ParseDeleteStorageBucketClientResponse(rsp *http.Response) (*DeleteStorageBucketClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteOAuthConfigClientResponse{ + response := &DeleteStorageBucketClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -47984,22 +56736,22 @@ func ParseDeleteOAuthConfigClientResponse(rsp *http.Response) (*DeleteOAuthConfi return response, nil } -// ParseGetOAuthConfigClientResponse parses an HTTP response from a GetOAuthConfigWithResponse call -func ParseGetOAuthConfigClientResponse(rsp *http.Response) (*GetOAuthConfigClientResponse, error) { +// ParseGetStorageBucketClientResponse parses an HTTP response from a GetStorageBucketWithResponse call +func ParseGetStorageBucketClientResponse(rsp *http.Response) (*GetStorageBucketClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOAuthConfigClientResponse{ + response := &GetStorageBucketClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest OAuthConfig + var dest StorageBucket if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -48010,22 +56762,22 @@ func ParseGetOAuthConfigClientResponse(rsp *http.Response) (*GetOAuthConfigClien return response, nil } -// ParseUpdateOAuthConfigClientResponse parses an HTTP response from a UpdateOAuthConfigWithResponse call -func ParseUpdateOAuthConfigClientResponse(rsp *http.Response) (*UpdateOAuthConfigClientResponse, error) { +// ParseUpdateStorageBucketClientResponse parses an HTTP response from a UpdateStorageBucketWithResponse call +func ParseUpdateStorageBucketClientResponse(rsp *http.Response) (*UpdateStorageBucketClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateOAuthConfigClientResponse{ + response := &UpdateStorageBucketClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest OAuthConfig + var dest StorageBucket if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -48036,28 +56788,22 @@ func ParseUpdateOAuthConfigClientResponse(rsp *http.Response) (*UpdateOAuthConfi return response, nil } -// ParseListAvailableOAuthProvidersClientResponse parses an HTTP response from a ListAvailableOAuthProvidersWithResponse call -func ParseListAvailableOAuthProvidersClientResponse(rsp *http.Response) (*ListAvailableOAuthProvidersClientResponse, error) { +// ParseListStoragePoliciesClientResponse parses an HTTP response from a ListStoragePoliciesWithResponse call +func ParseListStoragePoliciesClientResponse(rsp *http.Response) (*ListStoragePoliciesClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListAvailableOAuthProvidersClientResponse{ + response := &ListStoragePoliciesClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Providers *[]struct { - DefaultScopes *[]string `json:"default_scopes,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - } `json:"providers,omitempty"` - } + var dest []StoragePolicy if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -48068,135 +56814,102 @@ func ParseListAvailableOAuthProvidersClientResponse(rsp *http.Response) (*ListAv return response, nil } -// ParseGetRealtimeConfigClientResponse parses an HTTP response from a GetRealtimeConfigWithResponse call -func ParseGetRealtimeConfigClientResponse(rsp *http.Response) (*GetRealtimeConfigClientResponse, error) { +// ParseCreateStoragePolicyClientResponse parses an HTTP response from a CreateStoragePolicyWithResponse call +func ParseCreateStoragePolicyClientResponse(rsp *http.Response) (*CreateStoragePolicyClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetRealtimeConfigClientResponse{ + response := &CreateStoragePolicyClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest RealtimeConfig - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest StoragePolicy if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON201 = &dest } return response, nil } -// ParseUpdateRealtimeConfigClientResponse parses an HTTP response from a UpdateRealtimeConfigWithResponse call -func ParseUpdateRealtimeConfigClientResponse(rsp *http.Response) (*UpdateRealtimeConfigClientResponse, error) { +// ParseDeleteStoragePolicyClientResponse parses an HTTP response from a DeleteStoragePolicyWithResponse call +func ParseDeleteStoragePolicyClientResponse(rsp *http.Response) (*DeleteStoragePolicyClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateRealtimeConfigClientResponse{ + response := &DeleteStoragePolicyClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest RealtimeConfig - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest - - } - return response, nil } -// ParseGetRealtimeStatsClientResponse parses an HTTP response from a GetRealtimeStatsWithResponse call -func ParseGetRealtimeStatsClientResponse(rsp *http.Response) (*GetRealtimeStatsClientResponse, error) { +// ParseListStorageObjectsAdminClientResponse parses an HTTP response from a ListStorageObjectsAdminWithResponse call +func ParseListStorageObjectsAdminClientResponse(rsp *http.Response) (*ListStorageObjectsAdminClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetRealtimeStatsClientResponse{ + response := &ListStorageObjectsAdminClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest RealtimeStats - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + var dest struct { + Data *[]StorageObjectWithBucket `json:"data,omitempty"` + HasMore *bool `json:"has_more,omitempty"` + Limit *int `json:"limit,omitempty"` - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Error + // NextCursor Opaque cursor for the next page (cursor pagination only) + NextCursor *string `json:"next_cursor,omitempty"` + Page *int `json:"page,omitempty"` + + // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`. + PrevCursor *string `json:"prev_cursor,omitempty"` + Total *int `json:"total,omitempty"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON200 = &dest } return response, nil } -// ParseListProjectSchedulersClientResponse parses an HTTP response from a ListProjectSchedulersWithResponse call -func ParseListProjectSchedulersClientResponse(rsp *http.Response) (*ListProjectSchedulersClientResponse, error) { +// ParseGetStorageStatsClientResponse parses an HTTP response from a GetStorageStatsWithResponse call +func ParseGetStorageStatsClientResponse(rsp *http.Response) (*GetStorageStatsClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListProjectSchedulersClientResponse{ + response := &GetStorageStatsClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest FunctionSchedulerListResponse + var dest StorageStats if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -48207,596 +56920,587 @@ func ParseListProjectSchedulersClientResponse(rsp *http.Response) (*ListProjectS return response, nil } -// ParseListServiceKeysClientResponse parses an HTTP response from a ListServiceKeysWithResponse call -func ParseListServiceKeysClientResponse(rsp *http.Response) (*ListServiceKeysClientResponse, error) { +// ParseGetProjectUsageClientResponse parses an HTTP response from a GetProjectUsageWithResponse call +func ParseGetProjectUsageClientResponse(rsp *http.Response) (*GetProjectUsageClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListServiceKeysClientResponse{ + response := &GetProjectUsageClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PaginatedServiceKeys + var dest ProjectUsageResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + } return response, nil } -// ParseCreateServiceKeyClientResponse parses an HTTP response from a CreateServiceKeyWithResponse call -func ParseCreateServiceKeyClientResponse(rsp *http.Response) (*CreateServiceKeyClientResponse, error) { +// ParseListVariablesClientResponse parses an HTTP response from a ListVariablesWithResponse call +func ParseListVariablesClientResponse(rsp *http.Response) (*ListVariablesClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateServiceKeyClientResponse{ + response := &ListVariablesClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ServiceKey + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PaginatedVariables if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest - - } - - return response, nil -} + response.JSON200 = &dest -// ParseDeleteServiceKeyClientResponse parses an HTTP response from a DeleteServiceKeyWithResponse call -func ParseDeleteServiceKeyClientResponse(rsp *http.Response) (*DeleteServiceKeyClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest - response := &DeleteServiceKeyClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, } return response, nil } -// ParseGetServiceKeyClientResponse parses an HTTP response from a GetServiceKeyWithResponse call -func ParseGetServiceKeyClientResponse(rsp *http.Response) (*GetServiceKeyClientResponse, error) { +// ParseCreateVariableClientResponse parses an HTTP response from a CreateVariableWithResponse call +func ParseCreateVariableClientResponse(rsp *http.Response) (*CreateVariableClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetServiceKeyClientResponse{ + response := &CreateVariableClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ServiceKey + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Variable if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest } return response, nil } -// ParseRegenerateServiceKeyClientResponse parses an HTTP response from a RegenerateServiceKeyWithResponse call -func ParseRegenerateServiceKeyClientResponse(rsp *http.Response) (*RegenerateServiceKeyClientResponse, error) { +// ParseDeleteVariableClientResponse parses an HTTP response from a DeleteVariableWithResponse call +func ParseDeleteVariableClientResponse(rsp *http.Response) (*DeleteVariableClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &RegenerateServiceKeyClientResponse{ + response := &DeleteVariableClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ServiceKey + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON404 = &dest } return response, nil } -// ParseListStorageBucketsClientResponse parses an HTTP response from a ListStorageBucketsWithResponse call -func ParseListStorageBucketsClientResponse(rsp *http.Response) (*ListStorageBucketsClientResponse, error) { +// ParseGetVariableClientResponse parses an HTTP response from a GetVariableWithResponse call +func ParseGetVariableClientResponse(rsp *http.Response) (*GetVariableClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListStorageBucketsClientResponse{ + response := &GetVariableClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListStorageBuckets200JSONResponseBody + var dest Variable if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + } return response, nil } -// ParseCreateStorageBucketClientResponse parses an HTTP response from a CreateStorageBucketWithResponse call -func ParseCreateStorageBucketClientResponse(rsp *http.Response) (*CreateStorageBucketClientResponse, error) { +// ParseUpdateVariableClientResponse parses an HTTP response from a UpdateVariableWithResponse call +func ParseUpdateVariableClientResponse(rsp *http.Response) (*UpdateVariableClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateStorageBucketClientResponse{ + response := &UpdateVariableClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest StorageBucket + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Variable if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest - return response, nil -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest -// ParseDeleteStorageBucketClientResponse parses an HTTP response from a DeleteStorageBucketWithResponse call -func ParseDeleteStorageBucketClientResponse(rsp *http.Response) (*DeleteStorageBucketClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest - response := &DeleteStorageBucketClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, } return response, nil } -// ParseGetStorageBucketClientResponse parses an HTTP response from a GetStorageBucketWithResponse call -func ParseGetStorageBucketClientResponse(rsp *http.Response) (*GetStorageBucketClientResponse, error) { +// ParseDownloadPublicFileClientResponse parses an HTTP response from a DownloadPublicFileWithResponse call +func ParseDownloadPublicFileClientResponse(rsp *http.Response) (*DownloadPublicFileClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetStorageBucketClientResponse{ + response := &DownloadPublicFileClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest StorageBucket + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest BandwidthCapExceeded if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON429 = &dest } return response, nil } -// ParseUpdateStorageBucketClientResponse parses an HTTP response from a UpdateStorageBucketWithResponse call -func ParseUpdateStorageBucketClientResponse(rsp *http.Response) (*UpdateStorageBucketClientResponse, error) { +// ParseTerminateSandboxSessionClientResponse parses an HTTP response from a TerminateSandboxSessionWithResponse call +func ParseTerminateSandboxSessionClientResponse(rsp *http.Response) (*TerminateSandboxSessionClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateStorageBucketClientResponse{ + response := &TerminateSandboxSessionClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest StorageBucket + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202: + var dest SandboxSession if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON202 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest } return response, nil } -// ParseListStoragePoliciesClientResponse parses an HTTP response from a ListStoragePoliciesWithResponse call -func ParseListStoragePoliciesClientResponse(rsp *http.Response) (*ListStoragePoliciesClientResponse, error) { +// ParseGetSandboxSessionClientResponse parses an HTTP response from a GetSandboxSessionWithResponse call +func ParseGetSandboxSessionClientResponse(rsp *http.Response) (*GetSandboxSessionClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListStoragePoliciesClientResponse{ + response := &GetSandboxSessionClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []StoragePolicy + var dest SandboxSession if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - } - - return response, nil -} - -// ParseCreateStoragePolicyClientResponse parses an HTTP response from a CreateStoragePolicyWithResponse call -func ParseCreateStoragePolicyClientResponse(rsp *http.Response) (*CreateStoragePolicyClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CreateStoragePolicyClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest StoragePolicy + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest - - } - - return response, nil -} - -// ParseDeleteStoragePolicyClientResponse parses an HTTP response from a DeleteStoragePolicyWithResponse call -func ParseDeleteStoragePolicyClientResponse(rsp *http.Response) (*DeleteStoragePolicyClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + response.JSONDefault = &dest - response := &DeleteStoragePolicyClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, } return response, nil } -// ParseListStorageObjectsAdminClientResponse parses an HTTP response from a ListStorageObjectsAdminWithResponse call -func ParseListStorageObjectsAdminClientResponse(rsp *http.Response) (*ListStorageObjectsAdminClientResponse, error) { +// ParseCreateSandboxSessionAccessClientResponse parses an HTTP response from a CreateSandboxSessionAccessWithResponse call +func ParseCreateSandboxSessionAccessClientResponse(rsp *http.Response) (*CreateSandboxSessionAccessClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListStorageObjectsAdminClientResponse{ + response := &CreateSandboxSessionAccessClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Data *[]StorageObjectWithBucket `json:"data,omitempty"` - HasMore *bool `json:"has_more,omitempty"` - Limit *int `json:"limit,omitempty"` - - // NextCursor Opaque cursor for the next page (cursor pagination only) - NextCursor *string `json:"next_cursor,omitempty"` - Page *int `json:"page,omitempty"` - - // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`. - PrevCursor *string `json:"prev_cursor,omitempty"` - Total *int `json:"total,omitempty"` - } + var dest SandboxAccess if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } return response, nil } -// ParseGetStorageStatsClientResponse parses an HTTP response from a GetStorageStatsWithResponse call -func ParseGetStorageStatsClientResponse(rsp *http.Response) (*GetStorageStatsClientResponse, error) { +// ParseExecuteSandboxSessionClientResponse parses an HTTP response from a ExecuteSandboxSessionWithResponse call +func ParseExecuteSandboxSessionClientResponse(rsp *http.Response) (*ExecuteSandboxSessionClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetStorageStatsClientResponse{ + response := &ExecuteSandboxSessionClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest StorageStats + var dest SandboxCommandResult if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest + } return response, nil } -// ParseGetProjectUsageClientResponse parses an HTTP response from a GetProjectUsageWithResponse call -func ParseGetProjectUsageClientResponse(rsp *http.Response) (*GetProjectUsageClientResponse, error) { +// ParseReadSandboxSessionFileClientResponse parses an HTTP response from a ReadSandboxSessionFileWithResponse call +func ParseReadSandboxSessionFileClientResponse(rsp *http.Response) (*ReadSandboxSessionFileClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetProjectUsageClientResponse{ + response := &ReadSandboxSessionFileClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ProjectUsageResponse + var dest SandboxFileResult if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSONDefault = &dest } return response, nil } -// ParseListVariablesClientResponse parses an HTTP response from a ListVariablesWithResponse call -func ParseListVariablesClientResponse(rsp *http.Response) (*ListVariablesClientResponse, error) { +// ParseWriteSandboxSessionFileClientResponse parses an HTTP response from a WriteSandboxSessionFileWithResponse call +func ParseWriteSandboxSessionFileClientResponse(rsp *http.Response) (*WriteSandboxSessionFileClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListVariablesClientResponse{ + response := &WriteSandboxSessionFileClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PaginatedVariables - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSONDefault = &dest } return response, nil } -// ParseCreateVariableClientResponse parses an HTTP response from a CreateVariableWithResponse call -func ParseCreateVariableClientResponse(rsp *http.Response) (*CreateVariableClientResponse, error) { +// ParseRevokeSandboxSessionClientResponse parses an HTTP response from a RevokeSandboxSessionWithResponse call +func ParseRevokeSandboxSessionClientResponse(rsp *http.Response) (*RevokeSandboxSessionClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateVariableClientResponse{ + response := &RevokeSandboxSessionClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Variable - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSONDefault = &dest } return response, nil } -// ParseDeleteVariableClientResponse parses an HTTP response from a DeleteVariableWithResponse call -func ParseDeleteVariableClientResponse(rsp *http.Response) (*DeleteVariableClientResponse, error) { +// ParseGrantSandboxSessionClientResponse parses an HTTP response from a GrantSandboxSessionWithResponse call +func ParseGrantSandboxSessionClientResponse(rsp *http.Response) (*GrantSandboxSessionClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteVariableClientResponse{ + response := &GrantSandboxSessionClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSONDefault = &dest } return response, nil } -// ParseGetVariableClientResponse parses an HTTP response from a GetVariableWithResponse call -func ParseGetVariableClientResponse(rsp *http.Response) (*GetVariableClientResponse, error) { +// ParseResumeSandboxSessionClientResponse parses an HTTP response from a ResumeSandboxSessionWithResponse call +func ParseResumeSandboxSessionClientResponse(rsp *http.Response) (*ResumeSandboxSessionClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetVariableClientResponse{ + response := &ResumeSandboxSessionClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Variable + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202: + var dest SandboxSession if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON202 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSONDefault = &dest } return response, nil } -// ParseUpdateVariableClientResponse parses an HTTP response from a UpdateVariableWithResponse call -func ParseUpdateVariableClientResponse(rsp *http.Response) (*UpdateVariableClientResponse, error) { +// ParseSuspendSandboxSessionClientResponse parses an HTTP response from a SuspendSandboxSessionWithResponse call +func ParseSuspendSandboxSessionClientResponse(rsp *http.Response) (*SuspendSandboxSessionClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateVariableClientResponse{ + response := &SuspendSandboxSessionClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Variable + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202: + var dest SandboxSession if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON202 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSONDefault = &dest } return response, nil } -// ParseDownloadPublicFileClientResponse parses an HTTP response from a DownloadPublicFileWithResponse call -func ParseDownloadPublicFileClientResponse(rsp *http.Response) (*DownloadPublicFileClientResponse, error) { +// ParseListSandboxPresetsClientResponse parses an HTTP response from a ListSandboxPresetsWithResponse call +func ParseListSandboxPresetsClientResponse(rsp *http.Response) (*ListSandboxPresetsClientResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DownloadPublicFileClientResponse{ + response := &ListSandboxPresetsClientResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest BandwidthCapExceeded + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SandboxPresetList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSONDefault = &dest } diff --git a/openapi/openapi.yaml b/openapi/openapi.yaml index ad45aa8..727d6c0 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -15,22 +15,30 @@ servers: - url: http://localhost:8000 description: Development API server (use VOLCANO_API_URL env var) tags: + - name: Sandboxes + description: Isolated Linux sessions and reusable templates. - name: Projects description: Project management operations - name: Logs description: Project-scoped log search and activity APIs - name: Functions description: Function deployment and management + - name: Durable Functions + description: |- + Long-running functions that checkpoint their progress and resume from the + last completed step, and the executions started against them. Separate + from Functions because a durable function is started asynchronously: what + a start returns is an execution to poll and stop, not a result. Durable + work is metered on its own allowances: executions, and the operations each + execution performs while it runs. - name: Frontends description: Frontend deployment and management. Supports Next.js 15.x and 16.x with Node.js 22.x or 24.x inferred from package.json engines.node when the selected Node.js family satisfies the installed Next.js package engines.node constraint. - name: Tokens description: Service keys for function invocation and database admin access - - name: Project Access Tokens - description: Project-scoped control-plane credentials for CLI and CI use - name: Variables description: Environment variable management - name: Databases - description: Serverless PostgreSQL database provisioning and management + description: PostgreSQL database provisioning and management - name: Database Branches description: Short-lived forks of a database for development and testing - name: Database Queries @@ -45,6 +53,8 @@ tags: description: Project-specific public keys for frontend auth - name: Service Keys description: Project-specific secret keys for admin operations (bypass RLS - backend only!) + - name: Project Access Tokens + description: Project-scoped credentials for calling the Volcano API from CI, scripts, and agents - name: OAuth Configuration description: OAuth provider configuration (Google, GitHub, Microsoft, Apple) - name: OAuth Authentication @@ -74,520 +84,725 @@ tags: and polls for completion. Session completion is handled by volcano.dev via the Management API. paths: - /user/imports/connect: - post: + /sandboxes/presets: + get: tags: - - Project Imports - summary: Start a project import provider connection - description: | - Starts a first-party dashboard user's provider connection flow. The - response sets a short-lived HttpOnly browser-binding cookie for the - public provider callback. - operationId: startImportConnect - security: - - UserToken: [] - - AuthUserAccessToken: [] - parameters: - - name: provider - in: query - required: false - description: Import provider to connect. Defaults to Vercel. - schema: - $ref: '#/components/schemas/ImportProvider' - - name: redirect - in: query - required: false - description: Validated application URL used after the provider callback. - schema: - type: string - format: uri - pattern: ^https://[^/?#]+(?:[/?][^#]*)?$|^http://(?:localhost|127\.0\.0\.1|\[::1\])(?::[0-9]+)?(?:[/?][^#]*)?$ + - Sandboxes + summary: List available sandbox presets + operationId: listSandboxPresets + security: [] responses: '200': - description: Provider authorization URL + description: List available sandbox presets content: application/json: schema: - $ref: '#/components/schemas/ImportConnectStartResponse' - '400': - description: Unsupported provider or invalid redirect - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '401': - description: Not authenticated + $ref: '#/components/schemas/SandboxPresetList' + default: + description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503). content: application/json: schema: $ref: '#/components/schemas/Error' - '500': - description: Failed to start the connection + /projects/{id}/sandboxes: + get: + tags: + - Sandboxes + summary: List sandbox templates + operationId: listSandboxes + security: + - UserToken: [] + - ServiceRoleKey: [] + parameters: + - name: id + in: path + required: true + schema: + type: string + format: uuid + - $ref: '#/components/parameters/Limit' + - $ref: '#/components/parameters/Cursor' + responses: + '200': + description: List sandbox templates content: application/json: schema: - $ref: '#/components/schemas/Error' - '503': - description: Import provider integration is not configured + $ref: '#/components/schemas/SandboxTemplatePage' + default: + description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503). content: application/json: schema: $ref: '#/components/schemas/Error' - /imports/{provider}/callback: - get: + post: tags: - - Project Imports - summary: Complete a project import provider connection - description: | - Public provider callback protected by signed state and the browser-binding - cookie created by startImportConnect. - operationId: completeImportConnect - security: [] + - Sandboxes + summary: Create a sandbox template from a verified preset + operationId: createSandbox + security: + - UserToken: [] + - ServiceRoleKey: [] parameters: - - name: provider + - name: id in: path required: true - schema: - $ref: '#/components/schemas/ImportProvider' - - name: state - in: query - required: true - description: Signed connect state generated by startImportConnect. - schema: - type: string - - name: code - in: query - required: false - description: Provider authorization code. - schema: - type: string - - name: error - in: query - required: false - description: Provider error category. - schema: - type: string - - name: teamId - in: query - required: false - description: Vercel team selected during installation. - schema: - type: string - - name: configurationId - in: query - required: false - description: Vercel Integration configuration identifier. - schema: - type: string - - name: next - in: query - required: false - description: Provider completion URL validated by the provider adapter. schema: type: string - - name: source - in: query - required: false - description: Vercel installation source indicator. + format: uuid + - name: Idempotency-Key + in: header + required: true schema: type: string + format: uuid + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/CreateSandboxTemplateRequest' responses: - '303': - description: Redirect to the provider completion URL, signed application redirect, or Volcano import page - headers: - Location: - description: Validated redirect target - schema: - type: string - '400': - description: Invalid callback request, state, or browser binding - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '429': - description: Too many callback attempts - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '500': - description: Failed to complete the connection + '201': + description: Create a sandbox template from a verified preset content: application/json: schema: - $ref: '#/components/schemas/Error' - '503': - description: Import provider integration is not configured + $ref: '#/components/schemas/SandboxTemplate' + default: + description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503). content: application/json: schema: $ref: '#/components/schemas/Error' - /user/imports/connections: + /projects/{id}/sandboxes/{sandboxId}: get: tags: - - Project Imports - summary: List project import provider connections - operationId: listImportConnections + - Sandboxes + summary: Get a sandbox template + operationId: getSandbox security: - UserToken: [] - - AuthUserAccessToken: [] + - ServiceRoleKey: [] + parameters: + - name: id + in: path + required: true + schema: + type: string + format: uuid + - name: sandboxId + in: path + required: true + schema: + type: string + format: uuid responses: '200': - description: Stored import provider connections - content: - application/json: - schema: - $ref: '#/components/schemas/ImportConnectionsResponse' - '401': - description: Not authenticated + description: Get a sandbox template content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': - description: Failed to list connections + $ref: '#/components/schemas/SandboxTemplate' + default: + description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503). content: application/json: schema: $ref: '#/components/schemas/Error' - /user/imports/connections/{connectionId}: - delete: + patch: tags: - - Project Imports - summary: Delete a project import provider connection - operationId: deleteImportConnection + - Sandboxes + summary: Rename a sandbox template + operationId: updateSandbox security: - UserToken: [] - - AuthUserAccessToken: [] + - ServiceRoleKey: [] parameters: - - name: connectionId + - name: id + in: path + required: true + schema: + type: string + format: uuid + - name: sandboxId in: path required: true - description: Connection ID to delete. schema: type: string format: uuid + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateSandboxTemplateRequest' responses: - '204': - description: Connection deleted - '400': - description: Malformed connection ID - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '401': - description: Not authenticated - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '404': - description: Connection not found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '409': - description: Connection changed while it was being deleted - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '500': - description: Failed to delete the connection + '200': + description: Rename a sandbox template content: application/json: schema: - $ref: '#/components/schemas/Error' - '503': - description: Import provider integration is not configured + $ref: '#/components/schemas/SandboxTemplate' + default: + description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503). content: application/json: schema: $ref: '#/components/schemas/Error' - /imports/{provider}/sources: - get: + delete: tags: - - Project Imports - summary: List project sources available from a provider connection - description: Lists provider projects without changing provider or Volcano resources. - operationId: listImportSources + - Sandboxes + summary: Retire a template and terminate its sessions + operationId: deleteSandbox security: - UserToken: [] - - AuthUserAccessToken: [] + - ServiceRoleKey: [] parameters: - - name: provider + - name: id in: path required: true schema: - $ref: '#/components/schemas/ImportProvider' - - name: connection_id - in: query + type: string + format: uuid + - name: sandboxId + in: path required: true - description: Owned provider connection used for discovery. schema: type: string format: uuid responses: - '200': - description: Provider sources available to import - content: - application/json: - schema: - $ref: '#/components/schemas/ImportSourcesResponse' - '400': - description: Invalid provider or connection ID - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '401': - description: Not authenticated + '202': + description: Retire a template and terminate its sessions + default: + description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503). content: application/json: schema: $ref: '#/components/schemas/Error' - '403': - description: The provider connection lacks a required Integration scope + /projects/{id}/sandboxes/{sandboxId}/deployments: + get: + tags: + - Sandboxes + summary: List sandbox deployment history + operationId: listSandboxDeployments + security: + - UserToken: [] + - ServiceRoleKey: [] + parameters: + - name: id + in: path + required: true + schema: + type: string + format: uuid + - name: sandboxId + in: path + required: true + schema: + type: string + format: uuid + - $ref: '#/components/parameters/Limit' + - $ref: '#/components/parameters/Cursor' + responses: + '200': + description: List sandbox deployment history content: application/json: schema: - $ref: '#/components/schemas/Error' - '404': - description: Connection or provider source not found + $ref: '#/components/schemas/SandboxDeploymentPage' + default: + description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503). content: application/json: schema: $ref: '#/components/schemas/Error' - '409': - description: The provider connection must be reconnected + /projects/{id}/sandbox-sessions: + get: + tags: + - Sandboxes + summary: List project sandbox sessions + operationId: listSandboxSessions + security: + - UserToken: [] + - ServiceRoleKey: [] + parameters: + - name: id + in: path + required: true + schema: + type: string + format: uuid + - $ref: '#/components/parameters/Limit' + - $ref: '#/components/parameters/Cursor' + responses: + '200': + description: List project sandbox sessions content: application/json: schema: - $ref: '#/components/schemas/Error' - '429': - description: Provider rate limit exceeded + $ref: '#/components/schemas/SandboxSessionPage' + default: + description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503). content: application/json: schema: $ref: '#/components/schemas/Error' - '500': - description: Failed to list provider sources + post: + tags: + - Sandboxes + summary: Start a sandbox session + operationId: createSandboxSession + security: + - UserToken: [] + - ServiceRoleKey: [] + parameters: + - name: id + in: path + required: true + schema: + type: string + format: uuid + - name: Idempotency-Key + in: header + required: true + schema: + type: string + format: uuid + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/CreateSandboxSessionRequest' + responses: + '201': + description: Start a sandbox session content: application/json: schema: - $ref: '#/components/schemas/Error' - '503': - description: Provider unavailable or integration not configured + $ref: '#/components/schemas/SandboxSession' + default: + description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503). content: application/json: schema: $ref: '#/components/schemas/Error' - /imports/{provider}/preflight: + /projects/{id}/sandbox-executions: post: tags: - - Project Imports - summary: Check whether a provider project is ready to import - description: Produces a deterministic read-only readiness report for a proposed new Volcano project. - operationId: preflightProjectImport + - Sandboxes + summary: Execute once and return after confirmed termination + operationId: executeSandbox security: - UserToken: [] - - AuthUserAccessToken: [] + - ServiceRoleKey: [] parameters: - - name: provider + - name: id in: path required: true schema: - $ref: '#/components/schemas/ImportProvider' + type: string + format: uuid + - name: Idempotency-Key + in: header + required: true + schema: + type: string + format: uuid requestBody: required: true content: application/json: schema: - $ref: '#/components/schemas/ProjectImportPreflightRequest' + $ref: '#/components/schemas/SandboxExecutionRequest' responses: '200': - description: Import readiness report + description: Execute once and return after confirmed termination content: application/json: schema: - $ref: '#/components/schemas/ProjectImportReport' - '400': - description: Invalid provider, source, project name, or target + $ref: '#/components/schemas/SandboxExecutionResult' + default: + description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503). content: application/json: schema: $ref: '#/components/schemas/Error' - '401': - description: Not authenticated + /sandbox-sessions/{sessionId}: + get: + tags: + - Sandboxes + summary: Get a sandbox session + operationId: getSandboxSession + security: + - UserToken: [] + - ServiceRoleKey: [] + - AuthUserAccessToken: [] + parameters: + - name: sessionId + in: path + required: true + schema: + type: string + format: uuid + responses: + '200': + description: Get a sandbox session content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': - description: The provider connection lacks a required Integration scope + $ref: '#/components/schemas/SandboxSession' + default: + description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503). content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Connection or provider source not found + delete: + tags: + - Sandboxes + summary: Request sandbox termination + operationId: terminateSandboxSession + security: + - UserToken: [] + - ServiceRoleKey: [] + parameters: + - name: sessionId + in: path + required: true + schema: + type: string + format: uuid + responses: + '202': + description: Request sandbox termination content: application/json: schema: - $ref: '#/components/schemas/Error' - '409': - description: The provider connection must be reconnected + $ref: '#/components/schemas/SandboxSession' + default: + description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503). content: application/json: schema: $ref: '#/components/schemas/Error' - '429': - description: Provider rate limit exceeded + /sandbox-sessions/{sessionId}/suspend: + post: + tags: + - Sandboxes + summary: Suspend a sandbox session + operationId: suspendSandboxSession + security: + - UserToken: [] + - ServiceRoleKey: [] + parameters: + - name: sessionId + in: path + required: true + schema: + type: string + format: uuid + responses: + '202': + description: Suspend a sandbox session content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': - description: Failed to produce an import readiness report + $ref: '#/components/schemas/SandboxSession' + default: + description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503). content: application/json: schema: $ref: '#/components/schemas/Error' - '503': - description: Provider unavailable or integration not configured + /sandbox-sessions/{sessionId}/resume: + post: + tags: + - Sandboxes + summary: Resume a sandbox session + operationId: resumeSandboxSession + security: + - UserToken: [] + - ServiceRoleKey: [] + parameters: + - name: sessionId + in: path + required: true + schema: + type: string + format: uuid + responses: + '202': + description: Resume a sandbox session + content: + application/json: + schema: + $ref: '#/components/schemas/SandboxSession' + default: + description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503). content: application/json: schema: $ref: '#/components/schemas/Error' - /imports/{provider}/runs: + /sandbox-sessions/{sessionId}/exec: post: tags: - - Project Imports - summary: Start a Vercel project import - description: Creates a Volcano project from an importable production preflight report. Retrying the same request with the same Idempotency-Key returns the existing run. - operationId: startProjectImport + - Sandboxes + summary: Execute a command within a session + operationId: executeSandboxSession security: - UserToken: [] + - ServiceRoleKey: [] - AuthUserAccessToken: [] parameters: - - name: provider + - name: sessionId in: path required: true schema: - $ref: '#/components/schemas/ImportProvider' + type: string + format: uuid - name: Idempotency-Key in: header required: true schema: type: string - minLength: 1 - maxLength: 255 - pattern: ^[!-~]+$ + format: uuid requestBody: required: true content: application/json: schema: - $ref: '#/components/schemas/ProjectImportStartRequest' + $ref: '#/components/schemas/SandboxCommandRequest' responses: - '202': - description: Import run accepted - headers: - Location: - required: true - schema: - type: string - content: - application/json: - schema: - $ref: '#/components/schemas/ProjectImportRun' - '400': - description: Invalid request or idempotency key + '200': + description: Execute a command within a session content: application/json: schema: - $ref: '#/components/schemas/Error' - '401': - description: Not authenticated + $ref: '#/components/schemas/SandboxCommandResult' + default: + description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503). content: application/json: schema: $ref: '#/components/schemas/Error' - '403': - description: Provider permission or project admission denied + /sandbox-sessions/{sessionId}/files/read: + post: + tags: + - Sandboxes + summary: Read a workspace file + operationId: readSandboxSessionFile + security: + - UserToken: [] + - ServiceRoleKey: [] + - AuthUserAccessToken: [] + parameters: + - name: sessionId + in: path + required: true + schema: + type: string + format: uuid + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/SandboxFileReadRequest' + responses: + '200': + description: Read a workspace file content: application/json: schema: - $ref: '#/components/schemas/Error' - '404': - description: Connection or provider source not found + $ref: '#/components/schemas/SandboxFileResult' + default: + description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503). content: application/json: schema: $ref: '#/components/schemas/Error' - '409': - description: Preflight is stale, idempotency key was reused, or destination conflicts - content: - application/json: + /sandbox-sessions/{sessionId}/files/write: + post: + tags: + - Sandboxes + summary: Write a workspace file + operationId: writeSandboxSessionFile + security: + - UserToken: [] + - ServiceRoleKey: [] + - AuthUserAccessToken: [] + parameters: + - name: sessionId + in: path + required: true + schema: + type: string + format: uuid + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/SandboxFileWriteRequest' + responses: + '204': + description: Write a workspace file + default: + description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503). + content: + application/json: schema: $ref: '#/components/schemas/Error' - '422': - description: Source is not importable + /sandbox-sessions/{sessionId}/grants/{subjectId}: + put: + tags: + - Sandboxes + summary: Authorize an authenticated project user for this session + operationId: grantSandboxSession + security: + - UserToken: [] + - ServiceRoleKey: [] + parameters: + - name: sessionId + in: path + required: true + schema: + type: string + format: uuid + - name: subjectId + in: path + required: true + schema: + type: string + format: uuid + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/SandboxSubjectGrantRequest' + responses: + '204': + description: Authorize an authenticated project user for this session + default: + description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503). content: application/json: schema: $ref: '#/components/schemas/Error' - '429': - description: Provider rate limit exceeded + delete: + tags: + - Sandboxes + summary: Revoke a project user session grant + operationId: revokeSandboxSession + security: + - UserToken: [] + - ServiceRoleKey: [] + parameters: + - name: sessionId + in: path + required: true + schema: + type: string + format: uuid + - name: subjectId + in: path + required: true + schema: + type: string + format: uuid + responses: + '204': + description: Revoke a project user session grant + default: + description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503). content: application/json: schema: $ref: '#/components/schemas/Error' - '500': - description: Failed to start the import + /sandbox-sessions/{sessionId}/access: + post: + tags: + - Sandboxes + summary: Issue a short-lived port-scoped access credential + operationId: createSandboxSessionAccess + security: + - UserToken: [] + - ServiceRoleKey: [] + - AuthUserAccessToken: [] + parameters: + - name: sessionId + in: path + required: true + schema: + type: string + format: uuid + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/SandboxAccessRequest' + responses: + '200': + description: Issue a short-lived port-scoped access credential content: application/json: schema: - $ref: '#/components/schemas/Error' - '503': - description: Provider unavailable or integration not configured + $ref: '#/components/schemas/SandboxAccess' + default: + description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503). content: application/json: schema: $ref: '#/components/schemas/Error' - /imports/{provider}/runs/{runId}: - get: + /user/imports/connect: + post: tags: - Project Imports - summary: Get a project import run - operationId: getProjectImportRun + summary: Start a project import provider connection + description: | + Starts a first-party dashboard user's provider connection flow. The + response sets a short-lived HttpOnly browser-binding cookie for the + public provider callback. + operationId: startImportConnect security: - UserToken: [] - AuthUserAccessToken: [] parameters: - name: provider - in: path - required: true + in: query + required: false + description: Import provider to connect. Defaults to Vercel. schema: $ref: '#/components/schemas/ImportProvider' - - name: runId - in: path - required: true + - name: redirect + in: query + required: false + description: Validated application URL used after the provider callback. schema: type: string - format: uuid + format: uri + pattern: ^https://[^/?#]+(?:[/?][^#]*)?$|^http://(?:localhost|127\.0\.0\.1|\[::1\])(?::[0-9]+)?(?:[/?][^#]*)?$ + - name: callback_url + in: query + required: false + description: Same-origin browser callback used to relay provider parameters before completing the connection. + schema: + type: string + format: uri + pattern: ^https://[^/?#]+/[^?#]*$|^http://(?:localhost|127\.0\.0\.1|\[::1\])(?::[0-9]+)?/[^?#]*$ responses: '200': - description: Import run status + description: Provider authorization URL content: application/json: schema: - $ref: '#/components/schemas/ProjectImportRun' + $ref: '#/components/schemas/ImportConnectStartResponse' '400': - description: Invalid import run ID + description: Unsupported provider or invalid redirect content: application/json: schema: @@ -598,95 +813,124 @@ paths: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Import run not found + '500': + description: Failed to start the connection content: application/json: schema: $ref: '#/components/schemas/Error' - '500': - description: Failed to get the import run + '503': + description: Import provider integration is not configured content: application/json: schema: $ref: '#/components/schemas/Error' - /user/git/connect: - post: + /imports/{provider}/callback: + get: tags: - - Git Connections - summary: Start a git provider connection + - Project Imports + summary: Complete a project import provider connection description: | - Starts a first-party dashboard user's git provider connection flow and - returns the provider authorization URL. The response also sets a - short-lived HttpOnly callback binding cookie tied to the authenticated - user through the signed provider state. - operationId: startGitConnect - security: - - UserToken: [] - - AuthUserAccessToken: [] + Public provider callback protected by signed state and the browser-binding + cookie created by startImportConnect. + operationId: completeImportConnect + security: [] parameters: - name: provider + in: path + required: true + schema: + $ref: '#/components/schemas/ImportProvider' + - name: state + in: query + required: true + description: Signed connect state generated by startImportConnect. + schema: + type: string + - name: code in: query required: false - description: Git provider to connect. Defaults to github. + description: Provider authorization code. schema: type: string - enum: - - github - default: github - - name: redirect + - name: error in: query required: false - description: URL to redirect the browser to after the provider callback completes. + description: Provider error category. + schema: + type: string + - name: teamId + in: query + required: false + description: Vercel team selected during installation. + schema: + type: string + - name: configurationId + in: query + required: false + description: Vercel Integration configuration identifier. + schema: + type: string + - name: next + in: query + required: false + description: Provider completion URL validated by the provider adapter. + schema: + type: string + - name: source + in: query + required: false + description: Vercel installation source indicator. schema: type: string responses: - '200': - description: Provider authorization URL - content: - application/json: + '303': + description: Redirect to the provider completion URL, signed application redirect, or Volcano import page + headers: + Location: + description: Validated redirect target schema: - $ref: '#/components/schemas/GitConnectStartResponse' + type: string '400': - description: Unsupported provider or invalid redirect + description: Invalid callback request, state, or browser binding content: application/json: schema: $ref: '#/components/schemas/Error' - '401': - description: Not authenticated + '429': + description: Too many callback attempts content: application/json: schema: $ref: '#/components/schemas/Error' '500': - description: Failed to start the connection + description: Failed to complete the connection content: application/json: schema: $ref: '#/components/schemas/Error' '503': - description: Git provider integration is not configured + description: Import provider integration is not configured content: application/json: schema: $ref: '#/components/schemas/Error' - /user/git/connections: + /user/imports/connections: get: tags: - - Git Connections - summary: List git provider connections - operationId: listGitConnections + - Project Imports + summary: List project import provider connections + operationId: listImportConnections security: - UserToken: [] - AuthUserAccessToken: [] responses: '200': - description: Stored git provider connections + description: Stored import provider connections content: application/json: schema: - $ref: '#/components/schemas/GitConnectionsResponse' + $ref: '#/components/schemas/ImportConnectionsResponse' '401': description: Not authenticated content: @@ -699,18 +943,12 @@ paths: application/json: schema: $ref: '#/components/schemas/Error' - '503': - description: Git provider integration is not configured - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /user/git/connections/{connectionId}: + /user/imports/connections/{connectionId}: delete: tags: - - Git Connections - summary: Delete a git provider connection - operationId: deleteGitConnection + - Project Imports + summary: Delete a project import provider connection + operationId: deleteImportConnection security: - UserToken: [] - AuthUserAccessToken: [] @@ -718,7 +956,7 @@ paths: - name: connectionId in: path required: true - description: Connection ID to delete + description: Connection ID to delete. schema: type: string format: uuid @@ -743,48 +981,56 @@ paths: application/json: schema: $ref: '#/components/schemas/Error' + '409': + description: Connection changed while it was being deleted + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '500': - description: Failed to delete connection + description: Failed to delete the connection content: application/json: schema: $ref: '#/components/schemas/Error' '503': - description: Git provider integration is not configured + description: Import provider integration is not configured content: application/json: schema: $ref: '#/components/schemas/Error' - /user/git/connections/{connectionId}/installations: + /imports/{provider}/sources: get: tags: - - Git Connections - summary: List GitHub App installations accessible to a connection - description: | - Live proxy to GitHub: lists the platform GitHub App installations the - connection's stored user token can access. Nothing is persisted by - this call. - operationId: listGitInstallations + - Project Imports + summary: List project sources available from a provider connection + description: Lists provider projects without changing provider or Volcano resources. + operationId: listImportSources security: - UserToken: [] - AuthUserAccessToken: [] parameters: - - name: connectionId + - name: provider in: path required: true - description: Connection ID to browse installations for. + schema: + $ref: '#/components/schemas/ImportProvider' + - name: connection_id + in: query + required: true + description: Owned provider connection used for discovery. schema: type: string format: uuid responses: '200': - description: Installations accessible to the connection + description: Provider sources available to import content: application/json: schema: - $ref: '#/components/schemas/GitInstallationsResponse' + $ref: '#/components/schemas/ImportSourcesResponse' '400': - description: Malformed connection ID + description: Invalid provider or connection ID content: application/json: schema: @@ -795,61 +1041,73 @@ paths: application/json: schema: $ref: '#/components/schemas/Error' + '403': + description: The provider connection lacks a required Integration scope + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '404': - description: Connection not found + description: Connection or provider source not found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '409': + description: The provider connection must be reconnected + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '429': + description: Provider rate limit exceeded content: application/json: schema: $ref: '#/components/schemas/Error' '500': - description: Failed to list installations + description: Failed to list provider sources content: application/json: schema: $ref: '#/components/schemas/Error' '503': - description: Git provider integration is not configured + description: Provider unavailable or integration not configured content: application/json: schema: $ref: '#/components/schemas/Error' - /user/git/connections/{connectionId}/installations/{installationId}/repositories: - get: + /imports/{provider}/preflight: + post: tags: - - Git Connections - summary: List repos accessible to a connection through an installation - description: | - Live proxy to GitHub: lists the repos the connection's stored user - token can access through installationId. Nothing is persisted by this - call. - operationId: listGitInstallationRepositories + - Project Imports + summary: Check whether a provider project is ready to import + description: Produces a deterministic read-only readiness report for a proposed new Volcano project. + operationId: preflightProjectImport security: - UserToken: [] - AuthUserAccessToken: [] parameters: - - name: connectionId - in: path - required: true - description: Connection ID to browse repositories for. - schema: - type: string - format: uuid - - name: installationId + - name: provider in: path required: true - description: GitHub App installation ID. schema: - type: integer - format: int64 + $ref: '#/components/schemas/ImportProvider' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ProjectImportPreflightRequest' responses: '200': - description: Repositories accessible through the installation + description: Import readiness report content: application/json: schema: - $ref: '#/components/schemas/GitRepositoriesResponse' + $ref: '#/components/schemas/ProjectImportReport' '400': - description: Malformed connection or installation ID + description: Invalid provider, source, project name, or target content: application/json: schema: @@ -860,619 +1118,647 @@ paths: application/json: schema: $ref: '#/components/schemas/Error' + '403': + description: The provider connection lacks a required Integration scope + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '404': - description: Connection not found + description: Connection or provider source not found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '409': + description: The provider connection must be reconnected + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '429': + description: Provider rate limit exceeded content: application/json: schema: $ref: '#/components/schemas/Error' '500': - description: Failed to list repositories + description: Failed to produce an import readiness report content: application/json: schema: $ref: '#/components/schemas/Error' '503': - description: Git provider integration is not configured + description: Provider unavailable or integration not configured content: application/json: schema: $ref: '#/components/schemas/Error' - /github/callback: - get: + /imports/{provider}/runs: + post: tags: - - Git Connections - summary: Complete a GitHub App connection callback - description: | - Public GitHub App callback. The signed state and callback binding cookie - bind the provider authorization to the browser that started the flow. - operationId: gitConnectCallback - security: [] + - Project Imports + summary: Start a Vercel project import + description: Creates a Volcano project from an importable production preflight report. Retrying the same request with the same Idempotency-Key returns the existing run. + operationId: startProjectImport + security: + - UserToken: [] + - AuthUserAccessToken: [] parameters: - - name: code - in: query - required: false - description: GitHub user authorization code. - schema: - type: string - - name: state - in: query + - name: provider + in: path required: true - description: Signed connect state generated by startGitConnect. schema: - type: string - - name: error - in: query - required: false - description: Provider error returned by GitHub. + $ref: '#/components/schemas/ImportProvider' + - name: Idempotency-Key + in: header + required: true schema: type: string + minLength: 1 + maxLength: 255 + pattern: ^[!-~]+$ + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ProjectImportStartRequest' responses: - '303': - description: Redirect back to the app after a successful or failed connect attempt + '202': + description: Import run accepted headers: Location: - description: Redirect target + required: true schema: type: string + content: + application/json: + schema: + $ref: '#/components/schemas/ProjectImportRun' '400': - description: Invalid callback request or state + description: Invalid request or idempotency key content: application/json: schema: $ref: '#/components/schemas/Error' - '429': - description: Too many callback attempts from this client + '401': + description: Not authenticated content: application/json: schema: $ref: '#/components/schemas/Error' - '500': - description: Failed to complete the connection + '403': + description: Provider permission or project admission denied content: application/json: schema: $ref: '#/components/schemas/Error' - '503': - description: Git provider integration is not configured + '404': + description: Connection or provider source not found content: application/json: schema: $ref: '#/components/schemas/Error' - /projects: - get: - tags: - - Projects - summary: List all projects for authenticated user - description: | - Returns projects that are not deleting or deleted, newest first. - Supports two mutually exclusive pagination modes. Offset mode uses - `page` and `limit`. Cursor mode uses `cursor` or `ending_before` with - `limit`, returns `next_cursor`/`prev_cursor`, and supports a bounded - `offset` past the cursor anchor. Supplying `limit` without `page` - selects cursor mode. `search` applies a case-insensitive project-name - filter in either mode. Sending `page` with `cursor` or `ending_before`, - or sending both cursor directions, returns 400. - operationId: listProjects - security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/Page' - - $ref: '#/components/parameters/Limit' - - $ref: '#/components/parameters/Cursor' - - $ref: '#/components/parameters/EndingBefore' - - $ref: '#/components/parameters/Offset' - - $ref: '#/components/parameters/Search' - responses: - '200': - description: Successful response + '409': + description: Preflight is stale, idempotency key was reused, or destination conflicts content: application/json: schema: - $ref: '#/components/schemas/PaginatedProjects' - '400': - description: Invalid or conflicting pagination parameters + $ref: '#/components/schemas/Error' + '422': + description: Source is not importable content: application/json: schema: $ref: '#/components/schemas/Error' - post: - tags: - - Projects - summary: Create a new project - description: | - Creates a project for the authenticated user. - Each user can create up to 1,000 projects. Requests over this cap return 403. - operationId: createProject - security: - - UserToken: [] - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/CreateProjectRequest' - responses: - '201': - description: Project created + '429': + description: Provider rate limit exceeded content: application/json: schema: - $ref: '#/components/schemas/Project' - '400': - description: Bad request + $ref: '#/components/schemas/Error' + '500': + description: Failed to start the import content: application/json: schema: $ref: '#/components/schemas/Error' - '403': - description: Project limit exceeded for the user + '503': + description: Provider unavailable or integration not configured content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}: + /imports/{provider}/runs/{runId}: get: tags: - - Projects - summary: Get project by ID - operationId: getProject + - Project Imports + summary: Get a project import run + operationId: getProjectImportRun security: - UserToken: [] + - AuthUserAccessToken: [] parameters: - - $ref: '#/components/parameters/ProjectId' + - name: provider + in: path + required: true + schema: + $ref: '#/components/schemas/ImportProvider' + - name: runId + in: path + required: true + schema: + type: string + format: uuid responses: '200': - description: Successful response + description: Import run status content: application/json: schema: - $ref: '#/components/schemas/Project' + $ref: '#/components/schemas/ProjectImportRun' + '400': + description: Invalid import run ID + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '401': + description: Not authenticated + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '404': - description: Project not found + description: Import run not found content: application/json: schema: $ref: '#/components/schemas/Error' - patch: + '500': + description: Failed to get the import run + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /user/git/connect: + post: tags: - - Projects - summary: Update project metadata and region policy - operationId: updateProject + - Git Connections + summary: Start a git provider connection + description: | + Starts a first-party dashboard user's git provider connection flow and + returns the provider authorization URL. The response also sets a + short-lived HttpOnly callback binding cookie tied to the authenticated + user through the signed provider state. + operationId: startGitConnect security: - UserToken: [] + - AuthUserAccessToken: [] parameters: - - $ref: '#/components/parameters/ProjectId' - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/UpdateProjectRequest' + - name: provider + in: query + required: false + description: Git provider to connect. Defaults to github. + schema: + type: string + enum: + - github + default: github + - name: redirect + in: query + required: false + description: URL to redirect the browser to after the provider callback completes. + schema: + type: string + - name: callback_url + in: query + required: false + description: Same-origin browser callback used to relay provider parameters before completing the connection. + schema: + type: string + format: uri + pattern: ^https://[^/?#]+/[^?#]*$|^http://(?:localhost|127\.0\.0\.1|\[::1\])(?::[0-9]+)?/[^?#]*$ responses: '200': - description: Project updated + description: Provider authorization URL content: application/json: schema: - $ref: '#/components/schemas/Project' + $ref: '#/components/schemas/GitConnectStartResponse' '400': - description: Bad request + description: Unsupported provider or invalid redirect content: application/json: schema: $ref: '#/components/schemas/Error' - '403': - description: Forbidden (for example, selecting subset regions on non-PRO plan) + '401': + description: Not authenticated content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Project not found + '500': + description: Failed to start the connection content: application/json: schema: $ref: '#/components/schemas/Error' - '409': - description: Conflict (project name already exists or a resource deployment blocks a region change) + '503': + description: Git provider integration is not configured content: application/json: schema: $ref: '#/components/schemas/Error' - delete: + /user/git/connections: + get: tags: - - Projects - summary: Delete a project - description: | - Starts asynchronous project deletion. The project remains available from - `GET /projects/{id}` with `status: deleting` until cleanup finishes, but is - removed from project lists as soon as deletion starts. After cleanup it - returns 404. - operationId: deleteProject + - Git Connections + summary: List git provider connections + operationId: listGitConnections security: - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' + - AuthUserAccessToken: [] responses: - '202': - description: Project deletion started - '404': - description: Project not found + '200': + description: Stored git provider connections + content: + application/json: + schema: + $ref: '#/components/schemas/GitConnectionsResponse' + '401': + description: Not authenticated content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/health: - get: + '500': + description: Failed to list connections + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '503': + description: Git provider integration is not configured + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /user/git/connections/{connectionId}: + delete: tags: - - Projects - summary: Get project health - description: | - Returns a fast control-plane health snapshot for the project and its - deployed resources. The endpoint does not run live provider probes. - A successful request returns 200 even when the project status is - `unhealthy`; transport and authorization failures use HTTP errors. - operationId: getProjectHealth + - Git Connections + summary: Delete a git provider connection + operationId: deleteGitConnection security: - UserToken: [] + - AuthUserAccessToken: [] parameters: - - $ref: '#/components/parameters/ProjectId' + - name: connectionId + in: path + required: true + description: Connection ID to delete + schema: + type: string + format: uuid responses: - '200': - description: Project health snapshot retrieved + '204': + description: Connection deleted + '400': + description: Malformed connection ID content: application/json: schema: - $ref: '#/components/schemas/ProjectHealthResponse' + $ref: '#/components/schemas/Error' '401': - description: Unauthorized - invalid or missing token + description: Not authenticated content: application/json: schema: $ref: '#/components/schemas/Error' - '403': - description: Access denied + '404': + description: Connection not found content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Project not found + '500': + description: Failed to delete connection content: application/json: schema: $ref: '#/components/schemas/Error' - '500': - description: Internal server error + '503': + description: Git provider integration is not configured content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/metrics/query: - post: + /user/git/connections/{connectionId}/installations: + get: tags: - - Projects - summary: Query project runtime metrics + - Git Connections + summary: List GitHub App installations accessible to a connection description: | - Evaluates a batch of named, curated runtime metric queries over one - trailing time range. Query IDs correlate each request with its result; - raw backend query languages are intentionally not exposed. - operationId: queryProjectMetrics + Live proxy to GitHub: lists the platform GitHub App installations the + connection's stored user token can access. Nothing is persisted by + this call. + operationId: listGitInstallations security: - UserToken: [] + - AuthUserAccessToken: [] parameters: - - $ref: '#/components/parameters/ProjectId' - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/ProjectMetricsQueryRequest' + - name: connectionId + in: path + required: true + description: Connection ID to browse installations for. + schema: + type: string + format: uuid responses: '200': - description: Project runtime metric queries evaluated + description: Installations accessible to the connection content: application/json: schema: - $ref: '#/components/schemas/ProjectMetricsQueryResponse' + $ref: '#/components/schemas/GitInstallationsResponse' '400': - description: Invalid metric query + description: Malformed connection ID content: application/json: schema: $ref: '#/components/schemas/Error' '401': - description: Unauthorized - invalid or missing token - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '403': - description: Access denied + description: Not authenticated content: application/json: schema: $ref: '#/components/schemas/Error' '404': - description: Project not found + description: Connection not found content: application/json: schema: $ref: '#/components/schemas/Error' '500': - description: Internal server error + description: Failed to list installations content: application/json: schema: $ref: '#/components/schemas/Error' '503': - description: Runtime metrics backend unavailable + description: Git provider integration is not configured content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/logo: + /user/git/connections/{connectionId}/installations/{installationId}/repositories: get: tags: - - Projects - summary: Get the project logo image + - Git Connections + summary: List repos accessible to a connection through an installation description: | - Returns the raw logo image stored in the project's storage folder. This - endpoint is unauthenticated so the asset can be rendered directly in an - `` tag; project IDs are unguessable UUIDs and logos are - non-sensitive branding. The `Project.logo_url` field exposes a versioned - path to this endpoint. - operationId: getProjectLogo - security: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - responses: - '200': - description: Logo image - content: - image/png: - schema: - type: string - format: binary - image/jpeg: - schema: - type: string - format: binary - image/gif: - schema: - type: string - format: binary - image/webp: - schema: - type: string - format: binary - image/svg+xml: - schema: - type: string - format: binary - '404': - description: Project or logo not found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - post: - tags: - - Projects - summary: Upload or replace the project logo - description: | - Uploads an image as the project's logo, storing it in the project's - storage folder. Accepts PNG, JPEG, GIF, WebP, or SVG up to 2 MB. Replaces any - existing logo. Returns the updated project, whose `logo_url` reflects - the new logo. - operationId: uploadProjectLogo + Live proxy to GitHub: lists the repos the connection's stored user + token can access through installationId. Nothing is persisted by this + call. + operationId: listGitInstallationRepositories security: - UserToken: [] + - AuthUserAccessToken: [] parameters: - - $ref: '#/components/parameters/ProjectId' - requestBody: - required: true - content: - multipart/form-data: - schema: - type: object - required: - - logo - properties: - logo: - type: string - format: binary - description: Logo image (PNG, JPEG, GIF, WebP, or SVG; max 2 MB) + - name: connectionId + in: path + required: true + description: Connection ID to browse repositories for. + schema: + type: string + format: uuid + - name: installationId + in: path + required: true + description: GitHub App installation ID. + schema: + type: integer + format: int64 responses: '200': - description: Logo uploaded + description: Repositories accessible through the installation content: application/json: schema: - $ref: '#/components/schemas/Project' + $ref: '#/components/schemas/GitRepositoriesResponse' '400': - description: Bad request (missing file, unsupported type, or too large) + description: Malformed connection or installation ID content: application/json: schema: $ref: '#/components/schemas/Error' - '403': - description: Access denied + '401': + description: Not authenticated content: application/json: schema: $ref: '#/components/schemas/Error' '404': - description: Project not found + description: Connection not found content: application/json: schema: $ref: '#/components/schemas/Error' - '409': - description: Project is being deleted + '500': + description: Failed to list repositories content: application/json: schema: $ref: '#/components/schemas/Error' '503': - description: Logo storage is not configured + description: Git provider integration is not configured content: application/json: schema: $ref: '#/components/schemas/Error' - delete: + /github/callback: + get: tags: - - Projects - summary: Remove the project logo + - Git Connections + summary: Complete a GitHub App connection callback description: | - Deletes the project logo from the project's storage folder and clears its - record. Returns the updated project with no `logo_url`. - operationId: deleteProjectLogo - security: - - UserToken: [] + Public GitHub App callback. The signed state and callback binding cookie + bind the provider authorization to the browser that started the flow. + operationId: gitConnectCallback + security: [] parameters: - - $ref: '#/components/parameters/ProjectId' + - name: code + in: query + required: false + description: GitHub user authorization code. + schema: + type: string + - name: state + in: query + required: true + description: Signed connect state generated by startGitConnect. + schema: + type: string + - name: error + in: query + required: false + description: Provider error returned by GitHub. + schema: + type: string responses: - '200': - description: Logo removed - content: - application/json: + '303': + description: Redirect back to the app after a successful or failed connect attempt + headers: + Location: + description: Redirect target schema: - $ref: '#/components/schemas/Project' - '403': - description: Access denied + type: string + '400': + description: Invalid callback request or state content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Project not found + '429': + description: Too many callback attempts from this client content: application/json: schema: $ref: '#/components/schemas/Error' - '409': - description: Project is being deleted + '500': + description: Failed to complete the connection content: application/json: schema: $ref: '#/components/schemas/Error' '503': - description: Logo storage is not configured + description: Git provider integration is not configured content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/usage: + /projects: get: tags: - Projects - summary: Get usage metrics for a project + summary: List all projects for authenticated user description: | - Returns project usage totals for the current usage month plus - recent hourly and daily time series for each tracked metric. - operationId: getProjectUsage + Returns projects that are not deleting or deleted, newest first. + Supports two mutually exclusive pagination modes. Offset mode uses + `page` and `limit`. Cursor mode uses `cursor` or `ending_before` with + `limit`, returns `next_cursor`/`prev_cursor`, and supports a bounded + `offset` past the cursor anchor. Supplying `limit` without `page` + selects cursor mode. `search` applies a case-insensitive project-name + filter in either mode. `include` optionally expands each returned + project with its Git connection and/or aggregate health summary using + `git_connection` and `health`. Sending `page` with `cursor` or `ending_before`, + or sending both cursor directions, returns 400. + operationId: listProjects security: - UserToken: [] parameters: - - $ref: '#/components/parameters/ProjectId' + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/Limit' + - $ref: '#/components/parameters/Cursor' + - $ref: '#/components/parameters/EndingBefore' + - $ref: '#/components/parameters/Offset' + - $ref: '#/components/parameters/Search' + - name: include + in: query + required: false + description: Optional comma-separated project metadata expansions. + style: form + explode: false + schema: + type: array + uniqueItems: true + items: + type: string + enum: + - git_connection + - health responses: '200': - description: Usage metrics retrieved - content: - application/json: - schema: - $ref: '#/components/schemas/ProjectUsageResponse' - '403': - description: Access denied + description: Successful response content: application/json: schema: - $ref: '#/components/schemas/Error' - '404': - description: Project not found + $ref: '#/components/schemas/PaginatedProjects' + '400': + description: Invalid or conflicting pagination parameters content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/access-tokens: - get: + post: tags: - - Project Access Tokens - summary: List a project's access tokens + - Projects + summary: Create a new project description: | - Lists the project's access tokens, newest first. Secrets are never - returned: only a hash is stored, so a token's value exists solely in the - response to the create call. - - Only tokens that can still authenticate are returned by default, so - revoked and expired ones are hidden. Pass `include_revoked=true` to see - them, which is how you find out what a key did before it stopped working. - - Requires a platform token. A project access token cannot manage project - access tokens, so a leaked credential cannot enumerate or replace itself. - operationId: listProjectAccessTokens + Creates a project for the authenticated user. + Each user can create up to 1,000 projects. Requests over this cap return 403. + operationId: createProject security: - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/Page' - - $ref: '#/components/parameters/Limit' - - $ref: '#/components/parameters/Search' - - name: include_revoked - in: query - required: false - description: | - Include tokens that can no longer authenticate — both revoked and - expired ones. - schema: - type: boolean - default: false + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/CreateProjectRequest' responses: - '200': - description: Successful response + '201': + description: Project created content: application/json: schema: - $ref: '#/components/schemas/PaginatedProjectAccessTokens' - '401': - description: Unauthorized - invalid or missing token + $ref: '#/components/schemas/Project' + '400': + description: Bad request content: application/json: schema: $ref: '#/components/schemas/Error' '403': - description: Forbidden - not the project owner, or a project access token was used + description: Project limit exceeded for the user content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Project not found - content: + /projects/{id}: + get: + tags: + - Projects + summary: Get project by ID + operationId: getProject + security: + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + responses: + '200': + description: Successful response + content: + application/json: + schema: + $ref: '#/components/schemas/Project' + '404': + description: Project not found + content: application/json: schema: $ref: '#/components/schemas/Error' - post: + patch: tags: - - Project Access Tokens - summary: Create a project access token - description: | - Creates a project access token and returns its secret. - - The secret is in this response and nowhere else. Only its hash is - stored, so it cannot be retrieved, displayed, or recovered later — save - it when you create it. - - The name must be unique within the project, which also makes this call - safe to retry: a duplicate is rejected rather than quietly minting a - second credential whose secret you never saw. - - Requires a platform token. - operationId: createProjectAccessToken + - Projects + summary: Update project metadata and region policy + operationId: updateProject security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' requestBody: @@ -1480,28 +1766,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateProjectAccessTokenRequest' + $ref: '#/components/schemas/UpdateProjectRequest' responses: - '201': - description: Token created - save the secret now, it cannot be retrieved again + '200': + description: Project updated content: application/json: schema: - $ref: '#/components/schemas/CreatedProjectAccessToken' + $ref: '#/components/schemas/Project' '400': - description: Bad request - invalid name, scope, or expiry - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '401': - description: Unauthorized - invalid or missing token + description: | + Bad request (no region selected, an unknown region, or — for a + project holding durable functions — a region that does not offer + durable execution) content: application/json: schema: $ref: '#/components/schemas/Error' '403': - description: Forbidden - not the project owner, or a project access token was used + description: Forbidden (for example, selecting subset regions on non-PRO plan) content: application/json: schema: @@ -1513,145 +1796,58 @@ paths: schema: $ref: '#/components/schemas/Error' '409': - description: | - Duplicate name, token limit reached, or the project is being - deleted. Tell them apart with `code`, which is one of - `access_token_name_exists`, `access_token_limit_reached`, or - `project_deleting` — the message text is not a contract. + description: Conflict (project name already exists or a resource deployment blocks a region change) content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/access-tokens/usage: - get: + delete: tags: - - Project Access Tokens - summary: Per-day request counts for every access token in a project + - Projects + summary: Delete a project description: | - Returns a zero-filled daily series of request counts for each of the - project's access tokens, oldest first. Every day in the window is - present, so a gap reads as zero rather than missing. - - Revoked tokens are included, because the traffic they made before - revocation is usually the reason you are looking. - - `days` defaults to 30 and is capped at 60, which is also how long per-day - counts are retained — a longer window cannot be answered. - operationId: listProjectAccessTokensUsage + Starts asynchronous project deletion. The project remains available from + `GET /projects/{id}` with `status: deleting` until cleanup finishes, but is + removed from project lists as soon as deletion starts. After cleanup it + returns 404. + operationId: deleteProject security: - UserToken: [] - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - name: days - in: query - required: false - description: Number of trailing days to return (1-60, default 30). - schema: - type: integer - minimum: 1 - maximum: 60 - default: 30 responses: - '200': - description: Successful response - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ProjectAccessTokenUsage' - '400': - description: Bad request - invalid window - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '401': - description: Unauthorized - invalid or missing token - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '403': - description: Forbidden - not the project owner - content: - application/json: - schema: - $ref: '#/components/schemas/Error' + '202': + description: Project deletion started '404': description: Project not found content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/access-tokens/{tokenId}: + /projects/{id}/health: get: tags: - - Project Access Tokens - summary: Get a project access token + - Projects + summary: Get project health description: | - Returns one token's metadata. Never its secret, which is not stored in a - recoverable form. - - Requires a platform token. - operationId: getProjectAccessToken + Returns a fast control-plane health snapshot for the project and its + deployed resources. The endpoint does not run live provider probes. + A successful request returns 200 even when the project status is + `unhealthy`; transport and authorization failures use HTTP errors. + operationId: getProjectHealth security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/TokenId' responses: '200': - description: Successful response - content: - application/json: - schema: - $ref: '#/components/schemas/ProjectAccessToken' - '401': - description: Unauthorized - invalid or missing token - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '403': - description: Forbidden - not the project owner, or a project access token was used - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '404': - description: Token not found + description: Project health snapshot retrieved content: application/json: schema: - $ref: '#/components/schemas/Error' - delete: - tags: - - Project Access Tokens - summary: Revoke a project access token - description: | - Revokes the token. It stops authenticating immediately in the region - handling this call and within seconds across Volcano's other regions. - - The record is kept rather than deleted, so the token's name, prefix, last - use, and request history stay available — which is what you need if you - are revoking because a secret leaked. Revoking an already-revoked token - succeeds. - - Revoking does not undo anything the token already did. Treat whatever it - could reach as exposed and rotate accordingly. - - Requires a platform token. - operationId: revokeProjectAccessToken - security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/TokenId' - responses: - '204': - description: Token revoked + $ref: '#/components/schemas/ProjectHealthResponse' '401': description: Unauthorized - invalid or missing token content: @@ -1659,59 +1855,53 @@ paths: schema: $ref: '#/components/schemas/Error' '403': - description: Forbidden - not the project owner, or a project access token was used + description: Access denied content: application/json: schema: $ref: '#/components/schemas/Error' '404': - description: Token not found + description: Project not found content: application/json: schema: $ref: '#/components/schemas/Error' - '409': - description: Conflict - the project is being deleted + '500': + description: Internal server error content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/access-tokens/{tokenId}/usage: - get: + /projects/{id}/metrics/query: + post: tags: - - Project Access Tokens - summary: Per-day request counts for one access token + - Projects + summary: Query project runtime metrics description: | - Returns a zero-filled daily series of request counts for a single token, - oldest first, so the response always has exactly `days` entries. - - `days` defaults to 30 and is capped at 60, matching how long per-day - counts are retained. - operationId: getProjectAccessTokenUsage + Evaluates a batch of named, curated runtime metric queries over one + trailing time range. Query IDs correlate each request with its result; + raw backend query languages are intentionally not exposed. + operationId: queryProjectMetrics security: - UserToken: [] - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/TokenId' - - name: days - in: query - required: false - description: Number of trailing days to return (1-60, default 30). - schema: - type: integer - minimum: 1 - maximum: 60 - default: 30 + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ProjectMetricsQueryRequest' responses: '200': - description: Successful response + description: Project runtime metric queries evaluated content: application/json: schema: - $ref: '#/components/schemas/ProjectAccessTokenUsage' + $ref: '#/components/schemas/ProjectMetricsQueryResponse' '400': - description: Bad request - invalid window + description: Invalid metric query content: application/json: schema: @@ -1723,135 +1913,117 @@ paths: schema: $ref: '#/components/schemas/Error' '403': - description: Forbidden - not the project owner + description: Access denied content: application/json: schema: $ref: '#/components/schemas/Error' '404': - description: Token not found + description: Project not found content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/config: + '500': + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '503': + description: Runtime metrics backend unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /projects/{id}/logo: get: tags: - Projects - summary: Export project configuration + summary: Get the project logo image description: | - Exports the project's current user-facing configuration as a - declarative manifest. Returns JSON by default. Request the canonical - volcano-config.yaml rendering with `Accept: application/yaml` or - `?format=yaml`; the YAML is returned verbatim as the raw response body - (`Content-Type: application/yaml`) and is meant to be saved as-is. - Write-only secrets (SMTP password, OAuth client secrets, TLS material) - are omitted from the export; the YAML rendering adds a header comment - describing how to set them via CLI environment interpolation. - operationId: getProjectConfig - security: - - UserToken: [] + Returns the raw logo image stored in the project's storage folder. This + endpoint is unauthenticated so the asset can be rendered directly in an + `` tag; project IDs are unguessable UUIDs and logos are + non-sensitive branding. The `Project.logo_url` field exposes a versioned + path to this endpoint. + operationId: getProjectLogo + security: [] parameters: - $ref: '#/components/parameters/ProjectId' - - name: format - in: query - required: false - description: Response format override. Takes precedence over the Accept header. - schema: - type: string - enum: - - json - - yaml responses: '200': - description: | - Current project configuration. JSON by default; when YAML is - requested the body is the canonical volcano-config.yaml document - served verbatim with `Content-Type: application/yaml`. + description: Logo image content: - application/json: + image/png: schema: - $ref: '#/components/schemas/ProjectConfig' - application/yaml: + type: string + format: binary + image/jpeg: schema: type: string format: binary - description: | - Canonical volcano-config.yaml document returned verbatim, - ready to be saved as-is. The response body is limited to - 4,194,304 bytes, matching the configuration apply limit. - '401': - description: Unauthorized - invalid or missing token - content: - application/json: + image/gif: schema: - $ref: '#/components/schemas/Error' - '404': - description: Project not found - content: - application/json: + type: string + format: binary + image/webp: schema: - $ref: '#/components/schemas/Error' - '413': - description: Canonical YAML export exceeds 4,194,304 bytes + type: string + format: binary + image/svg+xml: + schema: + type: string + format: binary + '404': + description: Project or logo not found content: application/json: schema: $ref: '#/components/schemas/Error' - put: + post: tags: - Projects - summary: Apply project configuration + summary: Upload or replace the project logo description: | - Validates and applies a declarative configuration manifest to the - project, reconciling each declared section and returning a per-resource - report. Omitted sections are untouched. Declared collection keys - (`variables`, `buckets[].policies`, `auth.providers.oauth`, - `auth.email.templates`, `functions[].schedulers`) are fully synced: - resources absent from the manifest are deleted. Functions, frontends, - databases, and buckets are never created or deleted; manifest entries - for resources that do not exist are skipped and reported in `skipped`, - and existing resources missing from a declared section are reported in - `missing`. Validation failures (including plan-gate violations) return - 422 and nothing is applied. Set `dry_run=true` to get the projected - report without applying changes. Applies are serialized per project; - a concurrent apply returns 409. - operationId: applyProjectConfig + Uploads an image as the project's logo, storing it in the project's + storage folder. Accepts PNG, JPEG, GIF, WebP, or SVG up to 2 MB. Replaces any + existing logo. Returns the updated project, whose `logo_url` reflects + the new logo. + operationId: uploadProjectLogo security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - name: dry_run - in: query - required: false - description: Validate and report projected actions without applying changes. - schema: - type: boolean - default: false requestBody: required: true content: - application/json: + multipart/form-data: schema: - $ref: '#/components/schemas/ProjectConfig' + type: object + required: + - logo + properties: + logo: + type: string + format: binary + description: Logo image (PNG, JPEG, GIF, WebP, or SVG; max 2 MB) responses: '200': - description: | - Apply report. Individual entries may still carry `action: error` - for apply-phase failures (summary.errors > 0); already-applied - changes are not rolled back. + description: Logo uploaded content: application/json: schema: - $ref: '#/components/schemas/ProjectConfigApplyResult' + $ref: '#/components/schemas/Project' '400': - description: Malformed request body + description: Bad request (missing file, unsupported type, or too large) content: application/json: schema: $ref: '#/components/schemas/Error' - '401': - description: Unauthorized - invalid or missing token + '403': + description: Access denied content: application/json: schema: @@ -1863,163 +2035,108 @@ paths: schema: $ref: '#/components/schemas/Error' '409': - description: Another apply is in progress for this project + description: Project is being deleted content: application/json: schema: $ref: '#/components/schemas/Error' - '422': - description: Manifest validation failed; nothing was applied + '503': + description: Logo storage is not configured content: application/json: schema: - $ref: '#/components/schemas/ProjectConfigValidationErrorResponse' - /projects/{id}/git-connection/repository: - post: + $ref: '#/components/schemas/Error' + delete: tags: - Projects - - Git Connections - summary: Create a GitHub repository for a project and connect it + summary: Remove the project logo description: | - Creates a new, empty repository under the caller's GitHub account or an - organization they have the App installed on, then binds the project to - it. This is the "Create on Git" counterpart to importing an existing - repo with PUT /projects/{id}/git-connection. - - The repository is created without an initial commit: its first commit - comes from the client that already holds the project's source, pushed - with the user's own Git credentials. Volcano never pushes on the user's - behalf. - - Because it has no commits, it has no real default branch either — so - name the branch you are about to push in production_branch. Omitting it - binds the branch name GitHub reports for the new repository, which is - the account's configured default and only a guess at what will be - pushed; a push to anything else deploys nothing. - - A 201 with app_installed false means the repository and the binding both - exist but the App cannot see the repo, so no push will ever deploy until - the user grants access at install_url. - operationId: createProjectGitRepository + Deletes the project logo from the project's storage folder and clears its + record. Returns the updated project with no `logo_url`. + operationId: deleteProjectLogo security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/CreateProjectGitRepositoryRequest' responses: - '201': - description: Repository created and connected to the project - content: - application/json: - schema: - $ref: '#/components/schemas/CreatedProjectGitConnection' - '400': - description: | - Malformed request body, a missing repository name, a root_directory - that is not a relative path inside the repository, or a - production_branch that is not a valid Git branch name. All are - refused before the repository is created, so none of them means a - repository exists. - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '401': - description: Unauthorized, or the stored GitHub connection needs reconnecting + '200': + description: Logo removed content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: '#/components/schemas/Project' '403': - description: | - Project not owned by the caller, or the GitHub account refused the - creation + description: Access denied content: application/json: schema: $ref: '#/components/schemas/Error' '404': - description: | - Project not found, no GitHub connection, or the App is not installed - on the requested owner account + description: Project not found content: application/json: schema: $ref: '#/components/schemas/Error' '409': - description: | - The project already has a repository connected, or a concurrent - request connected one first, or the created repository landed under - a different account than the one selected. A body naming a - repository means that repository exists on GitHub and was not - connected; a body that names none means nothing was created. + description: Project is being deleted content: application/json: schema: $ref: '#/components/schemas/Error' - '422': - description: | - GitHub refused to create the repository. The name may already exist - on the account, the organization may forbid member repository - creation, or the account may be at its repository limit — GitHub - reports all of these identically, so the cause is not distinguished. + '503': + description: Logo storage is not configured content: application/json: schema: $ref: '#/components/schemas/Error' - '429': - description: GitHub rate limited the request + /projects/{id}/usage: + get: + tags: + - Projects + summary: Get usage metrics for a project + description: | + Returns project usage totals for the current usage month plus + recent hourly and daily time series for each tracked metric. + operationId: getProjectUsage + security: + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + responses: + '200': + description: Usage metrics retrieved content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': - description: | - The repository was created but could not be connected, its creation - could not be confirmed, or the request failed before reaching - GitHub. The body is the discriminator, as it is for 409: one that - names a repository, or says the outcome could not be confirmed, - means a repository may exist — check the account before retrying - with another name. One that says no repository was created means - exactly that, and the same name can be retried. + $ref: '#/components/schemas/ProjectUsageResponse' + '403': + description: Access denied content: application/json: schema: $ref: '#/components/schemas/Error' - '503': - description: Git provider integration is not configured + '404': + description: Project not found content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/git-connection/production-branch: + /projects/{id}/shared-variables: put: tags: - Projects - - Git Connections - summary: Set the branch a project deploys from + summary: Replace shared variable names description: | - Changes only the production branch, leaving the repository binding - alone. PUT /projects/{id}/git-connection can also set it, but that is a - full rebind: it needs connection_id, installation_id and a repository - selector resent, and re-resolves the repository against GitHub for a - field that does not depend on it. - - The branch does not have to exist. It is validated as a Git branch name - and nothing more, so a project can be pointed at a branch that is about - to be pushed — the case a repository created empty depends on. - - Setting the branch here marks it as the project's own choice, so a later - default-branch rename on GitHub no longer moves it. Projects that never - set one keep following the repository's default branch. - operationId: setProjectGitProductionBranch + Atomically replaces the complete shared function-variable list without + changing values. Names must already exist. Validates final affected + function environments before membership or propagation side effects. + An empty list clears membership. Omitted names remain stored as non-shared variables. + operationId: replaceSharedVariables security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' requestBody: @@ -2027,87 +2144,207 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SetProjectGitProductionBranchRequest' + type: object + additionalProperties: false + required: + - shared_variables + not: + required: + - expected_shared_variables + - expected_shared_variables_digest + properties: + shared_variables: + type: array + uniqueItems: true + items: + type: string + maxLength: 256 + pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$ + expected_shared_variables: + type: array + uniqueItems: true + description: When present, replace only if the current complete shared list matches this list. + items: + type: string + maxLength: 256 + pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$ + expected_shared_variables_digest: + type: string + minLength: 64 + maxLength: 64 + pattern: ^[a-f0-9]{64}$ + description: SHA-256 of the sorted unique current shared names joined by a newline. Use instead of expected_shared_variables for a compact conditional replacement. responses: - '200': - description: The project's repo connection, with the new branch - content: - application/json: - schema: - $ref: '#/components/schemas/ProjectGitConnection' + '204': + description: Shared list replaced and affected function synchronization started. '400': - description: | - Malformed request body, or a production_branch that is not a valid - Git branch name + description: Invalid names or final function environment. content: application/json: schema: $ref: '#/components/schemas/Error' '401': - description: Unauthorized - invalid or missing token + description: Unauthorized + '404': + description: Project not found + '409': + description: Shared list changed since it was read. content: application/json: schema: $ref: '#/components/schemas/Error' - '403': - description: Project not owned by the caller + '413': + description: Request body exceeds 4,194,304 bytes content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: | - Project not found, or it has no repository connected. The branch is - part of the connection, so there is nothing to set it on until one - exists. + '500': + description: Persistence or synchronization failed + '503': + description: Shared variable membership writes are disabled during rollout content: application/json: schema: $ref: '#/components/schemas/Error' - '500': - description: Failed to set the production branch - content: + /projects/{id}/frontend-shared-variables: + put: + tags: + - Projects + summary: Replace frontend shared variable names + description: | + Atomically replaces the complete shared frontend-variable list without + changing values. Names must already exist. Validates final affected + frontend environments before membership or propagation side effects. + An empty list clears membership. Omitted names remain stored outside the frontend shared list. + operationId: replaceFrontendSharedVariables + security: + - UserToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + requestBody: + required: true + content: + application/json: + schema: + type: object + additionalProperties: false + required: + - frontend_shared_variables + not: + required: + - expected_frontend_shared_variables + - expected_frontend_shared_variables_digest + properties: + frontend_shared_variables: + type: array + uniqueItems: true + items: + type: string + maxLength: 256 + pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$ + expected_frontend_shared_variables: + type: array + uniqueItems: true + description: When present, replace only if the current complete frontend shared list matches this list. + items: + type: string + maxLength: 256 + pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$ + expected_frontend_shared_variables_digest: + type: string + minLength: 64 + maxLength: 64 + pattern: ^[a-f0-9]{64}$ + description: SHA-256 of the sorted unique current shared names joined by a newline. Use instead of expected_frontend_shared_variables for a compact conditional replacement. + responses: + '204': + description: Frontend shared list replaced and affected frontend synchronization started. + '400': + description: Invalid names or final frontend environment. + content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/git-connection: + '401': + description: Unauthorized + '404': + description: Project not found + '409': + description: Frontend shared list changed since it was read. + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '413': + description: Request body exceeds 4,194,304 bytes + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '500': + description: Persistence or synchronization failed + /projects/{id}/config: get: tags: - Projects - - Git Connections - summary: Get a project's repo connection - operationId: getProjectGitConnection + summary: Export project configuration + description: | + Exports the project's current user-facing configuration as a + declarative manifest. Returns JSON by default. Request the canonical + volcano-config.yaml rendering with `Accept: application/yaml` or + `?format=yaml`; the YAML is returned verbatim as the raw response body + (`Content-Type: application/yaml`) and is meant to be saved as-is. + Variable values and write-only secrets (SMTP password, OAuth client secrets, TLS material) + are omitted from the export; shared_variables and frontend_shared_variables contain names only; the YAML rendering adds a header comment + describing how to set them via CLI environment interpolation. + operationId: getProjectConfig security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' + - name: format + in: query + required: false + description: Response format override. Takes precedence over the Accept header. + schema: + type: string + enum: + - json + - yaml responses: '200': - description: The project's current repo connection + description: | + Current project configuration. JSON by default; when YAML is + requested the body is the canonical volcano-config.yaml document + served verbatim with `Content-Type: application/yaml`. content: application/json: schema: - $ref: '#/components/schemas/ProjectGitConnection' + $ref: '#/components/schemas/ProjectConfig' + application/yaml: + schema: + type: string + format: binary + description: | + Canonical volcano-config.yaml document returned verbatim, + ready to be saved as-is. The response body is limited to + 4,194,304 bytes, matching the configuration apply limit. '401': description: Unauthorized - invalid or missing token content: application/json: schema: $ref: '#/components/schemas/Error' - '403': - description: Project not owned by the caller - content: - application/json: - schema: - $ref: '#/components/schemas/Error' '404': - description: Project not found, or has no repo connection + description: Project not found content: application/json: schema: $ref: '#/components/schemas/Error' - '500': - description: Failed to get project git connection + '413': + description: Canonical YAML export exceeds 4,194,304 bytes content: application/json: schema: @@ -2115,43 +2352,52 @@ paths: put: tags: - Projects - - Git Connections - summary: Connect or update a project's repo connection + summary: Apply project configuration description: | - Full replace, following Vercel's model: many projects may point at the - same repo, so this only binds the project — it never creates or - deletes git-provider state. Used for both the initial connect and - later edits (repo change, root directory, production branch). - Resolves the repository_id or repo_full_name selector against the repos - accessible through installation_id via connection_id's stored GitHub - user token, then persists repository metadata only from that validated - GitHub response. - operationId: connectProjectGit + Validates and applies a declarative configuration manifest to the + project, reconciling each declared section and returning a per-resource + report. Omitted sections are untouched. Declared collection keys + (`variables`, `buckets[].policies`, `auth.providers.oauth`, + `auth.email.templates`, `functions[].schedulers`) are fully synced: + resources absent from the manifest are deleted. Functions, frontends, + databases, and buckets are never created or deleted; manifest entries + for resources that do not exist are skipped and reported in `skipped`, + and existing resources missing from a declared section are reported in + `missing`. Validation failures (including plan-gate violations) return + 422 and nothing is applied. Set `dry_run=true` to get the projected + report without applying changes. Applies are serialized per project; + a concurrent apply returns 409. + operationId: applyProjectConfig security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' + - name: dry_run + in: query + required: false + description: Validate and report projected actions without applying changes. + schema: + type: boolean + default: false requestBody: required: true content: application/json: schema: - $ref: '#/components/schemas/ConnectProjectGitRequest' + $ref: '#/components/schemas/ProjectConfig' responses: '200': - description: The project's repo connection + description: | + Apply report. Individual entries may still carry `action: error` + for apply-phase failures (summary.errors > 0); already-applied + changes are not rolled back. content: application/json: schema: - $ref: '#/components/schemas/ProjectGitConnection' + $ref: '#/components/schemas/ProjectConfigApplyResult' '400': - description: | - Malformed request body, no repository selector, selectors that - identify different repositories, a production_branch that is not a - valid Git branch name, no production_branch on a repository with no - default branch to follow (name one to connect a repository that has - no commits yet), or a production_branch other than the new - repository's default in a request that also changes repository. + description: Malformed request body content: application/json: schema: @@ -2162,87 +2408,66 @@ paths: application/json: schema: $ref: '#/components/schemas/Error' - '403': - description: | - Project not owned by the caller, or the selected repository is not - accessible through installation_id - content: - application/json: - schema: - $ref: '#/components/schemas/Error' '404': - description: Project or connection not found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '500': - description: Failed to connect project git - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '503': - description: Git provider integration is not configured - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - delete: - tags: - - Projects - - Git Connections - summary: Disconnect a project's repo connection - operationId: disconnectProjectGit - security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - responses: - '204': - description: Connection removed - '401': - description: Unauthorized - invalid or missing token + description: Project not found content: application/json: schema: $ref: '#/components/schemas/Error' - '403': - description: Project not owned by the caller + '409': + description: Another apply is in progress for this project content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Project not found, or has no repo connection + '422': + description: Manifest validation failed; nothing was applied content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': - description: Failed to disconnect project git + $ref: '#/components/schemas/ProjectConfigValidationErrorResponse' + '503': + description: Shared variable membership writes are disabled during rollout content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/git-deploy-settings: + /projects/{id}/source-export: get: tags: - Projects - Git Connections - summary: Get a project's Git auto-deploy settings - operationId: getProjectGitDeploySettings + summary: Report the project's source-of-truth state + operationId: getProjectSourceExport + description: | + Volcano stores the source of the functions and frontend it runs for a + project. This reports whether that source has been written to the + connected repository, and whether the repository has taken over as the + project's source of truth. + + `mode` is `platform`, `git_exporting`, `git_pending`, or `git`. Export + enters `git_exporting` before reading stored source. GitHub's signed + push event confirms that the initial commit reached the production + branch. That push or a newer production push changes the mode to + `git_pending` when it starts a deployment. `exported_at` records that + transition. + + A successful Git run completes the transition when it matches the + recorded repository, production branch, and root directory and actually + dispatches every recorded resource. Ordinary production-branch pushes + deploy without changing a platform-managed project's source ownership. security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' responses: '200': - description: The project's current Git auto-deploy settings + description: The project's source-of-truth state content: application/json: schema: - $ref: '#/components/schemas/ProjectGitDeploySettings' + $ref: '#/components/schemas/ProjectSourceExportState' '401': description: Unauthorized - invalid or missing token content: @@ -2250,7 +2475,7 @@ paths: schema: $ref: '#/components/schemas/Error' '403': - description: Project not owned by the caller + description: Forbidden - project not owned by the caller content: application/json: schema: @@ -2262,31 +2487,48 @@ paths: schema: $ref: '#/components/schemas/Error' '500': - description: Failed to get project git deploy settings + description: Internal server error content: application/json: schema: $ref: '#/components/schemas/Error' - put: + '501': + description: Source export is not available in this deployment mode + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + post: tags: - Projects - Git Connections - summary: Update a project's Git auto-deploy settings + summary: Initialize an empty repository with a project's stored source + operationId: exportProjectSource description: | - Full replace of the project's Git auto-deploy settings: what a push to - the connected repo's production branch deploys. + Creates the first commit in the connected repository and pushes it + directly to the configured production branch. The push enters the + ordinary Git auto-deploy flow. Direct source writes remain frozen until + that deployment succeeds and the repository becomes the source of truth. - Connecting a repository sets auto_deploy_enabled and deploy_functions - to true for a project that has never called this endpoint, so a push - deploys without any further setup. Once these settings have been saved - here they are the project's own: connecting, rebinding, disconnecting - and reconnecting all leave them untouched, including when they were - saved before any repository was connected. Frontend settings are off - until set here; the frontend need not exist when they are saved, since - frontend_name is resolved at deploy time. - operationId: updateProjectGitDeploySettings + The caller confirms the production branch shown before export. Starting + export pins that branch: later GitHub default-branch changes do not + repoint the project. If the configured branch changed after the caller + read it, the request fails without exporting so the caller can show and + confirm the new value. + + The response lists what the export could not carry: resources with no + successful deployment to take source from (`skipped`), and things no + export can hand back (`omitted`) — migrations, which Volcano stores no + copy of, and credential-shaped files, which are left for their owner to + add. + + Requires a connected repository with no commits or branches, and runs + once. Volcano never creates the repository. If GitHub did not confirm + the push, retrying creates the same commit and adopts it when it already + reached the repository. security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' requestBody: @@ -2294,16 +2536,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateProjectGitDeploySettingsRequest' + $ref: '#/components/schemas/ExportProjectSourceRequest' responses: - '200': - description: The project's updated Git auto-deploy settings + '201': + description: The initial production-branch commit that was pushed content: application/json: schema: - $ref: '#/components/schemas/ProjectGitDeploySettings' + $ref: '#/components/schemas/ProjectSourceExport' '400': - description: Malformed request body, or frontend_app_root without frontend_name + description: Malformed request body content: application/json: schema: @@ -2315,61 +2557,79 @@ paths: schema: $ref: '#/components/schemas/Error' '403': - description: Project not owned by the caller + description: Forbidden - project not owned by the caller content: application/json: schema: $ref: '#/components/schemas/Error' '404': - description: Project not found + description: Project not found, or it has no repository connected content: application/json: schema: $ref: '#/components/schemas/Error' - '500': - description: Failed to update project git deploy settings + '409': + description: | + The source has already been exported, the repository has already + taken over as the source of truth, the confirmed production branch + is stale, a function or frontend deployment is still in progress, + or the project has no stored source to export content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/databases/{databaseName}/queries: - get: - tags: - - Databases - summary: Get database queries - description: | - Returns the database's current top queries from pg_stat_statements - ranked by total execution time. - - **PRO plan required.** This endpoint is only available to projects owned - by users on the PRO billing plan. - operationId: getProjectDatabaseQueries - security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/DatabaseName' - - name: limit - in: query - description: Maximum number of queries to return. - schema: - type: integer - minimum: 1 - maximum: 100 - default: 10 - responses: - '200': - description: Database query performance retrieved + '422': + description: | + The repository refused the branch, or its contents cannot be laid + out as a repository — a stored file that only ever carries + credentials, or a layout Git auto-deploy would not read back content: application/json: schema: - $ref: '#/components/schemas/DatabaseQueryPerformanceResponse' - '400': - description: Bad request - invalid query parameters + $ref: '#/components/schemas/Error' + '429': + description: GitHub rate limited the request + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '500': + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '501': + description: Source export is not available in this deployment mode + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '503': + description: GitHub integration is not configured content: application/json: schema: $ref: '#/components/schemas/Error' + delete: + tags: + - Projects + - Git Connections + summary: Cancel an incomplete source export + operationId: cancelProjectSourceExport + description: | + Restores platform source writes while the project is in + `git_exporting` or `git_pending`. If Volcano reserved or deployed the + root commit, export remains consumed and cannot be run again. The + connected repository and any commit already pushed to it are unchanged. + security: + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + responses: + '204': + description: The incomplete source transition was canceled '401': description: Unauthorized - invalid or missing token content: @@ -2377,13 +2637,19 @@ paths: schema: $ref: '#/components/schemas/Error' '403': - description: Access denied + description: Forbidden - project not owned by the caller content: application/json: schema: $ref: '#/components/schemas/Error' '404': - description: Project or database not found + description: Project not found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '409': + description: No incomplete transition exists, or Git already took ownership content: application/json: schema: @@ -2394,86 +2660,55 @@ paths: application/json: schema: $ref: '#/components/schemas/Error' - /deployments: - get: + '501': + description: Source export is not available in this deployment mode + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /projects/{id}/git-connection/production-branch: + put: tags: - Projects - summary: List deployments across a user's projects + - Git Connections + summary: Set the branch a project deploys from description: | - Lists Function and Frontend deployment attempts across every project the - user owns, newest first. Pass `project_id` to narrow the feed to a single - project. - - Scope is project **ownership** (`projects.user_id`). `owner_id` names - whose deployments to return, not who started them — the actor is - `initiated_by_user_id`, which this endpoint does not filter on. - - With a user token the scope is always the authenticated user: `owner_id` - may be omitted, or set to that same user, but naming anyone else is - refused with 403. Service callers on the management API must pass it, - since they have no authenticated user. - - The owner is not checked for existence: an id with no projects returns an - empty page rather than `404`. Unlike `/users/{id}/usage`, this endpoint is - polled to detect an event, so a caller needs `404` to keep meaning "this - route is not served here" — which is how a consumer notices it is running - against an older release. A mistyped owner therefore reads as "nothing - deployed"; callers that need to tell those apart should verify the user - through `GET /users/{id}` first. - - Ordering is selectable. The default is the feed order — most recent - attempt first. `completed_at.asc` orders by completion, oldest first, and - considers only attempts that finished; combined with `limit=1` and a - `status` filter it answers "when did this user first succeed" in one - bounded query. + Changes only the production branch, leaving the repository binding + alone. PUT /projects/{id}/git-connection can also set it, but that is a + full rebind: it needs connection_id, installation_id and a repository + selector resent, and re-resolves the repository against GitHub for a + field that does not depend on it. - Both pagination modes are supported, selected exactly as - `/projects/{id}/deployments` selects them: `cursor`/`ending_before` (or a - `limit` with no `page`) uses keyset pagination; otherwise `page`/`limit` - offset pagination. `page` with a cursor, and `cursor` with - `ending_before`, are rejected. + The branch does not have to exist. It is validated as a Git branch name + and nothing more, so a project can be pointed at a branch that is about + to be pushed — the case a repository created empty depends on. - A cursor is bound to every filter *and* to `order`, so changing any of - them mid-pagination rejects the cursor rather than silently skipping or - repeating rows. The keyset position is `(created_at, id)` for - `created_at.desc` and `(completed_at, id)` for `completed_at.asc`. - operationId: listDeployments + Setting the branch here marks it as the project's own choice, so a later + default-branch rename on GitHub no longer moves it. Projects that never + set one keep following the repository's default branch. + operationId: setProjectGitProductionBranch security: - UserToken: [] + - ProjectAccessToken: [] parameters: - - $ref: '#/components/parameters/Page' - - $ref: '#/components/parameters/Limit' - - $ref: '#/components/parameters/Cursor' - - $ref: '#/components/parameters/EndingBefore' - - $ref: '#/components/parameters/Offset' - - $ref: '#/components/parameters/DeploymentOwnerId' - - name: project_id - in: query - required: false - description: Restrict the feed to a single project owned by the user. - schema: - type: string - format: uuid - - name: created_after - in: query - required: false - description: Restrict results to attempts created at or after this timestamp. - schema: - type: string - format: date-time - - $ref: '#/components/parameters/DeploymentResourceType' - - $ref: '#/components/parameters/DeploymentStatus' - - $ref: '#/components/parameters/DeploymentOperation' - - $ref: '#/components/parameters/DeploymentOrder' + - $ref: '#/components/parameters/ProjectId' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/SetProjectGitProductionBranchRequest' responses: '200': - description: Successful response + description: The project's repo connection, with the new branch content: application/json: schema: - $ref: '#/components/schemas/PaginatedProjectDeployments' + $ref: '#/components/schemas/ProjectGitConnection' '400': - description: Bad request - invalid filter or pagination + description: | + Malformed request body, or a production_branch that is not a valid + Git branch name content: application/json: schema: @@ -2485,135 +2720,116 @@ paths: schema: $ref: '#/components/schemas/Error' '403': - description: Forbidden - owner_id names a different user + description: Project not owned by the caller + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '404': + description: | + Project not found, or it has no repository connected. The branch is + part of the connection, so there is nothing to set it on until one + exists. + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '409': + description: A Git source transition is pending content: application/json: schema: $ref: '#/components/schemas/Error' '500': - description: Internal server error + description: Failed to set the production branch content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/deployments: + /projects/{id}/git-connection: get: tags: - Projects - summary: List deployments in a project - description: | - Lists Function and Frontend deployment attempts across the project, - ordered most-recent first. Each item includes a normalized resource - reference so clients can render both resource types without extra - fetches. - operationId: listProjectDeployments + - Git Connections + summary: Get a project's repo connection + operationId: getProjectGitConnection security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/Page' - - $ref: '#/components/parameters/Limit' - - $ref: '#/components/parameters/Cursor' - - $ref: '#/components/parameters/EndingBefore' - - $ref: '#/components/parameters/Offset' - - $ref: '#/components/parameters/Search' - - name: created_after - in: query - required: false - description: Restrict results to attempts created at or after this timestamp. - schema: - type: string - format: date-time - - name: resource_type - in: query - required: false - description: | - Restrict the feed to a single resource type. Omit to return both - Function and Frontend deployments. - schema: - type: string - enum: - - function - - frontend responses: '200': - description: Successful response + description: The project's current repo connection content: application/json: schema: - $ref: '#/components/schemas/PaginatedProjectDeployments' - '400': - description: Bad request - invalid identifier + $ref: '#/components/schemas/ProjectGitConnection' + '401': + description: Unauthorized - invalid or missing token content: application/json: schema: $ref: '#/components/schemas/Error' - '401': - description: Unauthorized - invalid or missing token + '403': + description: Project not owned by the caller content: application/json: schema: $ref: '#/components/schemas/Error' - '403': - description: Forbidden - project ownership required + '404': + description: Project not found, or has no repo connection content: application/json: schema: $ref: '#/components/schemas/Error' '500': - description: Internal server error + description: Failed to get project git connection content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/deployments/summary: - get: + put: tags: - Projects - summary: Summarize deployments in a project + - Git Connections + summary: Connect or update a project's repo connection description: | - Summarizes deployment attempts for one comparable resource pipeline. - Success rate uses conclusive outcomes only: active and deleted attempts - are successful; failed and degraded attempts are failures; in-progress - and superseded attempts are excluded. Median build duration includes - completed, non-superseded attempts with recorded build work, - including failed builds. - operationId: summarizeProjectDeployments + Full replace, following Vercel's model: many projects may point at the + same repo, so this only binds the project — it never creates or + deletes git-provider state. Used for both the initial connect and + later edits (repo change, root directory, production branch). + Resolves the repository_id or repo_full_name selector against the repos + accessible through installation_id via connection_id's stored GitHub + user token, then persists repository metadata only from that validated + GitHub response. + operationId: connectProjectGit security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - name: search - in: query - required: false - description: Restrict the summary to resource names containing this value. - schema: - type: string - - name: resource_type - in: query - required: true - description: Restrict the summary to one comparable deployment pipeline. - schema: - type: string - enum: - - function - - frontend - - name: created_after - in: query - required: false - description: Restrict results to attempts created at or after this timestamp. - schema: - type: string - format: date-time + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ConnectProjectGitRequest' responses: '200': - description: Successful response + description: The project's repo connection content: application/json: schema: - $ref: '#/components/schemas/ProjectDeploymentSummary' + $ref: '#/components/schemas/ProjectGitConnection' '400': - description: Bad request - invalid identifier or filter + description: | + Malformed request body, no repository selector, selectors that + identify different repositories, a production_branch that is not a + valid Git branch name, no production_branch on a repository with no + default branch to follow (name one to connect a repository that has + no commits yet), or a production_branch other than the new + repository's default in a request that also changes repository. content: application/json: schema: @@ -2625,411 +2841,347 @@ paths: schema: $ref: '#/components/schemas/Error' '403': - description: Forbidden - project ownership required + description: | + Project not owned by the caller, or the selected repository is not + accessible through installation_id + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '404': + description: Project or connection not found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '409': + description: | + A Git source transition is pending or complete, so the recorded + repository and root cannot be changed content: application/json: schema: $ref: '#/components/schemas/Error' '500': - description: Internal server error + description: Failed to connect project git content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/domains: - get: + '503': + description: Git provider integration is not configured + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + delete: tags: - - Frontends - summary: List all custom domains in a project - description: | - Project-scoped custom-domain list. Returns every active custom - domain across every frontend in the project (excludes soft-deleted - rows). Each item inlines the linked frontend's id and name so the - UI does not need a second fetch to render the "Linked to" column. - operationId: listProjectCustomDomains + - Projects + - Git Connections + summary: Disconnect a project's repo connection + operationId: disconnectProjectGit security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/Page' - - $ref: '#/components/parameters/Limit' - - $ref: '#/components/parameters/Cursor' - - $ref: '#/components/parameters/EndingBefore' - - $ref: '#/components/parameters/Offset' - - $ref: '#/components/parameters/Search' responses: - '200': - description: Successful response + '204': + description: Connection removed + '401': + description: Unauthorized - invalid or missing token content: application/json: schema: - $ref: '#/components/schemas/PaginatedProjectCustomDomains' - '400': - description: Bad request - invalid identifier + $ref: '#/components/schemas/Error' + '403': + description: Project not owned by the caller content: application/json: schema: $ref: '#/components/schemas/Error' - '401': - description: Unauthorized - invalid or missing token + '404': + description: Project not found, or has no repo connection content: application/json: schema: $ref: '#/components/schemas/Error' - '403': - description: Forbidden - project ownership required + '409': + description: | + A Git source transition is pending or complete, so the recorded + repository cannot be disconnected content: application/json: schema: $ref: '#/components/schemas/Error' '500': - description: Internal server error + description: Failed to disconnect project git content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/functions: + /projects/{id}/git-deploy-settings: get: tags: - - Functions - summary: List all functions in a project - description: | - Supports two mutually exclusive pagination modes. Offset mode uses `page` - and `limit` and returns `next` (URL). Cursor mode uses `cursor` and - `limit`, supports `search` (case-insensitive name match), and returns - `next_cursor`/`prev_cursor`. Sending both `page` and `cursor` (or `page` - and `search`) returns 400. - operationId: listFunctions + - Projects + - Git Connections + summary: Get a project's Git auto-deploy settings + operationId: getProjectGitDeploySettings security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/Page' - - $ref: '#/components/parameters/Limit' - - $ref: '#/components/parameters/Cursor' - - $ref: '#/components/parameters/EndingBefore' - - $ref: '#/components/parameters/Offset' - - $ref: '#/components/parameters/Search' responses: '200': - description: Successful response + description: The project's current Git auto-deploy settings content: application/json: schema: - $ref: '#/components/schemas/PaginatedFunctions' + $ref: '#/components/schemas/ProjectGitDeploySettings' + '401': + description: Unauthorized - invalid or missing token + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '403': + description: Project not owned by the caller + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '404': description: Project not found content: application/json: schema: $ref: '#/components/schemas/Error' - post: + '500': + description: Failed to get project git deploy settings + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + put: tags: - - Functions - summary: Create or update function code + - Projects + - Git Connections + summary: Update a project's Git auto-deploy settings description: | - Upload a serverless function source bundle. Direct API clients may send the function code - as a ZIP or tar.gz archive via multipart/form-data. The API stores a normalized tar.gz - source archive. - Cloud deploys should include source files and dependency manifests/lockfiles, not installed - dependency directories. Volcano installs Node.js, Python, and Ruby dependencies during the - function compile build. - Source archive size is enforced by the API with `SOURCE_ARCHIVE_SIZE_LIMIT_MB`; the CLI - does not apply its own source archive size limit. After the final container image is - built, the publish build enforces `LAMBDA_TARGET_CONTAINER_SIZE_LIMIT_MB` before pushing. - Uploaded source archives cannot contain symlink entries. Safe symlinks created during - the cloud build are materialized before publish. - Volcano builds and deploys the function asynchronously after upload. A deployment that starts - immediately returns a Function resource with `status: provisioning`, then transitions to - `active` or `failed`. If another deployment is running, the response preserves the resource's - current status and exposes the queued deployment through `pending_deployment_id`. - Existing function traffic continues to use the last known-good runtime during an update. A failed - update keeps that runtime available and records the attempted deployment as failed. - Only one deployment runs for a given function. A newer request supersedes any queued request - and starts after the running deployment. Different functions and projects deploy concurrently. - If a function with the same name already exists in the project, this operation updates that - function's runtime, handler, and source bundle and returns `200 OK`. - Each project can contain up to 10,000 functions. Creating a new function over this cap returns 403. - operationId: createFunction + Full replace of the project's Git auto-deploy settings: what a push to + the connected repo's production branch deploys. + + Connecting a repository sets auto_deploy_enabled and deploy_functions + to true for a project that has never called this endpoint, so a push + deploys without any further setup. Once these settings have been saved + here they are the project's own: connecting, rebinding, disconnecting + and reconnecting all leave them untouched, including when they were + saved before any repository was connected. Frontend settings are off + until set here; the frontend need not exist when they are saved, since + frontend_name is resolved at deploy time. + operationId: updateProjectGitDeploySettings security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' requestBody: required: true content: - multipart/form-data: + application/json: schema: - type: object - required: - - name - - code - - runtime - properties: - name: - type: string - description: DNS-safe function name (lowercase letters, numbers, hyphens; cannot start or end with hyphen) - maxLength: 63 - pattern: ^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$ - example: my-api-function - code: - type: string - format: binary - description: ZIP or tar.gz archive containing function source code plus dependency manifests/lockfiles. The API enforces SOURCE_ARCHIVE_SIZE_LIMIT_MB and stores a normalized tar.gz source archive. - runtime: - type: string - enum: - - nodejs22.x - - nodejs24.x - - python3.10 - - python3.11 - - python3.12 - - python3.13 - - python3.14 - - ruby3.3 - - ruby3.4 - - ruby4.0 - description: | - Runtime environment. Required. - - Node.js: nodejs22.x, nodejs24.x - - Python: python3.10, python3.11, python3.12, python3.13, python3.14 - - Ruby: ruby3.3, ruby3.4, ruby4.0 - example: nodejs24.x - handler: - type: string - description: | - The name of the function to invoke. Defaults to "handler" if not specified. - Your code must export/define a function with this name: - - Node.js: exports.handler (in index.js) - - Python: def handler() (in main.py) - - Ruby: def handler() (in main.rb) - default: handler - example: handler - variable_scope: - type: string - enum: [all, scoped] - x-enum-varnames: [CreateFunctionMultipartBodyVariableScopeAll, CreateFunctionMultipartBodyVariableScopeScoped] - description: | - Which project variables this function receives. `all` (the default) gives it every project variable; `scoped` gives it only the variables it selects. Omitting this leaves an existing function's scope unchanged. - variables: - type: string - description: | - JSON-encoded array of project variable names this function requires, on top of the ones detected in its source. A declared name the project does not define is rejected with 400; a detected name it does not define is ignored. Only used when `variable_scope` is `scoped`. Omitting this leaves an existing function's declared names unchanged. + $ref: '#/components/schemas/UpdateProjectGitDeploySettingsRequest' responses: '200': - description: Existing function updated; its deployment was started or queued + description: The project's updated Git auto-deploy settings content: application/json: schema: - $ref: '#/components/schemas/Function' - '201': - description: Function created and deployment workflow started + $ref: '#/components/schemas/ProjectGitDeploySettings' + '400': + description: Malformed request body, or frontend_app_root without frontend_name content: application/json: schema: - $ref: '#/components/schemas/Function' - '400': - description: Bad request (invalid file, too large, etc.) + $ref: '#/components/schemas/Error' + '401': + description: Unauthorized - invalid or missing token content: application/json: schema: $ref: '#/components/schemas/Error' '403': - description: Function limit exceeded for the project + description: Project not owned by the caller + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '404': + description: Project not found content: application/json: schema: $ref: '#/components/schemas/Error' '409': - description: Function deletion is queued or running + description: | + A Git source transition is pending, or this change would remove + deploy coverage after Git has taken over content: application/json: schema: $ref: '#/components/schemas/Error' '500': - description: Internal server error (function deployment failed) + description: Failed to update project git deploy settings content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/functions/{functionId}: + /projects/{id}/databases/{databaseName}/queries: get: tags: - - Functions - summary: Get function by ID - operationId: getFunction + - Databases + summary: Get database queries + description: | + Returns the database's current top queries from pg_stat_statements + ranked by total execution time. Only data statements (SELECT, INSERT, + UPDATE, DELETE, MERGE) are listed; statements Volcano runs to operate + the database are left out. + + **PRO plan required.** This endpoint is only available to projects owned + by users on the PRO billing plan. + operationId: getProjectDatabaseQueries security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/FunctionId' + - $ref: '#/components/parameters/DatabaseName' + - name: limit + in: query + description: Maximum number of queries to return. + schema: + type: integer + minimum: 1 + maximum: 100 + default: 10 responses: '200': - description: Successful response + description: Database query performance retrieved content: application/json: schema: - $ref: '#/components/schemas/Function' - '404': - description: Function not found + $ref: '#/components/schemas/DatabaseQueryPerformanceResponse' + '400': + description: Bad request - invalid query parameters content: application/json: schema: $ref: '#/components/schemas/Error' - patch: - tags: - - Functions - summary: Update function settings - operationId: updateFunction - security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/FunctionId' - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/UpdateFunctionRequest' - examples: - makePublic: - summary: Make function public (anon keys can invoke) - value: - is_public: true - makePrivate: - summary: Make function private (default behavior) - value: - is_public: false - responses: - '200': - description: Function updated + '401': + description: Unauthorized - invalid or missing token content: application/json: schema: - $ref: '#/components/schemas/Function' - '400': - description: Bad request + $ref: '#/components/schemas/Error' + '403': + description: Access denied content: application/json: schema: $ref: '#/components/schemas/Error' '404': - description: Function not found + description: Project or database not found content: application/json: schema: $ref: '#/components/schemas/Error' - delete: - tags: - - Functions - summary: Delete a function - description: | - Schedules asynchronous function deletion. If another deployment is running, the function - preserves its current status and exposes the queued deletion through `pending_deployment_id`. - Its status changes to `deleting` when cleanup starts. After cleanup, it returns 404 and no - longer appears in function lists. - operationId: deleteFunction - security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/FunctionId' - responses: - '202': - description: Function deletion started or queued - '404': - description: Function not found + '500': + description: Internal server error content: application/json: schema: $ref: '#/components/schemas/Error' - /functions/{functionId}/invoke: - post: + /deployments: + get: tags: - - Functions - summary: Invoke a function + - Projects + summary: List deployments across a user's projects description: | - Invoke a serverless function. + Lists Function and Frontend deployment attempts across every project the + user owns, newest first. Pass `project_id` to narrow the feed to a single + project. - **With Service Key** (admin/background operations): - - Use for background jobs, webhooks, cron, admin operations - - Function receives payload only (no user context) - - Database queries bypass RLS (admin access) + Scope is project **ownership** (`projects.user_id`). `owner_id` names + whose deployments to return, not who started them — the actor is + `initiated_by_user_id`, which this endpoint does not filter on. - **With Auth User Token** (user-facing): - - Use for user-initiated actions - - Function receives payload + `__volcano_auth` context: - ```javascript - { - user_id: "uuid", - email: "user@example.com", - project_id: "uuid", - role: "authenticated" or "anonymous" - } - ``` - - Database queries enforce RLS (user-scoped data) + With a user token the scope is always the authenticated user: `owner_id` + may be omitted, or set to that same user, but naming anyone else is + refused with 403. Service callers on the management API must pass it, + since they have no authenticated user. - **With Anon Key** (public function only): - - Requires anon key permission: `functions.invoke` - - Function must have `is_public: true` - - Function receives payload only (no `__volcano_auth`) + The owner is not checked for existence: an id with no projects returns an + empty page rather than `404`. Unlike `/users/{id}/usage`, this endpoint is + polled to detect an event, so a caller needs `404` to keep meaning "this + route is not served here" — which is how a consumer notices it is running + against an older release. A mistyped owner therefore reads as "nothing + deployed"; callers that need to tell those apart should verify the user + through `GET /users/{id}` first. - **Transport and CORS:** - - Direct invocation endpoint is intended for `http://api./functions/{functionId}/invoke` - - DNS invocation endpoint is `https://{functionId}.functions./` - - CORS preflight for invocation allows only `POST, OPTIONS` - operationId: invokeFunction + Ordering is selectable. The default is the feed order — most recent + attempt first. `completed_at.asc` orders by completion, oldest first, and + considers only attempts that finished; combined with `limit=1` and a + `status` filter it answers "when did this user first succeed" in one + bounded query. + + Both pagination modes are supported, selected exactly as + `/projects/{id}/deployments` selects them: `cursor`/`ending_before` (or a + `limit` with no `page`) uses keyset pagination; otherwise `page`/`limit` + offset pagination. `page` with a cursor, and `cursor` with + `ending_before`, are rejected. + + A cursor is bound to every filter *and* to `order`, so changing any of + them mid-pagination rejects the cursor rather than silently skipping or + repeating rows. The keyset position is `(created_at, id)` for + `created_at.desc` and `(completed_at, id)` for `completed_at.asc`. + operationId: listDeployments security: - - AnonKey: [] - - ServiceRoleKey: [] - - AuthUserAccessToken: [] + - UserToken: [] parameters: - - $ref: '#/components/parameters/FunctionId' - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/FunctionInvocationRequest' - examples: - serviceCall: - summary: Admin/background operation (service key) - value: - payload: - action: process_batch - items: - - 1 - - 2 - - 3 - userCall: - summary: User-initiated call (auth token) - value: - payload: - action: get_profile - anonCall: - summary: Public function call (anon key) - value: - payload: - action: ping_public_endpoint + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/Limit' + - $ref: '#/components/parameters/Cursor' + - $ref: '#/components/parameters/EndingBefore' + - $ref: '#/components/parameters/Offset' + - $ref: '#/components/parameters/DeploymentOwnerId' + - name: project_id + in: query + required: false + description: Restrict the feed to a single project owned by the user. + schema: + type: string + format: uuid + - name: created_after + in: query + required: false + description: Restrict results to attempts created at or after this timestamp. + schema: + type: string + format: date-time + - $ref: '#/components/parameters/DeploymentResourceType' + - $ref: '#/components/parameters/DeploymentStatus' + - $ref: '#/components/parameters/DeploymentOperation' + - $ref: '#/components/parameters/DeploymentOrder' responses: '200': - description: Function response (passthrough from function runtime) - headers: - X-Volcano-Version: - description: Volcano API/runtime version that served this invocation (`` in production, `-` in non-production) - schema: - type: string - X-Volcano-Region: - description: Region the function ran in (for example `us-east-1`) - schema: - type: string + description: Successful response content: application/json: schema: - $ref: '#/components/schemas/FunctionInvocationResponse' + $ref: '#/components/schemas/PaginatedProjectDeployments' '400': - description: Bad request - invalid payload or function in failed state + description: Bad request - invalid filter or pagination content: application/json: schema: @@ -3041,96 +3193,66 @@ paths: schema: $ref: '#/components/schemas/Error' '403': - description: Forbidden - CORS blocked, missing `functions.invoke`, or private function with anon key + description: Forbidden - owner_id names a different user content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Function not found + '500': + description: Internal server error content: application/json: schema: $ref: '#/components/schemas/Error' - '429': - description: | - Rate limit exceeded (per-function or project-wide limit), or the - owning platform user's monthly bandwidth cap (aggregate ingress + - egress) was exceeded. - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '503': - description: | - Function still provisioning or rate limiting service unavailable. - A freshly deployed (or updated) function may briefly report - `provisioning` and reject invocations until the background status - reconciler observes its deployment workflow completing and transitions - it to `active`. This is expected for a few seconds after deploy; clients - should retry. - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - default: - description: Function response (passthrough; status code/body/headers come from the function) - headers: - X-Volcano-Version: - description: Volcano API/runtime version that served this invocation (`` in production, `-` in non-production) - schema: - type: string - X-Volcano-Region: - description: Region the function ran in (for example `us-east-1`) - schema: - type: string - content: - application/json: - schema: - $ref: '#/components/schemas/FunctionInvocationResponse' - /functions/resolve: + /projects/{id}/deployments: get: tags: - - Functions - summary: Resolve function name for invocation + - Projects + summary: List deployments in a project description: | - Resolves a DNS-safe function name to its function ID within the caller's project. - - SDKs use this endpoint internally to invoke by function name while routing by function ID. - - **With Service Key**: - - Allowed - - **With Auth User Token**: - - Allowed - - **With Anon Key**: - - Requires anon key permission: `functions.invoke` - - Function must have `is_public: true` - operationId: resolveFunctionForInvocation + Lists Function and Frontend deployment attempts across the project, + ordered most-recent first. Each item includes a normalized resource + reference so clients can render both resource types without extra + fetches. + operationId: listProjectDeployments security: - - AnonKey: [] - - ServiceRoleKey: [] - - AuthUserAccessToken: [] + - UserToken: [] + - ProjectAccessToken: [] parameters: - - name: name + - $ref: '#/components/parameters/ProjectId' + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/Limit' + - $ref: '#/components/parameters/Cursor' + - $ref: '#/components/parameters/EndingBefore' + - $ref: '#/components/parameters/Offset' + - $ref: '#/components/parameters/Search' + - name: created_after in: query - required: true + required: false + description: Restrict results to attempts created at or after this timestamp. schema: type: string - maxLength: 63 - pattern: ^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$ - description: DNS-safe function name (lowercase letters, numbers, hyphens; cannot start or end with hyphen) - example: my-function + format: date-time + - name: resource_type + in: query + required: false + description: | + Restrict the feed to a single resource type. Omit to return both + Function and Frontend deployments. + schema: + type: string + enum: + - function + - frontend responses: '200': - description: Function resolved successfully + description: Successful response content: application/json: schema: - $ref: '#/components/schemas/ResolveFunctionResponse' + $ref: '#/components/schemas/PaginatedProjectDeployments' '400': - description: Bad request - missing or invalid function name + description: Bad request - invalid identifier content: application/json: schema: @@ -3142,52 +3264,66 @@ paths: schema: $ref: '#/components/schemas/Error' '403': - description: Forbidden - CORS blocked or missing `functions.invoke` permission for anon key + description: Forbidden - project ownership required content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Function not found (or private function with anon key) + '500': + description: Internal server error content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/logs/activity: - post: + /projects/{id}/deployments/summary: + get: tags: - - Logs - summary: Get project log activity + - Projects + summary: Summarize deployments in a project description: | - Retrieve bucketed log counts for one resource type in the project. Set - `resource.type` to `function`, `frontend`, or `database`. Add - `resource.ids` to filter to one or more resources, and add - `resource.deployments.ids` to count deployment logs instead of runtime - logs for functions and frontends. Deployment logs are not supported for - databases. Database logs are a PRO-plan feature; `resource.type=database` - from a FREE-plan project owner returns 403. The activity window is limited - to the plan's retention window (FREE: 1 day, PRO: 30 days); older start - times are clamped to that window. - operationId: getProjectLogActivity + Summarizes deployment attempts for one comparable resource pipeline. + Success rate uses conclusive outcomes only: active and deleted attempts + are successful; failed and degraded attempts are failures; in-progress + and superseded attempts are excluded. Median build duration includes + completed, non-superseded attempts with recorded build work, + including failed builds. + operationId: summarizeProjectDeployments security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/LogActivityRequest' + - name: search + in: query + required: false + description: Restrict the summary to resource names containing this value. + schema: + type: string + - name: resource_type + in: query + required: true + description: Restrict the summary to one comparable deployment pipeline. + schema: + type: string + enum: + - function + - frontend + - name: created_after + in: query + required: false + description: Restrict results to attempts created at or after this timestamp. + schema: + type: string + format: date-time responses: '200': description: Successful response content: application/json: schema: - $ref: '#/components/schemas/LogActivityResponse' + $ref: '#/components/schemas/ProjectDeploymentSummary' '400': - description: Bad request - invalid query parameter + description: Bad request - invalid identifier or filter content: application/json: schema: @@ -3204,48 +3340,43 @@ paths: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Project or resource not found + '500': + description: Internal server error content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/logs/search: - post: + /projects/{id}/domains: + get: tags: - - Logs - summary: Search project logs + - Frontends + summary: List all custom domains in a project description: | - Search or filter logs for one resource type in the project. Set - `resource.type` to `function`, `frontend`, or `database`. Add - `resource.ids` to filter to one or more resources, and add - `resource.deployments.ids` to read deployment logs instead of runtime - logs for functions and frontends. Deployment logs are not supported for - databases. Database logs are a PRO-plan feature; requests for - `resource.type=database` from a FREE-plan project owner return 403. - Log history (runtime and deployment) is limited to the plan's retention - window (FREE: 1 day, PRO: 30 days); older time ranges are clamped to that - window. - operationId: searchProjectLogs + Project-scoped custom-domain list. Returns every active custom + domain across every frontend in the project (excludes soft-deleted + rows). Each item inlines the linked frontend's id and name so the + UI does not need a second fetch to render the "Linked to" column. + operationId: listProjectCustomDomains security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/LogSearchRequest' + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/Limit' + - $ref: '#/components/parameters/Cursor' + - $ref: '#/components/parameters/EndingBefore' + - $ref: '#/components/parameters/Offset' + - $ref: '#/components/parameters/Search' responses: '200': description: Successful response content: application/json: schema: - $ref: '#/components/schemas/LogSearchResponse' + $ref: '#/components/schemas/PaginatedProjectCustomDomains' '400': - description: Bad request - invalid query parameter + description: Bad request - invalid identifier content: application/json: schema: @@ -3262,126 +3393,79 @@ paths: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Project or resource not found + '500': + description: Internal server error content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/logs/stream: - post: + /projects/{id}/functions: + get: tags: - - Logs - summary: Stream project logs + - Functions + summary: List all functions in a project description: | - Live-tail project logs as Server-Sent Events. The request body uses the - resource selector plus `q`, `start_time`, and `limit`, - including runtime logs and function/frontend deployment logs selected - with `resource.deployments`. Deployment logs are not supported for - databases. Database logs are a PRO-plan feature; `resource.type=database` - from a FREE-plan project owner returns 403. The `q` field uses the same - syntax as search and activity requests. Do not send `cursor` or - `end_time`; use `/logs/search` for range backfills. - Explicit historical `start_time` values are limited to the plan's - retention window (FREE: 1 day, PRO: 30 days). Resume with - `Last-Event-ID` or the `last_event_id` query parameter. The cursor is - bound to the request body: the resource selector and every filter must - match the original request when reconnecting, otherwise the request is - rejected with `400`. - - This is a live tail, not a gap-free backfill. On connect or reconnect the - server delivers at most `limit` of the most recent matching events from - the cursor position and then follows new events; events older than that - window are not replayed. Use `/logs/search` to backfill a time range. - operationId: streamProjectLogs + Supports two mutually exclusive pagination modes. Offset mode uses `page` + and `limit` and returns `next` (URL). Cursor mode uses `cursor` and + `limit`, supports `search` (case-insensitive name match), and returns + `next_cursor`/`prev_cursor`. Sending both `page` and `cursor` (or `page` + and `search`) returns 400. + operationId: listFunctions security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - name: Last-Event-ID - in: header - required: false - schema: - type: string - description: Opaque stream cursor from the most recent SSE `id` field. - - name: last_event_id - in: query - required: false - schema: - type: string - description: Opaque stream cursor fallback when setting `Last-Event-ID` is not practical. - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/LogStreamRequest' - responses: + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/Limit' + - $ref: '#/components/parameters/Cursor' + - $ref: '#/components/parameters/EndingBefore' + - $ref: '#/components/parameters/Offset' + - $ref: '#/components/parameters/Search' + responses: '200': - description: Server-Sent Events stream. `log` events contain a JSON `LogSearchEvent`; `warning` events contain a JSON object with an `error` field. - content: - text/event-stream: - schema: - type: string - examples: - log: - summary: Log event - value: | - : connected - - id: STREAM_CURSOR - event: log - data: {"id":"LOG_EVENT_ID","timestamp":"2024-01-01T12:00:00Z","level":"info","message":"User logged in","resource":{"type":"function","id":"550e8400-e29b-41d4-a716-446655440000","name":"login"},"region":"us-east-1"} - '400': - description: Bad request - invalid selector, stream cursor, or unsupported stream field - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '401': - description: Unauthorized - invalid or missing token - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '403': - description: Forbidden - project ownership required + description: Successful response content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: '#/components/schemas/PaginatedFunctions' '404': - description: Project or resource not found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '500': - description: Internal server error - log streaming setup failed + description: Project not found content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/functions/batch: post: tags: - Functions - summary: Deploy multiple functions in one request + summary: Create or update function code description: | - Upload multiple function source archives in one multipart request. Each archive should contain source files - plus dependency manifests/lockfiles, not installed dependency directories. ZIP and tar.gz uploads are - accepted and normalized to tar.gz before storage. The API enforces `SOURCE_ARCHIVE_SIZE_LIMIT_MB` - for each uploaded and normalized source archive. The server records a shared - deployment batch ID for the resulting function deployments. Each function deployment runs its own - compile/publish workflow concurrently, and each publish build enforces `LAMBDA_TARGET_CONTAINER_SIZE_LIMIT_MB` - for the final container image. - One batch request can include up to 100 functions. Submit multiple batch requests for larger projects. - If one function fails before its workflow starts, already-started function deployments are left - running and the failed function is reported in the `failed` array. Failed new functions are deleted; - failed updates are rolled back to their previous metadata/status where possible. - operationId: createFunctionsBatch + Upload a function source bundle. Direct API clients may send the function code + as a ZIP or tar.gz archive via multipart/form-data. The API stores a normalized tar.gz + source archive. + Cloud deploys should include source files and dependency manifests/lockfiles, not installed + dependency directories. Volcano installs Node.js, Python, and Ruby dependencies during the + function compile build. + Source archive size is enforced by the API with `SOURCE_ARCHIVE_SIZE_LIMIT_MB`; the CLI + does not apply its own source archive size limit. After the final container image is + built, the publish build enforces `LAMBDA_TARGET_CONTAINER_SIZE_LIMIT_MB` before pushing. + Uploaded source archives cannot contain symlink entries. Safe symlinks created during + the cloud build are materialized before publish. + Volcano builds and deploys the function asynchronously after upload. A deployment that starts + immediately returns a Function resource with `status: provisioning`, then transitions to + `active` or `failed`. If another deployment is running, the response preserves the resource's + current status and exposes the queued deployment through `pending_deployment_id`. + Existing function traffic continues to use the last known-good runtime during an update. A failed + update keeps that runtime available and records the attempted deployment as failed. + Only one deployment runs for a given function. A newer request supersedes any queued request + and starts after the running deployment. Different functions and projects deploy concurrently. + If a function with the same name already exists in the project, this operation updates that + function's runtime, handler, and source bundle and returns `200 OK`. + Each project can contain up to 10,000 functions. Creating a new function over this cap returns 403. + operationId: createFunction security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' requestBody: @@ -3390,92 +3474,165 @@ paths: multipart/form-data: schema: type: object + required: + - name + - code + - runtime properties: - functions: + name: type: string - description: | - JSON array of functions with `name`, `runtime`, optional `handler`, and `file_field`. Each `file_field` must name a multipart file field containing that function's ZIP or tar.gz source bundle. - - Each entry may also declare `variable_scope` (`all` or `scoped`) and `variables` (an array of project variable names). Omitting them leaves the function's stored declaration unchanged. Volcano detects direct environment references in the uploaded source and adds the ones the project defines to the declared names; a detected name the project does not define is ignored, since such a reference is often optional. Declare a name when the function reads it through a computed key, or when it must not deploy without the variable. The request is rejected with 400 before anything is deployed if a scoped function declares a variable the project does not define, or if the resulting environment exceeds 4096 bytes. - code_0: + description: DNS-safe function name (lowercase letters, numbers, hyphens; cannot start or end with hyphen) + maxLength: 63 + pattern: ^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$ + example: my-api-function + code: type: string format: binary - description: Function ZIP or tar.gz archive referenced by the first manifest entry's `file_field`; additional code_N file fields may be included. Each archive is subject to SOURCE_ARCHIVE_SIZE_LIMIT_MB. - required: - - functions + description: ZIP or tar.gz archive containing function source code plus dependency manifests/lockfiles. The API enforces SOURCE_ARCHIVE_SIZE_LIMIT_MB and stores a normalized tar.gz source archive. + runtime: + type: string + enum: + - nodejs22.x + - nodejs24.x + - python3.10 + - python3.11 + - python3.12 + - python3.13 + - python3.14 + - ruby3.3 + - ruby3.4 + - ruby4.0 + description: | + Runtime environment. Required. + - Node.js: nodejs22.x, nodejs24.x + - Python: python3.10, python3.11, python3.12, python3.13, python3.14 + - Ruby: ruby3.3, ruby3.4, ruby4.0 + example: nodejs24.x + handler: + type: string + description: | + The name of the function to invoke. Defaults to "handler" if not specified. + Your code must export/define a function with this name: + - Node.js: exports.handler (in index.js) + - Python: def handler() (in main.py) + - Ruby: def handler() (in main.rb) + default: handler + example: handler + is_public: + type: boolean + description: | + Whether the function can be reached through public invocation + ingress. Omit it to keep the function's current visibility; a + new function starts private. + invocation_mode: + $ref: '#/components/schemas/FunctionInvocationMode' + http_auth_mode: + $ref: '#/components/schemas/FunctionHTTPAuthMode' + openapi_spec: + type: string + description: JSON-encoded OpenAPI 3.0 or 3.1 metadata for an HTTP-mode function. + variable_scope: + type: string + enum: + - all + - scoped + x-enum-varnames: + - CreateFunctionMultipartBodyVariableScopeAll + - CreateFunctionMultipartBodyVariableScopeScoped + description: | + Which project variables this function receives. `all` (the default) gives it only project variables marked `shared: true`; `scoped` gives it only the variables it selects. Omitting this leaves an existing function's scope unchanged. + variables: + type: string + description: | + JSON-encoded array of project variable names this function requires, on top of the ones detected in its source. A declared name the project does not define is rejected with 400; a detected name it does not define is ignored. Only used when `variable_scope` is `scoped`. Omitting this leaves an existing function's declared names unchanged. responses: - '202': - description: Batch deployment accepted + '200': + description: Existing function updated; its deployment was started or queued content: application/json: schema: - $ref: '#/components/schemas/BatchFunctionDeployResponse' - '207': - description: Batch deployment partially accepted; successful functions started deployment and failed functions were compensated where possible + $ref: '#/components/schemas/Function' + '201': + description: Function created and deployment workflow started content: application/json: schema: - $ref: '#/components/schemas/BatchFunctionDeployResponse' + $ref: '#/components/schemas/Function' '400': - description: Bad request + description: Bad request (invalid file, too large, etc.) content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/schedulers: - get: - tags: - - Functions - summary: List every function scheduler in a project - description: | - Project-scoped counterpart to `/projects/{id}/functions/{functionId}/schedulers`. - Returns schedulers across all functions in the project, ordered by - creation time descending, with standard page/limit pagination so - clients don't have to fan out one request per function. - operationId: listProjectSchedulers - security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/Page' - - $ref: '#/components/parameters/Limit' - - $ref: '#/components/parameters/Cursor' - - $ref: '#/components/parameters/EndingBefore' - - $ref: '#/components/parameters/Offset' - - $ref: '#/components/parameters/Search' - responses: - '200': - description: Project schedulers + '403': + description: Function limit exceeded for the project content: application/json: schema: - $ref: '#/components/schemas/FunctionSchedulerListResponse' - /projects/{id}/functions/{functionId}/schedulers: + $ref: '#/components/schemas/Error' + '409': + description: | + Function deletion is queued or running, or the name is already held + by a durable function — a function cannot change kind. + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '429': + description: | + The owner's billing-cycle build-minutes allowance is spent. The + error names the allowance and carries a link to the usage page. + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '500': + description: Internal server error (function deployment failed) + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '503': + description: | + Build usage could not be read, so the allowance could not be + checked. The same request succeeds once it can be. + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /projects/{id}/functions/{functionId}: get: tags: - Functions - summary: List schedulers for a function - operationId: listFunctionSchedulers + summary: Get function by ID + operationId: getFunction security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - $ref: '#/components/parameters/FunctionId' responses: '200': - description: Function schedulers + description: Successful response content: application/json: schema: - $ref: '#/components/schemas/FunctionSchedulerListResponse' - post: + $ref: '#/components/schemas/Function' + '404': + description: Function not found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + patch: tags: - Functions - summary: Create a scheduler for a function - description: Creates regional scheduled invocation jobs. Requested regions must be a subset of the function's deployed regions. - operationId: createFunctionScheduler + summary: Update function settings + operationId: updateFunction security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - $ref: '#/components/parameters/FunctionId' @@ -3484,224 +3641,311 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateFunctionSchedulerRequest' + $ref: '#/components/schemas/UpdateFunctionRequest' + examples: + makePublic: + summary: Make function public (anon keys can invoke) + value: + is_public: true + makePrivate: + summary: Make function private (default behavior) + value: + is_public: false responses: - '201': - description: Scheduler created + '200': + description: Function updated content: application/json: schema: - $ref: '#/components/schemas/FunctionScheduler' + $ref: '#/components/schemas/Function' '400': - description: Invalid schedule or geofenced region + description: Bad request content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/functions/{functionId}/schedulers/{schedulerId}: - get: - tags: - - Functions - summary: Get a function scheduler - operationId: getFunctionScheduler - security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/FunctionId' - - $ref: '#/components/parameters/SchedulerId' - responses: - '200': - description: Function scheduler + '404': + description: Function not found content: application/json: schema: - $ref: '#/components/schemas/FunctionScheduler' - patch: - tags: - - Functions - summary: Update a function scheduler - operationId: updateFunctionScheduler - security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/FunctionId' - - $ref: '#/components/parameters/SchedulerId' - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/UpdateFunctionSchedulerRequest' - responses: - '200': - description: Scheduler updated + $ref: '#/components/schemas/Error' + '409': + description: Function settings conflict with attached Frontend Function routes content: application/json: schema: - $ref: '#/components/schemas/FunctionScheduler' + $ref: '#/components/schemas/Error' delete: tags: - Functions - summary: Delete a function scheduler - operationId: deleteFunctionScheduler - security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/FunctionId' - - $ref: '#/components/parameters/SchedulerId' - responses: - '204': - description: Scheduler deleted - /projects/{id}/functions/{functionId}/deployments: - get: - tags: - - Functions - summary: List function deployments - operationId: listFunctionDeployments + summary: Delete a function + description: | + Schedules asynchronous function deletion. If another deployment is running, the function + preserves its current status and exposes the queued deletion through `pending_deployment_id`. + Its status changes to `deleting` when cleanup starts. After cleanup, it returns 404 and no + longer appears in function lists. + operationId: deleteFunction security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - $ref: '#/components/parameters/FunctionId' - - $ref: '#/components/parameters/Page' - - $ref: '#/components/parameters/Limit' responses: - '200': - description: Successful response - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedFunctionDeployments' + '202': + description: Function deletion started or queued '404': description: Function not found content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/durable-functions/{functionId}/executions/{executionId}/stop: + /functions/{functionId}/invoke: post: tags: - - Durable Functions - summary: Stop a durable execution + - Functions + summary: Invoke a function description: | - Requests cancellation of a running execution. The call is accepted - rather than awaited: the execution in the response is the one read back - after asking, and may still say `running`. Poll the execution to see it - settle into `stopped`. + Invoke a function. - Completed steps are not undone. - operationId: stopDurableExecution + **With Service Key** (admin/background operations): + - Use for background jobs, webhooks, cron, admin operations + - Function receives payload only (no user context) + - Database queries bypass RLS (admin access) + + **With Auth User Token** (user-facing): + - Use for user-initiated actions + - Function receives payload + `__volcano_auth` context: + ```javascript + { + user_id: "uuid", + email: "user@example.com", + project_id: "uuid", + role: "authenticated" or "anonymous" + } + ``` + - Database queries enforce RLS (user-scoped data) + + **With Anon Key** (public function only): + - Requires anon key permission: `functions.invoke` + - Function must have `is_public: true` + - Function receives payload only (no `__volcano_auth`) + + **Transport and CORS:** + - This operation is the authenticated direct RPC endpoint and always uses the + POST `{payload: ...}` contract, including for functions whose DNS ingress is + configured in HTTP mode. + - The geo-routed DNS ingress is the function's `invoke_url`. It is on a + different domain from this API, so it cannot be derived from the API host. + - RPC-mode DNS ingress accepts POST at `/`. HTTP-mode DNS ingress accepts GET, + HEAD, POST, PUT, PATCH, and DELETE at `/` and nested paths. + - Direct and RPC-mode CORS preflight advertises `POST, OPTIONS`. HTTP-mode DNS + preflight advertises `GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS`. + - `http_auth_mode: none` applies only to public HTTP-mode DNS ingress; this + direct operation always requires a Volcano credential. + + **Durable functions are not invocable here.** A durable function's id + answers 404, whatever its visibility, because a synchronous call would + run it with no execution record, no idempotency and no concurrency + accounting. Start one with + `POST /durable-functions/{functionId}/executions`. + operationId: invokeFunction security: - - UserToken: [] + - AnonKey: [] + - ServiceRoleKey: [] + - AuthUserAccessToken: [] parameters: - - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/DurableFunctionId' - - $ref: '#/components/parameters/DurableExecutionId' + - $ref: '#/components/parameters/FunctionId' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/FunctionInvocationRequest' + examples: + serviceCall: + summary: Admin/background operation (service key) + value: + payload: + action: process_batch + items: + - 1 + - 2 + - 3 + userCall: + summary: User-initiated call (auth token) + value: + payload: + action: get_profile + anonCall: + summary: Public function call (anon key) + value: + payload: + action: ping_public_endpoint responses: '200': - description: Execution stopped + description: Function response (passthrough from function runtime) + headers: + X-Volcano-Version: + description: Volcano API/runtime version that served this invocation (`` in production, `-` in non-production) + schema: + type: string + X-Volcano-Region: + description: Region the function ran in (for example `us-east-1`) + schema: + type: string + X-Volcano-Proxy-Ms: + description: Milliseconds Volcano spent preparing the invocation, counted from the request arriving until the function was dispatched. Present only when the function was invoked. Does not include function execution. + schema: + type: integer + minimum: 0 + X-Volcano-Proxy-Handler-Ms: + description: The part of `X-Volcano-Proxy-Ms` spent in the invoke endpoint itself. Subtract it from `X-Volcano-Proxy-Ms` to see what authentication and request validation cost. Present only when the function was invoked. + schema: + type: integer + minimum: 0 + X-Volcano-Compute-Ms: + description: Milliseconds spent running the function, from dispatch until it returned. Present only when the function was invoked. Does not include proxy preparation. + schema: + type: integer + minimum: 0 content: application/json: schema: - $ref: '#/components/schemas/DurableExecution' - '404': - description: Durable function or execution not found + $ref: '#/components/schemas/FunctionInvocationResponse' + '400': + description: Bad request - invalid payload or function in failed state content: application/json: schema: $ref: '#/components/schemas/Error' - '409': - description: Execution has not started yet + '401': + description: Unauthorized - invalid or missing token content: application/json: schema: $ref: '#/components/schemas/Error' - '503': - description: | - Durable execution is not available in this environment. Returned by - a deployment that has no durable execution engine, such as a local - one; the request is not retryable there. + '403': + description: Forbidden - CORS blocked, missing `functions.invoke`, or private function with anon key content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/durable-functions/{functionId}/executions/{executionId}: - get: - tags: - - Durable Functions - summary: Get a durable execution - description: | - Returns the execution's current state, including its `result` once it has - succeeded. Poll this to wait for an execution to finish. - operationId: getDurableExecution - security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/DurableFunctionId' - - $ref: '#/components/parameters/DurableExecutionId' - responses: - '200': - description: Successful response + '404': + description: Function not found content: application/json: schema: - $ref: '#/components/schemas/DurableExecution' - '404': - description: Durable function or execution not found + $ref: '#/components/schemas/Error' + '429': + description: | + Rate limit exceeded (per-function or project-wide limit), or the + owning platform user's billing-cycle bandwidth allowance (aggregate ingress + + egress) was exceeded. content: application/json: schema: $ref: '#/components/schemas/Error' '503': description: | - Durable execution is not available in this environment. Returned by - a deployment that has no durable execution engine, such as a local - one; the request is not retryable there. + Function still provisioning or rate limiting service unavailable. + A freshly deployed (or updated) function may briefly report + `provisioning` and reject invocations until the background status + reconciler observes its deployment workflow completing and transitions + it to `active`. This is expected for a few seconds after deploy; clients + should retry. content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/durable-functions/{functionId}/executions: + default: + description: Function response (passthrough; status code/body/headers come from the function) + headers: + X-Volcano-Version: + description: Volcano API/runtime version that served this invocation (`` in production, `-` in non-production) + schema: + type: string + X-Volcano-Region: + description: Region the function ran in (for example `us-east-1`) + schema: + type: string + X-Volcano-Proxy-Ms: + description: Milliseconds Volcano spent preparing the invocation, counted from the request arriving until the function was dispatched. Present only when the function was invoked. Does not include function execution. + schema: + type: integer + minimum: 0 + X-Volcano-Proxy-Handler-Ms: + description: The part of `X-Volcano-Proxy-Ms` spent in the invoke endpoint itself. Subtract it from `X-Volcano-Proxy-Ms` to see what authentication and request validation cost. Present only when the function was invoked. + schema: + type: integer + minimum: 0 + X-Volcano-Compute-Ms: + description: Milliseconds spent running the function, from dispatch until it returned. Present only when the function was invoked. Does not include proxy preparation. + schema: + type: integer + minimum: 0 + content: + application/json: + schema: + $ref: '#/components/schemas/FunctionInvocationResponse' + /durable-functions/{functionId}/executions: post: tags: - Durable Functions - summary: Start a durable execution + summary: Start a durable execution from an application description: | - Starts an execution and returns its handle. Never returns a result: an - execution can outlive any request a client could hold open, so the - result is read back from - `GET /projects/{id}/durable-functions/{functionId}/executions/{executionId}`. + Starts an execution of a durable function using an application + credential, and returns its handle. - The request body is the execution's input and must be valid JSON if - present. An empty body starts the execution with no input. + This is the durable counterpart of `POST /functions/{functionId}/invoke`, + and it is the endpoint an application calls. Like that one, it is not + project-scoped: an anon key, a service key and an auth user token each + carry their own project. The project-scoped collection under + `/projects/{id}/durable-functions/...` remains the owner's management + surface. - Send `X-Volcano-Execution-Name` to make the start idempotent: repeating a - start with the same name returns the existing execution instead of + **With a service key or an auth user token:** any durable function in + the project. + + **With an anon key:** requires the `functions.invoke` permission, and + the function must have `is_public: true`. + + Starting is all this endpoint does. Reading a result or stopping an + execution requires the project owner's token, because an anon key is + shared by everyone who loads the page and an execution is addressed by + id alone. + + Send `X-Volcano-Execution-Name` to make the start idempotent: repeating + a start with the same name returns the existing execution instead of beginning a second one. - Each execution counts against the project's function invocation - allowance, and the number of executions in flight at once is capped by - the plan. - operationId: startDurableExecution + Each execution counts once against the project's durable execution + allowance, however many times the start is retried under the same + execution name, and the number in flight at once is capped by the plan. + The operations the execution performs are counted against the durable + operations allowance when it finishes. + operationId: startDurableExecutionFromApplication security: - - UserToken: [] + - AnonKey: [] + - ServiceRoleKey: [] + - AuthUserAccessToken: [] parameters: - - $ref: '#/components/parameters/ProjectId' - $ref: '#/components/parameters/DurableFunctionId' - name: X-Volcano-Execution-Name in: header required: false description: | - Idempotency key for this execution. Generated when omitted. - Letters, digits, `-`, `_` and `.`, up to 255 characters. + Idempotency key for this execution. Generated when omitted. A repeat + under a name that already names a running execution returns that + execution and is not charged again. + + Letters, digits, `-`, `_` and `.`, up to 255 characters. Anything + else is rejected with `400`. schema: type: string maxLength: 255 - pattern: '^[A-Za-z0-9._-]+$' + pattern: ^[A-Za-z0-9._-]+$ requestBody: required: false content: @@ -3721,384 +3965,377 @@ paths: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Durable function not found + '401': + description: | + Missing or invalid credential. Also returned for a platform user + token, which is not an application credential; project owners start + executions through the project-scoped collection. content: application/json: schema: $ref: '#/components/schemas/Error' - '409': + '403': description: | - Function is not deployed yet, or has no deployed region. Also - returned when two starts under the same execution name raced and - both released it, which is retryable as it stands. + The anon key lacks `functions.invoke`, the function is not public, + or the request's origin is refused by the project's CORS policy. content: application/json: schema: $ref: '#/components/schemas/Error' - '413': - description: Payload exceeds the maximum execution input size + '404': + description: | + Durable function not found. Also returned for a standard function's + id and for a durable function in another project, so the response + cannot be used to tell those apart. + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '409': + description: | + Function is not deployed yet, or has no deployed region. Also + returned when two starts under the same execution name raced and + both released it, which is retryable as it stands. + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '413': + description: Payload is larger than 256 KiB content: application/json: schema: $ref: '#/components/schemas/Error' '429': description: | - Too many executions already in flight for this project, or the - account is out of its billing-cycle function invocation allowance. + The project has too many executions in flight for its plan, the + function invocation rate limit was exceeded, the project is over + its bandwidth cap, or the account is out of one of its + billing-cycle durable allowances: executions, operations, or + compute. Operations and compute are counted once an execution + finishes, so a refusal on either never interrupts an execution + already running — it declines the next start. content: application/json: schema: $ref: '#/components/schemas/Error' '503': description: | - Durable execution is not available in this environment. Returned by - a deployment that has no durable execution engine, such as a local - one; the request is not retryable there. + Durable execution is not available in this environment, or the + plan terms for the start could not be read. The first means the + capability is paused or this deployment cannot serve it, so it is + not one to retry in a loop; the second is transient. content: application/json: schema: $ref: '#/components/schemas/Error' + /functions/resolve: get: tags: - - Durable Functions - summary: List a durable function's executions + - Functions + summary: Resolve function name for invocation description: | - Returns the platform's last observed status for each execution; listing - does not poll each one. Fetch a single execution for its live state. - operationId: listDurableExecutions + Resolves a DNS-safe function name to its function ID and invocation URL within the caller's project. + + SDKs use this endpoint internally to invoke by function name while routing by function ID. + Invoke the returned `invoke_url` as-is. It does not share a domain with the API, so a host + built from the API URL will not reach the function. When the deployment serves no public + invocation domain, as in local development, `invoke_url` is omitted and callers invoke + through `POST /functions/{functionId}/invoke`. + + **With Service Key**: + - Allowed + + **With Auth User Token**: + - Allowed + + **With Anon Key**: + - Requires anon key permission: `functions.invoke` + - Function must have `is_public: true` + operationId: resolveFunctionForInvocation security: - - UserToken: [] + - AnonKey: [] + - ServiceRoleKey: [] + - AuthUserAccessToken: [] parameters: - - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/DurableFunctionId' - - $ref: '#/components/parameters/Page' - - $ref: '#/components/parameters/Limit' - - name: status + - name: name in: query - required: false - description: Return only executions in this status. + required: true schema: - $ref: '#/components/schemas/DurableExecutionStatus' + type: string + maxLength: 63 + pattern: ^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$ + description: DNS-safe function name (lowercase letters, numbers, hyphens; cannot start or end with hyphen) + example: my-function responses: '200': - description: Successful response + description: Function resolved successfully content: application/json: schema: - $ref: '#/components/schemas/PaginatedDurableExecutions' + $ref: '#/components/schemas/ResolveFunctionResponse' '400': - description: Unsupported status filter + description: Bad request - missing or invalid function name content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Durable function not found + '401': + description: Unauthorized - invalid or missing token content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/durable-functions/{functionId}/deployments: - get: - tags: - - Durable Functions - summary: List durable function deployments - operationId: listDurableFunctionDeployments - security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/DurableFunctionId' - - $ref: '#/components/parameters/Page' - - $ref: '#/components/parameters/Limit' - responses: - '200': - description: Successful response - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedFunctionDeployments' - '404': - description: Durable function not found + '403': + description: Forbidden - CORS blocked or missing `functions.invoke` permission for anon key content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/durable-functions/{functionId}/schedulers: - get: - tags: - - Durable Functions - summary: List schedulers for a durable function - description: | - The durable collection's counterpart to - `/projects/{id}/functions/{functionId}/schedulers`. A standard - function's id is not accepted here, and a durable function's id is not - accepted there. - operationId: listDurableFunctionSchedulers - security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/DurableFunctionId' - responses: - '200': - description: Durable function schedulers - content: - application/json: - schema: - $ref: '#/components/schemas/FunctionSchedulerListResponse' '404': - description: Durable function not found + description: | + Function not found (or private function with anon key). A durable + function is never resolvable here: it is started through + `POST /durable-functions/{functionId}/executions`, not invoked. content: application/json: schema: $ref: '#/components/schemas/Error' + /projects/{id}/logs/activity: post: tags: - - Durable Functions - summary: Create a scheduler for a durable function + - Logs + summary: Get project log activity description: | - Each tick starts an execution rather than invoking the function, under - an execution name derived from the run, so a retried tick resolves to - the execution it already started. Requested regions must be a subset of - the function's deployed regions. - - A tick draws on the same invocation allowance and concurrency cap a - manual start does, and a tick that would exceed the cap fails that run. - operationId: createDurableFunctionScheduler + Retrieve bucketed log counts for one resource type in the project. Set + `resource.type` to `function`, `frontend`, or `database`. Add + `resource.ids` to filter to one or more resources, and add + `resource.deployments.ids` to count deployment logs instead of runtime + logs for functions and frontends. Deployment logs are not supported for + databases. Database logs are a PRO-plan feature; `resource.type=database` + from a FREE-plan project owner returns 403. The activity window is limited + to the plan's retention window (FREE: 1 day, PRO: 30 days); older start + times are clamped to that window. Buckets are aligned to UTC clock + intervals and count events in the half-open window + `[start_time, end_time)`. + operationId: getProjectLogActivity security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/DurableFunctionId' requestBody: required: true content: application/json: schema: - $ref: '#/components/schemas/CreateFunctionSchedulerRequest' + $ref: '#/components/schemas/LogActivityRequest' responses: - '201': - description: Scheduler created + '200': + description: Successful response content: application/json: schema: - $ref: '#/components/schemas/FunctionScheduler' + $ref: '#/components/schemas/LogActivityResponse' '400': - description: | - Invalid schedule, geofenced region, a scheduler of this name - already exists on the function, or the function is not active. + description: Bad request - invalid query parameter content: application/json: schema: $ref: '#/components/schemas/Error' - '403': - description: | - Schedulers are not available on this plan, or the project already - holds as many as the plan allows. The cap counts standard and - durable function schedulers together. + '401': + description: Unauthorized - invalid or missing token content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Durable function not found + '403': + description: Forbidden - project ownership required content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/durable-functions/{functionId}/schedulers/{schedulerId}: - get: - tags: - - Durable Functions - summary: Get a durable function scheduler - operationId: getDurableFunctionScheduler - security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/DurableFunctionId' - - $ref: '#/components/parameters/SchedulerId' - responses: - '200': - description: Durable function scheduler - content: - application/json: - schema: - $ref: '#/components/schemas/FunctionScheduler' '404': - description: Durable function or scheduler not found + description: Project or resource not found content: application/json: schema: $ref: '#/components/schemas/Error' - patch: + /projects/{id}/logs/search: + post: tags: - - Durable Functions - summary: Update a durable function scheduler - operationId: updateDurableFunctionScheduler + - Logs + summary: Search project logs + description: | + Search or filter logs for one resource type in the project. Set + `resource.type` to `function`, `frontend`, or `database`. Add + `resource.ids` to filter to one or more resources, and add + `resource.deployments.ids` to read deployment logs instead of runtime + logs for functions and frontends. Deployment logs are not supported for + databases. Database logs are a PRO-plan feature; requests for + `resource.type=database` from a FREE-plan project owner return 403. + Log history (runtime and deployment) is limited to the plan's retention + window (FREE: 1 day, PRO: 30 days); older time ranges are clamped to that + window. + operationId: searchProjectLogs security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/DurableFunctionId' - - $ref: '#/components/parameters/SchedulerId' requestBody: required: true content: application/json: schema: - $ref: '#/components/schemas/UpdateFunctionSchedulerRequest' + $ref: '#/components/schemas/LogSearchRequest' responses: '200': - description: Scheduler updated + description: Successful response content: application/json: schema: - $ref: '#/components/schemas/FunctionScheduler' + $ref: '#/components/schemas/LogSearchResponse' '400': - description: | - Invalid schedule, geofenced region, or a scheduler of this name - already exists on the function. + description: Bad request - invalid query parameter content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Durable function or scheduler not found + '401': + description: Unauthorized - invalid or missing token content: application/json: schema: $ref: '#/components/schemas/Error' - delete: - tags: - - Durable Functions - summary: Delete a durable function scheduler - operationId: deleteDurableFunctionScheduler - security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/DurableFunctionId' - - $ref: '#/components/parameters/SchedulerId' - responses: - '204': - description: Scheduler deleted - '404': - description: Durable function or scheduler not found + '403': + description: Forbidden - project ownership required content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/durable-functions/{functionId}: - get: - tags: - - Durable Functions - summary: Get durable function by ID or name - operationId: getDurableFunction - security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/DurableFunctionId' - responses: - '200': - description: Successful response - content: - application/json: - schema: - $ref: '#/components/schemas/DurableFunction' - '404': - description: Durable function not found + '404': + description: Project or resource not found content: application/json: schema: $ref: '#/components/schemas/Error' - delete: + /projects/{id}/logs/stream: + post: tags: - - Durable Functions - summary: Delete a durable function + - Logs + summary: Stream project logs description: | - Accepted for asynchronous teardown; the work continues after the - response. Executions still running do not survive the function. History - already retained is governed by the function's `retention_days`, which - this does not shorten. - operationId: deleteDurableFunction + Live-tail project logs as Server-Sent Events. The request body uses the + resource selector plus `q`, `start_time`, and `limit`, + including runtime logs and function/frontend deployment logs selected + with `resource.deployments`. Deployment logs are not supported for + databases. Database logs are a PRO-plan feature; `resource.type=database` + from a FREE-plan project owner returns 403. The `q` field uses the same + syntax as search and activity requests. Do not send `cursor` or + `end_time`; use `/logs/search` for range backfills. + Explicit historical `start_time` values are limited to the plan's + retention window (FREE: 1 day, PRO: 30 days). Resume with + `Last-Event-ID` or the `last_event_id` query parameter. The cursor is + bound to the request body: the resource selector and every filter must + match the original request when reconnecting, otherwise the request is + rejected with `400`. + + This is a live tail, not a gap-free backfill. On connect or reconnect the + server delivers at most `limit` of the most recent matching events from + the cursor position and then follows new events; events older than that + window are not replayed. Use `/logs/search` to backfill a time range. + operationId: streamProjectLogs security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/DurableFunctionId' + - name: Last-Event-ID + in: header + required: false + schema: + type: string + description: Opaque stream cursor from the most recent SSE `id` field. + - name: last_event_id + in: query + required: false + schema: + type: string + description: Opaque stream cursor fallback when setting `Last-Event-ID` is not practical. + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/LogStreamRequest' responses: - '202': - description: Deletion accepted and teardown started - '404': - description: | - Durable function not found. Also returned for an id that names a - durable function in another project, so the response cannot be used - to tell the two apart. + '200': + description: Server-Sent Events stream. `log` events contain a JSON `LogSearchEvent`; `warning` events contain a JSON object with an `error` field. + content: + text/event-stream: + schema: + type: string + examples: + log: + summary: Log event + value: | + : connected + + id: STREAM_CURSOR + event: log + data: {"id":"LOG_EVENT_ID","timestamp":"2024-01-01T12:00:00Z","level":"info","message":"User logged in","resource":{"type":"function","id":"550e8400-e29b-41d4-a716-446655440000","name":"login"},"region":"us-east-1"} + '400': + description: Bad request - invalid selector, stream cursor, or unsupported stream field content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/durable-functions: - get: - tags: - - Durable Functions - summary: List all durable functions in a project - description: | - Standard functions never appear here, and durable functions never appear - under `/projects/{id}/functions`. The two are separate collections. - operationId: listDurableFunctions - security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/Page' - - $ref: '#/components/parameters/Limit' - - $ref: '#/components/parameters/Search' - responses: - '200': - description: Successful response + '401': + description: Unauthorized - invalid or missing token content: application/json: schema: - $ref: '#/components/schemas/PaginatedDurableFunctions' - '400': - description: Bad request - invalid pagination parameters + $ref: '#/components/schemas/Error' + '403': + description: Forbidden - project ownership required content: application/json: schema: $ref: '#/components/schemas/Error' '404': - description: Project not found + description: Project or resource not found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '500': + description: Internal server error - log streaming setup failed content: application/json: schema: $ref: '#/components/schemas/Error' + /projects/{id}/functions/batch: post: tags: - - Durable Functions - summary: Create or update a durable function + - Functions + summary: Deploy multiple functions in one request description: | - Upload a durable function source bundle. Creates the function on the - first call for a name and redeploys it on every call after that, the - same create-or-update contract `POST /projects/{id}/functions` has. - - Volcano builds and deploys asynchronously. A deployment that starts - immediately returns `status: provisioning`, then transitions to `active` - or `failed`; a deployment that has to wait for a running one is exposed - through `pending_deployment_id`. Existing executions keep running - against the runtime they started on. - - The `durable` configuration is derived from the project's plan rather - than supplied here, and is fixed once the function exists. A name - already held by a standard function is rejected with 409: a function - cannot change kind. - operationId: createDurableFunction + Upload multiple function source archives in one multipart request. Each archive should contain source files + plus dependency manifests/lockfiles, not installed dependency directories. ZIP and tar.gz uploads are + accepted and normalized to tar.gz before storage. The API enforces `SOURCE_ARCHIVE_SIZE_LIMIT_MB` + for each uploaded and normalized source archive. The server records a shared + deployment batch ID for the resulting function deployments. Each function deployment runs its own + compile/publish workflow concurrently, and each publish build enforces `LAMBDA_TARGET_CONTAINER_SIZE_LIMIT_MB` + for the final container image. + One batch request can include up to 100 functions. Submit multiple batch requests for larger projects. + If one function fails before its workflow starts, already-started function deployments are left + running and the failed function is reported in the `failed` array. Failed new functions are deleted; + failed updates are rolled back to their previous metadata/status where possible. + operationId: createFunctionsBatch security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' requestBody: @@ -4107,115 +4344,83 @@ paths: multipart/form-data: schema: type: object - required: - - name - - code - - runtime properties: - name: - type: string - description: DNS-safe function name (lowercase letters, numbers, hyphens; cannot start or end with hyphen) - maxLength: 63 - pattern: ^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$ - example: order-pipeline - code: - type: string - format: binary - description: ZIP or tar.gz archive containing function source code plus dependency manifests/lockfiles. - runtime: - type: string - enum: - - nodejs22.x - - nodejs24.x - - python3.13 - - python3.14 - description: | - Runtime environment. Required. Durable execution needs the - durable authoring API, which ships for these runtimes only; - any other runtime is rejected with 400 and the response - names the ones that work. Note that a durable Python - function needs a newer runtime than a standard one defaults - to. `GET /functions/runtimes` reports `durable_capable` per - runtime. - example: nodejs24.x - handler: - type: string - description: The name of the function to invoke. Defaults to "handler" if not specified. - default: handler - example: handler - is_public: - type: boolean - description: | - Whether anon keys with `functions.invoke` may start an - execution. Redeploying is the only way to change it, since - the collection has no update endpoint; omit it to keep the - current visibility, and a new function starts private. - variable_scope: + functions: type: string - enum: [all, scoped] - x-enum-varnames: [CreateDurableFunctionMultipartBodyVariableScopeAll, CreateDurableFunctionMultipartBodyVariableScopeScoped] description: | - Which project variables this function receives. `all` (the default) gives it every project variable; `scoped` gives it only the variables it selects. Omitting this leaves an existing function's scope unchanged. - variables: + JSON array of functions with `name`, `runtime`, optional `handler`, and `file_field`. Each `file_field` must name a multipart file field containing that function's ZIP or tar.gz source bundle. + + Each entry may also declare `variable_scope` (`all` or `scoped`) and `variables` (an array of project variable names). Omitting them leaves the function's stored declaration unchanged. Volcano detects direct environment references in the uploaded source code and keeps them separate from the declared names: detected names are not written back to the declaration and do not appear in a config export. A scoped function receives its declared names plus the detected ones the project defines; a detected name the project does not define is ignored, since such a reference is often optional. Detection reads code only, so a name appearing solely in a comment or in an unrelated string is not a reference. Declare a name when the function reads it through a computed key, or when it must not deploy without the variable. The request is rejected with 400 before anything is deployed if a scoped function declares a variable the project does not define, or if the resulting environment exceeds 4096 bytes. + code_0: type: string - description: | - JSON-encoded array of project variable names this function requires, on top of the ones detected in its source. A declared name the project does not define is rejected with 400; a detected name it does not define is ignored. Only used when `variable_scope` is `scoped`. Omitting this leaves an existing function's declared names unchanged. + format: binary + description: Function ZIP or tar.gz archive referenced by the first manifest entry's `file_field`; additional code_N file fields may be included. Each archive is subject to SOURCE_ARCHIVE_SIZE_LIMIT_MB. + required: + - functions responses: - '200': - description: Existing durable function updated; its deployment was started or queued + '202': + description: Batch deployment accepted content: application/json: schema: - $ref: '#/components/schemas/DurableFunction' - '201': - description: Durable function created and deployment workflow started + $ref: '#/components/schemas/BatchFunctionDeployResponse' + '207': + description: Batch deployment partially accepted; successful functions started deployment and failed functions were compensated where possible content: application/json: schema: - $ref: '#/components/schemas/DurableFunction' + $ref: '#/components/schemas/BatchFunctionDeployResponse' '400': - description: | - Bad request (invalid archive, unsupported runtime, invalid name, or a - project region that does not offer durable execution — a durable - function deploys to every region of its project) + description: Bad request content: application/json: schema: $ref: '#/components/schemas/Error' '403': - description: Durable function limit exceeded for the project + description: Function limit exceeded for the project content: application/json: schema: $ref: '#/components/schemas/Error' '409': - description: Name is held by a standard function, or a deletion is queued or running + description: | + A name in the batch is held by a function of the other kind — a + function cannot change kind — or the project's source is managed by + Git, where deploys come from a push to the production branch. + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '429': + description: | + The owner's billing-cycle build-minutes allowance is spent. The + error names the allowance and carries a link to the usage page. content: application/json: schema: $ref: '#/components/schemas/Error' '503': description: | - Durable deploys are paused platform-wide. The same request succeeds - once they are re-enabled; executions already running are unaffected. + Build usage could not be read, so the allowance could not be + checked. The same request succeeds once it can be. content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/frontends: + /projects/{id}/schedulers: get: tags: - - Frontends - summary: List all frontends in a project + - Functions + summary: List every function scheduler in a project description: | - Supports two mutually exclusive pagination modes. Offset mode uses `page` - and `limit` and returns `next` (URL). Cursor mode uses `cursor` and - `limit`, supports `search` (case-insensitive name match), and returns - `next_cursor`. Sending both `page` and `cursor` (or `page` and `search`) - returns 400. - operationId: listFrontends + Project-scoped counterpart to `/projects/{id}/functions/{functionId}/schedulers`. + Returns schedulers across all functions in the project, ordered by + creation time descending, with standard page/limit pagination so + clients don't have to fan out one request per function. + operationId: listProjectSchedulers security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - $ref: '#/components/parameters/Page' @@ -4226,695 +4431,868 @@ paths: - $ref: '#/components/parameters/Search' responses: '200': - description: Successful response - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedFrontends' - '400': - description: Bad request - invalid project identifier + description: Project schedulers content: application/json: schema: - $ref: '#/components/schemas/Error' - '401': - description: Unauthorized - invalid or missing token - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '403': - description: Forbidden - project ownership required + $ref: '#/components/schemas/FunctionSchedulerListResponse' + /projects/{id}/functions/{functionId}/schedulers: + get: + tags: + - Functions + summary: List schedulers for a function + operationId: listFunctionSchedulers + security: + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - $ref: '#/components/parameters/FunctionId' + responses: + '200': + description: Function schedulers content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: '#/components/schemas/FunctionSchedulerListResponse' '404': - description: Project not found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '500': - description: Internal server error + description: Function not found content: application/json: schema: $ref: '#/components/schemas/Error' post: tags: - - Frontends - summary: Create a new frontend deployment - description: | - Creates and deploys a frontend for the project. - If a frontend with the same name already exists in the project, this operation updates that - frontend using the uploaded archive and starts a new deployment. A deployment that starts - immediately returns `status: provisioning`, then transitions to `active`, `degraded`, or - `failed`. If another deployment is running, the response preserves the frontend's current status - and exposes the queued deployment through `pending_deployment_id`. - Existing frontend traffic continues to use an available runtime while the new deployment builds - and provisions. Each deployment publishes its own static assets before the runtimes switch to its - build, and the live build's assets keep serving until the new deployment is live, so a page loaded - mid-deployment resolves its assets whichever build served it. A failed redeploy puts the runtimes - back on the build they were running, leaves the frontend `active` on the previous deployment, and - records the attempted deployment as failed. `degraded` means the runtime remains available but - edge synchronization requires recovery; Volcano retries the edge step without rebuilding. Only one deployment may run for a - given frontend, while independent frontends and projects can deploy concurrently. - For monorepos, provide `app_root` as a relative path from the uploaded archive root - to the Next.js app that should be built. Omit it for single-app archives. - Supported frontend environments are Next.js 15.x and 16.x with Node.js - 22.x or 24.x. The Node.js runtime is inferred from - `package.json` `engines.node`; if omitted, Volcano uses Node.js 22.x. - The selected Node.js family must also satisfy the installed Next.js package's - `engines.node` constraint. Volcano tests Next 15.5.23 (`^18.18.0 || ^19.8.0 || >=20.0.0`) and Next 16.3.2 (`>=20.9.0`). - Source archive size is enforced by the API with `SOURCE_ARCHIVE_SIZE_LIMIT_MB`; the CLI - does not apply its own source archive size limit. After the final container images are - built, the publish build enforces `LAMBDA_TARGET_CONTAINER_SIZE_LIMIT_MB` before pushing. - This operation is limited by plan-based frontend deployment quotas (`FREE_FRONTEND_DEPLOYMENTS`, `PRO_FRONTEND_DEPLOYMENTS`). - Each project can contain up to 10,000 frontends regardless of plan. - operationId: createFrontend + - Functions + summary: Create a scheduler for a function + description: Creates regional scheduled invocation jobs. Requested regions must be a subset of the function's deployed regions. + operationId: createFunctionScheduler security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' + - $ref: '#/components/parameters/FunctionId' requestBody: required: true content: - multipart/form-data: + application/json: schema: - type: object - required: - - name - - archive - properties: - name: - type: string - maxLength: 63 - pattern: ^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$ - description: DNS-safe frontend name - framework: - type: string - enum: - - nextjs - default: nextjs - description: Next.js frontend. Supported Next.js majors are 15.x and 16.x. - app_root: - type: string - maxLength: 1024 - description: Optional relative POSIX path from the uploaded archive root to the Next.js app to build, for example `apps/web`. - example: apps/web - archive: - type: string - format: binary - description: ZIP or tar.gz archive of the frontend project directory or monorepo workspace root. The API enforces SOURCE_ARCHIVE_SIZE_LIMIT_MB and stores a normalized tar.gz archive. + $ref: '#/components/schemas/CreateFunctionSchedulerRequest' responses: - '200': - description: Existing frontend updated; its deployment was started or queued - content: - application/json: - schema: - $ref: '#/components/schemas/Frontend' '201': - description: Frontend created and deployment workflow started + description: Scheduler created content: application/json: schema: - $ref: '#/components/schemas/Frontend' + $ref: '#/components/schemas/FunctionScheduler' '400': - description: Bad request - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '401': - description: Unauthorized - invalid or missing token + description: | + Invalid schedule, geofenced region, a scheduler of this name + already exists on the function, or the function is not active. content: application/json: schema: $ref: '#/components/schemas/Error' '403': - description: Frontend deployment limit exceeded for the current plan or project hard cap + description: | + Schedulers are not available on this plan, or the project already + holds as many as the plan allows. The cap counts standard and + durable function schedulers together. content: application/json: schema: $ref: '#/components/schemas/Error' '404': - description: Project not found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '409': - description: Conflict - frontend deletion is queued or running + description: Function not found content: application/json: schema: $ref: '#/components/schemas/Error' - '500': - description: Internal server error + /projects/{id}/functions/{functionId}/schedulers/{schedulerId}: + get: + tags: + - Functions + summary: Get a function scheduler + operationId: getFunctionScheduler + security: + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - $ref: '#/components/parameters/FunctionId' + - $ref: '#/components/parameters/SchedulerId' + responses: + '200': + description: Function scheduler content: application/json: schema: - $ref: '#/components/schemas/Error' - '503': - description: Service unavailable - frontend workflow or archive limit configuration missing + $ref: '#/components/schemas/FunctionScheduler' + '404': + description: Function or scheduler not found content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/frontends/{frontendId}: - get: + patch: tags: - - Frontends - summary: Get frontend details - operationId: getFrontend + - Functions + summary: Update a function scheduler + operationId: updateFunctionScheduler security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/FrontendId' + - $ref: '#/components/parameters/FunctionId' + - $ref: '#/components/parameters/SchedulerId' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateFunctionSchedulerRequest' responses: '200': - description: Successful response + description: Scheduler updated content: application/json: schema: - $ref: '#/components/schemas/Frontend' + $ref: '#/components/schemas/FunctionScheduler' '400': - description: Bad request - invalid identifier + description: | + Invalid schedule, geofenced region, or a scheduler of this name + already exists on the function. content: application/json: schema: $ref: '#/components/schemas/Error' - '401': - description: Unauthorized - invalid or missing token + '404': + description: Function or scheduler not found content: application/json: schema: $ref: '#/components/schemas/Error' - '403': - description: Forbidden - project ownership required + delete: + tags: + - Functions + summary: Delete a function scheduler + operationId: deleteFunctionScheduler + security: + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - $ref: '#/components/parameters/FunctionId' + - $ref: '#/components/parameters/SchedulerId' + responses: + '204': + description: Scheduler deleted + '404': + description: Function or scheduler not found content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Frontend not found + /projects/{id}/functions/{functionId}/deployments: + get: + tags: + - Functions + summary: List function deployments + operationId: listFunctionDeployments + security: + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - $ref: '#/components/parameters/FunctionId' + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/Limit' + responses: + '200': + description: Successful response content: application/json: schema: - $ref: '#/components/schemas/Error' - '500': - description: Internal server error + $ref: '#/components/schemas/PaginatedFunctionDeployments' + '404': + description: Function not found content: application/json: schema: $ref: '#/components/schemas/Error' - delete: + /projects/{id}/durable-functions: + get: tags: - - Frontends - summary: Delete a frontend + - Durable Functions + summary: List all durable functions in a project description: | - Schedules asynchronous frontend deletion. If another deployment is running, the frontend - preserves its current status and exposes the queued deletion through `pending_deployment_id`. - Its status changes to `deleting` when cleanup starts. After cleanup, it returns 404 and no - longer appears in frontend lists. - operationId: deleteFrontend + Standard functions never appear here, and durable functions never appear + under `/projects/{id}/functions`. The two are separate collections. + operationId: listDurableFunctions security: - UserToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/FrontendId' + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/Limit' + - $ref: '#/components/parameters/Search' responses: - '202': - description: Frontend deletion started or queued + '200': + description: Successful response + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDurableFunctions' '400': - description: Bad request - invalid identifier - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '401': - description: Unauthorized - invalid or missing token - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '403': - description: Forbidden - project ownership required + description: Bad request - invalid pagination parameters content: application/json: schema: $ref: '#/components/schemas/Error' '404': - description: Frontend not found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '500': - description: Internal server error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '503': - description: Service unavailable - frontend workflow configuration missing + description: Project not found content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/frontends/{frontendId}/redeploy: post: tags: - - Frontends - summary: Redeploy frontend using latest uploaded artifact + - Durable Functions + summary: Create or update a durable function description: | - Starts a new frontend workflow using the latest stored artifact. A deployment that starts - immediately returns `status: provisioning`, then transitions to `active`, `degraded`, or - `failed`. An overlapping deployment preserves the frontend's current status, is exposed through - `pending_deployment_id`, and supersedes any older queued deployment. The previous runtime and its - published static assets remain available during provisioning, and a failed redeploy restores the - regional runtimes to that build and keeps it serving while the attempted deployment is recorded as - failed. - operationId: redeployFrontend + Upload a durable function source bundle. Creates the function on the + first call for a name and redeploys it on every call after that, the + same create-or-update contract `POST /projects/{id}/functions` has. + + Volcano builds and deploys asynchronously. A deployment that starts + immediately returns `status: provisioning`, then transitions to `active` + or `failed`; a deployment that has to wait for a running one is exposed + through `pending_deployment_id`. Existing executions keep running + against the runtime they started on. + + The `durable` configuration is derived from the project's plan rather + than supplied here, and is fixed once the function exists. A name + already held by a standard function is rejected with 409: a function + cannot change kind. + operationId: createDurableFunction security: - UserToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/FrontendId' + requestBody: + required: true + content: + multipart/form-data: + schema: + type: object + required: + - name + - code + - runtime + properties: + name: + type: string + description: DNS-safe function name (lowercase letters, numbers, hyphens; cannot start or end with hyphen) + maxLength: 63 + pattern: ^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$ + example: order-pipeline + code: + type: string + format: binary + description: ZIP or tar.gz archive containing function source code plus dependency manifests/lockfiles. + runtime: + type: string + enum: + - nodejs22.x + - nodejs24.x + - python3.13 + - python3.14 + description: | + Runtime environment. Required. Durable execution needs the + durable authoring API, which ships for these runtimes only; + any other runtime is rejected with 400 and the response + names the ones that work. Note that a durable Python + function needs a newer runtime than a standard one defaults + to. `GET /functions/runtimes` reports `durable_capable` per + runtime. + example: nodejs24.x + handler: + type: string + description: The name of the function to invoke. Defaults to "handler" if not specified. + default: handler + example: handler + is_public: + type: boolean + description: | + Whether anon keys with `functions.invoke` may start an + execution. Redeploying is the only way to change it, since + the collection has no update endpoint; omit it to keep the + current visibility, and a new function starts private. + + The standard collection's synchronous invocation fields — + `invocation_mode`, `http_auth_mode`, `openapi_spec` — + configure a request path no durable route serves, and are + rejected with 400 rather than ignored. + variable_scope: + type: string + enum: + - all + - scoped + x-enum-varnames: + - CreateDurableFunctionMultipartBodyVariableScopeAll + - CreateDurableFunctionMultipartBodyVariableScopeScoped + description: | + Which project variables this function receives. `all` (the default) gives it every project variable; `scoped` gives it only the variables it selects. Omitting this leaves an existing function's scope unchanged. + variables: + type: string + description: | + JSON-encoded array of project variable names this function requires, on top of the ones detected in its source. A declared name the project does not define is rejected with 400; a detected name it does not define is ignored. Only used when `variable_scope` is `scoped`. Omitting this leaves an existing function's declared names unchanged. responses: '200': - description: Frontend redeploy started or queued + description: Existing durable function updated; its deployment was started or queued content: application/json: schema: - $ref: '#/components/schemas/Frontend' - '400': - description: Bad request - invalid identifier + $ref: '#/components/schemas/DurableFunction' + '201': + description: Durable function created and deployment workflow started content: application/json: schema: - $ref: '#/components/schemas/Error' - '401': - description: Unauthorized - invalid or missing token + $ref: '#/components/schemas/DurableFunction' + '400': + description: | + Bad request (invalid archive, unsupported runtime, invalid name, or a + project region that does not offer durable execution — a durable + function deploys to every region of its project) content: application/json: schema: $ref: '#/components/schemas/Error' '403': - description: Forbidden - project ownership required - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '404': - description: Frontend not found + description: Durable function limit exceeded for the project content: application/json: schema: $ref: '#/components/schemas/Error' '409': - description: Conflict - frontend deletion is queued or running + description: Name is held by a standard function, or a deletion is queued or running content: application/json: schema: $ref: '#/components/schemas/Error' '500': - description: Internal server error + description: Internal server error (function deployment failed) content: application/json: schema: $ref: '#/components/schemas/Error' '503': - description: Service unavailable - frontend workflow configuration missing + description: | + Durable deploys are paused platform-wide. The same request succeeds + once they are re-enabled; executions already running are unaffected. content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/frontends/{frontendId}/domain: + /projects/{id}/durable-functions/{functionId}: get: tags: - - Frontends - summary: Get frontend custom domain status - operationId: getFrontendCustomDomain + - Durable Functions + summary: Get durable function by ID or name + operationId: getDurableFunction security: - UserToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/FrontendId' + - $ref: '#/components/parameters/DurableFunctionId' responses: '200': - description: | - Frontend custom domain status, or null when the frontend has no - custom domain configured (the common empty state). + description: Successful response content: application/json: schema: - nullable: true - allOf: - - $ref: '#/components/schemas/FrontendCustomDomainResponse' - '400': - description: Bad request - invalid identifier + $ref: '#/components/schemas/DurableFunction' + '404': + description: Durable function not found content: application/json: schema: $ref: '#/components/schemas/Error' - '401': - description: Unauthorized - invalid or missing token + delete: + tags: + - Durable Functions + summary: Delete a durable function + description: | + Accepted for asynchronous teardown; the work continues after the + response. The function's executions go with it: executions still in + flight are stopped, and history stops being readable whatever + `retention_days` had left. + + Stopping is asynchronous at the platform, and it does not interrupt a + step already running -- that step runs to its next checkpoint. So a + delete ends an execution rather than halting it mid-step; stop the + execution yourself first if you need to observe it ending. + operationId: deleteDurableFunction + security: + - UserToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - $ref: '#/components/parameters/DurableFunctionId' + responses: + '202': + description: Deletion accepted and teardown started + '404': + description: | + Durable function not found. Also returned for an id that names a + durable function in another project, so the response cannot be used + to tell the two apart. content: application/json: schema: $ref: '#/components/schemas/Error' - '403': - description: Forbidden - project ownership required + /projects/{id}/durable-functions/{functionId}/deployments: + get: + tags: + - Durable Functions + summary: List durable function deployments + operationId: listDurableFunctionDeployments + security: + - UserToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - $ref: '#/components/parameters/DurableFunctionId' + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/Limit' + responses: + '200': + description: Successful response content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: '#/components/schemas/PaginatedFunctionDeployments' '404': - description: Frontend not found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '500': - description: Internal server error + description: Durable function not found content: application/json: schema: $ref: '#/components/schemas/Error' - post: + /projects/{id}/durable-functions/{functionId}/schedulers: + get: tags: - - Frontends - summary: Configure frontend custom domain (PRO) + - Durable Functions + summary: List schedulers for a durable function description: | - Configures one custom domain for a frontend. - The default Volcano-generated frontend URL remains active. - Wildcard Volcano frontend TLS remains valid and isolated from custom-domain certificate changes. - operationId: createFrontendCustomDomain + The durable collection's counterpart to + `/projects/{id}/functions/{functionId}/schedulers`. A standard + function's id is not accepted here, and a durable function's id is not + accepted there. + operationId: listDurableFunctionSchedulers security: - UserToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/FrontendId' - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/CreateFrontendCustomDomainRequest' + - $ref: '#/components/parameters/DurableFunctionId' responses: '200': - description: Custom domain already configured with same hostname + description: Durable function schedulers content: application/json: schema: - $ref: '#/components/schemas/FrontendCustomDomainResponse' - '201': - description: Custom domain provisioning started - content: - application/json: - schema: - $ref: '#/components/schemas/FrontendCustomDomainResponse' - '400': - description: Bad request - invalid domain + $ref: '#/components/schemas/FunctionSchedulerListResponse' + '404': + description: Durable function not found content: application/json: schema: $ref: '#/components/schemas/Error' - '401': - description: Unauthorized - invalid or missing token + post: + tags: + - Durable Functions + summary: Create a scheduler for a durable function + description: | + Each tick starts an execution rather than invoking the function, under + an execution name derived from the run, so a retried tick resolves to + the execution it already started. Requested regions must be a subset of + the function's deployed regions. + + A tick draws on the same durable allowances and concurrency cap a + manual start does, and a tick that would exceed the cap fails that run. + operationId: createDurableFunctionScheduler + security: + - UserToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - $ref: '#/components/parameters/DurableFunctionId' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/CreateFunctionSchedulerRequest' + responses: + '201': + description: Scheduler created content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': - description: Forbidden - custom domains require PRO plan + $ref: '#/components/schemas/FunctionScheduler' + '400': + description: | + Invalid schedule, geofenced region, a scheduler of this name + already exists on the function, or the function is not active. content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Frontend not found + '403': + description: | + Schedulers are not available on this plan, or the project already + holds as many as the plan allows. The cap counts standard and + durable function schedulers together. content: application/json: schema: $ref: '#/components/schemas/Error' - '409': - description: Conflict - custom domain already in use or frontend already has a custom domain + '404': + description: Durable function not found content: application/json: schema: $ref: '#/components/schemas/Error' - '500': - description: Internal server error + /projects/{id}/durable-functions/{functionId}/schedulers/{schedulerId}: + get: + tags: + - Durable Functions + summary: Get a durable function scheduler + operationId: getDurableFunctionScheduler + security: + - UserToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - $ref: '#/components/parameters/DurableFunctionId' + - $ref: '#/components/parameters/SchedulerId' + responses: + '200': + description: Durable function scheduler content: application/json: schema: - $ref: '#/components/schemas/Error' - '503': - description: Service unavailable - custom domain provisioning is temporarily unavailable + $ref: '#/components/schemas/FunctionScheduler' + '404': + description: Durable function or scheduler not found content: application/json: schema: $ref: '#/components/schemas/Error' - delete: + patch: tags: - - Frontends - summary: Delete frontend custom domain - operationId: deleteFrontendCustomDomain + - Durable Functions + summary: Update a durable function scheduler + operationId: updateDurableFunctionScheduler security: - UserToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/FrontendId' + - $ref: '#/components/parameters/DurableFunctionId' + - $ref: '#/components/parameters/SchedulerId' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateFunctionSchedulerRequest' responses: - '204': - description: Custom domain detach scheduled - '400': - description: Bad request - invalid identifier - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '401': - description: Unauthorized - invalid or missing token + '200': + description: Scheduler updated content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': - description: Forbidden - project ownership required + $ref: '#/components/schemas/FunctionScheduler' + '400': + description: | + Invalid schedule, geofenced region, or a scheduler of this name + already exists on the function. content: application/json: schema: $ref: '#/components/schemas/Error' '404': - description: Frontend or custom domain not found + description: Durable function or scheduler not found content: application/json: schema: $ref: '#/components/schemas/Error' - '500': - description: Internal server error + delete: + tags: + - Durable Functions + summary: Delete a durable function scheduler + operationId: deleteDurableFunctionScheduler + security: + - UserToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - $ref: '#/components/parameters/DurableFunctionId' + - $ref: '#/components/parameters/SchedulerId' + responses: + '204': + description: Scheduler deleted + '404': + description: Durable function or scheduler not found content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/frontends/{frontendId}/deployments: - get: + /projects/{id}/durable-functions/{functionId}/executions: + post: tags: - - Frontends - summary: List frontend deployments - operationId: listFrontendDeployments + - Durable Functions + summary: Start a durable execution + description: | + Starts an execution and returns its handle. Never returns a result: an + execution can outlive any request a client could hold open, so the + result is read back from + `GET /projects/{id}/durable-functions/{functionId}/executions/{executionId}`. + + The request body is the execution's input and must be valid JSON if + present. An empty body starts the execution with no input. + + Send `X-Volcano-Execution-Name` to make the start idempotent: repeating a + start with the same name returns the existing execution instead of + beginning a second one. + + Each execution counts against the project's durable execution + allowance, the operations it performs count against the durable + operations allowance when it finishes, and the number of executions in + flight at once is capped by the plan. + operationId: startDurableExecution security: - UserToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/FrontendId' - - $ref: '#/components/parameters/Page' - - $ref: '#/components/parameters/Limit' + - $ref: '#/components/parameters/DurableFunctionId' + - name: X-Volcano-Execution-Name + in: header + required: false + description: | + Idempotency key for this execution. Generated when omitted. A repeat + under a name that already names a running execution returns that + execution and is not charged again. + + Letters, digits, `-`, `_` and `.`, up to 255 characters. Anything + else is rejected with `400`. + schema: + type: string + maxLength: 255 + pattern: ^[A-Za-z0-9._-]+$ + requestBody: + required: false + content: + application/json: + schema: + description: Input passed to the function, up to 256 KiB. responses: - '200': - description: Successful response + '202': + description: Execution accepted and started content: application/json: schema: - $ref: '#/components/schemas/PaginatedFrontendDeployments' + $ref: '#/components/schemas/DurableExecution' '400': - description: Bad request - invalid identifier + description: Payload is not valid JSON, or the execution name is invalid content: application/json: schema: $ref: '#/components/schemas/Error' - '401': - description: Unauthorized - invalid or missing token + '404': + description: Durable function not found content: application/json: schema: $ref: '#/components/schemas/Error' - '403': - description: Forbidden - project ownership required + '409': + description: | + Function is not deployed yet, or has no deployed region. Also + returned when two starts under the same execution name raced and + both released it, which is retryable as it stands. content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Frontend not found + '413': + description: Payload exceeds the maximum execution input size content: application/json: schema: $ref: '#/components/schemas/Error' - '500': - description: Internal server error + '429': + description: | + Too many executions already in flight for this project, or the + account is out of one of its billing-cycle durable allowances: + executions, operations, or compute. An owner-started execution is + metered exactly like an application-started one. + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '503': + description: | + Durable execution is not available in this environment, or the + plan terms for the start could not be read. The first means the + capability is paused or this deployment cannot serve it, so it is + not one to retry in a loop; the second is transient. content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/frontends/{frontendId}/usage: get: tags: - - Frontends - summary: Per-day request and error counts for a single frontend + - Durable Functions + summary: List a durable function's executions description: | - Returns a zero-filled daily series of request counts and 5xx - error counts for one frontend, oldest first. Each entry is one - UTC day; missing days (no traffic recorded) come back as - `requests: 0, errors: 0` so the response always has exactly - `days` entries. - - Backs the Monitoring section on the Frontend detail page in - volcano-web. `days` defaults to 30 and is capped at 90 to keep - the (frontend_id, day) index scan bounded. - operationId: getFrontendUsageHistory + Returns the platform's last observed status for each execution; listing + does not poll each one. Fetch a single execution for its live state. + operationId: listDurableExecutions security: - UserToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/FrontendId' - - name: days + - $ref: '#/components/parameters/DurableFunctionId' + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/Limit' + - name: status in: query - description: Number of trailing days to return (1–90, default 30). required: false + description: Return only executions in this status. schema: - type: integer - minimum: 1 - maximum: 90 - default: 30 + $ref: '#/components/schemas/DurableExecutionStatus' responses: '200': description: Successful response content: application/json: schema: - $ref: '#/components/schemas/FrontendUsageHistoryResponse' + $ref: '#/components/schemas/PaginatedDurableExecutions' '400': - description: Bad request - invalid identifier - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '401': - description: Unauthorized - invalid or missing token - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '403': - description: Forbidden - project ownership required + description: Unsupported status filter content: application/json: schema: $ref: '#/components/schemas/Error' '404': - description: Frontend not found + description: Durable function not found content: application/json: schema: $ref: '#/components/schemas/Error' - '500': - description: Internal server error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /projects/{id}/variables: + /projects/{id}/durable-functions/{functionId}/executions/{executionId}: get: tags: - - Variables - summary: List all variables for a project + - Durable Functions + summary: Get a durable execution description: | - Returns project-level environment variables used by deployed functions and frontends. - operationId: listVariables + Returns the execution's current state, including its `result` once it has + succeeded. Poll this to wait for an execution to finish. + operationId: getDurableExecution security: - UserToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/Page' - - $ref: '#/components/parameters/Limit' - - $ref: '#/components/parameters/Cursor' - - $ref: '#/components/parameters/EndingBefore' - - $ref: '#/components/parameters/Offset' - - $ref: '#/components/parameters/Search' + - $ref: '#/components/parameters/DurableFunctionId' + - $ref: '#/components/parameters/DurableExecutionId' responses: '200': description: Successful response content: application/json: schema: - $ref: '#/components/schemas/PaginatedVariables' + $ref: '#/components/schemas/DurableExecution' '404': - description: Project not found + description: Durable function or execution not found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '503': + description: | + Durable execution is not available in this environment. Either the + capability is paused or this deployment cannot serve it, so the + request is not one to retry in a loop. content: application/json: schema: $ref: '#/components/schemas/Error' + /projects/{id}/durable-functions/{functionId}/executions/{executionId}/stop: post: tags: - - Variables - summary: Create or update a variable + - Durable Functions + summary: Stop a durable execution description: | - Creates a project-level environment variable and triggers asynchronous propagation - to deployed functions and frontends in the project's configured regions. - operationId: createVariable + Cancels a running execution. Its completed steps are not undone. + + The call is accepted rather than awaited: cancellation happens behind + it, so the response reports the execution as it was read back and may + still say `running`. Do not branch on that status — the execution + settles into `stopped` shortly after, and polling + `GET /projects/{id}/durable-functions/{functionId}/executions/{executionId}` + is how you see it get there. + + Stopping an execution that already finished is not an error: the + response carries the state it settled in. + operationId: stopDurableExecution security: - UserToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/CreateVariableRequest' + - $ref: '#/components/parameters/DurableFunctionId' + - $ref: '#/components/parameters/DurableExecutionId' responses: - '201': - description: Variable created + '200': + description: | + Stop accepted. The body is the execution as it was read back, which + may still report `running`. content: application/json: schema: - $ref: '#/components/schemas/Variable' - '400': - description: Bad request + $ref: '#/components/schemas/DurableExecution' + '404': + description: Durable function or execution not found content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/databases: + '409': + description: Execution has not started yet + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '503': + description: | + Durable execution is not available in this environment. Either the + capability is paused or this deployment cannot serve it, so the + request is not one to retry in a loop. + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /projects/{id}/frontends: get: tags: - - Databases - summary: List all databases for a project + - Frontends + summary: List all frontends in a project description: | Supports two mutually exclusive pagination modes. Offset mode uses `page` - and `limit`. Cursor mode uses `cursor` and `limit`, supports `search` - (case-insensitive name match), and returns `next_cursor`/`prev_cursor`. - The optional `status` filter applies in both modes and is bound to the - cursor. Sending both `page` and `cursor` (or `page` and `search`) returns 400. - operationId: listDatabases + and `limit` and returns `next` (URL). Cursor mode uses `cursor` and + `limit`, supports `search` (case-insensitive name match), and returns + `next_cursor`. Sending both `page` and `cursor` (or `page` and `search`) + returns 400. + operationId: listFrontends security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - $ref: '#/components/parameters/Page' @@ -4929,2492 +5307,2480 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDatabases' + $ref: '#/components/schemas/PaginatedFrontends' + '400': + description: Bad request - invalid project identifier + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '401': + description: Unauthorized - invalid or missing token + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '403': + description: Forbidden - project ownership required + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '404': + description: Project not found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '500': + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' post: tags: - - Databases - summary: Create a new serverless PostgreSQL database + - Frontends + summary: Create a new frontend deployment description: | - Creates a serverless PostgreSQL database in the project. - Each project can contain up to 100 databases. Requests over this cap return 403. - operationId: createDatabase + Creates and deploys a frontend for the project. + If a frontend with the same name already exists in the project, this operation updates that + frontend using the uploaded archive and starts a new deployment. A deployment that starts + immediately returns `status: provisioning`, then transitions to `active`, `degraded`, or + `failed`. If another deployment is running, the response preserves the frontend's current status + and exposes the queued deployment through `pending_deployment_id`. + Existing frontend traffic continues to use an available runtime while the new deployment builds + and provisions. Each deployment publishes its own static assets before the runtimes switch to its + build, and the live build's assets keep serving until the new deployment is live, so a page loaded + mid-deployment resolves its assets whichever build served it. A failed redeploy puts the runtimes + back on the build they were running, leaves the frontend `active` on the previous deployment, and + records the attempted deployment as failed. `degraded` means the runtime remains available but + edge synchronization requires recovery; Volcano retries the edge step without rebuilding. Only one deployment may run for a + given frontend, while independent frontends and projects can deploy concurrently. + For monorepos, provide `app_root` as a relative path from the uploaded archive root + to the Next.js app that should be built. Omit it for single-app archives. + Supported frontend environments are Next.js 15.x and 16.x with Node.js + 22.x or 24.x. The Node.js runtime is inferred from + `package.json` `engines.node`; if omitted, Volcano uses Node.js 22.x. + The selected Node.js family must also satisfy the installed Next.js package's + `engines.node` constraint. Volcano tests Next 15.5.26 (`^18.18.0 || ^19.8.0 || >=20.0.0`) and Next 16.3.6 (`>=20.9.0`). + Source archive size is enforced by the API with `SOURCE_ARCHIVE_SIZE_LIMIT_MB`; the CLI + does not apply its own source archive size limit. After the final container images are + built, the publish build enforces `LAMBDA_TARGET_CONTAINER_SIZE_LIMIT_MB` before pushing. + This operation is limited by plan-based frontend deployment quotas (`FREE_FRONTEND_DEPLOYMENTS`, `PRO_FRONTEND_DEPLOYMENTS`). + Each project can contain up to 10,000 frontends regardless of plan. + operationId: createFrontend security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' requestBody: required: true content: - application/json: + multipart/form-data: schema: - $ref: '#/components/schemas/CreateDatabaseRequest' + type: object + required: + - name + - archive + properties: + name: + type: string + maxLength: 63 + pattern: ^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$ + description: DNS-safe frontend name + framework: + type: string + enum: + - nextjs + default: nextjs + description: Next.js frontend. Supported Next.js majors are 15.x and 16.x. + app_root: + type: string + maxLength: 1024 + description: Optional relative POSIX path from the uploaded archive root to the Next.js app to build, for example `apps/web`. + example: apps/web + variable_scope: + type: string + enum: + - all + - scoped + description: Variable selection for this deployment. New frontends default to `scoped`; omitting this field for an existing frontend preserves its current selection. + variables: + type: array + items: + type: string + pattern: ^[A-Za-z_][A-Za-z0-9_]*$ + description: Project variable names selected when `variable_scope` is `scoped`. Submit each name as a repeated multipart field. + archive: + type: string + format: binary + description: ZIP or tar.gz archive of the frontend project directory or monorepo workspace root. The API enforces SOURCE_ARCHIVE_SIZE_LIMIT_MB and stores a normalized tar.gz archive. responses: + '200': + description: Existing frontend updated; its deployment was started or queued + content: + application/json: + schema: + $ref: '#/components/schemas/Frontend' '201': - description: Database created (provisioning) + description: Frontend created and deployment workflow started content: application/json: schema: - $ref: '#/components/schemas/Database' + $ref: '#/components/schemas/Frontend' + '400': + description: Bad request + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '401': + description: Unauthorized - invalid or missing token + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '403': - description: Database limit exceeded for the project + description: Frontend deployment limit exceeded for the current plan or project hard cap content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/databases/{databaseName}: + '404': + description: Project not found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '409': + description: Conflict - frontend deletion is queued or running + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '500': + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '503': + description: Service unavailable - frontend workflow or archive limit configuration missing + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /projects/{id}/frontends/{frontendId}: get: tags: - - Databases - summary: Get database details - operationId: getDatabase + - Frontends + summary: Get frontend details + operationId: getFrontend security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/DatabaseName' + - $ref: '#/components/parameters/FrontendId' responses: '200': description: Successful response content: application/json: schema: - $ref: '#/components/schemas/Database' - delete: - tags: - - Databases - summary: Delete a database - description: | - Deletes a database and the instance backing it. When the instance is - removed synchronously the database row is deleted and the response is - `204`. If the instance cannot be deleted right away, the database row - is retained (status `deleting`) and its teardown is handed to the - background reconciler, which retries the deletion and removes the row - once the instance is gone; in that case the response is `202`. The database row is - never dropped while its instance still exists, so an instance is - never orphaned without a record to retry from. - operationId: deleteDatabase - security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/DatabaseName' - responses: - '202': - description: | - Deletion accepted and in progress. The backing instance could not be - removed synchronously, so the database is marked `deleting` and torn - down asynchronously by the reconciler. + $ref: '#/components/schemas/Frontend' + '400': + description: Bad request - invalid identifier content: application/json: schema: - type: object - properties: - status: - type: string - example: deleting - message: - type: string - example: database deletion in progress - '204': - description: Database deleted (backing instance removed synchronously) + $ref: '#/components/schemas/Error' + '401': + description: Unauthorized - invalid or missing token + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '403': + description: Forbidden - project ownership required + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '404': - description: Project or database not found + description: Frontend not found content: application/json: schema: $ref: '#/components/schemas/Error' - '409': - description: | - A restore is running on the database. Deleting it while a worker is - replacing its data would race that worker, so wait for the restore - to finish. + '500': + description: Internal server error content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/databases/{databaseName}/branches: - get: + delete: tags: - - Database Branches - summary: List a database's branches + - Frontends + summary: Delete a frontend description: | - Returns every branch of the database, including those still provisioning - and those that failed, since each still holds a name. - - Connection strings are omitted. Fetch a single branch to get its - connection string. - operationId: listDatabaseBranches + Schedules asynchronous frontend deletion. If another deployment is running, the frontend + preserves its current status and exposes the queued deletion through `pending_deployment_id`. + Its status changes to `deleting` when cleanup starts. After cleanup, it returns 404 and no + longer appears in frontend lists. + operationId: deleteFrontend security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/DatabaseName' + - $ref: '#/components/parameters/FrontendId' responses: - '200': - description: Successful response + '202': + description: Frontend deletion started or queued + '400': + description: Bad request - invalid identifier content: application/json: schema: - $ref: '#/components/schemas/DatabaseBranchList' + $ref: '#/components/schemas/Error' + '401': + description: Unauthorized - invalid or missing token + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '403': + description: Forbidden - project ownership required + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '404': - description: Project or database not found + description: Frontend not found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '500': + description: Internal server error content: application/json: schema: $ref: '#/components/schemas/Error' '503': - description: Branching is temporarily unavailable + description: Service unavailable - frontend workflow configuration missing content: application/json: schema: $ref: '#/components/schemas/Error' + /projects/{id}/frontends/{frontendId}/redeploy: post: tags: - - Database Branches - summary: Create a branch of a database + - Frontends + summary: Redeploy frontend using latest uploaded artifact description: | - Forks the database into a new branch. The branch starts as an exact copy - of the parent's data and diverges from there. - - Provisioning is asynchronous: the response is `202` with the branch in - `provisioning` and no connection string. Poll the branch until it reports - `active`, at which point it carries its own connection string. - - Retrying a create with a name that already exists returns `409` rather - than a second branch, so a retried request cannot silently consume two - slots of the branch allowance. - operationId: createDatabaseBranch + Starts a new frontend workflow using the latest stored artifact. A deployment that starts + immediately returns `status: provisioning`, then transitions to `active`, `degraded`, or + `failed`. An overlapping deployment preserves the frontend's current status, is exposed through + `pending_deployment_id`, and supersedes any older queued deployment. The previous runtime and its + published static assets remain available during provisioning, and a failed redeploy restores the + regional runtimes to that build and keeps it serving while the attempted deployment is recorded as + failed. + operationId: redeployFrontend security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/DatabaseName' - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/CreateDatabaseBranchRequest' + - $ref: '#/components/parameters/FrontendId' responses: - '202': - description: Branch accepted and provisioning + '200': + description: Frontend redeploy started or queued content: application/json: schema: - $ref: '#/components/schemas/DatabaseBranch' + $ref: '#/components/schemas/Frontend' '400': - description: Invalid branch name or lifetime + description: Bad request - invalid identifier + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '401': + description: Unauthorized - invalid or missing token content: application/json: schema: $ref: '#/components/schemas/Error' '403': - description: | - The database has reached its branch allowance, or the owner's plan - does not include branching. + description: Forbidden - project ownership required content: application/json: schema: $ref: '#/components/schemas/Error' '404': - description: Project or database not found + description: Frontend not found content: application/json: schema: $ref: '#/components/schemas/Error' '409': - description: | - A branch of that name already exists on this database, or the - database cannot be branched right now because it is still - provisioning, failed, or being deleted. + description: Conflict - frontend deletion is queued or running + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '500': + description: Internal server error content: application/json: schema: $ref: '#/components/schemas/Error' '503': - description: Branching is temporarily unavailable + description: Service unavailable - frontend workflow configuration missing content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/databases/{databaseName}/branches/{branchName}: + /projects/{id}/frontends/{frontendId}/domain: get: tags: - - Database Branches - summary: Get a branch - description: | - Returns the branch, including its connection string once it is `active`. - Poll this after creating a branch to learn when it is connectable. - operationId: getDatabaseBranch + - Frontends + summary: Get frontend custom domain status + operationId: getFrontendCustomDomain security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/DatabaseName' - - $ref: '#/components/parameters/BranchName' + - $ref: '#/components/parameters/FrontendId' responses: '200': - description: Successful response + description: | + Frontend custom domain status, or null when the frontend has no + custom domain configured (the common empty state). content: application/json: schema: - $ref: '#/components/schemas/DatabaseBranch' + nullable: true + allOf: + - $ref: '#/components/schemas/FrontendCustomDomainResponse' + '400': + description: Bad request - invalid identifier + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '401': + description: Unauthorized - invalid or missing token + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '403': + description: Forbidden - project ownership required + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '404': - description: Project, database, or branch not found + description: Frontend not found content: application/json: schema: $ref: '#/components/schemas/Error' - '503': - description: Branching is temporarily unavailable + '500': + description: Internal server error content: application/json: schema: $ref: '#/components/schemas/Error' - patch: + post: tags: - - Database Branches - summary: Extend a branch's lifetime + - Frontends + summary: Configure frontend custom domain (PRO) description: | - Replaces the branch's lifetime and restarts the countdown from now, so a - branch you are still working on is not swept mid-session. The new - duration is remembered, so a later reset re-arms the same lifetime. - operationId: updateDatabaseBranch + Configures one custom domain for a frontend. + The default Volcano-generated frontend URL remains active. + Wildcard Volcano frontend TLS remains valid and isolated from custom-domain certificate changes. + operationId: createFrontendCustomDomain security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/DatabaseName' - - $ref: '#/components/parameters/BranchName' + - $ref: '#/components/parameters/FrontendId' requestBody: required: true content: application/json: schema: - $ref: '#/components/schemas/UpdateDatabaseBranchRequest' + $ref: '#/components/schemas/CreateFrontendCustomDomainRequest' responses: '200': - description: Lifetime updated + description: Custom domain already configured with same hostname content: application/json: schema: - $ref: '#/components/schemas/DatabaseBranch' - '400': - description: Requested lifetime is outside the allowed range + $ref: '#/components/schemas/FrontendCustomDomainResponse' + '201': + description: Custom domain provisioning started content: application/json: schema: - $ref: '#/components/schemas/Error' - '404': - description: Project, database, or branch not found + $ref: '#/components/schemas/FrontendCustomDomainResponse' + '400': + description: Bad request - invalid domain content: application/json: schema: $ref: '#/components/schemas/Error' - '409': - description: The branch is being deleted + '401': + description: Unauthorized - invalid or missing token content: application/json: schema: $ref: '#/components/schemas/Error' - '503': - description: Branching is temporarily unavailable + '403': + description: Forbidden - custom domains require PRO plan content: application/json: schema: $ref: '#/components/schemas/Error' - delete: - tags: - - Database Branches - summary: Delete a branch - description: | - Marks the branch for teardown and returns immediately. The branch stops - accepting connections at once; its fork and its row are removed by a - background job, so a provider outage cannot leave the call hanging or the - branch half-deleted. - - Deleting a branch that is still provisioning is allowed and stops the - build. Deleting a branch that is already gone succeeds. - operationId: deleteDatabaseBranch - security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/DatabaseName' - - $ref: '#/components/parameters/BranchName' - responses: - '202': - description: Deletion accepted and in progress - content: - application/json: - schema: - type: object - properties: - status: - type: string - example: deleting - message: - type: string - example: branch deletion in progress - required: - - status - - message '404': - description: Project, database, or branch not found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '503': - description: Branching is temporarily unavailable + description: Frontend not found content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/databases/{databaseName}/branches/{branchName}/reset: - post: - tags: - - Database Branches - summary: Reset a branch to its parent's current state - description: | - Discards everything written on the branch and re-forks it from the - parent as it is now. - - Returns immediately with the branch in `provisioning`. The rewind runs in - the background; poll the branch until it reports `active` before - connecting again. - - The branch keeps its name and its connection string, so anything holding - that string keeps working once it is active again, and its lifetime is - re-armed to the duration it was created with. The branch does not serve - connections for the duration of the reset. - operationId: resetDatabaseBranch - security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/DatabaseName' - - $ref: '#/components/parameters/BranchName' - responses: - '202': - description: Branch reset accepted; the branch is provisioning - content: - application/json: - schema: - $ref: '#/components/schemas/DatabaseBranch' - '404': - description: Project, database, or branch not found + '409': + description: Conflict - custom domain already in use, still detaching, or frontend already has a custom domain content: application/json: schema: $ref: '#/components/schemas/Error' - '409': - description: | - The branch is not active, or a reset is already in progress. + '500': + description: Internal server error content: application/json: schema: $ref: '#/components/schemas/Error' '503': - description: Branching is temporarily unavailable + description: Service unavailable - custom domain provisioning is temporarily unavailable content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/databases/{databaseName}/branches/{branchName}/reset-password: - post: + delete: tags: - - Database Branches - summary: Rotate a branch's password - description: | - Issues a new password for the branch and invalidates the previous - connection string. Existing connections are not interrupted; new ones - must use the returned string. - - The parent database's credentials are untouched. - operationId: resetDatabaseBranchPassword + - Frontends + summary: Delete frontend custom domain + operationId: deleteFrontendCustomDomain security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/DatabaseName' - - $ref: '#/components/parameters/BranchName' + - $ref: '#/components/parameters/FrontendId' responses: - '200': - description: Password rotated + '204': + description: Custom domain detach scheduled + '400': + description: Bad request - invalid identifier content: application/json: schema: - $ref: '#/components/schemas/DatabaseBranch' - '404': - description: Project, database, or branch not found + $ref: '#/components/schemas/Error' + '401': + description: Unauthorized - invalid or missing token content: application/json: schema: $ref: '#/components/schemas/Error' - '409': - description: The branch is not active + '403': + description: Forbidden - project ownership required content: application/json: schema: $ref: '#/components/schemas/Error' - '503': - description: Branching is temporarily unavailable + '404': + description: Frontend or custom domain not found content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/databases/{databaseName}/backups: + '500': + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /projects/{id}/frontends/{frontendId}/deployments: get: tags: - - Database Backups - summary: List a database's backups - description: | - Returns every backup of the database, newest first, together with the - window a point-in-time restore may target. - - Both backups you took and backups the schedule produced are listed; - `source` tells them apart. Only manual backups count against the plan's - backup allowance. - operationId: listDatabaseBackups + - Frontends + summary: List frontend deployments + operationId: listFrontendDeployments security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/DatabaseName' + - $ref: '#/components/parameters/FrontendId' + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/Limit' responses: '200': description: Successful response content: application/json: schema: - $ref: '#/components/schemas/DatabaseBackupList' - '403': - description: Backups are PRO-only and the owner's plan does not include them + $ref: '#/components/schemas/PaginatedFrontendDeployments' + '400': + description: Bad request - invalid identifier content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Project or database not found + '401': + description: Unauthorized - invalid or missing token content: application/json: schema: $ref: '#/components/schemas/Error' - '409': - description: | - The database has no storage project yet, so there is nothing to - list. A database reports this while it is still provisioning. + '403': + description: Forbidden - project ownership required content: application/json: schema: $ref: '#/components/schemas/Error' - '503': - description: Backups are temporarily unavailable + '404': + description: Frontend not found content: application/json: schema: $ref: '#/components/schemas/Error' - post: + '500': + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /projects/{id}/frontends/{frontendId}/usage: + get: tags: - - Database Backups - summary: Back up a database + - Frontends + summary: Per-day request and error counts for a single frontend description: | - Captures the database as it is now. The backup is available immediately; - its `size_bytes` appears once the storage provider has costed it. + Returns a zero-filled daily series of request counts and 5xx + error counts for one frontend, oldest first. Each entry is one + UTC day; missing days (no traffic recorded) come back as + `requests: 0, errors: 0` so the response always has exactly + `days` entries. - Backups are rate-limited to one per minute per database, and capped by - the owner's plan. - operationId: createDatabaseBackup + Backs the Monitoring section on the Frontend detail page in + volcano-web. `days` defaults to 30 and is capped at 90 to keep + the (frontend_id, day) index scan bounded. + operationId: getFrontendUsageHistory security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/DatabaseName' - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/CreateDatabaseBackupRequest' + - $ref: '#/components/parameters/FrontendId' + - name: days + in: query + description: Number of trailing days to return (1–90, default 30). + required: false + schema: + type: integer + minimum: 1 + maximum: 90 + default: 30 responses: - '201': - description: Backup created + '200': + description: Successful response content: application/json: schema: - $ref: '#/components/schemas/DatabaseBackup' + $ref: '#/components/schemas/FrontendUsageHistoryResponse' '400': - description: Invalid backup name + description: Bad request - invalid identifier content: application/json: schema: $ref: '#/components/schemas/Error' - '403': - description: | - The database has reached its backup allowance, or the owner's plan - does not include backups, which are PRO-only. + '401': + description: Unauthorized - invalid or missing token content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Project or database not found + '403': + description: Forbidden - project ownership required content: application/json: schema: $ref: '#/components/schemas/Error' - '409': - description: | - A backup of that name already exists, the database is not active, or - a backup was taken too recently. + '404': + description: Frontend not found content: application/json: schema: $ref: '#/components/schemas/Error' - '503': - description: Backups are temporarily unavailable + '500': + description: Internal server error content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/databases/{databaseName}/backups/{backupName}: + /projects/{id}/frontends/{frontendId}/function-routes: + parameters: + - $ref: '#/components/parameters/ProjectId' + - $ref: '#/components/parameters/FrontendId' get: tags: - - Database Backups - summary: Get a backup - description: Returns one backup of the database. - operationId: getDatabaseBackup + - Frontends + summary: List a Frontend's Function routes + operationId: listFrontendFunctionRoutes security: - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/DatabaseName' - - $ref: '#/components/parameters/BackupName' + - ProjectAccessToken: [] responses: '200': - description: Successful response + description: Function routes ordered from most to least specific content: application/json: schema: - $ref: '#/components/schemas/DatabaseBackup' - '403': - description: Backups are PRO-only and the owner's plan does not include them + $ref: '#/components/schemas/FrontendFunctionRouteList' + '401': + description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Project, database, or backup not found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '409': - description: | - The database has no storage project yet, so it holds no backups. A - database reports this while it is still provisioning. + '403': + description: Project not owned by the caller content: application/json: schema: $ref: '#/components/schemas/Error' - '503': - description: Backups are temporarily unavailable + '500': + description: Failed to list Function routes content: application/json: schema: $ref: '#/components/schemas/Error' - delete: + post: tags: - - Database Backups - summary: Delete a backup - description: | - Deletes the backup and frees its storage. Scheduled backups can be - deleted too. A backup that is already gone reports `404`, so a name - that never existed and a name that no longer does read the same. - - Refused with `409` while the database is being restored. - operationId: deleteDatabaseBackup + - Frontends + summary: Route a Frontend path to an HTTP Function + operationId: createFrontendFunctionRoute + description: The Frontend and Function must belong to this Project. The Function may be private but must use HTTP invocation mode. The route applies to every hostname that resolves to the Frontend, including generated, custom-domain, preview, and local hostnames. security: - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/DatabaseName' - - $ref: '#/components/parameters/BackupName' + - ProjectAccessToken: [] + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/CreateFrontendFunctionRouteRequest' responses: - '200': - description: Backup deleted - content: - application/json: - schema: - type: object - properties: - status: - type: string - example: deleted - message: - type: string - example: backup deleted - required: - - status - - message - '403': - description: Backups are PRO-only and the owner's plan does not include them - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '404': - description: Project, database, or backup not found + '201': + description: Function route created content: application/json: schema: - $ref: '#/components/schemas/Error' - '409': - description: | - The database is being restored. A restore is pinned to a backup it - may not have restored yet, so deleting one is refused until the - restore finishes. + $ref: '#/components/schemas/FrontendFunctionRoute' + '400': + description: Invalid path or non-HTTP Function content: application/json: schema: $ref: '#/components/schemas/Error' - '503': - description: Backups are temporarily unavailable + '401': + description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/databases/{databaseName}/backup-schedule: - get: - tags: - - Database Backups - summary: Get the automated backup schedule - description: | - Returns the database's backup schedule. An empty list means no scheduled - backups. - operationId: getDatabaseBackupSchedule - security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/DatabaseName' - responses: - '200': - description: Successful response - content: - application/json: - schema: - $ref: '#/components/schemas/DatabaseBackupSchedule' '403': - description: Backups are PRO-only and the owner's plan does not include them + description: Project not owned by the caller content: application/json: schema: $ref: '#/components/schemas/Error' '404': - description: Project or database not found + description: Frontend or Function not found in the Project content: application/json: schema: $ref: '#/components/schemas/Error' '409': - description: | - The database has no storage project yet, so it has no schedule. A - database reports this while it is still provisioning. + description: Path is already routed or the Frontend has reached its 64-route limit content: application/json: schema: $ref: '#/components/schemas/Error' - '503': - description: Backups are temporarily unavailable + '500': + description: Failed to create Function route content: application/json: schema: $ref: '#/components/schemas/Error' + /projects/{id}/frontends/{frontendId}/function-routes/{routeId}: + parameters: + - $ref: '#/components/parameters/ProjectId' + - $ref: '#/components/parameters/FrontendId' + - $ref: '#/components/parameters/FrontendFunctionRouteId' put: tags: - - Database Backups - summary: Replace the automated backup schedule - description: | - Replaces the schedule wholesale. Send an empty `entries` list to stop - scheduled backups. - - Scheduled backups do not count against the plan's backup allowance, but - their retention is clamped to the plan's. - operationId: updateDatabaseBackupSchedule + - Frontends + summary: Replace a Frontend Function route + operationId: updateFrontendFunctionRoute security: - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/DatabaseName' + - ProjectAccessToken: [] requestBody: required: true content: application/json: schema: - $ref: '#/components/schemas/DatabaseBackupSchedule' + $ref: '#/components/schemas/CreateFrontendFunctionRouteRequest' responses: '200': - description: Schedule replaced + description: Function route replaced content: application/json: schema: - $ref: '#/components/schemas/DatabaseBackupSchedule' + $ref: '#/components/schemas/FrontendFunctionRoute' '400': - description: Invalid schedule + description: Invalid path or non-HTTP Function + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '401': + description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/Error' '403': - description: Backups are PRO-only and the owner's plan does not include them + description: Project not owned by the caller content: application/json: schema: $ref: '#/components/schemas/Error' '404': - description: Project or database not found + description: Function route, Frontend, or Function not found content: application/json: schema: $ref: '#/components/schemas/Error' '409': - description: The database is not active + description: Path is already routed or the Frontend has reached its 64-route limit content: application/json: schema: $ref: '#/components/schemas/Error' - '503': - description: Backups are temporarily unavailable + '500': + description: Failed to replace Function route content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/databases/{databaseName}/restores: - get: + delete: tags: - - Database Backups - summary: List a database's restores - description: | - Returns the database's restore history, newest first, capped at the 50 - most recent. There is no pagination: a database that has been restored - more than 50 times keeps the older records but does not return them. - operationId: listDatabaseRestores + - Frontends + summary: Delete a Frontend Function route + operationId: deleteFrontendFunctionRoute security: - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/DatabaseName' + - ProjectAccessToken: [] responses: - '200': - description: Successful response + '204': + description: Function route deleted + '401': + description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/DatabaseRestoreList' + $ref: '#/components/schemas/Error' '403': - description: Backups are PRO-only and the owner's plan does not include them + description: Project not owned by the caller content: application/json: schema: $ref: '#/components/schemas/Error' '404': - description: Project or database not found + description: Function route not found on the Frontend content: application/json: schema: $ref: '#/components/schemas/Error' - '503': - description: Backups are temporarily unavailable + '500': + description: Failed to delete Function route content: application/json: schema: $ref: '#/components/schemas/Error' - post: + /projects/{id}/variables: + get: tags: - - Database Backups - summary: Restore a database + - Variables + summary: List all variables for a project description: | - Replaces the database's data, either with a named backup or with its - state at a point in time. This is destructive: everything written after - that point is discarded. - - Asynchronous: the response is `202` with the restore `pending` and the - database `restoring`. The database does not accept connections until the - restore reports `completed`; its connection string is unchanged - throughout, so nothing holding it needs updating. - - Restores are in place. There is no way to restore into a second - database, and a database's branches are never restored — they keep - serving their own data, but resetting a branch from its parent is - refused by the storage provider for up to 24 hours afterwards. - operationId: createDatabaseRestore + Returns project-level environment variables used by deployed functions and frontends. + operationId: listVariables security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/DatabaseName' - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/CreateDatabaseRestoreRequest' + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/Limit' + - $ref: '#/components/parameters/Cursor' + - $ref: '#/components/parameters/EndingBefore' + - $ref: '#/components/parameters/Offset' + - $ref: '#/components/parameters/Search' responses: - '202': - description: Restore accepted and in progress - content: - application/json: - schema: - $ref: '#/components/schemas/DatabaseRestore' - '400': - description: | - Neither or both restore targets were named, or the requested time is - outside the available window. + '200': + description: Successful response content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': - description: | - The owner's plan does not include backups or point-in-time restore. - Both are PRO-only. + $ref: '#/components/schemas/PaginatedVariables' + '404': + description: Project not found content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Project, database, or backup not found + post: + tags: + - Variables + summary: Create or update a variable + description: | + Creates a project-level environment variable and triggers asynchronous propagation + to deployed functions and frontends in the project's configured regions. + operationId: createVariable + security: + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/CreateVariableRequest' + responses: + '201': + description: Variable created content: application/json: schema: - $ref: '#/components/schemas/Error' - '409': - description: | - A restore is already in progress, the database is not active, - another database operation is still running, or the database is - holding as many pre-restore branches as it may. + $ref: '#/components/schemas/Variable' + '400': + description: Bad request content: application/json: schema: $ref: '#/components/schemas/Error' '503': - description: Backups are temporarily unavailable + description: Private variable membership writes are disabled during rollout content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/databases/{databaseName}/restores/{restoreId}: + /projects/{id}/databases: get: tags: - - Database Backups - summary: Get a restore + - Databases + summary: List all databases for a project description: | - Returns the restore. Poll this after starting one; the database is - connectable again once it reports `completed`. - operationId: getDatabaseRestore + Supports two mutually exclusive pagination modes. Offset mode uses `page` + and `limit`. Cursor mode uses `cursor` and `limit`, supports `search` + (case-insensitive name match), and returns `next_cursor`/`prev_cursor`. + The optional `status` filter applies in both modes and is bound to the + cursor. Sending both `page` and `cursor` (or `page` and `search`) returns 400. + operationId: listDatabases security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/DatabaseName' - - $ref: '#/components/parameters/RestoreId' + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/Limit' + - $ref: '#/components/parameters/Cursor' + - $ref: '#/components/parameters/EndingBefore' + - $ref: '#/components/parameters/Offset' + - $ref: '#/components/parameters/Search' + - name: status + in: query + required: false + schema: + type: string + enum: + - provisioning + - active + - restoring + - failed + - deleting + description: Return only the databases in this status. responses: '200': description: Successful response content: application/json: schema: - $ref: '#/components/schemas/DatabaseRestore' - '403': - description: Backups are PRO-only and the owner's plan does not include them + $ref: '#/components/schemas/PaginatedDatabases' + post: + tags: + - Databases + summary: Create a new PostgreSQL database + description: | + Creates a PostgreSQL database in the project. + Each project can hold 1 database on Free and up to 10,000 on Pro. + Requests over the plan's cap return 403. + operationId: createDatabase + security: + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/CreateDatabaseRequest' + responses: + '201': + description: Database created (provisioning) content: application/json: schema: - $ref: '#/components/schemas/Error' - '404': - description: Project, database, or restore not found + $ref: '#/components/schemas/Database' + '403': + description: Database limit exceeded for the project content: application/json: schema: $ref: '#/components/schemas/Error' - '503': - description: Backups are temporarily unavailable + /projects/{id}/databases/{databaseName}: + get: + tags: + - Databases + summary: Get database details + operationId: getDatabase + security: + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - $ref: '#/components/parameters/DatabaseName' + responses: + '200': + description: Successful response content: application/json: schema: - $ref: '#/components/schemas/Error' - /projects/{id}/databases/{databaseName}/reset-password: - post: + $ref: '#/components/schemas/Database' + delete: tags: - Databases - summary: Reset database password + summary: Delete a database description: | - Rotates the Volcano-managed PostgreSQL password used by clients when connecting - through pgproxy. This does not rotate or expose the internal owner password. - The returned password and connection string are the only client credentials that - will authenticate through pgproxy after reset. - operationId: resetDatabasePassword + Deletes a database and the instance backing it. When the instance is + removed synchronously the database row is deleted and the response is + `204`. If the instance cannot be deleted right away, the database row + is retained (status `deleting`) and its teardown is handed to the + background reconciler, which retries the deletion and removes the row + once the instance is gone; in that case the response is `202`. The database row is + never dropped while its instance still exists, so an instance is + never orphaned without a record to retry from. + operationId: deleteDatabase security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - $ref: '#/components/parameters/DatabaseName' responses: - '200': - description: Password reset successful + '202': + description: | + Deletion accepted and in progress. The backing instance could not be + removed synchronously, so the database is marked `deleting` and torn + down asynchronously by the reconciler. content: application/json: schema: type: object properties: - message: - type: string - role_name: - type: string - description: Volcano-managed per-database client login (also the pgproxy routing username) - example: volcano_client_11111111-1111-1111-1111-111111111111 - new_password: + status: type: string - description: New Volcano-managed client password. Always starts with `vpg_`. - connection_string: + example: deleting + message: type: string - description: Updated pgproxy connection string using Volcano-managed credentials. - '400': - description: Database is not active + example: database deletion in progress + '204': + description: Database deleted (backing instance removed synchronously) + '404': + description: Project or database not found content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Database not found + '409': + description: | + A restore is running on the database. Deleting it while a worker is + replacing its data would race that worker, so wait for the restore + to finish. content: application/json: schema: $ref: '#/components/schemas/Error' - '409': + '503': description: | - A restore is running on the database. A restore replaces the - credentials as it finishes, so wait for it and rotate afterwards. + Volcano could not check whether a restore is running, and will not + delete a database that might be mid-restore. Retry. content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/databases/{databaseName}/type: - patch: + /projects/{id}/databases/{databaseName}/branches: + get: tags: - - Databases - summary: Update database size + - Database Branches + summary: List a database's branches description: | - Change the size tier of a database. This may briefly interrupt active connections. + Returns every branch of the database, including those still provisioning + and those that failed, since each still holds a name. - **Available sizes:** - - `volcano-db-xs`: Up to ~1GB RAM - Development, small apps - - `volcano-db-s`: Up to ~4GB RAM - Production-ready, light traffic - - `volcano-db-m`: Up to ~8GB RAM - Medium traffic applications - - `volcano-db-l`: Up to ~16GB RAM - High traffic, larger datasets - - `volcano-db-xl`: Up to ~32GB RAM - Heavy workloads - - `volcano-db-2xl`: Up to ~64GB RAM - Enterprise-scale - operationId: updateDatabaseType + Connection strings are omitted. Fetch a single branch to get its + connection string. + operationId: listDatabaseBranches security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - $ref: '#/components/parameters/DatabaseName' - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/UpdateDatabaseTypeRequest' responses: '200': - description: Database type updated + description: Successful response content: application/json: schema: - $ref: '#/components/schemas/Database' - '400': - description: Invalid database type + $ref: '#/components/schemas/DatabaseBranchList' '404': - description: Database not found - '409': - description: | - The database is not active — being provisioned, deleted, or - restored. Compute can only be changed while it is active. + description: Project or database not found content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/databases/{databaseName}/stats: - get: + '503': + description: Branching is temporarily unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + post: tags: - - Databases - summary: Get database consumption metrics + - Database Branches + summary: Create a branch of a database description: | - Retrieve consumption metrics including storage, compute time, and data transfer. - Metrics are aggregated at the project level. Defaults to last 24 hours. + Forks the database into a new branch. The branch starts as an exact copy + of the parent's data and diverges from there. - **Note:** Advanced metrics require an upgraded plan. - operationId: getDatabaseStats + Provisioning is asynchronous: the response is `202` with the branch in + `provisioning` and no connection string. Poll the branch until it reports + `active`, at which point it carries its own connection string. + + Retrying a create with a name that already exists returns `409` rather + than a second branch, so a retried request cannot silently consume two + slots of the branch allowance. + operationId: createDatabaseBranch security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - $ref: '#/components/parameters/DatabaseName' - - name: from - in: query - required: false - schema: - type: string - format: date-time - description: Start time in RFC3339 format (e.g., "2024-01-01T00:00:00Z"). Defaults to 24 hours ago. - - name: to - in: query - required: false - schema: - type: string - format: date-time - description: End time in RFC3339 format (e.g., "2024-01-02T00:00:00Z"). Defaults to now. - - name: granularity - in: query - required: false - schema: - type: string - enum: - - hourly - - daily - - monthly - default: hourly - description: Level of detail for metrics aggregation + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/CreateDatabaseBranchRequest' responses: - '200': - description: Successful response + '202': + description: Branch accepted and provisioning content: application/json: schema: - $ref: '#/components/schemas/DatabaseStats' + $ref: '#/components/schemas/DatabaseBranch' '400': - description: Invalid parameters + description: Invalid branch name or lifetime + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '403': + description: | + The database has reached its branch allowance, or the owner's plan + does not include branching. content: application/json: schema: $ref: '#/components/schemas/Error' '404': - description: Database not found + description: Project or database not found content: application/json: schema: $ref: '#/components/schemas/Error' - '503': - description: Database metrics not available or requires upgraded plan + '409': + description: | + A branch of that name already exists on this database, or the + database cannot be branched right now because it is still + provisioning, being restored, failed, or being deleted. content: application/json: schema: $ref: '#/components/schemas/Error' - /databases/{databaseName}/query/ping: - post: + '503': + description: Branching is temporarily unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /projects/{id}/databases/{databaseName}/branches/{branchName}: + get: tags: - - Database Queries - summary: Database connectivity probe (REST API) + - Database Branches + summary: Get a branch description: | - Connectivity probe that runs a fixed `SELECT 1` through pgproxy, using the - same authentication, status/bandwidth gating, and metering as the other - `/query/*` endpoints. - - Unlike those endpoints, ping takes **no request body** and performs **no - table-name validation**, so it works on any database — including a freshly - provisioned, empty one. It is a real committed round-trip through pgproxy, - so a `200` means the database is reachable and queryable. Used by the - dashboard's database connection test. - operationId: queryDatabasePing + Returns the branch, including its connection string once it is `active`. + Poll this after creating a branch to learn when it is connectable. + operationId: getDatabaseBranch security: - - AuthUserAccessToken: [] + - UserToken: [] + - ProjectAccessToken: [] parameters: + - $ref: '#/components/parameters/ProjectId' - $ref: '#/components/parameters/DatabaseName' + - $ref: '#/components/parameters/BranchName' responses: '200': - description: Database is reachable - content: - application/json: - schema: - $ref: '#/components/schemas/DatabaseQueryResult' - example: - data: - - '?column?': 1 - count: 1 - '401': - description: Not authenticated + description: Successful response content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': - description: Access denied + $ref: '#/components/schemas/DatabaseBranch' + '404': + description: Project, database, or branch not found content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Database not found + '503': + description: Branching is temporarily unavailable content: application/json: schema: $ref: '#/components/schemas/Error' - '429': - $ref: '#/components/responses/DatabaseQueryCapExceeded' - /databases/{databaseName}/query/select: - post: + patch: tags: - - Database Queries - summary: Query database with SELECT (REST API) + - Database Branches + summary: Extend a branch's lifetime description: | - Query your database using a simple REST API - no SQL required! - - **Authentication:** Requires auth user access token (from signup/signin) - - **Row-Level Security:** Automatically enforced - you see only data you have access to - - **Use Cases:** - - Query from browser/mobile apps - - Simple data retrieval - - Filtered searches with sorting and pagination - - **Note:** For complex queries (JOINs, CTEs), use functions with direct SQL - operationId: queryDatabaseSelect + Replaces the branch's lifetime and restarts the countdown from now, so a + branch you are still working on is not swept mid-session. The new + duration is remembered, so a later reset re-arms the same lifetime. + operationId: updateDatabaseBranch security: - - AuthUserAccessToken: [] + - UserToken: [] + - ProjectAccessToken: [] parameters: + - $ref: '#/components/parameters/ProjectId' - $ref: '#/components/parameters/DatabaseName' + - $ref: '#/components/parameters/BranchName' requestBody: required: true content: application/json: schema: - $ref: '#/components/schemas/DatabaseSelectRequest' + $ref: '#/components/schemas/UpdateDatabaseBranchRequest' responses: '200': - description: Query successful + description: Lifetime updated content: application/json: schema: - $ref: '#/components/schemas/DatabaseQueryResult' - example: - data: - - id: uuid-123 - title: My Post - content: Post content - status: published - views: 150 - created_at: '2026-01-13T10:00:00Z' - count: 1 + $ref: '#/components/schemas/DatabaseBranch' '400': - description: Invalid query + description: Requested lifetime is outside the allowed range content: application/json: schema: $ref: '#/components/schemas/Error' - '401': - description: Not authenticated + '404': + description: Project, database, or branch not found content: application/json: schema: $ref: '#/components/schemas/Error' - '403': - description: Access denied + '409': + description: The branch is being deleted content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Database not found + '503': + description: Branching is temporarily unavailable content: application/json: schema: $ref: '#/components/schemas/Error' - '429': - $ref: '#/components/responses/DatabaseQueryCapExceeded' - /databases/{databaseName}/query/insert: - post: + delete: tags: - - Database Queries - summary: Insert data into database (REST API) + - Database Branches + summary: Delete a branch description: | - Insert new rows into your database using REST API. - - **Authentication:** Requires auth user access token - - **Auto-set user_id:** If your table has a trigger using `auth.uid()`, - user_id will be automatically set to the authenticated user + Marks the branch for teardown and returns immediately. The branch stops + accepting connections at once; its fork and its row are removed by a + background job, so a provider outage cannot leave the call hanging or the + branch half-deleted. - **Security:** Row-Level Security policies are enforced - operationId: queryDatabaseInsert + Deleting a branch that is still provisioning is allowed and stops the + build, and repeating the call while teardown is in progress is accepted + again. Once the branch is gone the call returns `404`. + operationId: deleteDatabaseBranch security: - - AuthUserAccessToken: [] + - UserToken: [] + - ProjectAccessToken: [] parameters: + - $ref: '#/components/parameters/ProjectId' - $ref: '#/components/parameters/DatabaseName' - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/DatabaseInsertRequest' + - $ref: '#/components/parameters/BranchName' responses: - '200': - description: Insert successful - content: - application/json: - schema: - $ref: '#/components/schemas/DatabaseQueryResult' - example: - data: - - id: uuid-123 - title: My New Post - content: This is the content - status: draft - user_id: user-uuid - created_at: '2026-01-13T10:00:00Z' - count: 1 - '400': - description: Invalid request - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '401': - description: Not authenticated + '202': + description: Deletion accepted and in progress content: application/json: schema: - $ref: '#/components/schemas/Error' - '403': - description: Access denied + type: object + properties: + status: + type: string + example: deleting + message: + type: string + example: branch deletion in progress + required: + - status + - message + '404': + description: Project, database, or branch not found content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Database not found + '503': + description: Branching is temporarily unavailable content: application/json: schema: $ref: '#/components/schemas/Error' - '429': - $ref: '#/components/responses/DatabaseQueryCapExceeded' - /databases/{databaseName}/query/update: + /projects/{id}/databases/{databaseName}/branches/{branchName}/reset: post: tags: - - Database Queries - summary: Update data in database (REST API) + - Database Branches + summary: Reset a branch to its parent's current state description: | - Update existing rows in your database using REST API. - - **Security:** Row-Level Security ensures you can only update data you have access to + Discards everything written on the branch and re-forks it from the + parent as it is now. - **Safety:** Requires at least one filter to prevent accidental mass updates. A - request with no `filters` is rejected with `400` (mirrors delete). This matters - for service-key queries, which run with full access and bypass RLS. + Returns immediately with the branch in `provisioning`. The rewind runs in + the background; poll the branch until it reports `active` before + connecting again. - **Note:** If RLS blocks the update, an empty result is returned (not an error) - operationId: queryDatabaseUpdate + The branch keeps its name and its connection string, so anything holding + that string keeps working once it is active again, and its lifetime is + re-armed to the duration it was created with. The branch does not serve + connections for the duration of the reset. + operationId: resetDatabaseBranch security: - - AuthUserAccessToken: [] + - UserToken: [] + - ProjectAccessToken: [] parameters: + - $ref: '#/components/parameters/ProjectId' - $ref: '#/components/parameters/DatabaseName' - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/DatabaseUpdateRequest' + - $ref: '#/components/parameters/BranchName' responses: - '200': - description: Update successful + '202': + description: Branch reset accepted; the branch is provisioning content: application/json: schema: - $ref: '#/components/schemas/DatabaseQueryResult' - example: - data: - - id: post-uuid - title: Updated Title - status: published - updated_at: '2026-01-13T10:05:00Z' - count: 1 - '400': - description: Invalid request + $ref: '#/components/schemas/DatabaseBranch' + '404': + description: Project, database, or branch not found content: application/json: schema: $ref: '#/components/schemas/Error' - '401': - description: Not authenticated + '409': + description: | + The branch is not active, a reset is already in progress, the parent + database is being restored, or the parent was restored within the + last 24 hours — a reset re-forks from the parent, and the provider + holds a child's reset shut for that long afterwards. content: application/json: schema: $ref: '#/components/schemas/Error' - '403': - description: Access denied + '503': + description: Branching is temporarily unavailable content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Database not found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '429': - $ref: '#/components/responses/DatabaseQueryCapExceeded' - /databases/{databaseName}/query/delete: + /projects/{id}/databases/{databaseName}/branches/{branchName}/reset-password: post: tags: - - Database Queries - summary: Delete data from database (REST API) + - Database Branches + summary: Rotate a branch's password description: | - Delete rows from your database using REST API. - - **Safety:** Requires at least one filter to prevent accidental mass deletions - - **Security:** Row-Level Security ensures you can only delete data you have access to + Issues a new password for the branch and invalidates the previous + connection string. Existing connections are not interrupted; new ones + must use the returned string. Proxies pick the rotation up within a few + seconds, so the previous password can still open new connections until + then. - **Note:** If RLS blocks the delete, an empty result is returned (not an error) - operationId: queryDatabaseDelete + The parent database's credentials are untouched. + operationId: resetDatabaseBranchPassword security: - - AuthUserAccessToken: [] + - UserToken: [] + - ProjectAccessToken: [] parameters: + - $ref: '#/components/parameters/ProjectId' - $ref: '#/components/parameters/DatabaseName' - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/DatabaseDeleteRequest' + - $ref: '#/components/parameters/BranchName' responses: '200': - description: Delete successful - content: - application/json: - schema: - $ref: '#/components/schemas/DatabaseQueryResult' - example: - data: - - id: post-uuid - title: Deleted Post - count: 1 - '400': - description: Invalid request or missing filters + description: Password rotated content: application/json: schema: - $ref: '#/components/schemas/Error' - '401': - description: Not authenticated + $ref: '#/components/schemas/DatabaseBranch' + '404': + description: Project, database, or branch not found content: application/json: schema: $ref: '#/components/schemas/Error' - '403': - description: Access denied + '409': + description: The branch is not active content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Database not found + '503': + description: Branching is temporarily unavailable content: application/json: schema: $ref: '#/components/schemas/Error' - '429': - $ref: '#/components/responses/DatabaseQueryCapExceeded' - /databases/{databaseName}/branches/{branchName}/query/ping: - post: + /projects/{id}/databases/{databaseName}/backups: + get: tags: - - Database Queries - summary: Database connectivity probe (REST API) + - Database Backups + summary: List a database's backups description: | - Connectivity probe that runs a fixed `SELECT 1` through pgproxy, using the - same authentication, status/bandwidth gating, and metering as the other - `/query/*` endpoints. - - Unlike those endpoints, ping takes **no request body** and performs **no - table-name validation**, so it works on any database — including a freshly - provisioned, empty one. It is a real committed round-trip through pgproxy, - so a `200` means the database is reachable and queryable. Used by the - dashboard's database connection test. + Returns every backup of the database, newest first, together with the + window a point-in-time restore may target. - **Branch-targeted.** Runs against the named branch instead of the parent - database, using the branch's own credentials. The branch must be `active` - and unexpired. Nothing about this request can reach the parent's data. - operationId: queryDatabaseBranchPing + Both backups you took and backups the schedule produced are listed; + `source` tells them apart. Only manual backups count against the plan's + backup allowance. + operationId: listDatabaseBackups security: - - AuthUserAccessToken: [] + - UserToken: [] + - ProjectAccessToken: [] parameters: + - $ref: '#/components/parameters/ProjectId' - $ref: '#/components/parameters/DatabaseName' - - $ref: '#/components/parameters/BranchName' responses: '200': - description: Database is reachable + description: Successful response content: application/json: schema: - $ref: '#/components/schemas/DatabaseQueryResult' - example: - data: - - '?column?': 1 - count: 1 - '401': - description: Not authenticated + $ref: '#/components/schemas/DatabaseBackupList' + '403': + description: Backups are PRO-only and the owner's plan does not include them content: application/json: schema: $ref: '#/components/schemas/Error' - '403': - description: Access denied + '404': + description: Project or database not found content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Database or branch not found + '409': + description: | + The database has no storage project yet, so there is nothing to + list. A database reports this while it is still provisioning. + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '503': + description: Backups are temporarily unavailable content: application/json: schema: $ref: '#/components/schemas/Error' - '429': - $ref: '#/components/responses/DatabaseQueryCapExceeded' - /databases/{databaseName}/branches/{branchName}/query/select: post: tags: - - Database Queries - summary: Query database with SELECT (REST API) + - Database Backups + summary: Back up a database description: | - Query your database using a simple REST API - no SQL required! - - **Authentication:** Requires auth user access token (from signup/signin) - - **Row-Level Security:** Automatically enforced - you see only data you have access to - - **Use Cases:** - - Query from browser/mobile apps - - Simple data retrieval - - Filtered searches with sorting and pagination - - **Note:** For complex queries (JOINs, CTEs), use Lambda functions with direct SQL + Captures the database as it is now. The backup is available immediately; + its `size_bytes` appears once the storage provider has costed it. - **Branch-targeted.** Runs against the named branch instead of the parent - database, using the branch's own credentials. The branch must be `active` - and unexpired. Nothing about this request can reach the parent's data. - operationId: queryDatabaseBranchSelect + Backups are rate-limited to one per minute per database, and capped by + the owner's plan. + operationId: createDatabaseBackup security: - - AuthUserAccessToken: [] + - UserToken: [] + - ProjectAccessToken: [] parameters: + - $ref: '#/components/parameters/ProjectId' - $ref: '#/components/parameters/DatabaseName' - - $ref: '#/components/parameters/BranchName' requestBody: required: true content: application/json: schema: - $ref: '#/components/schemas/DatabaseSelectRequest' + $ref: '#/components/schemas/CreateDatabaseBackupRequest' responses: - '200': - description: Query successful + '201': + description: Backup created content: application/json: schema: - $ref: '#/components/schemas/DatabaseQueryResult' - example: - data: - - id: uuid-123 - title: My Post - content: Post content - status: published - views: 150 - created_at: '2026-01-13T10:00:00Z' - count: 1 + $ref: '#/components/schemas/DatabaseBackup' '400': - description: Invalid query + description: Invalid backup name content: application/json: schema: $ref: '#/components/schemas/Error' - '401': - description: Not authenticated + '403': + description: | + The database has reached its backup allowance, or the owner's plan + does not include backups, which are PRO-only. content: application/json: schema: $ref: '#/components/schemas/Error' - '403': - description: Access denied + '404': + description: Project or database not found content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Database or branch not found + '409': + description: | + A backup of that name already exists, the database is not active, a + restore is running on it, or a backup was taken too recently. content: application/json: schema: $ref: '#/components/schemas/Error' - '429': - $ref: '#/components/responses/DatabaseQueryCapExceeded' - /databases/{databaseName}/branches/{branchName}/query/insert: - post: + '503': + description: Backups are temporarily unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /projects/{id}/databases/{databaseName}/backups/{backupName}: + get: tags: - - Database Queries - summary: Insert data into database (REST API) - description: | - Insert new rows into your database using REST API. - - **Authentication:** Requires auth user access token - - **Auto-set user_id:** If your table has a trigger using `auth.uid()`, - user_id will be automatically set to the authenticated user - - **Security:** Row-Level Security policies are enforced - - **Branch-targeted.** Runs against the named branch instead of the parent - database, using the branch's own credentials. The branch must be `active` - and unexpired. Nothing about this request can reach the parent's data. - operationId: queryDatabaseBranchInsert + - Database Backups + summary: Get a backup + description: Returns one backup of the database. + operationId: getDatabaseBackup security: - - AuthUserAccessToken: [] + - UserToken: [] + - ProjectAccessToken: [] parameters: + - $ref: '#/components/parameters/ProjectId' - $ref: '#/components/parameters/DatabaseName' - - $ref: '#/components/parameters/BranchName' - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/DatabaseInsertRequest' + - $ref: '#/components/parameters/BackupName' responses: '200': - description: Insert successful + description: Successful response content: application/json: schema: - $ref: '#/components/schemas/DatabaseQueryResult' - example: - data: - - id: uuid-123 - title: My New Post - content: This is the content - status: draft - user_id: user-uuid - created_at: '2026-01-13T10:00:00Z' - count: 1 - '400': - description: Invalid request + $ref: '#/components/schemas/DatabaseBackup' + '403': + description: Backups are PRO-only and the owner's plan does not include them content: application/json: schema: $ref: '#/components/schemas/Error' - '401': - description: Not authenticated + '404': + description: Project, database, or backup not found content: application/json: schema: $ref: '#/components/schemas/Error' - '403': - description: Access denied + '409': + description: | + The database has no storage project yet, so it holds no backups. A + database reports this while it is still provisioning. content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Database or branch not found + '503': + description: Backups are temporarily unavailable content: application/json: schema: $ref: '#/components/schemas/Error' - '429': - $ref: '#/components/responses/DatabaseQueryCapExceeded' - /databases/{databaseName}/branches/{branchName}/query/update: - post: + delete: tags: - - Database Queries - summary: Update data in database (REST API) + - Database Backups + summary: Delete a backup description: | - Update existing rows in your database using REST API. - - **Security:** Row-Level Security ensures you can only update data you have access to - - **Safety:** Requires at least one filter to prevent accidental mass updates. A - request with no `filters` is rejected with `400` (mirrors delete). This matters - for service-key queries, which run with full access and bypass RLS. - - **Note:** If RLS blocks the update, an empty result is returned (not an error) - - **Branch-targeted.** Runs against the named branch instead of the parent - database, using the branch's own credentials. The branch must be `active` - and unexpired. Nothing about this request can reach the parent's data. - operationId: queryDatabaseBranchUpdate + Deletes the backup and frees its storage. Scheduled backups can be + deleted too. A backup that is already gone reports `404`, so a name + that never existed and a name that no longer does read the same. + Refused with `409` while the database is being restored. + operationId: deleteDatabaseBackup security: - - AuthUserAccessToken: [] + - UserToken: [] + - ProjectAccessToken: [] parameters: + - $ref: '#/components/parameters/ProjectId' - $ref: '#/components/parameters/DatabaseName' - - $ref: '#/components/parameters/BranchName' - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/DatabaseUpdateRequest' + - $ref: '#/components/parameters/BackupName' responses: '200': - description: Update successful + description: Backup deleted content: application/json: schema: - $ref: '#/components/schemas/DatabaseQueryResult' - example: - data: - - id: post-uuid - title: Updated Title - status: published - updated_at: '2026-01-13T10:05:00Z' - count: 1 - '400': - description: Invalid request + type: object + properties: + status: + type: string + example: deleted + message: + type: string + example: backup deleted + required: + - status + - message + '403': + description: Backups are PRO-only and the owner's plan does not include them content: application/json: schema: $ref: '#/components/schemas/Error' - '401': - description: Not authenticated + '404': + description: Project, database, or backup not found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '409': + description: | + The database is being restored. A restore is pinned to a backup it + may not have restored yet, so deleting one is refused until the + restore finishes. + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '503': + description: Backups are temporarily unavailable content: application/json: schema: $ref: '#/components/schemas/Error' + /projects/{id}/databases/{databaseName}/backup-schedule: + get: + tags: + - Database Backups + summary: Get the automated backup schedule + description: | + Returns the database's backup schedule. An empty list means no scheduled + backups. + operationId: getDatabaseBackupSchedule + security: + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - $ref: '#/components/parameters/DatabaseName' + responses: + '200': + description: Successful response + content: + application/json: + schema: + $ref: '#/components/schemas/DatabaseBackupSchedule' '403': - description: Access denied + description: Backups are PRO-only and the owner's plan does not include them content: application/json: schema: $ref: '#/components/schemas/Error' '404': - description: Database or branch not found + description: Project or database not found content: application/json: schema: $ref: '#/components/schemas/Error' - '429': - $ref: '#/components/responses/DatabaseQueryCapExceeded' - /databases/{databaseName}/branches/{branchName}/query/delete: - post: + '409': + description: | + The database has no storage project yet, so it has no schedule. A + database reports this while it is still provisioning. + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '503': + description: Backups are temporarily unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + put: tags: - - Database Queries - summary: Delete data from database (REST API) + - Database Backups + summary: Replace the automated backup schedule description: | - Delete rows from your database using REST API. - - **Safety:** Requires at least one filter to prevent accidental mass deletions - - **Security:** Row-Level Security ensures you can only delete data you have access to - - **Note:** If RLS blocks the delete, an empty result is returned (not an error) + Replaces the schedule wholesale. Send an empty `entries` list to stop + scheduled backups. - **Branch-targeted.** Runs against the named branch instead of the parent - database, using the branch's own credentials. The branch must be `active` - and unexpired. Nothing about this request can reach the parent's data. - operationId: queryDatabaseBranchDelete + Scheduled backups do not count against the plan's backup allowance, but + their retention is clamped to the plan's. + operationId: updateDatabaseBackupSchedule security: - - AuthUserAccessToken: [] + - UserToken: [] + - ProjectAccessToken: [] parameters: + - $ref: '#/components/parameters/ProjectId' - $ref: '#/components/parameters/DatabaseName' - - $ref: '#/components/parameters/BranchName' requestBody: required: true content: application/json: schema: - $ref: '#/components/schemas/DatabaseDeleteRequest' + $ref: '#/components/schemas/DatabaseBackupSchedule' responses: '200': - description: Delete successful + description: Schedule replaced content: application/json: schema: - $ref: '#/components/schemas/DatabaseQueryResult' - example: - data: - - id: post-uuid - title: Deleted Post - count: 1 + $ref: '#/components/schemas/DatabaseBackupSchedule' '400': - description: Invalid request or missing filters + description: | + The schedule names a recurrence that cannot fire: a weekly or + monthly one with no `day`, or a `day` outside its frequency's range + (1-7 for weekly, 1-28 for monthly). The response says which. content: application/json: schema: $ref: '#/components/schemas/Error' - '401': - description: Not authenticated + '403': + description: Backups are PRO-only and the owner's plan does not include them content: application/json: schema: $ref: '#/components/schemas/Error' - '403': - description: Access denied + '404': + description: Project or database not found content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Database or branch not found + '409': + description: | + The database is not active, or a restore is running on it — a restore + moves the data to a new branch, and the provider keeps the schedule + per branch. content: application/json: schema: $ref: '#/components/schemas/Error' - '429': - $ref: '#/components/responses/DatabaseQueryCapExceeded' - /databases/regions: - get: - tags: - - Databases - summary: List platform-supported regions for database provisioning - operationId: listDatabaseRegions - description: | - Returns the regions enabled for database provisioning in this platform environment. - This is a public endpoint that doesn't require authentication. - responses: - '200': - description: List of platform-supported regions + '503': + description: Backups are temporarily unavailable content: application/json: schema: - type: array - items: - type: object - properties: - id: - type: string - example: aws-us-east-1 - description: Region identifier for API usage - name: - type: string - example: AWS US East 1 (N. Virginia) - description: Human-readable region name - /databases/postgres-versions: + $ref: '#/components/schemas/Error' + /projects/{id}/databases/{databaseName}/restores: get: tags: - - Databases - summary: List available PostgreSQL versions - operationId: listPostgresVersions + - Database Backups + summary: List a database's restores description: | - Returns a list of supported PostgreSQL major versions for database provisioning. - This is a public endpoint that doesn't require authentication. + Returns the database's restore history, newest first, capped at the 50 + most recent. There is no pagination: a database that has been restored + more than 50 times keeps the older records but does not return them. + operationId: listDatabaseRestores + security: + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - $ref: '#/components/parameters/DatabaseName' responses: '200': - description: List of available PostgreSQL versions + description: Successful response content: application/json: schema: - type: array - items: - type: object - properties: - version: - type: string - example: '16' - description: PostgreSQL major version number - name: - type: string - example: PostgreSQL 16 - description: Human-readable version name - default: - type: boolean - description: Whether this is the default version (recommended) - deprecated: - type: boolean - description: Whether this version is deprecated (approaching EOL) - /functions/runtimes: - get: - tags: - - Functions - summary: List supported function runtimes - operationId: listFunctionRuntimes - security: [] - description: | - Returns the public function runtime catalog used by CLI clients to select supported runtimes, - language defaults, and local source packaging metadata for deployments. - This is a public endpoint that doesn't require authentication. - responses: - '200': - description: Supported function runtimes - content: - application/json: - schema: - $ref: '#/components/schemas/FunctionRuntimesResponse' - /functions/regions: - get: - tags: - - Functions - summary: List available regions for function deployment - operationId: listFunctionRegions - security: [] - description: | - Returns the configured regions where functions can be deployed, each annotated - with a human-readable label and country flag emoji for use in UI pickers. - This is a public endpoint that doesn't require authentication. - responses: - '200': - description: Available function deployment regions + $ref: '#/components/schemas/DatabaseRestoreList' + '403': + description: Backups are PRO-only and the owner's plan does not include them content: application/json: schema: - type: array - items: - $ref: '#/components/schemas/FunctionRegion' - /projects/{id}/variables/{name}: - get: - tags: - - Variables - summary: Get variable by name - description: | - Returns a project-level environment variable used by deployed functions and frontends. - operationId: getVariable - security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/VariableName' - responses: - '200': - description: Successful response + $ref: '#/components/schemas/Error' + '404': + description: Project or database not found content: application/json: schema: - $ref: '#/components/schemas/Variable' - '404': - description: Variable not found + $ref: '#/components/schemas/Error' + '503': + description: Backups are temporarily unavailable content: application/json: schema: $ref: '#/components/schemas/Error' - put: + post: tags: - - Variables - summary: Update a variable + - Database Backups + summary: Restore a database description: | - Updates a project-level environment variable and triggers asynchronous propagation - to deployed functions and frontends in the project's configured regions. - operationId: updateVariable + Replaces the database's data, either with a named backup or with its + state at a point in time. This is destructive: everything written after + that point is discarded. + + Asynchronous: the response is `202` with the restore `pending` and the + database `restoring`. The database does not accept connections until the + restore reports `completed`; its connection string is unchanged + throughout, so nothing holding it needs updating. + + Restores are in place. There is no way to restore into a second + database, and a database's branches are never restored — they keep + serving their own data, but resetting a branch from its parent is + refused by the storage provider for up to 24 hours afterwards. + operationId: createDatabaseRestore security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/VariableName' + - $ref: '#/components/parameters/DatabaseName' requestBody: required: true content: application/json: schema: - $ref: '#/components/schemas/UpdateVariableRequest' + $ref: '#/components/schemas/CreateDatabaseRestoreRequest' responses: - '200': - description: Variable updated + '202': + description: Restore accepted and in progress content: application/json: schema: - $ref: '#/components/schemas/Variable' + $ref: '#/components/schemas/DatabaseRestore' + '400': + description: | + Neither or both restore targets were named, or the requested time is + outside the available window. + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '403': + description: | + The owner's plan does not include backups or point-in-time restore. + Both are PRO-only. + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '404': - description: Variable not found + description: Project, database, or backup not found content: application/json: schema: $ref: '#/components/schemas/Error' - delete: + '409': + description: | + A restore is already in progress, the database is not active, + another database operation is still running, or the database is + holding as many pre-restore branches as it may. + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '503': + description: Backups are temporarily unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /projects/{id}/databases/{databaseName}/restores/{restoreId}: + get: tags: - - Variables - summary: Delete a variable + - Database Backups + summary: Get a restore description: | - Deletes a project-level environment variable and triggers asynchronous propagation - of the removal to deployed functions and frontends in the project's configured regions. - operationId: deleteVariable + Returns the restore. Poll this after starting one; the database is + connectable again once it reports `completed`. + operationId: getDatabaseRestore security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/VariableName' + - $ref: '#/components/parameters/DatabaseName' + - $ref: '#/components/parameters/RestoreId' responses: - '204': - description: Variable deleted + '200': + description: Successful response + content: + application/json: + schema: + $ref: '#/components/schemas/DatabaseRestore' + '403': + description: Backups are PRO-only and the owner's plan does not include them + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '404': - description: Variable not found + description: Project, database, or restore not found content: application/json: schema: $ref: '#/components/schemas/Error' - /auth/password-policy: - get: + '503': + description: Backups are temporarily unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /projects/{id}/databases/{databaseName}/reset-password: + post: tags: - - Authentication - summary: Get the effective password policy + - Databases + summary: Reset database password description: | - Returns the backend-enforced password bounds and compromised-password - screening status for the project identified by the anon key. A valid - anon key is required, but no route-specific auth permission is needed. - operationId: authGetPasswordPolicy + Rotates the Volcano-managed PostgreSQL password used by clients when connecting + through pgproxy. This does not rotate or expose the internal owner password. + The returned password and connection string are the only client credentials that + will authenticate through pgproxy after reset. + + Existing connections are not interrupted; new ones must use the returned + string. Proxies pick the rotation up within a few seconds, so the previous + password can still open new connections until then. + operationId: resetDatabasePassword security: - - AnonKey: [] + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - $ref: '#/components/parameters/DatabaseName' responses: '200': - description: Effective password policy + description: Password reset successful content: application/json: schema: - $ref: '#/components/schemas/AuthPasswordPolicy' - '401': - description: Invalid, missing, or revoked anon key + type: object + properties: + message: + type: string + role_name: + type: string + description: Volcano-managed per-database client login (also the pgproxy routing username) + example: volcano_client_11111111-1111-1111-1111-111111111111 + new_password: + type: string + description: New Volcano-managed client password. Always starts with `vpg_`. + connection_string: + type: string + description: Updated pgproxy connection string using Volcano-managed credentials. + '400': + description: Database is not active content: application/json: schema: $ref: '#/components/schemas/Error' '404': - description: Project or auth configuration not found + description: Database not found content: application/json: schema: $ref: '#/components/schemas/Error' - /auth/signup: - post: + '409': + description: | + A restore is running on the database. A restore replaces the + credentials as it finishes, so wait for it and rotate afterwards. + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '503': + description: | + Volcano could not check whether a restore is running, and will not + rotate a credential a restore might be about to replace. Retry. + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /projects/{id}/databases/{databaseName}/type: + patch: tags: - - Authentication - summary: Sign up a new auth user + - Databases + summary: Update database size description: | - Create a new end-user account. The project is determined from the anon key. - Requires project-specific anon key in Authorization header. - - **Session-less**: signup never issues a session. On success it returns a - uniform acknowledgement (`AuthSignupResponse`) with no tokens; the client - obtains a session with a subsequent `POST /auth/signin`. If email confirmation - is enabled for the project, a confirmation email is sent and - `confirmation_required` is `true`. + Change the size tier of a database. This may briefly interrupt active connections. - **Anti-enumeration**: a signup for an already-registered email returns the - exact same `201` response as a fresh signup — it never returns `409` — so the - response cannot be used to discover which emails are registered. - operationId: authSignup + **Available sizes:** + - `volcano-db-xs`: Up to ~1GB RAM - Development, small apps + - `volcano-db-s`: Up to ~4GB RAM - Production-ready, light traffic + - `volcano-db-m`: Up to ~8GB RAM - Medium traffic applications + - `volcano-db-l`: Up to ~16GB RAM - High traffic, larger datasets + - `volcano-db-xl`: Up to ~32GB RAM - Heavy workloads + - `volcano-db-2xl`: Up to ~64GB RAM - Enterprise-scale + operationId: updateDatabaseType security: - - AnonKey: [] + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - $ref: '#/components/parameters/DatabaseName' requestBody: required: true content: application/json: schema: - type: object - required: - - email - - password - properties: - email: - type: string - format: email - password: - type: string - description: | - Password validated after NFC normalization against the - policy returned by GET /auth/password-policy. - user_metadata: - type: object - additionalProperties: true + $ref: '#/components/schemas/UpdateDatabaseTypeRequest' responses: - '201': - description: | - Signup acknowledged (session-less). Returned identically for a new - account and for an already-registered email (anti-enumeration). + '200': + description: Database type updated content: application/json: schema: - $ref: '#/components/schemas/AuthSignupResponse' + $ref: '#/components/schemas/Database' '400': - description: Invalid input (bad email/password format) - '401': - description: | - Unauthorized - Invalid, tampered, revoked, or wrong-project anon key - '403': + description: Invalid database type + '404': + description: Database not found + '409': description: | - Forbidden - Signups disabled, anon key lacks signup permission, or the - email domain is not in `allowed_email_domains`. The internal - `anonymous.volcano.internal` domain is reserved for anonymous - accounts and is refused whatever the project allows. - '429': - description: Rate limit exceeded + The database is not active — being provisioned, deleted, or + restored. Compute can only be changed while it is active. + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '503': - description: Compromised-password screening is temporarily unavailable + description: | + Volcano could not check whether a restore is running, and will not + reconfigure compute a restore might be moving. Retry. content: application/json: schema: $ref: '#/components/schemas/Error' - /auth/signin: - post: + /projects/{id}/databases/{databaseName}/stats: + get: tags: - - Authentication - summary: Sign in an auth user + - Databases + summary: Get database consumption metrics description: | - Authenticate with email and password. Requires an anon key. + Retrieve consumption metrics including storage, compute time, and data transfer. + Metrics are aggregated at the project level. Defaults to last 24 hours. - Set `session_mode` to `cookie` to request HttpOnly refresh-token - storage. Cookie mode is honored only for an exact, credentialed CORS - origin on the same schemeful site as this API. Otherwise the response - retains the refresh token in its body. - operationId: authSignin + **Note:** Advanced metrics require an upgraded plan. + operationId: getDatabaseStats security: - - AnonKey: [] - requestBody: - required: true - content: - application/json: - schema: - type: object - required: - - email - - password - properties: - email: - type: string - password: - type: string - session_mode: - type: string - enum: - - cookie + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - $ref: '#/components/parameters/DatabaseName' + - name: from + in: query + required: false + schema: + type: string + format: date-time + description: Start time in RFC3339 format (e.g., "2024-01-01T00:00:00Z"). Defaults to 24 hours ago. + - name: to + in: query + required: false + schema: + type: string + format: date-time + description: End time in RFC3339 format (e.g., "2024-01-02T00:00:00Z"). Defaults to now. + - name: granularity + in: query + required: false + schema: + type: string + enum: + - hourly + - daily + - monthly + default: hourly + description: Level of detail for metrics aggregation responses: '200': - description: Signin successful + description: Successful response content: application/json: schema: - $ref: '#/components/schemas/AuthTokenResponse' + $ref: '#/components/schemas/DatabaseStats' '400': - description: Invalid input (missing email/password) - '401': - description: | - Unauthorized - Invalid credentials, invalid/tampered/revoked anon key, - or account banned/deleted - '403': - description: | - Forbidden - Anon key lacks signin permission, or the email domain is - not in `allowed_email_domains` while `allowed_email_domains_mode` is - `signup_and_signin`. The domain is taken from the account's canonical - email (its primary identity), which is not necessarily the address in - the request. - '429': - description: Rate limit exceeded - /auth/refresh: + description: Invalid parameters + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '404': + description: Database not found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '503': + description: Database metrics not available or requires upgraded plan + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /databases/{databaseName}/query/ping: post: tags: - - Authentication - summary: Refresh access token + - Database Queries + summary: Database connectivity probe (REST API) description: | - Get a new access token using a refresh token. Requires an anon key. + Connectivity probe that runs a fixed `SELECT 1` through pgproxy, using the + same authentication, status/bandwidth gating, and metering as the other + `/query/*` endpoints. - Send `refresh_token` in the body for the default flow. An eligible - cookie-mode browser request may instead send `session_mode: cookie` - with an empty token or omit the request body; the API reads and resets - the project's HttpOnly cookie and omits `refresh_token` from the - response. - operationId: authRefresh + Unlike those endpoints, ping takes **no request body** and performs **no + table-name validation**, so it works on any database — including a freshly + provisioned, empty one. It is a real committed round-trip through pgproxy, + so a `200` means the database is reachable and queryable. Used by the + dashboard's database connection test. + operationId: queryDatabasePing security: - - AnonKey: [] - requestBody: - required: false - content: - application/json: - schema: - type: object - properties: - refresh_token: - type: string - session_mode: - type: string - enum: - - cookie + - AuthUserAccessToken: [] + parameters: + - $ref: '#/components/parameters/DatabaseName' responses: '200': - description: Token refreshed + description: Database is reachable + headers: + X-Volcano-Proxy-Ms: + $ref: '#/components/headers/DatabaseQueryProxyMs' + X-Volcano-Proxy-Handler-Ms: + $ref: '#/components/headers/DatabaseQueryProxyHandlerMs' + X-Volcano-Compute-Ms: + $ref: '#/components/headers/DatabaseQueryComputeMs' content: application/json: schema: - $ref: '#/components/schemas/AuthTokenResponse' + $ref: '#/components/schemas/DatabaseQueryResult' + example: + data: + - '?column?': 1 + count: 1 '401': - description: Invalid or expired refresh token + description: Not authenticated content: application/json: schema: $ref: '#/components/schemas/Error' '403': - description: | - The account's email domain is not in `allowed_email_domains` while - `allowed_email_domains_mode` is `signup_and_signin`, so the session - cannot be extended + description: Access denied content: application/json: schema: $ref: '#/components/schemas/Error' - '429': - description: Rate limit exceeded + '404': + description: Database not found content: application/json: schema: $ref: '#/components/schemas/Error' - /auth/logout: + '429': + $ref: '#/components/responses/DatabaseQueryCapExceeded' + /databases/{databaseName}/query/select: post: tags: - - Authentication - summary: Logout (revoke refresh token) + - Database Queries + summary: Query database with SELECT (REST API) description: | - Invalidate a refresh token. Requires an anon key. + Query your database using a simple REST API - no SQL required! - Send `refresh_token` for the default flow. An eligible cookie-mode - browser request may instead send `session_mode: cookie` with an empty - token; logout remains idempotent when the cookie is missing or expired. - operationId: authLogout + **Authentication:** Requires auth user access token (from signup/signin) + + **Row-Level Security:** Automatically enforced - you see only data you have access to + + **Use Cases:** + - Query from browser/mobile apps + - Simple data retrieval + - Filtered searches with sorting and pagination + + **Note:** For complex queries (JOINs, CTEs), use functions with direct SQL + operationId: queryDatabaseSelect security: - - AnonKey: [] + - AuthUserAccessToken: [] + parameters: + - $ref: '#/components/parameters/DatabaseName' requestBody: - required: false + required: true content: application/json: schema: - type: object - properties: - refresh_token: - type: string - session_mode: - type: string - enum: - - cookie - responses: - '204': - description: Logged out successfully - /auth/forgot-password: - post: - tags: - - Authentication - summary: Request password reset - description: | - Generates recovery token and stores it (email sending pending). - Returns generic message to prevent email enumeration. - Project is identified via the anon key. - operationId: authForgotPassword - security: - - AnonKey: [] - requestBody: - required: true - content: - application/json: - schema: - type: object - required: - - email - properties: - email: - type: string - format: email + $ref: '#/components/schemas/DatabaseSelectRequest' responses: '200': - description: Generic success message (doesn't reveal if email exists) + description: Query successful + headers: + X-Volcano-Proxy-Ms: + $ref: '#/components/headers/DatabaseQueryProxyMs' + X-Volcano-Proxy-Handler-Ms: + $ref: '#/components/headers/DatabaseQueryProxyHandlerMs' + X-Volcano-Compute-Ms: + $ref: '#/components/headers/DatabaseQueryComputeMs' content: application/json: schema: - type: object - properties: - message: - type: string - example: If the email exists, a password reset link has been sent + $ref: '#/components/schemas/DatabaseQueryResult' + example: + data: + - id: uuid-123 + title: My Post + content: Post content + status: published + views: 150 + created_at: '2026-01-13T10:00:00Z' + count: 1 + '400': + description: Invalid query + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '401': + description: Not authenticated + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '403': - description: Password reset is disabled for this project + description: Access denied content: application/json: schema: $ref: '#/components/schemas/Error' - '429': - description: Rate limit exceeded (10 requests per hour per IP) + '404': + description: Database not found content: application/json: schema: $ref: '#/components/schemas/Error' - /auth/reset-password: + '429': + $ref: '#/components/responses/DatabaseQueryCapExceeded' + /databases/{databaseName}/query/insert: post: tags: - - Authentication - summary: Reset password with recovery token + - Database Queries + summary: Insert data into database (REST API) description: | - Reset password using recovery token from forgot-password. - Revokes all existing sessions for security. - operationId: authResetPassword + Insert new rows into your database using REST API. + + **Authentication:** Requires auth user access token + + **Auto-set user_id:** If your table has a trigger using `auth.uid()`, + user_id will be automatically set to the authenticated user + + **Security:** Row-Level Security policies are enforced + operationId: queryDatabaseInsert security: - - AnonKey: [] + - AuthUserAccessToken: [] + parameters: + - $ref: '#/components/parameters/DatabaseName' requestBody: required: true content: application/json: schema: - type: object - required: - - token - - new_password - properties: - token: - type: string - description: Recovery token from forgot-password - new_password: - type: string - description: | - Password validated after NFC normalization against the - policy returned by GET /auth/password-policy. + $ref: '#/components/schemas/DatabaseInsertRequest' responses: '200': - description: Password reset successful + description: Insert successful + headers: + X-Volcano-Proxy-Ms: + $ref: '#/components/headers/DatabaseQueryProxyMs' + X-Volcano-Proxy-Handler-Ms: + $ref: '#/components/headers/DatabaseQueryProxyHandlerMs' + X-Volcano-Compute-Ms: + $ref: '#/components/headers/DatabaseQueryComputeMs' content: application/json: schema: - type: object - properties: - message: - type: string + $ref: '#/components/schemas/DatabaseQueryResult' + example: + data: + - id: uuid-123 + title: My New Post + content: This is the content + status: draft + user_id: user-uuid + created_at: '2026-01-13T10:00:00Z' + count: 1 '400': - description: Password doesn't meet requirements + description: Invalid request + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '401': - description: Invalid or expired token - '503': - description: Compromised-password screening is temporarily unavailable + description: Not authenticated content: application/json: schema: $ref: '#/components/schemas/Error' - /auth/confirm: + '403': + description: Access denied + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '404': + description: Database not found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '429': + $ref: '#/components/responses/DatabaseQueryCapExceeded' + /databases/{databaseName}/query/update: post: tags: - - Authentication - summary: Confirm email address + - Database Queries + summary: Update data in database (REST API) description: | - Confirm email address using token sent via email. - Required if require_email_confirmation is enabled. - operationId: authConfirmEmail + Update existing rows in your database using REST API. + + **Security:** Row-Level Security ensures you can only update data you have access to + + **Safety:** Requires at least one filter to prevent accidental mass updates. A + request with no `filters` is rejected with `400` (mirrors delete). This matters + for service-key queries, which run with full access and bypass RLS. + + **Note:** If RLS blocks the update, an empty result is returned (not an error) + operationId: queryDatabaseUpdate security: - - AnonKey: [] + - AuthUserAccessToken: [] + parameters: + - $ref: '#/components/parameters/DatabaseName' requestBody: required: true content: application/json: schema: - type: object - required: - - token - properties: - token: - type: string - description: Confirmation token from email + $ref: '#/components/schemas/DatabaseUpdateRequest' responses: '200': - description: Email confirmed or already confirmed + description: Update successful + headers: + X-Volcano-Proxy-Ms: + $ref: '#/components/headers/DatabaseQueryProxyMs' + X-Volcano-Proxy-Handler-Ms: + $ref: '#/components/headers/DatabaseQueryProxyHandlerMs' + X-Volcano-Compute-Ms: + $ref: '#/components/headers/DatabaseQueryComputeMs' content: application/json: schema: - type: object - properties: - message: - type: string - enum: - - Email confirmed successfully - - Email already confirmed - examples: - confirmed: - summary: Fresh confirmation - value: - message: Email confirmed successfully - alreadyConfirmed: - summary: Token belongs to already-confirmed user - value: - message: Email already confirmed + $ref: '#/components/schemas/DatabaseQueryResult' + example: + data: + - id: post-uuid + title: Updated Title + status: published + updated_at: '2026-01-13T10:05:00Z' + count: 1 '400': - description: Missing confirmation token in request body + description: Invalid request + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '401': - description: Invalid or expired token - /auth/resend-confirmation: + description: Not authenticated + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '403': + description: Access denied + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '404': + description: Database not found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '429': + $ref: '#/components/responses/DatabaseQueryCapExceeded' + /databases/{databaseName}/query/delete: post: tags: - - Authentication - summary: Resend confirmation email + - Database Queries + summary: Delete data from database (REST API) description: | - Resend email confirmation link. - Returns generic message to prevent email enumeration. - No email is sent when the account does not exist or is already confirmed. - If the account exists and is unconfirmed, a new token is generated and - any previous confirmation token is invalidated. - operationId: authResendConfirmation + Delete rows from your database using REST API. + + **Safety:** Requires at least one filter to prevent accidental mass deletions + + **Security:** Row-Level Security ensures you can only delete data you have access to + + **Note:** If RLS blocks the delete, an empty result is returned (not an error) + operationId: queryDatabaseDelete security: - - AnonKey: [] + - AuthUserAccessToken: [] + parameters: + - $ref: '#/components/parameters/DatabaseName' requestBody: required: true content: application/json: schema: - type: object - required: - - email - properties: - email: - type: string - format: email + $ref: '#/components/schemas/DatabaseDeleteRequest' responses: '200': - description: Generic success message + description: Delete successful + headers: + X-Volcano-Proxy-Ms: + $ref: '#/components/headers/DatabaseQueryProxyMs' + X-Volcano-Proxy-Handler-Ms: + $ref: '#/components/headers/DatabaseQueryProxyHandlerMs' + X-Volcano-Compute-Ms: + $ref: '#/components/headers/DatabaseQueryComputeMs' content: application/json: schema: - type: object - properties: - message: - type: string - '429': - description: Rate limit exceeded + $ref: '#/components/schemas/DatabaseQueryResult' + example: + data: + - id: post-uuid + title: Deleted Post + count: 1 + '400': + description: Invalid request or missing filters content: application/json: schema: $ref: '#/components/schemas/Error' - /auth/signup-anonymous: - post: - tags: - - Authentication - summary: Create anonymous user - description: | - Create guest user without email/password. - - User metadata (like display_name) can be included and will appear in realtime presence events. - Requires enable_anonymous_signins to be true. - operationId: authSignupAnonymous - security: - - AnonKey: [] - requestBody: - description: Optional user metadata - content: - application/json: - schema: - type: object - properties: - user_metadata: - type: object - additionalProperties: true - description: Custom user metadata (e.g., display_name, avatar_url) - example: - display_name: Alice - avatar_url: https://example.com/alice.jpg - responses: - '201': - description: Anonymous user created + '401': + description: Not authenticated content: application/json: schema: - $ref: '#/components/schemas/AuthTokenResponse' + $ref: '#/components/schemas/Error' '403': - description: Anonymous signins disabled - /auth/user/convert-anonymous: - post: - tags: - - Authentication - summary: Convert anonymous user to authenticated - description: | - Add email and password to anonymous user. - Requires auth user access token. - If require_email_confirmation is enabled for the project, the converted - user remains unconfirmed until /auth/confirm succeeds. When email - sending is enabled, a confirmation email is sent during conversion. - operationId: authConvertAnonymous - security: - - AuthUserAccessToken: [] - requestBody: - required: true - content: - application/json: - schema: - type: object - required: - - email - - password - properties: - email: - type: string - format: email - password: - type: string - description: | - Password validated after NFC normalization against the - policy returned by GET /auth/password-policy. - user_metadata: - type: object - additionalProperties: true - responses: - '200': - description: User converted successfully + description: Access denied content: application/json: schema: - type: object - properties: - user: - $ref: '#/components/schemas/AuthUser' - '400': - description: Not an anonymous user - '403': - description: | - The chosen email domain is not in `allowed_email_domains` - '409': - description: Email already in use - '503': - description: Compromised-password screening is temporarily unavailable + $ref: '#/components/schemas/Error' + '404': + description: Database not found content: application/json: schema: $ref: '#/components/schemas/Error' - /auth/user/change-email: + '429': + $ref: '#/components/responses/DatabaseQueryCapExceeded' + /databases/{databaseName}/branches/{branchName}/query/ping: post: tags: - - Authentication - summary: Request email change + - Database Queries + summary: Database connectivity probe (REST API) description: | - Request to change user's email address. - Sends confirmation token to new email address. - operationId: authRequestEmailChange + Connectivity probe that runs a fixed `SELECT 1` through pgproxy, using the + same authentication, status/bandwidth gating, and metering as the other + `/query/*` endpoints. + + Unlike those endpoints, ping takes **no request body** and performs **no + table-name validation**, so it works on any database — including a freshly + provisioned, empty one. It is a real committed round-trip through pgproxy, + so a `200` means the database is reachable and queryable. Used by the + dashboard's database connection test. + + **Branch-targeted.** Runs against the named branch instead of the parent + database, using the branch's own credentials. The branch must be `active` + and unexpired. Nothing about this request can reach the parent's data. + operationId: queryDatabaseBranchPing security: - AuthUserAccessToken: [] - requestBody: - required: true - content: - application/json: - schema: - type: object - required: - - new_email - properties: - new_email: - type: string - format: email + parameters: + - $ref: '#/components/parameters/DatabaseName' + - $ref: '#/components/parameters/BranchName' responses: '200': - description: Confirmation email sent - content: - application/json: - schema: - type: object - properties: - message: - type: string - new_email: - type: string - '400': - description: Invalid email format or same as current email + description: Database is reachable + headers: + X-Volcano-Proxy-Ms: + $ref: '#/components/headers/DatabaseQueryProxyMs' + X-Volcano-Proxy-Handler-Ms: + $ref: '#/components/headers/DatabaseQueryProxyHandlerMs' + X-Volcano-Compute-Ms: + $ref: '#/components/headers/DatabaseQueryComputeMs' content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: '#/components/schemas/DatabaseQueryResult' + example: + data: + - '?column?': 1 + count: 1 '401': description: Not authenticated content: @@ -7422,58 +7788,80 @@ paths: schema: $ref: '#/components/schemas/Error' '403': - description: | - The requested email domain is not in `allowed_email_domains` + description: Access denied content: application/json: schema: $ref: '#/components/schemas/Error' - '409': - description: Email already in use + '404': + description: Database or branch not found content: application/json: schema: $ref: '#/components/schemas/Error' '429': - description: Rate limit exceeded (10 requests per hour per IP) - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /auth/user/confirm-email-change: + $ref: '#/components/responses/DatabaseQueryCapExceeded' + '503': + $ref: '#/components/responses/DatabaseBranchQueryUnavailable' + /databases/{databaseName}/branches/{branchName}/query/select: post: tags: - - Authentication - summary: Confirm email change - description: Confirm email change with token sent to new address - operationId: authConfirmEmailChange + - Database Queries + summary: Query database with SELECT (REST API) + description: | + Query your database using a simple REST API - no SQL required! + + **Authentication:** Requires auth user access token (from signup/signin) + + **Row-Level Security:** Automatically enforced - you see only data you have access to + + **Use Cases:** + - Query from browser/mobile apps + - Simple data retrieval + - Filtered searches with sorting and pagination + + **Note:** For complex queries (JOINs, CTEs), use Lambda functions with direct SQL + + **Branch-targeted.** Runs against the named branch instead of the parent + database, using the branch's own credentials. The branch must be `active` + and unexpired. Nothing about this request can reach the parent's data. + operationId: queryDatabaseBranchSelect security: - AuthUserAccessToken: [] + parameters: + - $ref: '#/components/parameters/DatabaseName' + - $ref: '#/components/parameters/BranchName' requestBody: required: true content: application/json: schema: - type: object - required: - - email_change_token - properties: - email_change_token: - type: string + $ref: '#/components/schemas/DatabaseSelectRequest' responses: '200': - description: Email changed successfully + description: Query successful + headers: + X-Volcano-Proxy-Ms: + $ref: '#/components/headers/DatabaseQueryProxyMs' + X-Volcano-Proxy-Handler-Ms: + $ref: '#/components/headers/DatabaseQueryProxyHandlerMs' + X-Volcano-Compute-Ms: + $ref: '#/components/headers/DatabaseQueryComputeMs' content: application/json: schema: - type: object - properties: - message: - type: string - user: - $ref: '#/components/schemas/AuthUser' + $ref: '#/components/schemas/DatabaseQueryResult' + example: + data: + - id: uuid-123 + title: My Post + content: Post content + status: published + views: 150 + created_at: '2026-01-13T10:00:00Z' + count: 1 '400': - description: Invalid or expired token, or no pending email change + description: Invalid query content: application/json: schema: @@ -7485,181 +7873,156 @@ paths: schema: $ref: '#/components/schemas/Error' '403': - description: | - The pending email domain is no longer in `allowed_email_domains`. - Re-checked here because the allowlist can narrow between the request - and the confirmation. + description: Access denied content: application/json: schema: $ref: '#/components/schemas/Error' - '409': - description: Email is now in use by another user + '404': + description: Database or branch not found content: application/json: schema: $ref: '#/components/schemas/Error' - /auth/user/cancel-email-change: - delete: + '429': + $ref: '#/components/responses/DatabaseQueryCapExceeded' + '503': + $ref: '#/components/responses/DatabaseBranchQueryUnavailable' + /databases/{databaseName}/branches/{branchName}/query/insert: + post: tags: - - Authentication - summary: Cancel pending email change - operationId: authCancelEmailChange + - Database Queries + summary: Insert data into database (REST API) + description: | + Insert new rows into your database using REST API. + + **Authentication:** Requires auth user access token + + **Auto-set user_id:** If your table has a trigger using `auth.uid()`, + user_id will be automatically set to the authenticated user + + **Security:** Row-Level Security policies are enforced + + **Branch-targeted.** Runs against the named branch instead of the parent + database, using the branch's own credentials. The branch must be `active` + and unexpired. Nothing about this request can reach the parent's data. + operationId: queryDatabaseBranchInsert security: - AuthUserAccessToken: [] + parameters: + - $ref: '#/components/parameters/DatabaseName' + - $ref: '#/components/parameters/BranchName' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/DatabaseInsertRequest' responses: '200': - description: Email change cancelled + description: Insert successful + headers: + X-Volcano-Proxy-Ms: + $ref: '#/components/headers/DatabaseQueryProxyMs' + X-Volcano-Proxy-Handler-Ms: + $ref: '#/components/headers/DatabaseQueryProxyHandlerMs' + X-Volcano-Compute-Ms: + $ref: '#/components/headers/DatabaseQueryComputeMs' content: application/json: schema: - type: object - properties: - message: - type: string + $ref: '#/components/schemas/DatabaseQueryResult' + example: + data: + - id: uuid-123 + title: My New Post + content: This is the content + status: draft + user_id: user-uuid + created_at: '2026-01-13T10:00:00Z' + count: 1 + '400': + description: Invalid request + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '401': description: Not authenticated content: application/json: schema: $ref: '#/components/schemas/Error' - /auth/user/sessions: - get: + '403': + description: Access denied + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '404': + description: Database or branch not found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '429': + $ref: '#/components/responses/DatabaseQueryCapExceeded' + '503': + $ref: '#/components/responses/DatabaseBranchQueryUnavailable' + /databases/{databaseName}/branches/{branchName}/query/update: + post: tags: - - Authentication - summary: Get current user's sessions + - Database Queries + summary: Update data in database (REST API) description: | - Returns paginated sessions for the currently authenticated user. - Each session includes device info, IP addresses, and activity timestamps. - The current session is marked with `is_current: true`. + Update existing rows in your database using REST API. - **Ordering and pagination.** Without `sort`, results are ordered by most - recent activity and paged with `page`/`limit`, returning the - `sessions`/`total`/`page`/`limit`/`total_pages` body below. This is the - legacy default and is preserved for existing clients. + **Security:** Row-Level Security ensures you can only update data you have access to - Send `sort=created_at` to opt into the standard list contract: results are - ordered by session start (newest first) and may be paged either with - `page`/`limit` or by cursor with `cursor`/`ending_before` plus a bounded - `offset` past the cursor anchor. Cursor responses use the shared - `data` envelope with `next_cursor`/`prev_cursor`. + **Safety:** Requires at least one filter to prevent accidental mass updates. A + request with no `filters` is rejected with `400` (mirrors delete). This matters + for service-key queries, which run with full access and bypass RLS. - Unlike other list endpoints, sending `limit` without `page` does **not** - select cursor mode here; `sort=created_at` is the only opt-in. Cursor - pagination is rejected with 400 for the activity order, because - `last_activity_at` changes whenever a session refreshes its token: a row - that crosses the cursor anchor between two requests would be skipped and - never shown. The `status=expired` filter is also offset-only because a - session can expire above the cursor anchor during a walk. Sending that - filter in cursor mode, `page` with `cursor` or `ending_before`, or both - cursor directions returns 400. - operationId: authGetMySessions + **Note:** If RLS blocks the update, an empty result is returned (not an error) + + **Branch-targeted.** Runs against the named branch instead of the parent + database, using the branch's own credentials. The branch must be `active` + and unexpired. Nothing about this request can reach the parent's data. + operationId: queryDatabaseBranchUpdate security: - AuthUserAccessToken: [] parameters: - - name: page - in: query - description: Page number (1-indexed) - schema: - type: integer - minimum: 1 - default: 1 - - name: limit - in: query - description: Number of sessions per page (max 100) - schema: - type: integer - minimum: 1 - maximum: 100 - default: 20 - - name: sort - in: query - description: | - Sort key. `last_activity` (default) orders by most recent activity and - supports offset pagination only. `created_at` orders by session start - and supports both offset and cursor pagination. - schema: - type: string - enum: - - last_activity - - created_at - default: last_activity - - name: status - in: query - description: | - Filter by whether the session can still be refreshed. Omit for every - stored session, including expired ones. `expired` is not supported - with cursor pagination. - schema: - type: string - enum: - - active - - expired - - name: cursor - in: query - description: | - Opaque keyset cursor from a previous response's `next_cursor`. Requires - `sort=created_at`; mutually exclusive with `page` and `ending_before`. - schema: - type: string - - name: ending_before - in: query - description: | - Opaque keyset cursor from a previous response's `prev_cursor`, paging - backward. Requires `sort=created_at`; mutually exclusive with `page` - and `cursor`. - schema: - type: string - - name: offset - in: query - description: | - Bounded number of rows to skip past the cursor anchor (the hybrid - jump, maximum 100000). Ignored unless `cursor` or `ending_before` is - supplied. - schema: - type: integer - minimum: 0 - maximum: 100000 + - $ref: '#/components/parameters/DatabaseName' + - $ref: '#/components/parameters/BranchName' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/DatabaseUpdateRequest' responses: '200': - description: Paginated list of user sessions + description: Update successful + headers: + X-Volcano-Proxy-Ms: + $ref: '#/components/headers/DatabaseQueryProxyMs' + X-Volcano-Proxy-Handler-Ms: + $ref: '#/components/headers/DatabaseQueryProxyHandlerMs' + X-Volcano-Compute-Ms: + $ref: '#/components/headers/DatabaseQueryComputeMs' content: application/json: schema: - type: object - properties: - sessions: - type: array - items: - $ref: '#/components/schemas/AuthSession' - total: - type: integer - description: Total number of sessions - page: - type: integer - description: Current page number - limit: - type: integer - description: Number of sessions per page - total_pages: - type: integer - description: Total number of pages - data: - type: array - description: Sessions for this page (cursor pagination only) - items: - $ref: '#/components/schemas/AuthSession' - has_more: - type: boolean - description: Whether a further page exists (cursor pagination only) - next_cursor: - type: string - description: Opaque cursor for the next page (cursor pagination only) - prev_cursor: - type: string - description: Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`. + $ref: '#/components/schemas/DatabaseQueryResult' + example: + data: + - id: post-uuid + title: Updated Title + status: published + updated_at: '2026-01-13T10:05:00Z' + count: 1 '400': - description: Invalid or conflicting pagination parameters + description: Invalid request content: application/json: schema: @@ -7670,1014 +8033,2865 @@ paths: application/json: schema: $ref: '#/components/schemas/Error' - delete: - tags: - - Authentication - summary: Sign out from all other devices - description: | - Deletes all sessions except the current one. - Use this to log out from all other devices while keeping the current session active. - operationId: authDeleteAllMySessions - security: - - AuthUserAccessToken: [] - responses: - '204': - description: All other sessions deleted - '401': - description: Not authenticated + '403': + description: Access denied content: application/json: schema: $ref: '#/components/schemas/Error' - /auth/user/sessions/{sessionId}: - delete: + '404': + description: Database or branch not found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '429': + $ref: '#/components/responses/DatabaseQueryCapExceeded' + '503': + $ref: '#/components/responses/DatabaseBranchQueryUnavailable' + /databases/{databaseName}/branches/{branchName}/query/delete: + post: tags: - - Authentication - summary: Sign out from specific device + - Database Queries + summary: Delete data from database (REST API) description: | - Deletes a specific session, logging out that device. - You can get session IDs from the list sessions endpoint. - operationId: authDeleteMySession + Delete rows from your database using REST API. + + **Safety:** Requires at least one filter to prevent accidental mass deletions + + **Security:** Row-Level Security ensures you can only delete data you have access to + + **Note:** If RLS blocks the delete, an empty result is returned (not an error) + + **Branch-targeted.** Runs against the named branch instead of the parent + database, using the branch's own credentials. The branch must be `active` + and unexpired. Nothing about this request can reach the parent's data. + operationId: queryDatabaseBranchDelete security: - AuthUserAccessToken: [] parameters: - - name: sessionId - in: path - required: true - description: The session ID to delete - schema: - type: string - format: uuid + - $ref: '#/components/parameters/DatabaseName' + - $ref: '#/components/parameters/BranchName' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/DatabaseDeleteRequest' responses: - '204': - description: Session deleted + '200': + description: Delete successful + headers: + X-Volcano-Proxy-Ms: + $ref: '#/components/headers/DatabaseQueryProxyMs' + X-Volcano-Proxy-Handler-Ms: + $ref: '#/components/headers/DatabaseQueryProxyHandlerMs' + X-Volcano-Compute-Ms: + $ref: '#/components/headers/DatabaseQueryComputeMs' + content: + application/json: + schema: + $ref: '#/components/schemas/DatabaseQueryResult' + example: + data: + - id: post-uuid + title: Deleted Post + count: 1 + '400': + description: Invalid request or missing filters + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '401': description: Not authenticated content: application/json: schema: $ref: '#/components/schemas/Error' + '403': + description: Access denied + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '404': - description: Session not found + description: Database or branch not found content: application/json: schema: $ref: '#/components/schemas/Error' - /auth/user: + '429': + $ref: '#/components/responses/DatabaseQueryCapExceeded' + '503': + $ref: '#/components/responses/DatabaseBranchQueryUnavailable' + /databases/regions: get: tags: - - Authentication - summary: Get current user profile - description: Returns authenticated user's profile. Requires access token. - operationId: authGetUser + - Databases + summary: List platform-supported regions for database provisioning + operationId: listDatabaseRegions + description: | + Returns the regions enabled for database provisioning in this platform environment. + These are the same regions offered for function deployment, and the only values + the `region` field of a database accepts. + This is a public endpoint that doesn't require authentication. + responses: + '200': + description: List of platform-supported regions + content: + application/json: + schema: + type: array + items: + type: object + properties: + id: + type: string + example: aws-us-east-1 + description: Region identifier for API usage + name: + type: string + example: US East (N. Virginia) + description: Human-readable region location + /databases/postgres-versions: + get: + tags: + - Databases + summary: List available PostgreSQL versions + operationId: listPostgresVersions + description: | + Returns a list of supported PostgreSQL major versions for database provisioning. + This is a public endpoint that doesn't require authentication. + responses: + '200': + description: List of available PostgreSQL versions + content: + application/json: + schema: + type: array + items: + type: object + properties: + version: + type: string + example: '16' + description: PostgreSQL major version number + name: + type: string + example: PostgreSQL 16 + description: Human-readable version name + default: + type: boolean + description: Whether this is the default version (recommended) + deprecated: + type: boolean + description: Whether this version is deprecated (approaching EOL) + /functions/runtimes: + get: + tags: + - Functions + summary: List supported function runtimes + operationId: listFunctionRuntimes + security: [] + description: | + Returns the public function runtime catalog used by CLI clients to select supported runtimes, + language defaults, and local source packaging metadata for deployments. + This is a public endpoint that doesn't require authentication. + responses: + '200': + description: Supported function runtimes + content: + application/json: + schema: + $ref: '#/components/schemas/FunctionRuntimesResponse' + /functions/regions: + get: + tags: + - Functions + summary: List available regions for function deployment + operationId: listFunctionRegions + security: [] + description: | + Returns the configured regions where functions can be deployed, each annotated + with a human-readable label and country flag emoji for use in UI pickers. + This is a public endpoint that doesn't require authentication. + responses: + '200': + description: Available function deployment regions + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/FunctionRegion' + /projects/{id}/variables/{name}: + get: + tags: + - Variables + summary: Get variable by name + description: | + Returns a project-level environment variable used by deployed functions and frontends. + operationId: getVariable security: - - AuthUserAccessToken: [] + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - $ref: '#/components/parameters/VariableName' responses: '200': - description: User profile + description: Successful response content: application/json: schema: - type: object - properties: - user: - $ref: '#/components/schemas/AuthUser' - '401': - description: Not authenticated - access token missing or invalid + $ref: '#/components/schemas/Variable' + '404': + description: Variable not found content: application/json: schema: $ref: '#/components/schemas/Error' put: tags: - - Authentication - summary: Update user profile - description: Update password or metadata. Requires access token. - operationId: authUpdateUser + - Variables + summary: Update a variable + description: | + Updates a project-level environment variable and triggers asynchronous propagation + to deployed functions and frontends in the project's configured regions. + operationId: updateVariable security: - - AuthUserAccessToken: [] + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - $ref: '#/components/parameters/VariableName' requestBody: + required: true content: application/json: schema: - type: object - properties: - password: - type: string - description: | - Password validated after NFC normalization against the - policy returned by GET /auth/password-policy. - user_metadata: - type: object - additionalProperties: true - description: | - Metadata keys to merge into the current user metadata. - Omitted keys remain unchanged; set a key to null to remove it. - Merging is shallow; nested objects replace the stored value for that top-level key. + $ref: '#/components/schemas/UpdateVariableRequest' responses: '200': - description: Profile updated + description: Variable updated content: application/json: schema: - type: object - properties: - user: - $ref: '#/components/schemas/AuthUser' + $ref: '#/components/schemas/Variable' '400': - description: Bad request - invalid password or metadata format + description: Invalid or reserved variable name content: application/json: schema: $ref: '#/components/schemas/Error' - '401': - description: Not authenticated - access token missing or invalid + '404': + description: Variable not found content: application/json: schema: $ref: '#/components/schemas/Error' '503': - description: Compromised-password screening is temporarily unavailable + description: Private variable membership writes are disabled during rollout content: application/json: schema: $ref: '#/components/schemas/Error' - /auth/user/identities: - get: + delete: tags: - - Authentication - summary: List the current user's identities + - Variables + summary: Delete a variable description: | - Returns every real email identity the account owns. An account can own - multiple identities (for example a password identity plus one or more - OAuth identities on different emails). Anonymous accounts have no real - identity and return an empty list. - operationId: authListIdentities + Deletes a project-level environment variable and triggers asynchronous propagation + of the removal to deployed functions and frontends in the project's configured regions. + operationId: deleteVariable security: - - AuthUserAccessToken: [] + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - $ref: '#/components/parameters/VariableName' responses: - '200': - description: List of identities - content: - application/json: - schema: - $ref: '#/components/schemas/AuthIdentitiesResponse' - '401': - description: Not authenticated + '204': + description: Variable deleted + '404': + description: Variable not found content: application/json: schema: $ref: '#/components/schemas/Error' - /auth/user/identities/{identityId}: - delete: + /auth/password-policy: + get: tags: - Authentication - summary: Unlink an identity from the current user + summary: Get the effective password policy description: | - Removes a non-primary identity and its attached sign-in methods. Refused - when the identity is the account's primary, its only identity, or when - removing it would leave the account with no way to sign in. - operationId: authUnlinkIdentity + Returns the backend-enforced password bounds and compromised-password + screening status for the project identified by the anon key. A valid + anon key is required, but no route-specific auth permission is needed. + operationId: authGetPasswordPolicy security: - - AuthUserAccessToken: [] - parameters: - - name: identityId - in: path - required: true - description: The identity ID to unlink - schema: - type: string - format: uuid + - AnonKey: [] responses: - '204': - description: Identity unlinked - '400': - description: Identity cannot be unlinked (primary, last, or would remove last sign-in method), or the identity id is malformed + '200': + description: Effective password policy content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: '#/components/schemas/AuthPasswordPolicy' '401': - description: Not authenticated + description: Invalid, missing, or revoked anon key content: application/json: schema: $ref: '#/components/schemas/Error' '404': - description: Identity not found + description: Project or auth configuration not found content: application/json: schema: $ref: '#/components/schemas/Error' - /auth/user/methods: - get: + /auth/signup: + post: tags: - Authentication - summary: List the current user's sign-in methods + summary: Sign up a new auth user description: | - Returns a flat list of every sign-in method the account owns (password, - each OAuth provider, and any active anonymous method), with the primary - method flagged. Password stubs and converted anonymous methods are excluded. - operationId: authListMethods + Create a new end-user account. The project is determined from the anon key. + Requires project-specific anon key in Authorization header. + + **Session-less**: signup never issues a session. On success it returns a + uniform acknowledgement (`AuthSignupResponse`) with no tokens; the client + obtains a session with a subsequent `POST /auth/signin`. If email confirmation + is enabled for the project, a confirmation email is sent and + `confirmation_required` is `true`. + + **Anti-enumeration**: a signup for an already-registered email returns the + exact same `201` response as a fresh signup — it never returns `409` — so the + response cannot be used to discover which emails are registered. + operationId: authSignup security: - - AuthUserAccessToken: [] + - AnonKey: [] + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - email + - password + properties: + email: + type: string + format: email + password: + type: string + description: | + Password validated after NFC normalization against the + policy returned by GET /auth/password-policy. + user_metadata: + type: object + additionalProperties: true responses: - '200': - description: List of sign-in methods + '201': + description: | + Signup acknowledged (session-less). Returned identically for a new + account and for an already-registered email (anti-enumeration). content: application/json: schema: - $ref: '#/components/schemas/AuthMethodsResponse' + $ref: '#/components/schemas/AuthSignupResponse' + '400': + description: Invalid input (bad email/password format) '401': - description: Not authenticated + description: | + Unauthorized - Invalid, tampered, revoked, or wrong-project anon key + '403': + description: | + Forbidden - Signups disabled, anon key lacks signup permission, or the + email domain is not in `allowed_email_domains`. The internal + `anonymous.volcano.internal` domain is reserved for anonymous + accounts and is refused whatever the project allows. + '429': + description: Rate limit exceeded + '503': + description: Compromised-password screening is temporarily unavailable content: application/json: schema: $ref: '#/components/schemas/Error' - /auth/user/methods/{methodId}/promote: + /auth/signin: post: tags: - Authentication - summary: Set a method as the account's primary + summary: Sign in an auth user description: | - Promotes the given method to the account's primary sign-in method. The - account's canonical email is re-derived from the promoted method's identity. - Refused for password stubs and converted anonymous methods, and for an - identity whose domain is outside the project's `allowed_email_domains`. - operationId: authPromoteMethod + Authenticate with email and password. Requires an anon key. + + Set `session_mode` to `cookie` to request HttpOnly refresh-token + storage. Cookie mode is honored only for an exact, credentialed CORS + origin on the same schemeful site as this API. Otherwise the response + retains the refresh token in its body. A frontend on its default + Volcano URL is cross-site with this API and so always gets the body + token. + operationId: authSignin security: - - AuthUserAccessToken: [] - parameters: - - name: methodId - in: path - required: true - description: The method ID to promote - schema: - type: string - format: uuid + - AnonKey: [] + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - email + - password + properties: + email: + type: string + password: + type: string + session_mode: + type: string + enum: + - cookie responses: '200': - description: The promoted method + description: Signin successful content: application/json: schema: - $ref: '#/components/schemas/AuthMethodSummary' + $ref: '#/components/schemas/AuthTokenResponse' '400': - description: This method cannot be set as primary (password stub, converted anonymous method, or unverified email), or the method id is malformed + description: Invalid input (missing email/password) + '401': + description: | + Unauthorized - Invalid credentials, invalid/tampered/revoked anon key, + or account banned/deleted + '403': + description: | + Forbidden - Anon key lacks signin permission, or the email domain is + not in `allowed_email_domains` while `allowed_email_domains_mode` is + `signup_and_signin`. The domain is taken from the account's canonical + email (its primary identity), which is not necessarily the address in + the request. + '429': + description: Rate limit exceeded + /auth/refresh: + post: + tags: + - Authentication + summary: Refresh access token + description: | + Get a new access token using a refresh token. Requires an anon key. + + Send `refresh_token` in the body for the default flow. An eligible + cookie-mode browser request may instead send `session_mode: cookie` + with an empty token or omit the request body; the API reads and resets + the project's HttpOnly cookie and omits `refresh_token` from the + response. + operationId: authRefresh + security: + - AnonKey: [] + requestBody: + required: false + content: + application/json: + schema: + type: object + properties: + refresh_token: + type: string + session_mode: + type: string + enum: + - cookie + responses: + '200': + description: Token refreshed content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: '#/components/schemas/AuthTokenResponse' '401': - description: Not authenticated + description: Invalid or expired refresh token content: application/json: schema: $ref: '#/components/schemas/Error' '403': - description: The promoted identity's email domain is not in the project's allowed_email_domains + description: | + The account's email domain is not in `allowed_email_domains` while + `allowed_email_domains_mode` is `signup_and_signin`, so the session + cannot be extended content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Method not found + '429': + description: Rate limit exceeded content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/auth/insights: - get: + /auth/logout: + post: tags: - - Auth Admin - summary: Get auth user insights + - Authentication + summary: Logout (revoke refresh token) description: | - Returns current auth-user totals, rolling 30-day active users, and - zero-filled signup and successful sign-in counts for an inclusive UTC - date range. Weeks start on Monday. Sign-in counts and active-user - activity begin when collection is deployed. Historical signup counts - are backfilled from users present at deployment. Token refreshes affect - active users but not the sign-in series. - operationId: getAuthInsights + Invalidate a refresh token. Requires an anon key. + + Send `refresh_token` for the default flow. An eligible cookie-mode + browser request may instead send `session_mode: cookie` with an empty + token; logout remains idempotent when the cookie is missing or expired. + operationId: authLogout security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - - name: from - in: query - description: Inclusive UTC start date. Defaults to 29 days before `to`. - schema: - type: string - format: date - - name: to - in: query - description: Inclusive UTC end date. Defaults to today. - schema: - type: string - format: date - - name: interval - in: query + - AnonKey: [] + requestBody: + required: false + content: + application/json: + schema: + type: object + properties: + refresh_token: + type: string + session_mode: + type: string + enum: + - cookie + responses: + '204': + description: Logged out successfully + /auth/forgot-password: + post: + tags: + - Authentication + summary: Request password reset + description: | + Generates recovery token and stores it (email sending pending). + Returns generic message to prevent email enumeration. + Project is identified via the anon key. + operationId: authForgotPassword + security: + - AnonKey: [] + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - email + properties: + email: + type: string + format: email + responses: + '200': + description: Generic success message (doesn't reveal if email exists) + content: + application/json: + schema: + type: object + properties: + message: + type: string + example: If the email exists, a password reset link has been sent + '403': + description: Password reset is disabled for this project + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '429': + description: Rate limit exceeded (10 requests per hour per IP) + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /auth/reset-password: + post: + tags: + - Authentication + summary: Reset password with recovery token + description: | + Reset password using recovery token from forgot-password. + Revokes all existing sessions for security. + operationId: authResetPassword + security: + - AnonKey: [] + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - token + - new_password + properties: + token: + type: string + description: Recovery token from forgot-password + new_password: + type: string + description: | + Password validated after NFC normalization against the + policy returned by GET /auth/password-policy. + responses: + '200': + description: Password reset successful + content: + application/json: + schema: + type: object + properties: + message: + type: string + '400': + description: Password doesn't meet requirements + '401': + description: Invalid or expired token + '503': + description: Compromised-password screening is temporarily unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /auth/confirm: + post: + tags: + - Authentication + summary: Confirm email address + description: | + Confirm email address using token sent via email. + Required if require_email_confirmation is enabled. + operationId: authConfirmEmail + security: + - AnonKey: [] + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - token + properties: + token: + type: string + description: Confirmation token from email + responses: + '200': + description: Email confirmed or already confirmed + content: + application/json: + schema: + type: object + properties: + message: + type: string + enum: + - Email confirmed successfully + - Email already confirmed + examples: + confirmed: + summary: Fresh confirmation + value: + message: Email confirmed successfully + alreadyConfirmed: + summary: Token belongs to already-confirmed user + value: + message: Email already confirmed + '400': + description: Missing confirmation token in request body + '401': + description: Invalid or expired token + /auth/resend-confirmation: + post: + tags: + - Authentication + summary: Resend confirmation email + description: | + Resend email confirmation link. + Returns generic message to prevent email enumeration. + No email is sent when the account does not exist or is already confirmed. + If the account exists and is unconfirmed, a new token is generated and + any previous confirmation token is invalidated. + operationId: authResendConfirmation + security: + - AnonKey: [] + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - email + properties: + email: + type: string + format: email + responses: + '200': + description: Generic success message + content: + application/json: + schema: + type: object + properties: + message: + type: string + '429': + description: Rate limit exceeded + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /auth/signup-anonymous: + post: + tags: + - Authentication + summary: Create anonymous user + description: | + Create guest user without email/password. + + User metadata (like display_name) can be included and will appear in realtime presence events. + Requires enable_anonymous_signins to be true. + operationId: authSignupAnonymous + security: + - AnonKey: [] + requestBody: + description: Optional user metadata + content: + application/json: + schema: + type: object + properties: + user_metadata: + type: object + additionalProperties: true + description: Custom user metadata (e.g., display_name, avatar_url) + example: + display_name: Alice + avatar_url: https://example.com/alice.jpg + responses: + '201': + description: Anonymous user created + content: + application/json: + schema: + $ref: '#/components/schemas/AuthTokenResponse' + '403': + description: Anonymous signins disabled + /auth/user/convert-anonymous: + post: + tags: + - Authentication + summary: Convert anonymous user to authenticated + description: | + Add email and password to anonymous user. + Requires auth user access token. + If require_email_confirmation is enabled for the project, the converted + user remains unconfirmed until /auth/confirm succeeds. When email + sending is enabled, a confirmation email is sent during conversion. + operationId: authConvertAnonymous + security: + - AuthUserAccessToken: [] + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - email + - password + properties: + email: + type: string + format: email + password: + type: string + description: | + Password validated after NFC normalization against the + policy returned by GET /auth/password-policy. + user_metadata: + type: object + additionalProperties: true + responses: + '200': + description: User converted successfully + content: + application/json: + schema: + type: object + properties: + user: + $ref: '#/components/schemas/AuthUser' + '400': + description: Not an anonymous user + '403': + description: | + The chosen email domain is not in `allowed_email_domains` + '409': + description: Email already in use + '503': + description: Compromised-password screening is temporarily unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /auth/user/change-email: + post: + tags: + - Authentication + summary: Request email change + description: | + Request to change user's email address. + Sends confirmation token to new email address. + operationId: authRequestEmailChange + security: + - AuthUserAccessToken: [] + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - new_email + properties: + new_email: + type: string + format: email + responses: + '200': + description: Confirmation email sent + content: + application/json: + schema: + type: object + properties: + message: + type: string + new_email: + type: string + '400': + description: Invalid email format or same as current email + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '401': + description: Not authenticated + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '403': + description: | + The requested email domain is not in `allowed_email_domains` + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '409': + description: Email already in use + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '429': + description: Rate limit exceeded (10 requests per hour per IP) + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /auth/user/confirm-email-change: + post: + tags: + - Authentication + summary: Confirm email change + description: Confirm email change with token sent to new address + operationId: authConfirmEmailChange + security: + - AuthUserAccessToken: [] + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - email_change_token + properties: + email_change_token: + type: string + responses: + '200': + description: Email changed successfully + content: + application/json: + schema: + type: object + properties: + message: + type: string + user: + $ref: '#/components/schemas/AuthUser' + '400': + description: Invalid or expired token, or no pending email change + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '401': + description: Not authenticated + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '403': + description: | + The pending email domain is no longer in `allowed_email_domains`. + Re-checked here because the allowlist can narrow between the request + and the confirmation. + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '409': + description: Email is now in use by another user + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /auth/user/cancel-email-change: + delete: + tags: + - Authentication + summary: Cancel pending email change + operationId: authCancelEmailChange + security: + - AuthUserAccessToken: [] + responses: + '200': + description: Email change cancelled + content: + application/json: + schema: + type: object + properties: + message: + type: string + '401': + description: Not authenticated + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /auth/user/sessions: + get: + tags: + - Authentication + summary: Get current user's sessions + description: | + Returns paginated sessions for the currently authenticated user. + Each session includes device info, IP addresses, and activity timestamps. + The current session is marked with `is_current: true`. + + **Ordering and pagination.** Without `sort`, results are ordered by most + recent activity and paged with `page`/`limit`, returning the + `sessions`/`total`/`page`/`limit`/`total_pages` body below. This is the + legacy default and is preserved for existing clients. + + Send `sort=created_at` to opt into the standard list contract: results are + ordered by session start (newest first) and may be paged either with + `page`/`limit` or by cursor with `cursor`/`ending_before` plus a bounded + `offset` past the cursor anchor. Cursor responses use the shared + `data` envelope with `next_cursor`/`prev_cursor`. + + Unlike other list endpoints, sending `limit` without `page` does **not** + select cursor mode here; `sort=created_at` is the only opt-in. Cursor + pagination is rejected with 400 for the activity order, because + `last_activity_at` changes whenever a session refreshes its token: a row + that crosses the cursor anchor between two requests would be skipped and + never shown. The `status=expired` filter is also offset-only because a + session can expire above the cursor anchor during a walk. Sending that + filter in cursor mode, `page` with `cursor` or `ending_before`, or both + cursor directions returns 400. + operationId: authGetMySessions + security: + - AuthUserAccessToken: [] + parameters: + - name: page + in: query + description: Page number (1-indexed) + schema: + type: integer + minimum: 1 + default: 1 + - name: limit + in: query + description: Number of sessions per page (max 100) + schema: + type: integer + minimum: 1 + maximum: 100 + default: 20 + - name: sort + in: query + description: | + Sort key. `last_activity` (default) orders by most recent activity and + supports offset pagination only. `created_at` orders by session start + and supports both offset and cursor pagination. + schema: + type: string + enum: + - last_activity + - created_at + default: last_activity + - name: status + in: query + description: | + Filter by whether the session can still be refreshed. Omit for every + stored session, including expired ones. `expired` is not supported + with cursor pagination. + schema: + type: string + enum: + - active + - expired + - name: cursor + in: query + description: | + Opaque keyset cursor from a previous response's `next_cursor`. Requires + `sort=created_at`; mutually exclusive with `page` and `ending_before`. + schema: + type: string + - name: ending_before + in: query + description: | + Opaque keyset cursor from a previous response's `prev_cursor`, paging + backward. Requires `sort=created_at`; mutually exclusive with `page` + and `cursor`. + schema: + type: string + - name: offset + in: query + description: | + Bounded number of rows to skip past the cursor anchor (the hybrid + jump, maximum 100000). Ignored unless `cursor` or `ending_before` is + supplied. + schema: + type: integer + minimum: 0 + maximum: 100000 + responses: + '200': + description: Paginated list of user sessions + content: + application/json: + schema: + type: object + properties: + sessions: + type: array + items: + $ref: '#/components/schemas/AuthSession' + total: + type: integer + description: Total number of sessions + page: + type: integer + description: Current page number + limit: + type: integer + description: Number of sessions per page + total_pages: + type: integer + description: Total number of pages + data: + type: array + description: Sessions for this page (cursor pagination only) + items: + $ref: '#/components/schemas/AuthSession' + has_more: + type: boolean + description: Whether a further page exists (cursor pagination only) + next_cursor: + type: string + description: Opaque cursor for the next page (cursor pagination only) + prev_cursor: + type: string + description: Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`. + '400': + description: Invalid or conflicting pagination parameters + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '401': + description: Not authenticated + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + delete: + tags: + - Authentication + summary: Sign out from all other devices + description: | + Deletes all sessions except the current one. + Use this to log out from all other devices while keeping the current session active. + operationId: authDeleteAllMySessions + security: + - AuthUserAccessToken: [] + responses: + '204': + description: All other sessions deleted + '401': + description: Not authenticated + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /auth/user/sessions/{sessionId}: + delete: + tags: + - Authentication + summary: Sign out from specific device + description: | + Deletes a specific session, logging out that device. + You can get session IDs from the list sessions endpoint. + operationId: authDeleteMySession + security: + - AuthUserAccessToken: [] + parameters: + - name: sessionId + in: path + required: true + description: The session ID to delete + schema: + type: string + format: uuid + responses: + '204': + description: Session deleted + '401': + description: Not authenticated + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '404': + description: Session not found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /auth/user: + get: + tags: + - Authentication + summary: Get current user profile + description: Returns authenticated user's profile. Requires access token. + operationId: authGetUser + security: + - AuthUserAccessToken: [] + responses: + '200': + description: User profile + content: + application/json: + schema: + type: object + properties: + user: + $ref: '#/components/schemas/AuthUser' + '401': + description: Not authenticated - access token missing or invalid + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + put: + tags: + - Authentication + summary: Update user profile + description: Update password or metadata. Requires access token. + operationId: authUpdateUser + security: + - AuthUserAccessToken: [] + requestBody: + content: + application/json: + schema: + type: object + properties: + password: + type: string + description: | + Password validated after NFC normalization against the + policy returned by GET /auth/password-policy. + user_metadata: + type: object + additionalProperties: true + description: | + Metadata keys to merge into the current user metadata. + Omitted keys remain unchanged; set a key to null to remove it. + Merging is shallow; nested objects replace the stored value for that top-level key. + responses: + '200': + description: Profile updated + content: + application/json: + schema: + type: object + properties: + user: + $ref: '#/components/schemas/AuthUser' + '400': + description: Bad request - invalid password or metadata format + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '401': + description: Not authenticated - access token missing or invalid + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '503': + description: Compromised-password screening is temporarily unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /auth/user/identities: + get: + tags: + - Authentication + summary: List the current user's identities + description: | + Returns every real email identity the account owns. An account can own + multiple identities (for example a password identity plus one or more + OAuth identities on different emails). Anonymous accounts have no real + identity and return an empty list. + operationId: authListIdentities + security: + - AuthUserAccessToken: [] + responses: + '200': + description: List of identities + content: + application/json: + schema: + $ref: '#/components/schemas/AuthIdentitiesResponse' + '401': + description: Not authenticated + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /auth/user/identities/{identityId}: + delete: + tags: + - Authentication + summary: Unlink an identity from the current user + description: | + Removes a non-primary identity and its attached sign-in methods. Refused + when the identity is the account's primary, its only identity, or when + removing it would leave the account with no way to sign in. + operationId: authUnlinkIdentity + security: + - AuthUserAccessToken: [] + parameters: + - name: identityId + in: path + required: true + description: The identity ID to unlink + schema: + type: string + format: uuid + responses: + '204': + description: Identity unlinked + '400': + description: Identity cannot be unlinked (primary, last, or would remove last sign-in method), or the identity id is malformed + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '401': + description: Not authenticated + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '404': + description: Identity not found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /auth/user/methods: + get: + tags: + - Authentication + summary: List the current user's sign-in methods + description: | + Returns a flat list of every sign-in method the account owns (password, + each OAuth provider, and any active anonymous method), with the primary + method flagged. Password stubs and converted anonymous methods are excluded. + operationId: authListMethods + security: + - AuthUserAccessToken: [] + responses: + '200': + description: List of sign-in methods + content: + application/json: + schema: + $ref: '#/components/schemas/AuthMethodsResponse' + '401': + description: Not authenticated + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /auth/user/methods/{methodId}/promote: + post: + tags: + - Authentication + summary: Set a method as the account's primary + description: | + Promotes the given method to the account's primary sign-in method. The + account's canonical email is re-derived from the promoted method's identity. + Refused for password stubs and converted anonymous methods, and for an + identity whose domain is outside the project's `allowed_email_domains`. + operationId: authPromoteMethod + security: + - AuthUserAccessToken: [] + parameters: + - name: methodId + in: path + required: true + description: The method ID to promote + schema: + type: string + format: uuid + responses: + '200': + description: The promoted method + content: + application/json: + schema: + $ref: '#/components/schemas/AuthMethodSummary' + '400': + description: This method cannot be set as primary (password stub, converted anonymous method, or unverified email), or the method id is malformed + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '401': + description: Not authenticated + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '403': + description: The promoted identity's email domain is not in the project's allowed_email_domains + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '404': + description: Method not found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /projects/{id}/auth/insights: + get: + tags: + - Auth Admin + summary: Get auth user insights + description: | + Returns current auth-user totals, rolling 30-day active users, and + zero-filled signup and successful sign-in counts for an inclusive UTC + date range. Weeks start on Monday. Sign-in counts and active-user + activity begin when collection is deployed. Historical signup counts + are backfilled from users present at deployment. Token refreshes affect + active users but not the sign-in series. + operationId: getAuthInsights + security: + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - name: from + in: query + description: Inclusive UTC start date. Defaults to 29 days before `to`. + schema: + type: string + format: date + - name: to + in: query + description: Inclusive UTC end date. Defaults to today. + schema: + type: string + format: date + - name: interval + in: query description: Chart bucket size. Defaults to `day`. schema: - $ref: '#/components/schemas/AuthInsightsInterval' + $ref: '#/components/schemas/AuthInsightsInterval' + responses: + '200': + description: Auth insights retrieved + content: + application/json: + schema: + $ref: '#/components/schemas/AuthInsightsResponse' + example: + project_id: 4f165080-a931-4e03-b3bd-41c45c3f0058 + observed_at: '2026-07-20T18:00:00Z' + window: + from: '2026-06-21' + to: '2026-07-20' + interval: day + summary: + total_users: 1234 + active_users_30d: 418 + series: + - bucket_start: '2026-07-20' + signups: 12 + signins: 97 + is_partial: true + '400': + description: Invalid date range or interval + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '401': + description: Unauthorized - invalid or missing token + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '403': + description: Access denied + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '404': + description: Project not found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '500': + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /projects/{id}/auth/users: + get: + tags: + - Auth Admin + summary: List all auth users (admin) + description: List auth users in project. Requires platform token. + operationId: listAuthUsers + security: + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/Limit' + - $ref: '#/components/parameters/Cursor' + - $ref: '#/components/parameters/EndingBefore' + - $ref: '#/components/parameters/Offset' + - $ref: '#/components/parameters/Search' + - name: status + in: query + required: false + description: Filter by effective status. `banned` returns only currently-banned users; an expired temporary ban lists as `active`. + schema: + type: string + enum: + - active + - banned + responses: + '200': + description: Successful response + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedAuthUsers' + '400': + description: Invalid status or pagination parameters + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /projects/{id}/auth/users/{userId}: + get: + tags: + - Auth Admin + summary: Get specific auth user (admin) + operationId: getAuthUser + security: + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - name: userId + in: path + required: true + schema: + type: string + format: uuid + responses: + '200': + description: Auth user details + content: + application/json: + schema: + $ref: '#/components/schemas/AuthUser' + delete: + tags: + - Auth Admin + summary: Delete auth user (admin) + description: Soft-deletes user and revokes all sessions + operationId: deleteAuthUser + security: + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - name: userId + in: path + required: true + schema: + type: string + format: uuid + responses: + '204': + description: User deleted + /projects/{id}/auth/users/{userId}/sessions: + get: + tags: + - Auth Admin + summary: List user sessions + description: | + List paginated sessions for a specific auth user. + Returns session details including device info, IP address, and activity timestamps. + + Ordering and pagination match `GET /auth/user/sessions`: the default is + activity order with `page`/`limit` and the legacy `sessions` body, and + `sort=created_at` opts into the standard cursor/offset hybrid with the + shared `data` envelope. Cursor pagination is only available for + `sort=created_at`, because the activity timestamp changes under paging. + The `status=expired` filter is offset-only because sessions can expire + above a cursor anchor during a walk. + operationId: listUserSessions + security: + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - name: userId + in: path + required: true + schema: + type: string + format: uuid + - name: page + in: query + description: Page number (1-indexed) + schema: + type: integer + minimum: 1 + default: 1 + - name: limit + in: query + description: Number of sessions per page (max 100) + schema: + type: integer + minimum: 1 + maximum: 100 + default: 20 + - name: sort + in: query + description: | + Sort key. `last_activity` (default) orders by most recent activity and + supports offset pagination only. `created_at` orders by session start + and supports both offset and cursor pagination. + schema: + type: string + enum: + - last_activity + - created_at + default: last_activity + - name: status + in: query + description: | + Filter by whether the session can still be refreshed. Omit for every + stored session, including expired ones. `expired` is not supported + with cursor pagination. + schema: + type: string + enum: + - active + - expired + - name: cursor + in: query + description: | + Opaque keyset cursor from a previous response's `next_cursor`. Requires + `sort=created_at`; mutually exclusive with `page` and `ending_before`. + schema: + type: string + - name: ending_before + in: query + description: | + Opaque keyset cursor from a previous response's `prev_cursor`, paging + backward. Requires `sort=created_at`; mutually exclusive with `page` + and `cursor`. + schema: + type: string + - name: offset + in: query + description: | + Bounded number of rows to skip past the cursor anchor (the hybrid + jump, maximum 100000). Ignored unless `cursor` or `ending_before` is + supplied. + schema: + type: integer + minimum: 0 + maximum: 100000 + responses: + '200': + description: Paginated list of user sessions + content: + application/json: + schema: + type: object + properties: + sessions: + type: array + items: + $ref: '#/components/schemas/AuthSession' + total: + type: integer + description: Total number of sessions + page: + type: integer + description: Current page number + limit: + type: integer + description: Number of sessions per page + total_pages: + type: integer + description: Total number of pages + data: + type: array + description: Sessions for this page (cursor pagination only) + items: + $ref: '#/components/schemas/AuthSession' + has_more: + type: boolean + description: Whether a further page exists (cursor pagination only) + next_cursor: + type: string + description: Opaque cursor for the next page (cursor pagination only) + prev_cursor: + type: string + description: Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`. + '400': + description: Invalid or conflicting pagination parameters + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '404': + description: User not found + delete: + tags: + - Auth Admin + summary: Delete all user sessions + description: | + Revokes all sessions for a user, forcing them to re-authenticate on all devices. + Use this to log out a user from everywhere. + operationId: deleteAllUserSessions + security: + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - name: userId + in: path + required: true + schema: + type: string + format: uuid + responses: + '204': + description: All sessions deleted + '404': + description: User not found + /projects/{id}/auth/users/{userId}/sessions/{sessionId}: + delete: + tags: + - Auth Admin + summary: Delete specific session + description: | + Revokes a specific session for a user. + Use this to log out a user from a single device. + operationId: deleteUserSession + security: + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - name: userId + in: path + required: true + schema: + type: string + format: uuid + - name: sessionId + in: path + required: true + schema: + type: string + format: uuid + responses: + '204': + description: Session deleted + '404': + description: Session or user not found + /projects/{id}/auth/users/{userId}/ban: + post: + tags: + - Auth Admin + summary: Ban a user + description: | + Bans a user temporarily or permanently. Banned users cannot sign in + and all their active sessions are immediately revoked. + + - Omit `banned_until` for a permanent ban + - Provide `banned_until` ISO timestamp for a temporary ban + operationId: banAuthUser + security: + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - name: userId + in: path + required: true + schema: + type: string + format: uuid + requestBody: + content: + application/json: + schema: + type: object + properties: + banned_until: + type: string + format: date-time + description: When the ban expires (omit for permanent ban) + example: '2026-12-31T23:59:59Z' responses: '200': - description: Auth insights retrieved + description: User banned successfully content: application/json: schema: - $ref: '#/components/schemas/AuthInsightsResponse' - example: - project_id: 4f165080-a931-4e03-b3bd-41c45c3f0058 - observed_at: '2026-07-20T18:00:00Z' - window: - from: '2026-06-21' - to: '2026-07-20' - interval: day - summary: - total_users: 1234 - active_users_30d: 418 - series: - - bucket_start: '2026-07-20' - signups: 12 - signins: 97 - is_partial: true - '400': - description: Invalid date range or interval + $ref: '#/components/schemas/BanUserResponse' + '404': + description: User not found content: application/json: schema: $ref: '#/components/schemas/Error' - '401': - description: Unauthorized - invalid or missing token + /projects/{id}/auth/users/{userId}/unban: + post: + tags: + - Auth Admin + summary: Unban a user + description: | + Removes a ban from a user, restoring their ability to sign in. + The user's status is set back to 'active'. + operationId: unbanAuthUser + security: + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - name: userId + in: path + required: true + schema: + type: string + format: uuid + responses: + '200': + description: User unbanned successfully + content: + application/json: + schema: + $ref: '#/components/schemas/UnbanUserResponse' + '404': + description: User not found content: application/json: schema: $ref: '#/components/schemas/Error' - '403': - description: Access denied + /projects/{id}/email-templates: + get: + tags: + - Auth Configuration + summary: List email templates + description: Returns all custom email templates for this project. + operationId: listEmailTemplates + security: + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + responses: + '200': + description: Email templates list + content: + application/json: + schema: + type: object + properties: + data: + type: array + items: + $ref: '#/components/schemas/EmailTemplate' + post: + tags: + - Auth Configuration + summary: Create email template + description: | + Creates a custom email template for the project. Custom email templates + are a PRO-plan feature: requests from a FREE-plan project owner are + rejected with 403, and FREE projects always send the built-in default + templates regardless of any previously saved custom rows. + Every project is created with one template per type, so customizing one + is usually a PUT; creating a type the project already has returns 409. + Valid template types: welcome, confirmation, password_reset, password_changed + operationId: createEmailTemplate + security: + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/CreateEmailTemplateRequest' + responses: + '201': + description: Template created + content: + application/json: + schema: + $ref: '#/components/schemas/EmailTemplate' + '400': + description: Invalid template type content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Project not found + '403': + description: Custom email templates require the PRO plan content: application/json: schema: $ref: '#/components/schemas/Error' - '500': - description: Internal server error + '409': + description: The project already has a template of this type content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/auth/users: + /projects/{id}/email-templates/{type}: get: tags: - - Auth Admin - summary: List all auth users (admin) - description: List auth users in project. Requires platform token. - operationId: listAuthUsers + - Auth Configuration + summary: Get email template + operationId: getEmailTemplate + security: + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - name: type + in: path + required: true + schema: + type: string + enum: + - welcome + - confirmation + - password_reset + - password_changed + responses: + '200': + description: Email template + content: + application/json: + schema: + $ref: '#/components/schemas/EmailTemplate' + '404': + description: Template not found + put: + tags: + - Auth Configuration + summary: Update email template + description: | + Updates a custom email template. Custom email templates are a PRO-plan + feature: requests from a FREE-plan project owner are rejected with 403 + (including after a PRO→FREE downgrade), so a FREE project cannot modify + templates and always sends the built-in defaults. + operationId: updateEmailTemplate + security: + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - name: type + in: path + required: true + schema: + type: string + enum: + - welcome + - confirmation + - password_reset + - password_changed + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateEmailTemplateRequest' + responses: + '200': + description: Template updated + content: + application/json: + schema: + $ref: '#/components/schemas/EmailTemplate' + '403': + description: Custom email templates require the PRO plan + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '404': + description: Template not found + delete: + tags: + - Auth Configuration + summary: Delete email template + description: | + Deletes a custom template, reverting to the default. Custom email + templates are a PRO-plan feature: requests from a FREE-plan project owner + are rejected with 403. + operationId: deleteEmailTemplate security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/Page' - - $ref: '#/components/parameters/Limit' - - $ref: '#/components/parameters/Cursor' - - $ref: '#/components/parameters/EndingBefore' - - $ref: '#/components/parameters/Offset' - - $ref: '#/components/parameters/Search' - - name: status - in: query - required: false - description: Filter by effective status. `banned` returns only currently-banned users; an expired temporary ban lists as `active`. + - name: type + in: path + required: true schema: type: string enum: - - active - - banned + - welcome + - confirmation + - password_reset + - password_changed responses: - '200': - description: Successful response + '204': + description: Template deleted + '403': + description: Custom email templates require the PRO plan content: application/json: schema: - $ref: '#/components/schemas/PaginatedAuthUsers' - '400': - description: Invalid status or pagination parameters + $ref: '#/components/schemas/Error' + '404': + description: Template not found + /email-templates/defaults: + get: + tags: + - Auth Configuration + summary: Get default email templates + description: Returns the default email templates used when no custom template is configured. + operationId: getDefaultEmailTemplates + responses: + '200': + description: Default templates content: application/json: schema: - $ref: '#/components/schemas/Error' - /projects/{id}/auth/users/{userId}: + type: object + properties: + data: + type: array + items: + $ref: '#/components/schemas/EmailTemplate' + /email-templates/defaults/{type}: get: tags: - - Auth Admin - summary: Get specific auth user (admin) - operationId: getAuthUser - security: - - UserToken: [] + - Auth Configuration + summary: Get default email template by type + operationId: getDefaultEmailTemplate parameters: - - $ref: '#/components/parameters/ProjectId' - - name: userId + - name: type in: path required: true schema: type: string - format: uuid + enum: + - welcome + - confirmation + - password_reset + - password_changed responses: '200': - description: Auth user details + description: Default template content: application/json: schema: - $ref: '#/components/schemas/AuthUser' - delete: + $ref: '#/components/schemas/EmailTemplate' + '404': + description: Template type not found + /projects/{id}/auth/config: + get: tags: - - Auth Admin - summary: Delete auth user (admin) - description: Soft-deletes user and revokes all sessions - operationId: deleteAuthUser + - Auth Configuration + summary: Get auth configuration + operationId: getAuthConfig security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - name: userId - in: path - required: true - schema: - type: string - format: uuid responses: - '204': - description: User deleted - /projects/{id}/auth/users/{userId}/sessions: - get: + '200': + description: Auth configuration + content: + application/json: + schema: + $ref: '#/components/schemas/AuthConfig' + put: tags: - - Auth Admin - summary: List user sessions + - Auth Configuration + summary: Update auth configuration description: | - List paginated sessions for a specific auth user. - Returns session details including device info, IP address, and activity timestamps. - - Ordering and pagination match `GET /auth/user/sessions`: the default is - activity order with `page`/`limit` and the legacy `sessions` body, and - `sort=created_at` opts into the standard cursor/offset hybrid with the - shared `data` envelope. Cursor pagination is only available for - `sort=created_at`, because the activity timestamp changes under paging. - The `status=expired` filter is offset-only because sessions can expire - above a cursor anchor during a walk. - operationId: listUserSessions + Updates the project's auth configuration. Only the fields present in + the body are changed. + operationId: updateAuthConfig security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - name: userId - in: path - required: true - schema: - type: string - format: uuid - - name: page - in: query - description: Page number (1-indexed) - schema: - type: integer - minimum: 1 - default: 1 - - name: limit - in: query - description: Number of sessions per page (max 100) - schema: - type: integer - minimum: 1 - maximum: 100 - default: 20 - - name: sort - in: query - description: | - Sort key. `last_activity` (default) orders by most recent activity and - supports offset pagination only. `created_at` orders by session start - and supports both offset and cursor pagination. - schema: - type: string - enum: - - last_activity - - created_at - default: last_activity - - name: status - in: query - description: | - Filter by whether the session can still be refreshed. Omit for every - stored session, including expired ones. `expired` is not supported - with cursor pagination. - schema: - type: string - enum: - - active - - expired - - name: cursor - in: query - description: | - Opaque keyset cursor from a previous response's `next_cursor`. Requires - `sort=created_at`; mutually exclusive with `page` and `ending_before`. - schema: - type: string - - name: ending_before - in: query - description: | - Opaque keyset cursor from a previous response's `prev_cursor`, paging - backward. Requires `sort=created_at`; mutually exclusive with `page` - and `cursor`. - schema: - type: string - - name: offset - in: query - description: | - Bounded number of rows to skip past the cursor anchor (the hybrid - jump, maximum 100000). Ignored unless `cursor` or `ending_before` is - supplied. - schema: - type: integer - minimum: 0 - maximum: 100000 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateAuthConfigRequest' responses: '200': - description: Paginated list of user sessions + description: Configuration updated content: application/json: schema: - type: object - properties: - sessions: - type: array - items: - $ref: '#/components/schemas/AuthSession' - total: - type: integer - description: Total number of sessions - page: - type: integer - description: Current page number - limit: - type: integer - description: Number of sessions per page - total_pages: - type: integer - description: Total number of pages - data: - type: array - description: Sessions for this page (cursor pagination only) - items: - $ref: '#/components/schemas/AuthSession' - has_more: - type: boolean - description: Whether a further page exists (cursor pagination only) - next_cursor: - type: string - description: Opaque cursor for the next page (cursor pagination only) - prev_cursor: - type: string - description: Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`. - '400': - description: Invalid or conflicting pagination parameters + $ref: '#/components/schemas/AuthConfig' + '403': + description: | + The update would turn on, widen, or otherwise edit the email domain + allowlist (`allowed_email_domains`, `allowed_email_domains_mode`) + for a project that is not on the PRO plan. A FREE project keeps + whatever allowlist it already has — parked, enforcing nothing until + it upgrades — and may still remove it, so a downgrade never leaves a + project locked out of its own signups. + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /projects/{id}/auth/config/test-email: + post: + tags: + - Auth Configuration + summary: Send a test email using the project's saved SMTP config + description: | + Sends a diagnostic email to `to_email` using the project's + persisted `auth_config` SMTP credentials. If `html_body` or + `text_body` is supplied, the override path is taken: those + values (plus optional `subject`) are rendered through + html/text templates against the project's `Data` and + used as the body — used by the template editor's "Send Test" + affordance to preview an unsaved template. With both bodies + omitted, a hardcoded diagnostic message is sent and any + `subject` field is ignored. Sending `subject` alone (no + bodies) is rejected with 400 to avoid a silently-dropped + subject or a blank message. Also rejects with 400 if + `email_enabled=false` or `smtp_host` is empty. + operationId: testEmailConfig + security: + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/TestEmailRequest' + responses: + '200': + description: Test email sent content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: '#/components/schemas/TestEmailResponse' + '400': + description: Invalid request or email delivery not configured + '401': + description: Unauthorized + '403': + description: Forbidden '404': - description: User not found - delete: + description: Project not found + '502': + description: Template render failure or SMTP delivery failed + /projects/{id}/auth/hosted-pages/{pageType}: + get: tags: - - Auth Admin - summary: Delete all user sessions + - Auth Configuration + summary: Get hosted auth page description: | - Revokes all sessions for a user, forcing them to re-authenticate on all devices. - Use this to log out a user from everywhere. - operationId: deleteAllUserSessions + Returns the saved HTML/CSS for the page type, or `page: null` when the + project has not customized it yet. Always returns `defaults` (the theme + shell to seed an editor with, which is valid input to the update endpoint) + and `runtime` (the script the rendered page runs, plus a preview harness). + operationId: getAuthHostedPage security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - name: userId + - name: pageType in: path required: true schema: - type: string - format: uuid + $ref: '#/components/schemas/HostedAuthPageType' responses: - '204': - description: All sessions deleted - '404': - description: User not found - /projects/{id}/auth/users/{userId}/sessions/{sessionId}: - delete: + '200': + description: Hosted page loaded + content: + application/json: + schema: + $ref: '#/components/schemas/AuthHostedPageResponse' + put: tags: - - Auth Admin - summary: Delete specific session + - Auth Configuration + summary: Update hosted auth page description: | - Revokes a specific session for a user. - Use this to log out a user from a single device. - operationId: deleteUserSession + Saves the current HTML/CSS for this page type. + Security validation rejects script tags, javascript: URLs, inline event handlers, iframe/object/embed/meta/link tags in HTML, + and closing style/head tags in CSS. + operationId: updateAuthHostedPage security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - name: userId - in: path - required: true - schema: - type: string - format: uuid - - name: sessionId + - name: pageType in: path required: true schema: - type: string - format: uuid + $ref: '#/components/schemas/HostedAuthPageType' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateAuthHostedPageRequest' responses: - '204': - description: Session deleted + '200': + description: Hosted page updated + content: + application/json: + schema: + $ref: '#/components/schemas/AuthHostedPageResponse' + '400': + description: Invalid input or unsafe markup + '401': + description: Unauthorized + '403': + description: Forbidden '404': - description: Session or user not found - /projects/{id}/auth/users/{userId}/ban: - post: + description: Project not found + /projects/{id}/auth/pages/appearance: + get: tags: - - Auth Admin - summary: Ban a user - description: | - Bans a user temporarily or permanently. Banned users cannot sign in - and all their active sessions are immediately revoked. - - - Omit `banned_until` for a permanent ban - - Provide `banned_until` ISO timestamp for a temporary ban - operationId: banAuthUser + - Auth Configuration + summary: Get managed auth page appearance + operationId: getAuthPageAppearance security: - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + responses: + '200': + description: Saved appearance and effective plan state + content: + application/json: + schema: + $ref: '#/components/schemas/AuthPageAppearanceResponse' + '401': + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '403': + description: Access denied + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '404': + description: Project not found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '500': + description: Appearance could not be read + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /projects/{id}/auth/pages/theme: + put: + tags: + - Auth Configuration + summary: Save the managed auth page theme + operationId: updateAuthPageTheme + security: + - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - name: userId - in: path - required: true - schema: - type: string - format: uuid requestBody: + required: true content: application/json: schema: - type: object - properties: - banned_until: - type: string - format: date-time - description: When the ban expires (omit for permanent ban) - example: '2026-12-31T23:59:59Z' + $ref: '#/components/schemas/UpdateAuthPageThemeRequest' responses: '200': - description: User banned successfully + description: Theme saved content: application/json: schema: - $ref: '#/components/schemas/BanUserResponse' + $ref: '#/components/schemas/UpdateAuthPageThemeRequest' + '400': + description: Invalid or unreadable theme + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '401': + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '403': + description: Plan does not permit customisation + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '404': - description: User not found + description: Project not found content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/auth/users/{userId}/unban: - post: + '500': + description: Theme could not be saved + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + delete: tags: - - Auth Admin - summary: Unban a user - description: | - Removes a ban from a user, restoring their ability to sign in. - The user's status is set back to 'active'. - operationId: unbanAuthUser + - Auth Configuration + summary: Clear the managed auth page theme + operationId: deleteAuthPageTheme security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - name: userId - in: path - required: true - schema: - type: string - format: uuid + responses: + '204': + description: Theme cleared + '401': + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '403': + description: Plan does not permit customisation + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '404': + description: Project not found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '500': + description: Theme could not be cleared + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /projects/{id}/auth/pages/{pageType}/layout: + parameters: + - $ref: '#/components/parameters/ProjectId' + - name: pageType + in: path + required: true + schema: + $ref: '#/components/schemas/HostedAuthPageType' + put: + tags: + - Auth Configuration + summary: Save one managed auth page layout + operationId: updateAuthPageLayout + security: + - UserToken: [] + - ProjectAccessToken: [] + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateAuthPageLayoutRequest' responses: '200': - description: User unbanned successfully + description: Layout saved content: application/json: schema: - $ref: '#/components/schemas/UnbanUserResponse' + $ref: '#/components/schemas/UpdateAuthPageLayoutRequest' + '400': + description: Invalid page type or layout + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '401': + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '403': + description: Plan does not permit customisation + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '404': - description: User not found + description: Project not found content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/email-templates: - get: - tags: - - Auth Configuration - summary: List email templates - description: Returns all custom email templates for this project. - operationId: listEmailTemplates - security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - responses: - '200': - description: Email templates list + '500': + description: Layout could not be saved content: application/json: schema: - type: object - properties: - data: - type: array - items: - $ref: '#/components/schemas/EmailTemplate' - post: + $ref: '#/components/schemas/Error' + delete: tags: - Auth Configuration - summary: Create email template - description: | - Creates a custom email template for the project. Custom email templates - are a PRO-plan feature: requests from a FREE-plan project owner are - rejected with 403, and FREE projects always send the built-in default - templates regardless of any previously saved custom rows. - Every project is created with one template per type, so customizing one - is usually a PUT; creating a type the project already has returns 409. - Valid template types: welcome, confirmation, password_reset, password_changed - operationId: createEmailTemplate + summary: Clear one managed auth page layout + operationId: deleteAuthPageLayout security: - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/CreateEmailTemplateRequest' + - ProjectAccessToken: [] responses: - '201': - description: Template created + '204': + description: Layout cleared + '400': + description: Invalid page type content: application/json: schema: - $ref: '#/components/schemas/EmailTemplate' - '400': - description: Invalid template type + $ref: '#/components/schemas/Error' + '401': + description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/Error' '403': - description: Custom email templates require the PRO plan + description: Plan does not permit customisation content: application/json: schema: $ref: '#/components/schemas/Error' - '409': - description: The project already has a template of this type + '404': + description: Project not found content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/email-templates/{type}: + '500': + description: Layout could not be cleared + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /projects/{id}/auth/pages/{pageType}/preview: get: tags: - Auth Configuration - summary: Get email template - operationId: getEmailTemplate - security: - - UserToken: [] + summary: Render a short-lived managed auth page preview + description: | + Public HTML endpoint for a preview URL returned by the POST operation. + The signed ticket contains the unsaved appearance, expires shortly, and + runs the production page runtime against mocked authentication responses. + operationId: renderAuthPagePreview + security: [] parameters: - $ref: '#/components/parameters/ProjectId' - - name: type + - name: pageType in: path required: true + schema: + $ref: '#/components/schemas/HostedAuthPageType' + - name: ticket + in: query + required: true schema: type: string - enum: - - welcome - - confirmation - - password_reset - - password_changed + minLength: 1 + maxLength: 4096 + description: Short-lived signed preview ticket returned by the POST operation. responses: '200': - description: Email template + description: Rendered preview document content: - application/json: + text/html: schema: - $ref: '#/components/schemas/EmailTemplate' + type: string '404': - description: Template not found - put: + description: Ticket is invalid or expired, its path does not match, or managed authentication is disabled + content: + text/plain: + schema: + type: string + '500': + description: Preview could not be rendered + content: + text/plain: + schema: + type: string + post: tags: - Auth Configuration - summary: Update email template - description: | - Updates a custom email template. Custom email templates are a PRO-plan - feature: requests from a FREE-plan project owner are rejected with 403 - (including after a PRO→FREE downgrade), so a FREE project cannot modify - templates and always sends the built-in defaults. - operationId: updateEmailTemplate + summary: Preview an unsaved managed auth page appearance + operationId: previewAuthPage security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - name: type + - name: pageType in: path required: true schema: - type: string - enum: - - welcome - - confirmation - - password_reset - - password_changed + $ref: '#/components/schemas/HostedAuthPageType' requestBody: required: true content: application/json: schema: - $ref: '#/components/schemas/UpdateEmailTemplateRequest' + $ref: '#/components/schemas/PreviewAuthPageRequest' responses: '200': - description: Template updated + description: Short-lived URL for the rendered preview document content: application/json: schema: - $ref: '#/components/schemas/EmailTemplate' + $ref: '#/components/schemas/PreviewAuthPageResponse' + '400': + description: Invalid page type or draft + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '401': + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '403': - description: Custom email templates require the PRO plan + description: Access denied content: application/json: schema: $ref: '#/components/schemas/Error' '404': - description: Template not found - delete: + description: Project not found or managed authentication is disabled + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '500': + description: Preview could not be rendered + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /projects/{id}/auth/hosted/{pageType}: + get: tags: - Auth Configuration - summary: Delete email template + summary: Render a managed auth page description: | - Deletes a custom template, reverting to the default. Custom email - templates are a PRO-plan feature: requests from a FREE-plan project owner - are rejected with 403. - operationId: deleteEmailTemplate - security: - - UserToken: [] + Public HTML endpoint for signup, forgot-password, device approval, + verify-email, and reset-password pages. Login uses the path without a + page type. + Requires `Accept: text/html`. + Returns 404 when managed hosted pages are disabled for the project. + security: [] + operationId: renderManagedAuthPage parameters: - $ref: '#/components/parameters/ProjectId' - - name: type + - name: pageType in: path required: true + schema: + $ref: '#/components/schemas/HostedRenderablePageType' + responses: + '200': + description: Hosted auth page HTML + content: + text/html: + schema: + type: string + '400': + description: Invalid project id or unsupported Accept header + '404': + description: Managed pages disabled or page type not found + /projects/{id}/auth/hosted: + get: + tags: + - Auth Configuration + summary: Render default managed auth page + description: | + Public HTML endpoint for the managed login page. + Requires `Accept: text/html`. + security: [] + operationId: renderDefaultManagedAuthPage + parameters: + - $ref: '#/components/parameters/ProjectId' + - name: action + in: query + required: false schema: type: string enum: - - welcome - - confirmation - - password_reset - - password_changed + - login + - signup + - forgot-password + - device + description: | + Optional deep-link action for the unified hosted page. Ignored when a + custom login page is configured. `action=device` renders the device + authorization approval UI inline (no redirect to any external app); + it signs the user in and calls `POST /auth/device/verify`. + - name: user_code + in: query + required: false + schema: + type: string + description: Device user code (from `POST /auth/device/authorize`) used with `action=device`. + - name: anon_key + in: query + required: false + schema: + type: string + description: Project anon key used by built-in managed auth flows (required for login/signup/device actions). + - name: state + in: query + required: false + schema: + type: string + description: | + Opaque one-time nonce generated by the client SDK before redirecting + here. On successful login/signup it is echoed back in the post-auth + redirect fragment as `state`, so the SDK can bind the returned session + to the flow it initiated (login-CSRF / session-fixation defense). The + SDK rejects a returned session whose `state` does not match. responses: - '204': - description: Template deleted - '403': - description: Custom email templates require the PRO plan + '200': + description: Hosted auth page HTML content: - application/json: + text/html: schema: - $ref: '#/components/schemas/Error' + type: string + '400': + description: Invalid project id or unsupported Accept header '404': - description: Template not found - /email-templates/defaults: + description: Managed pages disabled + /projects/{id}/auth/hosted/login/options: get: tags: - Auth Configuration - summary: Get default email templates - description: Returns the default email templates used when no custom template is configured. - operationId: getDefaultEmailTemplates + summary: Get hosted login runtime options + description: | + Returns runtime options for the built-in managed login flow. + Requires `anon_key` query parameter. + Rate limited per project and client IP. Excess requests return `429` and `Retry-After`. + security: [] + operationId: getHostedLoginOptions + parameters: + - $ref: '#/components/parameters/ProjectId' + - name: anon_key + in: query + required: true + schema: + type: string responses: '200': - description: Default templates + description: Hosted login options returned content: application/json: schema: - type: object - properties: - data: - type: array - items: - $ref: '#/components/schemas/EmailTemplate' - /email-templates/defaults/{type}: - get: + $ref: '#/components/schemas/HostedLoginOptionsResponse' + '401': + description: Invalid or missing anon key + '404': + description: Managed pages disabled + '429': + description: Rate limit exceeded + /projects/{id}/auth/hosted/login/check-email: + post: tags: - Auth Configuration - summary: Get default email template by type - operationId: getDefaultEmailTemplate + summary: Check whether email exists for hosted login flow + description: | + Used by the built-in managed login page to branch UI between signin and signup. + Requires anon key in Authorization header. + Rate limited per project and client IP. Excess requests return `429` and `Retry-After`. + security: [] + operationId: hostedLoginCheckEmail parameters: - - name: type - in: path + - $ref: '#/components/parameters/ProjectId' + - name: Authorization + in: header required: true schema: type: string - enum: - - welcome - - confirmation - - password_reset - - password_changed + description: Bearer anon key (`Bearer `) + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/HostedLoginEmailCheckRequest' responses: '200': - description: Default template + description: Email existence evaluated content: application/json: schema: - $ref: '#/components/schemas/EmailTemplate' - '404': - description: Template type not found - /projects/{id}/auth/config: + $ref: '#/components/schemas/HostedLoginEmailCheckResponse' + '401': + description: Invalid or missing anon key + '429': + description: Rate limit exceeded + /projects/{id}/auth/methods: get: tags: - Auth Configuration - summary: Get auth configuration - operationId: getAuthConfig + summary: Get all authentication methods + description: | + Returns all configured authentication methods for this project, + including email/password, anonymous, device authorization, and OAuth providers. + operationId: getAuthMethods security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' responses: '200': - description: Auth configuration + description: Authentication methods configuration content: application/json: schema: - $ref: '#/components/schemas/AuthConfig' + type: object + properties: + email_password: + type: object + properties: + enabled: + type: boolean + method: + type: string + name: + type: string + anonymous: + type: object + properties: + enabled: + type: boolean + method: + type: string + name: + type: string + oauth_providers: + type: array + items: + type: object + properties: + enabled: + type: boolean + method: + type: string + provider: + type: string + name: + type: string + redirect_url: + type: string + scopes: + type: array + items: + type: string + available_methods: + type: array + items: + type: string + example: + - email_password + - oauth_google + - oauth_github put: tags: - Auth Configuration - summary: Update auth configuration + summary: Configure authentication methods (unified) description: | - Updates the project's auth configuration. Only the fields present in - the body are changed. - operationId: updateAuthConfig + Configure all authentication methods in a single request. + At least one method must remain enabled. + operationId: configureAuthMethods security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' requestBody: content: application/json: schema: - $ref: '#/components/schemas/UpdateAuthConfigRequest' + type: object + properties: + enable_email_password: + type: boolean + enable_anonymous: + type: boolean + oauth_providers: + type: array + items: + type: object + properties: + provider: + type: string + enabled: + type: boolean responses: '200': - description: Configuration updated - content: - application/json: - schema: - $ref: '#/components/schemas/AuthConfig' - '403': - description: | - The update would turn on, widen, or otherwise edit the email domain - allowlist (`allowed_email_domains`, `allowed_email_domains_mode`) - for a project that is not on the PRO plan. A FREE project keeps - whatever allowlist it already has — parked, enforcing nothing until - it upgrades — and may still remove it, so a downgrade never leaves a - project locked out of its own signups. + description: Methods configured + '400': + description: At least one method must be enabled + /projects/{id}/oauth/configs: + get: + tags: + - OAuth Configuration + summary: List OAuth configurations + description: List all OAuth provider configurations for this project + operationId: listOAuthConfigs + security: + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + responses: + '200': + description: List of OAuth configurations content: application/json: schema: - $ref: '#/components/schemas/Error' - /projects/{id}/auth/config/test-email: + type: object + properties: + configs: + type: array + items: + $ref: '#/components/schemas/OAuthConfig' post: tags: - - Auth Configuration - summary: Send a test email using the project's saved SMTP config - description: | - Sends a diagnostic email to `to_email` using the project's - persisted `auth_config` SMTP credentials. If `html_body` or - `text_body` is supplied, the override path is taken: those - values (plus optional `subject`) are rendered through - html/text templates against the project's `Data` and - used as the body — used by the template editor's "Send Test" - affordance to preview an unsaved template. With both bodies - omitted, a hardcoded diagnostic message is sent and any - `subject` field is ignored. Sending `subject` alone (no - bodies) is rejected with 400 to avoid a silently-dropped - subject or a blank message. Also rejects with 400 if - `email_enabled=false` or `smtp_host` is empty. - operationId: testEmailConfig + - OAuth Configuration + summary: Create OAuth configuration + description: Configure OAuth provider (Google, GitHub, Microsoft, Apple, Device) + operationId: createOAuthConfig security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' requestBody: @@ -8685,512 +10899,536 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TestEmailRequest' + $ref: '#/components/schemas/CreateOAuthConfigRequest' responses: - '200': - description: Test email sent + '201': + description: OAuth config created content: application/json: schema: - $ref: '#/components/schemas/TestEmailResponse' - '400': - description: Invalid request or email delivery not configured - '401': - description: Unauthorized - '403': - description: Forbidden - '404': - description: Project not found - '502': - description: Template render failure or SMTP delivery failed - /projects/{id}/auth/hosted-pages/{pageType}: + $ref: '#/components/schemas/OAuthConfig' + '409': + description: Provider already configured + /projects/{id}/oauth/configs/{provider}: get: tags: - - Auth Configuration - summary: Get hosted auth page - description: | - Returns the saved HTML/CSS for the page type, or `page: null` when the - project has not customized it yet. Always returns `defaults` (the theme - shell to seed an editor with, which is valid input to the update endpoint) - and `runtime` (the script the rendered page runs, plus a preview harness). - operationId: getAuthHostedPage + - OAuth Configuration + summary: Get OAuth configuration + operationId: getOAuthConfig security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - name: pageType + - name: provider in: path required: true schema: - $ref: '#/components/schemas/HostedAuthPageType' + type: string + enum: + - google + - github + - microsoft + - apple + - device + - name: client_id + in: query + required: false + schema: + type: string + description: Required when `provider=device` to select a specific device client. responses: '200': - description: Hosted page loaded + description: OAuth configuration content: application/json: schema: - $ref: '#/components/schemas/AuthHostedPageResponse' + $ref: '#/components/schemas/OAuthConfig' put: tags: - - Auth Configuration - summary: Update hosted auth page - description: | - Saves the current HTML/CSS for this page type. - Security validation rejects script tags, javascript: URLs, inline event handlers, iframe/object/embed/meta/link tags in HTML, - and closing style/head tags in CSS. - operationId: updateAuthHostedPage + - OAuth Configuration + summary: Update OAuth configuration + operationId: updateOAuthConfig security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - name: pageType + - name: provider in: path required: true schema: - $ref: '#/components/schemas/HostedAuthPageType' + type: string + enum: + - google + - github + - microsoft + - apple + - device + - name: client_id + in: query + required: false + schema: + type: string + description: Required when `provider=device` to select a specific device client. requestBody: - required: true content: application/json: schema: - $ref: '#/components/schemas/UpdateAuthHostedPageRequest' + $ref: '#/components/schemas/UpdateOAuthConfigRequest' responses: '200': - description: Hosted page updated + description: OAuth config updated content: application/json: schema: - $ref: '#/components/schemas/AuthHostedPageResponse' - '400': - description: Invalid input or unsafe markup - '401': - description: Unauthorized - '403': - description: Forbidden - '404': - description: Project not found - /projects/{id}/auth/hosted/{pageType}: - get: + $ref: '#/components/schemas/OAuthConfig' + delete: tags: - - Auth Configuration - summary: Render managed reset-password page - description: | - Public HTML endpoint for the managed reset-password page. - Requires `Accept: text/html`. - Returns 404 when managed hosted pages are disabled for the project. - security: [] - operationId: renderManagedAuthPage + - OAuth Configuration + summary: Delete OAuth configuration + operationId: deleteOAuthConfig + security: + - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - name: pageType + - name: provider in: path required: true schema: - $ref: '#/components/schemas/HostedRenderablePageType' + type: string + enum: + - google + - github + - microsoft + - apple + - device + - name: client_id + in: query + required: false + schema: + type: string + description: Required when `provider=device` to select a specific device client. + responses: + '204': + description: OAuth config deleted + /projects/{id}/oauth/providers: + get: + tags: + - OAuth Configuration + summary: List available OAuth providers + description: Get list of supported OAuth providers and their default scopes + operationId: listAvailableOAuthProviders + security: + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' responses: '200': - description: Hosted auth page HTML + description: Available providers content: - text/html: + application/json: schema: - type: string - '400': - description: Invalid project id or unsupported Accept header - '404': - description: Managed pages disabled or page type not found - /projects/{id}/auth/hosted: + type: object + properties: + providers: + type: array + items: + type: object + properties: + id: + type: string + name: + type: string + default_scopes: + type: array + items: + type: string + /auth/oauth/{provider}/authorize: get: tags: - - Auth Configuration - summary: Render default managed auth page + - OAuth Authentication + summary: Start OAuth authorization description: | - Public HTML endpoint for the managed login page. - Requires `Accept: text/html`. - security: [] - operationId: renderDefaultManagedAuthPage + Redirects user to OAuth provider for authorization. + Handles CSRF protection with state parameter. + Project is identified via the anon_key query parameter. + operationId: authOAuthAuthorize parameters: - - $ref: '#/components/parameters/ProjectId' - - name: action - in: query - required: false + - name: provider + in: path + required: true schema: type: string enum: - - login - - signup - - forgot-password - - device - description: | - Optional deep-link action for the unified hosted page. Ignored when a - custom login page is configured. `action=device` renders the device - authorization approval UI inline (no redirect to any external app); - it signs the user in and calls `POST /auth/device/verify`. - - name: user_code + - google + - github + - microsoft + - apple + - name: anon_key in: query - required: false + required: true schema: type: string - description: Device user code (from `POST /auth/device/authorize`) used with `action=device`. - - name: anon_key + description: Project anon key (required - identifies the project) + - name: redirect_url in: query - required: false schema: type: string - description: Project anon key used by built-in managed auth flows (required for login/signup/device actions). - - name: state + description: | + URL to redirect to after the OAuth flow (optional). Must exactly + match an entry in the project's `allowed_redirect_urls`, including + its query string, or be the project's own managed hosted-auth page + URL. + - name: client_state in: query - required: false schema: type: string + maxLength: 255 description: | - Opaque one-time nonce generated by the client SDK before redirecting - here. On successful login/signup it is echoed back in the post-auth - redirect fragment as `state`, so the SDK can bind the returned session - to the flow it initiated (login-CSRF / session-fixation defense). The - SDK rejects a returned session whose `state` does not match. + Optional application nonce. It is stored with the server-generated + provider state and echoed to redirect_url as `state`. + - name: response_mode + in: query + schema: + type: string + enum: + - code + description: | + Set to `code` to receive a short-lived authorization code at + redirect_url, then use POST /auth/oauth/exchange to obtain the + session. `redirect_url` is required in this mode. When omitted, the + established session-fragment response is retained for compatibility + with existing clients. responses: - '200': - description: Hosted auth page HTML - content: - text/html: - schema: - type: string + '307': + description: Redirect to OAuth provider '400': - description: Invalid project id or unsupported Accept header + description: | + OAuth provider is disabled for this project, or `redirect_url` is + not registered in `allowed_redirect_urls` '404': - description: Managed pages disabled - /projects/{id}/auth/hosted/login/options: + description: OAuth provider not configured + /auth/oauth/{provider}/callback: get: tags: - - Auth Configuration - summary: Get hosted login runtime options + - OAuth Authentication + summary: OAuth callback handler description: | - Returns runtime options for the built-in managed login flow. - Requires `anon_key` query parameter. - Rate limited per project and client IP. Excess requests return `429` and `Retry-After`. - security: [] - operationId: getHostedLoginOptions + Handles OAuth provider callback with authorization code. + Exchanges code for tokens and creates/signs in user. + operationId: authOAuthCallback parameters: - - $ref: '#/components/parameters/ProjectId' - - name: anon_key + - name: provider + in: path + required: true + schema: + type: string + enum: + - google + - github + - microsoft + - apple + - name: code + in: query + required: true + schema: + type: string + - name: state + in: query + required: true + schema: + type: string + - name: error in: query - required: true schema: type: string responses: '200': - description: Hosted login options returned + description: Existing user signed in (when redirect_url was omitted) content: application/json: schema: - $ref: '#/components/schemas/HostedLoginOptionsResponse' - '401': - description: Invalid or missing anon key - '404': - description: Managed pages disabled - '429': - description: Rate limit exceeded - /projects/{id}/auth/hosted/login/check-email: + $ref: '#/components/schemas/AuthTokenResponse' + '201': + description: New user created and signed in (when redirect_url was omitted) + content: + application/json: + schema: + $ref: '#/components/schemas/AuthTokenResponse' + '303': + description: | + Redirect to the exact registered redirect_url. Flows that requested + response_mode=code receive a short-lived, single-use `code` and + optional application `state`; compatibility flows receive the + established session fragment. + '400': + description: | + Missing/invalid code or state, the state parameter expired, or the + flow's stored redirect_url is no longer registered in + allowed_redirect_urls (re-checked at callback time) + '403': + description: | + The provider's email domain is not in `allowed_email_domains`. Creating + an account is refused under `signup` and `signup_and_signin`; signing in + an already-linked account is refused under `signup_and_signin`. + '409': + description: Email already exists (requires linking) + /auth/oauth/exchange: post: tags: - - Auth Configuration - summary: Check whether email exists for hosted login flow + - OAuth Authentication + summary: Exchange OAuth authorization code description: | - Used by the built-in managed login page to branch UI between signin and signup. - Requires anon key in Authorization header. - Rate limited per project and client IP. Excess requests return `429` and `Retry-After`. - security: [] - operationId: hostedLoginCheckEmail - parameters: - - $ref: '#/components/parameters/ProjectId' - - name: Authorization - in: header - required: true - schema: - type: string - description: Bearer anon key (`Bearer `) + Atomically consumes a short-lived callback code and returns the user's + session. The request must use the same project anon key and exact + redirect_url that initiated the flow. + operationId: authOAuthExchange + security: + - AnonKey: [] requestBody: required: true content: application/json: schema: - $ref: '#/components/schemas/HostedLoginEmailCheckRequest' + type: object + required: + - code + - redirect_url + properties: + code: + type: string + redirect_url: + type: string + format: uri responses: '200': - description: Email existence evaluated + description: Authorization code consumed and session created content: application/json: schema: - $ref: '#/components/schemas/HostedLoginEmailCheckResponse' + $ref: '#/components/schemas/AuthTokenResponse' + '400': + description: Invalid, expired, consumed, or redirect-mismatched code '401': - description: Invalid or missing anon key + description: Missing or invalid project anon key + '403': + description: | + Email confirmation is now required, or the account's email domain is not + in `allowed_email_domains` while `allowed_email_domains_mode` is + `signup_and_signin`. Both are re-checked here because the code outlives + the callback that issued it. '429': - description: Rate limit exceeded - /projects/{id}/auth/methods: - get: + description: Too many exchange attempts from this client + /auth/device/authorize: + post: tags: - - Auth Configuration - summary: Get all authentication methods + - OAuth Authentication + summary: Start RFC8628 device authorization description: | - Returns all configured authentication methods for this project, - including email/password, anonymous, device authorization, and OAuth providers. - operationId: getAuthMethods - security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' + Starts OAuth 2.0 Device Authorization Grant (RFC 8628). + Returns `device_code` for the CLI and `user_code` for browser verification. + + By default the returned `verification_uri` / `verification_uri_complete` + point at the project's managed device-approval page served by this API + (`/projects/{projectId}/auth/hosted?action=device&user_code=...&anon_key=...`), + which requires managed auth enabled and a default anon key for the + project. + + Projects can override this by setting `device_verification_url` on the + auth config (`PATCH /auth/config`). When set, that URL is returned as-is + with the `user_code` appended (no `action=device` hint and no embedded + anon key — the page brings its own), so a CLI's `login` command surfaces + the project's own RFC 8628 approval page. With a custom URL, device login + does **not** require managed auth to be enabled; the custom page's origin + must be in the project's auth CORS allowlist to call + `POST /auth/device/verify`. Either way the verification page must + authenticate the end user and call `POST /auth/device/verify` with the + `user_code`. See the device-auth guide for both approaches. + operationId: authDeviceAuthorize + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - client_id + properties: + client_id: + type: string + description: Enabled `device` OAuth client ID for the target project responses: '200': - description: Authentication methods configuration + description: Device authorization started content: application/json: schema: - type: object - properties: - email_password: - type: object - properties: - enabled: - type: boolean - method: - type: string - name: - type: string - anonymous: - type: object - properties: - enabled: - type: boolean - method: - type: string - name: - type: string - oauth_providers: - type: array - items: - type: object - properties: - enabled: - type: boolean - method: - type: string - provider: - type: string - name: - type: string - redirect_url: - type: string - scopes: - type: array - items: - type: string - available_methods: - type: array - items: - type: string - example: - - email_password - - oauth_google - - oauth_github - put: + $ref: '#/components/schemas/DeviceAuthorizationResponse' + '400': + description: Invalid request or unauthorized client + content: + application/json: + schema: + $ref: '#/components/schemas/OAuthErrorResponse' + /auth/device/token: + post: tags: - - Auth Configuration - summary: Configure authentication methods (unified) + - OAuth Authentication + summary: Poll device token endpoint description: | - Configure all authentication methods in a single request. - At least one method must remain enabled. - operationId: configureAuthMethods - security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' + RFC8628 token polling endpoint. + Returns OAuth errors such as `authorization_pending`, `slow_down`, `access_denied`, and `expired_token`. + operationId: authDeviceToken requestBody: + required: true content: application/json: schema: type: object + required: + - grant_type + - device_code + - client_id properties: - enable_email_password: - type: boolean - enable_anonymous: - type: boolean - oauth_providers: - type: array - items: - type: object - properties: - provider: - type: string - enabled: - type: boolean + grant_type: + type: string + enum: + - urn:ietf:params:oauth:grant-type:device_code + device_code: + type: string + client_id: + type: string responses: '200': - description: Methods configured + description: Device flow completed, auth-user session minted + content: + application/json: + schema: + $ref: '#/components/schemas/AuthTokenResponse' '400': - description: At least one method must be enabled - /projects/{id}/oauth/configs: - get: - tags: - - OAuth Configuration - summary: List OAuth configurations - description: List all OAuth provider configurations for this project - operationId: listOAuthConfigs - security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - responses: - '200': - description: List of OAuth configurations + description: Polling state/error response + content: + application/json: + schema: + $ref: '#/components/schemas/OAuthErrorResponse' + '403': + description: | + `access_denied` - the approving account's email domain is not in + `allowed_email_domains` while `allowed_email_domains_mode` is + `signup_and_signin`. Re-checked here because approval and redemption + are separate requests. content: application/json: schema: - type: object - properties: - configs: - type: array - items: - $ref: '#/components/schemas/OAuthConfig' + $ref: '#/components/schemas/OAuthErrorResponse' + /auth/device/verify: post: tags: - - OAuth Configuration - summary: Create OAuth configuration - description: Configure OAuth provider (Google, GitHub, Microsoft, Apple, Device) - operationId: createOAuthConfig + - OAuth Authentication + summary: Approve or deny a device code + description: | + Browser-side endpoint for authenticated auth-users to approve (`approve`) or deny (`deny`) a `user_code`. + + Called by the verification page after the end user signs in. The grant is + scoped to the project the auth-user token belongs to: approving a + `user_code` issued for a different project returns `403`. This endpoint + does not require managed auth to be enabled, so a custom verification page + (hosted anywhere) can drive approval — it just needs an authenticated + project auth-user access token and, for cross-origin browser calls, the + page origin allowed in the project's auth CORS settings. + operationId: authDeviceVerify security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' + - AuthUserAccessToken: [] requestBody: required: true content: application/json: schema: - $ref: '#/components/schemas/CreateOAuthConfigRequest' + type: object + required: + - user_code + properties: + user_code: + type: string + action: + type: string + enum: + - approve + - deny + default: approve responses: - '201': - description: OAuth config created + '200': + description: Verification action accepted content: application/json: schema: - $ref: '#/components/schemas/OAuthConfig' - '409': - description: Provider already configured - /projects/{id}/oauth/configs/{provider}: - get: - tags: - - OAuth Configuration - summary: Get OAuth configuration - operationId: getOAuthConfig - security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - - name: provider - in: path - required: true - schema: - type: string - enum: - - google - - github - - microsoft - - apple - - device - - name: client_id - in: query - required: false - schema: - type: string - description: Required when `provider=device` to select a specific device client. - responses: - '200': - description: OAuth configuration + type: object + properties: + success: + type: boolean + status: + type: string + '401': + description: Not authenticated content: application/json: schema: - $ref: '#/components/schemas/OAuthConfig' - put: + $ref: '#/components/schemas/Error' + /auth/platform/exchange: + post: tags: - - OAuth Configuration - summary: Update OAuth configuration - operationId: updateOAuthConfig + - OAuth Authentication + summary: Exchange auth-user device session for platform token + description: | + Exchanges a verified auth-user device-flow session into a platform token for CLI usage. + The target platform user is derived from authenticated auth-user mapping; client cannot select another user. + operationId: authPlatformExchange security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - - name: provider - in: path - required: true - schema: - type: string - enum: - - google - - github - - microsoft - - apple - - device - - name: client_id - in: query - required: false - schema: - type: string - description: Required when `provider=device` to select a specific device client. + - AuthUserAccessToken: [] requestBody: + required: true content: application/json: schema: - $ref: '#/components/schemas/UpdateOAuthConfigRequest' + type: object + required: + - client_id + properties: + client_id: + type: string responses: '200': - description: OAuth config updated + description: Platform token minted content: application/json: schema: - $ref: '#/components/schemas/OAuthConfig' - delete: - tags: - - OAuth Configuration - summary: Delete OAuth configuration - operationId: deleteOAuthConfig - security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - - name: provider - in: path - required: true - schema: - type: string - enum: - - google - - github - - microsoft - - apple - - device - - name: client_id - in: query - required: false - schema: - type: string - description: Required when `provider=device` to select a specific device client. - responses: - '204': - description: OAuth config deleted - /projects/{id}/oauth/providers: + $ref: '#/components/schemas/PlatformExchangeResponse' + '403': + description: | + Exchange not allowed for this session/client/project, or the + account's email domain is not in `allowed_email_domains` while + `allowed_email_domains_mode` is `signup_and_signin`. The domain is + re-checked here because the minted platform token outlives the + session it is exchanged from. + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /auth/oauth/providers: get: tags: - - OAuth Configuration - summary: List available OAuth providers - description: Get list of supported OAuth providers and their default scopes - operationId: listAvailableOAuthProviders + - OAuth Authentication + summary: List user's linked providers + description: Get list of OAuth providers linked to current user + operationId: authListOAuthProviders security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' + - AuthUserAccessToken: [] responses: '200': - description: Available providers + description: Linked providers content: application/json: schema: @@ -9201,24 +11439,31 @@ paths: items: type: object properties: - id: + provider: type: string - name: + linked_at: type: string - default_scopes: - type: array - items: - type: string - /auth/oauth/{provider}/authorize: - get: + format: date-time + updated_at: + type: string + format: date-time + '401': + description: Not authenticated + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /auth/oauth/{provider}/link: + post: tags: - OAuth Authentication - summary: Start OAuth authorization + summary: Link OAuth provider to current user description: | - Redirects user to OAuth provider for authorization. - Handles CSRF protection with state parameter. - Project is identified via the anon_key query parameter. - operationId: authOAuthAuthorize + Generates authorization URL to link OAuth provider to existing account. + User must be authenticated. + operationId: authLinkOAuthProvider + security: + - AuthUserAccessToken: [] parameters: - name: provider in: path @@ -9230,29 +11475,20 @@ paths: - github - microsoft - apple - - name: anon_key - in: query - required: true - schema: - type: string - description: Project anon key (required - identifies the project) - name: redirect_url in: query schema: type: string description: | - URL to redirect to after the OAuth flow (optional). Must exactly - match an entry in the project's `allowed_redirect_urls`, including - its query string, or be the project's own managed hosted-auth page - URL. + URL to redirect to after linking completes (optional). Same + allowed_redirect_urls requirement as GET /auth/oauth/{provider}/authorize. - name: client_state in: query schema: type: string maxLength: 255 description: | - Optional application nonce. It is stored with the server-generated - provider state and echoed to redirect_url as `state`. + Optional application nonce echoed to redirect_url as `state`. - name: response_mode in: query schema: @@ -9261,28 +11497,54 @@ paths: - code description: | Set to `code` to receive a short-lived authorization code at - redirect_url, then use POST /auth/oauth/exchange to obtain the - session. `redirect_url` is required in this mode. When omitted, the - established session-fragment response is retained for compatibility - with existing clients. + redirect_url. `redirect_url` is required in this mode. When + omitted, the established session-fragment response is retained for + compatibility with existing clients. responses: - '307': - description: Redirect to OAuth provider + '200': + description: Authorization URL generated + content: + application/json: + schema: + type: object + properties: + authorization_url: + type: string '400': - description: | - OAuth provider is disabled for this project, or `redirect_url` is - not registered in `allowed_redirect_urls` + description: redirect_url is not registered in allowed_redirect_urls + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '401': + description: Not authenticated + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '404': description: OAuth provider not configured - /auth/oauth/{provider}/callback: - get: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '409': + description: Provider already linked + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /auth/oauth/{provider}/unlink: + delete: tags: - OAuth Authentication - summary: OAuth callback handler + summary: Unlink OAuth provider description: | - Handles OAuth provider callback with authorization code. - Exchanges code for tokens and creates/signs in user. - operationId: authOAuthCallback + Remove OAuth provider from user's account. + Cannot unlink if it's the only authentication method. + operationId: authUnlinkOAuthProvider + security: + - AuthUserAccessToken: [] parameters: - name: provider in: path @@ -9294,217 +11556,170 @@ paths: - github - microsoft - apple - - name: code - in: query - required: true - schema: - type: string - - name: state - in: query - required: true - schema: - type: string - - name: error - in: query - schema: - type: string responses: - '200': - description: Existing user signed in (when redirect_url was omitted) + '204': + description: Provider unlinked + '400': + description: Cannot unlink last authentication method content: application/json: schema: - $ref: '#/components/schemas/AuthTokenResponse' - '201': - description: New user created and signed in (when redirect_url was omitted) + $ref: '#/components/schemas/Error' + '401': + description: Not authenticated content: application/json: schema: - $ref: '#/components/schemas/AuthTokenResponse' - '303': - description: | - Redirect to the exact registered redirect_url. Flows that requested - response_mode=code receive a short-lived, single-use `code` and - optional application `state`; compatibility flows receive the - established session fragment. - '400': - description: | - Missing/invalid code or state, the state parameter expired, or the - flow's stored redirect_url is no longer registered in - allowed_redirect_urls (re-checked at callback time) - '403': - description: | - The provider's email domain is not in `allowed_email_domains`. Creating - an account is refused under `signup` and `signup_and_signin`; signing in - an already-linked account is refused under `signup_and_signin`. - '409': - description: Email already exists (requires linking) - /auth/oauth/exchange: + $ref: '#/components/schemas/Error' + '404': + description: Provider not linked + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /auth/oauth/{provider}/refresh-token: post: tags: - OAuth Authentication - summary: Exchange OAuth authorization code + summary: Refresh OAuth provider token description: | - Atomically consumes a short-lived callback code and returns the user's - session. The request must use the same project anon key and exact - redirect_url that initiated the flow. - operationId: authOAuthExchange + Refresh the access token for an OAuth provider using its refresh token. + Allows calling provider APIs on user's behalf (e.g., Google Drive, GitHub repos). + operationId: refreshOAuthProviderToken security: - - AnonKey: [] - requestBody: - required: true - content: - application/json: - schema: - type: object - required: - - code - - redirect_url - properties: - code: - type: string - redirect_url: - type: string - format: uri + - AuthUserAccessToken: [] + parameters: + - name: provider + in: path + required: true + schema: + type: string + enum: + - google + - github + - microsoft + - apple responses: '200': - description: Authorization code consumed and session created + description: Token refreshed successfully content: application/json: schema: - $ref: '#/components/schemas/AuthTokenResponse' + type: object + properties: + message: + type: string + provider: + type: string + expires_in: + type: integer '400': - description: Invalid, expired, consumed, or redirect-mismatched code + description: No refresh token available or refresh failed + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '401': - description: Missing or invalid project anon key - '403': - description: | - Email confirmation is now required, or the account's email domain is not - in `allowed_email_domains` while `allowed_email_domains_mode` is - `signup_and_signin`. Both are re-checked here because the code outlives - the callback that issued it. - '429': - description: Too many exchange attempts from this client - /auth/device/authorize: - post: - tags: - - OAuth Authentication - summary: Start RFC8628 device authorization - description: | - Starts OAuth 2.0 Device Authorization Grant (RFC 8628). - Returns `device_code` for the CLI and `user_code` for browser verification. - - By default the returned `verification_uri` / `verification_uri_complete` - point at the project's managed device-approval page served by this API - (`/projects/{projectId}/auth/hosted?action=device&user_code=...&anon_key=...`), - which requires managed auth enabled and a default anon key for the - project. - - Projects can override this by setting `device_verification_url` on the - auth config (`PATCH /auth/config`). When set, that URL is returned as-is - with the `user_code` appended (no `action=device` hint and no embedded - anon key — the page brings its own), so a CLI's `login` command surfaces - the project's own RFC 8628 approval page. With a custom URL, device login - does **not** require managed auth to be enabled; the custom page's origin - must be in the project's auth CORS allowlist to call - `POST /auth/device/verify`. Either way the verification page must - authenticate the end user and call `POST /auth/device/verify` with the - `user_code`. See the device-auth guide for both approaches. - operationId: authDeviceAuthorize - requestBody: - required: true - content: - application/json: - schema: - type: object - required: - - client_id - properties: - client_id: - type: string - description: Enabled `device` OAuth client ID for the target project - responses: - '200': - description: Device authorization started + description: Not authenticated content: application/json: schema: - $ref: '#/components/schemas/DeviceAuthorizationResponse' - '400': - description: Invalid request or unauthorized client + $ref: '#/components/schemas/Error' + '404': + description: Provider not linked content: application/json: schema: - $ref: '#/components/schemas/OAuthErrorResponse' - /auth/device/token: - post: + $ref: '#/components/schemas/Error' + /auth/oauth/{provider}/token: + get: tags: - OAuth Authentication - summary: Poll device token endpoint + summary: Get current provider access token description: | - RFC8628 token polling endpoint. - Returns OAuth errors such as `authorization_pending`, `slow_down`, `access_denied`, and `expired_token`. - operationId: authDeviceToken - requestBody: - required: true - content: - application/json: - schema: - type: object - required: - - grant_type - - device_code - - client_id - properties: - grant_type: - type: string - enum: - - urn:ietf:params:oauth:grant-type:device_code - device_code: - type: string - client_id: - type: string + Get valid access token for OAuth provider. + Automatically refreshes if expired. + operationId: getOAuthProviderToken + security: + - AuthUserAccessToken: [] + parameters: + - name: provider + in: path + required: true + schema: + type: string + enum: + - google + - github + - microsoft + - apple responses: '200': - description: Device flow completed, auth-user session minted + description: Current access token content: application/json: schema: - $ref: '#/components/schemas/AuthTokenResponse' - '400': - description: Polling state/error response + type: object + properties: + message: + type: string + provider: + type: string + expires_in: + type: integer + '401': + description: Not authenticated content: application/json: schema: - $ref: '#/components/schemas/OAuthErrorResponse' - '403': - description: | - `access_denied` - the approving account's email domain is not in - `allowed_email_domains` while `allowed_email_domains_mode` is - `signup_and_signin`. Re-checked here because approval and redemption - are separate requests. + $ref: '#/components/schemas/Error' + '404': + description: Provider not linked content: application/json: schema: - $ref: '#/components/schemas/OAuthErrorResponse' - /auth/device/verify: + $ref: '#/components/schemas/Error' + /auth/oauth/{provider}/call-api: post: tags: - OAuth Authentication - summary: Approve or deny a device code + summary: Call OAuth provider API description: | - Browser-side endpoint for authenticated auth-users to approve (`approve`) or deny (`deny`) a `user_code`. + Make an authenticated request to an OAuth provider's API on behalf of the user. + The user's stored access token is automatically used and refreshed if needed. - Called by the verification page after the end user signs in. The grant is - scoped to the project the auth-user token belongs to: approving a - `user_code` issued for a different project returns `403`. This endpoint - does not require managed auth to be enabled, so a custom verification page - (hosted anywhere) can drive approval — it just needs an authenticated - project auth-user access token and, for cross-origin browser calls, the - page origin allowed in the project's auth CORS settings. - operationId: authDeviceVerify + The request is always sent to the provider's fixed API base URL joined with + the caller-supplied `endpoint`. `endpoint` must be a relative path beginning + with `/` (optionally with a query string); it cannot change the target host. + Absolute URLs, protocol-relative `//host` values, or userinfo (`@host`) are + rejected with `400` so the request can never be redirected to another host. + + Examples of `endpoint`: + - Google userinfo: `/oauth2/v1/userinfo` + - GitHub repositories: `/user/repos` + - Microsoft Graph profile: `/me` + + The response wraps the provider's raw JSON value with request metadata. + An empty provider body is represented as `data: null`; the envelope + preserves the provider's HTTP status in `status_code`, including errors. + Provider response bodies are limited to 8 MiB after decompression. + Transport failures, invalid JSON (including invalid UTF-8), and oversized + bodies return `502`. Provider redirects to another origin are blocked and + return `400`. + operationId: callOAuthProviderAPI security: - AuthUserAccessToken: [] + parameters: + - name: provider + in: path + required: true + schema: + type: string + enum: + - google + - github + - microsoft + - apple requestBody: required: true content: @@ -9512,656 +11727,672 @@ paths: schema: type: object required: - - user_code + - endpoint properties: - user_code: + endpoint: type: string - action: + description: | + Relative path on the provider's API, beginning with `/`. It is + joined with the provider's fixed base URL; it must not contain a + scheme, host, userinfo, or a leading `//`. + example: /user/repos + method: type: string enum: - - approve - - deny - default: approve + - GET + - POST + default: GET + description: HTTP method to use + body: + type: object + additionalProperties: true + description: Request body for POST requests responses: '200': - description: Verification action accepted + description: Provider API response content: application/json: schema: type: object + description: OAuth provider API response envelope + required: + - provider + - endpoint + - status_code + - data properties: - success: - type: boolean - status: + provider: type: string + enum: + - google + - github + - microsoft + - apple + endpoint: + type: string + status_code: + type: integer + minimum: 100 + maximum: 599 + data: + description: Raw provider JSON value, or null when the provider returns no body + nullable: true + '400': + description: | + Invalid request (for example: missing `endpoint`, an `endpoint` that is + not a relative path, or an unsupported HTTP method), or a provider + redirect to another origin. + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '401': description: Not authenticated content: application/json: schema: $ref: '#/components/schemas/Error' - /auth/platform/exchange: - post: - tags: - - OAuth Authentication - summary: Exchange auth-user device session for platform token - description: | - Exchanges a verified auth-user device-flow session into a platform token for CLI usage. - The target platform user is derived from authenticated auth-user mapping; client cannot select another user. - operationId: authPlatformExchange - security: - - AuthUserAccessToken: [] - requestBody: - required: true - content: - application/json: - schema: - type: object - required: - - client_id - properties: - client_id: - type: string - responses: - '200': - description: Platform token minted + '404': + description: OAuth provider configuration not found content: application/json: schema: - $ref: '#/components/schemas/PlatformExchangeResponse' - '403': - description: | - Exchange not allowed for this session/client/project, or the - account's email domain is not in `allowed_email_domains` while - `allowed_email_domains_mode` is `signup_and_signin`. The domain is - re-checked here because the minted platform token outlives the - session it is exchanged from. + $ref: '#/components/schemas/Error' + '500': + description: Failed to create the provider API request content: application/json: schema: $ref: '#/components/schemas/Error' - /auth/oauth/providers: + '502': + description: Provider transport failure, invalid JSON, or response body larger than 8 MiB + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /projects/{id}/anon-keys: get: tags: - - OAuth Authentication - summary: List user's linked providers - description: Get list of OAuth providers linked to current user - operationId: authListOAuthProviders + - Anon Keys + summary: List anon keys + description: | + Supports two mutually exclusive pagination modes. Offset mode uses `page` + and `limit` and is the default when neither `cursor` nor `search` is + supplied (first page, default `limit`). Cursor mode uses `cursor` and + `limit`, supports `search` (case-insensitive name match), and returns + `next_cursor`. Sending both `page` and `cursor` (or `page` and `search`) + returns 400. + operationId: listAnonKeys security: - - AuthUserAccessToken: [] + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/Limit' + - $ref: '#/components/parameters/Cursor' + - $ref: '#/components/parameters/EndingBefore' + - $ref: '#/components/parameters/Offset' + - $ref: '#/components/parameters/Search' responses: '200': - description: Linked providers + description: List of anon keys content: application/json: schema: type: object properties: - providers: + data: type: array items: - type: object - properties: - provider: - type: string - linked_at: - type: string - format: date-time - updated_at: - type: string - format: date-time - '401': - description: Not authenticated + $ref: '#/components/schemas/AnonKey' + total: + type: integer + description: Total number of items matching the query (so the UI can render numbered pages). + has_more: + type: boolean + description: Whether a next page exists. + next_cursor: + type: string + description: Opaque cursor for the next page (cursor pagination only) + prev_cursor: + type: string + description: Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`. + post: + tags: + - Anon Keys + summary: Create anon key + operationId: createAnonKey + security: + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - name + properties: + name: + type: string + description: | + Key name for identification. + Can only contain letters, numbers, underscores, and hyphens. + pattern: ^[A-Za-z0-9_-]+$ + minLength: 1 + maxLength: 255 + example: frontend-app + permissions: + type: array + items: + type: string + enum: + - auth.signup + - auth.signin + - auth.refresh + - auth.logout + - auth.password_reset + - auth.confirm_email + - auth.resend_confirmation + - storage.upload + - storage.download + - storage.list + - storage.delete + - realtime.connect + - realtime.subscribe + - realtime.publish + - functions.invoke + description: | + Optional list of permissions for this key. + If not provided, defaults to auth-only permissions: auth.signup, auth.signin, auth.refresh, auth.logout, auth.password_reset, auth.confirm_email, auth.resend_confirmation. + Storage, realtime, and functions permissions must be explicitly added if needed. + example: + - auth.signup + - auth.signin + - auth.refresh + - auth.logout + responses: + '201': + description: Anon key created content: application/json: schema: - $ref: '#/components/schemas/Error' - /auth/oauth/{provider}/link: - post: + $ref: '#/components/schemas/AnonKey' + /projects/{id}/anon-keys/{keyId}: + get: tags: - - OAuth Authentication - summary: Link OAuth provider to current user - description: | - Generates authorization URL to link OAuth provider to existing account. - User must be authenticated. - operationId: authLinkOAuthProvider + - Anon Keys + summary: Get anon key + description: Get details of a specific anon key + operationId: getAnonKey security: - - AuthUserAccessToken: [] + - UserToken: [] + - ProjectAccessToken: [] parameters: - - name: provider + - $ref: '#/components/parameters/ProjectId' + - name: keyId in: path required: true schema: type: string - enum: - - google - - github - - microsoft - - apple - - name: redirect_url - in: query - schema: - type: string - description: | - URL to redirect to after linking completes (optional). Same - allowed_redirect_urls requirement as GET /auth/oauth/{provider}/authorize. - - name: client_state - in: query - schema: - type: string - maxLength: 255 - description: | - Optional application nonce echoed to redirect_url as `state`. - - name: response_mode - in: query - schema: - type: string - enum: - - code - description: | - Set to `code` to receive a short-lived authorization code at - redirect_url. `redirect_url` is required in this mode. When - omitted, the established session-fragment response is retained for - compatibility with existing clients. + format: uuid responses: '200': - description: Authorization URL generated - content: - application/json: - schema: - type: object - properties: - authorization_url: - type: string - '400': - description: redirect_url is not registered in allowed_redirect_urls - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '401': - description: Not authenticated + description: Anon key details content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: '#/components/schemas/AnonKey' '404': - description: OAuth provider not configured - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - '409': - description: Provider already linked - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /auth/oauth/{provider}/unlink: + description: Key not found delete: tags: - - OAuth Authentication - summary: Unlink OAuth provider - description: | - Remove OAuth provider from user's account. - Cannot unlink if it's the only authentication method. - operationId: authUnlinkOAuthProvider + - Anon Keys + summary: Revoke anon key + description: Revokes key - it will immediately stop working + operationId: revokeAnonKey security: - - AuthUserAccessToken: [] + - UserToken: [] + - ProjectAccessToken: [] parameters: - - name: provider + - $ref: '#/components/parameters/ProjectId' + - name: keyId in: path required: true schema: type: string - enum: - - google - - github - - microsoft - - apple + format: uuid responses: '204': - description: Provider unlinked - '400': - description: Cannot unlink last authentication method - content: - application/json: - schema: - $ref: '#/components/schemas/Error' + description: Key revoked '401': - description: Not authenticated + description: Unauthorized + '403': + description: Forbidden + '404': + description: Key not found + '409': + description: Cannot delete the project's default anon key content: application/json: schema: $ref: '#/components/schemas/Error' - '404': - description: Provider not linked + '500': + description: Internal server error content: application/json: schema: $ref: '#/components/schemas/Error' - /auth/oauth/{provider}/refresh-token: + /projects/{id}/anon-keys/{keyId}/regenerate: post: tags: - - OAuth Authentication - summary: Refresh OAuth provider token - description: | - Refresh the access token for an OAuth provider using its refresh token. - Allows calling provider APIs on user's behalf (e.g., Google Drive, GitHub repos). - operationId: refreshOAuthProviderToken + - Anon Keys + summary: Regenerate anon key + description: Generate new JWT value for existing key + operationId: regenerateAnonKey security: - - AuthUserAccessToken: [] + - UserToken: [] + - ProjectAccessToken: [] parameters: - - name: provider + - $ref: '#/components/parameters/ProjectId' + - name: keyId in: path required: true schema: type: string - enum: - - google - - github - - microsoft - - apple + format: uuid responses: '200': - description: Token refreshed successfully + description: Key regenerated content: application/json: schema: - type: object - properties: - message: - type: string - provider: - type: string - expires_in: - type: integer - '400': - description: No refresh token available or refresh failed + $ref: '#/components/schemas/AnonKey' + /projects/{id}/anon-keys/{keyId}/set-default: + post: + tags: + - Anon Keys + summary: Set default anon key + description: Promotes the given key to the project's configured default. At most one key per project can be default. + operationId: setDefaultAnonKey + security: + - UserToken: [] + - ProjectAccessToken: [] + parameters: + - $ref: '#/components/parameters/ProjectId' + - name: keyId + in: path + required: true + schema: + type: string + format: uuid + responses: + '200': + description: Key set as default content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: '#/components/schemas/AnonKey' '401': - description: Not authenticated - content: - application/json: - schema: - $ref: '#/components/schemas/Error' + description: Unauthorized + '403': + description: Forbidden '404': - description: Provider not linked + description: Anon key not found + '500': + description: Internal server error content: application/json: schema: $ref: '#/components/schemas/Error' - /auth/oauth/{provider}/token: + /projects/{id}/access-tokens: get: tags: - - OAuth Authentication - summary: Get current provider access token + - Project Access Tokens + summary: List a project's access tokens description: | - Get valid access token for OAuth provider. - Automatically refreshes if expired. - operationId: getOAuthProviderToken + Lists the project's access tokens, newest first. Secrets are never + returned: only a hash is stored, so a token's value exists solely in the + response to the create call. + + Only tokens that can still authenticate are returned by default, so + revoked and expired ones are hidden. Pass `include_revoked=true` to see + them, which is how you find out what a key did before it stopped working. + + Requires a platform token. A project access token cannot manage project + access tokens, so a leaked credential cannot enumerate or replace itself. + operationId: listProjectAccessTokens security: - - AuthUserAccessToken: [] + - UserToken: [] parameters: - - name: provider - in: path - required: true + - $ref: '#/components/parameters/ProjectId' + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/Limit' + - $ref: '#/components/parameters/Search' + - name: include_revoked + in: query + required: false + description: | + Include tokens that can no longer authenticate — both revoked and + expired ones. schema: - type: string - enum: - - google - - github - - microsoft - - apple + type: boolean + default: false responses: '200': - description: Current access token + description: Successful response + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedProjectAccessTokens' + '401': + description: Unauthorized - invalid or missing token content: application/json: schema: - type: object - properties: - message: - type: string - provider: - type: string - expires_in: - type: integer - '401': - description: Not authenticated + $ref: '#/components/schemas/Error' + '403': + description: Forbidden - not the project owner, or a project access token was used content: application/json: schema: $ref: '#/components/schemas/Error' '404': - description: Provider not linked + description: Project not found content: application/json: schema: $ref: '#/components/schemas/Error' - /auth/oauth/{provider}/call-api: post: tags: - - OAuth Authentication - summary: Call OAuth provider API + - Project Access Tokens + summary: Create a project access token description: | - Make an authenticated request to an OAuth provider's API on behalf of the user. - The user's stored access token is automatically used and refreshed if needed. + Creates a project access token and returns its secret. - The request is always sent to the provider's fixed API base URL joined with - the caller-supplied `endpoint`. `endpoint` must be a relative path beginning - with `/` (optionally with a query string); it cannot change the target host. - Absolute URLs, protocol-relative `//host` values, or userinfo (`@host`) are - rejected with `400` so the request can never be redirected to another host. + The secret is in this response and nowhere else. Only its hash is + stored, so it cannot be retrieved, displayed, or recovered later — save + it when you create it. - Examples of `endpoint`: - - Google userinfo: `/oauth2/v1/userinfo` - - GitHub repositories: `/user/repos` - - Microsoft Graph profile: `/me` + The name must be unique within the project, so a retry cannot mint a + second credential. It cannot recover the first one either. A retry that + returns `409` with code `access_token_name_exists` means the original + create committed and its secret is unrecoverable: list the project's + tokens, revoke the one holding that name, and create it again. - The response is the raw JSON response from the provider's API. - operationId: callOAuthProviderAPI + Requires a platform token. + operationId: createProjectAccessToken security: - - AuthUserAccessToken: [] + - UserToken: [] parameters: - - name: provider - in: path - required: true - schema: - type: string - enum: - - google - - github - - microsoft - - apple + - $ref: '#/components/parameters/ProjectId' requestBody: required: true content: application/json: schema: - type: object - required: - - endpoint - properties: - endpoint: - type: string - description: | - Relative path on the provider's API, beginning with `/`. It is - joined with the provider's fixed base URL; it must not contain a - scheme, host, userinfo, or a leading `//`. - example: /user/repos - method: - type: string - enum: - - GET - - POST - default: GET - description: HTTP method to use - body: - type: object - additionalProperties: true - description: Request body for POST requests + $ref: '#/components/schemas/CreateProjectAccessTokenRequest' responses: - '200': - description: Provider API response + '201': + description: Token created - save the secret now, it cannot be retrieved again content: application/json: schema: - type: object - additionalProperties: true - description: Raw response from the OAuth provider's API + $ref: '#/components/schemas/CreatedProjectAccessToken' '400': - description: | - Invalid request (for example: missing `endpoint`, an `endpoint` that is - not a relative path, or an unsupported HTTP method). + description: Bad request - invalid name, scope, or expiry content: application/json: schema: $ref: '#/components/schemas/Error' '401': - description: Not authenticated or provider not linked + description: Unauthorized - invalid or missing token content: application/json: schema: $ref: '#/components/schemas/Error' - '502': - description: Provider API error + '403': + description: Forbidden - not the project owner, or a project access token was used content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/anon-keys: + '404': + description: Project not found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '409': + description: | + Duplicate name, token limit reached, or the project is being + deleted. Tell them apart with `code`, which is one of + `access_token_name_exists`, `access_token_limit_reached`, or + `project_deleting` — the message text is not a contract. + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /projects/{id}/access-tokens/usage: get: tags: - - Anon Keys - summary: List anon keys + - Project Access Tokens + summary: Per-day request counts for every access token in a project description: | - Supports two mutually exclusive pagination modes. Offset mode uses `page` - and `limit` and is the default when neither `cursor` nor `search` is - supplied (first page, default `limit`). Cursor mode uses `cursor` and - `limit`, supports `search` (case-insensitive name match), and returns - `next_cursor`. Sending both `page` and `cursor` (or `page` and `search`) - returns 400. - operationId: listAnonKeys + Returns a zero-filled daily series of request counts for each of the + project's access tokens, oldest first. Every day in the window is + present, so a gap reads as zero rather than missing. + + Revoked tokens are included, because the traffic they made before + revocation is usually the reason you are looking. + + `days` defaults to 30 and is capped at 60, which is also how long per-day + counts are retained — a longer window cannot be answered. + + A platform token sees every token in the project. A project access token + sees only its own row, so it can watch its own traffic without being + able to enumerate the project's other credentials by name. + operationId: listProjectAccessTokensUsage security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - $ref: '#/components/parameters/Page' - - $ref: '#/components/parameters/Limit' - - $ref: '#/components/parameters/Cursor' - - $ref: '#/components/parameters/EndingBefore' - - $ref: '#/components/parameters/Offset' - - $ref: '#/components/parameters/Search' + - name: days + in: query + required: false + description: Number of trailing days to return (1-60, default 30). + schema: + type: integer + minimum: 1 + maximum: 60 + default: 30 responses: '200': - description: List of anon keys + description: Successful response content: application/json: schema: - type: object - properties: - data: - type: array - items: - $ref: '#/components/schemas/AnonKey' - total: - type: integer - description: Total number of items matching the query (so the UI can render numbered pages). - has_more: - type: boolean - description: Whether a next page exists. - next_cursor: - type: string - description: Opaque cursor for the next page (cursor pagination only) - prev_cursor: - type: string - description: Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`. - post: - tags: - - Anon Keys - summary: Create anon key - operationId: createAnonKey - security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - requestBody: - required: true - content: - application/json: - schema: - type: object - required: - - name - properties: - name: - type: string - description: | - Key name for identification. - Can only contain letters, numbers, underscores, and hyphens. - pattern: ^[A-Za-z0-9_-]+$ - minLength: 1 - maxLength: 255 - example: frontend-app - permissions: - type: array - items: - type: string - enum: - - auth.signup - - auth.signin - - auth.refresh - - auth.logout - - auth.password_reset - - auth.confirm_email - - auth.resend_confirmation - - storage.upload - - storage.download - - storage.list - - storage.delete - - realtime.connect - - realtime.subscribe - - realtime.publish - - functions.invoke - description: | - Optional list of permissions for this key. - If not provided, defaults to auth-only permissions: auth.signup, auth.signin, auth.refresh, auth.logout, auth.password_reset, auth.confirm_email, auth.resend_confirmation. - Storage, realtime, and functions permissions must be explicitly added if needed. - example: - - auth.signup - - auth.signin - - auth.refresh - - auth.logout - responses: - '201': - description: Anon key created + type: array + items: + $ref: '#/components/schemas/ProjectAccessTokenUsage' + '400': + description: Bad request - invalid window content: application/json: schema: - $ref: '#/components/schemas/AnonKey' - /projects/{id}/anon-keys/{keyId}: + $ref: '#/components/schemas/Error' + '401': + description: Unauthorized - invalid or missing token + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '403': + description: Forbidden - not the project owner + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '404': + description: Project not found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /projects/{id}/access-tokens/{tokenId}: get: - tags: - - Anon Keys - summary: Get anon key - description: Get details of a specific anon key - operationId: getAnonKey + tags: + - Project Access Tokens + summary: Get a project access token + description: | + Returns one token's metadata. Never its secret, which is not stored in a + recoverable form. + + Requires a platform token. + operationId: getProjectAccessToken security: - UserToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - name: keyId - in: path - required: true - schema: - type: string - format: uuid + - $ref: '#/components/parameters/TokenId' responses: '200': - description: Anon key details + description: Successful response content: application/json: schema: - $ref: '#/components/schemas/AnonKey' + $ref: '#/components/schemas/ProjectAccessToken' + '401': + description: Unauthorized - invalid or missing token + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '403': + description: Forbidden - not the project owner, or a project access token was used + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '404': - description: Key not found + description: Token not found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' delete: tags: - - Anon Keys - summary: Revoke anon key - description: Revokes key - it will immediately stop working - operationId: revokeAnonKey + - Project Access Tokens + summary: Revoke a project access token + description: | + Revokes the token. It stops authenticating immediately in the region + handling this call and within seconds across Volcano's other regions. + + The record is kept rather than deleted, so the token's name, prefix, last + use, and request history stay available — which is what you need if you + are revoking because a secret leaked. Revoking an already-revoked token + succeeds. + + Revoking does not undo anything the token already did. Treat whatever it + could reach as exposed and rotate accordingly. + + Requires a platform token. + operationId: revokeProjectAccessToken security: - UserToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - name: keyId - in: path - required: true - schema: - type: string - format: uuid + - $ref: '#/components/parameters/TokenId' responses: '204': - description: Key revoked + description: Token revoked '401': - description: Unauthorized + description: Unauthorized - invalid or missing token + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '403': - description: Forbidden + description: Forbidden - not the project owner, or a project access token was used + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '404': - description: Key not found - '409': - description: Cannot delete the project's default anon key + description: Token not found content: application/json: schema: $ref: '#/components/schemas/Error' - '500': - description: Internal server error + '409': + description: Conflict - the project is being deleted content: application/json: schema: $ref: '#/components/schemas/Error' - /projects/{id}/anon-keys/{keyId}/regenerate: - post: + /projects/{id}/access-tokens/{tokenId}/usage: + get: tags: - - Anon Keys - summary: Regenerate anon key - description: Generate new JWT value for existing key - operationId: regenerateAnonKey + - Project Access Tokens + summary: Per-day request counts for one access token + description: | + Returns a zero-filled daily series of request counts for a single token, + oldest first, so the response always has exactly `days` entries. + + `days` defaults to 30 and is capped at 60, matching how long per-day + counts are retained. + + A project access token may read only its own usage; asking for another + token's returns `403`. A platform token may read any token in the + project. + operationId: getProjectAccessTokenUsage security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - - name: keyId - in: path - required: true + - $ref: '#/components/parameters/TokenId' + - name: days + in: query + required: false + description: Number of trailing days to return (1-60, default 30). schema: - type: string - format: uuid + type: integer + minimum: 1 + maximum: 60 + default: 30 responses: '200': - description: Key regenerated + description: Successful response content: application/json: schema: - $ref: '#/components/schemas/AnonKey' - /projects/{id}/anon-keys/{keyId}/set-default: - post: - tags: - - Anon Keys - summary: Set default anon key - description: Promotes the given key to the project's configured default. At most one key per project can be default. - operationId: setDefaultAnonKey - security: - - UserToken: [] - parameters: - - $ref: '#/components/parameters/ProjectId' - - name: keyId - in: path - required: true - schema: - type: string - format: uuid - responses: - '200': - description: Key set as default + $ref: '#/components/schemas/ProjectAccessTokenUsage' + '400': + description: Bad request - invalid window content: application/json: schema: - $ref: '#/components/schemas/AnonKey' + $ref: '#/components/schemas/Error' '401': - description: Unauthorized + description: Unauthorized - invalid or missing token + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '403': - description: Forbidden + description: Forbidden - not the project owner + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '404': - description: Anon key not found - '500': - description: Internal server error + description: Token not found content: application/json: schema: @@ -10178,6 +12409,7 @@ paths: operationId: listServiceKeys security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - $ref: '#/components/parameters/Page' @@ -10205,6 +12437,7 @@ paths: operationId: createServiceKey security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' requestBody: @@ -10257,6 +12490,7 @@ paths: operationId: getServiceKey security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - name: keyId @@ -10284,6 +12518,7 @@ paths: operationId: deleteServiceKey security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - name: keyId @@ -10302,11 +12537,12 @@ paths: summary: Regenerate service key description: | Generate new JWT value for existing key. - The old key is immediately invalidated. + The old key stops working within a few seconds. Update your backend services with the new key before regenerating in production. operationId: regenerateServiceKey security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - name: keyId @@ -10335,6 +12571,7 @@ paths: operationId: listStorageBuckets security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - $ref: '#/components/parameters/Limit' @@ -10362,6 +12599,7 @@ paths: operationId: createStorageBucket security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' requestBody: @@ -10387,6 +12625,7 @@ paths: operationId: getStorageBucket security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - $ref: '#/components/parameters/BucketName' @@ -10406,6 +12645,7 @@ paths: operationId: updateStorageBucket security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - $ref: '#/components/parameters/BucketName' @@ -10429,6 +12669,7 @@ paths: operationId: deleteStorageBucket security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - $ref: '#/components/parameters/BucketName' @@ -10443,6 +12684,7 @@ paths: operationId: listStoragePolicies security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - $ref: '#/components/parameters/BucketName' @@ -10462,6 +12704,7 @@ paths: operationId: createStoragePolicy security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - $ref: '#/components/parameters/BucketName' @@ -10486,6 +12729,7 @@ paths: operationId: deleteStoragePolicy security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - $ref: '#/components/parameters/BucketName' @@ -10509,6 +12753,7 @@ paths: operationId: listStorageObjectsAdmin security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' - name: owner_id @@ -10571,6 +12816,7 @@ paths: operationId: getStorageStats security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' responses: @@ -10589,6 +12835,7 @@ paths: operationId: getRealtimeConfig security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' responses: @@ -10618,6 +12865,7 @@ paths: operationId: updateRealtimeConfig security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' requestBody: @@ -10654,6 +12902,7 @@ paths: operationId: getRealtimeStats security: - UserToken: [] + - ProjectAccessToken: [] parameters: - $ref: '#/components/parameters/ProjectId' responses: @@ -11097,6 +13346,12 @@ paths: **Complete Resumable Session:** Complete a session after all parts are uploaded. Requires: `X-Upload-Session` header with session ID and `X-Upload-Complete: true` header. + + **Resumable Session Ownership:** + A session created with a user access token remains bound to that user. A session + created with an anon key remains bound to that exact anon key. Reuse the same + identity or anon key for part uploads, status, completion, and abort requests; + an ownership mismatch returns `404`. operationId: uploadStorageObject security: - AnonKey: [] @@ -11164,11 +13419,15 @@ paths: - Invalid request body or missing required fields '403': description: Access denied by storage policy + '404': + description: Resumable upload session not found or not owned by this credential '413': description: | File size exceeds plan-based limits. This occurs when: - File exceeds the plan-based maximum file size (FREE or PRO tier) - - Upload would exceed the project's total storage quota + - The account on the FREE plan holds its file-storage allowance. + Enforcement is eventual: uploads are accepted until Volcano's + next allowance check sees the account at its allowance '429': $ref: '#/components/responses/BandwidthCapExceeded' put: @@ -11184,6 +13443,7 @@ paths: - Maximum part size is 25MB - Parts can be uploaded in any order - Re-uploading a part overwrites the previous upload + - Anonymous sessions must reuse the exact anon key that created the session operationId: uploadPart security: - AnonKey: [] @@ -11230,7 +13490,7 @@ paths: '403': description: Access denied '404': - description: Session not found + description: Session not found or not owned by this credential get: tags: - Storage Objects @@ -11243,6 +13503,7 @@ paths: **Session Status (with X-Upload-Session header):** Returns the status of a resumable upload session, including which parts have been uploaded. + Anonymous sessions must reuse the exact anon key that created the session. operationId: downloadStorageObject security: - AnonKey: [] @@ -11300,7 +13561,7 @@ paths: '403': description: Access denied by storage policy '404': - description: Object or session not found + description: Object or session not found, or session not owned by this credential '429': $ref: '#/components/responses/BandwidthCapExceeded' delete: @@ -11315,8 +13576,10 @@ paths: **Abort Session (with X-Upload-Session header):** Aborts a resumable upload session and cleans up any uploaded parts. + Anonymous sessions must reuse the exact anon key that created the session. operationId: deleteStorageObject security: + - AnonKey: [] - ServiceRoleKey: [] - AuthUserAccessToken: [] parameters: @@ -11339,7 +13602,7 @@ paths: '403': description: Access denied by storage policy '404': - description: Object or session not found + description: Object or session not found, or session not owned by this credential '429': $ref: '#/components/responses/BandwidthCapExceeded' /storage/{bucketName}/{path}/visibility: @@ -11451,13 +13714,251 @@ paths: operationId: healthCheck responses: '200': - description: Server is healthy + description: Server is healthy + content: + text/plain: + schema: + type: string + example: OK + /openapi.json: + get: + tags: + - System + summary: Fetch the OpenAPI specification as JSON + description: | + Returns this specification as a self-contained JSON document, with every + reference resolved. It is generated from the same document the server + validates requests against, so a client generated from it cannot + describe a different API than the one that answers. + + No credential is required: a client generator fetches this by URL before + its user has a token, and every path here is already published in the + API reference. + + The response carries a strong `ETag`; send it back as `If-None-Match` to + get `304 Not Modified` instead of the whole document. + operationId: getOpenAPISpecJSON + security: [] + parameters: + - $ref: '#/components/parameters/IfNoneMatch' + responses: + '200': + description: The OpenAPI specification + headers: + ETag: + $ref: '#/components/headers/ETag' + content: + application/json: + schema: + $ref: '#/components/schemas/OpenAPISpecDocument' + '304': + $ref: '#/components/responses/OpenAPISpecNotModified' + '429': + $ref: '#/components/responses/OpenAPISpecThrottled' + head: + tags: + - System + summary: Check the JSON OpenAPI specification + description: | + The headers `GET /openapi.json` would return, so a cache can pick up the + current `ETag` without transferring the document. + operationId: headOpenAPISpecJSON + security: [] + parameters: + - $ref: '#/components/parameters/IfNoneMatch' + responses: + '200': + $ref: '#/components/responses/OpenAPISpecHeaders' + '304': + $ref: '#/components/responses/OpenAPISpecNotModified' + '429': + $ref: '#/components/responses/OpenAPISpecThrottled' + /openapi.yaml: + get: + tags: + - System + summary: Fetch the OpenAPI specification as YAML + description: | + The same document as `/openapi.json`, serialized as YAML for tools that + prefer it. See that operation for caching and authentication notes. + operationId: getOpenAPISpecYAML + security: [] + parameters: + - $ref: '#/components/parameters/IfNoneMatch' + responses: + '200': + description: The OpenAPI specification + headers: + ETag: + $ref: '#/components/headers/ETag' + content: + application/yaml: + schema: + $ref: '#/components/schemas/OpenAPISpecDocument' + '304': + $ref: '#/components/responses/OpenAPISpecNotModified' + '429': + $ref: '#/components/responses/OpenAPISpecThrottled' + head: + tags: + - System + summary: Check the YAML OpenAPI specification + description: | + The headers `GET /openapi.yaml` would return, so a cache can pick up the + current `ETag` without transferring the document. + operationId: headOpenAPISpecYAML + security: [] + parameters: + - $ref: '#/components/parameters/IfNoneMatch' + responses: + '200': + $ref: '#/components/responses/OpenAPISpecHeaders' + '304': + $ref: '#/components/responses/OpenAPISpecNotModified' + '429': + $ref: '#/components/responses/OpenAPISpecThrottled' + /mcp: + post: + tags: + - System + summary: Model Context Protocol endpoint + description: | + Streamable-HTTP MCP endpoint: one JSON-RPC 2.0 object per request, one + response per request. There is no server-to-client stream, so a `GET` + returns `405`, and a batched array is rejected. + + Authenticated with a **project access token**. The endpoint takes its + project from the credential, so a platform token is refused with `403` — + it names no project, and letting a tool argument choose one would hand an + agent its own blast radius. + + Scope carries over from the REST API. A `read_only` token is not offered + mutating tools or credential-returning reads, and is refused if it calls + one anyway. Revoking the token ends MCP access on the same path it ends + API access. + + Methods: `initialize`, `notifications/initialized`, `ping`, + `tools/list`, `tools/call`. See the + [MCP guide](https://docs.volcano.dev/platform/interfaces/mcp) for the + tool surface and client configuration. + operationId: callMCP + security: + - ProjectAccessToken: [] + requestBody: + required: true + content: + application/json: + schema: + type: object + description: A JSON-RPC 2.0 request object. + required: + - jsonrpc + - method + properties: + jsonrpc: + type: string + enum: + - '2.0' + method: + type: string + description: The MCP method to call. + id: + description: | + Request identifier, echoed verbatim. Omit it to send a + notification, which is answered with `202` and no body. + oneOf: + - type: string + - type: integer + params: + type: object + additionalProperties: true + responses: + '200': + description: A JSON-RPC response object content: - text/plain: + application/json: schema: - type: string - example: OK + type: object + required: + - jsonrpc + - id + properties: + jsonrpc: + type: string + enum: + - '2.0' + id: + description: Echoes the request's id. Null when the request could not be read well enough to determine one. + nullable: true + oneOf: + - type: string + - type: integer + result: + type: object + additionalProperties: true + error: + type: object + required: + - code + - message + properties: + code: + type: integer + message: + type: string + '202': + description: A notification was accepted; there is no body + '401': + description: Not authenticated + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '403': + description: | + The credential is valid but may not use this endpoint — most often a + platform token, which names no project. + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '413': + description: The JSON-RPC frame exceeds the 1 MiB limit components: + headers: + ETag: + description: | + Strong validator for the returned document. Send it back as `If-None-Match` + to revalidate without transferring the document again. + required: true + schema: + type: string + example: '"9f2c1e0b5a"' + DatabaseQueryProxyMs: + description: | + Milliseconds Volcano spent before running the query, counted from the + request arriving: authenticating the caller, validating the request, + resolving the database, and building the SQL. Does not include query + execution. Also present when the query itself failed. + schema: + type: integer + minimum: 0 + DatabaseQueryProxyHandlerMs: + description: | + The part of `X-Volcano-Proxy-Ms` spent in the query endpoint itself. + Subtract it from `X-Volcano-Proxy-Ms` to see what authentication and + request validation cost. Also present when the query itself failed. + schema: + type: integer + minimum: 0 + DatabaseQueryComputeMs: + description: | + Milliseconds the database took to run the query and return its rows. + Does not include Volcano's preparation. Also present when the query + itself failed. + schema: + type: integer + minimum: 0 securitySchemes: AnonKey: type: http @@ -11489,11 +13990,15 @@ components: UserToken: type: http scheme: bearer - bearerFormat: JWT + bearerFormat: opaque description: | - Platform user token from the Management API. - Required for project management operations. - Obtain via POST /tokens in Management API (port 8001). + Platform token, which acts on every project in your account. + Obtain one by running `volcano login`, or from the dashboard. + + For CI, scripts, and agents, prefer a project access token + (`pt-`) instead: it reaches only the project it was created in, + so a leak does not expose the rest of your account. See the + ProjectAccessToken scheme. ProjectAccessToken: type: http scheme: bearer @@ -11510,24 +14015,6 @@ components: project access token cannot create, list, read, or revoke project access tokens. parameters: - AccessTokenId: - name: tokenId - in: path - required: true - schema: - type: string - format: uuid - description: Project access token ID - AccessTokenUsageDays: - name: days - in: query - required: false - schema: - type: integer - minimum: 1 - maximum: 60 - default: 30 - description: Number of days to return, counting back from today. BackupName: name: backupName in: path @@ -11610,6 +14097,14 @@ components: type: string format: uuid description: Frontend ID + FrontendFunctionRouteId: + name: routeId + in: path + required: true + schema: + type: string + format: uuid + description: Frontend Function route ID FunctionId: name: functionId in: path @@ -11815,30 +14310,591 @@ components: minLength: 1 maxLength: 256 pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$ - description: Variable name + description: Variable name. Function runtime names such as AWS_REGION are reserved and cannot be updated. + IfNoneMatch: + name: If-None-Match + in: header + required: false + description: | + Entity tag from an earlier response, returning `304 Not Modified` while it + still matches. Accepts the full condition: `*`, a comma-separated list, and + weak tags of the form `W/"tag"`. + schema: + type: string + example: '"9f2c1e0b5a"' responses: + OpenAPISpecThrottled: + description: | + Too many requests for the specification from one address. The document + carries an `ETag`; revalidate with `If-None-Match` rather than + re-fetching it. + headers: + Retry-After: + description: Seconds to wait before requesting the specification again. + schema: + type: integer + content: + application/json: + schema: + $ref: '#/components/schemas/Error' BandwidthCapExceeded: description: | - The platform user exceeded their monthly bandwidth cap (aggregate + The platform user exceeded their billing-cycle bandwidth allowance (aggregate ingress + egress across owned projects). Enforcement is eventual: - requests are rejected until the cap increases (plan/override) or the - calendar-month meter resets. + requests are rejected until the allowance increases or the next + anniversary cycle begins. content: application/json: schema: $ref: '#/components/schemas/Error' DatabaseQueryCapExceeded: description: | - The query was rejected by a monthly usage cap: either the platform user's - bandwidth cap (aggregate ingress + egress across owned projects) or the - project's monthly database-request cap. Enforcement is eventual: queries - are rejected until the relevant cap increases (plan/override) or the - calendar-month meter resets. The error message identifies which cap. + The query was rejected by a billing-cycle allowance: either the owning + platform user's bandwidth allowance (aggregate ingress + egress across + owned projects) or their database-request allowance. Enforcement is + eventual: queries are rejected until the allowance increases or the + next anniversary cycle begins. The error message identifies the resource. + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + DatabaseBranchQueryUnavailable: + description: | + The branch exists but cannot serve queries: it is still provisioning, + being reset, expired, or its parent is being restored. Distinct from + `404` so a caller waiting on a branch can tell it apart from a typo. content: application/json: schema: $ref: '#/components/schemas/Error' + OpenAPISpecNotModified: + description: | + The specification still matches the supplied `If-None-Match`, so no body + is returned. + headers: + ETag: + $ref: '#/components/headers/ETag' + OpenAPISpecHeaders: + description: | + The headers a `GET` would return, without the document. The declared + `ETag` is the one to revalidate against. + headers: + ETag: + $ref: '#/components/headers/ETag' schemas: + SandboxPreset: + type: object + additionalProperties: false + properties: + id: + type: string + runtime: + type: string + version: + type: string + memory_mb: + type: integer + enum: + - 1024 + - 2048 + regions: + type: array + items: + type: string + required: + - id + - runtime + - version + - memory_mb + - regions + SandboxTemplate: + type: object + additionalProperties: false + properties: + id: + type: string + format: uuid + project_id: + type: string + format: uuid + name: + type: string + pattern: ^[a-z][a-z0-9-]{0,62}$ + preset: + type: string + memory_mb: + type: integer + status: + type: string + enum: + - ready + - unavailable + - deleting + created_at: + type: string + format: date-time + required: + - id + - project_id + - name + - status + - created_at + CreateSandboxTemplateRequest: + type: object + additionalProperties: false + properties: + name: + type: string + pattern: ^[a-z][a-z0-9-]{0,62}$ + preset: + type: string + enum: + - python3.12 + - node22 + memory_mb: + type: integer + enum: + - 1024 + - 2048 + default: 1024 + required: + - name + - preset + UpdateSandboxTemplateRequest: + type: object + additionalProperties: false + properties: + name: + type: string + pattern: ^[a-z][a-z0-9-]{0,62}$ + required: + - name + SandboxSession: + type: object + additionalProperties: false + properties: + id: + type: string + format: uuid + project_id: + type: string + format: uuid + sandbox_id: + type: string + format: uuid + state: + type: string + enum: + - starting + - running + - suspending + - suspended + - resuming + - terminating + - terminated + - unknown + desired_state: + type: string + enum: + - running + - suspended + - terminated + region: + type: string + memory_mb: + type: integer + created_at: + type: string + format: date-time + started_at: + type: string + format: date-time + expires_at: + type: string + format: date-time + required: + - id + - project_id + - sandbox_id + - state + - desired_state + - region + - memory_mb + - created_at + - expires_at + CreateSandboxSessionRequest: + type: object + additionalProperties: false + properties: + preset: + type: string + enum: + - python3.12 + - node22 + sandbox_id: + type: string + format: uuid + memory_mb: + type: integer + enum: + - 1024 + - 2048 + region: + type: string + pattern: ^aws-[a-z0-9-]+$ + max_duration_seconds: + type: integer + minimum: 30 + maximum: 28800 + default: 3600 + idle_timeout_seconds: + type: integer + minimum: 0 + maximum: 28800 + default: 0 + required: + - region + oneOf: + - required: + - preset + not: + required: + - sandbox_id + - required: + - sandbox_id + not: + required: + - preset + SandboxCommandRequest: + type: object + additionalProperties: false + properties: + command: + type: string + minLength: 1 + maxLength: 65536 + timeout_seconds: + type: integer + minimum: 1 + maximum: 3600 + default: 60 + environment: + type: object + additionalProperties: + type: string + maxProperties: 64 + required: + - command + SandboxExecutionRequest: + type: object + additionalProperties: false + properties: + preset: + type: string + enum: + - python3.12 + - node22 + sandbox_id: + type: string + format: uuid + memory_mb: + type: integer + enum: + - 1024 + - 2048 + region: + type: string + pattern: ^aws-[a-z0-9-]+$ + command: + type: string + minLength: 1 + maxLength: 65536 + timeout_seconds: + type: integer + minimum: 1 + maximum: 60 + default: 60 + environment: + type: object + additionalProperties: + type: string + maxProperties: 64 + required: + - region + - command + oneOf: + - required: + - preset + not: + required: + - sandbox_id + - required: + - sandbox_id + not: + required: + - preset + SandboxCommandResult: + type: object + additionalProperties: false + properties: + stdout: + type: string + stderr: + type: string + exit_code: + type: integer + stdout_truncated: + type: boolean + stderr_truncated: + type: boolean + timed_out: + type: boolean + required: + - stdout + - stderr + - exit_code + - stdout_truncated + - stderr_truncated + - timed_out + SandboxExecutionResult: + type: object + additionalProperties: false + properties: + stdout: + type: string + stderr: + type: string + exit_code: + type: integer + stdout_truncated: + type: boolean + stderr_truncated: + type: boolean + timed_out: + type: boolean + session_id: + type: string + format: uuid + region: + type: string + duration_ms: + type: integer + format: int64 + minimum: 0 + required: + - stdout + - stderr + - exit_code + - stdout_truncated + - stderr_truncated + - timed_out + - session_id + - region + - duration_ms + SandboxFileWriteRequest: + type: object + additionalProperties: false + properties: + path: + type: string + minLength: 1 + maxLength: 4096 + data: + type: string + format: byte + maxLength: 11184812 + required: + - path + - data + SandboxFileReadRequest: + type: object + additionalProperties: false + properties: + path: + type: string + minLength: 1 + maxLength: 4096 + required: + - path + SandboxFileResult: + type: object + additionalProperties: false + properties: + data: + type: string + format: byte + required: + - data + SandboxSubjectGrantRequest: + type: object + additionalProperties: false + properties: + expires_at: + type: string + format: date-time + required: + - expires_at + SandboxAccessRequest: + type: object + additionalProperties: false + properties: + port: + type: integer + minimum: 1 + maximum: 65532 + expires_in_seconds: + type: integer + minimum: 1 + maximum: 300 + default: 300 + required: + - port + SandboxAccess: + type: object + additionalProperties: false + properties: + url: + type: string + format: uri + token: + type: string + expires_at: + type: string + format: date-time + required: + - url + - token + - expires_at + SandboxDeployment: + type: object + additionalProperties: false + properties: + id: + type: string + format: uuid + status: + type: string + created_at: + type: string + format: date-time + updated_at: + type: string + format: date-time + required: + - id + - status + - created_at + - updated_at + SandboxPagination: + type: object + additionalProperties: false + properties: + limit: + type: integer + has_more: + type: boolean + next_cursor: + type: string + required: + - limit + - has_more + SandboxTemplatePage: + type: object + additionalProperties: false + properties: + data: + type: array + items: + $ref: '#/components/schemas/SandboxTemplate' + pagination: + $ref: '#/components/schemas/SandboxPagination' + required: + - data + - pagination + SandboxSessionPage: + type: object + additionalProperties: false + properties: + data: + type: array + items: + $ref: '#/components/schemas/SandboxSession' + pagination: + $ref: '#/components/schemas/SandboxPagination' + required: + - data + - pagination + SandboxDeploymentPage: + type: object + additionalProperties: false + properties: + data: + type: array + items: + $ref: '#/components/schemas/SandboxDeployment' + pagination: + $ref: '#/components/schemas/SandboxPagination' + required: + - data + - pagination + SandboxPresetList: + type: object + additionalProperties: false + properties: + data: + type: array + items: + $ref: '#/components/schemas/SandboxPreset' + required: + - data + SandboxCapacity: + type: object + additionalProperties: false + properties: + region: + type: string + allocated_memory_mb: + type: integer + format: int64 + minimum: 0 + required: + - region + - allocated_memory_mb + SandboxCapacityList: + type: object + additionalProperties: false + properties: + data: + type: array + items: + $ref: '#/components/schemas/SandboxCapacity' + required: + - data + PublishSandboxPresetRequest: + type: object + additionalProperties: false + properties: + id: + type: string + format: uuid + preset: + type: string + enum: + - python3.12 + - node22 + memory_mb: + type: integer + enum: + - 1024 + - 2048 + deployment_id: + type: string + format: uuid + required: + - id + - preset + - memory_mb + - deployment_id AnonKey: type: object properties: @@ -12189,6 +15245,91 @@ components: updated_at: type: string format: date-time + AuthPageAppearanceResponse: + type: object + required: + - theme + - layouts + - customisation_allowed + - parked + - defaults + - options + properties: + theme: + $ref: '#/components/schemas/AuthPageTheme' + layouts: + type: object + additionalProperties: + $ref: '#/components/schemas/AuthPageLayout' + customisation_allowed: + type: boolean + parked: + type: object + additionalProperties: + type: boolean + description: Per-page saved-but-not-live state. + defaults: + $ref: '#/components/schemas/AuthPageAppearanceDefaults' + options: + $ref: '#/components/schemas/AuthPageAppearanceOptions' + AuthPageDensity: + type: string + enum: + - compact + - comfortable + - spacious + AuthPageFont: + type: string + enum: + - system + - humanist + - geometric + - slab + - mono + AuthPageLayout: + type: string + enum: + - centered + - split-left + - split-right + AuthPageRadius: + type: string + enum: + - none + - small + - medium + - large + AuthPageScale: + type: string + enum: + - small + - default + - large + AuthPageTheme: + type: object + additionalProperties: false + required: + - version + - colors + - font + - scale + - density + - radius + properties: + version: + type: integer + enum: + - 1 + colors: + $ref: '#/components/schemas/AuthPageThemeColors' + font: + $ref: '#/components/schemas/AuthPageFont' + scale: + $ref: '#/components/schemas/AuthPageScale' + density: + $ref: '#/components/schemas/AuthPageDensity' + radius: + $ref: '#/components/schemas/AuthPageRadius' AuthHostedPageResponse: type: object required: @@ -12619,9 +15760,15 @@ components: properties: backup_name: type: string - description: A backup of this database to restore. - pattern: ^[a-z0-9][a-z0-9_-]{0,62}$ - maxLength: 63 + minLength: 1 + maxLength: 128 + description: | + A backup of this database to restore, exactly as returned by the list + endpoint. + + Deliberately looser than the names you can create, like the backup + path parameter: a backup made by a schedule is named for you, so + restoring one accepts any name a backup can have. example: before_migration restore_to: type: string @@ -12647,17 +15794,12 @@ components: example: my_database region: type: string - description: Region for database hosting + description: | + Region for database hosting. The accepted values are the regions this + environment runs in, so read them from `GET /databases/regions` rather + than hardcoding a list. A region the environment does not offer is + rejected with 400. example: aws-us-east-1 - enum: - - aws-us-east-1 - - aws-us-east-2 - - aws-us-west-2 - - aws-eu-central-1 - - aws-eu-west-2 - - aws-ap-southeast-1 - - aws-ap-southeast-2 - - aws-sa-east-1 pg_version: type: string description: PostgreSQL major version @@ -12784,23 +15926,6 @@ components: - email - profile description: Optional for non-device providers, uses provider defaults if omitted. Not used for `provider=device`. - CreateProjectAccessTokenRequest: - type: object - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: Unique within the project. Creating a duplicate returns 409. - scope: - $ref: '#/components/schemas/ProjectAccessTokenScope' - expires_at: - type: string - format: date-time - description: Omit for a token that does not expire. - required: - - name - - scope CreateProjectRequest: type: object description: Request to create a new project @@ -12929,8 +16054,12 @@ components: CreateVariableRequest: type: object properties: + shared: + type: boolean + description: Include this name in the project's shared function variables. Omission preserves existing membership; new variables default to true for legacy clients. Send false explicitly to create a non-shared variable. name: type: string + description: Project variable name. Function runtime names such as AWS_REGION are reserved and return 400; see the environment variables guide for the full list. minLength: 1 maxLength: 256 pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$ @@ -13484,8 +16613,12 @@ components: DatabaseRestoreWindow: type: object description: | - The span a point-in-time restore may target. Empty when the owner's plan - does not include point-in-time restore. + The span a point-in-time restore may target. Absent from the response + when the owner's plan does not include point-in-time restore, and while + the storage provider has no history window in place yet — briefly the + case after an upgrade, since the window is applied asynchronously. The + window is read from the provider rather than from the plan, so it never + advertises a point a restore could not actually reach. properties: earliest_restore_at: type: string @@ -14173,11 +17306,15 @@ components: type: string private: type: boolean + is_empty: + type: boolean + description: Whether the repository has no commits and can receive an initial source export. required: - id - full_name - default_branch - private + - is_empty GitRepositoriesResponse: type: object properties: @@ -14308,37 +17445,107 @@ components: format: int64 description: Current holder's fencing token. Present only when held. required: - - held - CreateProjectGitRepositoryRequest: + - held + ProjectSourceExportState: + type: object + description: The project's source of truth and any pending Git transition. + properties: + mode: + type: string + enum: + - platform + - git_exporting + - git_pending + - git + transition_started_at: + type: string + format: date-time + nullable: true + description: When source export started, cleared if an incomplete transition is canceled. + exported_at: + type: string + format: date-time + nullable: true + description: When the initial export push entered deployment, or when a transition was canceled after its commit was reserved. Once set, the one-time export is consumed. + handed_over_at: + type: string + format: date-time + nullable: true + description: When a complete production-branch deployment first proved the repository could drive the project, null until then. Once set, the repository is the project's source of truth. + required: + - mode + - transition_started_at + - exported_at + - handed_over_at + ProjectSourceExport: + type: object + description: The initial production-branch commit, and everything export could not carry. + properties: + repo_full_name: + type: string + branch: + type: string + description: The production branch that was created. + commit_sha: + type: string + file_count: + type: integer + skipped: + type: array + description: Resources whose source could not be taken, with the reason. Most often a resource that has never deployed successfully. + items: + $ref: '#/components/schemas/ProjectSourceExportSkip' + omitted: + type: array + description: Things deliberately left out of the branch. + items: + $ref: '#/components/schemas/ProjectSourceExportOmission' + required: + - repo_full_name + - branch + - commit_sha + - file_count + - skipped + - omitted + ExportProjectSourceRequest: + type: object + additionalProperties: false + properties: + production_branch: + type: string + minLength: 1 + description: The currently configured production branch the user confirmed for export. + required: + - production_branch + ProjectSourceExportSkip: type: object properties: - owner: + kind: type: string - maxLength: 39 - pattern: ^[A-Za-z0-9-]+$ - description: GitHub account to create the repository under, as returned in account_login by /user/git/connections/{id}/installations. Omit for the connected user's own account. Must be an organization the app is installed on, or your own account. + description: 'The kind of resource, "function" or "frontend". Deliberately not an enum: the generated constants would collide with an existing resource-type enum and rename its members.' name: type: string - minLength: 1 - maxLength: 100 - description: Repository name, unique within the owner account. - private: - type: boolean - default: true - description: 'Whether the new repository is private. Defaults to true: the next step is pushing the project''s source into it, so an omitted field must not publish it.' - description: + reason: type: string - maxLength: 350 - description: Repository description shown on GitHub. - root_directory: + required: + - kind + - name + - reason + ProjectSourceExportOmission: + type: object + properties: + kind: type: string - description: Monorepo subdirectory the project builds from, as a relative path inside the repository. Omit for the repo root. Absolute paths and ".." traversal are rejected before the repository is created, because the build applies the same rule and nothing would deploy. - production_branch: + description: 'What was left out: migrations Volcano stores no copy of, variable values, a credential-shaped file, installed dependencies, or an archive entry a repository cannot carry.' + resource: + type: string + description: The resource it came from, empty when project-wide. + path: type: string - maxLength: 255 - description: 'The branch to deploy from — name the one you are about to push. The repository is created empty, so it has no real default branch to follow: omitting this binds whatever branch name GitHub reports for the new repository (falling back to "main" if it reports none), which is the account''s configured default and a prediction, and pushing anything else then deploys nothing. Naming the branch GitHub already reports is not treated as pinning it, so the project still tracks a later default-branch rename; naming any other branch pins it. Rejected before the repository is created if it is not a valid Git branch name; it does not have to exist.' required: - - name + - kind + - resource + - path SetProjectGitProductionBranchRequest: type: object properties: @@ -14349,33 +17556,6 @@ components: description: The branch a push must land on to deploy. Validated as a Git branch name only — it does not have to exist yet. required: - production_branch - CreatedProjectAccessToken: - allOf: - - $ref: '#/components/schemas/ProjectAccessToken' - - type: object - properties: - token: - type: string - description: | - The secret. Returned only here, and not recoverable afterwards: - the server stores a hash rather than the value. Save it now. - required: - - token - CreatedProjectGitConnection: - type: object - description: A newly created repository's project binding, plus whether the Volcano GitHub App can actually see it. - properties: - connection: - $ref: '#/components/schemas/ProjectGitConnection' - app_installed: - type: boolean - description: Whether the App installation covers the new repository. False means the binding is complete but no push will deploy until the user grants access at install_url. An installation scoped to selected repositories never picks up a new repo on its own. - install_url: - type: string - description: Where the user grants the App access to the new repository. Present only when app_installed is false. - required: - - connection - - app_installed ConnectProjectGitRequest: type: object properties: @@ -14411,8 +17591,9 @@ components: type: string enum: - all + - shared - scoped - description: All preserves access to all project variables. Scoped includes only explicitly declared variables in builds and runtime. Omission preserves the stored selection. + description: All preserves access to all project variables. Shared includes the project frontend shared-variable list. Scoped includes only explicitly declared variables in builds and runtime. Omission preserves the stored selection. declared_variables: type: array uniqueItems: true @@ -14503,6 +17684,72 @@ components: - deployed_regions - created_at - updated_at + FrontendFunctionRoute: + type: object + additionalProperties: false + properties: + id: + type: string + format: uuid + project_id: + type: string + format: uuid + frontend_id: + type: string + format: uuid + function_id: + type: string + format: uuid + path_prefix: + type: string + minLength: 2 + maxLength: 512 + pattern: ^/[^?#\\]*[^/?#\\]$ + strip_prefix: + type: boolean + created_at: + type: string + format: date-time + updated_at: + type: string + format: date-time + required: + - id + - project_id + - frontend_id + - function_id + - path_prefix + - strip_prefix + - created_at + - updated_at + FrontendFunctionRouteList: + type: object + additionalProperties: false + properties: + data: + type: array + items: + $ref: '#/components/schemas/FrontendFunctionRoute' + required: + - data + CreateFrontendFunctionRouteRequest: + type: object + additionalProperties: false + properties: + function_id: + type: string + format: uuid + path_prefix: + type: string + minLength: 2 + maxLength: 512 + pattern: ^/[^?#\\]*[^/?#\\]$ + strip_prefix: + type: boolean + default: false + required: + - function_id + - path_prefix FrontendCustomDomainResponse: type: object properties: @@ -14680,88 +17927,299 @@ components: properties: name: type: string - type: - type: string - value: + type: + type: string + value: + type: string + required: + - name + - type + - value + FrontendUsageDailyEntry: + type: object + description: One day of request and error counts for a single frontend. + properties: + day: + type: string + format: date + description: UTC date (YYYY-MM-DD) the counts cover. + requests: + type: integer + format: int64 + description: Total requests served on this day. + errors: + type: integer + format: int64 + description: 5xx responses served on this day. + page_views: + type: integer + format: int64 + description: Navigable-document responses served on this day (text/html or Sec-Fetch-Dest=document) — strict subset of `requests`. + required: + - day + - requests + - errors + - page_views + FrontendUsageData: + type: object + description: Monthly frontend request totals grouped by frontend. + properties: + frontend_id: + type: string + format: uuid + description: Frontend ID + frontend_name: + type: string + description: Frontend name at the time usage was fetched + nullable: true + requests: + type: integer + format: int64 + description: Total requests for this frontend in the current usage month + required: + - frontend_id + - requests + FrontendUsageHistoryResponse: + type: object + description: Zero-filled daily series of request + error counts for a single frontend, oldest first. + properties: + frontend_id: + type: string + format: uuid + days: + type: integer + description: Number of daily entries returned (always equal to the `days` query param after clamping). + daily: + type: array + items: + $ref: '#/components/schemas/FrontendUsageDailyEntry' + total_requests: + type: integer + format: int64 + total_errors: + type: integer + format: int64 + total_page_views: + type: integer + format: int64 + required: + - frontend_id + - days + - daily + - total_requests + - total_errors + - total_page_views + ProjectAccessToken: + type: object + description: | + A project access token: a control-plane credential bound to a single + project. Unlike a platform token, which acts on every project its owner + has, this one is limited to the project it was created in. + + The secret itself is never returned here. Only its hash is stored, so + the plaintext exists solely in the response to the create call. + properties: + id: + type: string + format: uuid + project_id: + type: string + format: uuid + name: + type: string + description: Unique per project. + token_prefix: + type: string + description: First 12 characters of the secret, for recognising a token in a list. + scope: + $ref: '#/components/schemas/ProjectAccessTokenScope' + status: + type: string + enum: + - active + - revoked + - expired + description: | + `revoked` means the token was deliberately revoked, by you or by the + deletion of its project. `expired` means it simply reached + `expires_at`; nothing was taken away. Both are refused, and both keep + their record so a token's name, prefix, last use, and request history + remain available after a leak. + + A token revoked before its expiry passed stays `revoked`, because + that is the fact worth keeping. + token_source: + type: string + enum: + - api + - cli + - dashboard + description: What created the token. + expires_at: + type: string + format: date-time + nullable: true + description: Absent for a token that does not expire. + last_used_at: + type: string + format: date-time + nullable: true + description: Updated at most once every few minutes, so it may lag slightly. + created_at: + type: string + format: date-time + all_time_requests: + type: integer + format: int64 + description: Requests authenticated with this token since it was created. + required: + - id + - project_id + - name + - token_prefix + - scope + - status + - token_source + - created_at + - all_time_requests + ProjectAccessTokenScope: + type: string + description: | + What a project access token may do within its project. + + `full` is everything you can do to that one project, up to and including + deleting it. It cannot manage access tokens, so a leaked token cannot + mint a replacement or erase the record of its own use, but for a CI or + agent credential that only deploys, prefer `read_only` where the job + allows it. + + `read_only` refuses mutations. It is enforced by route classification + rather than HTTP method, so the log and metrics query endpoints remain + available even though they are POST requests that carry body filters. + + `read_only` also refuses the reads that return a credential — service + keys, anon keys, variable values, and database connection strings. Those + grant write access over the project's data and keep working after the + token that fetched them is revoked, so returning one to a read-only + credential would make the scope a formality. An anon key is included + because its permissions are chosen per key and may include uploading, + deleting, and publishing. + enum: + - full + - read_only + x-enum-varnames: + - ProjectAccessTokenScopeFull + - ProjectAccessTokenScopeReadOnly + CreateProjectAccessTokenRequest: + type: object + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: | + Held by any of the project's tokens you have not revoked, including + one that has expired. Creating a duplicate returns 409 with code + `access_token_name_exists`; revoking the holder frees the name, so a + rotation can keep the name its caller already references. + scope: + $ref: '#/components/schemas/ProjectAccessTokenScope' + expires_at: type: string + format: date-time + description: Omit for a token that does not expire. required: - name - - type - - value - FrontendUsageDailyEntry: + - scope + CreatedProjectAccessToken: + allOf: + - $ref: '#/components/schemas/ProjectAccessToken' + - type: object + properties: + token: + type: string + description: | + The secret. Returned only here, and not recoverable afterwards: + the server stores a hash rather than the value. Save it now. + required: + - token + PaginatedProjectAccessTokens: type: object - description: One day of request and error counts for a single frontend. properties: - day: - type: string - format: date - description: UTC date (YYYY-MM-DD) the counts cover. - requests: + data: + type: array + items: + $ref: '#/components/schemas/ProjectAccessToken' + page: type: integer - format: int64 - description: Total requests served on this day. - errors: + limit: type: integer - format: int64 - description: 5xx responses served on this day. - page_views: + total: type: integer - format: int64 - description: Navigable-document responses served on this day (text/html or Sec-Fetch-Dest=document) — strict subset of `requests`. + has_more: + type: boolean + next: + type: string required: - - day - - requests - - errors - - page_views - FrontendUsageData: + - data + - page + - limit + - total + - has_more + ProjectAccessTokenUsage: type: object - description: Monthly frontend request totals grouped by frontend. + description: | + Zero-filled daily request counts for a single token, oldest first. Every + day in the window is present, so a gap reads as zero rather than missing. + + Counts every request the token authenticated, including ones then + refused — a read-only token attempting a write, or a token presented on + another project's route. That is deliberate: after a leak, the probing + is the part you want to see, and a counter that hid it would make a + token look idle while it was being tried. properties: - frontend_id: + token_id: type: string format: uuid - description: Frontend ID - frontend_name: + name: type: string - description: Frontend name at the time usage was fetched - nullable: true - requests: - type: integer - format: int64 - description: Total requests for this frontend in the current usage month - required: - - frontend_id - - requests - FrontendUsageHistoryResponse: - type: object - description: Zero-filled daily series of request + error counts for a single frontend, oldest first. - properties: - frontend_id: + token_prefix: type: string - format: uuid + description: | + The token's display prefix, which identifies the credential when its + name does not. Revoking frees a name, so a project that rotated + `ci-deploy` has two entries here both called `ci-deploy`. Not usable + as a credential. days: type: integer - description: Number of daily entries returned (always equal to the `days` query param after clamping). + description: Number of daily entries returned, always equal to the requested window. daily: type: array items: - $ref: '#/components/schemas/FrontendUsageDailyEntry' + $ref: '#/components/schemas/ProjectAccessTokenUsageDailyEntry' total_requests: type: integer format: int64 - total_errors: - type: integer - format: int64 - total_page_views: - type: integer - format: int64 required: - - frontend_id + - token_id + - name + - token_prefix - days - daily - total_requests - - total_errors - - total_page_views + ProjectAccessTokenUsageDailyEntry: + type: object + properties: + day: + type: string + format: date + description: UTC day. + requests: + type: integer + format: int64 + required: + - day + - requests Function: type: object properties: @@ -14792,11 +18250,23 @@ components: Function visibility for anon-key invocation. - `false` (default): only auth user tokens and service keys can invoke - `true`: anon keys with `functions.invoke` can invoke + invocation_mode: + $ref: '#/components/schemas/FunctionInvocationMode' + http_auth_mode: + $ref: '#/components/schemas/FunctionHTTPAuthMode' + openapi_spec: + type: object + nullable: true + additionalProperties: true + description: Optional OpenAPI 3.0 or 3.1 document describing an HTTP-mode function. + has_openapi_spec: + type: boolean + description: Whether OpenAPI metadata is configured; list responses omit the document itself. aws_function_arn: type: string invoke_url: type: string - description: Canonical GeoDNS endpoint URL for invoking this function (always HTTPS) + description: 'Canonical geo-routed HTTPS endpoint for invoking this function. Use it as-is: it does not share a domain with the API, so a host derived from the API URL will not reach the function. Omitted when the deployment serves no public invocation domain, as in local development, so a client testing for an empty string never matches.' deployed_regions: type: array items: @@ -14830,27 +18300,13 @@ components: - name - status - is_public + - invocation_mode + - http_auth_mode + - openapi_spec + - has_openapi_spec - deployed_regions - created_at - updated_at - DurableFunctionConfig: - type: object - description: | - Execution limits the function was created with, derived from the - project's plan. Fixed for the life of the function: changing them means - creating a new one. - properties: - execution_timeout_seconds: - type: integer - format: int64 - description: How long a single execution may run before it is timed out. - retention_days: - type: integer - format: int64 - description: How long a finished execution's result and history are retained. - required: - - execution_timeout_seconds - - retention_days DurableFunction: type: object description: | @@ -14937,43 +18393,36 @@ components: - deployed_regions - created_at - updated_at - DurableExecutionStatus: - type: string - enum: - - pending - - running - - succeeded - - failed - - timed_out - - stopped - - unknown + DurableFunctionConfig: + type: object description: | - Lifecycle state of an execution. `pending` covers the window between the - platform reserving the execution name and the function accepting the - start, and has no counterpart once the execution is under way. - `succeeded`, `failed`, `timed_out`, `stopped` and `unknown` are - terminal. + Execution limits the function was created with, derived from the + project's plan. Fixed for the life of the function: changing them means + creating a new one. - `unknown` means the execution's outcome cannot be established, so no - result or error can be given for it. Either it was under way and was - never seen to finish, or its start failed with a `500` without the - platform establishing whether the execution began — which is why a - name whose start returned an error can later read as `unknown` rather - than not being found. It is terminal because nothing can settle it - later, and it is rare — treat it as an outcome to retry rather than a - state to wait on. A retry under the same name picks this execution back - up instead of starting a second one, and needs a free concurrency slot - because an `unknown` execution has given its own up. `completed_at` on - an `unknown` execution is when the platform gave up, not when the work - ended. - DurableExecutionError: - type: object - description: Why a failed or timed-out execution ended. + The memory the function runs at, and the timeout on one attempt within + an execution, also come from the plan but are not reported here: they + are applied to the deployed function rather than recorded on it. Both + are published per plan in the plans and limits guide. properties: - type: - type: string - message: - type: string + execution_timeout_seconds: + type: integer + format: int64 + description: | + How long a whole execution may run, including time suspended in a + wait. This is not a limit on one attempt: an execution outlives any + single attempt by checkpointing and resuming, and the per-attempt + timeout is the plan's own, smaller number. + retention_days: + type: integer + format: int64 + description: | + How long a finished execution's result and history are retained, for + as long as the function exists. Deleting the function, or its + project, ends retention early and takes the history with it. + required: + - execution_timeout_seconds + - retention_days DurableExecution: type: object properties: @@ -14998,28 +18447,88 @@ components: result: description: | Whatever the function returned, verbatim. Absent while the execution - is still running, and absent once its retention period has lapsed. + is still running, absent when the result was too large to return and + was checkpointed instead, and absent once the retention period has + lapsed. result_expired: type: boolean description: | `true` when the execution is terminal but its result is no longer retained, which distinguishes a discarded result from an empty one. + Shortly after that the execution itself is dropped and reads answer + `404`. + + A result that was checkpointed rather than returned leaves this + unset, so it reads like a function that returned nothing. error: $ref: '#/components/schemas/DurableExecutionError' created_at: type: string - format: date-time - completed_at: + format: date-time + completed_at: + type: string + format: date-time + description: Present once the execution has reached a terminal status. + required: + - id + - function_id + - name + - status + - region + - created_at + DurableExecutionStatus: + type: string + enum: + - pending + - running + - succeeded + - failed + - timed_out + - stopped + - unknown + description: | + Lifecycle state of an execution. `pending` covers the window between the + platform reserving the execution name and the function accepting the + start, and has no counterpart once the execution is under way. + `succeeded`, `failed`, `timed_out`, `stopped` and `unknown` are + terminal. + + `unknown` means the execution's outcome cannot be established, so no + result or error can be given for it. Either it was under way and was + never seen to finish, or its start failed with a `500` without the + platform establishing whether the execution began — which is why a + name whose start returned an error can later read as `unknown` rather + than not being found. It is terminal because nothing can settle it + later, and it is rare — treat it as an outcome to retry rather than a + state to wait on. A retry under the same name picks this execution back + up instead of starting a second one, and needs a free concurrency slot + because an `unknown` execution has given its own up. `completed_at` on + an `unknown` execution is when the platform gave up, not when the work + ended. + DurableExecutionError: + type: object + description: Why a failed or timed-out execution ended. + properties: + type: + type: string + message: type: string - format: date-time - description: Present once the execution has reached a terminal status. - required: - - id - - function_id - - name - - status - - region - - created_at + FunctionInvocationMode: + type: string + enum: + - rpc + - http + description: | + Invocation contract. `rpc` preserves the existing POST `{payload: ...}` contract; + `http` forwards HTTP request semantics to the function runtime. + FunctionHTTPAuthMode: + type: string + enum: + - volcano + - none + description: | + Authentication applied by the HTTP ingress. `none` is valid only for public + HTTP-mode functions and is intended for externally signed webhooks. FunctionDeployment: type: object properties: @@ -15129,16 +18638,16 @@ components: additionalProperties: true LogActivityBucket: type: object - description: Log-event counts for one activity time bucket. + description: Log-event counts for one activity time bucket. The first and last buckets can extend past the requested window; they count only events inside it. properties: start_time: type: string format: date-time - description: Bucket start time. + description: Bucket start time, inclusive. end_time: type: string format: date-time - description: Bucket end time. + description: Bucket end time, exclusive. counts: type: object description: Counts grouped by activity dimension. @@ -15184,16 +18693,16 @@ components: start_time: type: string format: date-time - description: Start time. + description: Start of the window, inclusive. Defaults to 24 hours before `end_time`. end_time: type: string format: date-time - description: End time. + description: End of the window, exclusive. Defaults to now. bucket_count: type: integer minimum: 1 maximum: 96 - description: Number of activity buckets to return. + description: Maximum number of buckets. Defaults to 24. Volcano picks the smallest bucket width from 1s, 2s, 5s, 10s, 15s, 30s, 1m, 2m, 5m, 10m, 15m, 30m, 1h, 2h, 3h, 6h, 12h, 1d, or a whole number of days that covers the window in at most this many buckets. Bucket edges fall on UTC multiples of the width, so they stay fixed as the window moves, and the response can contain fewer buckets. `1` returns one bucket that spans exactly the window. required: - resource LogActivityResponse: @@ -15291,10 +18800,10 @@ components: description: Number of items requested per page. has_more: type: boolean - description: Whether there are more log events available. + description: Whether the search may have more matching log events. A page can hold fewer than `limit` events, or none, while this is true; keep paging until it is false. next_cursor: type: string - description: Opaque cursor for the next page. Send this value as `cursor` on the next request. + description: Opaque cursor for the next page, present while `has_more` is true. Send this value as `cursor` on the next request, even when `data` is empty. required: - data - limit @@ -15318,18 +18827,6 @@ components: type: string example: 🇺🇸 description: Country flag emoji associated with the region's geography. - FunctionKind: - type: string - enum: - - standard - - durable - default: standard - description: | - Which kind of function this is. `standard` runs once per invocation. - `durable` checkpoints its progress and resumes from the last completed - step, and is invoked asynchronously through its own executions - collection. A function's kind is fixed when it is created and cannot be - changed afterwards. Omitting this field means `standard`. FunctionRuntimeOption: type: object required: @@ -15352,10 +18849,7 @@ components: description: Whether this runtime is the CLI default for its language. durable_capable: type: boolean - description: >- - Whether a durable function can be authored on this runtime. Only - runtimes with a durable authoring API report true, and a durable - deploy naming any other runtime is rejected. + description: Whether a durable function can be authored on this runtime. Only runtimes with a durable authoring API report true, and a durable deploy naming any other runtime is rejected. deployment: $ref: '#/components/schemas/FunctionRuntimeDeployment' FunctionRuntimesResponse: @@ -15459,6 +18953,10 @@ components: type: string enum: - login + - signup + - forgot-password + - device + - verify-email - reset-password HostedLoginEmailCheckRequest: type: object @@ -15491,6 +18989,10 @@ components: HostedRenderablePageType: type: string enum: + - signup + - forgot-password + - device + - verify-email - reset-password LogEvent: type: object @@ -15548,10 +19050,19 @@ components: type: string description: | Metric name (for example, "Function & Frontend Invocations", "Frontend Requests", - "CodeBuild Build Seconds", "Bandwidth Ingress (Bytes)", "Bandwidth Egress (Bytes)", + "Durable Executions", "Durable Operations", "Durable Compute (MB-Seconds)", + "CodeBuild Build Seconds", + "Bandwidth Ingress (Bytes)", "Bandwidth Egress (Bytes)", "Bandwidth Total (Bytes)", or "Database Storage (Bytes)"). Byte-based metrics are reported in bytes. "Bandwidth Total (Bytes)" is derived (ingress + egress) and - is not billed separately. "Database Storage (Bytes)" is a current observed gauge, + is not billed separately. The three durable metrics are + counted separately from "Function & Frontend Invocations", which covers standard + invocations only. Operations and compute are counted when an execution finishes, + so they appear in the window the execution completed in rather than the one it + started in. "Durable Compute (MB-Seconds)" reports the memory the execution ran + at times the time it spent running, in megabyte-seconds; the allowance for it is + published in gigabyte-seconds, which is 1024 of these. + "Database Storage (Bytes)" is a current observed gauge, not a cumulative counter. It is the sum of the latest samples exposed as `storage_bytes` by the project's database list, so it includes what each database's branches and backups hold, and it inherits that field's lag @@ -15866,29 +19377,6 @@ components: - limit - total - has_more - PaginatedProjectAccessTokens: - type: object - properties: - data: - type: array - items: - $ref: '#/components/schemas/ProjectAccessToken' - page: - type: integer - limit: - type: integer - total: - type: integer - has_more: - type: boolean - next: - type: string - required: - - data - - page - - limit - - total - - has_more PaginatedProjectCustomDomains: type: object properties: @@ -16093,234 +19581,97 @@ components: prev_cursor: type: string description: Opaque cursor for the previous page (cursor pagination only; present when a previous page exists). Send as `ending_before`. - required: - - data - - page - - limit - - total - - has_more - PlatformExchangeResponse: - type: object - properties: - token: - type: string - user_id: - type: string - token_id: - type: string - format: uuid - expires_at: - type: string - format: date-time - required: - - token - - user_id - - token_id - - expires_at - Project: - type: object - properties: - id: - type: string - format: uuid - name: - type: string - status: - type: string - enum: - - active - - deleting - - failed - plan: - type: string - enum: - - FREE - - PRO - description: Platform plan applied to the project when available - all_regions: - type: boolean - description: | - Region policy for function deployment. - - `true`: deploy functions to all configured platform regions - - `false`: deploy only to `selected_regions` - selected_regions: - type: array - items: - type: string - description: Effective region set for this project (normalized and deduplicated) - aws_application_name: - type: string - last_invoked_at: - type: string - format: date-time - description: Most recent activity timestamp across project resources - logo_url: - type: string - description: | - Relative API path that serves the project logo when one has been - uploaded. The path is versioned with a `?v=` cache-busting query - param that changes on each upload. Absent when the project has no - logo. The logo image is stored in the project's storage folder. - example: /projects/3fa85f64-5717-4562-b3fc-2c963f66afa6/logo?v=1718524800 - created_at: - type: string - format: date-time - updated_at: - type: string - format: date-time - required: - - id - - name - - status - - all_regions - - selected_regions - - created_at - - updated_at - ProjectAccessToken: - type: object - description: | - A project access token: a control-plane credential bound to a single - project. Unlike a platform token, which acts on every project its owner - has, this one is limited to the project it was created in. - - The secret itself is never returned here. Only its hash is stored, so - the plaintext exists solely in the response to the create call. - properties: - id: - type: string - format: uuid - project_id: - type: string - format: uuid - name: - type: string - description: Unique per project. - token_prefix: - type: string - description: First 12 characters of the secret, for recognising a token in a list. - scope: - $ref: '#/components/schemas/ProjectAccessTokenScope' - status: - type: string - enum: - - active - - revoked - - expired - description: | - `revoked` means the token was deliberately revoked, by you or by the - deletion of its project. `expired` means it simply reached - `expires_at`; nothing was taken away. Both are refused, and both keep - their record so a token's name, prefix, last use, and request history - remain available after a leak. - - A token revoked before its expiry passed stays `revoked`, because - that is the fact worth keeping. - token_source: - type: string - enum: - - api - - cli - - dashboard - description: What created the token. - expires_at: - type: string - format: date-time - nullable: true - description: Absent for a token that does not expire. - last_used_at: - type: string - format: date-time - nullable: true - description: Updated at most once every few minutes, so it may lag slightly. - created_at: - type: string - format: date-time - all_time_requests: - type: integer - format: int64 - description: Requests authenticated with this token since it was created. - required: - - id - - project_id - - name - - token_prefix - - scope - - status - - token_source - - created_at - - all_time_requests - ProjectAccessTokenScope: - type: string - description: | - What a project access token may do within its project. - - `full` is everything you can do to that one project, up to and including - deleting it. It cannot manage access tokens, so a leaked token cannot - mint a replacement or erase the record of its own use, but for a CI or - agent credential that only deploys, prefer `read_only` where the job - allows it. - - `read_only` refuses mutations. It is enforced by route classification - rather than HTTP method, so the log and metrics query endpoints remain - available even though they are POST requests that carry body filters. - - `read_only` also refuses the reads that return a credential — service - keys, variable values, and database connection strings. A service key - grants read and write over the project's data and keeps working after - the token that fetched it is revoked, so returning one to a read-only - credential would make the scope a formality. - enum: - - full - - read_only - x-enum-varnames: - - ProjectAccessTokenScopeFull - - ProjectAccessTokenScopeReadOnly - ProjectAccessTokenUsage: - type: object - description: | - Zero-filled daily request counts for a single token, oldest first. Every - day in the window is present, so a gap reads as zero rather than missing. - - Counts every request the token authenticated, including ones then - refused — a read-only token attempting a write, or a token presented on - another project's route. That is deliberate: after a leak, the probing - is the part you want to see, and a counter that hid it would make a - token look idle while it was being tried. + required: + - data + - page + - limit + - total + - has_more + PlatformExchangeResponse: + type: object properties: + token: + type: string + user_id: + type: string token_id: type: string format: uuid - name: + expires_at: type: string - days: - type: integer - description: Number of daily entries returned, always equal to the requested window. - daily: - type: array - items: - $ref: '#/components/schemas/ProjectAccessTokenUsageDailyEntry' - total_requests: - type: integer - format: int64 + format: date-time required: + - token + - user_id - token_id - - name - - days - - daily - - total_requests - ProjectAccessTokenUsageDailyEntry: + - expires_at + Project: type: object properties: - day: + id: type: string - format: date - description: UTC day. - requests: - type: integer - format: int64 + format: uuid + name: + type: string + status: + type: string + enum: + - active + - deleting + - failed + plan: + type: string + enum: + - FREE + - PRO + description: Platform plan applied to the project when available + all_regions: + type: boolean + description: | + Region policy for function deployment. + - `true`: deploy functions to all configured platform regions + - `false`: deploy only to `selected_regions` + selected_regions: + type: array + items: + type: string + description: Effective region set for this project (normalized and deduplicated) + aws_application_name: + type: string + last_invoked_at: + type: string + format: date-time + description: Most recent activity timestamp across project resources + logo_url: + type: string + description: | + Relative API path that serves the project logo when one has been + uploaded. The path is versioned with a `?v=` cache-busting query + param that changes on each upload. Absent when the project has no + logo. The logo image is stored in the project's storage folder. + example: /projects/3fa85f64-5717-4562-b3fc-2c963f66afa6/logo?v=1718524800 + git_connection: + allOf: + - $ref: '#/components/schemas/ProjectGitConnectionSummary' + description: Present for connected projects when `git_connection` is requested through the list endpoint's `include` parameter. + health: + allOf: + - $ref: '#/components/schemas/ProjectHealthSummary' + description: Present when `health` is requested through the list endpoint's `include` parameter. + created_at: + type: string + format: date-time + updated_at: + type: string + format: date-time required: - - day - - requests + - id + - name + - status + - all_regions + - selected_regions + - created_at + - updated_at ProjectConfig: type: object additionalProperties: false @@ -16331,10 +19682,7 @@ components: values (patch semantics). Declared collection keys are fully synced to the manifest: `variables`, `buckets[].policies`, `auth.providers.oauth`, `auth.email.templates`, and `functions[].schedulers` are reconciled to - exactly match, deleting resources absent from the manifest. - `shared_variables` is fully synced the same way, but membership only: - names absent from a declared list stop being shared and remain as - non-shared variables, with their values untouched. Functions, + exactly match, deleting resources absent from the manifest. Functions, frontends, databases, and buckets are never created or deleted through this manifest; entries referencing resources that do not exist are skipped and reported. @@ -16356,7 +19704,15 @@ components: description: Replace the complete shared function-variable list with existing names, without changing variable values. Omission keeps membership unchanged; an empty list clears it. items: type: string - pattern: '^[a-zA-Z_][a-zA-Z0-9_]*$' + pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$ + frontend_shared_variables: + type: array + uniqueItems: true + description: Replace the complete shared frontend-variable list with existing names. Frontends with variable_scope shared receive this list. Omission keeps membership unchanged; an empty list clears it. + items: + type: string + pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$ + maxLength: 256 variables: type: array description: Fully synced when declared - variables absent from this list are deleted. @@ -16570,6 +19926,8 @@ components: $ref: '#/components/schemas/ProjectConfigAuthRedirects' pages: $ref: '#/components/schemas/ProjectConfigHostedPages' + appearance: + $ref: '#/components/schemas/ProjectConfigAuthPageAppearance' ProjectConfigAuthPassword: type: object additionalProperties: false @@ -16847,8 +20205,9 @@ components: type: string enum: - all + - shared - scoped - description: All preserves access to all project variables. Scoped includes only explicitly declared variables in builds and runtime. Omission preserves the stored selection. + description: All preserves access to all project variables. Shared includes the project frontend_shared_variables list. Scoped includes only explicitly declared variables in builds and runtime. Omission preserves the stored selection. variables: type: array uniqueItems: true @@ -16861,6 +20220,12 @@ components: minLength: 1 custom_domain: $ref: '#/components/schemas/ProjectConfigCustomDomain' + function_routes: + type: array + maxItems: 64 + description: Complete set of same-origin Function path mappings when declared. Omission preserves existing mappings; an empty list deletes all mappings. + items: + $ref: '#/components/schemas/ProjectConfigFrontendFunctionRoute' required: - name ProjectConfigFunction: @@ -16877,16 +20242,22 @@ components: name: type: string minLength: 1 + kind: + $ref: '#/components/schemas/FunctionKind' public: type: boolean description: Function visibility for anon-key invocation variable_scope: type: string - enum: [all, scoped] - x-enum-varnames: [ProjectConfigFunctionVariableScopeAll, ProjectConfigFunctionVariableScopeScoped] + enum: + - all + - scoped + x-enum-varnames: + - ProjectConfigFunctionVariableScopeAll + - ProjectConfigFunctionVariableScopeScoped description: | Which project variables this function receives. `all` (the default) - gives it every project variable. `scoped` gives it only the variables + gives it the project variables marked `shared: true`. `scoped` gives it only the variables it selects: every name declared in `variables`, plus the names Volcano detects in its source that the project defines. variables: @@ -16902,6 +20273,17 @@ components: function must not deploy without it: a declared name the project does not define fails the apply, while a detected name it does not define is ignored. Only used when `variable_scope` is `scoped`. + invocation_mode: + $ref: '#/components/schemas/FunctionInvocationMode' + http_auth_mode: + $ref: '#/components/schemas/FunctionHTTPAuthMode' + openapi_spec: + type: object + nullable: true + additionalProperties: true + x-go-type: nullable.Nullable[map[string]interface{}] + x-go-type-skip-optional-pointer: true + description: OpenAPI 3.0 or 3.1 metadata for an HTTP-mode function schedulers: type: array items: @@ -16933,6 +20315,39 @@ components: $ref: '#/components/schemas/ProjectConfigHostedPage' reset_password: $ref: '#/components/schemas/ProjectConfigHostedPage' + signup: + $ref: '#/components/schemas/ProjectConfigHostedPage' + forgot_password: + $ref: '#/components/schemas/ProjectConfigHostedPage' + device: + $ref: '#/components/schemas/ProjectConfigHostedPage' + verify_email: + $ref: '#/components/schemas/ProjectConfigHostedPage' + PreviewAuthPageRequest: + type: object + additionalProperties: false + required: + - theme + - layout + properties: + theme: + $ref: '#/components/schemas/AuthPageTheme' + layout: + $ref: '#/components/schemas/AuthPageLayout' + action: + type: string + PreviewAuthPageResponse: + type: object + required: + - preview_url + - expires_at + properties: + preview_url: + type: string + format: uri + expires_at: + type: string + format: date-time ProjectConfigMissingResource: type: object properties: @@ -17079,8 +20494,12 @@ components: type: object additionalProperties: false properties: + shared: + type: boolean + description: Include this name in the project's shared function variables. Omission preserves existing membership; new variables default to true for legacy clients. Send false explicitly to create a non-shared variable. name: type: string + description: Project variable name. Function runtime names such as AWS_REGION are reserved and fail validation; see the environment variables guide for the full list. minLength: 1 value: type: string @@ -17102,6 +20521,13 @@ components: format: uuid name: type: string + kind: + allOf: + - $ref: '#/components/schemas/FunctionKind' + description: | + Which kind of function this check is about. Present only when `type` + is `function`, where both kinds share the name space and this is + what tells them apart. required: - type - id @@ -17481,6 +20907,14 @@ components: format: uuid name: type: string + kind: + allOf: + - $ref: '#/components/schemas/FunctionKind' + description: | + Which kind of function this deployment belongs to. Both kinds appear + in this feed under `type: function`, because a deployment means the + same thing for either, so this is what tells them apart. Absent when + `type` is `frontend`. required: - type - id @@ -17633,6 +21067,9 @@ components: type: string format: uuid description: Canonical function ID used for invocation routing + invoke_url: + type: string + description: 'Canonical HTTPS endpoint for invoking this function. Use it as-is: it does not share a domain with the API, so a host derived from the API URL will not reach the function. Omitted when the deployment serves no public invocation domain, as in local development; invoke through POST /functions/{functionId}/invoke instead.' cache_ttl_seconds: type: integer minimum: 1 @@ -18166,6 +21603,22 @@ components: css: type: string description: Optional CSS injected at render time. Max 256 KiB. + UpdateAuthPageLayoutRequest: + type: object + additionalProperties: false + required: + - layout + properties: + layout: + $ref: '#/components/schemas/AuthPageLayout' + UpdateAuthPageThemeRequest: + type: object + additionalProperties: false + required: + - theme + properties: + theme: + $ref: '#/components/schemas/AuthPageTheme' UpdateDatabaseTypeRequest: type: object description: Update database compute size tier @@ -18194,6 +21647,8 @@ components: type: string UpdateFunctionRequest: type: object + additionalProperties: false + minProperties: 1 properties: is_public: type: boolean @@ -18201,8 +21656,15 @@ components: Function visibility for anon-key invocation. - `false` (default): private function - `true`: public function (anon keys with `functions.invoke` can invoke) - required: - - is_public + invocation_mode: + $ref: '#/components/schemas/FunctionInvocationMode' + http_auth_mode: + $ref: '#/components/schemas/FunctionHTTPAuthMode' + openapi_spec: + type: object + nullable: true + additionalProperties: true + description: OpenAPI 3.0 or 3.1 metadata for HTTP mode. Send null to clear it. UpdateFunctionSchedulerRequest: type: object properties: @@ -18293,6 +21755,9 @@ components: UpdateVariableRequest: type: object properties: + shared: + type: boolean + description: Include this name in the project's shared function variables. Omission preserves existing membership; new variables default to true for legacy clients. Send false explicitly to create a non-shared variable. value: type: string required: @@ -18382,6 +21847,12 @@ components: Variable: type: object properties: + shared: + type: boolean + description: Include this name in the project's shared function variables. Omission preserves existing membership; new variables default to true for legacy clients. Send false explicitly to create a non-shared variable. + frontend_shared: + type: boolean + description: Whether this name is in the project's shared frontend-variable list. id: type: string format: uuid @@ -18431,6 +21902,124 @@ components: - value - created_at - updated_at + OpenAPISpecDocument: + type: object + additionalProperties: true + description: | + This OpenAPI document, with every reference resolved. Shared by the JSON + and YAML operations, which differ only in serialization. + ProjectGitConnectionSummary: + type: object + properties: + repo_installation_id: + type: integer + format: int64 + repo_id: + type: integer + format: int64 + repo_full_name: + type: string + root_directory: + type: string + production_branch: + type: string + updated_at: + type: string + format: date-time + required: + - repo_installation_id + - repo_id + - repo_full_name + - root_directory + - production_branch + - updated_at + ProjectHealthSummary: + type: object + properties: + status: + $ref: '#/components/schemas/ProjectHealthStatus' + required: + - status + FunctionKind: + type: string + enum: + - standard + - durable + default: standard + description: | + Which kind of function this is. `standard` runs once per invocation. + `durable` checkpoints its progress and resumes from the last completed + step, and is invoked asynchronously through its own executions + collection. A function's kind is fixed when it is created and cannot be + changed afterwards. Omitting this field means `standard`. + AuthPageThemeColors: + type: object + additionalProperties: false + required: + - background + - surface + - text + - accent + - accent_text + properties: + background: + type: string + pattern: ^#[0-9a-fA-F]{6}$ + surface: + type: string + pattern: ^#[0-9a-fA-F]{6}$ + text: + type: string + pattern: ^#[0-9a-fA-F]{6}$ + accent: + type: string + pattern: ^#[0-9a-fA-F]{6}$ + accent_text: + type: string + pattern: ^#[0-9a-fA-F]{6}$ + ProjectConfigAuthPageLayouts: + type: object + additionalProperties: false + properties: + login: + $ref: '#/components/schemas/AuthPageLayout' + signup: + $ref: '#/components/schemas/AuthPageLayout' + forgot_password: + $ref: '#/components/schemas/AuthPageLayout' + device: + $ref: '#/components/schemas/AuthPageLayout' + verify_email: + $ref: '#/components/schemas/AuthPageLayout' + reset_password: + $ref: '#/components/schemas/AuthPageLayout' + ProjectConfigAuthPageAppearance: + type: object + additionalProperties: false + properties: + theme: + $ref: '#/components/schemas/AuthPageTheme' + layouts: + $ref: '#/components/schemas/ProjectConfigAuthPageLayouts' + ProjectConfigFrontendFunctionRoute: + type: object + additionalProperties: false + properties: + function: + type: string + minLength: 1 + description: Name of an existing standard Function configured for HTTP invocation. + path_prefix: + type: string + minLength: 2 + maxLength: 512 + pattern: ^/[^?#\\]*[^/?#\\]$ + strip_prefix: + type: boolean + default: false + required: + - function + - path_prefix DatabaseQueryPerformanceDatabase: type: object properties: @@ -18451,12 +22040,12 @@ components: query: type: string maxLength: 8192 - description: Normalized and obfuscated representative query text. + description: Normalized representative query text with literal values replaced by `?`. database: $ref: '#/components/schemas/DatabaseQueryPerformanceDatabase' role: type: string - description: Database role used for the query. + description: Postgres role that ran the query, such as `anon` or `authenticated` for RLS-enforced connections, `service_role`, the database owner role for full-access connections, or a role you created. `unknown` when the role no longer exists. calls: type: integer format: int64 @@ -18817,3 +22406,47 @@ components: mock_prelude: type: string description: Preview harness that supplies request params and stubs the hosted-auth API. Never served on a real page. + AuthPageAppearanceDefaults: + type: object + required: + - theme + - layout + properties: + theme: + $ref: '#/components/schemas/AuthPageTheme' + layout: + $ref: '#/components/schemas/AuthPageLayout' + AuthPageAppearanceOptions: + type: object + required: + - pages + - fonts + - scales + - densities + - radii + - layouts + properties: + pages: + type: array + items: + $ref: '#/components/schemas/HostedAuthPageType' + fonts: + type: array + items: + $ref: '#/components/schemas/AuthPageFont' + scales: + type: array + items: + $ref: '#/components/schemas/AuthPageScale' + densities: + type: array + items: + $ref: '#/components/schemas/AuthPageDensity' + radii: + type: array + items: + $ref: '#/components/schemas/AuthPageRadius' + layouts: + type: array + items: + $ref: '#/components/schemas/AuthPageLayout'