Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: Update the types in api.d.ts. (#21287)

Ivan Vasilov4c7ff74a00de
diff --git a/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx b/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx
index ed5b3f297b1..0dddeec961b 100644
--- a/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx
+++ b/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx
@@ -2,19 +2,7 @@ import * as Tooltip from '@radix-ui/react-tooltip'
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useState } from 'react'
import ReactMarkdown from 'react-markdown'
-import {
- Alert,
- AlertDescription_Shadcn_,
- AlertTitle_Shadcn_,
- Alert_Shadcn_,
- Button,
- Collapsible,
- Form,
- IconAlertTriangle,
- IconCheck,
- IconChevronUp,
- Input,
-} from 'ui'
+import { Alert, Button, Collapsible, Form, IconCheck, IconChevronUp, Input } from 'ui'
import { useParams } from 'common'
import { components } from 'data/api'
@@ -27,7 +15,7 @@ import { Provider } from './AuthProvidersForm.types'
import FormField from './FormField'
export interface ProviderFormProps {
- config: components['schemas']['GetGoTrueConfigResponse']
+ config: components['schemas']['GoTrueConfigResponse']
provider: Provider
}
diff --git a/apps/studio/components/interfaces/Auth/SmtpForm/SmtpForm.utils.ts b/apps/studio/components/interfaces/Auth/SmtpForm/SmtpForm.utils.ts
index ad2539209d4..8d33cbaf2a9 100644
--- a/apps/studio/components/interfaces/Auth/SmtpForm/SmtpForm.utils.ts
+++ b/apps/studio/components/interfaces/Auth/SmtpForm/SmtpForm.utils.ts
@@ -1,6 +1,6 @@
import { components } from 'data/api'
-type AuthConfig = components['schemas']['GoTrueConfig']
+type AuthConfig = components['schemas']['GoTrueConfigResponse']
interface AuthConfigForm extends AuthConfig {
ENABLE_SMTP: boolean
diff --git a/apps/studio/components/interfaces/Database/Functions/CreateFunction.tsx b/apps/studio/components/interfaces/Database/Functions/CreateFunction.tsx
index bdc62c9c3b3..2d1e5bf92cf 100644
--- a/apps/studio/components/interfaces/Database/Functions/CreateFunction.tsx
+++ b/apps/studio/components/interfaces/Database/Functions/CreateFunction.tsx
@@ -5,7 +5,6 @@ import { FormEvent, createContext, useContext, useEffect, useState } from 'react
import toast from 'react-hot-toast'
import { Button, IconPlus, IconTrash, Input, Listbox, Modal, Radio, SidePanel, Toggle } from 'ui'
-import { Dictionary } from 'types'
import { POSTGRES_DATA_TYPES } from 'components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.constants'
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
import ConfirmationModal from 'components/ui/ConfirmationModal'
@@ -16,6 +15,7 @@ import { useDatabaseFunctionCreateMutation } from 'data/database-functions/datab
import { useDatabaseFunctionUpdateMutation } from 'data/database-functions/database-functions-update-mutation'
import { useSchemasQuery } from 'data/database/schemas-query'
import { EXCLUDED_SCHEMAS } from 'lib/constants/schemas'
+import { Dictionary } from 'types'
import { convertArgumentTypes, convertConfigParams, hasWhitespace } from './Functions.utils'
// [Refactor] Remove local state, just use the Form component
@@ -57,7 +57,7 @@ class CreateFunctionFormState {
definition: this.definition.value,
return_type: this.returnType.value,
language: this.language.value,
- behavior: this.behavior.value,
+ behavior: this.behavior.value as 'VOLATILE' | 'STABLE' | 'IMMUTABLE',
security_definer: this.securityDefiner.value,
args: this.args.value.map((x: any) => `${x.name} ${x.type}`),
config_params: mapValues(keyBy(this.configParams.value, 'name'), 'value'),
@@ -294,7 +294,7 @@ const CreateFunction = ({ func, visible, setVisible }: CreateFunctionProps) => {
id: body.id,
projectRef: project.ref,
connectionString: project.connectionString,
- payload: body,
+ payload: body as any,
},
{
onSuccess: () => {
diff --git a/apps/studio/components/interfaces/Integrations/ProjectLinker.tsx b/apps/studio/components/interfaces/Integrations/ProjectLinker.tsx
index 0c7daa4c2ea..0311a881d67 100644
--- a/apps/studio/components/interfaces/Integrations/ProjectLinker.tsx
+++ b/apps/studio/components/interfaces/Integrations/ProjectLinker.tsx
@@ -2,7 +2,6 @@ import { ReactNode, useEffect, useRef, useState } from 'react'
import { toast } from 'react-hot-toast'
import {
Button,
- cn,
CommandEmpty_Shadcn_,
CommandGroup_Shadcn_,
CommandInput_Shadcn_,
@@ -13,6 +12,7 @@ import {
PopoverContent_Shadcn_,
PopoverTrigger_Shadcn_,
Popover_Shadcn_,
+ cn,
} from 'ui'
import ShimmerLine from 'components/ui/ShimmerLine'
@@ -122,6 +122,7 @@ const ProjectLinker = ({
connection: {
foreign_project_id: selectedForeignProject?.id,
supabase_project_ref: selectedSupabaseProject?.ref,
+ integration_id: '0',
metadata: {
...projectDetails,
},
diff --git a/apps/studio/data/api.d.ts b/apps/studio/data/api.d.ts
index b31a08cbe41..d3c8fd3a7e3 100644
--- a/apps/studio/data/api.d.ts
+++ b/apps/studio/data/api.d.ts
@@ -1792,8 +1792,6 @@ export interface components {
actions?: components['schemas']['NotificationAction'][]
}
NotificationResponseV2: {
- /** @deprecated */
- type: string | null
/** @enum {string} */
status: 'new' | 'seen' | 'archived'
/** @enum {string} */
@@ -1867,7 +1865,7 @@ export interface components {
project: string
is_readonly_mode_enabled: boolean
}
- GetGoTrueConfigResponse: {
+ GoTrueConfigResponse: {
SITE_URL: string
DISABLE_SIGNUP: boolean
JWT_EXP: number
@@ -1875,10 +1873,9 @@ export interface components {
SMTP_HOST: string
SMTP_PORT: string
SMTP_USER: string
- SMTP_PASS?: string | null
- SMTP_PASS_ENCRYPTED?: string | null
+ SMTP_PASS: string
SMTP_MAX_FREQUENCY: number
- SMTP_SENDER_NAME?: string
+ SMTP_SENDER_NAME: string
MAILER_AUTOCONFIRM: boolean
MAILER_ALLOW_UNVERIFIED_EMAIL_SIGN_INS: boolean
MAILER_SUBJECTS_INVITE: string
@@ -1895,23 +1892,23 @@ export interface components {
URI_ALLOW_LIST: string
EXTERNAL_EMAIL_ENABLED: boolean
EXTERNAL_PHONE_ENABLED: boolean
- SAML_ENABLED?: boolean
+ SAML_ENABLED: boolean
SECURITY_CAPTCHA_ENABLED: boolean
SECURITY_CAPTCHA_PROVIDER: string
SECURITY_CAPTCHA_SECRET: string
- SESSIONS_TIMEBOX?: number
- SESSIONS_INACTIVITY_TIMEOUT?: number
- SESSIONS_SINGLE_PER_USER?: boolean
- SESSIONS_TAGS?: string
+ SESSIONS_TIMEBOX: number
+ SESSIONS_INACTIVITY_TIMEOUT: number
+ SESSIONS_SINGLE_PER_USER: boolean
+ SESSIONS_TAGS: string
RATE_LIMIT_EMAIL_SENT: number
RATE_LIMIT_SMS_SENT: number
- RATE_LIMIT_VERIFY?: number
- RATE_LIMIT_TOKEN_REFRESH?: number
+ RATE_LIMIT_VERIFY: number
+ RATE_LIMIT_TOKEN_REFRESH: number
MAILER_SECURE_EMAIL_CHANGE_ENABLED: boolean
REFRESH_TOKEN_ROTATION_ENABLED: boolean
- PASSWORD_HIBP_ENABLED?: boolean
- PASSWORD_MIN_LENGTH?: number
- PASSWORD_REQUIRED_CHARACTERS?: string
+ PASSWORD_HIBP_ENABLED: boolean
+ PASSWORD_MIN_LENGTH: number
+ PASSWORD_REQUIRED_CHARACTERS: string
SECURITY_MANUAL_LINKING_ENABLED: boolean
SECURITY_UPDATE_PASSWORD_REQUIRE_REAUTHENTICATION: boolean
SECURITY_REFRESH_TOKEN_REUSE_INTERVAL: number
@@ -1927,6 +1924,7 @@ export interface components {
SMS_TEXTLOCAL_SENDER: string
SMS_TWILIO_ACCOUNT_SID: string
SMS_TWILIO_AUTH_TOKEN: string
+ SMS_TWILIO_CONTENT_SID: string
SMS_TWILIO_MESSAGE_SERVICE_SID: string
SMS_TWILIO_VERIFY_ACCOUNT_SID: string
SMS_TWILIO_VERIFY_AUTH_TOKEN: string
@@ -1937,16 +1935,16 @@ export interface components {
SMS_TEMPLATE: string
SMS_TEST_OTP: string
SMS_TEST_OTP_VALID_UNTIL: string
- HOOK_MFA_VERIFICATION_ATTEMPT_ENABLED?: boolean
- HOOK_MFA_VERIFICATION_ATTEMPT_URI?: string
- HOOK_PASSWORD_VERIFICATION_ATTEMPT_ENABLED?: boolean
- HOOK_PASSWORD_VERIFICATION_ATTEMPT_URI?: string
- HOOK_CUSTOM_ACCESS_TOKEN_ENABLED?: boolean
- HOOK_CUSTOM_ACCESS_TOKEN_URI?: string
+ HOOK_MFA_VERIFICATION_ATTEMPT_ENABLED: boolean
+ HOOK_MFA_VERIFICATION_ATTEMPT_URI: string
+ HOOK_PASSWORD_VERIFICATION_ATTEMPT_ENABLED: boolean
+ HOOK_PASSWORD_VERIFICATION_ATTEMPT_URI: string
+ HOOK_CUSTOM_ACCESS_TOKEN_ENABLED: boolean
+ HOOK_CUSTOM_ACCESS_TOKEN_URI: string
EXTERNAL_APPLE_ENABLED: boolean
EXTERNAL_APPLE_CLIENT_ID: string
EXTERNAL_APPLE_SECRET: string
- EXTERNAL_APPLE_ADDITIONAL_CLIENT_IDS?: string
+ EXTERNAL_APPLE_ADDITIONAL_CLIENT_IDS: string
EXTERNAL_AZURE_ENABLED: boolean
EXTERNAL_AZURE_CLIENT_ID: string
EXTERNAL_AZURE_SECRET: string
@@ -1973,8 +1971,8 @@ export interface components {
EXTERNAL_GOOGLE_ENABLED: boolean
EXTERNAL_GOOGLE_CLIENT_ID: string
EXTERNAL_GOOGLE_SECRET: string
- EXTERNAL_GOOGLE_ADDITIONAL_CLIENT_IDS?: string
- EXTERNAL_GOOGLE_SKIP_NONCE_CHECK?: boolean
+ EXTERNAL_GOOGLE_ADDITIONAL_CLIENT_IDS: string
+ EXTERNAL_GOOGLE_SKIP_NONCE_CHECK: boolean
EXTERNAL_KAKAO_ENABLED: boolean
EXTERNAL_KAKAO_CLIENT_ID: string
EXTERNAL_KAKAO_SECRET: string
@@ -1982,9 +1980,6 @@ export interface components {
EXTERNAL_KEYCLOAK_CLIENT_ID: string
EXTERNAL_KEYCLOAK_SECRET: string
EXTERNAL_KEYCLOAK_URL: string
- EXTERNAL_LINKEDIN_ENABLED: boolean
- EXTERNAL_LINKEDIN_CLIENT_ID: string
- EXTERNAL_LINKEDIN_SECRET: string
EXTERNAL_LINKEDIN_OIDC_ENABLED: boolean
EXTERNAL_LINKEDIN_OIDC_CLIENT_ID: string
EXTERNAL_LINKEDIN_OIDC_SECRET: string
@@ -2019,8 +2014,7 @@ export interface components {
SMTP_HOST?: string
SMTP_PORT?: string
SMTP_USER?: string
- SMTP_PASS?: string | null
- SMTP_PASS_ENCRYPTED?: string | null
+ SMTP_PASS?: string
SMTP_MAX_FREQUENCY?: number
SMTP_SENDER_NAME?: string
MAILER_ALLOW_UNVERIFIED_EMAIL_SIGN_INS?: boolean
@@ -2043,10 +2037,10 @@ export interface components {
SECURITY_CAPTCHA_ENABLED?: boolean
SECURITY_CAPTCHA_PROVIDER?: string
SECURITY_CAPTCHA_SECRET?: string
- SESSIONS_TIMEBOX?: number | null
- SESSIONS_INACTIVITY_TIMEOUT?: number | null
+ SESSIONS_TIMEBOX?: number
+ SESSIONS_INACTIVITY_TIMEOUT?: number
SESSIONS_SINGLE_PER_USER?: boolean
- SESSIONS_TAGS?: string | null
+ SESSIONS_TAGS?: string
RATE_LIMIT_EMAIL_SENT?: number
RATE_LIMIT_SMS_SENT?: number
RATE_LIMIT_VERIFY?: number
@@ -2132,9 +2126,6 @@ export interface components {
EXTERNAL_KEYCLOAK_CLIENT_ID?: string
EXTERNAL_KEYCLOAK_SECRET?: string
EXTERNAL_KEYCLOAK_URL?: string
- EXTERNAL_LINKEDIN_ENABLED?: boolean
- EXTERNAL_LINKEDIN_CLIENT_ID?: string
- EXTERNAL_LINKEDIN_SECRET?: string
EXTERNAL_LINKEDIN_OIDC_ENABLED?: boolean
EXTERNAL_LINKEDIN_OIDC_CLIENT_ID?: string
EXTERNAL_LINKEDIN_OIDC_SECRET?: string
@@ -2161,150 +2152,6 @@ export interface components {
EXTERNAL_ZOOM_CLIENT_ID?: string
EXTERNAL_ZOOM_SECRET?: string
}
- GoTrueConfig: {
- SITE_URL: string
- DISABLE_SIGNUP: boolean
- JWT_EXP: number
- SMTP_ADMIN_EMAIL: string
- SMTP_HOST: string
- SMTP_PORT: string
- SMTP_USER: string
- SMTP_PASS?: string | null
- SMTP_PASS_ENCRYPTED?: string | null
- SMTP_MAX_FREQUENCY: number
- SMTP_SENDER_NAME?: string
- MAILER_AUTOCONFIRM: boolean
- MAILER_ALLOW_UNVERIFIED_EMAIL_SIGN_INS: boolean
- MAILER_SUBJECTS_INVITE: string
- MAILER_SUBJECTS_CONFIRMATION: string
- MAILER_SUBJECTS_RECOVERY: string
- MAILER_SUBJECTS_EMAIL_CHANGE: string
- MAILER_SUBJECTS_MAGIC_LINK: string
- MAILER_TEMPLATES_INVITE_CONTENT: string
- MAILER_TEMPLATES_CONFIRMATION_CONTENT: string
- MAILER_TEMPLATES_RECOVERY_CONTENT: string
- MAILER_TEMPLATES_EMAIL_CHANGE_CONTENT: string
- MAILER_TEMPLATES_MAGIC_LINK_CONTENT: string
- MFA_MAX_ENROLLED_FACTORS: number
- URI_ALLOW_LIST: string
- EXTERNAL_EMAIL_ENABLED: boolean
- EXTERNAL_PHONE_ENABLED: boolean
- SAML_ENABLED?: boolean
- SECURITY_CAPTCHA_ENABLED: boolean
- SECURITY_CAPTCHA_PROVIDER: string
- SECURITY_CAPTCHA_SECRET: string
- SESSIONS_TIMEBOX?: number
- SESSIONS_INACTIVITY_TIMEOUT?: number
- SESSIONS_SINGLE_PER_USER?: boolean
- SESSIONS_TAGS?: string
- RATE_LIMIT_EMAIL_SENT: number
- RATE_LIMIT_SMS_SENT: number
- RATE_LIMIT_VERIFY?: number
- RATE_LIMIT_TOKEN_REFRESH?: number
- MAILER_SECURE_EMAIL_CHANGE_ENABLED: boolean
- REFRESH_TOKEN_ROTATION_ENABLED: boolean
- PASSWORD_HIBP_ENABLED?: boolean
- PASSWORD_MIN_LENGTH?: number
- PASSWORD_REQUIRED_CHARACTERS?: string
- SECURITY_MANUAL_LINKING_ENABLED: boolean
- SECURITY_UPDATE_PASSWORD_REQUIRE_REAUTHENTICATION: boolean
- SECURITY_REFRESH_TOKEN_REUSE_INTERVAL: number
- MAILER_OTP_EXP: number
- SMS_AUTOCONFIRM: boolean
- SMS_MAX_FREQUENCY: number
- SMS_OTP_EXP: number
- SMS_OTP_LENGTH: number
- SMS_PROVIDER: string
- SMS_MESSAGEBIRD_ACCESS_KEY: string
- SMS_MESSAGEBIRD_ORIGINATOR: string
- SMS_TEXTLOCAL_API_KEY: string
- SMS_TEXTLOCAL_SENDER: string
- SMS_TWILIO_ACCOUNT_SID: string
- SMS_TWILIO_AUTH_TOKEN: string
- SMS_TWILIO_MESSAGE_SERVICE_SID: string
- SMS_TWILIO_VERIFY_ACCOUNT_SID: string
- SMS_TWILIO_VERIFY_AUTH_TOKEN: string
- SMS_TWILIO_VERIFY_MESSAGE_SERVICE_SID: string
- SMS_VONAGE_API_KEY: string
- SMS_VONAGE_API_SECRET: string
- SMS_VONAGE_FROM: string
- SMS_TEMPLATE: string
- SMS_TEST_OTP: string
- SMS_TEST_OTP_VALID_UNTIL: string
- HOOK_MFA_VERIFICATION_ATTEMPT_ENABLED?: boolean
- HOOK_MFA_VERIFICATION_ATTEMPT_URI?: string
- HOOK_PASSWORD_VERIFICATION_ATTEMPT_ENABLED?: boolean
- HOOK_PASSWORD_VERIFICATION_ATTEMPT_URI?: string
- HOOK_CUSTOM_ACCESS_TOKEN_ENABLED?: boolean
- HOOK_CUSTOM_ACCESS_TOKEN_URI?: string
- EXTERNAL_APPLE_ENABLED: boolean
- EXTERNAL_APPLE_CLIENT_ID: string
- EXTERNAL_APPLE_SECRET: string
- EXTERNAL_APPLE_ADDITIONAL_CLIENT_IDS?: string
- EXTERNAL_AZURE_ENABLED: boolean
- EXTERNAL_AZURE_CLIENT_ID: string
- EXTERNAL_AZURE_SECRET: string
- EXTERNAL_AZURE_URL: string
- EXTERNAL_BITBUCKET_ENABLED: boolean
- EXTERNAL_BITBUCKET_CLIENT_ID: string
- EXTERNAL_BITBUCKET_SECRET: string
- EXTERNAL_DISCORD_ENABLED: boolean
- EXTERNAL_DISCORD_CLIENT_ID: string
- EXTERNAL_DISCORD_SECRET: string
- EXTERNAL_FACEBOOK_ENABLED: boolean
- EXTERNAL_FACEBOOK_CLIENT_ID: string
- EXTERNAL_FACEBOOK_SECRET: string
- EXTERNAL_FIGMA_ENABLED: boolean
- EXTERNAL_FIGMA_CLIENT_ID: string
- EXTERNAL_FIGMA_SECRET: string
- EXTERNAL_GITHUB_ENABLED: boolean
- EXTERNAL_GITHUB_CLIENT_ID: string
- EXTERNAL_GITHUB_SECRET: string
- EXTERNAL_GITLAB_ENABLED: boolean
- EXTERNAL_GITLAB_CLIENT_ID: string
- EXTERNAL_GITLAB_SECRET: string
- EXTERNAL_GITLAB_URL: string
- EXTERNAL_GOOGLE_ENABLED: boolean
- EXTERNAL_GOOGLE_CLIENT_ID: string
- EXTERNAL_GOOGLE_SECRET: string
- EXTERNAL_GOOGLE_ADDITIONAL_CLIENT_IDS?: string
- EXTERNAL_GOOGLE_SKIP_NONCE_CHECK?: boolean
- EXTERNAL_KAKAO_ENABLED: boolean
- EXTERNAL_KAKAO_CLIENT_ID: string
- EXTERNAL_KAKAO_SECRET: string
- EXTERNAL_KEYCLOAK_ENABLED: boolean
- EXTERNAL_KEYCLOAK_CLIENT_ID: string
- EXTERNAL_KEYCLOAK_SECRET: string
- EXTERNAL_KEYCLOAK_URL: string
- EXTERNAL_LINKEDIN_ENABLED: boolean
- EXTERNAL_LINKEDIN_CLIENT_ID: string
- EXTERNAL_LINKEDIN_SECRET: string
- EXTERNAL_LINKEDIN_OIDC_ENABLED: boolean
- EXTERNAL_LINKEDIN_OIDC_CLIENT_ID: string
- EXTERNAL_LINKEDIN_OIDC_SECRET: string
- EXTERNAL_NOTION_ENABLED: boolean
- EXTERNAL_NOTION_CLIENT_ID: string
- EXTERNAL_NOTION_SECRET: string
- EXTERNAL_SLACK_ENABLED: boolean
- EXTERNAL_SLACK_CLIENT_ID: string
- EXTERNAL_SLACK_SECRET: string
- EXTERNAL_SPOTIFY_ENABLED: boolean
- EXTERNAL_SPOTIFY_CLIENT_ID: string
- EXTERNAL_SPOTIFY_SECRET: string
- EXTERNAL_TWITCH_ENABLED: boolean
- EXTERNAL_TWITCH_CLIENT_ID: string
- EXTERNAL_TWITCH_SECRET: string
- EXTERNAL_TWITTER_ENABLED: boolean
- EXTERNAL_TWITTER_CLIENT_ID: string
- EXTERNAL_TWITTER_SECRET: string
- EXTERNAL_WORKOS_ENABLED: boolean
- EXTERNAL_WORKOS_CLIENT_ID: string
- EXTERNAL_WORKOS_SECRET: string
- EXTERNAL_WORKOS_URL: string
- EXTERNAL_ZOOM_ENABLED: boolean
- EXTERNAL_ZOOM_CLIENT_ID: string
- EXTERNAL_ZOOM_SECRET: string
- }
UserBody: {
id?: string
aud?: string
@@ -3062,15 +2909,29 @@ export interface components {
config_params: unknown
}
CreateFunctionBody: {
- slug: string
+ args: string[]
+ /** @enum {string} */
+ behavior: 'VOLATILE' | 'STABLE' | 'IMMUTABLE'
+ config_params?: Record<string, never>
+ definition: string
+ language: string
name: string
- body: string
- verify_jwt?: boolean
+ return_type: string
+ schema: string
+ security_definer: boolean
}
UpdateFunctionBody: {
+ id?: number
+ args?: string[]
+ /** @enum {string} */
+ behavior?: 'VOLATILE' | 'STABLE' | 'IMMUTABLE'
+ config_params?: Record<string, never>
+ definition?: string
+ language?: string
name?: string
- body?: string
- verify_jwt?: boolean
+ return_type?: string
+ schema?: string
+ security_definer?: boolean
}
PostgresMaterializedView: {
id: number
@@ -3558,42 +3419,18 @@ export interface components {
ami: components['schemas']['AmiSearchOptions']
}
CreateProjectBody: {
- /** @description Database password */
- db_pass: string
- /** @description Name of your project, should not contain dots */
- name: string
- /** @description Slug of your organization */
- organization_id: string
- /**
- * @deprecated
- * @description Subscription plan is now set on organization level and is ignored in this request
- * @example free
- * @enum {string}
- */
- plan: 'free' | 'pro'
- /**
- * @description Region you want your server to reside in
- * @example us-east-1
- * @enum {string}
- */
- region:
- | 'us-east-1'
- | 'us-west-1'
- | 'us-west-2'
- | 'ap-east-1'
- | 'ap-southeast-1'
- | 'ap-northeast-1'
- | 'ap-northeast-2'
- | 'ap-southeast-2'
- | 'eu-west-1'
- | 'eu-west-2'
- | 'eu-west-3'
- | 'eu-central-1'
- | 'ca-central-1'
- | 'ap-south-1'
- | 'sa-east-1'
/** @deprecated */
kps_enabled?: boolean
+ cloud_provider: string
+ org_id: number
+ name: string
+ db_pass: string
+ db_region: string
+ db_pricing_tier_id: string
+ db_sql?: string
+ auth_site_url?: string
+ vercel_configuration_id?: string
+ custom_supabase_internal_requests: components['schemas']['CustomSupabaseInternalRequests']
}
CreateProjectResponse: {
infra_compute_size?: components['schemas']['DbInstanceSize']
@@ -3728,7 +3565,7 @@ export interface components {
UpdatePasswordBody: {
password: string
}
- Database: {
+ LoadBalancerDatabase: {
identifier: string
/** @enum {string} */
type: 'PRIMARY' | 'READ_REPLICA'
@@ -3736,7 +3573,7 @@ export interface components {
}
LoadBalancerDetailResponse: {
endpoint: string
- databases: components['schemas']['Database'][]
+ databases: components['schemas']['LoadBalancerDatabase'][]
}
Buffer: Record<string, never>
ResizeBody: {
@@ -3844,7 +3681,7 @@ export interface components {
db_name: string
db_user: string
db_port: string
- db_ssl: boolean
+ ssl_enforced: boolean
cloud_provider: string
region: string
app_config?: components['schemas']['ProjectAppConfigResponse']
@@ -3919,7 +3756,7 @@ export interface components {
db_host: string
db_port: number
db_name: string
- db_ssl: boolean
+ ssl_enforced: boolean
pgbouncer_enabled: boolean
supavisor_enabled: boolean
/** @enum {string} */
@@ -3948,8 +3785,11 @@ export interface components {
pgbouncer_status: 'COMING_DOWN' | 'COMING_UP' | 'DISABLED' | 'ENABLED' | 'RELOADING'
}
PostgrestConfigResponse: {
- max_rows: number
db_schema: string
+ db_anon_role: string
+ role_claim_key: string
+ jwt_secret: string
+ max_rows: number
db_extra_search_path: string
}
UpdatePostgrestConfigBody: {
@@ -3957,6 +3797,11 @@ export interface components {
db_extra_search_path?: string
db_schema?: string
}
+ V1PostgrestConfigResponse: {
+ max_rows: number
+ db_schema: string
+ db_extra_search_path: string
+ }
PostgresConfigResponse: {
statement_timeout?: string
effective_cache_size?: string
@@ -4059,12 +3904,12 @@ export interface components {
serviceApiKey: string
id: number
name: string
- app_config?: Record<string, never>
+ app_config: Record<string, never>
app: {
id?: number
name?: string
}
- service_api_keys?: components['schemas']['ServiceApiKey'][]
+ service_api_keys: components['schemas']['ServiceApiKey'][]
}
ApiResponse: {
autoApiService: components['schemas']['AutoApiService']
@@ -4081,10 +3926,10 @@ export interface components {
}
}
ServiceApiKeyResponse: {
- api_key?: string
api_key_encrypted?: string
tags: string
name: string
+ api_key?: string
}
ServiceResponse: {
service_api_keys: components['schemas']['ServiceApiKeyResponse'][]
@@ -4097,23 +3942,21 @@ export interface components {
}
}
ProjectResponse: {
- /** @description Id of your project */
- id: string
- /** @description Slug of your organization */
- organization_id: string
- /** @description Name of your project */
+ jwt_secret: string
+ services?: components['schemas']['ServiceResponse'][]
+ id: number
name: string
- /**
- * @description Region of your project
- * @example us-east-1
- */
+ ref: string
+ status: string
+ inserted_at: string
+ db_dns_name: string
+ db_host: string
+ db_name: string
+ db_user: string
+ db_port: string
+ ssl_enforced: boolean
+ cloud_provider: string
region: string
- /**
- * @description Creation timestamp
- * @example 2023-03-29T16:32:59Z
- */
- created_at: string
- database?: components['schemas']['DatabaseResponse']
}
SettingsResponse: {
project: components['schemas']['ProjectResponse']
@@ -4400,14 +4243,14 @@ export interface components {
foreign_project_id: string
metadata: Record<string, never>
}
- IntegrationConnection: {
+ IntegrationConnectionVercel: {
foreign_project_id: string
supabase_project_ref: string
metadata: Record<string, never>
}
CreateVercelConnectionsBody: {
organization_integration_id: string
- connection: components['schemas']['IntegrationConnection']
+ connection: components['schemas']['IntegrationConnectionVercel']
}
SyncVercelEnvError: {
message: string
@@ -4439,9 +4282,15 @@ export interface components {
foreign_project_id: string
metadata: Record<string, never>
}
+ IntegrationConnectionGithub: {
+ foreign_project_id: string
+ supabase_project_ref: string
+ integration_id: string
+ metadata: Record<string, never>
+ }
CreateGitHubConnectionsBody: {
organization_integration_id: string
- connection: components['schemas']['IntegrationConnection']
+ connection: components['schemas']['IntegrationConnectionGithub']
}
UpdateGitHubConnectionsBody: {
metadata: Record<string, never>
@@ -4535,12 +4384,71 @@ export interface components {
addon_type: components['schemas']['ProjectAddonType']
price_id?: string
}
- DatabaseResponse: {
+ SystemCreateProjectBody: {
+ /** @description Database password */
+ db_pass: string
+ /** @description Name of your project, should not contain dots */
+ name: string
+ /** @description Slug of your organization */
+ organization_id: string
+ /**
+ * @description Subscription plan
+ * @example free
+ * @enum {string}
+ */
+ plan: 'free' | 'pro'
+ /**
+ * @description Region you want your server to reside in
+ * @example us-east-1
+ * @enum {string}
+ */
+ region:
+ | 'us-east-1'
+ | 'us-west-1'
+ | 'us-west-2'
+ | 'ap-east-1'
+ | 'ap-southeast-1'
+ | 'ap-northeast-1'
+ | 'ap-northeast-2'
+ | 'ap-southeast-2'
+ | 'eu-west-1'
+ | 'eu-west-2'
+ | 'eu-west-3'
+ | 'eu-central-1'
+ | 'ca-central-1'
+ | 'ap-south-1'
+ | 'sa-east-1'
+ jwt_secret: string
+ anon_key: string
+ service_key: string
+ api_key_supabase: string
+ db_pass_supabase: string
+ }
+ SystemDatabaseResponse: {
/** @description Database host */
host: string
/** @description Database version */
version: string
}
+ SystemProjectResponse: {
+ /** @description Id of your project */
+ id: string
+ /** @description Slug of your organization */
+ organization_id: string
+ /** @description Name of your project */
+ name: string
+ /**
+ * @description Region of your project
+ * @example us-east-1
+ */
+ region: string
+ /**
+ * @description Creation timestamp
+ * @example 2023-03-29T16:32:59Z
+ */
+ created_at: string
+ database?: components['schemas']['SystemDatabaseResponse']
+ }
UpdateSubscriptionV2AdminBody: {
payment_method?: string
/** @enum {string} */
@@ -4599,9 +4507,74 @@ export interface components {
git_branch?: string
pr_number?: number
reset_on_push: boolean
+ /** @enum {string} */
+ status: 'CREATING_PROJECT' | 'RUNNING_MIGRATIONS' | 'MIGRATIONS_PASSED' | 'MIGRATIONS_FAILED'
created_at: string
updated_at: string
}
+ V1DatabaseResponse: {
+ /** @description Database host */
+ host: string
+ /** @description Database version */
+ version: string
+ }
+ V1ProjectResponse: {
+ /** @description Id of your project */
+ id: string
+ /** @description Slug of your organization */
+ organization_id: string
+ /** @description Name of your project */
+ name: string
+ /**
+ * @description Region of your project
+ * @example us-east-1
+ */
+ region: string
+ /**
+ * @description Creation timestamp
+ * @example 2023-03-29T16:32:59Z
+ */
+ created_at: string
+ database?: components['schemas']['V1DatabaseResponse']
+ }
+ V1CreateProjectBody: {
+ /** @description Database password */
+ db_pass: string
+ /** @description Name of your project, should not contain dots */
+ name: string
+ /** @description Slug of your organization */
+ organization_id: string
+ /**
+ * @deprecated
+ * @description Subscription plan is now set on organization level and is ignored in this request
+ * @example free
+ * @enum {string}
+ */
+ plan?: 'free' | 'pro'
+ /**
+ * @description Region you want your server to reside in
+ * @example us-east-1
+ * @enum {string}
+ */
+ region:
+ | 'us-east-1'
+ | 'us-west-1'
+ | 'us-west-2'
+ | 'ap-east-1'
+ | 'ap-southeast-1'
+ | 'ap-northeast-1'
+ | 'ap-northeast-2'
+ | 'ap-southeast-2'
+ | 'eu-west-1'
+ | 'eu-west-2'
+ | 'eu-west-3'
+ | 'eu-central-1'
+ | 'ca-central-1'
+ | 'ap-south-1'
+ | 'sa-east-1'
+ /** @deprecated */
+ kps_enabled?: boolean
+ }
ApiKeyResponse: {
name: string
api_key: string
@@ -4655,6 +4628,11 @@ export interface components {
db_extra_search_path: string
jwt_secret?: string
}
+ V1ProjectRefResponse: {
+ id: number
+ ref: string
+ name: string
+ }
SslEnforcements: {
database: boolean
}
@@ -4774,7 +4752,7 @@ export interface components {
db_connected: boolean
connected_cluster: number
}
- ServiceHealthResponse: {
+ V1ServiceHealthResponse: {
info?:
| components['schemas']['AuthHealthResponse']
| components['schemas']['RealtimeHealthResponse']
@@ -4794,16 +4772,150 @@ export interface components {
connection_string?: string
}
AuthConfigResponse: {
- smtp_admin_email?: string
- smtp_host?: string
- smtp_port?: string
- smtp_user?: string
- smtp_pass?: string
- smtp_max_frequency?: number
- smtp_sender_name?: string
- rate_limit_email_sent?: number
+ disable_signup: boolean | null
+ external_apple_additional_client_ids: string | null
+ external_apple_client_id: string | null
+ external_apple_enabled: boolean | null
+ external_apple_secret: string | null
+ external_azure_client_id: string | null
+ external_azure_enabled: boolean | null
+ external_azure_secret: string | null
+ external_azure_url: string | null
+ external_bitbucket_client_id: string | null
+ external_bitbucket_enabled: boolean | null
+ external_bitbucket_secret: string | null
+ external_discord_client_id: string | null
+ external_discord_enabled: boolean | null
+ external_discord_secret: string | null
+ external_email_enabled: boolean | null
+ external_facebook_client_id: string | null
+ external_facebook_enabled: boolean | null
+ external_facebook_secret: string | null
+ external_figma_client_id: string | null
+ external_figma_enabled: boolean | null
+ external_figma_secret: string | null
+ external_github_client_id: string | null
+ external_github_enabled: boolean | null
+ external_github_secret: string | null
+ external_gitlab_client_id: string | null
+ external_gitlab_enabled: boolean | null
+ external_gitlab_secret: string | null
+ external_gitlab_url: string | null
+ external_google_additional_client_ids: string | null
+ external_google_client_id: string | null
+ external_google_enabled: boolean | null
+ external_google_secret: string | null
+ external_google_skip_nonce_check: boolean | null
+ external_kakao_client_id: string | null
+ external_kakao_enabled: boolean | null
+ external_kakao_secret: string | null
+ external_keycloak_client_id: string | null
+ external_keycloak_enabled: boolean | null
+ external_keycloak_secret: string | null
+ external_keycloak_url: string | null
+ external_linkedin_oidc_client_id: string | null
+ external_linkedin_oidc_enabled: boolean | null
+ external_linkedin_oidc_secret: string | null
+ external_notion_client_id: string | null
+ external_notion_enabled: boolean | null
+ external_notion_secret: string | null
+ external_phone_enabled: boolean | null
+ external_slack_client_id: string | null
+ external_slack_enabled: boolean | null
+ external_slack_secret: string | null
+ external_spotify_client_id: string | null
+ external_spotify_enabled: boolean | null
+ external_spotify_secret: string | null
+ external_twitch_client_id: string | null
+ external_twitch_enabled: boolean | null
+ external_twitch_secret: string | null
+ external_twitter_client_id: string | null
+ external_twitter_enabled: boolean | null
+ external_twitter_secret: string | null
+ external_workos_client_id: string | null
+ external_workos_enabled: boolean | null
+ external_workos_secret: string | null
+ external_workos_url: string | null
+ external_zoom_client_id: string | null
+ external_zoom_enabled: boolean | null
+ external_zoom_secret: string | null
+ hook_custom_access_token_enabled: boolean | null
+ hook_custom_access_token_uri: string | null
+ hook_mfa_verification_attempt_enabled: boolean | null
+ hook_mfa_verification_attempt_uri: string | null
+ hook_password_verification_attempt_enabled: boolean | null
+ hook_password_verification_attempt_uri: string | null
+ jwt_exp: number | null
+ mailer_allow_unverified_email_sign_ins: boolean | null
+ mailer_autoconfirm: boolean | null
+ mailer_otp_exp: number | null
+ mailer_secure_email_change_enabled: boolean | null
+ mailer_subjects_confirmation: string | null
+ mailer_subjects_email_change: string | null
+ mailer_subjects_invite: string | null
+ mailer_subjects_magic_link: string | null
+ mailer_subjects_recovery: string | null
+ mailer_templates_confirmation_content: string | null
+ mailer_templates_email_change_content: string | null
+ mailer_templates_invite_content: string | null
+ mailer_templates_magic_link_content: string | null
+ mailer_templates_recovery_content: string | null
+ mfa_max_enrolled_factors: number | null
+ password_hibp_enabled: boolean | null
+ password_min_length: number | null
+ password_required_characters: string | null
+ rate_limit_email_sent: number | null
+ rate_limit_sms_sent: number | null
+ rate_limit_token_refresh: number | null
+ rate_limit_verify: number | null
+ refresh_token_rotation_enabled: boolean | null
+ saml_enabled: boolean | null
+ security_captcha_enabled: boolean | null
+ security_captcha_provider: string | null
+ security_captcha_secret: string | null
+ security_manual_linking_enabled: boolean | null
+ security_refresh_token_reuse_interval: number | null
+ security_update_password_require_reauthentication: boolean | null
+ sessions_inactivity_timeout: number | null
+ sessions_single_per_user: boolean | null
+ sessions_tags: string | null
+ sessions_timebox: number | null
+ site_url: string | null
+ sms_autoconfirm: boolean | null
+ sms_max_frequency: number | null
+ sms_messagebird_access_key: string | null
+ sms_messagebird_originator: string | null
+ sms_otp_exp: number | null
+ sms_otp_length: number | null
+ sms_provider: string | null
+ sms_template: string | null
+ sms_test_otp: string | null
+ sms_test_otp_valid_until: string | null
+ sms_textlocal_api_key: string | null
+ sms_textlocal_sender: string | null
+ sms_twilio_account_sid: string | null
+ sms_twilio_auth_token: string | null
+ sms_twilio_content_sid: string | null
+ sms_twilio_message_service_sid: string | null
+ sms_twilio_verify_account_sid: string | null
+ sms_twilio_verify_auth_token: string | null
+ sms_twilio_verify_message_service_sid: string | null
+ sms_vonage_api_key: string | null
+ sms_vonage_api_secret: string | null
+ sms_vonage_from: string | null
+ smtp_admin_email: string | null
+ smtp_host: string | null
+ smtp_max_frequency: number | null
+ smtp_pass: string | null
+ smtp_port: string | null
+ smtp_sender_name: string | null
+ smtp_user: string | null
+ uri_allow_list: string | null
}
UpdateAuthConfigBody: {
+ site_url?: string
+ disable_signup?: boolean
+ jwt_exp?: number
smtp_admin_email?: string
smtp_host?: string
smtp_port?: string
@@ -4811,7 +4923,140 @@ export interface components {
smtp_pass?: string
smtp_max_frequency?: number
smtp_sender_name?: string
+ mailer_allow_unverified_email_sign_ins?: boolean
+ mailer_autoconfirm?: boolean
+ mailer_subjects_invite?: string
+ mailer_subjects_confirmation?: string
+ mailer_subjects_recovery?: string
+ mailer_subjects_email_change?: string
+ mailer_subjects_magic_link?: string
+ mailer_templates_invite_content?: string
+ mailer_templates_confirmation_content?: string
+ mailer_templates_recovery_content?: string
+ mailer_templates_email_change_content?: string
+ mailer_templates_magic_link_content?: string
+ mfa_max_enrolled_factors?: number
+ uri_allow_list?: string
+ external_email_enabled?: boolean
+ external_phone_enabled?: boolean
+ saml_enabled?: boolean
+ security_captcha_enabled?: boolean
+ security_captcha_provider?: string
+ security_captcha_secret?: string
+ sessions_timebox?: number
+ sessions_inactivity_timeout?: number
+ sessions_single_per_user?: boolean
+ sessions_tags?: string
rate_limit_email_sent?: number
+ rate_limit_sms_sent?: number
+ rate_limit_verify?: number
+ rate_limit_token_refresh?: number
+ mailer_secure_email_change_enabled?: boolean
+ refresh_token_rotation_enabled?: boolean
+ password_hibp_enabled?: boolean
+ password_min_length?: number
+ /** @enum {string} */
+ password_required_characters?:
+ | 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ:0123456789'
+ | 'abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:0123456789'
+ | 'abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:0123456789:!@#$%^&*()_+-=[]{};\'\\:"|<>?,./`~'
+ | ''
+ security_manual_linking_enabled?: boolean
+ security_update_password_require_reauthentication?: boolean
+ security_refresh_token_reuse_interval?: number
+ mailer_otp_exp?: number
+ sms_autoconfirm?: boolean
+ sms_max_frequency?: number
+ sms_otp_exp?: number
+ sms_otp_length?: number
+ sms_provider?: string
+ sms_messagebird_access_key?: string
+ sms_messagebird_originator?: string
+ sms_test_otp?: string
+ sms_test_otp_valid_until?: string
+ sms_textlocal_api_key?: string
+ sms_textlocal_sender?: string
+ sms_twilio_account_sid?: string
+ sms_twilio_auth_token?: string
+ sms_twilio_content_sid?: string
+ sms_twilio_message_service_sid?: string
+ sms_twilio_verify_account_sid?: string
+ sms_twilio_verify_auth_token?: string
+ sms_twilio_verify_message_service_sid?: string
+ sms_vonage_api_key?: string
+ sms_vonage_api_secret?: string
+ sms_vonage_from?: string
+ sms_template?: string
+ hook_mfa_verification_attempt_enabled?: boolean
+ hook_mfa_verification_attempt_uri?: string
+ hook_password_verification_attempt_enabled?: boolean
+ hook_password_verification_attempt_uri?: string
+ hook_custom_access_token_enabled?: boolean
+ hook_custom_access_token_uri?: string
+ external_apple_enabled?: boolean
+ external_apple_client_id?: string
+ external_apple_secret?: string
+ external_apple_additional_client_ids?: string
+ external_azure_enabled?: boolean
+ external_azure_client_id?: string
+ external_azure_secret?: string
+ external_azure_url?: string
+ external_bitbucket_enabled?: boolean
+ external_bitbucket_client_id?: string
+ external_bitbucket_secret?: string
+ external_discord_enabled?: boolean
+ external_discord_client_id?: string
+ external_discord_secret?: string
+ external_facebook_enabled?: boolean
+ external_facebook_client_id?: string
+ external_facebook_secret?: string
+ external_figma_enabled?: boolean
+ external_figma_client_id?: string
+ external_figma_secret?: string
+ external_github_enabled?: boolean
+ external_github_client_id?: string
+ external_github_secret?: string
+ external_gitlab_enabled?: boolean
+ external_gitlab_client_id?: string
+ external_gitlab_secret?: string
+ external_gitlab_url?: string
+ external_google_enabled?: boolean
+ external_google_client_id?: string
+ external_google_secret?: string
+ external_google_additional_client_ids?: string
+ external_google_skip_nonce_check?: boolean
+ external_kakao_enabled?: boolean
+ external_kakao_client_id?: string
+ external_kakao_secret?: string
+ external_keycloak_enabled?: boolean
+ external_keycloak_client_id?: string
+ external_keycloak_secret?: string
+ external_keycloak_url?: string
+ external_linkedin_oidc_enabled?: boolean
+ external_linkedin_oidc_client_id?: string
+ external_linkedin_oidc_secret?: string
+ external_notion_enabled?: boolean
+ external_notion_client_id?: string
+ external_notion_secret?: string
+ external_slack_enabled?: boolean
+ external_slack_client_id?: string
+ external_slack_secret?: string
+ external_spotify_enabled?: boolean
+ external_spotify_client_id?: string
+ external_spotify_secret?: string
+ external_twitch_enabled?: boolean
+ external_twitch_client_id?: string
+ external_twitch_secret?: string
+ external_twitter_enabled?: boolean
+ external_twitter_client_id?: string
+ external_twitter_secret?: string
+ external_workos_enabled?: boolean
+ external_workos_client_id?: string
+ external_workos_secret?: string
+ external_workos_url?: string
+ external_zoom_enabled?: boolean
+ external_zoom_client_id?: string
+ external_zoom_secret?: string
}
AttributeValue: {
default?: Record<string, never> | number | string | boolean
@@ -4891,13 +5136,16 @@ export interface components {
created_at?: string
updated_at?: string
}
+ V1RunQueryBody: {
+ query: string
+ }
V1Backup: {
/** @enum {string} */
status: 'COMPLETED' | 'FAILED' | 'PENDING' | 'REMOVED' | 'ARCHIVED'
is_physical_backup: boolean
inserted_at: string
}
- PhysicalBackup: {
+ V1PhysicalBackup: {
earliest_physical_backup_date_unix?: number
latest_physical_backup_date_unix?: number
}
@@ -4906,11 +5154,17 @@ export interface components {
walg_enabled: boolean
pitr_enabled: boolean
backups: components['schemas']['V1Backup'][]
- physical_backup_data: components['schemas']['PhysicalBackup']
+ physical_backup_data: components['schemas']['V1PhysicalBackup']
}
V1RestorePitrBody: {
recovery_time_target_unix: number
}
+ V1CreateFunctionBody: {
+ slug: string
+ name: string
+ body: string
+ verify_jwt?: boolean
+ }
FunctionSlugResponse: {
id: string
slug: string
@@ -4925,6 +5179,11 @@ export interface components {
entrypoint_path?: string
import_map_path?: string
}
+ V1UpdateFunctionBody: {
+ name?: string
+ body?: string
+ verify_jwt?: boolean
+ }
V1StorageBucketResponse: {
id: string
name: string
@@ -5015,6 +5274,23 @@ export interface components {
updated_by: components['schemas']['SnippetUser']
content: components['schemas']['SnippetContent']
}
+ ServiceHealthResponse: {
+ /**
+ * @description Service name
+ * @enum {string}
+ */
+ name: 'auth' | 'db' | 'pooler' | 'realtime' | 'rest' | 'storage'
+ /** @description Whether the service is healthy */
+ healthy: boolean
+ /**
+ * @description Service health status
+ * @example COMING_UP
+ * @enum {string}
+ */
+ status: 'COMING_UP' | 'ACTIVE_HEALTHY' | 'UNHEALTHY'
+ /** @description Service health check error */
+ error?: string
+ }
ResourceWithServicesStatusResponse: {
/** @description Supabase project instance compute size */
compute: string
@@ -5370,7 +5646,7 @@ export interface operations {
responses: {
200: {
content: {
- 'application/json': components['schemas']['GetGoTrueConfigResponse']
+ 'application/json': components['schemas']['GoTrueConfigResponse']
}
}
/** @description Failed to retrieve GoTrue config */
@@ -5395,7 +5671,7 @@ export interface operations {
responses: {
200: {
content: {
- 'application/json': components['schemas']['GoTrueConfig']
+ 'application/json': components['schemas']['GoTrueConfigResponse']
}
}
/** @description Failed to update GoTrue config */
@@ -7127,8 +7403,8 @@ export interface operations {
}
requestBody: {
content: {
- 'application/json': components['schemas']['CreateFunctionBody']
- 'application/vnd.denoland.eszip': components['schemas']['CreateFunctionBody']
+ 'application/json': components['schemas']['V1CreateFunctionBody']
+ 'application/vnd.denoland.eszip': components['schemas']['V1CreateFunctionBody']
}
}
responses: {
@@ -8524,7 +8800,7 @@ export interface operations {
responses: {
200: {
content: {
- 'application/json': components['schemas']['ProjectResponse'][]
+ 'application/json': components['schemas']['V1ProjectResponse'][]
}
}
}
@@ -8533,18 +8809,13 @@ export interface operations {
ProjectsController_createProject: {
requestBody: {
content: {
- 'application/json': components['schemas']['CreateProjectBody']
+ 'application/json': components['schemas']['V1CreateProjectBody']
}
}
responses: {
- 200: {
- content: {
- 'application/json': components['schemas']['ProjectResponse']
- }
- }
201: {
content: {
- 'application/json': components['schemas']['ProjectResponse']
+ 'application/json': components['schemas']['V1ProjectResponse']
}
}
}
@@ -8976,7 +9247,7 @@ export interface operations {
responses: {
200: {
content: {
- 'application/json': components['schemas']['ProjectRefResponse']
+ 'application/json': components['schemas']['V1ProjectRefResponse']
}
}
403: {
@@ -9416,7 +9687,7 @@ export interface operations {
responses: {
200: {
content: {
- 'application/json': components['schemas']['PostgrestConfigResponse']
+ 'application/json': components['schemas']['V1PostgrestConfigResponse']
}
}
403: {
@@ -12256,7 +12527,7 @@ export interface operations {
responses: {
200: {
content: {
- 'application/json': components['schemas']['ServiceHealthResponse'][]
+ 'application/json': components['schemas']['V1ServiceHealthResponse'][]
}
}
/** @description Failed to retrieve project's service health status */
@@ -12519,7 +12790,7 @@ export interface operations {
}
requestBody: {
content: {
- 'application/json': components['schemas']['RunQueryBody']
+ 'application/json': components['schemas']['V1RunQueryBody']
}
}
responses: {
@@ -12674,8 +12945,8 @@ export interface operations {
}
requestBody: {
content: {
- 'application/json': components['schemas']['UpdateFunctionBody']
- 'application/vnd.denoland.eszip': components['schemas']['UpdateFunctionBody']
+ 'application/json': components['schemas']['V1UpdateFunctionBody']
+ 'application/vnd.denoland.eszip': components['schemas']['V1UpdateFunctionBody']
}
}
responses: {
diff --git a/apps/studio/data/auth/auth-config-query.ts b/apps/studio/data/auth/auth-config-query.ts
index 7a933c9ab40..1454802abcb 100644
--- a/apps/studio/data/auth/auth-config-query.ts
+++ b/apps/studio/data/auth/auth-config-query.ts
@@ -9,7 +9,7 @@ export type AuthConfigVariables = {
projectRef?: string
}
-export type AuthConfigResponse = components['schemas']['GetGoTrueConfigResponse']
+export type AuthConfigResponse = components['schemas']['GoTrueConfigResponse']
export async function getProjectAuthConfig(
{ projectRef }: AuthConfigVariables,
diff --git a/apps/studio/data/auth/auth-config-update-mutation.ts b/apps/studio/data/auth/auth-config-update-mutation.ts
index 370a507fbb3..c64a0d903a2 100644
--- a/apps/studio/data/auth/auth-config-update-mutation.ts
+++ b/apps/studio/data/auth/auth-config-update-mutation.ts
@@ -11,8 +11,6 @@ export type AuthConfigUpdateVariables = {
config: Partial<components['schemas']['UpdateGoTrueConfigBody']>
}
-export type UpdateAuthConfigResponse = components['schemas']['GoTrueConfig']
-
export async function updateAuthConfig({ projectRef, config }: AuthConfigUpdateVariables) {
const { data, error } = await patch('/platform/auth/{ref}/config', {
params: {
diff --git a/apps/studio/data/config/project-settings-query.ts b/apps/studio/data/config/project-settings-query.ts
index 34eb332caf5..91de0d3df78 100644
--- a/apps/studio/data/config/project-settings-query.ts
+++ b/apps/studio/data/config/project-settings-query.ts
@@ -1,28 +1,17 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
+import { components } from 'data/api'
import { get } from 'data/fetchers'
-import { API_URL, DEFAULT_PROJECT_API_SERVICE_ID } from 'lib/constants'
-import { configKeys } from './keys'
+import { DEFAULT_PROJECT_API_SERVICE_ID } from 'lib/constants'
import { ResponseError } from 'types'
-import { components } from 'data/api'
+import { configKeys } from './keys'
export type ProjectSettingsVariables = {
projectRef?: string
}
// [Joshen] API typing needs to be fixed - this is completely wrong
-type ProjectSettingsInfo = components['schemas']['SettingsResponse']['project']
+type ProjectSettingsInfo = components['schemas']['ProjectResponse'] & { db_port: number }
interface ProjectSettingsInfoExtended extends ProjectSettingsInfo {
- cloud_provider: string
- inserted_at: string
- db_dns_name: string
- db_host: string
- db_name: string
- db_port: number
- db_ssl: boolean
- db_user: string
- jwt_secret: string
- ref: string
- status: string
// [Joshen] Based on the enums here
// https://github.com/supabase/infrastructure/blob/95dc09fe077dba7817bb112fa72b6814a620ecd3/shared/src/projects.ts#L177
db_ip_addr_config: 'legacy' | 'static-ipv4' | 'concurrent-ipv6' | 'ipv6'
diff --git a/apps/studio/data/database-functions/database-functions-update-mutation.ts b/apps/studio/data/database-functions/database-functions-update-mutation.ts
index b4ee2460b73..ccda983833e 100644
--- a/apps/studio/data/database-functions/database-functions-update-mutation.ts
+++ b/apps/studio/data/database-functions/database-functions-update-mutation.ts
@@ -1,26 +1,16 @@
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import { toast } from 'react-hot-toast'
+import { components } from 'data/api'
import { patch } from 'data/fetchers'
import { ResponseError } from 'types'
import { databaseFunctionsKeys } from './keys'
-import { Dictionary } from 'types'
export type DatabaseFunctionUpdateVariables = {
projectRef: string
connectionString?: string
id: number
- payload: {
- name: string
- schema: string
- args: string[]
- behavior: string // 'VOLATILE' | 'STABLE' | 'IMMUTABLE'
- definition: string
- language: string
- return_type: string
- security_definer: boolean
- config_params?: Dictionary<string>
- }
+ payload: components['schemas']['UpdateFunctionBody']
}
export async function updateDatabaseFunction({
diff --git a/apps/studio/data/integrations/integrations.types.ts b/apps/studio/data/integrations/integrations.types.ts
index d6f75557236..f28a458e85b 100644
--- a/apps/studio/data/integrations/integrations.types.ts
+++ b/apps/studio/data/integrations/integrations.types.ts
@@ -245,6 +245,7 @@ export type IntegrationConnectionsCreateVariables = {
connection: {
foreign_project_id: string
supabase_project_ref: string
+ integration_id: string
metadata: any
}
orgSlug: string | undefined
diff --git a/apps/studio/pages/integrations/vercel/[slug]/deploy-button/new-project.tsx b/apps/studio/pages/integrations/vercel/[slug]/deploy-button/new-project.tsx
index 4f9d8e1b45f..0cabcedb04f 100644
--- a/apps/studio/pages/integrations/vercel/[slug]/deploy-button/new-project.tsx
+++ b/apps/studio/pages/integrations/vercel/[slug]/deploy-button/new-project.tsx
@@ -57,6 +57,7 @@ const CreateProject = () => {
const selectedOrganization = useSelectedOrganization()
const [projectName, setProjectName] = useState('')
const [dbPass, setDbPass] = useState('')
+ const [instanceSize, setInstanceSize] = useState('micro')
const [passwordStrengthMessage, setPasswordStrengthMessage] = useState('')
const [passwordStrengthScore, setPasswordStrengthScore] = useState(-1)
const [shouldRunMigrations, setShouldRunMigrations] = useState(true)
@@ -217,6 +218,7 @@ const CreateProject = () => {
connection: {
foreign_project_id: foreignProjectId,
supabase_project_ref: newProjectRef,
+ integration_id: '0',
metadata: {
...projectDetails,
supabaseConfig: {