mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added comprehensive type support for API v1, API v2, and platform endpoints. * Improved access to API v2 webhook and schema definitions. * Enabled separate type outputs for API v1 and API v2, making version-specific integrations easier to manage. * **Improvements** * Updated shared API types to combine definitions across supported API versions and platform services. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
39 lines
1.4 KiB
TypeScript
39 lines
1.4 KiB
TypeScript
import type {
|
|
components as apiV1Components,
|
|
operations as apiV1Operations,
|
|
paths as apiV1Paths,
|
|
} from './types/api-v1'
|
|
import type {
|
|
components as apiV2Components,
|
|
operations as apiV2Operations,
|
|
paths as apiV2Paths,
|
|
} from './types/api-v2'
|
|
import type {
|
|
components as platformComponents,
|
|
operations as platformOperations,
|
|
paths as platformPaths,
|
|
} from './types/platform'
|
|
|
|
export type { webhooks, $defs } from './types/api-v2'
|
|
|
|
export interface paths extends apiV2Paths, apiV1Paths, platformPaths {}
|
|
export interface operations extends apiV2Operations, apiV1Operations, platformOperations {}
|
|
export interface components {
|
|
schemas: apiV2Components['schemas'] & apiV1Components['schemas'] & platformComponents['schemas']
|
|
responses: apiV2Components['responses'] &
|
|
apiV1Components['responses'] &
|
|
platformComponents['responses']
|
|
parameters: apiV2Components['parameters'] &
|
|
apiV1Components['parameters'] &
|
|
platformComponents['parameters']
|
|
requestBodies: apiV2Components['requestBodies'] &
|
|
apiV1Components['requestBodies'] &
|
|
platformComponents['requestBodies']
|
|
headers: apiV2Components['headers'] & apiV1Components['headers'] & platformComponents['headers']
|
|
pathItems: apiV2Components['pathItems'] &
|
|
apiV1Components['pathItems'] &
|
|
platformComponents['pathItems']
|
|
}
|
|
|
|
export type { platformComponents, apiV1Components, apiV2Components }
|