mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 07:29:16 +00:00
## Context Deploys the trusted partner changes from the following PRs: - https://github.com/supabase/supabase/pull/54006 - https://github.com/supabase/supabase/pull/53583 - https://github.com/supabase/supabase/pull/53705 - https://github.com/supabase/supabase/pull/53917 - https://github.com/supabase/supabase/pull/54507 - https://github.com/supabase/supabase/pull/54506 --------- Co-authored-by: Danny White <3104761+dnywh@users.noreply.github.com>
33 lines
1018 B
TypeScript
33 lines
1018 B
TypeScript
import type { OAuthDatabaseAccessReadiness } from './oauth-apps/oauth-apps-database-access-readiness-query'
|
|
import type { OAuthCompatiblePaths } from './oauth/api-types'
|
|
|
|
// Import resource schemas directly from 'api-types'.
|
|
export type * from 'api-types'
|
|
|
|
// CTRL-2277: Remove this path when the readiness endpoint is in the generated types.
|
|
type ReadinessPath =
|
|
'/platform/organizations/{slug}/oauth/authorizations/{id}/projects/{ref}/database-access'
|
|
|
|
type ReadinessOperation = {
|
|
get: {
|
|
parameters: { path: { slug: string; id: string; ref: string } }
|
|
responses: {
|
|
200: { content: { 'application/json': OAuthDatabaseAccessReadiness } }
|
|
default: { content: { 'application/json': unknown } }
|
|
}
|
|
}
|
|
put?: never
|
|
post?: never
|
|
delete?: never
|
|
options?: never
|
|
head?: never
|
|
patch?: never
|
|
trace?: never
|
|
}
|
|
|
|
export type paths = {
|
|
[Path in keyof OAuthCompatiblePaths | ReadinessPath]: Path extends keyof OAuthCompatiblePaths
|
|
? OAuthCompatiblePaths[Path]
|
|
: ReadinessOperation
|
|
}
|