supabase-cli/pkg/api/types.gen.go

2610 lines
138 KiB
Go

// Package api provides primitives to interact with the openapi HTTP API.
//
// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
package api
import (
"encoding/json"
"fmt"
"github.com/oapi-codegen/runtime"
openapi_types "github.com/oapi-codegen/runtime/types"
)
const (
BearerScopes = "bearer.Scopes"
Oauth2Scopes = "oauth2.Scopes"
)
// Defines values for ApiKeyResponseType.
const (
ApiKeyResponseTypeLegacy ApiKeyResponseType = "legacy"
ApiKeyResponseTypePublishable ApiKeyResponseType = "publishable"
ApiKeyResponseTypeSecret ApiKeyResponseType = "secret"
)
// Defines values for AuthHealthResponseName.
const (
GoTrue AuthHealthResponseName = "GoTrue"
)
// Defines values for BillingPlanId.
const (
BillingPlanIdEnterprise BillingPlanId = "enterprise"
BillingPlanIdFree BillingPlanId = "free"
BillingPlanIdPro BillingPlanId = "pro"
BillingPlanIdTeam BillingPlanId = "team"
)
// Defines values for BranchDetailResponseStatus.
const (
BranchDetailResponseStatusACTIVEHEALTHY BranchDetailResponseStatus = "ACTIVE_HEALTHY"
BranchDetailResponseStatusACTIVEUNHEALTHY BranchDetailResponseStatus = "ACTIVE_UNHEALTHY"
BranchDetailResponseStatusCOMINGUP BranchDetailResponseStatus = "COMING_UP"
BranchDetailResponseStatusGOINGDOWN BranchDetailResponseStatus = "GOING_DOWN"
BranchDetailResponseStatusINACTIVE BranchDetailResponseStatus = "INACTIVE"
BranchDetailResponseStatusINITFAILED BranchDetailResponseStatus = "INIT_FAILED"
BranchDetailResponseStatusPAUSEFAILED BranchDetailResponseStatus = "PAUSE_FAILED"
BranchDetailResponseStatusPAUSING BranchDetailResponseStatus = "PAUSING"
BranchDetailResponseStatusREMOVED BranchDetailResponseStatus = "REMOVED"
BranchDetailResponseStatusRESIZING BranchDetailResponseStatus = "RESIZING"
BranchDetailResponseStatusRESTARTING BranchDetailResponseStatus = "RESTARTING"
BranchDetailResponseStatusRESTOREFAILED BranchDetailResponseStatus = "RESTORE_FAILED"
BranchDetailResponseStatusRESTORING BranchDetailResponseStatus = "RESTORING"
BranchDetailResponseStatusUNKNOWN BranchDetailResponseStatus = "UNKNOWN"
BranchDetailResponseStatusUPGRADING BranchDetailResponseStatus = "UPGRADING"
)
// Defines values for BranchResponseStatus.
const (
BranchResponseStatusCREATINGPROJECT BranchResponseStatus = "CREATING_PROJECT"
BranchResponseStatusFUNCTIONSDEPLOYED BranchResponseStatus = "FUNCTIONS_DEPLOYED"
BranchResponseStatusFUNCTIONSFAILED BranchResponseStatus = "FUNCTIONS_FAILED"
BranchResponseStatusMIGRATIONSFAILED BranchResponseStatus = "MIGRATIONS_FAILED"
BranchResponseStatusMIGRATIONSPASSED BranchResponseStatus = "MIGRATIONS_PASSED"
BranchResponseStatusRUNNINGMIGRATIONS BranchResponseStatus = "RUNNING_MIGRATIONS"
)
// Defines values for BulkUpdateFunctionBodyStatus.
const (
BulkUpdateFunctionBodyStatusACTIVE BulkUpdateFunctionBodyStatus = "ACTIVE"
BulkUpdateFunctionBodyStatusREMOVED BulkUpdateFunctionBodyStatus = "REMOVED"
BulkUpdateFunctionBodyStatusTHROTTLED BulkUpdateFunctionBodyStatus = "THROTTLED"
)
// Defines values for CreateApiKeyBodyType.
const (
CreateApiKeyBodyTypePublishable CreateApiKeyBodyType = "publishable"
CreateApiKeyBodyTypeSecret CreateApiKeyBodyType = "secret"
)
// Defines values for CreateProviderBodyType.
const (
Saml CreateProviderBodyType = "saml"
)
// Defines values for DatabaseUpgradeStatusError.
const (
N1UpgradedInstanceLaunchFailed DatabaseUpgradeStatusError = "1_upgraded_instance_launch_failed"
N2VolumeDetachchmentFromUpgradedInstanceFailed DatabaseUpgradeStatusError = "2_volume_detachchment_from_upgraded_instance_failed"
N3VolumeAttachmentToOriginalInstanceFailed DatabaseUpgradeStatusError = "3_volume_attachment_to_original_instance_failed"
N4DataUpgradeInitiationFailed DatabaseUpgradeStatusError = "4_data_upgrade_initiation_failed"
N5DataUpgradeCompletionFailed DatabaseUpgradeStatusError = "5_data_upgrade_completion_failed"
N6VolumeDetachchmentFromOriginalInstanceFailed DatabaseUpgradeStatusError = "6_volume_detachchment_from_original_instance_failed"
N7VolumeAttachmentToUpgradedInstanceFailed DatabaseUpgradeStatusError = "7_volume_attachment_to_upgraded_instance_failed"
N8UpgradeCompletionFailed DatabaseUpgradeStatusError = "8_upgrade_completion_failed"
N9PostPhysicalBackupFailed DatabaseUpgradeStatusError = "9_post_physical_backup_failed"
)
// Defines values for DatabaseUpgradeStatusProgress.
const (
N0Requested DatabaseUpgradeStatusProgress = "0_requested"
N10CompletedPostPhysicalBackup DatabaseUpgradeStatusProgress = "10_completed_post_physical_backup"
N1Started DatabaseUpgradeStatusProgress = "1_started"
N2LaunchedUpgradedInstance DatabaseUpgradeStatusProgress = "2_launched_upgraded_instance"
N3DetachedVolumeFromUpgradedInstance DatabaseUpgradeStatusProgress = "3_detached_volume_from_upgraded_instance"
N4AttachedVolumeToOriginalInstance DatabaseUpgradeStatusProgress = "4_attached_volume_to_original_instance"
N5InitiatedDataUpgrade DatabaseUpgradeStatusProgress = "5_initiated_data_upgrade"
N6CompletedDataUpgrade DatabaseUpgradeStatusProgress = "6_completed_data_upgrade"
N7DetachedVolumeFromOriginalInstance DatabaseUpgradeStatusProgress = "7_detached_volume_from_original_instance"
N8AttachedVolumeToUpgradedInstance DatabaseUpgradeStatusProgress = "8_attached_volume_to_upgraded_instance"
N9CompletedUpgrade DatabaseUpgradeStatusProgress = "9_completed_upgrade"
)
// Defines values for DatabaseUpgradeStatusStatus.
const (
N0 DatabaseUpgradeStatusStatus = 0
N1 DatabaseUpgradeStatusStatus = 1
N2 DatabaseUpgradeStatusStatus = 2
)
// Defines values for DeployFunctionResponseStatus.
const (
DeployFunctionResponseStatusACTIVE DeployFunctionResponseStatus = "ACTIVE"
DeployFunctionResponseStatusREMOVED DeployFunctionResponseStatus = "REMOVED"
DeployFunctionResponseStatusTHROTTLED DeployFunctionResponseStatus = "THROTTLED"
)
// Defines values for DesiredInstanceSize.
const (
DesiredInstanceSizeLarge DesiredInstanceSize = "large"
DesiredInstanceSizeMedium DesiredInstanceSize = "medium"
DesiredInstanceSizeMicro DesiredInstanceSize = "micro"
DesiredInstanceSizeN12xlarge DesiredInstanceSize = "12xlarge"
DesiredInstanceSizeN16xlarge DesiredInstanceSize = "16xlarge"
DesiredInstanceSizeN2xlarge DesiredInstanceSize = "2xlarge"
DesiredInstanceSizeN4xlarge DesiredInstanceSize = "4xlarge"
DesiredInstanceSizeN8xlarge DesiredInstanceSize = "8xlarge"
DesiredInstanceSizeSmall DesiredInstanceSize = "small"
DesiredInstanceSizeXlarge DesiredInstanceSize = "xlarge"
)
// Defines values for FunctionResponseStatus.
const (
FunctionResponseStatusACTIVE FunctionResponseStatus = "ACTIVE"
FunctionResponseStatusREMOVED FunctionResponseStatus = "REMOVED"
FunctionResponseStatusTHROTTLED FunctionResponseStatus = "THROTTLED"
)
// Defines values for FunctionSlugResponseStatus.
const (
FunctionSlugResponseStatusACTIVE FunctionSlugResponseStatus = "ACTIVE"
FunctionSlugResponseStatusREMOVED FunctionSlugResponseStatus = "REMOVED"
FunctionSlugResponseStatusTHROTTLED FunctionSlugResponseStatus = "THROTTLED"
)
// Defines values for NetworkRestrictionsResponseEntitlement.
const (
Allowed NetworkRestrictionsResponseEntitlement = "allowed"
Disallowed NetworkRestrictionsResponseEntitlement = "disallowed"
)
// Defines values for NetworkRestrictionsResponseStatus.
const (
Applied NetworkRestrictionsResponseStatus = "applied"
Stored NetworkRestrictionsResponseStatus = "stored"
)
// Defines values for OAuthTokenBodyGrantType.
const (
AuthorizationCode OAuthTokenBodyGrantType = "authorization_code"
RefreshToken OAuthTokenBodyGrantType = "refresh_token"
)
// Defines values for OAuthTokenResponseTokenType.
const (
Bearer OAuthTokenResponseTokenType = "Bearer"
)
// Defines values for PostgresConfigResponseSessionReplicationRole.
const (
PostgresConfigResponseSessionReplicationRoleLocal PostgresConfigResponseSessionReplicationRole = "local"
PostgresConfigResponseSessionReplicationRoleOrigin PostgresConfigResponseSessionReplicationRole = "origin"
PostgresConfigResponseSessionReplicationRoleReplica PostgresConfigResponseSessionReplicationRole = "replica"
)
// Defines values for PostgresEngine.
const (
PostgresEngineN15 PostgresEngine = "15"
PostgresEngineN17Oriole PostgresEngine = "17-oriole"
)
// Defines values for ProjectAvailableRestoreVersionPostgresEngine.
const (
ProjectAvailableRestoreVersionPostgresEngineN13 ProjectAvailableRestoreVersionPostgresEngine = "13"
ProjectAvailableRestoreVersionPostgresEngineN14 ProjectAvailableRestoreVersionPostgresEngine = "14"
ProjectAvailableRestoreVersionPostgresEngineN15 ProjectAvailableRestoreVersionPostgresEngine = "15"
ProjectAvailableRestoreVersionPostgresEngineN17 ProjectAvailableRestoreVersionPostgresEngine = "17"
ProjectAvailableRestoreVersionPostgresEngineN17Oriole ProjectAvailableRestoreVersionPostgresEngine = "17-oriole"
)
// Defines values for ProjectAvailableRestoreVersionReleaseChannel.
const (
ProjectAvailableRestoreVersionReleaseChannelAlpha ProjectAvailableRestoreVersionReleaseChannel = "alpha"
ProjectAvailableRestoreVersionReleaseChannelBeta ProjectAvailableRestoreVersionReleaseChannel = "beta"
ProjectAvailableRestoreVersionReleaseChannelGa ProjectAvailableRestoreVersionReleaseChannel = "ga"
ProjectAvailableRestoreVersionReleaseChannelInternal ProjectAvailableRestoreVersionReleaseChannel = "internal"
ProjectAvailableRestoreVersionReleaseChannelPreview ProjectAvailableRestoreVersionReleaseChannel = "preview"
ProjectAvailableRestoreVersionReleaseChannelWithdrawn ProjectAvailableRestoreVersionReleaseChannel = "withdrawn"
)
// Defines values for ReleaseChannel.
const (
ReleaseChannelAlpha ReleaseChannel = "alpha"
ReleaseChannelBeta ReleaseChannel = "beta"
ReleaseChannelGa ReleaseChannel = "ga"
ReleaseChannelInternal ReleaseChannel = "internal"
ReleaseChannelPreview ReleaseChannel = "preview"
ReleaseChannelWithdrawn ReleaseChannel = "withdrawn"
)
// Defines values for SetUpReadReplicaBodyReadReplicaRegion.
const (
SetUpReadReplicaBodyReadReplicaRegionApEast1 SetUpReadReplicaBodyReadReplicaRegion = "ap-east-1"
SetUpReadReplicaBodyReadReplicaRegionApNortheast1 SetUpReadReplicaBodyReadReplicaRegion = "ap-northeast-1"
SetUpReadReplicaBodyReadReplicaRegionApNortheast2 SetUpReadReplicaBodyReadReplicaRegion = "ap-northeast-2"
SetUpReadReplicaBodyReadReplicaRegionApSouth1 SetUpReadReplicaBodyReadReplicaRegion = "ap-south-1"
SetUpReadReplicaBodyReadReplicaRegionApSoutheast1 SetUpReadReplicaBodyReadReplicaRegion = "ap-southeast-1"
SetUpReadReplicaBodyReadReplicaRegionApSoutheast2 SetUpReadReplicaBodyReadReplicaRegion = "ap-southeast-2"
SetUpReadReplicaBodyReadReplicaRegionCaCentral1 SetUpReadReplicaBodyReadReplicaRegion = "ca-central-1"
SetUpReadReplicaBodyReadReplicaRegionEuCentral1 SetUpReadReplicaBodyReadReplicaRegion = "eu-central-1"
SetUpReadReplicaBodyReadReplicaRegionEuCentral2 SetUpReadReplicaBodyReadReplicaRegion = "eu-central-2"
SetUpReadReplicaBodyReadReplicaRegionEuNorth1 SetUpReadReplicaBodyReadReplicaRegion = "eu-north-1"
SetUpReadReplicaBodyReadReplicaRegionEuWest1 SetUpReadReplicaBodyReadReplicaRegion = "eu-west-1"
SetUpReadReplicaBodyReadReplicaRegionEuWest2 SetUpReadReplicaBodyReadReplicaRegion = "eu-west-2"
SetUpReadReplicaBodyReadReplicaRegionEuWest3 SetUpReadReplicaBodyReadReplicaRegion = "eu-west-3"
SetUpReadReplicaBodyReadReplicaRegionSaEast1 SetUpReadReplicaBodyReadReplicaRegion = "sa-east-1"
SetUpReadReplicaBodyReadReplicaRegionUsEast1 SetUpReadReplicaBodyReadReplicaRegion = "us-east-1"
SetUpReadReplicaBodyReadReplicaRegionUsEast2 SetUpReadReplicaBodyReadReplicaRegion = "us-east-2"
SetUpReadReplicaBodyReadReplicaRegionUsWest1 SetUpReadReplicaBodyReadReplicaRegion = "us-west-1"
SetUpReadReplicaBodyReadReplicaRegionUsWest2 SetUpReadReplicaBodyReadReplicaRegion = "us-west-2"
)
// Defines values for SnippetMetaType.
const (
SnippetMetaTypeSql SnippetMetaType = "sql"
)
// Defines values for SnippetMetaVisibility.
const (
SnippetMetaVisibilityOrg SnippetMetaVisibility = "org"
SnippetMetaVisibilityProject SnippetMetaVisibility = "project"
SnippetMetaVisibilityPublic SnippetMetaVisibility = "public"
SnippetMetaVisibilityUser SnippetMetaVisibility = "user"
)
// Defines values for SnippetResponseType.
const (
SnippetResponseTypeSql SnippetResponseType = "sql"
)
// Defines values for SnippetResponseVisibility.
const (
SnippetResponseVisibilityOrg SnippetResponseVisibility = "org"
SnippetResponseVisibilityProject SnippetResponseVisibility = "project"
SnippetResponseVisibilityPublic SnippetResponseVisibility = "public"
SnippetResponseVisibilityUser SnippetResponseVisibility = "user"
)
// Defines values for SupavisorConfigResponseDatabaseType.
const (
PRIMARY SupavisorConfigResponseDatabaseType = "PRIMARY"
READREPLICA SupavisorConfigResponseDatabaseType = "READ_REPLICA"
)
// Defines values for SupavisorConfigResponsePoolMode.
const (
SupavisorConfigResponsePoolModeSession SupavisorConfigResponsePoolMode = "session"
SupavisorConfigResponsePoolModeTransaction SupavisorConfigResponsePoolMode = "transaction"
)
// Defines values for UpdateAuthConfigBodyPasswordRequiredCharacters.
const (
AbcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 UpdateAuthConfigBodyPasswordRequiredCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ:0123456789"
AbcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567891 UpdateAuthConfigBodyPasswordRequiredCharacters = "abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:0123456789"
AbcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567892 UpdateAuthConfigBodyPasswordRequiredCharacters = "abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:0123456789:!@#$%^&*()_+-=[]{};'\\\\:\"|<>?,./`~"
Empty UpdateAuthConfigBodyPasswordRequiredCharacters = ""
)
// Defines values for UpdateBranchBodyStatus.
const (
UpdateBranchBodyStatusCREATINGPROJECT UpdateBranchBodyStatus = "CREATING_PROJECT"
UpdateBranchBodyStatusFUNCTIONSDEPLOYED UpdateBranchBodyStatus = "FUNCTIONS_DEPLOYED"
UpdateBranchBodyStatusFUNCTIONSFAILED UpdateBranchBodyStatus = "FUNCTIONS_FAILED"
UpdateBranchBodyStatusMIGRATIONSFAILED UpdateBranchBodyStatus = "MIGRATIONS_FAILED"
UpdateBranchBodyStatusMIGRATIONSPASSED UpdateBranchBodyStatus = "MIGRATIONS_PASSED"
UpdateBranchBodyStatusRUNNINGMIGRATIONS UpdateBranchBodyStatus = "RUNNING_MIGRATIONS"
)
// Defines values for UpdateCustomHostnameResponseStatus.
const (
N1NotStarted UpdateCustomHostnameResponseStatus = "1_not_started"
N2Initiated UpdateCustomHostnameResponseStatus = "2_initiated"
N3ChallengeVerified UpdateCustomHostnameResponseStatus = "3_challenge_verified"
N4OriginSetupCompleted UpdateCustomHostnameResponseStatus = "4_origin_setup_completed"
N5ServicesReconfigured UpdateCustomHostnameResponseStatus = "5_services_reconfigured"
)
// Defines values for UpdatePostgresConfigBodySessionReplicationRole.
const (
UpdatePostgresConfigBodySessionReplicationRoleLocal UpdatePostgresConfigBodySessionReplicationRole = "local"
UpdatePostgresConfigBodySessionReplicationRoleOrigin UpdatePostgresConfigBodySessionReplicationRole = "origin"
UpdatePostgresConfigBodySessionReplicationRoleReplica UpdatePostgresConfigBodySessionReplicationRole = "replica"
)
// Defines values for UpdateSupavisorConfigBodyPoolMode.
const (
UpdateSupavisorConfigBodyPoolModeSession UpdateSupavisorConfigBodyPoolMode = "session"
UpdateSupavisorConfigBodyPoolModeTransaction UpdateSupavisorConfigBodyPoolMode = "transaction"
)
// Defines values for UpdateSupavisorConfigResponsePoolMode.
const (
UpdateSupavisorConfigResponsePoolModeSession UpdateSupavisorConfigResponsePoolMode = "session"
UpdateSupavisorConfigResponsePoolModeTransaction UpdateSupavisorConfigResponsePoolMode = "transaction"
)
// Defines values for V1BackupStatus.
const (
V1BackupStatusARCHIVED V1BackupStatus = "ARCHIVED"
V1BackupStatusCANCELLED V1BackupStatus = "CANCELLED"
V1BackupStatusCOMPLETED V1BackupStatus = "COMPLETED"
V1BackupStatusFAILED V1BackupStatus = "FAILED"
V1BackupStatusPENDING V1BackupStatus = "PENDING"
V1BackupStatusREMOVED V1BackupStatus = "REMOVED"
)
// Defines values for V1CreateProjectBodyDtoDesiredInstanceSize.
const (
V1CreateProjectBodyDtoDesiredInstanceSizeLarge V1CreateProjectBodyDtoDesiredInstanceSize = "large"
V1CreateProjectBodyDtoDesiredInstanceSizeMedium V1CreateProjectBodyDtoDesiredInstanceSize = "medium"
V1CreateProjectBodyDtoDesiredInstanceSizeMicro V1CreateProjectBodyDtoDesiredInstanceSize = "micro"
V1CreateProjectBodyDtoDesiredInstanceSizeN12xlarge V1CreateProjectBodyDtoDesiredInstanceSize = "12xlarge"
V1CreateProjectBodyDtoDesiredInstanceSizeN16xlarge V1CreateProjectBodyDtoDesiredInstanceSize = "16xlarge"
V1CreateProjectBodyDtoDesiredInstanceSizeN2xlarge V1CreateProjectBodyDtoDesiredInstanceSize = "2xlarge"
V1CreateProjectBodyDtoDesiredInstanceSizeN4xlarge V1CreateProjectBodyDtoDesiredInstanceSize = "4xlarge"
V1CreateProjectBodyDtoDesiredInstanceSizeN8xlarge V1CreateProjectBodyDtoDesiredInstanceSize = "8xlarge"
V1CreateProjectBodyDtoDesiredInstanceSizeSmall V1CreateProjectBodyDtoDesiredInstanceSize = "small"
V1CreateProjectBodyDtoDesiredInstanceSizeXlarge V1CreateProjectBodyDtoDesiredInstanceSize = "xlarge"
)
// Defines values for V1CreateProjectBodyDtoPlan.
const (
V1CreateProjectBodyDtoPlanFree V1CreateProjectBodyDtoPlan = "free"
V1CreateProjectBodyDtoPlanPro V1CreateProjectBodyDtoPlan = "pro"
)
// Defines values for V1CreateProjectBodyDtoRegion.
const (
V1CreateProjectBodyDtoRegionApEast1 V1CreateProjectBodyDtoRegion = "ap-east-1"
V1CreateProjectBodyDtoRegionApNortheast1 V1CreateProjectBodyDtoRegion = "ap-northeast-1"
V1CreateProjectBodyDtoRegionApNortheast2 V1CreateProjectBodyDtoRegion = "ap-northeast-2"
V1CreateProjectBodyDtoRegionApSouth1 V1CreateProjectBodyDtoRegion = "ap-south-1"
V1CreateProjectBodyDtoRegionApSoutheast1 V1CreateProjectBodyDtoRegion = "ap-southeast-1"
V1CreateProjectBodyDtoRegionApSoutheast2 V1CreateProjectBodyDtoRegion = "ap-southeast-2"
V1CreateProjectBodyDtoRegionCaCentral1 V1CreateProjectBodyDtoRegion = "ca-central-1"
V1CreateProjectBodyDtoRegionEuCentral1 V1CreateProjectBodyDtoRegion = "eu-central-1"
V1CreateProjectBodyDtoRegionEuCentral2 V1CreateProjectBodyDtoRegion = "eu-central-2"
V1CreateProjectBodyDtoRegionEuNorth1 V1CreateProjectBodyDtoRegion = "eu-north-1"
V1CreateProjectBodyDtoRegionEuWest1 V1CreateProjectBodyDtoRegion = "eu-west-1"
V1CreateProjectBodyDtoRegionEuWest2 V1CreateProjectBodyDtoRegion = "eu-west-2"
V1CreateProjectBodyDtoRegionEuWest3 V1CreateProjectBodyDtoRegion = "eu-west-3"
V1CreateProjectBodyDtoRegionSaEast1 V1CreateProjectBodyDtoRegion = "sa-east-1"
V1CreateProjectBodyDtoRegionUsEast1 V1CreateProjectBodyDtoRegion = "us-east-1"
V1CreateProjectBodyDtoRegionUsEast2 V1CreateProjectBodyDtoRegion = "us-east-2"
V1CreateProjectBodyDtoRegionUsWest1 V1CreateProjectBodyDtoRegion = "us-west-1"
V1CreateProjectBodyDtoRegionUsWest2 V1CreateProjectBodyDtoRegion = "us-west-2"
)
// Defines values for V1OrganizationSlugResponseOptInTags.
const (
AISQLGENERATOROPTIN V1OrganizationSlugResponseOptInTags = "AI_SQL_GENERATOR_OPT_IN"
)
// Defines values for V1PgbouncerConfigResponsePoolMode.
const (
V1PgbouncerConfigResponsePoolModeSession V1PgbouncerConfigResponsePoolMode = "session"
V1PgbouncerConfigResponsePoolModeStatement V1PgbouncerConfigResponsePoolMode = "statement"
V1PgbouncerConfigResponsePoolModeTransaction V1PgbouncerConfigResponsePoolMode = "transaction"
)
// Defines values for V1ProjectResponseStatus.
const (
V1ProjectResponseStatusACTIVEHEALTHY V1ProjectResponseStatus = "ACTIVE_HEALTHY"
V1ProjectResponseStatusACTIVEUNHEALTHY V1ProjectResponseStatus = "ACTIVE_UNHEALTHY"
V1ProjectResponseStatusCOMINGUP V1ProjectResponseStatus = "COMING_UP"
V1ProjectResponseStatusGOINGDOWN V1ProjectResponseStatus = "GOING_DOWN"
V1ProjectResponseStatusINACTIVE V1ProjectResponseStatus = "INACTIVE"
V1ProjectResponseStatusINITFAILED V1ProjectResponseStatus = "INIT_FAILED"
V1ProjectResponseStatusPAUSEFAILED V1ProjectResponseStatus = "PAUSE_FAILED"
V1ProjectResponseStatusPAUSING V1ProjectResponseStatus = "PAUSING"
V1ProjectResponseStatusREMOVED V1ProjectResponseStatus = "REMOVED"
V1ProjectResponseStatusRESIZING V1ProjectResponseStatus = "RESIZING"
V1ProjectResponseStatusRESTARTING V1ProjectResponseStatus = "RESTARTING"
V1ProjectResponseStatusRESTOREFAILED V1ProjectResponseStatus = "RESTORE_FAILED"
V1ProjectResponseStatusRESTORING V1ProjectResponseStatus = "RESTORING"
V1ProjectResponseStatusUNKNOWN V1ProjectResponseStatus = "UNKNOWN"
V1ProjectResponseStatusUPGRADING V1ProjectResponseStatus = "UPGRADING"
)
// Defines values for V1ProjectWithDatabaseResponseStatus.
const (
V1ProjectWithDatabaseResponseStatusACTIVEHEALTHY V1ProjectWithDatabaseResponseStatus = "ACTIVE_HEALTHY"
V1ProjectWithDatabaseResponseStatusACTIVEUNHEALTHY V1ProjectWithDatabaseResponseStatus = "ACTIVE_UNHEALTHY"
V1ProjectWithDatabaseResponseStatusCOMINGUP V1ProjectWithDatabaseResponseStatus = "COMING_UP"
V1ProjectWithDatabaseResponseStatusGOINGDOWN V1ProjectWithDatabaseResponseStatus = "GOING_DOWN"
V1ProjectWithDatabaseResponseStatusINACTIVE V1ProjectWithDatabaseResponseStatus = "INACTIVE"
V1ProjectWithDatabaseResponseStatusINITFAILED V1ProjectWithDatabaseResponseStatus = "INIT_FAILED"
V1ProjectWithDatabaseResponseStatusPAUSEFAILED V1ProjectWithDatabaseResponseStatus = "PAUSE_FAILED"
V1ProjectWithDatabaseResponseStatusPAUSING V1ProjectWithDatabaseResponseStatus = "PAUSING"
V1ProjectWithDatabaseResponseStatusREMOVED V1ProjectWithDatabaseResponseStatus = "REMOVED"
V1ProjectWithDatabaseResponseStatusRESIZING V1ProjectWithDatabaseResponseStatus = "RESIZING"
V1ProjectWithDatabaseResponseStatusRESTARTING V1ProjectWithDatabaseResponseStatus = "RESTARTING"
V1ProjectWithDatabaseResponseStatusRESTOREFAILED V1ProjectWithDatabaseResponseStatus = "RESTORE_FAILED"
V1ProjectWithDatabaseResponseStatusRESTORING V1ProjectWithDatabaseResponseStatus = "RESTORING"
V1ProjectWithDatabaseResponseStatusUNKNOWN V1ProjectWithDatabaseResponseStatus = "UNKNOWN"
V1ProjectWithDatabaseResponseStatusUPGRADING V1ProjectWithDatabaseResponseStatus = "UPGRADING"
)
// Defines values for V1ServiceHealthResponseName.
const (
V1ServiceHealthResponseNameAuth V1ServiceHealthResponseName = "auth"
V1ServiceHealthResponseNameDb V1ServiceHealthResponseName = "db"
V1ServiceHealthResponseNamePooler V1ServiceHealthResponseName = "pooler"
V1ServiceHealthResponseNameRealtime V1ServiceHealthResponseName = "realtime"
V1ServiceHealthResponseNameRest V1ServiceHealthResponseName = "rest"
V1ServiceHealthResponseNameStorage V1ServiceHealthResponseName = "storage"
)
// Defines values for V1ServiceHealthResponseStatus.
const (
ACTIVEHEALTHY V1ServiceHealthResponseStatus = "ACTIVE_HEALTHY"
COMINGUP V1ServiceHealthResponseStatus = "COMING_UP"
UNHEALTHY V1ServiceHealthResponseStatus = "UNHEALTHY"
)
// Defines values for VanitySubdomainConfigResponseStatus.
const (
Active VanitySubdomainConfigResponseStatus = "active"
CustomDomainUsed VanitySubdomainConfigResponseStatus = "custom-domain-used"
NotUsed VanitySubdomainConfigResponseStatus = "not-used"
)
// Defines values for V1AuthorizeUserParamsResponseType.
const (
Code V1AuthorizeUserParamsResponseType = "code"
IdTokenToken V1AuthorizeUserParamsResponseType = "id_token token"
Token V1AuthorizeUserParamsResponseType = "token"
)
// Defines values for V1AuthorizeUserParamsCodeChallengeMethod.
const (
Plain V1AuthorizeUserParamsCodeChallengeMethod = "plain"
S256 V1AuthorizeUserParamsCodeChallengeMethod = "S256"
Sha256 V1AuthorizeUserParamsCodeChallengeMethod = "sha256"
)
// Defines values for V1GetServicesHealthParamsServices.
const (
V1GetServicesHealthParamsServicesAuth V1GetServicesHealthParamsServices = "auth"
V1GetServicesHealthParamsServicesDb V1GetServicesHealthParamsServices = "db"
V1GetServicesHealthParamsServicesPooler V1GetServicesHealthParamsServices = "pooler"
V1GetServicesHealthParamsServicesRealtime V1GetServicesHealthParamsServices = "realtime"
V1GetServicesHealthParamsServicesRest V1GetServicesHealthParamsServices = "rest"
V1GetServicesHealthParamsServicesStorage V1GetServicesHealthParamsServices = "storage"
)
// Defines values for V1ListAllSnippetsParamsSortBy.
const (
InsertedAt V1ListAllSnippetsParamsSortBy = "inserted_at"
Name V1ListAllSnippetsParamsSortBy = "name"
)
// Defines values for V1ListAllSnippetsParamsSortOrder.
const (
Asc V1ListAllSnippetsParamsSortOrder = "asc"
Desc V1ListAllSnippetsParamsSortOrder = "desc"
)
// ActivateVanitySubdomainResponse defines model for ActivateVanitySubdomainResponse.
type ActivateVanitySubdomainResponse struct {
CustomDomain string `json:"custom_domain"`
}
// ApiKeyResponse defines model for ApiKeyResponse.
type ApiKeyResponse struct {
ApiKey string `json:"api_key"`
Description *string `json:"description"`
Hash *string `json:"hash"`
Id *string `json:"id"`
InsertedAt *string `json:"inserted_at"`
Name string `json:"name"`
Prefix *string `json:"prefix"`
SecretJwtTemplate *ApiKeySecretJWTTemplate `json:"secret_jwt_template"`
Type *ApiKeyResponseType `json:"type"`
UpdatedAt *string `json:"updated_at"`
}
// ApiKeyResponseType defines model for ApiKeyResponse.Type.
type ApiKeyResponseType string
// ApiKeySecretJWTTemplate defines model for ApiKeySecretJWTTemplate.
type ApiKeySecretJWTTemplate struct {
Role string `json:"role"`
}
// AttributeMapping defines model for AttributeMapping.
type AttributeMapping struct {
Keys map[string]AttributeValue `json:"keys"`
}
// AttributeValue defines model for AttributeValue.
type AttributeValue struct {
Array *bool `json:"array,omitempty"`
Default *AttributeValue_Default `json:"default,omitempty"`
Name *string `json:"name,omitempty"`
Names *[]string `json:"names,omitempty"`
}
// AttributeValueDefault0 defines model for .
type AttributeValueDefault0 = map[string]interface{}
// AttributeValueDefault1 defines model for .
type AttributeValueDefault1 = float32
// AttributeValueDefault2 defines model for .
type AttributeValueDefault2 = string
// AttributeValueDefault3 defines model for .
type AttributeValueDefault3 = bool
// AttributeValue_Default defines model for AttributeValue.Default.
type AttributeValue_Default struct {
union json.RawMessage
}
// AuthConfigResponse defines model for AuthConfigResponse.
type AuthConfigResponse struct {
ApiMaxRequestDuration *int `json:"api_max_request_duration"`
DbMaxPoolSize *int `json:"db_max_pool_size"`
DisableSignup *bool `json:"disable_signup"`
ExternalAnonymousUsersEnabled *bool `json:"external_anonymous_users_enabled"`
ExternalAppleAdditionalClientIds *string `json:"external_apple_additional_client_ids"`
ExternalAppleClientId *string `json:"external_apple_client_id"`
ExternalAppleEnabled *bool `json:"external_apple_enabled"`
ExternalAppleSecret *string `json:"external_apple_secret"`
ExternalAzureClientId *string `json:"external_azure_client_id"`
ExternalAzureEnabled *bool `json:"external_azure_enabled"`
ExternalAzureSecret *string `json:"external_azure_secret"`
ExternalAzureUrl *string `json:"external_azure_url"`
ExternalBitbucketClientId *string `json:"external_bitbucket_client_id"`
ExternalBitbucketEnabled *bool `json:"external_bitbucket_enabled"`
ExternalBitbucketSecret *string `json:"external_bitbucket_secret"`
ExternalDiscordClientId *string `json:"external_discord_client_id"`
ExternalDiscordEnabled *bool `json:"external_discord_enabled"`
ExternalDiscordSecret *string `json:"external_discord_secret"`
ExternalEmailEnabled *bool `json:"external_email_enabled"`
ExternalFacebookClientId *string `json:"external_facebook_client_id"`
ExternalFacebookEnabled *bool `json:"external_facebook_enabled"`
ExternalFacebookSecret *string `json:"external_facebook_secret"`
ExternalFigmaClientId *string `json:"external_figma_client_id"`
ExternalFigmaEnabled *bool `json:"external_figma_enabled"`
ExternalFigmaSecret *string `json:"external_figma_secret"`
ExternalGithubClientId *string `json:"external_github_client_id"`
ExternalGithubEnabled *bool `json:"external_github_enabled"`
ExternalGithubSecret *string `json:"external_github_secret"`
ExternalGitlabClientId *string `json:"external_gitlab_client_id"`
ExternalGitlabEnabled *bool `json:"external_gitlab_enabled"`
ExternalGitlabSecret *string `json:"external_gitlab_secret"`
ExternalGitlabUrl *string `json:"external_gitlab_url"`
ExternalGoogleAdditionalClientIds *string `json:"external_google_additional_client_ids"`
ExternalGoogleClientId *string `json:"external_google_client_id"`
ExternalGoogleEnabled *bool `json:"external_google_enabled"`
ExternalGoogleSecret *string `json:"external_google_secret"`
ExternalGoogleSkipNonceCheck *bool `json:"external_google_skip_nonce_check"`
ExternalKakaoClientId *string `json:"external_kakao_client_id"`
ExternalKakaoEnabled *bool `json:"external_kakao_enabled"`
ExternalKakaoSecret *string `json:"external_kakao_secret"`
ExternalKeycloakClientId *string `json:"external_keycloak_client_id"`
ExternalKeycloakEnabled *bool `json:"external_keycloak_enabled"`
ExternalKeycloakSecret *string `json:"external_keycloak_secret"`
ExternalKeycloakUrl *string `json:"external_keycloak_url"`
ExternalLinkedinOidcClientId *string `json:"external_linkedin_oidc_client_id"`
ExternalLinkedinOidcEnabled *bool `json:"external_linkedin_oidc_enabled"`
ExternalLinkedinOidcSecret *string `json:"external_linkedin_oidc_secret"`
ExternalNotionClientId *string `json:"external_notion_client_id"`
ExternalNotionEnabled *bool `json:"external_notion_enabled"`
ExternalNotionSecret *string `json:"external_notion_secret"`
ExternalPhoneEnabled *bool `json:"external_phone_enabled"`
ExternalSlackClientId *string `json:"external_slack_client_id"`
ExternalSlackEnabled *bool `json:"external_slack_enabled"`
ExternalSlackOidcClientId *string `json:"external_slack_oidc_client_id"`
ExternalSlackOidcEnabled *bool `json:"external_slack_oidc_enabled"`
ExternalSlackOidcSecret *string `json:"external_slack_oidc_secret"`
ExternalSlackSecret *string `json:"external_slack_secret"`
ExternalSpotifyClientId *string `json:"external_spotify_client_id"`
ExternalSpotifyEnabled *bool `json:"external_spotify_enabled"`
ExternalSpotifySecret *string `json:"external_spotify_secret"`
ExternalTwitchClientId *string `json:"external_twitch_client_id"`
ExternalTwitchEnabled *bool `json:"external_twitch_enabled"`
ExternalTwitchSecret *string `json:"external_twitch_secret"`
ExternalTwitterClientId *string `json:"external_twitter_client_id"`
ExternalTwitterEnabled *bool `json:"external_twitter_enabled"`
ExternalTwitterSecret *string `json:"external_twitter_secret"`
ExternalWorkosClientId *string `json:"external_workos_client_id"`
ExternalWorkosEnabled *bool `json:"external_workos_enabled"`
ExternalWorkosSecret *string `json:"external_workos_secret"`
ExternalWorkosUrl *string `json:"external_workos_url"`
ExternalZoomClientId *string `json:"external_zoom_client_id"`
ExternalZoomEnabled *bool `json:"external_zoom_enabled"`
ExternalZoomSecret *string `json:"external_zoom_secret"`
HookCustomAccessTokenEnabled *bool `json:"hook_custom_access_token_enabled"`
HookCustomAccessTokenSecrets *string `json:"hook_custom_access_token_secrets"`
HookCustomAccessTokenUri *string `json:"hook_custom_access_token_uri"`
HookMfaVerificationAttemptEnabled *bool `json:"hook_mfa_verification_attempt_enabled"`
HookMfaVerificationAttemptSecrets *string `json:"hook_mfa_verification_attempt_secrets"`
HookMfaVerificationAttemptUri *string `json:"hook_mfa_verification_attempt_uri"`
HookPasswordVerificationAttemptEnabled *bool `json:"hook_password_verification_attempt_enabled"`
HookPasswordVerificationAttemptSecrets *string `json:"hook_password_verification_attempt_secrets"`
HookPasswordVerificationAttemptUri *string `json:"hook_password_verification_attempt_uri"`
HookSendEmailEnabled *bool `json:"hook_send_email_enabled"`
HookSendEmailSecrets *string `json:"hook_send_email_secrets"`
HookSendEmailUri *string `json:"hook_send_email_uri"`
HookSendSmsEnabled *bool `json:"hook_send_sms_enabled"`
HookSendSmsSecrets *string `json:"hook_send_sms_secrets"`
HookSendSmsUri *string `json:"hook_send_sms_uri"`
JwtExp *int `json:"jwt_exp"`
MailerAllowUnverifiedEmailSignIns *bool `json:"mailer_allow_unverified_email_sign_ins"`
MailerAutoconfirm *bool `json:"mailer_autoconfirm"`
MailerOtpExp int `json:"mailer_otp_exp"`
MailerOtpLength *int `json:"mailer_otp_length"`
MailerSecureEmailChangeEnabled *bool `json:"mailer_secure_email_change_enabled"`
MailerSubjectsConfirmation *string `json:"mailer_subjects_confirmation"`
MailerSubjectsEmailChange *string `json:"mailer_subjects_email_change"`
MailerSubjectsInvite *string `json:"mailer_subjects_invite"`
MailerSubjectsMagicLink *string `json:"mailer_subjects_magic_link"`
MailerSubjectsReauthentication *string `json:"mailer_subjects_reauthentication"`
MailerSubjectsRecovery *string `json:"mailer_subjects_recovery"`
MailerTemplatesConfirmationContent *string `json:"mailer_templates_confirmation_content"`
MailerTemplatesEmailChangeContent *string `json:"mailer_templates_email_change_content"`
MailerTemplatesInviteContent *string `json:"mailer_templates_invite_content"`
MailerTemplatesMagicLinkContent *string `json:"mailer_templates_magic_link_content"`
MailerTemplatesReauthenticationContent *string `json:"mailer_templates_reauthentication_content"`
MailerTemplatesRecoveryContent *string `json:"mailer_templates_recovery_content"`
MfaMaxEnrolledFactors *int `json:"mfa_max_enrolled_factors"`
MfaPhoneEnrollEnabled *bool `json:"mfa_phone_enroll_enabled"`
MfaPhoneMaxFrequency *int `json:"mfa_phone_max_frequency"`
MfaPhoneOtpLength int `json:"mfa_phone_otp_length"`
MfaPhoneTemplate *string `json:"mfa_phone_template"`
MfaPhoneVerifyEnabled *bool `json:"mfa_phone_verify_enabled"`
MfaTotpEnrollEnabled *bool `json:"mfa_totp_enroll_enabled"`
MfaTotpVerifyEnabled *bool `json:"mfa_totp_verify_enabled"`
MfaWebAuthnEnrollEnabled *bool `json:"mfa_web_authn_enroll_enabled"`
MfaWebAuthnVerifyEnabled *bool `json:"mfa_web_authn_verify_enabled"`
PasswordHibpEnabled *bool `json:"password_hibp_enabled"`
PasswordMinLength *int `json:"password_min_length"`
PasswordRequiredCharacters *string `json:"password_required_characters"`
RateLimitAnonymousUsers *int `json:"rate_limit_anonymous_users"`
RateLimitEmailSent *int `json:"rate_limit_email_sent"`
RateLimitOtp *int `json:"rate_limit_otp"`
RateLimitSmsSent *int `json:"rate_limit_sms_sent"`
RateLimitTokenRefresh *int `json:"rate_limit_token_refresh"`
RateLimitVerify *int `json:"rate_limit_verify"`
RefreshTokenRotationEnabled *bool `json:"refresh_token_rotation_enabled"`
SamlAllowEncryptedAssertions *bool `json:"saml_allow_encrypted_assertions"`
SamlEnabled *bool `json:"saml_enabled"`
SamlExternalUrl *string `json:"saml_external_url"`
SecurityCaptchaEnabled *bool `json:"security_captcha_enabled"`
SecurityCaptchaProvider *string `json:"security_captcha_provider"`
SecurityCaptchaSecret *string `json:"security_captcha_secret"`
SecurityManualLinkingEnabled *bool `json:"security_manual_linking_enabled"`
SecurityRefreshTokenReuseInterval *int `json:"security_refresh_token_reuse_interval"`
SecurityUpdatePasswordRequireReauthentication *bool `json:"security_update_password_require_reauthentication"`
SessionsInactivityTimeout *int `json:"sessions_inactivity_timeout"`
SessionsSinglePerUser *bool `json:"sessions_single_per_user"`
SessionsTags *string `json:"sessions_tags"`
SessionsTimebox *int `json:"sessions_timebox"`
SiteUrl *string `json:"site_url"`
SmsAutoconfirm *bool `json:"sms_autoconfirm"`
SmsMaxFrequency *int `json:"sms_max_frequency"`
SmsMessagebirdAccessKey *string `json:"sms_messagebird_access_key"`
SmsMessagebirdOriginator *string `json:"sms_messagebird_originator"`
SmsOtpExp *int `json:"sms_otp_exp"`
SmsOtpLength int `json:"sms_otp_length"`
SmsProvider *string `json:"sms_provider"`
SmsTemplate *string `json:"sms_template"`
SmsTestOtp *string `json:"sms_test_otp"`
SmsTestOtpValidUntil *string `json:"sms_test_otp_valid_until"`
SmsTextlocalApiKey *string `json:"sms_textlocal_api_key"`
SmsTextlocalSender *string `json:"sms_textlocal_sender"`
SmsTwilioAccountSid *string `json:"sms_twilio_account_sid"`
SmsTwilioAuthToken *string `json:"sms_twilio_auth_token"`
SmsTwilioContentSid *string `json:"sms_twilio_content_sid"`
SmsTwilioMessageServiceSid *string `json:"sms_twilio_message_service_sid"`
SmsTwilioVerifyAccountSid *string `json:"sms_twilio_verify_account_sid"`
SmsTwilioVerifyAuthToken *string `json:"sms_twilio_verify_auth_token"`
SmsTwilioVerifyMessageServiceSid *string `json:"sms_twilio_verify_message_service_sid"`
SmsVonageApiKey *string `json:"sms_vonage_api_key"`
SmsVonageApiSecret *string `json:"sms_vonage_api_secret"`
SmsVonageFrom *string `json:"sms_vonage_from"`
SmtpAdminEmail *string `json:"smtp_admin_email"`
SmtpHost *string `json:"smtp_host"`
SmtpMaxFrequency *int `json:"smtp_max_frequency"`
SmtpPass *string `json:"smtp_pass"`
SmtpPort *string `json:"smtp_port"`
SmtpSenderName *string `json:"smtp_sender_name"`
SmtpUser *string `json:"smtp_user"`
UriAllowList *string `json:"uri_allow_list"`
}
// AuthHealthResponse defines model for AuthHealthResponse.
type AuthHealthResponse struct {
Name AuthHealthResponseName `json:"name"`
}
// AuthHealthResponseName defines model for AuthHealthResponse.Name.
type AuthHealthResponseName string
// BillingPlanId defines model for BillingPlanId.
type BillingPlanId string
// BranchDeleteResponse defines model for BranchDeleteResponse.
type BranchDeleteResponse struct {
Message string `json:"message"`
}
// BranchDetailResponse defines model for BranchDetailResponse.
type BranchDetailResponse struct {
DbHost string `json:"db_host"`
DbPass *string `json:"db_pass,omitempty"`
DbPort int `json:"db_port"`
DbUser *string `json:"db_user,omitempty"`
JwtSecret *string `json:"jwt_secret,omitempty"`
PostgresEngine string `json:"postgres_engine"`
PostgresVersion string `json:"postgres_version"`
Ref string `json:"ref"`
ReleaseChannel string `json:"release_channel"`
Status BranchDetailResponseStatus `json:"status"`
}
// BranchDetailResponseStatus defines model for BranchDetailResponse.Status.
type BranchDetailResponseStatus string
// BranchResponse defines model for BranchResponse.
type BranchResponse struct {
CreatedAt string `json:"created_at"`
GitBranch *string `json:"git_branch,omitempty"`
Id string `json:"id"`
IsDefault bool `json:"is_default"`
// LatestCheckRunId This field is deprecated and will not be populated.
// Deprecated:
LatestCheckRunId *float32 `json:"latest_check_run_id,omitempty"`
Name string `json:"name"`
ParentProjectRef string `json:"parent_project_ref"`
Persistent bool `json:"persistent"`
PrNumber *int32 `json:"pr_number,omitempty"`
ProjectRef string `json:"project_ref"`
Status BranchResponseStatus `json:"status"`
UpdatedAt string `json:"updated_at"`
}
// BranchResponseStatus defines model for BranchResponse.Status.
type BranchResponseStatus string
// BranchUpdateResponse defines model for BranchUpdateResponse.
type BranchUpdateResponse struct {
Message string `json:"message"`
WorkflowRunId string `json:"workflow_run_id"`
}
// BulkUpdateFunctionBody defines model for BulkUpdateFunctionBody.
type BulkUpdateFunctionBody struct {
CreatedAt *int64 `json:"created_at,omitempty"`
EntrypointPath *string `json:"entrypoint_path,omitempty"`
Id string `json:"id"`
ImportMap *bool `json:"import_map,omitempty"`
ImportMapPath *string `json:"import_map_path,omitempty"`
Name string `json:"name"`
Slug string `json:"slug"`
Status BulkUpdateFunctionBodyStatus `json:"status"`
VerifyJwt *bool `json:"verify_jwt,omitempty"`
Version int `json:"version"`
}
// BulkUpdateFunctionBodyStatus defines model for BulkUpdateFunctionBody.Status.
type BulkUpdateFunctionBodyStatus string
// BulkUpdateFunctionResponse defines model for BulkUpdateFunctionResponse.
type BulkUpdateFunctionResponse struct {
Functions []FunctionResponse `json:"functions"`
}
// CfResponse defines model for CfResponse.
type CfResponse struct {
Errors []map[string]interface{} `json:"errors"`
Messages []map[string]interface{} `json:"messages"`
Result CustomHostnameDetails `json:"result"`
Success bool `json:"success"`
}
// CreateApiKeyBody defines model for CreateApiKeyBody.
type CreateApiKeyBody struct {
Description *string `json:"description"`
SecretJwtTemplate *ApiKeySecretJWTTemplate `json:"secret_jwt_template"`
Type CreateApiKeyBodyType `json:"type"`
}
// CreateApiKeyBodyType defines model for CreateApiKeyBody.Type.
type CreateApiKeyBodyType string
// CreateBranchBody defines model for CreateBranchBody.
type CreateBranchBody struct {
BranchName string `json:"branch_name"`
DesiredInstanceSize *DesiredInstanceSize `json:"desired_instance_size,omitempty"`
GitBranch *string `json:"git_branch,omitempty"`
Persistent *bool `json:"persistent,omitempty"`
// PostgresEngine Postgres engine version. If not provided, the latest version will be used.
PostgresEngine *PostgresEngine `json:"postgres_engine,omitempty"`
Region *string `json:"region,omitempty"`
ReleaseChannel *ReleaseChannel `json:"release_channel,omitempty"`
}
// CreateOrganizationV1Dto defines model for CreateOrganizationV1Dto.
type CreateOrganizationV1Dto struct {
Name string `json:"name"`
}
// CreateProviderBody defines model for CreateProviderBody.
type CreateProviderBody struct {
AttributeMapping *AttributeMapping `json:"attribute_mapping,omitempty"`
Domains *[]string `json:"domains,omitempty"`
MetadataUrl *string `json:"metadata_url,omitempty"`
MetadataXml *string `json:"metadata_xml,omitempty"`
// Type What type of provider will be created
Type CreateProviderBodyType `json:"type"`
}
// CreateProviderBodyType What type of provider will be created
type CreateProviderBodyType string
// CreateProviderResponse defines model for CreateProviderResponse.
type CreateProviderResponse struct {
CreatedAt *string `json:"created_at,omitempty"`
Domains *[]Domain `json:"domains,omitempty"`
Id string `json:"id"`
Saml *SamlDescriptor `json:"saml,omitempty"`
UpdatedAt *string `json:"updated_at,omitempty"`
}
// CreateSecretBody defines model for CreateSecretBody.
type CreateSecretBody struct {
// Name Secret name must not start with the SUPABASE_ prefix.
Name string `json:"name"`
Value string `json:"value"`
}
// CreateThirdPartyAuthBody defines model for CreateThirdPartyAuthBody.
type CreateThirdPartyAuthBody struct {
CustomJwks *map[string]interface{} `json:"custom_jwks,omitempty"`
JwksUrl *string `json:"jwks_url,omitempty"`
OidcIssuerUrl *string `json:"oidc_issuer_url,omitempty"`
}
// CustomHostnameDetails defines model for CustomHostnameDetails.
type CustomHostnameDetails struct {
CustomOriginServer string `json:"custom_origin_server"`
Hostname string `json:"hostname"`
Id string `json:"id"`
OwnershipVerification OwnershipVerification `json:"ownership_verification"`
Ssl SslValidation `json:"ssl"`
Status string `json:"status"`
VerificationErrors *[]string `json:"verification_errors,omitempty"`
}
// DatabaseUpgradeStatus defines model for DatabaseUpgradeStatus.
type DatabaseUpgradeStatus struct {
Error *DatabaseUpgradeStatusError `json:"error,omitempty"`
InitiatedAt string `json:"initiated_at"`
LatestStatusAt string `json:"latest_status_at"`
Progress *DatabaseUpgradeStatusProgress `json:"progress,omitempty"`
Status DatabaseUpgradeStatusStatus `json:"status"`
TargetVersion int `json:"target_version"`
}
// DatabaseUpgradeStatusError defines model for DatabaseUpgradeStatus.Error.
type DatabaseUpgradeStatusError string
// DatabaseUpgradeStatusProgress defines model for DatabaseUpgradeStatus.Progress.
type DatabaseUpgradeStatusProgress string
// DatabaseUpgradeStatusStatus defines model for DatabaseUpgradeStatus.Status.
type DatabaseUpgradeStatusStatus int
// DatabaseUpgradeStatusResponse defines model for DatabaseUpgradeStatusResponse.
type DatabaseUpgradeStatusResponse struct {
DatabaseUpgradeStatus *DatabaseUpgradeStatus `json:"databaseUpgradeStatus"`
}
// DeleteProviderResponse defines model for DeleteProviderResponse.
type DeleteProviderResponse struct {
CreatedAt *string `json:"created_at,omitempty"`
Domains *[]Domain `json:"domains,omitempty"`
Id string `json:"id"`
Saml *SamlDescriptor `json:"saml,omitempty"`
UpdatedAt *string `json:"updated_at,omitempty"`
}
// DeployFunctionResponse defines model for DeployFunctionResponse.
type DeployFunctionResponse struct {
ComputeMultiplier *float32 `json:"compute_multiplier,omitempty"`
CreatedAt *int64 `json:"created_at,omitempty"`
EntrypointPath *string `json:"entrypoint_path,omitempty"`
Id string `json:"id"`
ImportMap *bool `json:"import_map,omitempty"`
ImportMapPath *string `json:"import_map_path,omitempty"`
Name string `json:"name"`
Slug string `json:"slug"`
Status DeployFunctionResponseStatus `json:"status"`
UpdatedAt *int64 `json:"updated_at,omitempty"`
VerifyJwt *bool `json:"verify_jwt,omitempty"`
Version int `json:"version"`
}
// DeployFunctionResponseStatus defines model for DeployFunctionResponse.Status.
type DeployFunctionResponseStatus string
// DesiredInstanceSize defines model for DesiredInstanceSize.
type DesiredInstanceSize string
// Domain defines model for Domain.
type Domain struct {
CreatedAt *string `json:"created_at,omitempty"`
Domain *string `json:"domain,omitempty"`
Id string `json:"id"`
UpdatedAt *string `json:"updated_at,omitempty"`
}
// FunctionDeployBody defines model for FunctionDeployBody.
type FunctionDeployBody struct {
File []openapi_types.File `json:"file"`
Metadata FunctionDeployMetadata `json:"metadata"`
}
// FunctionDeployMetadata defines model for FunctionDeployMetadata.
type FunctionDeployMetadata struct {
EntrypointPath string `json:"entrypoint_path"`
ImportMapPath *string `json:"import_map_path,omitempty"`
Name *string `json:"name,omitempty"`
StaticPatterns *[]string `json:"static_patterns,omitempty"`
VerifyJwt *bool `json:"verify_jwt,omitempty"`
}
// FunctionResponse defines model for FunctionResponse.
type FunctionResponse struct {
ComputeMultiplier *float32 `json:"compute_multiplier,omitempty"`
CreatedAt int64 `json:"created_at"`
EntrypointPath *string `json:"entrypoint_path,omitempty"`
Id string `json:"id"`
ImportMap *bool `json:"import_map,omitempty"`
ImportMapPath *string `json:"import_map_path,omitempty"`
Name string `json:"name"`
Slug string `json:"slug"`
Status FunctionResponseStatus `json:"status"`
UpdatedAt int64 `json:"updated_at"`
VerifyJwt *bool `json:"verify_jwt,omitempty"`
Version int `json:"version"`
}
// FunctionResponseStatus defines model for FunctionResponse.Status.
type FunctionResponseStatus string
// FunctionSlugResponse defines model for FunctionSlugResponse.
type FunctionSlugResponse struct {
ComputeMultiplier *float32 `json:"compute_multiplier,omitempty"`
CreatedAt int64 `json:"created_at"`
EntrypointPath *string `json:"entrypoint_path,omitempty"`
Id string `json:"id"`
ImportMap *bool `json:"import_map,omitempty"`
ImportMapPath *string `json:"import_map_path,omitempty"`
Name string `json:"name"`
Slug string `json:"slug"`
Status FunctionSlugResponseStatus `json:"status"`
UpdatedAt int64 `json:"updated_at"`
VerifyJwt *bool `json:"verify_jwt,omitempty"`
Version int `json:"version"`
}
// FunctionSlugResponseStatus defines model for FunctionSlugResponse.Status.
type FunctionSlugResponseStatus string
// GetProjectAvailableRestoreVersionsResponse defines model for GetProjectAvailableRestoreVersionsResponse.
type GetProjectAvailableRestoreVersionsResponse struct {
AvailableVersions []ProjectAvailableRestoreVersion `json:"available_versions"`
}
// GetProjectDbMetadataResponseDto defines model for GetProjectDbMetadataResponseDto.
type GetProjectDbMetadataResponseDto struct {
Databases []GetProjectDbMetadataResponseDto_Databases_Item `json:"databases"`
}
// GetProjectDbMetadataResponseDto_Databases_Schemas_Item defines model for GetProjectDbMetadataResponseDto.Databases.Schemas.Item.
type GetProjectDbMetadataResponseDto_Databases_Schemas_Item struct {
Name string `json:"name"`
AdditionalProperties map[string]interface{} `json:"-"`
}
// GetProjectDbMetadataResponseDto_Databases_Item defines model for GetProjectDbMetadataResponseDto.databases.Item.
type GetProjectDbMetadataResponseDto_Databases_Item struct {
Name string `json:"name"`
Schemas []GetProjectDbMetadataResponseDto_Databases_Schemas_Item `json:"schemas"`
AdditionalProperties map[string]interface{} `json:"-"`
}
// GetProviderResponse defines model for GetProviderResponse.
type GetProviderResponse struct {
CreatedAt *string `json:"created_at,omitempty"`
Domains *[]Domain `json:"domains,omitempty"`
Id string `json:"id"`
Saml *SamlDescriptor `json:"saml,omitempty"`
UpdatedAt *string `json:"updated_at,omitempty"`
}
// ListProvidersResponse defines model for ListProvidersResponse.
type ListProvidersResponse struct {
Items []Provider `json:"items"`
}
// NetworkBanResponse defines model for NetworkBanResponse.
type NetworkBanResponse struct {
BannedIpv4Addresses []string `json:"banned_ipv4_addresses"`
}
// NetworkRestrictionsRequest defines model for NetworkRestrictionsRequest.
type NetworkRestrictionsRequest struct {
DbAllowedCidrs *[]string `json:"dbAllowedCidrs,omitempty"`
DbAllowedCidrsV6 *[]string `json:"dbAllowedCidrsV6,omitempty"`
}
// NetworkRestrictionsResponse defines model for NetworkRestrictionsResponse.
type NetworkRestrictionsResponse struct {
Config NetworkRestrictionsRequest `json:"config"`
Entitlement NetworkRestrictionsResponseEntitlement `json:"entitlement"`
OldConfig *NetworkRestrictionsRequest `json:"old_config,omitempty"`
Status NetworkRestrictionsResponseStatus `json:"status"`
}
// NetworkRestrictionsResponseEntitlement defines model for NetworkRestrictionsResponse.Entitlement.
type NetworkRestrictionsResponseEntitlement string
// NetworkRestrictionsResponseStatus defines model for NetworkRestrictionsResponse.Status.
type NetworkRestrictionsResponseStatus string
// OAuthRevokeTokenBodyDto defines model for OAuthRevokeTokenBodyDto.
type OAuthRevokeTokenBodyDto struct {
ClientId openapi_types.UUID `json:"client_id"`
ClientSecret string `json:"client_secret"`
RefreshToken string `json:"refresh_token"`
}
// OAuthTokenBody defines model for OAuthTokenBody.
type OAuthTokenBody struct {
ClientId string `json:"client_id"`
ClientSecret string `json:"client_secret"`
Code *string `json:"code,omitempty"`
CodeVerifier *string `json:"code_verifier,omitempty"`
GrantType OAuthTokenBodyGrantType `json:"grant_type"`
RedirectUri *string `json:"redirect_uri,omitempty"`
RefreshToken *string `json:"refresh_token,omitempty"`
}
// OAuthTokenBodyGrantType defines model for OAuthTokenBody.GrantType.
type OAuthTokenBodyGrantType string
// OAuthTokenResponse defines model for OAuthTokenResponse.
type OAuthTokenResponse struct {
AccessToken string `json:"access_token"`
ExpiresIn int64 `json:"expires_in"`
RefreshToken string `json:"refresh_token"`
TokenType OAuthTokenResponseTokenType `json:"token_type"`
}
// OAuthTokenResponseTokenType defines model for OAuthTokenResponse.TokenType.
type OAuthTokenResponseTokenType string
// OrganizationResponseV1 defines model for OrganizationResponseV1.
type OrganizationResponseV1 struct {
Id string `json:"id"`
Name string `json:"name"`
}
// OwnershipVerification defines model for OwnershipVerification.
type OwnershipVerification struct {
Name string `json:"name"`
Type string `json:"type"`
Value string `json:"value"`
}
// PgsodiumConfigResponse defines model for PgsodiumConfigResponse.
type PgsodiumConfigResponse struct {
RootKey string `json:"root_key"`
}
// PostgresConfigResponse defines model for PostgresConfigResponse.
type PostgresConfigResponse struct {
EffectiveCacheSize *string `json:"effective_cache_size,omitempty"`
LogicalDecodingWorkMem *string `json:"logical_decoding_work_mem,omitempty"`
MaintenanceWorkMem *string `json:"maintenance_work_mem,omitempty"`
MaxConnections *int `json:"max_connections,omitempty"`
MaxLocksPerTransaction *int `json:"max_locks_per_transaction,omitempty"`
MaxParallelMaintenanceWorkers *int `json:"max_parallel_maintenance_workers,omitempty"`
MaxParallelWorkers *int `json:"max_parallel_workers,omitempty"`
MaxParallelWorkersPerGather *int `json:"max_parallel_workers_per_gather,omitempty"`
MaxReplicationSlots *int `json:"max_replication_slots,omitempty"`
MaxSlotWalKeepSize *string `json:"max_slot_wal_keep_size,omitempty"`
MaxStandbyArchiveDelay *string `json:"max_standby_archive_delay,omitempty"`
MaxStandbyStreamingDelay *string `json:"max_standby_streaming_delay,omitempty"`
MaxWalSenders *int `json:"max_wal_senders,omitempty"`
MaxWalSize *string `json:"max_wal_size,omitempty"`
MaxWorkerProcesses *int `json:"max_worker_processes,omitempty"`
SessionReplicationRole *PostgresConfigResponseSessionReplicationRole `json:"session_replication_role,omitempty"`
SharedBuffers *string `json:"shared_buffers,omitempty"`
StatementTimeout *string `json:"statement_timeout,omitempty"`
TrackActivityQuerySize *string `json:"track_activity_query_size,omitempty"`
TrackCommitTimestamp *bool `json:"track_commit_timestamp,omitempty"`
WalKeepSize *string `json:"wal_keep_size,omitempty"`
WalSenderTimeout *string `json:"wal_sender_timeout,omitempty"`
WorkMem *string `json:"work_mem,omitempty"`
}
// PostgresConfigResponseSessionReplicationRole defines model for PostgresConfigResponse.SessionReplicationRole.
type PostgresConfigResponseSessionReplicationRole string
// PostgresEngine Postgres engine version. If not provided, the latest version will be used.
type PostgresEngine string
// PostgrestConfigWithJWTSecretResponse defines model for PostgrestConfigWithJWTSecretResponse.
type PostgrestConfigWithJWTSecretResponse struct {
DbExtraSearchPath string `json:"db_extra_search_path"`
// DbPool If `null`, the value is automatically configured based on compute size.
DbPool *int `json:"db_pool"`
DbSchema string `json:"db_schema"`
JwtSecret *string `json:"jwt_secret,omitempty"`
MaxRows int `json:"max_rows"`
}
// ProjectAvailableRestoreVersion defines model for ProjectAvailableRestoreVersion.
type ProjectAvailableRestoreVersion struct {
PostgresEngine ProjectAvailableRestoreVersionPostgresEngine `json:"postgres_engine"`
ReleaseChannel ProjectAvailableRestoreVersionReleaseChannel `json:"release_channel"`
Version string `json:"version"`
}
// ProjectAvailableRestoreVersionPostgresEngine defines model for ProjectAvailableRestoreVersion.PostgresEngine.
type ProjectAvailableRestoreVersionPostgresEngine string
// ProjectAvailableRestoreVersionReleaseChannel defines model for ProjectAvailableRestoreVersion.ReleaseChannel.
type ProjectAvailableRestoreVersionReleaseChannel string
// ProjectUpgradeEligibilityResponse defines model for ProjectUpgradeEligibilityResponse.
type ProjectUpgradeEligibilityResponse struct {
CurrentAppVersion string `json:"current_app_version"`
CurrentAppVersionReleaseChannel ReleaseChannel `json:"current_app_version_release_channel"`
DurationEstimateHours int `json:"duration_estimate_hours"`
Eligible bool `json:"eligible"`
ExtensionDependentObjects []string `json:"extension_dependent_objects"`
LatestAppVersion string `json:"latest_app_version"`
LegacyAuthCustomRoles []string `json:"legacy_auth_custom_roles"`
PotentialBreakingChanges []string `json:"potential_breaking_changes"`
TargetUpgradeVersions []ProjectVersion `json:"target_upgrade_versions"`
}
// ProjectUpgradeInitiateResponse defines model for ProjectUpgradeInitiateResponse.
type ProjectUpgradeInitiateResponse struct {
TrackingId string `json:"tracking_id"`
}
// ProjectVersion defines model for ProjectVersion.
type ProjectVersion struct {
AppVersion string `json:"app_version"`
// PostgresVersion Postgres engine version. If not provided, the latest version will be used.
PostgresVersion PostgresEngine `json:"postgres_version"`
ReleaseChannel ReleaseChannel `json:"release_channel"`
}
// Provider defines model for Provider.
type Provider struct {
CreatedAt *string `json:"created_at,omitempty"`
Domains *[]Domain `json:"domains,omitempty"`
Id string `json:"id"`
Saml *SamlDescriptor `json:"saml,omitempty"`
UpdatedAt *string `json:"updated_at,omitempty"`
}
// ReadOnlyStatusResponse defines model for ReadOnlyStatusResponse.
type ReadOnlyStatusResponse struct {
Enabled bool `json:"enabled"`
OverrideActiveUntil string `json:"override_active_until"`
OverrideEnabled bool `json:"override_enabled"`
}
// RealtimeHealthResponse defines model for RealtimeHealthResponse.
type RealtimeHealthResponse struct {
ConnectedCluster int `json:"connected_cluster"`
}
// ReleaseChannel defines model for ReleaseChannel.
type ReleaseChannel string
// RemoveNetworkBanRequest defines model for RemoveNetworkBanRequest.
type RemoveNetworkBanRequest struct {
Ipv4Addresses []string `json:"ipv4_addresses"`
}
// RemoveReadReplicaBody defines model for RemoveReadReplicaBody.
type RemoveReadReplicaBody struct {
DatabaseIdentifier string `json:"database_identifier"`
}
// RestoreProjectBodyDto defines model for RestoreProjectBodyDto.
type RestoreProjectBodyDto = map[string]interface{}
// SamlDescriptor defines model for SamlDescriptor.
type SamlDescriptor struct {
AttributeMapping *AttributeMapping `json:"attribute_mapping,omitempty"`
EntityId string `json:"entity_id"`
Id string `json:"id"`
MetadataUrl *string `json:"metadata_url,omitempty"`
MetadataXml *string `json:"metadata_xml,omitempty"`
}
// SecretResponse defines model for SecretResponse.
type SecretResponse struct {
Name string `json:"name"`
Value string `json:"value"`
}
// SetUpReadReplicaBody defines model for SetUpReadReplicaBody.
type SetUpReadReplicaBody struct {
// ReadReplicaRegion Region you want your read replica to reside in
ReadReplicaRegion SetUpReadReplicaBodyReadReplicaRegion `json:"read_replica_region"`
}
// SetUpReadReplicaBodyReadReplicaRegion Region you want your read replica to reside in
type SetUpReadReplicaBodyReadReplicaRegion string
// SnippetContent defines model for SnippetContent.
type SnippetContent struct {
Favorite bool `json:"favorite"`
SchemaVersion string `json:"schema_version"`
Sql string `json:"sql"`
}
// SnippetList defines model for SnippetList.
type SnippetList struct {
Cursor *string `json:"cursor,omitempty"`
Data []SnippetMeta `json:"data"`
}
// SnippetMeta defines model for SnippetMeta.
type SnippetMeta struct {
Description *string `json:"description"`
Id string `json:"id"`
InsertedAt string `json:"inserted_at"`
Name string `json:"name"`
Owner SnippetUser `json:"owner"`
Project SnippetProject `json:"project"`
Type SnippetMetaType `json:"type"`
UpdatedAt string `json:"updated_at"`
UpdatedBy SnippetUser `json:"updated_by"`
Visibility SnippetMetaVisibility `json:"visibility"`
}
// SnippetMetaType defines model for SnippetMeta.Type.
type SnippetMetaType string
// SnippetMetaVisibility defines model for SnippetMeta.Visibility.
type SnippetMetaVisibility string
// SnippetProject defines model for SnippetProject.
type SnippetProject struct {
Id int64 `json:"id"`
Name string `json:"name"`
}
// SnippetResponse defines model for SnippetResponse.
type SnippetResponse struct {
Content SnippetContent `json:"content"`
Description *string `json:"description"`
Id string `json:"id"`
InsertedAt string `json:"inserted_at"`
Name string `json:"name"`
Owner SnippetUser `json:"owner"`
Project SnippetProject `json:"project"`
Type SnippetResponseType `json:"type"`
UpdatedAt string `json:"updated_at"`
UpdatedBy SnippetUser `json:"updated_by"`
Visibility SnippetResponseVisibility `json:"visibility"`
}
// SnippetResponseType defines model for SnippetResponse.Type.
type SnippetResponseType string
// SnippetResponseVisibility defines model for SnippetResponse.Visibility.
type SnippetResponseVisibility string
// SnippetUser defines model for SnippetUser.
type SnippetUser struct {
Id int64 `json:"id"`
Username string `json:"username"`
}
// SslEnforcementRequest defines model for SslEnforcementRequest.
type SslEnforcementRequest struct {
RequestedConfig SslEnforcements `json:"requestedConfig"`
}
// SslEnforcementResponse defines model for SslEnforcementResponse.
type SslEnforcementResponse struct {
AppliedSuccessfully bool `json:"appliedSuccessfully"`
CurrentConfig SslEnforcements `json:"currentConfig"`
}
// SslEnforcements defines model for SslEnforcements.
type SslEnforcements struct {
Database bool `json:"database"`
}
// SslValidation defines model for SslValidation.
type SslValidation struct {
Status string `json:"status"`
ValidationErrors *[]ValidationError `json:"validation_errors,omitempty"`
ValidationRecords []ValidationRecord `json:"validation_records"`
}
// StorageConfigResponse defines model for StorageConfigResponse.
type StorageConfigResponse struct {
Features StorageFeatures `json:"features"`
FileSizeLimit int64 `json:"fileSizeLimit"`
}
// StorageFeatureImageTransformation defines model for StorageFeatureImageTransformation.
type StorageFeatureImageTransformation struct {
Enabled bool `json:"enabled"`
}
// StorageFeatureS3Protocol defines model for StorageFeatureS3Protocol.
type StorageFeatureS3Protocol struct {
Enabled bool `json:"enabled"`
}
// StorageFeatures defines model for StorageFeatures.
type StorageFeatures struct {
ImageTransformation StorageFeatureImageTransformation `json:"imageTransformation"`
S3Protocol StorageFeatureS3Protocol `json:"s3Protocol"`
}
// SubdomainAvailabilityResponse defines model for SubdomainAvailabilityResponse.
type SubdomainAvailabilityResponse struct {
Available bool `json:"available"`
}
// SupavisorConfigResponse defines model for SupavisorConfigResponse.
type SupavisorConfigResponse struct {
ConnectionString string `json:"connectionString"`
DatabaseType SupavisorConfigResponseDatabaseType `json:"database_type"`
DbHost string `json:"db_host"`
DbName string `json:"db_name"`
DbPort int `json:"db_port"`
DbUser string `json:"db_user"`
DefaultPoolSize *int `json:"default_pool_size"`
Identifier string `json:"identifier"`
IsUsingScramAuth bool `json:"is_using_scram_auth"`
MaxClientConn *int `json:"max_client_conn"`
PoolMode SupavisorConfigResponsePoolMode `json:"pool_mode"`
}
// SupavisorConfigResponseDatabaseType defines model for SupavisorConfigResponse.DatabaseType.
type SupavisorConfigResponseDatabaseType string
// SupavisorConfigResponsePoolMode defines model for SupavisorConfigResponse.PoolMode.
type SupavisorConfigResponsePoolMode string
// ThirdPartyAuth defines model for ThirdPartyAuth.
type ThirdPartyAuth struct {
CustomJwks *map[string]interface{} `json:"custom_jwks"`
Id string `json:"id"`
InsertedAt string `json:"inserted_at"`
JwksUrl *string `json:"jwks_url"`
OidcIssuerUrl *string `json:"oidc_issuer_url"`
ResolvedAt *string `json:"resolved_at"`
ResolvedJwks *map[string]interface{} `json:"resolved_jwks"`
Type string `json:"type"`
UpdatedAt string `json:"updated_at"`
}
// TypescriptResponse defines model for TypescriptResponse.
type TypescriptResponse struct {
Types string `json:"types"`
}
// UpdateApiKeyBody defines model for UpdateApiKeyBody.
type UpdateApiKeyBody struct {
Description *string `json:"description"`
SecretJwtTemplate *ApiKeySecretJWTTemplate `json:"secret_jwt_template"`
}
// UpdateAuthConfigBody defines model for UpdateAuthConfigBody.
type UpdateAuthConfigBody struct {
ApiMaxRequestDuration *int `json:"api_max_request_duration,omitempty"`
DbMaxPoolSize *int `json:"db_max_pool_size,omitempty"`
DisableSignup *bool `json:"disable_signup,omitempty"`
ExternalAnonymousUsersEnabled *bool `json:"external_anonymous_users_enabled,omitempty"`
ExternalAppleAdditionalClientIds *string `json:"external_apple_additional_client_ids,omitempty"`
ExternalAppleClientId *string `json:"external_apple_client_id,omitempty"`
ExternalAppleEnabled *bool `json:"external_apple_enabled,omitempty"`
ExternalAppleSecret *string `json:"external_apple_secret,omitempty"`
ExternalAzureClientId *string `json:"external_azure_client_id,omitempty"`
ExternalAzureEnabled *bool `json:"external_azure_enabled,omitempty"`
ExternalAzureSecret *string `json:"external_azure_secret,omitempty"`
ExternalAzureUrl *string `json:"external_azure_url,omitempty"`
ExternalBitbucketClientId *string `json:"external_bitbucket_client_id,omitempty"`
ExternalBitbucketEnabled *bool `json:"external_bitbucket_enabled,omitempty"`
ExternalBitbucketSecret *string `json:"external_bitbucket_secret,omitempty"`
ExternalDiscordClientId *string `json:"external_discord_client_id,omitempty"`
ExternalDiscordEnabled *bool `json:"external_discord_enabled,omitempty"`
ExternalDiscordSecret *string `json:"external_discord_secret,omitempty"`
ExternalEmailEnabled *bool `json:"external_email_enabled,omitempty"`
ExternalFacebookClientId *string `json:"external_facebook_client_id,omitempty"`
ExternalFacebookEnabled *bool `json:"external_facebook_enabled,omitempty"`
ExternalFacebookSecret *string `json:"external_facebook_secret,omitempty"`
ExternalFigmaClientId *string `json:"external_figma_client_id,omitempty"`
ExternalFigmaEnabled *bool `json:"external_figma_enabled,omitempty"`
ExternalFigmaSecret *string `json:"external_figma_secret,omitempty"`
ExternalGithubClientId *string `json:"external_github_client_id,omitempty"`
ExternalGithubEnabled *bool `json:"external_github_enabled,omitempty"`
ExternalGithubSecret *string `json:"external_github_secret,omitempty"`
ExternalGitlabClientId *string `json:"external_gitlab_client_id,omitempty"`
ExternalGitlabEnabled *bool `json:"external_gitlab_enabled,omitempty"`
ExternalGitlabSecret *string `json:"external_gitlab_secret,omitempty"`
ExternalGitlabUrl *string `json:"external_gitlab_url,omitempty"`
ExternalGoogleAdditionalClientIds *string `json:"external_google_additional_client_ids,omitempty"`
ExternalGoogleClientId *string `json:"external_google_client_id,omitempty"`
ExternalGoogleEnabled *bool `json:"external_google_enabled,omitempty"`
ExternalGoogleSecret *string `json:"external_google_secret,omitempty"`
ExternalGoogleSkipNonceCheck *bool `json:"external_google_skip_nonce_check,omitempty"`
ExternalKakaoClientId *string `json:"external_kakao_client_id,omitempty"`
ExternalKakaoEnabled *bool `json:"external_kakao_enabled,omitempty"`
ExternalKakaoSecret *string `json:"external_kakao_secret,omitempty"`
ExternalKeycloakClientId *string `json:"external_keycloak_client_id,omitempty"`
ExternalKeycloakEnabled *bool `json:"external_keycloak_enabled,omitempty"`
ExternalKeycloakSecret *string `json:"external_keycloak_secret,omitempty"`
ExternalKeycloakUrl *string `json:"external_keycloak_url,omitempty"`
ExternalLinkedinOidcClientId *string `json:"external_linkedin_oidc_client_id,omitempty"`
ExternalLinkedinOidcEnabled *bool `json:"external_linkedin_oidc_enabled,omitempty"`
ExternalLinkedinOidcSecret *string `json:"external_linkedin_oidc_secret,omitempty"`
ExternalNotionClientId *string `json:"external_notion_client_id,omitempty"`
ExternalNotionEnabled *bool `json:"external_notion_enabled,omitempty"`
ExternalNotionSecret *string `json:"external_notion_secret,omitempty"`
ExternalPhoneEnabled *bool `json:"external_phone_enabled,omitempty"`
ExternalSlackClientId *string `json:"external_slack_client_id,omitempty"`
ExternalSlackEnabled *bool `json:"external_slack_enabled,omitempty"`
ExternalSlackOidcClientId *string `json:"external_slack_oidc_client_id,omitempty"`
ExternalSlackOidcEnabled *bool `json:"external_slack_oidc_enabled,omitempty"`
ExternalSlackOidcSecret *string `json:"external_slack_oidc_secret,omitempty"`
ExternalSlackSecret *string `json:"external_slack_secret,omitempty"`
ExternalSpotifyClientId *string `json:"external_spotify_client_id,omitempty"`
ExternalSpotifyEnabled *bool `json:"external_spotify_enabled,omitempty"`
ExternalSpotifySecret *string `json:"external_spotify_secret,omitempty"`
ExternalTwitchClientId *string `json:"external_twitch_client_id,omitempty"`
ExternalTwitchEnabled *bool `json:"external_twitch_enabled,omitempty"`
ExternalTwitchSecret *string `json:"external_twitch_secret,omitempty"`
ExternalTwitterClientId *string `json:"external_twitter_client_id,omitempty"`
ExternalTwitterEnabled *bool `json:"external_twitter_enabled,omitempty"`
ExternalTwitterSecret *string `json:"external_twitter_secret,omitempty"`
ExternalWorkosClientId *string `json:"external_workos_client_id,omitempty"`
ExternalWorkosEnabled *bool `json:"external_workos_enabled,omitempty"`
ExternalWorkosSecret *string `json:"external_workos_secret,omitempty"`
ExternalWorkosUrl *string `json:"external_workos_url,omitempty"`
ExternalZoomClientId *string `json:"external_zoom_client_id,omitempty"`
ExternalZoomEnabled *bool `json:"external_zoom_enabled,omitempty"`
ExternalZoomSecret *string `json:"external_zoom_secret,omitempty"`
HookCustomAccessTokenEnabled *bool `json:"hook_custom_access_token_enabled,omitempty"`
HookCustomAccessTokenSecrets *string `json:"hook_custom_access_token_secrets,omitempty"`
HookCustomAccessTokenUri *string `json:"hook_custom_access_token_uri,omitempty"`
HookMfaVerificationAttemptEnabled *bool `json:"hook_mfa_verification_attempt_enabled,omitempty"`
HookMfaVerificationAttemptSecrets *string `json:"hook_mfa_verification_attempt_secrets,omitempty"`
HookMfaVerificationAttemptUri *string `json:"hook_mfa_verification_attempt_uri,omitempty"`
HookPasswordVerificationAttemptEnabled *bool `json:"hook_password_verification_attempt_enabled,omitempty"`
HookPasswordVerificationAttemptSecrets *string `json:"hook_password_verification_attempt_secrets,omitempty"`
HookPasswordVerificationAttemptUri *string `json:"hook_password_verification_attempt_uri,omitempty"`
HookSendEmailEnabled *bool `json:"hook_send_email_enabled,omitempty"`
HookSendEmailSecrets *string `json:"hook_send_email_secrets,omitempty"`
HookSendEmailUri *string `json:"hook_send_email_uri,omitempty"`
HookSendSmsEnabled *bool `json:"hook_send_sms_enabled,omitempty"`
HookSendSmsSecrets *string `json:"hook_send_sms_secrets,omitempty"`
HookSendSmsUri *string `json:"hook_send_sms_uri,omitempty"`
JwtExp *int `json:"jwt_exp,omitempty"`
MailerAllowUnverifiedEmailSignIns *bool `json:"mailer_allow_unverified_email_sign_ins,omitempty"`
MailerAutoconfirm *bool `json:"mailer_autoconfirm,omitempty"`
MailerOtpExp *int `json:"mailer_otp_exp,omitempty"`
MailerOtpLength *int `json:"mailer_otp_length,omitempty"`
MailerSecureEmailChangeEnabled *bool `json:"mailer_secure_email_change_enabled,omitempty"`
MailerSubjectsConfirmation *string `json:"mailer_subjects_confirmation,omitempty"`
MailerSubjectsEmailChange *string `json:"mailer_subjects_email_change,omitempty"`
MailerSubjectsInvite *string `json:"mailer_subjects_invite,omitempty"`
MailerSubjectsMagicLink *string `json:"mailer_subjects_magic_link,omitempty"`
MailerSubjectsReauthentication *string `json:"mailer_subjects_reauthentication,omitempty"`
MailerSubjectsRecovery *string `json:"mailer_subjects_recovery,omitempty"`
MailerTemplatesConfirmationContent *string `json:"mailer_templates_confirmation_content,omitempty"`
MailerTemplatesEmailChangeContent *string `json:"mailer_templates_email_change_content,omitempty"`
MailerTemplatesInviteContent *string `json:"mailer_templates_invite_content,omitempty"`
MailerTemplatesMagicLinkContent *string `json:"mailer_templates_magic_link_content,omitempty"`
MailerTemplatesReauthenticationContent *string `json:"mailer_templates_reauthentication_content,omitempty"`
MailerTemplatesRecoveryContent *string `json:"mailer_templates_recovery_content,omitempty"`
MfaMaxEnrolledFactors *int `json:"mfa_max_enrolled_factors,omitempty"`
MfaPhoneEnrollEnabled *bool `json:"mfa_phone_enroll_enabled,omitempty"`
MfaPhoneMaxFrequency *int `json:"mfa_phone_max_frequency,omitempty"`
MfaPhoneOtpLength *int `json:"mfa_phone_otp_length,omitempty"`
MfaPhoneTemplate *string `json:"mfa_phone_template,omitempty"`
MfaPhoneVerifyEnabled *bool `json:"mfa_phone_verify_enabled,omitempty"`
MfaTotpEnrollEnabled *bool `json:"mfa_totp_enroll_enabled,omitempty"`
MfaTotpVerifyEnabled *bool `json:"mfa_totp_verify_enabled,omitempty"`
MfaWebAuthnEnrollEnabled *bool `json:"mfa_web_authn_enroll_enabled,omitempty"`
MfaWebAuthnVerifyEnabled *bool `json:"mfa_web_authn_verify_enabled,omitempty"`
PasswordHibpEnabled *bool `json:"password_hibp_enabled,omitempty"`
PasswordMinLength *int `json:"password_min_length,omitempty"`
PasswordRequiredCharacters *UpdateAuthConfigBodyPasswordRequiredCharacters `json:"password_required_characters,omitempty"`
RateLimitAnonymousUsers *int `json:"rate_limit_anonymous_users,omitempty"`
RateLimitEmailSent *int `json:"rate_limit_email_sent,omitempty"`
RateLimitOtp *int `json:"rate_limit_otp,omitempty"`
RateLimitSmsSent *int `json:"rate_limit_sms_sent,omitempty"`
RateLimitTokenRefresh *int `json:"rate_limit_token_refresh,omitempty"`
RateLimitVerify *int `json:"rate_limit_verify,omitempty"`
RefreshTokenRotationEnabled *bool `json:"refresh_token_rotation_enabled,omitempty"`
SamlEnabled *bool `json:"saml_enabled,omitempty"`
SamlExternalUrl *string `json:"saml_external_url,omitempty"`
SecurityCaptchaEnabled *bool `json:"security_captcha_enabled,omitempty"`
SecurityCaptchaProvider *string `json:"security_captcha_provider,omitempty"`
SecurityCaptchaSecret *string `json:"security_captcha_secret,omitempty"`
SecurityManualLinkingEnabled *bool `json:"security_manual_linking_enabled,omitempty"`
SecurityRefreshTokenReuseInterval *int `json:"security_refresh_token_reuse_interval,omitempty"`
SecurityUpdatePasswordRequireReauthentication *bool `json:"security_update_password_require_reauthentication,omitempty"`
SessionsInactivityTimeout *int `json:"sessions_inactivity_timeout,omitempty"`
SessionsSinglePerUser *bool `json:"sessions_single_per_user,omitempty"`
SessionsTags *string `json:"sessions_tags,omitempty"`
SessionsTimebox *int `json:"sessions_timebox,omitempty"`
SiteUrl *string `json:"site_url,omitempty"`
SmsAutoconfirm *bool `json:"sms_autoconfirm,omitempty"`
SmsMaxFrequency *int `json:"sms_max_frequency,omitempty"`
SmsMessagebirdAccessKey *string `json:"sms_messagebird_access_key,omitempty"`
SmsMessagebirdOriginator *string `json:"sms_messagebird_originator,omitempty"`
SmsOtpExp *int `json:"sms_otp_exp,omitempty"`
SmsOtpLength *int `json:"sms_otp_length,omitempty"`
SmsProvider *string `json:"sms_provider,omitempty"`
SmsTemplate *string `json:"sms_template,omitempty"`
SmsTestOtp *string `json:"sms_test_otp,omitempty"`
SmsTestOtpValidUntil *string `json:"sms_test_otp_valid_until,omitempty"`
SmsTextlocalApiKey *string `json:"sms_textlocal_api_key,omitempty"`
SmsTextlocalSender *string `json:"sms_textlocal_sender,omitempty"`
SmsTwilioAccountSid *string `json:"sms_twilio_account_sid,omitempty"`
SmsTwilioAuthToken *string `json:"sms_twilio_auth_token,omitempty"`
SmsTwilioContentSid *string `json:"sms_twilio_content_sid,omitempty"`
SmsTwilioMessageServiceSid *string `json:"sms_twilio_message_service_sid,omitempty"`
SmsTwilioVerifyAccountSid *string `json:"sms_twilio_verify_account_sid,omitempty"`
SmsTwilioVerifyAuthToken *string `json:"sms_twilio_verify_auth_token,omitempty"`
SmsTwilioVerifyMessageServiceSid *string `json:"sms_twilio_verify_message_service_sid,omitempty"`
SmsVonageApiKey *string `json:"sms_vonage_api_key,omitempty"`
SmsVonageApiSecret *string `json:"sms_vonage_api_secret,omitempty"`
SmsVonageFrom *string `json:"sms_vonage_from,omitempty"`
SmtpAdminEmail *string `json:"smtp_admin_email,omitempty"`
SmtpHost *string `json:"smtp_host,omitempty"`
SmtpMaxFrequency *int `json:"smtp_max_frequency,omitempty"`
SmtpPass *string `json:"smtp_pass,omitempty"`
SmtpPort *string `json:"smtp_port,omitempty"`
SmtpSenderName *string `json:"smtp_sender_name,omitempty"`
SmtpUser *string `json:"smtp_user,omitempty"`
UriAllowList *string `json:"uri_allow_list,omitempty"`
}
// UpdateAuthConfigBodyPasswordRequiredCharacters defines model for UpdateAuthConfigBody.PasswordRequiredCharacters.
type UpdateAuthConfigBodyPasswordRequiredCharacters string
// UpdateBranchBody defines model for UpdateBranchBody.
type UpdateBranchBody struct {
BranchName *string `json:"branch_name,omitempty"`
GitBranch *string `json:"git_branch,omitempty"`
Persistent *bool `json:"persistent,omitempty"`
// ResetOnPush This field is deprecated and will be ignored. Use v1-reset-a-branch endpoint directly instead.
// Deprecated:
ResetOnPush *bool `json:"reset_on_push,omitempty"`
Status *UpdateBranchBodyStatus `json:"status,omitempty"`
}
// UpdateBranchBodyStatus defines model for UpdateBranchBody.Status.
type UpdateBranchBodyStatus string
// UpdateCustomHostnameBody defines model for UpdateCustomHostnameBody.
type UpdateCustomHostnameBody struct {
CustomHostname string `json:"custom_hostname"`
}
// UpdateCustomHostnameResponse defines model for UpdateCustomHostnameResponse.
type UpdateCustomHostnameResponse struct {
CustomHostname string `json:"custom_hostname"`
Data CfResponse `json:"data"`
Status UpdateCustomHostnameResponseStatus `json:"status"`
}
// UpdateCustomHostnameResponseStatus defines model for UpdateCustomHostnameResponse.Status.
type UpdateCustomHostnameResponseStatus string
// UpdatePgsodiumConfigBody defines model for UpdatePgsodiumConfigBody.
type UpdatePgsodiumConfigBody struct {
RootKey string `json:"root_key"`
}
// UpdatePostgresConfigBody defines model for UpdatePostgresConfigBody.
type UpdatePostgresConfigBody struct {
EffectiveCacheSize *string `json:"effective_cache_size,omitempty"`
LogicalDecodingWorkMem *string `json:"logical_decoding_work_mem,omitempty"`
MaintenanceWorkMem *string `json:"maintenance_work_mem,omitempty"`
MaxConnections *int `json:"max_connections,omitempty"`
MaxLocksPerTransaction *int `json:"max_locks_per_transaction,omitempty"`
MaxParallelMaintenanceWorkers *int `json:"max_parallel_maintenance_workers,omitempty"`
MaxParallelWorkers *int `json:"max_parallel_workers,omitempty"`
MaxParallelWorkersPerGather *int `json:"max_parallel_workers_per_gather,omitempty"`
MaxReplicationSlots *int `json:"max_replication_slots,omitempty"`
MaxSlotWalKeepSize *string `json:"max_slot_wal_keep_size,omitempty"`
MaxStandbyArchiveDelay *string `json:"max_standby_archive_delay,omitempty"`
MaxStandbyStreamingDelay *string `json:"max_standby_streaming_delay,omitempty"`
MaxWalSenders *int `json:"max_wal_senders,omitempty"`
MaxWalSize *string `json:"max_wal_size,omitempty"`
MaxWorkerProcesses *int `json:"max_worker_processes,omitempty"`
RestartDatabase *bool `json:"restart_database,omitempty"`
SessionReplicationRole *UpdatePostgresConfigBodySessionReplicationRole `json:"session_replication_role,omitempty"`
SharedBuffers *string `json:"shared_buffers,omitempty"`
StatementTimeout *string `json:"statement_timeout,omitempty"`
TrackActivityQuerySize *string `json:"track_activity_query_size,omitempty"`
TrackCommitTimestamp *bool `json:"track_commit_timestamp,omitempty"`
WalKeepSize *string `json:"wal_keep_size,omitempty"`
WalSenderTimeout *string `json:"wal_sender_timeout,omitempty"`
WorkMem *string `json:"work_mem,omitempty"`
}
// UpdatePostgresConfigBodySessionReplicationRole defines model for UpdatePostgresConfigBody.SessionReplicationRole.
type UpdatePostgresConfigBodySessionReplicationRole string
// UpdatePostgrestConfigBody defines model for UpdatePostgrestConfigBody.
type UpdatePostgrestConfigBody struct {
DbExtraSearchPath *string `json:"db_extra_search_path,omitempty"`
DbPool *int `json:"db_pool,omitempty"`
DbSchema *string `json:"db_schema,omitempty"`
MaxRows *int `json:"max_rows,omitempty"`
}
// UpdateProviderBody defines model for UpdateProviderBody.
type UpdateProviderBody struct {
AttributeMapping *AttributeMapping `json:"attribute_mapping,omitempty"`
Domains *[]string `json:"domains,omitempty"`
MetadataUrl *string `json:"metadata_url,omitempty"`
MetadataXml *string `json:"metadata_xml,omitempty"`
}
// UpdateProviderResponse defines model for UpdateProviderResponse.
type UpdateProviderResponse struct {
CreatedAt *string `json:"created_at,omitempty"`
Domains *[]Domain `json:"domains,omitempty"`
Id string `json:"id"`
Saml *SamlDescriptor `json:"saml,omitempty"`
UpdatedAt *string `json:"updated_at,omitempty"`
}
// UpdateStorageConfigBody defines model for UpdateStorageConfigBody.
type UpdateStorageConfigBody struct {
Features *StorageFeatures `json:"features,omitempty"`
FileSizeLimit *int64 `json:"fileSizeLimit,omitempty"`
}
// UpdateSupavisorConfigBody defines model for UpdateSupavisorConfigBody.
type UpdateSupavisorConfigBody struct {
DefaultPoolSize *int `json:"default_pool_size"`
// PoolMode This field is deprecated and is ignored in this request
// Deprecated:
PoolMode *UpdateSupavisorConfigBodyPoolMode `json:"pool_mode,omitempty"`
}
// UpdateSupavisorConfigBodyPoolMode This field is deprecated and is ignored in this request
type UpdateSupavisorConfigBodyPoolMode string
// UpdateSupavisorConfigResponse defines model for UpdateSupavisorConfigResponse.
type UpdateSupavisorConfigResponse struct {
DefaultPoolSize *int `json:"default_pool_size"`
PoolMode UpdateSupavisorConfigResponsePoolMode `json:"pool_mode"`
}
// UpdateSupavisorConfigResponsePoolMode defines model for UpdateSupavisorConfigResponse.PoolMode.
type UpdateSupavisorConfigResponsePoolMode string
// UpgradeDatabaseBody defines model for UpgradeDatabaseBody.
type UpgradeDatabaseBody struct {
ReleaseChannel ReleaseChannel `json:"release_channel"`
TargetVersion string `json:"target_version"`
}
// V1AnalyticsResponse defines model for V1AnalyticsResponse.
type V1AnalyticsResponse struct {
Error *V1AnalyticsResponse_Error `json:"error,omitempty"`
Result *[]map[string]interface{} `json:"result,omitempty"`
}
// V1AnalyticsResponseError0 defines model for .
type V1AnalyticsResponseError0 struct {
Code *float32 `json:"code,omitempty"`
Errors *[]struct {
Domain *string `json:"domain,omitempty"`
Location *string `json:"location,omitempty"`
LocationType *string `json:"locationType,omitempty"`
Message *string `json:"message,omitempty"`
Reason *string `json:"reason,omitempty"`
} `json:"errors,omitempty"`
Message *string `json:"message,omitempty"`
Status *string `json:"status,omitempty"`
}
// V1AnalyticsResponseError1 defines model for .
type V1AnalyticsResponseError1 = string
// V1AnalyticsResponse_Error defines model for V1AnalyticsResponse.Error.
type V1AnalyticsResponse_Error struct {
union json.RawMessage
}
// V1Backup defines model for V1Backup.
type V1Backup struct {
InsertedAt string `json:"inserted_at"`
IsPhysicalBackup bool `json:"is_physical_backup"`
Status V1BackupStatus `json:"status"`
}
// V1BackupStatus defines model for V1Backup.Status.
type V1BackupStatus string
// V1BackupsResponse defines model for V1BackupsResponse.
type V1BackupsResponse struct {
Backups []V1Backup `json:"backups"`
PhysicalBackupData V1PhysicalBackup `json:"physical_backup_data"`
PitrEnabled bool `json:"pitr_enabled"`
Region string `json:"region"`
WalgEnabled bool `json:"walg_enabled"`
}
// V1CreateFunctionBody defines model for V1CreateFunctionBody.
type V1CreateFunctionBody struct {
Body string `json:"body"`
ComputeMultiplier *float32 `json:"compute_multiplier,omitempty"`
Name string `json:"name"`
Slug string `json:"slug"`
VerifyJwt *bool `json:"verify_jwt,omitempty"`
}
// V1CreateProjectBodyDto defines model for V1CreateProjectBodyDto.
type V1CreateProjectBodyDto struct {
// DbPass Database password
DbPass string `json:"db_pass"`
DesiredInstanceSize *V1CreateProjectBodyDtoDesiredInstanceSize `json:"desired_instance_size,omitempty"`
// KpsEnabled This field is deprecated and is ignored in this request
// Deprecated:
KpsEnabled *bool `json:"kps_enabled,omitempty"`
// Name Name of your project
Name string `json:"name"`
// OrganizationId Slug of your organization
OrganizationId string `json:"organization_id"`
// Plan Subscription Plan is now set on organization level and is ignored in this request
// Deprecated:
Plan *V1CreateProjectBodyDtoPlan `json:"plan,omitempty"`
// Region Region you want your server to reside in
Region V1CreateProjectBodyDtoRegion `json:"region"`
// TemplateUrl Template URL used to create the project from the CLI.
TemplateUrl *string `json:"template_url,omitempty"`
}
// V1CreateProjectBodyDtoDesiredInstanceSize defines model for V1CreateProjectBodyDto.DesiredInstanceSize.
type V1CreateProjectBodyDtoDesiredInstanceSize string
// V1CreateProjectBodyDtoPlan Subscription Plan is now set on organization level and is ignored in this request
type V1CreateProjectBodyDtoPlan string
// V1CreateProjectBodyDtoRegion Region you want your server to reside in
type V1CreateProjectBodyDtoRegion string
// V1DatabaseResponse defines model for V1DatabaseResponse.
type V1DatabaseResponse struct {
// Host Database host
Host string `json:"host"`
// PostgresEngine Database engine
PostgresEngine string `json:"postgres_engine"`
// ReleaseChannel Release channel
ReleaseChannel string `json:"release_channel"`
// Version Database version
Version string `json:"version"`
}
// V1OrganizationMemberResponse defines model for V1OrganizationMemberResponse.
type V1OrganizationMemberResponse struct {
Email *string `json:"email,omitempty"`
MfaEnabled bool `json:"mfa_enabled"`
RoleName string `json:"role_name"`
UserId string `json:"user_id"`
UserName string `json:"user_name"`
}
// V1OrganizationSlugResponse defines model for V1OrganizationSlugResponse.
type V1OrganizationSlugResponse struct {
AllowedReleaseChannels []ReleaseChannel `json:"allowed_release_channels"`
Id string `json:"id"`
Name string `json:"name"`
OptInTags []V1OrganizationSlugResponseOptInTags `json:"opt_in_tags"`
Plan *BillingPlanId `json:"plan,omitempty"`
}
// V1OrganizationSlugResponseOptInTags defines model for V1OrganizationSlugResponse.OptInTags.
type V1OrganizationSlugResponseOptInTags string
// V1PgbouncerConfigResponse defines model for V1PgbouncerConfigResponse.
type V1PgbouncerConfigResponse struct {
ConnectionString *string `json:"connection_string,omitempty"`
DefaultPoolSize *float32 `json:"default_pool_size,omitempty"`
IgnoreStartupParameters *string `json:"ignore_startup_parameters,omitempty"`
MaxClientConn *float32 `json:"max_client_conn,omitempty"`
PoolMode *V1PgbouncerConfigResponsePoolMode `json:"pool_mode,omitempty"`
}
// V1PgbouncerConfigResponsePoolMode defines model for V1PgbouncerConfigResponse.PoolMode.
type V1PgbouncerConfigResponsePoolMode string
// V1PhysicalBackup defines model for V1PhysicalBackup.
type V1PhysicalBackup struct {
EarliestPhysicalBackupDateUnix *int64 `json:"earliest_physical_backup_date_unix,omitempty"`
LatestPhysicalBackupDateUnix *int64 `json:"latest_physical_backup_date_unix,omitempty"`
}
// V1PostgrestConfigResponse defines model for V1PostgrestConfigResponse.
type V1PostgrestConfigResponse struct {
DbExtraSearchPath string `json:"db_extra_search_path"`
// DbPool If `null`, the value is automatically configured based on compute size.
DbPool *int `json:"db_pool"`
DbSchema string `json:"db_schema"`
MaxRows int `json:"max_rows"`
}
// V1ProjectRefResponse defines model for V1ProjectRefResponse.
type V1ProjectRefResponse struct {
Id int64 `json:"id"`
Name string `json:"name"`
Ref string `json:"ref"`
}
// V1ProjectResponse defines model for V1ProjectResponse.
type V1ProjectResponse struct {
// CreatedAt Creation timestamp
CreatedAt string `json:"created_at"`
// Id Id of your project
Id string `json:"id"`
// Name Name of your project
Name string `json:"name"`
// OrganizationId Slug of your organization
OrganizationId string `json:"organization_id"`
// Region Region of your project
Region string `json:"region"`
Status V1ProjectResponseStatus `json:"status"`
}
// V1ProjectResponseStatus defines model for V1ProjectResponse.Status.
type V1ProjectResponseStatus string
// V1ProjectWithDatabaseResponse defines model for V1ProjectWithDatabaseResponse.
type V1ProjectWithDatabaseResponse struct {
// CreatedAt Creation timestamp
CreatedAt string `json:"created_at"`
Database V1DatabaseResponse `json:"database"`
// Id Id of your project
Id string `json:"id"`
// Name Name of your project
Name string `json:"name"`
// OrganizationId Slug of your organization
OrganizationId string `json:"organization_id"`
// Region Region of your project
Region string `json:"region"`
Status V1ProjectWithDatabaseResponseStatus `json:"status"`
}
// V1ProjectWithDatabaseResponseStatus defines model for V1ProjectWithDatabaseResponse.Status.
type V1ProjectWithDatabaseResponseStatus string
// V1RestorePitrBody defines model for V1RestorePitrBody.
type V1RestorePitrBody struct {
RecoveryTimeTargetUnix int64 `json:"recovery_time_target_unix"`
}
// V1RunQueryBody defines model for V1RunQueryBody.
type V1RunQueryBody struct {
Query string `json:"query"`
}
// V1ServiceHealthResponse defines model for V1ServiceHealthResponse.
type V1ServiceHealthResponse struct {
Error *string `json:"error,omitempty"`
Healthy bool `json:"healthy"`
Info *V1ServiceHealthResponse_Info `json:"info,omitempty"`
Name V1ServiceHealthResponseName `json:"name"`
Status V1ServiceHealthResponseStatus `json:"status"`
}
// V1ServiceHealthResponse_Info defines model for V1ServiceHealthResponse.Info.
type V1ServiceHealthResponse_Info struct {
union json.RawMessage
}
// V1ServiceHealthResponseName defines model for V1ServiceHealthResponse.Name.
type V1ServiceHealthResponseName string
// V1ServiceHealthResponseStatus defines model for V1ServiceHealthResponse.Status.
type V1ServiceHealthResponseStatus string
// V1StorageBucketResponse defines model for V1StorageBucketResponse.
type V1StorageBucketResponse struct {
CreatedAt string `json:"created_at"`
Id string `json:"id"`
Name string `json:"name"`
Owner string `json:"owner"`
Public bool `json:"public"`
UpdatedAt string `json:"updated_at"`
}
// V1UpdateFunctionBody defines model for V1UpdateFunctionBody.
type V1UpdateFunctionBody struct {
Body *string `json:"body,omitempty"`
ComputeMultiplier *float32 `json:"compute_multiplier,omitempty"`
Name *string `json:"name,omitempty"`
VerifyJwt *bool `json:"verify_jwt,omitempty"`
}
// ValidationError defines model for ValidationError.
type ValidationError struct {
Message string `json:"message"`
}
// ValidationRecord defines model for ValidationRecord.
type ValidationRecord struct {
TxtName string `json:"txt_name"`
TxtValue string `json:"txt_value"`
}
// VanitySubdomainBody defines model for VanitySubdomainBody.
type VanitySubdomainBody struct {
VanitySubdomain string `json:"vanity_subdomain"`
}
// VanitySubdomainConfigResponse defines model for VanitySubdomainConfigResponse.
type VanitySubdomainConfigResponse struct {
CustomDomain *string `json:"custom_domain,omitempty"`
Status VanitySubdomainConfigResponseStatus `json:"status"`
}
// VanitySubdomainConfigResponseStatus defines model for VanitySubdomainConfigResponse.Status.
type VanitySubdomainConfigResponseStatus string
// V1AuthorizeUserParams defines parameters for V1AuthorizeUser.
type V1AuthorizeUserParams struct {
ClientId string `form:"client_id" json:"client_id"`
ResponseType V1AuthorizeUserParamsResponseType `form:"response_type" json:"response_type"`
RedirectUri string `form:"redirect_uri" json:"redirect_uri"`
Scope *string `form:"scope,omitempty" json:"scope,omitempty"`
State *string `form:"state,omitempty" json:"state,omitempty"`
ResponseMode *string `form:"response_mode,omitempty" json:"response_mode,omitempty"`
CodeChallenge *string `form:"code_challenge,omitempty" json:"code_challenge,omitempty"`
CodeChallengeMethod *V1AuthorizeUserParamsCodeChallengeMethod `form:"code_challenge_method,omitempty" json:"code_challenge_method,omitempty"`
}
// V1AuthorizeUserParamsResponseType defines parameters for V1AuthorizeUser.
type V1AuthorizeUserParamsResponseType string
// V1AuthorizeUserParamsCodeChallengeMethod defines parameters for V1AuthorizeUser.
type V1AuthorizeUserParamsCodeChallengeMethod string
// GetLogsParams defines parameters for GetLogs.
type GetLogsParams struct {
IsoTimestampEnd *string `form:"iso_timestamp_end,omitempty" json:"iso_timestamp_end,omitempty"`
IsoTimestampStart *string `form:"iso_timestamp_start,omitempty" json:"iso_timestamp_start,omitempty"`
Sql *string `form:"sql,omitempty" json:"sql,omitempty"`
}
// V1GetProjectApiKeysParams defines parameters for V1GetProjectApiKeys.
type V1GetProjectApiKeysParams struct {
Reveal bool `form:"reveal" json:"reveal"`
}
// CreateApiKeyParams defines parameters for CreateApiKey.
type CreateApiKeyParams struct {
Reveal bool `form:"reveal" json:"reveal"`
}
// DeleteApiKeyParams defines parameters for DeleteApiKey.
type DeleteApiKeyParams struct {
Reveal bool `form:"reveal" json:"reveal"`
}
// GetApiKeyParams defines parameters for GetApiKey.
type GetApiKeyParams struct {
Reveal bool `form:"reveal" json:"reveal"`
}
// UpdateApiKeyParams defines parameters for UpdateApiKey.
type UpdateApiKeyParams struct {
Reveal bool `form:"reveal" json:"reveal"`
}
// V1CreateAFunctionParams defines parameters for V1CreateAFunction.
type V1CreateAFunctionParams struct {
Slug *string `form:"slug,omitempty" json:"slug,omitempty"`
Name *string `form:"name,omitempty" json:"name,omitempty"`
VerifyJwt *bool `form:"verify_jwt,omitempty" json:"verify_jwt,omitempty"`
ImportMap *bool `form:"import_map,omitempty" json:"import_map,omitempty"`
EntrypointPath *string `form:"entrypoint_path,omitempty" json:"entrypoint_path,omitempty"`
ImportMapPath *string `form:"import_map_path,omitempty" json:"import_map_path,omitempty"`
ComputeMultiplier *float32 `form:"compute_multiplier,omitempty" json:"compute_multiplier,omitempty"`
}
// V1BulkUpdateFunctionsJSONBody defines parameters for V1BulkUpdateFunctions.
type V1BulkUpdateFunctionsJSONBody = []BulkUpdateFunctionBody
// V1DeployAFunctionParams defines parameters for V1DeployAFunction.
type V1DeployAFunctionParams struct {
Slug *string `form:"slug,omitempty" json:"slug,omitempty"`
BundleOnly *bool `form:"bundleOnly,omitempty" json:"bundleOnly,omitempty"`
}
// V1UpdateAFunctionParams defines parameters for V1UpdateAFunction.
type V1UpdateAFunctionParams struct {
Slug *string `form:"slug,omitempty" json:"slug,omitempty"`
Name *string `form:"name,omitempty" json:"name,omitempty"`
VerifyJwt *bool `form:"verify_jwt,omitempty" json:"verify_jwt,omitempty"`
ImportMap *bool `form:"import_map,omitempty" json:"import_map,omitempty"`
EntrypointPath *string `form:"entrypoint_path,omitempty" json:"entrypoint_path,omitempty"`
ImportMapPath *string `form:"import_map_path,omitempty" json:"import_map_path,omitempty"`
ComputeMultiplier *float32 `form:"compute_multiplier,omitempty" json:"compute_multiplier,omitempty"`
}
// V1GetServicesHealthParams defines parameters for V1GetServicesHealth.
type V1GetServicesHealthParams struct {
TimeoutMs *int `form:"timeout_ms,omitempty" json:"timeout_ms,omitempty"`
Services []V1GetServicesHealthParamsServices `form:"services" json:"services"`
}
// V1GetServicesHealthParamsServices defines parameters for V1GetServicesHealth.
type V1GetServicesHealthParamsServices string
// V1BulkDeleteSecretsJSONBody defines parameters for V1BulkDeleteSecrets.
type V1BulkDeleteSecretsJSONBody = []string
// V1BulkCreateSecretsJSONBody defines parameters for V1BulkCreateSecrets.
type V1BulkCreateSecretsJSONBody = []CreateSecretBody
// V1GenerateTypescriptTypesParams defines parameters for V1GenerateTypescriptTypes.
type V1GenerateTypescriptTypesParams struct {
IncludedSchemas *string `form:"included_schemas,omitempty" json:"included_schemas,omitempty"`
}
// V1GetPostgresUpgradeStatusParams defines parameters for V1GetPostgresUpgradeStatus.
type V1GetPostgresUpgradeStatusParams struct {
TrackingId *string `form:"tracking_id,omitempty" json:"tracking_id,omitempty"`
}
// V1ListAllSnippetsParams defines parameters for V1ListAllSnippets.
type V1ListAllSnippetsParams struct {
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *string `form:"limit,omitempty" json:"limit,omitempty"`
SortBy *V1ListAllSnippetsParamsSortBy `form:"sort_by,omitempty" json:"sort_by,omitempty"`
SortOrder *V1ListAllSnippetsParamsSortOrder `form:"sort_order,omitempty" json:"sort_order,omitempty"`
ProjectRef *string `form:"project_ref,omitempty" json:"project_ref,omitempty"`
}
// V1ListAllSnippetsParamsSortBy defines parameters for V1ListAllSnippets.
type V1ListAllSnippetsParamsSortBy string
// V1ListAllSnippetsParamsSortOrder defines parameters for V1ListAllSnippets.
type V1ListAllSnippetsParamsSortOrder string
// V1UpdateABranchConfigJSONRequestBody defines body for V1UpdateABranchConfig for application/json ContentType.
type V1UpdateABranchConfigJSONRequestBody = UpdateBranchBody
// V1RevokeTokenJSONRequestBody defines body for V1RevokeToken for application/json ContentType.
type V1RevokeTokenJSONRequestBody = OAuthRevokeTokenBodyDto
// V1ExchangeOauthTokenFormdataRequestBody defines body for V1ExchangeOauthToken for application/x-www-form-urlencoded ContentType.
type V1ExchangeOauthTokenFormdataRequestBody = OAuthTokenBody
// V1CreateAnOrganizationJSONRequestBody defines body for V1CreateAnOrganization for application/json ContentType.
type V1CreateAnOrganizationJSONRequestBody = CreateOrganizationV1Dto
// V1CreateAProjectJSONRequestBody defines body for V1CreateAProject for application/json ContentType.
type V1CreateAProjectJSONRequestBody = V1CreateProjectBodyDto
// CreateApiKeyJSONRequestBody defines body for CreateApiKey for application/json ContentType.
type CreateApiKeyJSONRequestBody = CreateApiKeyBody
// UpdateApiKeyJSONRequestBody defines body for UpdateApiKey for application/json ContentType.
type UpdateApiKeyJSONRequestBody = UpdateApiKeyBody
// V1CreateABranchJSONRequestBody defines body for V1CreateABranch for application/json ContentType.
type V1CreateABranchJSONRequestBody = CreateBranchBody
// V1UpdateAuthServiceConfigJSONRequestBody defines body for V1UpdateAuthServiceConfig for application/json ContentType.
type V1UpdateAuthServiceConfigJSONRequestBody = UpdateAuthConfigBody
// V1CreateASsoProviderJSONRequestBody defines body for V1CreateASsoProvider for application/json ContentType.
type V1CreateASsoProviderJSONRequestBody = CreateProviderBody
// V1UpdateASsoProviderJSONRequestBody defines body for V1UpdateASsoProvider for application/json ContentType.
type V1UpdateASsoProviderJSONRequestBody = UpdateProviderBody
// CreateTPAForProjectJSONRequestBody defines body for CreateTPAForProject for application/json ContentType.
type CreateTPAForProjectJSONRequestBody = CreateThirdPartyAuthBody
// V1UpdateSupavisorConfigJSONRequestBody defines body for V1UpdateSupavisorConfig for application/json ContentType.
type V1UpdateSupavisorConfigJSONRequestBody = UpdateSupavisorConfigBody
// V1UpdatePostgresConfigJSONRequestBody defines body for V1UpdatePostgresConfig for application/json ContentType.
type V1UpdatePostgresConfigJSONRequestBody = UpdatePostgresConfigBody
// V1UpdateStorageConfigJSONRequestBody defines body for V1UpdateStorageConfig for application/json ContentType.
type V1UpdateStorageConfigJSONRequestBody = UpdateStorageConfigBody
// V1UpdateHostnameConfigJSONRequestBody defines body for V1UpdateHostnameConfig for application/json ContentType.
type V1UpdateHostnameConfigJSONRequestBody = UpdateCustomHostnameBody
// V1RestorePitrBackupJSONRequestBody defines body for V1RestorePitrBackup for application/json ContentType.
type V1RestorePitrBackupJSONRequestBody = V1RestorePitrBody
// V1RunAQueryJSONRequestBody defines body for V1RunAQuery for application/json ContentType.
type V1RunAQueryJSONRequestBody = V1RunQueryBody
// V1CreateAFunctionJSONRequestBody defines body for V1CreateAFunction for application/json ContentType.
type V1CreateAFunctionJSONRequestBody = V1CreateFunctionBody
// V1BulkUpdateFunctionsJSONRequestBody defines body for V1BulkUpdateFunctions for application/json ContentType.
type V1BulkUpdateFunctionsJSONRequestBody = V1BulkUpdateFunctionsJSONBody
// V1DeployAFunctionMultipartRequestBody defines body for V1DeployAFunction for multipart/form-data ContentType.
type V1DeployAFunctionMultipartRequestBody = FunctionDeployBody
// V1UpdateAFunctionJSONRequestBody defines body for V1UpdateAFunction for application/json ContentType.
type V1UpdateAFunctionJSONRequestBody = V1UpdateFunctionBody
// V1DeleteNetworkBansJSONRequestBody defines body for V1DeleteNetworkBans for application/json ContentType.
type V1DeleteNetworkBansJSONRequestBody = RemoveNetworkBanRequest
// V1UpdateNetworkRestrictionsJSONRequestBody defines body for V1UpdateNetworkRestrictions for application/json ContentType.
type V1UpdateNetworkRestrictionsJSONRequestBody = NetworkRestrictionsRequest
// V1UpdatePgsodiumConfigJSONRequestBody defines body for V1UpdatePgsodiumConfig for application/json ContentType.
type V1UpdatePgsodiumConfigJSONRequestBody = UpdatePgsodiumConfigBody
// V1UpdatePostgrestServiceConfigJSONRequestBody defines body for V1UpdatePostgrestServiceConfig for application/json ContentType.
type V1UpdatePostgrestServiceConfigJSONRequestBody = UpdatePostgrestConfigBody
// V1RemoveAReadReplicaJSONRequestBody defines body for V1RemoveAReadReplica for application/json ContentType.
type V1RemoveAReadReplicaJSONRequestBody = RemoveReadReplicaBody
// V1SetupAReadReplicaJSONRequestBody defines body for V1SetupAReadReplica for application/json ContentType.
type V1SetupAReadReplicaJSONRequestBody = SetUpReadReplicaBody
// V1RestoreAProjectJSONRequestBody defines body for V1RestoreAProject for application/json ContentType.
type V1RestoreAProjectJSONRequestBody = RestoreProjectBodyDto
// V1BulkDeleteSecretsJSONRequestBody defines body for V1BulkDeleteSecrets for application/json ContentType.
type V1BulkDeleteSecretsJSONRequestBody = V1BulkDeleteSecretsJSONBody
// V1BulkCreateSecretsJSONRequestBody defines body for V1BulkCreateSecrets for application/json ContentType.
type V1BulkCreateSecretsJSONRequestBody = V1BulkCreateSecretsJSONBody
// V1UpdateSslEnforcementConfigJSONRequestBody defines body for V1UpdateSslEnforcementConfig for application/json ContentType.
type V1UpdateSslEnforcementConfigJSONRequestBody = SslEnforcementRequest
// V1UpgradePostgresVersionJSONRequestBody defines body for V1UpgradePostgresVersion for application/json ContentType.
type V1UpgradePostgresVersionJSONRequestBody = UpgradeDatabaseBody
// V1ActivateVanitySubdomainConfigJSONRequestBody defines body for V1ActivateVanitySubdomainConfig for application/json ContentType.
type V1ActivateVanitySubdomainConfigJSONRequestBody = VanitySubdomainBody
// V1CheckVanitySubdomainAvailabilityJSONRequestBody defines body for V1CheckVanitySubdomainAvailability for application/json ContentType.
type V1CheckVanitySubdomainAvailabilityJSONRequestBody = VanitySubdomainBody
// Getter for additional properties for GetProjectDbMetadataResponseDto_Databases_Schemas_Item. Returns the specified
// element and whether it was found
func (a GetProjectDbMetadataResponseDto_Databases_Schemas_Item) Get(fieldName string) (value interface{}, found bool) {
if a.AdditionalProperties != nil {
value, found = a.AdditionalProperties[fieldName]
}
return
}
// Setter for additional properties for GetProjectDbMetadataResponseDto_Databases_Schemas_Item
func (a *GetProjectDbMetadataResponseDto_Databases_Schemas_Item) Set(fieldName string, value interface{}) {
if a.AdditionalProperties == nil {
a.AdditionalProperties = make(map[string]interface{})
}
a.AdditionalProperties[fieldName] = value
}
// Override default JSON handling for GetProjectDbMetadataResponseDto_Databases_Schemas_Item to handle AdditionalProperties
func (a *GetProjectDbMetadataResponseDto_Databases_Schemas_Item) UnmarshalJSON(b []byte) error {
object := make(map[string]json.RawMessage)
err := json.Unmarshal(b, &object)
if err != nil {
return err
}
if raw, found := object["name"]; found {
err = json.Unmarshal(raw, &a.Name)
if err != nil {
return fmt.Errorf("error reading 'name': %w", err)
}
delete(object, "name")
}
if len(object) != 0 {
a.AdditionalProperties = make(map[string]interface{})
for fieldName, fieldBuf := range object {
var fieldVal interface{}
err := json.Unmarshal(fieldBuf, &fieldVal)
if err != nil {
return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err)
}
a.AdditionalProperties[fieldName] = fieldVal
}
}
return nil
}
// Override default JSON handling for GetProjectDbMetadataResponseDto_Databases_Schemas_Item to handle AdditionalProperties
func (a GetProjectDbMetadataResponseDto_Databases_Schemas_Item) MarshalJSON() ([]byte, error) {
var err error
object := make(map[string]json.RawMessage)
object["name"], err = json.Marshal(a.Name)
if err != nil {
return nil, fmt.Errorf("error marshaling 'name': %w", err)
}
for fieldName, field := range a.AdditionalProperties {
object[fieldName], err = json.Marshal(field)
if err != nil {
return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err)
}
}
return json.Marshal(object)
}
// Getter for additional properties for GetProjectDbMetadataResponseDto_Databases_Item. Returns the specified
// element and whether it was found
func (a GetProjectDbMetadataResponseDto_Databases_Item) Get(fieldName string) (value interface{}, found bool) {
if a.AdditionalProperties != nil {
value, found = a.AdditionalProperties[fieldName]
}
return
}
// Setter for additional properties for GetProjectDbMetadataResponseDto_Databases_Item
func (a *GetProjectDbMetadataResponseDto_Databases_Item) Set(fieldName string, value interface{}) {
if a.AdditionalProperties == nil {
a.AdditionalProperties = make(map[string]interface{})
}
a.AdditionalProperties[fieldName] = value
}
// Override default JSON handling for GetProjectDbMetadataResponseDto_Databases_Item to handle AdditionalProperties
func (a *GetProjectDbMetadataResponseDto_Databases_Item) UnmarshalJSON(b []byte) error {
object := make(map[string]json.RawMessage)
err := json.Unmarshal(b, &object)
if err != nil {
return err
}
if raw, found := object["name"]; found {
err = json.Unmarshal(raw, &a.Name)
if err != nil {
return fmt.Errorf("error reading 'name': %w", err)
}
delete(object, "name")
}
if raw, found := object["schemas"]; found {
err = json.Unmarshal(raw, &a.Schemas)
if err != nil {
return fmt.Errorf("error reading 'schemas': %w", err)
}
delete(object, "schemas")
}
if len(object) != 0 {
a.AdditionalProperties = make(map[string]interface{})
for fieldName, fieldBuf := range object {
var fieldVal interface{}
err := json.Unmarshal(fieldBuf, &fieldVal)
if err != nil {
return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err)
}
a.AdditionalProperties[fieldName] = fieldVal
}
}
return nil
}
// Override default JSON handling for GetProjectDbMetadataResponseDto_Databases_Item to handle AdditionalProperties
func (a GetProjectDbMetadataResponseDto_Databases_Item) MarshalJSON() ([]byte, error) {
var err error
object := make(map[string]json.RawMessage)
object["name"], err = json.Marshal(a.Name)
if err != nil {
return nil, fmt.Errorf("error marshaling 'name': %w", err)
}
object["schemas"], err = json.Marshal(a.Schemas)
if err != nil {
return nil, fmt.Errorf("error marshaling 'schemas': %w", err)
}
for fieldName, field := range a.AdditionalProperties {
object[fieldName], err = json.Marshal(field)
if err != nil {
return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err)
}
}
return json.Marshal(object)
}
// AsAttributeValueDefault0 returns the union data inside the AttributeValue_Default as a AttributeValueDefault0
func (t AttributeValue_Default) AsAttributeValueDefault0() (AttributeValueDefault0, error) {
var body AttributeValueDefault0
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromAttributeValueDefault0 overwrites any union data inside the AttributeValue_Default as the provided AttributeValueDefault0
func (t *AttributeValue_Default) FromAttributeValueDefault0(v AttributeValueDefault0) error {
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeAttributeValueDefault0 performs a merge with any union data inside the AttributeValue_Default, using the provided AttributeValueDefault0
func (t *AttributeValue_Default) MergeAttributeValueDefault0(v AttributeValueDefault0) error {
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsAttributeValueDefault1 returns the union data inside the AttributeValue_Default as a AttributeValueDefault1
func (t AttributeValue_Default) AsAttributeValueDefault1() (AttributeValueDefault1, error) {
var body AttributeValueDefault1
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromAttributeValueDefault1 overwrites any union data inside the AttributeValue_Default as the provided AttributeValueDefault1
func (t *AttributeValue_Default) FromAttributeValueDefault1(v AttributeValueDefault1) error {
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeAttributeValueDefault1 performs a merge with any union data inside the AttributeValue_Default, using the provided AttributeValueDefault1
func (t *AttributeValue_Default) MergeAttributeValueDefault1(v AttributeValueDefault1) error {
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsAttributeValueDefault2 returns the union data inside the AttributeValue_Default as a AttributeValueDefault2
func (t AttributeValue_Default) AsAttributeValueDefault2() (AttributeValueDefault2, error) {
var body AttributeValueDefault2
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromAttributeValueDefault2 overwrites any union data inside the AttributeValue_Default as the provided AttributeValueDefault2
func (t *AttributeValue_Default) FromAttributeValueDefault2(v AttributeValueDefault2) error {
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeAttributeValueDefault2 performs a merge with any union data inside the AttributeValue_Default, using the provided AttributeValueDefault2
func (t *AttributeValue_Default) MergeAttributeValueDefault2(v AttributeValueDefault2) error {
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsAttributeValueDefault3 returns the union data inside the AttributeValue_Default as a AttributeValueDefault3
func (t AttributeValue_Default) AsAttributeValueDefault3() (AttributeValueDefault3, error) {
var body AttributeValueDefault3
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromAttributeValueDefault3 overwrites any union data inside the AttributeValue_Default as the provided AttributeValueDefault3
func (t *AttributeValue_Default) FromAttributeValueDefault3(v AttributeValueDefault3) error {
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeAttributeValueDefault3 performs a merge with any union data inside the AttributeValue_Default, using the provided AttributeValueDefault3
func (t *AttributeValue_Default) MergeAttributeValueDefault3(v AttributeValueDefault3) 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 AttributeValue_Default) MarshalJSON() ([]byte, error) {
b, err := t.union.MarshalJSON()
return b, err
}
func (t *AttributeValue_Default) UnmarshalJSON(b []byte) error {
err := t.union.UnmarshalJSON(b)
return err
}
// AsV1AnalyticsResponseError0 returns the union data inside the V1AnalyticsResponse_Error as a V1AnalyticsResponseError0
func (t V1AnalyticsResponse_Error) AsV1AnalyticsResponseError0() (V1AnalyticsResponseError0, error) {
var body V1AnalyticsResponseError0
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromV1AnalyticsResponseError0 overwrites any union data inside the V1AnalyticsResponse_Error as the provided V1AnalyticsResponseError0
func (t *V1AnalyticsResponse_Error) FromV1AnalyticsResponseError0(v V1AnalyticsResponseError0) error {
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeV1AnalyticsResponseError0 performs a merge with any union data inside the V1AnalyticsResponse_Error, using the provided V1AnalyticsResponseError0
func (t *V1AnalyticsResponse_Error) MergeV1AnalyticsResponseError0(v V1AnalyticsResponseError0) error {
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsV1AnalyticsResponseError1 returns the union data inside the V1AnalyticsResponse_Error as a V1AnalyticsResponseError1
func (t V1AnalyticsResponse_Error) AsV1AnalyticsResponseError1() (V1AnalyticsResponseError1, error) {
var body V1AnalyticsResponseError1
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromV1AnalyticsResponseError1 overwrites any union data inside the V1AnalyticsResponse_Error as the provided V1AnalyticsResponseError1
func (t *V1AnalyticsResponse_Error) FromV1AnalyticsResponseError1(v V1AnalyticsResponseError1) error {
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeV1AnalyticsResponseError1 performs a merge with any union data inside the V1AnalyticsResponse_Error, using the provided V1AnalyticsResponseError1
func (t *V1AnalyticsResponse_Error) MergeV1AnalyticsResponseError1(v V1AnalyticsResponseError1) 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 V1AnalyticsResponse_Error) MarshalJSON() ([]byte, error) {
b, err := t.union.MarshalJSON()
return b, err
}
func (t *V1AnalyticsResponse_Error) UnmarshalJSON(b []byte) error {
err := t.union.UnmarshalJSON(b)
return err
}
// AsAuthHealthResponse returns the union data inside the V1ServiceHealthResponse_Info as a AuthHealthResponse
func (t V1ServiceHealthResponse_Info) AsAuthHealthResponse() (AuthHealthResponse, error) {
var body AuthHealthResponse
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromAuthHealthResponse overwrites any union data inside the V1ServiceHealthResponse_Info as the provided AuthHealthResponse
func (t *V1ServiceHealthResponse_Info) FromAuthHealthResponse(v AuthHealthResponse) error {
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeAuthHealthResponse performs a merge with any union data inside the V1ServiceHealthResponse_Info, using the provided AuthHealthResponse
func (t *V1ServiceHealthResponse_Info) MergeAuthHealthResponse(v AuthHealthResponse) error {
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsRealtimeHealthResponse returns the union data inside the V1ServiceHealthResponse_Info as a RealtimeHealthResponse
func (t V1ServiceHealthResponse_Info) AsRealtimeHealthResponse() (RealtimeHealthResponse, error) {
var body RealtimeHealthResponse
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromRealtimeHealthResponse overwrites any union data inside the V1ServiceHealthResponse_Info as the provided RealtimeHealthResponse
func (t *V1ServiceHealthResponse_Info) FromRealtimeHealthResponse(v RealtimeHealthResponse) error {
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeRealtimeHealthResponse performs a merge with any union data inside the V1ServiceHealthResponse_Info, using the provided RealtimeHealthResponse
func (t *V1ServiceHealthResponse_Info) MergeRealtimeHealthResponse(v RealtimeHealthResponse) 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 V1ServiceHealthResponse_Info) MarshalJSON() ([]byte, error) {
b, err := t.union.MarshalJSON()
return b, err
}
func (t *V1ServiceHealthResponse_Info) UnmarshalJSON(b []byte) error {
err := t.union.UnmarshalJSON(b)
return err
}