The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
feat: turn docs feedback comments on again (#22474)
Charis66fc6fa30a41
diff --git a/apps/docs/components/Feedback/Feedback.tsx b/apps/docs/components/Feedback/Feedback.tsxindex 364731a611b..0359b20e360 100644--- a/apps/docs/components/Feedback/Feedback.tsx+++ b/apps/docs/components/Feedback/Feedback.tsx@@ -10,7 +10,7 @@ import {useState,} from 'react'-import { useIsLoggedIn } from 'common'+import { type Database, useIsLoggedIn } from 'common'import { Button, cn } from 'ui'import { useSendFeedbackMutation } from '~/lib/fetch/feedback'@@ -76,7 +76,7 @@ function Feedback() {const pathname = usePathname()const sendTelemetryEvent = useSendTelemetryEvent()const { mutate: sendFeedbackComment } = useSendFeedbackMutation()- const supabase = useSupabaseClient()+ const supabase = useSupabaseClient<Database>()const unanswered = state.type === 'unanswered'const isYes = 'response' in state && state.response === 'yes'@@ -117,8 +117,14 @@ function Feedback() {}, 100)}- async function handleSubmit({ page, comment }: FeedbackFields) {- sendFeedbackComment({ message: comment, pathname: page })+ async function handleSubmit({ page, comment, title }: FeedbackFields) {+ sendFeedbackComment({+ message: comment,+ pathname: page,+ title,+ // @ts-expect-error -- can't click this button without having a state.response+ isHelpful: state.response === 'yes',+ })setModalOpen(false)refocusButton()}@@ -184,14 +190,12 @@ function Feedback() {)}><span className="text-foreground-light">Thanks for your feedback!</span>- {/**<FeedbackButtonref={feedbackButtonRef}onClick={() => setModalOpen(true)}isYes={isYes}visible={!unanswered}/>- */}</div></div><FeedbackModaldiff --git a/apps/docs/components/Feedback/FeedbackModal.tsx b/apps/docs/components/Feedback/FeedbackModal.tsxindex 6013eb972d1..d8e010271c9 100644--- a/apps/docs/components/Feedback/FeedbackModal.tsx+++ b/apps/docs/components/Feedback/FeedbackModal.tsx@@ -2,6 +2,7 @@ import { Button, Form, Input, Modal } from 'ui'export type FeedbackFields = {page: string+ title: stringcomment: string}@@ -21,6 +22,10 @@ function FeedbackModal({ visible, page, onCancel, onSubmit }: FeedbackModalPropsvalidate={(vals) => {const errors: Partial<FeedbackFields> = {}+ if (!vals.title) {+ errors.title = 'Required'+ }+if (!vals.comment) {errors.comment = 'Required'}@@ -32,8 +37,9 @@ function FeedbackModal({ visible, page, onCancel, onSubmit }: FeedbackModalProps>{({ isSubmitting }: { isSubmitting: boolean }) => (<>- <Modal.Content className="pt-4 pb-2">+ <Modal.Content className="pt-4 pb-2 flex flex-col gap-2"><Input type="hidden" id="page" name="page" value={page} />+ <Input type="text" id="title" name="title" label="Title" className="mb-2" /><Input.TextArealabel="Comment"id="comment"diff --git a/apps/docs/lib/fetch/feedback.ts b/apps/docs/lib/fetch/feedback.tsindex 2d622925619..6bbb4bbd0d0 100644--- a/apps/docs/lib/fetch/feedback.ts+++ b/apps/docs/lib/fetch/feedback.ts@@ -4,17 +4,19 @@ import { type ResponseError } from '~/types/fetch'import { post } from './fetchWrappers'type SendFeedbackVariables = {+ title: stringmessage: string+ isHelpful: booleanpathname?: string}-export async function sendFeedback({ message, pathname }: SendFeedbackVariables) {- const { data, error } = await post('/platform/feedback/send', {+export async function sendFeedback({ message, pathname, title, isHelpful }: SendFeedbackVariables) {+ const { data, error } = await post('/platform/feedback/docs', {body: {- message,- category: 'Feedback',- tags: ['docs-feedback'],- pathname,+ page: pathname,+ isHelpful,+ title,+ feedback: message,},})if (error) throw Error(`Couldn't send feedback`, { cause: error })diff --git a/apps/docs/types/api.d.ts b/apps/docs/types/api.d.tsindex 2cc2f1a9c47..c630c9ee527 100644--- a/apps/docs/types/api.d.ts+++ b/apps/docs/types/api.d.ts@@ -41,6 +41,14 @@ export interface paths {/** Send exit survey to HubSpot */post: operations['SendExitSurveyController_sendExitSurvey']}+ '/platform/feedback/upgrade': {+ /** Send upgrade survey to survey_responses table */+ post: operations['SendUpgradeSurveyController_sendUpgradeSurvey']+ }+ '/platform/feedback/docs': {+ /** Send feedback on docs */+ post: operations['SendDocsFeedbackController_sendDocsFeedback']+ }'/platform/signup': {/** Sign up with email and password */post: operations['SignUpController_signUp']@@ -100,6 +108,10 @@ export interface paths {/** Gets project backups */get: operations['BackupsController_getBackups']}+ '/platform/database/{ref}/backups/enable-physical-backups': {+ /** Enable usage of physical backups */+ post: operations['BackupsController_enablePhysicalBackup']+ }'/platform/database/{ref}/backups/download': {/** Download project backup */post: operations['BackupsController_downloadBackup']@@ -822,14 +834,6 @@ export interface paths {/** Get GitHub connection branch */get: operations['GitHubBranchesController_getConnectionBranch']}- '/platform/integrations/github/pull-requests/{connectionId}': {- /** List GitHub connection pull requests */- get: operations['GitHubPullRequestsController_getConnectionPullRequests']- }- '/platform/integrations/github/pull-requests/{connectionId}/{branchName}': {- /** List GitHub pull requests for a specific branch */- get: operations['GitHubPullRequestsController_validateConnectionBranch']- }'/platform/integrations/github/repositories': {/** Gets GitHub repositories for user */get: operations['GitHubRepositoriesController_listRepositories']@@ -1020,6 +1024,10 @@ export interface paths {/** Gets project backups */get: operations['BackupsController_getBackups']}+ '/v0/database/{ref}/backups/enable-physical-backups': {+ /** Enable usage of physical backups */+ post: operations['BackupsController_enablePhysicalBackup']+ }'/v0/database/{ref}/backups/download': {/** Download project backup */post: operations['BackupsController_downloadBackup']@@ -1468,6 +1476,13 @@ export interface paths {*/patch: operations['BranchController_updateBranch']}+ '/v1/branches/{branch_id}/reset': {+ /**+ * Resets a database branch+ * @description Resets the specified database branch+ */+ post: operations['BranchController_resetBranch']+ }'/v1/projects': {/*** List all projects@@ -1640,6 +1655,18 @@ export interface paths {/** Updates a project's auth config */patch: operations['V1AuthConfigController_updateV1AuthConfig']}+ '/v1/projects/{ref}/config/auth/third-party-auth': {+ /** Lists all third-party auth integrations */+ get: operations['ThirdPartyAuthController_listTPAForProject']+ /** Creates a new third-party auth integration */+ post: operations['ThirdPartyAuthController_createTPAForProject']+ }+ '/v1/projects/{ref}/config/auth/third-party-auth/{tpa_id}': {+ /** Get a third-party integration */+ get: operations['ThirdPartyAuthController_getTPAForProject']+ /** Removes a third-party auth integration */+ delete: operations['ThirdPartyAuthController_deleteTPAForProject']+ }'/v1/projects/{ref}/config/auth/sso/providers': {/** Lists all SSO providers */get: operations['ProvidersController_listAllProviders']@@ -1860,6 +1887,19 @@ export interface components {additionalFeedback?: stringexitAction?: string}+ SendUpgradeSurveyBody: {+ orgSlug?: string+ prevPlan?: string+ currentPlan?: string+ reasons: string[]+ additionalFeedback?: string+ }+ SendDocsFeedbackBody: {+ page: string+ isHelpful: boolean+ title: string+ feedback: string+ }SignUpBody: {email: stringpassword: string@@ -1899,11 +1939,13 @@ export interface components {MAILER_SUBJECTS_RECOVERY: stringMAILER_SUBJECTS_EMAIL_CHANGE: stringMAILER_SUBJECTS_MAGIC_LINK: string+ MAILER_SUBJECTS_REAUTHENTICATION: stringMAILER_TEMPLATES_INVITE_CONTENT: stringMAILER_TEMPLATES_CONFIRMATION_CONTENT: stringMAILER_TEMPLATES_RECOVERY_CONTENT: stringMAILER_TEMPLATES_EMAIL_CHANGE_CONTENT: stringMAILER_TEMPLATES_MAGIC_LINK_CONTENT: string+ MAILER_TEMPLATES_REAUTHENTICATION_CONTENT: stringMFA_MAX_ENROLLED_FACTORS: numberURI_ALLOW_LIST: stringEXTERNAL_ANONYMOUS_USERS_ENABLED: boolean@@ -1959,6 +2001,8 @@ export interface components {HOOK_PASSWORD_VERIFICATION_ATTEMPT_URI: stringHOOK_CUSTOM_ACCESS_TOKEN_ENABLED: booleanHOOK_CUSTOM_ACCESS_TOKEN_URI: string+ HOOK_SEND_SMS_ENABLED: boolean+ HOOK_SEND_SMS_URI: stringEXTERNAL_APPLE_ENABLED: booleanEXTERNAL_APPLE_CLIENT_ID: stringEXTERNAL_APPLE_SECRET: string@@ -2042,7 +2086,9 @@ export interface components {MAILER_SUBJECTS_RECOVERY?: stringMAILER_SUBJECTS_EMAIL_CHANGE?: stringMAILER_SUBJECTS_MAGIC_LINK?: string+ MAILER_SUBJECTS_REAUTHENTICATION?: stringMAILER_TEMPLATES_INVITE_CONTENT?: string+ MAILER_TEMPLATES_REAUTHENTICATION_CONTENT?: stringMAILER_TEMPLATES_CONFIRMATION_CONTENT?: stringMAILER_TEMPLATES_RECOVERY_CONTENT?: stringMAILER_TEMPLATES_EMAIL_CHANGE_CONTENT?: string@@ -2107,6 +2153,8 @@ export interface components {HOOK_PASSWORD_VERIFICATION_ATTEMPT_URI?: stringHOOK_CUSTOM_ACCESS_TOKEN_ENABLED?: booleanHOOK_CUSTOM_ACCESS_TOKEN_URI?: string+ HOOK_SEND_SMS_ENABLED?: boolean+ HOOK_SEND_SMS_URI?: stringEXTERNAL_APPLE_ENABLED?: booleanEXTERNAL_APPLE_CLIENT_ID?: stringEXTERNAL_APPLE_SECRET?: string@@ -2207,6 +2255,7 @@ export interface components {updated_at?: stringis_sso_user?: booleandeleted_at?: string+ is_anonymous?: boolean}UsersResponse: {total: number@@ -2263,14 +2312,17 @@ export interface components {migrated_at: string | null}OrganizationResponse: {+ /** @enum {string|null} */+ restriction_status: 'grace_period' | 'grace_period_over' | 'restricted' | nullid: numberslug: stringname: string- billing_email: string+ billing_email: string | nullis_owner: boolean- stripe_customer_id: string- subscription_id?: string+ stripe_customer_id: string | null+ subscription_id: string | nullopt_in_tags: string[]+ restriction_data: Record<string, never>}GetOrganizationByFlyOrganizationIdResponse: {slug: string@@ -2788,7 +2840,7 @@ export interface components {payment_method_card_details?: components['schemas']['PaymentMethodCardDetails']billing_via_partner: boolean/** @enum {string} */- billing_partner: 'fly'+ billing_partner: 'fly' | 'aws'scheduled_plan_change: components['schemas']['ScheduledPlanChange'] | nullcustomer_balance: numbernano_enabled: boolean@@ -4565,6 +4617,7 @@ export interface components {branch_name?: stringgit_branch?: stringreset_on_push?: boolean+ persistent?: boolean}BranchResponse: {id: string@@ -4575,11 +4628,18 @@ export interface components {git_branch?: stringpr_number?: numberreset_on_push: boolean+ persistent: boolean/** @enum {string} */status: 'CREATING_PROJECT' | 'RUNNING_MIGRATIONS' | 'MIGRATIONS_PASSED' | 'MIGRATIONS_FAILED'created_at: stringupdated_at: string}+ BranchDeleteResponse: {+ message: string+ }+ BranchResetResponse: {+ message: string+ }V1DatabaseResponse: {/** @description Database host */host: string@@ -4604,6 +4664,19 @@ export interface components {*/created_at: stringdatabase?: components['schemas']['V1DatabaseResponse']+ /** @enum {string} */+ status:+ | 'ACTIVE_HEALTHY'+ | 'ACTIVE_UNHEALTHY'+ | 'COMING_UP'+ | 'GOING_DOWN'+ | 'INACTIVE'+ | 'INIT_FAILED'+ | 'REMOVED'+ | 'RESTORING'+ | 'UNKNOWN'+ | 'UPGRADING'+ | 'PAUSING'}V1CreateProjectBody: {/** @description Database password */@@ -4925,11 +4998,13 @@ export interface components {mailer_subjects_invite: string | nullmailer_subjects_magic_link: string | nullmailer_subjects_recovery: string | null+ mailer_subjects_reauthentication: string | nullmailer_templates_confirmation_content: string | nullmailer_templates_email_change_content: string | nullmailer_templates_invite_content: string | nullmailer_templates_magic_link_content: string | nullmailer_templates_recovery_content: string | null+ mailer_templates_reauthentication_content: string | nullmfa_max_enrolled_factors: number | nullpassword_hibp_enabled: boolean | nullpassword_min_length: number | null@@ -5001,11 +5076,13 @@ export interface components {mailer_subjects_recovery?: stringmailer_subjects_email_change?: stringmailer_subjects_magic_link?: string+ mailer_subjects_reauthentication?: stringmailer_templates_invite_content?: stringmailer_templates_confirmation_content?: stringmailer_templates_recovery_content?: stringmailer_templates_email_change_content?: stringmailer_templates_magic_link_content?: string+ mailer_templates_reauthentication_content?: stringmfa_max_enrolled_factors?: numberuri_allow_list?: stringexternal_anonymous_users_enabled?: boolean@@ -5066,6 +5143,8 @@ export interface components {hook_password_verification_attempt_uri?: stringhook_custom_access_token_enabled?: booleanhook_custom_access_token_uri?: string+ hook_custom_sms_provider_enabled?: boolean+ hook_custom_sms_provider_uri?: stringexternal_apple_enabled?: booleanexternal_apple_client_id?: stringexternal_apple_secret?: string@@ -5131,6 +5210,22 @@ export interface components {external_zoom_client_id?: stringexternal_zoom_secret?: string}+ CreateThirdPartyAuthBody: {+ oidc_issuer_url?: string+ jwks_url?: string+ custom_jwks?: Record<string, never>+ }+ ThirdPartyAuth: {+ id: string+ type: string+ oidc_issuer_url?: string | null+ jwks_url?: string | null+ custom_jwks?: unknown+ resolved_jwks?: unknown+ inserted_at: string+ updated_at: string+ resolved_at?: string | null+ }AttributeValue: {default?: Record<string, never> | number | string | booleanname?: string@@ -5650,6 +5745,44 @@ export interface operations {}}}+ /** Send upgrade survey to survey_responses table */+ SendUpgradeSurveyController_sendUpgradeSurvey: {+ requestBody: {+ content: {+ 'application/json': components['schemas']['SendUpgradeSurveyBody']+ }+ }+ responses: {+ 201: {+ content: {+ 'application/json': components['schemas']['SendFeedbackResponse']+ }+ }+ /** @description Failed to send upgrade survey */+ 500: {+ content: never+ }+ }+ }+ /** Send feedback on docs */+ SendDocsFeedbackController_sendDocsFeedback: {+ requestBody: {+ content: {+ 'application/json': components['schemas']['SendDocsFeedbackBody']+ }+ }+ responses: {+ 201: {+ content: {+ 'application/json': components['schemas']['SendFeedbackResponse']+ }+ }+ /** @description Failed to send feedback for docs */+ 500: {+ content: never+ }+ }+ }/** Sign up with email and password */SignUpController_signUp: {requestBody: {@@ -5870,7 +6003,13 @@ export interface operations {parameters: {path: {ref: string- template: 'confirmation' | 'email-change' | 'invite' | 'magic-link' | 'recovery'+ template:+ | 'confirmation'+ | 'email-change'+ | 'invite'+ | 'magic-link'+ | 'recovery'+ | 'reauthentication'}}responses: {@@ -5986,6 +6125,24 @@ export interface operations {}}}+ /** Enable usage of physical backups */+ BackupsController_enablePhysicalBackup: {+ parameters: {+ path: {+ /** @description Project ref */+ ref: string+ }+ }+ responses: {+ 201: {+ content: never+ }+ /** @description Failed to enable usage of physical backups */+ 500: {+ content: never+ }+ }+ }/** Download project backup */BackupsController_downloadBackup: {parameters: {@@ -11079,52 +11236,6 @@ export interface operations {}}}- /** List GitHub connection pull requests */- GitHubPullRequestsController_getConnectionPullRequests: {- parameters: {- query: {- pr_number: number[]- }- path: {- connectionId: number- }- }- responses: {- 200: {- content: {- 'application/json': Record<string, never>[]- }- }- /** @description Failed to list GitHub connection pull requests */- 500: {- content: never- }- }- }- /** List GitHub pull requests for a specific branch */- GitHubPullRequestsController_validateConnectionBranch: {- parameters: {- query?: {- per_page?: number- page?: number- }- path: {- connectionId: number- branchName: string- }- }- responses: {- 200: {- content: {- 'application/json': Record<string, never>[]- }- }- /** @description Failed to validate GitHub connection branch */- 500: {- content: never- }- }- }/** Gets GitHub repositories for user */GitHubRepositoriesController_listRepositories: {responses: {@@ -11176,7 +11287,13 @@ export interface operations {parameters: {path: {ref: string- template: 'confirmation' | 'email-change' | 'invite' | 'magic-link' | 'recovery'+ template:+ | 'confirmation'+ | 'email-change'+ | 'invite'+ | 'magic-link'+ | 'recovery'+ | 'reauthentication'}}responses: {@@ -11845,7 +11962,9 @@ export interface operations {}responses: {200: {- content: never+ content: {+ 'application/json': components['schemas']['BranchDeleteResponse']+ }}/** @description Failed to delete database branch */500: {@@ -11881,6 +12000,29 @@ export interface operations {}}}+ /**+ * Resets a database branch+ * @description Resets the specified database branch+ */+ BranchController_resetBranch: {+ parameters: {+ path: {+ /** @description Branch ID */+ branch_id: string+ }+ }+ responses: {+ 201: {+ content: {+ 'application/json': components['schemas']['BranchResetResponse']+ }+ }+ /** @description Failed to reset database branch */+ 500: {+ content: never+ }+ }+ }/*** List all projects* @description Returns a list of all projects you've previously created.@@ -12833,6 +12975,89 @@ export interface operations {}}}+ /** Lists all third-party auth integrations */+ ThirdPartyAuthController_listTPAForProject: {+ parameters: {+ path: {+ /** @description Project ref */+ ref: string+ }+ }+ responses: {+ 200: {+ content: {+ 'application/json': components['schemas']['ThirdPartyAuth'][]+ }+ }+ 403: {+ content: never+ }+ }+ }+ /** Creates a new third-party auth integration */+ ThirdPartyAuthController_createTPAForProject: {+ parameters: {+ path: {+ /** @description Project ref */+ ref: string+ }+ }+ requestBody: {+ content: {+ 'application/json': components['schemas']['CreateThirdPartyAuthBody']+ }+ }+ responses: {+ 201: {+ content: {+ 'application/json': components['schemas']['ThirdPartyAuth']+ }+ }+ 403: {+ content: never+ }+ }+ }+ /** Get a third-party integration */+ ThirdPartyAuthController_getTPAForProject: {+ parameters: {+ path: {+ /** @description Project ref */+ ref: string+ tpa_id: string+ }+ }+ responses: {+ 200: {+ content: {+ 'application/json': components['schemas']['ThirdPartyAuth']+ }+ }+ 403: {+ content: never+ }+ }+ }+ /** Removes a third-party auth integration */+ ThirdPartyAuthController_deleteTPAForProject: {+ parameters: {+ path: {+ /** @description Project ref */+ ref: string+ tpa_id: string+ }+ }+ responses: {+ 200: {+ content: {+ 'application/json': components['schemas']['ThirdPartyAuth']+ }+ }+ 403: {+ content: never+ }+ }+ }/** Lists all SSO providers */ProvidersController_listAllProviders: {parameters: {diff --git a/packages/common/database-types.ts b/packages/common/database-types.tsnew file mode 100644index 00000000000..49a489ef1bd--- /dev/null+++ b/packages/common/database-types.ts@@ -0,0 +1,549 @@+export type Json =+ | string+ | number+ | boolean+ | null+ | { [key: string]: Json | undefined }+ | Json[]++export type Database = {+ graphql_public: {+ Tables: {+ [_ in never]: never+ }+ Views: {+ [_ in never]: never+ }+ Functions: {+ graphql: {+ Args: {+ operationName?: string+ query?: string+ variables?: Json+ extensions?: Json+ }+ Returns: Json+ }+ }+ Enums: {+ [_ in never]: never+ }+ CompositeTypes: {+ [_ in never]: never+ }+ }+ public: {+ Tables: {+ feedback: {+ Row: {+ date_created: string+ id: number+ metadata: Json | null+ page: string+ vote: Database["public"]["Enums"]["feedback_vote"]+ }+ Insert: {+ date_created?: string+ id?: never+ metadata?: Json | null+ page: string+ vote: Database["public"]["Enums"]["feedback_vote"]+ }+ Update: {+ date_created?: string+ id?: never+ metadata?: Json | null+ page?: string+ vote?: Database["public"]["Enums"]["feedback_vote"]+ }+ Relationships: []+ }+ page: {+ Row: {+ checksum: string | null+ content: string | null+ fts_tokens: unknown | null+ id: number+ last_refresh: string | null+ meta: Json | null+ path: string+ source: string | null+ title_tokens: unknown | null+ type: string | null+ version: string | null+ }+ Insert: {+ checksum?: string | null+ content?: string | null+ fts_tokens?: unknown | null+ id?: number+ last_refresh?: string | null+ meta?: Json | null+ path: string+ source?: string | null+ title_tokens?: unknown | null+ type?: string | null+ version?: string | null+ }+ Update: {+ checksum?: string | null+ content?: string | null+ fts_tokens?: unknown | null+ id?: number+ last_refresh?: string | null+ meta?: Json | null+ path?: string+ source?: string | null+ title_tokens?: unknown | null+ type?: string | null+ version?: string | null+ }+ Relationships: []+ }+ page_section: {+ Row: {+ content: string | null+ embedding: string | null+ heading: string | null+ id: number+ page_id: number+ rag_ignore: boolean | null+ slug: string | null+ token_count: number | null+ }+ Insert: {+ content?: string | null+ embedding?: string | null+ heading?: string | null+ id?: number+ page_id: number+ rag_ignore?: boolean | null+ slug?: string | null+ token_count?: number | null+ }+ Update: {+ content?: string | null+ embedding?: string | null+ heading?: string | null+ id?: number+ page_id?: number+ rag_ignore?: boolean | null+ slug?: string | null+ token_count?: number | null+ }+ Relationships: [+ {+ foreignKeyName: "page_section_page_id_fkey"+ columns: ["page_id"]+ isOneToOne: false+ referencedRelation: "page"+ referencedColumns: ["id"]+ },+ ]+ }+ }+ Views: {+ [_ in never]: never+ }+ Functions: {+ docs_search_embeddings: {+ Args: {+ embedding: string+ match_threshold: number+ }+ Returns: {+ id: number+ path: string+ type: string+ title: string+ subtitle: string+ description: string+ headings: string[]+ slugs: string[]+ }[]+ }+ docs_search_fts: {+ Args: {+ query: string+ }+ Returns: {+ id: number+ path: string+ type: string+ title: string+ subtitle: string+ description: string+ }[]+ }+ get_page_parents: {+ Args: {+ page_id: number+ }+ Returns: {+ id: number+ parent_page_id: number+ path: string+ meta: Json+ }[]+ }+ hnswhandler: {+ Args: {+ "": unknown+ }+ Returns: unknown+ }+ ipv6_active_status: {+ Args: {+ project_ref: string+ }+ Returns: {+ pgbouncer_active: boolean+ vercel_active: boolean+ }[]+ }+ ivfflathandler: {+ Args: {+ "": unknown+ }+ Returns: unknown+ }+ match_page_sections: {+ Args: {+ embedding: string+ match_threshold: number+ match_count: number+ min_content_length: number+ }+ Returns: {+ id: number+ page_id: number+ slug: string+ heading: string+ content: string+ similarity: number+ }[]+ }+ match_page_sections_v2: {+ Args: {+ embedding: string+ match_threshold: number+ min_content_length: number+ }+ Returns: {+ content: string | null+ embedding: string | null+ heading: string | null+ id: number+ page_id: number+ rag_ignore: boolean | null+ slug: string | null+ token_count: number | null+ }[]+ }+ vector_avg: {+ Args: {+ "": number[]+ }+ Returns: string+ }+ vector_dims: {+ Args: {+ "": string+ }+ Returns: number+ }+ vector_norm: {+ Args: {+ "": string+ }+ Returns: number+ }+ vector_out: {+ Args: {+ "": string+ }+ Returns: unknown+ }+ vector_send: {+ Args: {+ "": string+ }+ Returns: string+ }+ vector_typmod_in: {+ Args: {+ "": unknown[]+ }+ Returns: number+ }+ }+ Enums: {+ feedback_vote: "yes" | "no"+ }+ CompositeTypes: {+ [_ in never]: never+ }+ }+ storage: {+ Tables: {+ buckets: {+ Row: {+ allowed_mime_types: string[] | null+ avif_autodetection: boolean | null+ created_at: string | null+ file_size_limit: number | null+ id: string+ name: string+ owner: string | null+ owner_id: string | null+ public: boolean | null+ updated_at: string | null+ }+ Insert: {+ allowed_mime_types?: string[] | null+ avif_autodetection?: boolean | null+ created_at?: string | null+ file_size_limit?: number | null+ id: string+ name: string+ owner?: string | null+ owner_id?: string | null+ public?: boolean | null+ updated_at?: string | null+ }+ Update: {+ allowed_mime_types?: string[] | null+ avif_autodetection?: boolean | null+ created_at?: string | null+ file_size_limit?: number | null+ id?: string+ name?: string+ owner?: string | null+ owner_id?: string | null+ public?: boolean | null+ updated_at?: string | null+ }+ Relationships: []+ }+ migrations: {+ Row: {+ executed_at: string | null+ hash: string+ id: number+ name: string+ }+ Insert: {+ executed_at?: string | null+ hash: string+ id: number+ name: string+ }+ Update: {+ executed_at?: string | null+ hash?: string+ id?: number+ name?: string+ }+ Relationships: []+ }+ objects: {+ Row: {+ bucket_id: string | null+ created_at: string | null+ id: string+ last_accessed_at: string | null+ metadata: Json | null+ name: string | null+ owner: string | null+ owner_id: string | null+ path_tokens: string[] | null+ updated_at: string | null+ version: string | null+ }+ Insert: {+ bucket_id?: string | null+ created_at?: string | null+ id?: string+ last_accessed_at?: string | null+ metadata?: Json | null+ name?: string | null+ owner?: string | null+ owner_id?: string | null+ path_tokens?: string[] | null+ updated_at?: string | null+ version?: string | null+ }+ Update: {+ bucket_id?: string | null+ created_at?: string | null+ id?: string+ last_accessed_at?: string | null+ metadata?: Json | null+ name?: string | null+ owner?: string | null+ owner_id?: string | null+ path_tokens?: string[] | null+ updated_at?: string | null+ version?: string | null+ }+ Relationships: [+ {+ foreignKeyName: "objects_bucketId_fkey"+ columns: ["bucket_id"]+ isOneToOne: false+ referencedRelation: "buckets"+ referencedColumns: ["id"]+ },+ ]+ }+ }+ Views: {+ [_ in never]: never+ }+ Functions: {+ can_insert_object: {+ Args: {+ bucketid: string+ name: string+ owner: string+ metadata: Json+ }+ Returns: undefined+ }+ extension: {+ Args: {+ name: string+ }+ Returns: string+ }+ filename: {+ Args: {+ name: string+ }+ Returns: string+ }+ foldername: {+ Args: {+ name: string+ }+ Returns: string[]+ }+ get_size_by_bucket: {+ Args: Record<PropertyKey, never>+ Returns: {+ size: number+ bucket_id: string+ }[]+ }+ search: {+ Args: {+ prefix: string+ bucketname: string+ limits?: number+ levels?: number+ offsets?: number+ search?: string+ sortcolumn?: string+ sortorder?: string+ }+ Returns: {+ name: string+ id: string+ updated_at: string+ created_at: string+ last_accessed_at: string+ metadata: Json+ }[]+ }+ }+ Enums: {+ [_ in never]: never+ }+ CompositeTypes: {+ [_ in never]: never+ }+ }+}++type PublicSchema = Database[Extract<keyof Database, "public">]++export type Tables<+ PublicTableNameOrOptions extends+ | keyof (PublicSchema["Tables"] & PublicSchema["Views"])+ | { schema: keyof Database },+ TableName extends PublicTableNameOrOptions extends { schema: keyof Database }+ ? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] &+ Database[PublicTableNameOrOptions["schema"]]["Views"])+ : never = never,+> = PublicTableNameOrOptions extends { schema: keyof Database }+ ? (Database[PublicTableNameOrOptions["schema"]]["Tables"] &+ Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends {+ Row: infer R+ }+ ? R+ : never+ : PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] &+ PublicSchema["Views"])+ ? (PublicSchema["Tables"] &+ PublicSchema["Views"])[PublicTableNameOrOptions] extends {+ Row: infer R+ }+ ? R+ : never+ : never++export type TablesInsert<+ PublicTableNameOrOptions extends+ | keyof PublicSchema["Tables"]+ | { schema: keyof Database },+ TableName extends PublicTableNameOrOptions extends { schema: keyof Database }+ ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"]+ : never = never,+> = PublicTableNameOrOptions extends { schema: keyof Database }+ ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {+ Insert: infer I+ }+ ? I+ : never+ : PublicTableNameOrOptions extends keyof PublicSchema["Tables"]+ ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {+ Insert: infer I+ }+ ? I+ : never+ : never++export type TablesUpdate<+ PublicTableNameOrOptions extends+ | keyof PublicSchema["Tables"]+ | { schema: keyof Database },+ TableName extends PublicTableNameOrOptions extends { schema: keyof Database }+ ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"]+ : never = never,+> = PublicTableNameOrOptions extends { schema: keyof Database }+ ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {+ Update: infer U+ }+ ? U+ : never+ : PublicTableNameOrOptions extends keyof PublicSchema["Tables"]+ ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {+ Update: infer U+ }+ ? U+ : never+ : never++export type Enums<+ PublicEnumNameOrOptions extends+ | keyof PublicSchema["Enums"]+ | { schema: keyof Database },+ EnumName extends PublicEnumNameOrOptions extends { schema: keyof Database }+ ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"]+ : never = never,+> = PublicEnumNameOrOptions extends { schema: keyof Database }+ ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName]+ : PublicEnumNameOrOptions extends keyof PublicSchema["Enums"]+ ? PublicSchema["Enums"][PublicEnumNameOrOptions]+ : never+diff --git a/packages/common/index.tsx b/packages/common/index.tsxindex 7b3b81dd207..e86ffed6d47 100644--- a/packages/common/index.tsx+++ b/packages/common/index.tsx@@ -1,8 +1,9 @@-export * from './Providers'+export * from './auth'export * from './constants'+export * from './database-types'+export * from './gotrue'export * from './helpers'export * from './hooks'-export * from './gotrue'-export * from './auth'-export * from './telemetry'export * from './MetaFavicons/pages-router'+export * from './Providers'+export * from './telemetry'