mirror of
https://github.com/supabase/supabase.git
synced 2026-10-13 05:09:12 +03:00
Types
This commit is contained in:
1 parent
37edbcded2
commit
ea14811ebf
2 files changed
+2081
-354
No files matched your search
Vendored
-201
@@ -256,28 +256,6 @@ export interface paths {
|
||||
patch?: never
|
||||
trace?: never
|
||||
}
|
||||
'/v1/organizations/{slug}/projects': {
|
||||
parameters: {
|
||||
query?: never
|
||||
header?: never
|
||||
path?: never
|
||||
cookie?: never
|
||||
}
|
||||
/**
|
||||
* Gets all projects for the given organization
|
||||
* @description Returns a paginated list of projects for the specified organization.
|
||||
*
|
||||
* This endpoint uses offset-based pagination. Use the `offset` parameter to skip a number of projects and the `limit` parameter to control the number of projects returned per page.
|
||||
*/
|
||||
get: operations['v1-get-all-projects-for-organization']
|
||||
put?: never
|
||||
post?: never
|
||||
delete?: never
|
||||
options?: never
|
||||
head?: never
|
||||
patch?: never
|
||||
trace?: never
|
||||
}
|
||||
'/v1/projects': {
|
||||
parameters: {
|
||||
query?: never
|
||||
@@ -2995,89 +2973,6 @@ export interface components {
|
||||
ref: string
|
||||
}
|
||||
}
|
||||
OrganizationProjectsResponse: {
|
||||
pagination: {
|
||||
/** @description Total number of projects. Use this to calculate the total number of pages. */
|
||||
count: number
|
||||
/** @description Maximum number of projects per page */
|
||||
limit: number
|
||||
/** @description Number of projects skipped in this response */
|
||||
offset: number
|
||||
}
|
||||
projects: {
|
||||
cloud_provider: string
|
||||
databases: {
|
||||
cloud_provider: string
|
||||
disk_last_modified_at?: string
|
||||
disk_throughput_mbps?: number
|
||||
/** @enum {string} */
|
||||
disk_type?: 'gp3' | 'io2'
|
||||
disk_volume_size_gb?: number
|
||||
identifier: string
|
||||
/** @enum {string} */
|
||||
infra_compute_size?:
|
||||
| 'pico'
|
||||
| 'nano'
|
||||
| 'micro'
|
||||
| 'small'
|
||||
| 'medium'
|
||||
| 'large'
|
||||
| 'xlarge'
|
||||
| '2xlarge'
|
||||
| '4xlarge'
|
||||
| '8xlarge'
|
||||
| '12xlarge'
|
||||
| '16xlarge'
|
||||
| '24xlarge'
|
||||
| '24xlarge_optimized_memory'
|
||||
| '24xlarge_optimized_cpu'
|
||||
| '24xlarge_high_memory'
|
||||
| '48xlarge'
|
||||
| '48xlarge_optimized_memory'
|
||||
| '48xlarge_optimized_cpu'
|
||||
| '48xlarge_high_memory'
|
||||
region: string
|
||||
/** @enum {string} */
|
||||
status:
|
||||
| 'ACTIVE_HEALTHY'
|
||||
| 'ACTIVE_UNHEALTHY'
|
||||
| 'COMING_UP'
|
||||
| 'GOING_DOWN'
|
||||
| 'INIT_FAILED'
|
||||
| 'REMOVED'
|
||||
| 'RESTORING'
|
||||
| 'UNKNOWN'
|
||||
| 'INIT_READ_REPLICA'
|
||||
| 'INIT_READ_REPLICA_FAILED'
|
||||
| 'RESTARTING'
|
||||
| 'RESIZING'
|
||||
/** @enum {string} */
|
||||
type: 'PRIMARY' | 'READ_REPLICA'
|
||||
}[]
|
||||
inserted_at: string
|
||||
is_branch: boolean
|
||||
name: string
|
||||
ref: string
|
||||
region: string
|
||||
/** @enum {string} */
|
||||
status:
|
||||
| 'INACTIVE'
|
||||
| 'ACTIVE_HEALTHY'
|
||||
| 'ACTIVE_UNHEALTHY'
|
||||
| 'COMING_UP'
|
||||
| 'UNKNOWN'
|
||||
| 'GOING_DOWN'
|
||||
| 'INIT_FAILED'
|
||||
| 'REMOVED'
|
||||
| 'RESTORING'
|
||||
| 'UPGRADING'
|
||||
| 'PAUSING'
|
||||
| 'RESTORE_FAILED'
|
||||
| 'RESTARTING'
|
||||
| 'PAUSE_FAILED'
|
||||
| 'RESIZING'
|
||||
}[]
|
||||
}
|
||||
OrganizationResponseV1: {
|
||||
id: string
|
||||
name: string
|
||||
@@ -3087,7 +2982,6 @@ export interface components {
|
||||
}
|
||||
PostgresConfigResponse: {
|
||||
effective_cache_size?: string
|
||||
hot_standby_feedback?: boolean
|
||||
logical_decoding_work_mem?: string
|
||||
maintenance_work_mem?: string
|
||||
max_connections?: number
|
||||
@@ -3726,7 +3620,6 @@ export interface components {
|
||||
}
|
||||
UpdatePostgresConfigBody: {
|
||||
effective_cache_size?: string
|
||||
hot_standby_feedback?: boolean
|
||||
logical_decoding_work_mem?: string
|
||||
maintenance_work_mem?: string
|
||||
max_connections?: number
|
||||
@@ -4063,54 +3956,6 @@ export interface components {
|
||||
name?: string
|
||||
version: string
|
||||
}[]
|
||||
V1ListProjectsPaginatedResponse: {
|
||||
pagination: {
|
||||
/** @description Total number of projects. Use this to calculate the total number of pages. */
|
||||
count: number
|
||||
/** @description Maximum number of projects per page (actual number may be less) */
|
||||
limit: number
|
||||
/** @description Number of projects skipped in this response */
|
||||
offset: number
|
||||
}
|
||||
projects: {
|
||||
cloud_provider: string
|
||||
disk_volume_size_gb?: number
|
||||
id: number
|
||||
/** @enum {string} */
|
||||
infra_compute_size?:
|
||||
| 'pico'
|
||||
| 'nano'
|
||||
| 'micro'
|
||||
| 'small'
|
||||
| 'medium'
|
||||
| 'large'
|
||||
| 'xlarge'
|
||||
| '2xlarge'
|
||||
| '4xlarge'
|
||||
| '8xlarge'
|
||||
| '12xlarge'
|
||||
| '16xlarge'
|
||||
| '24xlarge'
|
||||
| '24xlarge_optimized_memory'
|
||||
| '24xlarge_optimized_cpu'
|
||||
| '24xlarge_high_memory'
|
||||
| '48xlarge'
|
||||
| '48xlarge_optimized_memory'
|
||||
| '48xlarge_optimized_cpu'
|
||||
| '48xlarge_high_memory'
|
||||
inserted_at: string | null
|
||||
is_branch_enabled: boolean
|
||||
is_physical_backups_enabled: boolean | null
|
||||
name: string
|
||||
organization_id: number
|
||||
organization_slug: string
|
||||
preview_branch_refs: string[]
|
||||
ref: string
|
||||
region: string
|
||||
status: string
|
||||
subscription_id: string | null
|
||||
}[]
|
||||
}
|
||||
V1OrganizationMemberResponse: {
|
||||
email?: string
|
||||
mfa_enabled: boolean
|
||||
@@ -4301,7 +4146,6 @@ export interface components {
|
||||
status: 'AVAILABLE' | 'PENDING' | 'REMOVED'
|
||||
}
|
||||
V1RunQueryBody: {
|
||||
parameters?: unknown[]
|
||||
query: string
|
||||
read_only?: boolean
|
||||
}
|
||||
@@ -4320,9 +4164,6 @@ export interface components {
|
||||
db_connected: boolean
|
||||
healthy: boolean
|
||||
}
|
||||
| {
|
||||
db_schema: string
|
||||
}
|
||||
/** @enum {string} */
|
||||
name:
|
||||
| 'auth'
|
||||
@@ -4929,48 +4770,6 @@ export interface operations {
|
||||
}
|
||||
}
|
||||
}
|
||||
'v1-get-all-projects-for-organization': {
|
||||
parameters: {
|
||||
query?: {
|
||||
/** @description Number of projects to return per page */
|
||||
limit?: number
|
||||
/** @description Number of projects to skip */
|
||||
offset?: number
|
||||
/** @description Search projects by name */
|
||||
search?: string
|
||||
/** @description Sort order for projects */
|
||||
sort?: 'name_asc' | 'name_desc' | 'created_asc' | 'created_desc'
|
||||
/** @description A comma-separated list of project statuses to filter by.
|
||||
*
|
||||
* The following values are supported: `ACTIVE_HEALTHY`, `INACTIVE`. */
|
||||
statuses?: string
|
||||
}
|
||||
header?: never
|
||||
path: {
|
||||
/** @description Organization slug */
|
||||
slug: string
|
||||
}
|
||||
cookie?: never
|
||||
}
|
||||
requestBody?: never
|
||||
responses: {
|
||||
200: {
|
||||
headers: {
|
||||
[name: string]: unknown
|
||||
}
|
||||
content: {
|
||||
'application/json': components['schemas']['OrganizationProjectsResponse']
|
||||
}
|
||||
}
|
||||
/** @description Failed to retrieve projects */
|
||||
500: {
|
||||
headers: {
|
||||
[name: string]: unknown
|
||||
}
|
||||
content?: never
|
||||
}
|
||||
}
|
||||
}
|
||||
'v1-list-all-projects': {
|
||||
parameters: {
|
||||
query?: never
|
||||
|
||||
+2081
-153
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user