Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Chore/patch codegen type issues from analytics buckets changes (#39973)

Joshen Lim2c7492eed088
diff --git a/apps/studio/components/interfaces/Storage/AnalyticsBuckets.tsx b/apps/studio/components/interfaces/Storage/AnalyticsBuckets.tsx
index 84abf828ce6..bd797d70cd7 100644
--- a/apps/studio/components/interfaces/Storage/AnalyticsBuckets.tsx
+++ b/apps/studio/components/interfaces/Storage/AnalyticsBuckets.tsx
@@ -27,6 +27,8 @@ import { CreateSpecializedBucketModal } from './CreateSpecializedBucketModal'
import { DeleteBucketModal } from './DeleteBucketModal'
import { EmptyBucketState } from './EmptyBucketState'
+// [Joshen] Remove typecasts bucket: any once infra changes for analytics bucket is in
+
export const AnalyticsBuckets = () => {
const router = useRouter()
const { ref } = useParams()
@@ -39,14 +41,14 @@ export const AnalyticsBuckets = () => {
projectRef: ref,
})
- const analyticsBuckets = buckets.filter((bucket) =>
+ const analyticsBuckets = buckets.filter((bucket: any) =>
filterString.length === 0 ? true : bucket.id.toLowerCase().includes(filterString.toLowerCase())
)
return (
<>
{!isLoadingBuckets &&
- buckets.filter((bucket) => !('type' in bucket) || bucket.type === 'ANALYTICS').length ===
+ buckets.filter((bucket: any) => !('type' in bucket) || bucket.type === 'ANALYTICS').length ===
0 ? (
<EmptyBucketState bucketType="analytics" />
) : (
@@ -94,7 +96,7 @@ export const AnalyticsBuckets = () => {
</TableCell>
</TableRow>
)}
- {analyticsBuckets.map((bucket) => (
+ {analyticsBuckets.map((bucket: any) => (
<TableRow key={bucket.id}>
<TableCell>
<p className="text-foreground">{bucket.id}</p>
diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/useSelectedBucket.ts b/apps/studio/components/interfaces/Storage/StorageExplorer/useSelectedBucket.ts
index d8eba0f9e57..72149e736f4 100644
--- a/apps/studio/components/interfaces/Storage/StorageExplorer/useSelectedBucket.ts
+++ b/apps/studio/components/interfaces/Storage/StorageExplorer/useSelectedBucket.ts
@@ -33,8 +33,9 @@ export const useSelectedBucket = () => {
page === 'files'
? buckets.find((b) => b.id === bucketId)
: page === 'analytics'
- ? analyticsBuckets.find((b) => b.id === bucketId)
- : // [Joshen] Temp fallback to buckets for backwards compatibility old UI
+ ? analyticsBuckets.find((b: any) => b.id === bucketId)
+ : // [Joshen] Remove typecasts bucket: any once infra changes for analytics bucket is in
+ // [Joshen] Temp fallback to buckets for backwards compatibility old UI
buckets.find((b) => b.id === bucketId)
return { bucket, isSuccess, isError, error }
diff --git a/apps/studio/data/notifications/notifications-v2-query.ts b/apps/studio/data/notifications/notifications-v2-query.ts
index b3ad7f4fdf8..a98e3b2a677 100644
--- a/apps/studio/data/notifications/notifications-v2-query.ts
+++ b/apps/studio/data/notifications/notifications-v2-query.ts
@@ -18,7 +18,7 @@ export type NotificationVariables = {
}
}
-export type Notification = components['schemas']['NotificationResponseV2']
+export type Notification = components['schemas']['NotificationResponse']
/**
* Notification Data - This is not typed from the API end as it's meant to be open-ended
diff --git a/apps/studio/data/storage/analytics-bucket-create-mutation.ts b/apps/studio/data/storage/analytics-bucket-create-mutation.ts
index 5b7479970c6..55d9a081ee3 100644
--- a/apps/studio/data/storage/analytics-bucket-create-mutation.ts
+++ b/apps/studio/data/storage/analytics-bucket-create-mutation.ts
@@ -1,3 +1,5 @@
+// @ts-nocheck
+// [Joshen] To remove after infra changes for analytics bucket is in
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import { toast } from 'sonner'
diff --git a/apps/studio/data/storage/analytics-bucket-delete-mutation.ts b/apps/studio/data/storage/analytics-bucket-delete-mutation.ts
index 4adc67fd946..d71105d2b78 100644
--- a/apps/studio/data/storage/analytics-bucket-delete-mutation.ts
+++ b/apps/studio/data/storage/analytics-bucket-delete-mutation.ts
@@ -1,3 +1,5 @@
+// @ts-nocheck
+// [Joshen] To remove after infra changes for analytics bucket is in
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import { toast } from 'sonner'
diff --git a/apps/studio/data/storage/analytics-buckets-query.ts b/apps/studio/data/storage/analytics-buckets-query.ts
index 4f3cb05f787..03fd2c7e65b 100644
--- a/apps/studio/data/storage/analytics-buckets-query.ts
+++ b/apps/studio/data/storage/analytics-buckets-query.ts
@@ -1,3 +1,5 @@
+// @ts-nocheck
+// [Joshen] To remove after infra changes for analytics bucket is in
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { components } from 'api-types'
diff --git a/packages/api-types/types/platform.d.ts b/packages/api-types/types/platform.d.ts
index 0137b18fe03..3d3762b5246 100644
--- a/packages/api-types/types/platform.d.ts
+++ b/packages/api-types/types/platform.d.ts
@@ -843,11 +843,10 @@ export interface paths {
cookie?: never
}
/** Get notifications */
- get: operations['NotificationsController_getNotificationsV2']
+ get: operations['NotificationsController_getNotifications']
put?: never
post?: never
- /** Delete notifications */
- delete: operations['NotificationsController_deleteNotifications']
+ delete?: never
options?: never
head?: never
/** Update notifications */
@@ -3867,41 +3866,6 @@ export interface paths {
patch?: never
trace?: never
}
- '/platform/storage/{ref}/analytics-buckets': {
- parameters: {
- query?: never
- header?: never
- path?: never
- cookie?: never
- }
- /** Gets list of analytics buckets */
- get: operations['StorageAnalyticsBucketsController_getBuckets']
- put?: never
- /** Create an analytics bucket */
- post: operations['StorageAnalyticsBucketsController_createBucket']
- delete?: never
- options?: never
- head?: never
- patch?: never
- trace?: never
- }
- '/platform/storage/{ref}/analytics-buckets/{id}': {
- parameters: {
- query?: never
- header?: never
- path?: never
- cookie?: never
- }
- get?: never
- put?: never
- post?: never
- /** Deletes an analytics bucket */
- delete: operations['StorageAnalyticsBucketIdController_deleteBucket']
- options?: never
- head?: never
- patch?: never
- trace?: never
- }
'/platform/storage/{ref}/archive': {
parameters: {
query?: never
@@ -4162,77 +4126,6 @@ export interface paths {
patch?: never
trace?: never
}
- '/platform/storage/{ref}/vector-buckets': {
- parameters: {
- query?: never
- header?: never
- path?: never
- cookie?: never
- }
- /** Gets list of vector buckets */
- get: operations['StorageVectorBucketsController_getBuckets']
- put?: never
- /** Create vector bucket */
- post: operations['StorageVectorBucketsController_createBucket']
- delete?: never
- options?: never
- head?: never
- patch?: never
- trace?: never
- }
- '/platform/storage/{ref}/vector-buckets/{id}': {
- parameters: {
- query?: never
- header?: never
- path?: never
- cookie?: never
- }
- /** Gets bucket */
- get: operations['StorageVectorBucketIdController_getBucket']
- put?: never
- post?: never
- /** Deletes bucket */
- delete: operations['StorageVectorBucketIdController_deleteBucket']
- options?: never
- head?: never
- patch?: never
- trace?: never
- }
- '/platform/storage/{ref}/vector-buckets/{id}/indexes': {
- parameters: {
- query?: never
- header?: never
- path?: never
- cookie?: never
- }
- /** Gets bucket indexes */
- get: operations['StorageVectorBucketIdIndexesController_getBucketIndexes']
- put?: never
- /** Create index in vector bucket */
- post: operations['StorageVectorBucketIdIndexesController_createBucketIndex']
- delete?: never
- options?: never
- head?: never
- patch?: never
- trace?: never
- }
- '/platform/storage/{ref}/vector-buckets/{id}/indexes/{indexName}': {
- parameters: {
- query?: never
- header?: never
- path?: never
- cookie?: never
- }
- get?: never
- put?: never
- post?: never
- /** Deletes bucket index */
- delete: operations['StorageVectorBucketIdIndexesController_deleteBucketIndex']
- options?: never
- head?: never
- patch?: never
- trace?: never
- }
'/platform/stripe/invoices/overdue': {
parameters: {
query?: never
@@ -4803,16 +4696,6 @@ export interface components {
| 'sentry'
| 's3'
}
- CreateBucketIndexBody: {
- /** @enum {string} */
- dataType: 'float32'
- dimension: number
- /** @enum {string} */
- distanceMetric: 'cosine' | 'euclidean'
- indexName: string
- /** @default [] */
- metadataKeys?: string[]
- }
CreateCliLoginSessionBody: {
public_key: string
/** Format: uuid */
@@ -5562,9 +5445,6 @@ export interface components {
metadata_xml_url: string
user_name_mapping?: string[]
}
- CreateStorageAnalyticsBucketBody: {
- bucketName: string
- }
CreateStorageBucketBody: {
allowed_mime_types?: string[]
file_size_limit?: number
@@ -5937,9 +5817,6 @@ export interface components {
GetCloudMarketplaceRedirectUrlResponse: {
url: string
}
- GetContentCountResponse: {
- count: number
- }
GetContentCountV2Response: {
favorites: number
private: number
@@ -6975,6 +6852,8 @@ export interface components {
type: 'boolean' | 'numeric' | 'set'
}
hasAccess: boolean
+ /** @enum {string} */
+ type: 'boolean' | 'numeric' | 'set'
}[]
}
ListGitHubConnectionsResponse: {
@@ -7137,18 +7016,7 @@ export interface components {
from: string
to: string
}
- NotificationResponseV1: {
- /** @description Any JSON-serializable value */
- data: unknown
- id: string
- inserted_at: string
- /** @description Any JSON-serializable value */
- meta: unknown
- notification_name: string
- notification_status: string
- project_id: number
- }
- NotificationResponseV2: {
+ NotificationResponse: {
/** @description Any JSON-serializable value */
data: unknown
id: string
@@ -9083,24 +8951,6 @@ export interface components {
/** Format: uri */
redirectTo?: string
}
- StorageAnalyticsBucketResponse: {
- created_at: string
- format: string
- id: string
- /** @enum {string} */
- type: 'ANALYTICS'
- updated_at: string
- }
- StorageAnalyticsBucketsResponse: {
- data: {
- created_at: string
- format: string
- id: string
- /** @enum {string} */
- type: 'ANALYTICS'
- updated_at: string
- }[]
- }
StorageBucketResponse: {
allowed_mime_types?: string[]
created_at: string
@@ -9187,31 +9037,6 @@ export interface components {
owner: string
updated_at: string
}
- StorageVectorBucketListIndexesResponse: {
- indexes: {
- creationTime?: number
- /** @enum {string} */
- dataType: 'float32'
- dimension: number
- /** @enum {string} */
- distanceMetric: 'cosine' | 'euclidean' | 'dotproduct'
- indexName: string
- metadataConfiguration?: {
- nonFilterableMetadataKeys?: string[]
- }
- vectorBucketName: string
- }[]
- nextToken?: string
- }
- StorageVectorBucketResponse: {
- vectorBucketName: string
- }
- StorageVectorBucketsResponse: {
- nextToken?: string
- vectorBuckets: {
- vectorBucketName: string
- }[]
- }
StreamableFile: Record<string, never>
SupavisorConfigResponse: {
connection_string: string
@@ -9865,7 +9690,7 @@ export interface components {
name: string
role_scoped_projects: string[]
}
- UpdateNotificationBodyV2: {
+ UpdateNotificationBody: {
/** Format: uuid */
id: string
/** @enum {string} */
@@ -9882,9 +9707,6 @@ export interface components {
lint_name?: string
note?: string
}
- UpdateNotificationsBodyV1: {
- ids: string[]
- }
UpdateOrganizationBody: {
additional_billing_emails?: string[]
/** Format: email */
@@ -12763,7 +12585,7 @@ export interface operations {
}
}
}
- NotificationsController_getNotificationsV2: {
+ NotificationsController_getNotifications: {
parameters: {
query?: {
limit?: number
@@ -12784,7 +12606,7 @@ export interface operations {
[name: string]: unknown
}
content: {
- 'application/json': components['schemas']['NotificationResponseV2'][]
+ 'application/json': components['schemas']['NotificationResponse'][]
}
}
/** @description Failed to retrieve notifications */
@@ -12796,36 +12618,6 @@ export interface operations {
}
}
}
- NotificationsController_deleteNotifications: {
- parameters: {
- query?: never
- header?: never
- path?: never
- cookie?: never
- }
- requestBody: {
- content: {
- 'application/json': components['schemas']['UpdateNotificationsBodyV1']
- }
- }
- responses: {
- 200: {
- headers: {
- [name: string]: unknown
- }
- content: {
- 'application/json': components['schemas']['NotificationResponseV1'][]
- }
- }
- /** @description Failed to delete notifications */
- 500: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- }
- }
NotificationsController_updateNotificationsV2: {
parameters: {
query?: never
@@ -12835,7 +12627,7 @@ export interface operations {
}
requestBody: {
content: {
- 'application/json': components['schemas']['UpdateNotificationBodyV2']
+ 'application/json': components['schemas']['UpdateNotificationBody']
}
}
responses: {
@@ -12844,7 +12636,7 @@ export interface operations {
[name: string]: unknown
}
content: {
- 'application/json': components['schemas']['NotificationResponseV2'][]
+ 'application/json': components['schemas']['NotificationResponse'][]
}
}
/** @description Failed to update notifications */
@@ -24018,20 +23810,9 @@ export interface operations {
}
}
}
- StorageAnalyticsBucketsController_getBuckets: {
+ StorageArchiveController_getArchive: {
parameters: {
- query?: {
- /** @description Number of buckets to return per page */
- limit?: number
- /** @description Number of buckets to skip */
- offset?: number
- /** @description Search buckets by name */
- search?: string
- /** @description Sort column for buckets */
- sortColumn?: 'id' | 'name' | 'created_at' | 'updated_at'
- /** @description Sort order for buckets */
- sortOrder?: 'asc' | 'desc'
- }
+ query?: never
header?: never
path: {
/** @description Project ref */
@@ -24046,7 +23827,7 @@ export interface operations {
[name: string]: unknown
}
content: {
- 'application/json': components['schemas']['StorageAnalyticsBucketsResponse']
+ 'application/json': components['schemas']['GetArchiveResponse']
}
}
/** @description Unauthorized */
@@ -24070,7 +23851,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to get list of analytics buckets */
+ /** @description Failed to get project storage archive */
500: {
headers: {
[name: string]: unknown
@@ -24079,7 +23860,7 @@ export interface operations {
}
}
}
- StorageAnalyticsBucketsController_createBucket: {
+ StorageArchiveController_createArchive: {
parameters: {
query?: never
header?: never
@@ -24089,19 +23870,13 @@ export interface operations {
}
cookie?: never
}
- requestBody: {
- content: {
- 'application/json': components['schemas']['CreateStorageAnalyticsBucketBody']
- }
- }
+ requestBody?: never
responses: {
201: {
headers: {
[name: string]: unknown
}
- content: {
- 'application/json': components['schemas']['StorageAnalyticsBucketResponse']
- }
+ content?: never
}
/** @description Unauthorized */
401: {
@@ -24124,7 +23899,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to create analytics bucket */
+ /** @description Failed to create project storage archive */
500: {
headers: {
[name: string]: unknown
@@ -24133,13 +23908,11 @@ export interface operations {
}
}
}
- StorageAnalyticsBucketIdController_deleteBucket: {
+ StorageBucketsController_getBuckets: {
parameters: {
query?: never
header?: never
path: {
- /** @description Storage bucket id */
- id: string
/** @description Project ref */
ref: string
}
@@ -24151,7 +23924,9 @@ export interface operations {
headers: {
[name: string]: unknown
}
- content?: never
+ content: {
+ 'application/json': components['schemas']['StorageBucketResponse'][]
+ }
}
/** @description Unauthorized */
401: {
@@ -24174,7 +23949,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to delete analytics bucket */
+ /** @description Failed to get list of buckets */
500: {
headers: {
[name: string]: unknown
@@ -24183,7 +23958,7 @@ export interface operations {
}
}
}
- StorageArchiveController_getArchive: {
+ StorageBucketsController_createBucket: {
parameters: {
query?: never
header?: never
@@ -24193,15 +23968,17 @@ export interface operations {
}
cookie?: never
}
- requestBody?: never
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['CreateStorageBucketBody']
+ }
+ }
responses: {
- 200: {
+ 201: {
headers: {
[name: string]: unknown
}
- content: {
- 'application/json': components['schemas']['GetArchiveResponse']
- }
+ content?: never
}
/** @description Unauthorized */
401: {
@@ -24224,7 +24001,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to get project storage archive */
+ /** @description Failed to create bucket */
500: {
headers: {
[name: string]: unknown
@@ -24233,11 +24010,13 @@ export interface operations {
}
}
}
- StorageArchiveController_createArchive: {
+ StorageBucketIdController_getBucket: {
parameters: {
query?: never
header?: never
path: {
+ /** @description Storage bucket id */
+ id: string
/** @description Project ref */
ref: string
}
@@ -24245,11 +24024,13 @@ export interface operations {
}
requestBody?: never
responses: {
- 201: {
+ 200: {
headers: {
[name: string]: unknown
}
- content?: never
+ content: {
+ 'application/json': components['schemas']['StorageBucketResponse']
+ }
}
/** @description Unauthorized */
401: {
@@ -24272,7 +24053,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to create project storage archive */
+ /** @description Failed to get bucket */
500: {
headers: {
[name: string]: unknown
@@ -24281,11 +24062,13 @@ export interface operations {
}
}
}
- StorageBucketsController_getBuckets: {
+ StorageBucketIdController_deleteBucket: {
parameters: {
query?: never
header?: never
path: {
+ /** @description Storage bucket id */
+ id: string
/** @description Project ref */
ref: string
}
@@ -24297,9 +24080,7 @@ export interface operations {
headers: {
[name: string]: unknown
}
- content: {
- 'application/json': components['schemas']['StorageBucketResponse'][]
- }
+ content?: never
}
/** @description Unauthorized */
401: {
@@ -24322,7 +24103,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to get list of buckets */
+ /** @description Failed to delete bucket */
500: {
headers: {
[name: string]: unknown
@@ -24331,11 +24112,13 @@ export interface operations {
}
}
}
- StorageBucketsController_createBucket: {
+ StorageBucketIdController_updateBucket: {
parameters: {
query?: never
header?: never
path: {
+ /** @description Storage bucket id */
+ id: string
/** @description Project ref */
ref: string
}
@@ -24343,11 +24126,11 @@ export interface operations {
}
requestBody: {
content: {
- 'application/json': components['schemas']['CreateStorageBucketBody']
+ 'application/json': components['schemas']['UpdateStorageBucketBody']
}
}
responses: {
- 201: {
+ 200: {
headers: {
[name: string]: unknown
}
@@ -24374,7 +24157,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to create bucket */
+ /** @description Failed to update bucket */
500: {
headers: {
[name: string]: unknown
@@ -24383,7 +24166,7 @@ export interface operations {
}
}
}
- StorageBucketIdController_getBucket: {
+ StorageBucketIdController_emptyBucket: {
parameters: {
query?: never
header?: never
@@ -24397,13 +24180,11 @@ export interface operations {
}
requestBody?: never
responses: {
- 200: {
+ 201: {
headers: {
[name: string]: unknown
}
- content: {
- 'application/json': components['schemas']['StorageBucketResponse']
- }
+ content?: never
}
/** @description Unauthorized */
401: {
@@ -24426,7 +24207,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to get bucket */
+ /** @description Failed to empty bucket */
500: {
headers: {
[name: string]: unknown
@@ -24435,7 +24216,7 @@ export interface operations {
}
}
}
- StorageBucketIdController_deleteBucket: {
+ StorageObjectsController_deleteObjects: {
parameters: {
query?: never
header?: never
@@ -24447,7 +24228,11 @@ export interface operations {
}
cookie?: never
}
- requestBody?: never
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['DeleteObjectsBody']
+ }
+ }
responses: {
200: {
headers: {
@@ -24476,7 +24261,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to delete bucket */
+ /** @description Failed to delete objects */
500: {
headers: {
[name: string]: unknown
@@ -24485,7 +24270,7 @@ export interface operations {
}
}
}
- StorageBucketIdController_updateBucket: {
+ StorageObjectsController_copyObject: {
parameters: {
query?: never
header?: never
@@ -24499,15 +24284,17 @@ export interface operations {
}
requestBody: {
content: {
- 'application/json': components['schemas']['UpdateStorageBucketBody']
+ 'application/json': components['schemas']['CopyObjectBody']
}
}
responses: {
- 200: {
+ 201: {
headers: {
[name: string]: unknown
}
- content?: never
+ content: {
+ 'application/json': components['schemas']['CopyObjectResponse']
+ }
}
/** @description Unauthorized */
401: {
@@ -24530,7 +24317,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to update bucket */
+ /** @description Failed to copy object */
500: {
headers: {
[name: string]: unknown
@@ -24539,167 +24326,7 @@ export interface operations {
}
}
}
- StorageBucketIdController_emptyBucket: {
- parameters: {
- query?: never
- header?: never
- path: {
- /** @description Storage bucket id */
- id: string
- /** @description Project ref */
- ref: string
- }
- cookie?: never
- }
- requestBody?: never
- responses: {
- 201: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Unauthorized */
- 401: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Forbidden action */
- 403: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Rate limit exceeded */
- 429: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Failed to empty bucket */
- 500: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- }
- }
- StorageObjectsController_deleteObjects: {
- parameters: {
- query?: never
- header?: never
- path: {
- /** @description Storage bucket id */
- id: string
- /** @description Project ref */
- ref: string
- }
- cookie?: never
- }
- requestBody: {
- content: {
- 'application/json': components['schemas']['DeleteObjectsBody']
- }
- }
- responses: {
- 200: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Unauthorized */
- 401: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Forbidden action */
- 403: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Rate limit exceeded */
- 429: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Failed to delete objects */
- 500: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- }
- }
- StorageObjectsController_copyObject: {
- parameters: {
- query?: never
- header?: never
- path: {
- /** @description Storage bucket id */
- id: string
- /** @description Project ref */
- ref: string
- }
- cookie?: never
- }
- requestBody: {
- content: {
- 'application/json': components['schemas']['CopyObjectBody']
- }
- }
- responses: {
- 201: {
- headers: {
- [name: string]: unknown
- }
- content: {
- 'application/json': components['schemas']['CopyObjectResponse']
- }
- }
- /** @description Unauthorized */
- 401: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Forbidden action */
- 403: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Rate limit exceeded */
- 429: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Failed to copy object */
- 500: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- }
- }
- StorageObjectsController_download: {
+ StorageObjectsController_download: {
parameters: {
query?: never
header?: never
@@ -25243,364 +24870,6 @@ export interface operations {
}
}
}
- StorageVectorBucketsController_getBuckets: {
- parameters: {
- query?: never
- header?: never
- path: {
- /** @description Project ref */
- ref: string
- }
- cookie?: never
- }
- requestBody?: never
- responses: {
- 200: {
- headers: {
- [name: string]: unknown
- }
- content: {
- 'application/json': components['schemas']['StorageVectorBucketsResponse']
- }
- }
- /** @description Unauthorized */
- 401: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Forbidden action */
- 403: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Rate limit exceeded */
- 429: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Failed to get list of vector buckets */
- 500: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- }
- }
- StorageVectorBucketsController_createBucket: {
- parameters: {
- query?: never
- header?: never
- path: {
- /** @description Project ref */
- ref: string
- }
- cookie?: never
- }
- requestBody?: never
- responses: {
- 201: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Unauthorized */
- 401: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Forbidden action */
- 403: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Rate limit exceeded */
- 429: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Failed to create vector bucket */
- 500: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- }
- }
- StorageVectorBucketIdController_getBucket: {
- parameters: {
- query?: never
- header?: never
- path: {
- /** @description Vector storage bucket name */
- id: string
- /** @description Project ref */
- ref: string
- }
- cookie?: never
- }
- requestBody?: never
- responses: {
- 200: {
- headers: {
- [name: string]: unknown
- }
- content: {
- 'application/json': components['schemas']['StorageVectorBucketResponse']
- }
- }
- /** @description Unauthorized */
- 401: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Forbidden action */
- 403: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Rate limit exceeded */
- 429: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Failed to get bucket */
- 500: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- }
- }
- StorageVectorBucketIdController_deleteBucket: {
- parameters: {
- query?: never
- header?: never
- path: {
- /** @description Vector storage bucket name */
- id: string
- /** @description Project ref */
- ref: string
- }
- cookie?: never
- }
- requestBody?: never
- responses: {
- 200: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Unauthorized */
- 401: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Forbidden action */
- 403: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Rate limit exceeded */
- 429: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Failed to delete bucket */
- 500: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- }
- }
- StorageVectorBucketIdIndexesController_getBucketIndexes: {
- parameters: {
- query?: never
- header?: never
- path: {
- /** @description Vector storage bucket name */
- id: string
- /** @description Project ref */
- ref: string
- }
- cookie?: never
- }
- requestBody?: never
- responses: {
- 200: {
- headers: {
- [name: string]: unknown
- }
- content: {
- 'application/json': components['schemas']['StorageVectorBucketListIndexesResponse']
- }
- }
- /** @description Unauthorized */
- 401: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Forbidden action */
- 403: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Rate limit exceeded */
- 429: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Failed to get bucket indexes */
- 500: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- }
- }
- StorageVectorBucketIdIndexesController_createBucketIndex: {
- parameters: {
- query?: never
- header?: never
- path: {
- /** @description Vector storage bucket name */
- id: string
- /** @description Project ref */
- ref: string
- }
- cookie?: never
- }
- requestBody: {
- content: {
- 'application/json': components['schemas']['CreateBucketIndexBody']
- }
- }
- responses: {
- 201: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Unauthorized */
- 401: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Forbidden action */
- 403: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Rate limit exceeded */
- 429: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Failed to create vector bucket index */
- 500: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- }
- }
- StorageVectorBucketIdIndexesController_deleteBucketIndex: {
- parameters: {
- query?: never
- header?: never
- path: {
- /** @description Vector storage bucket name */
- id: string
- /** @description Vector storage bucket index name */
- indexName: string
- /** @description Project ref */
- ref: string
- }
- cookie?: never
- }
- requestBody?: never
- responses: {
- 200: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Unauthorized */
- 401: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Forbidden action */
- 403: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Rate limit exceeded */
- 429: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Failed to delete bucket index */
- 500: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- }
- }
InvoicesController_getOverdueInvoices: {
parameters: {
query?: never