Files

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
}