added admin auth to vector db

This commit is contained in:
ArnabChatterjee20k
2026-02-11 14:04:14 +05:30
parent 61f778196b
commit e07f9a7b49
23 changed files with 23 additions and 23 deletions
@@ -57,7 +57,7 @@ class Create extends CollectionAction
group: 'collections',
name: 'createCollection',
description: '/docs/references/vectordb/create-collection.md',
auth: [AuthType::KEY],
auth: [AuthType::ADMIN, AuthType::KEY],
responses: [
new SDKResponse(
code: SwooleResponse::STATUS_CODE_CREATED,
@@ -40,7 +40,7 @@ class Delete extends CollectionDelete
group: 'collections',
name: 'deleteCollection',
description: '/docs/references/vectordb/delete-collection.md',
auth: [AuthType::KEY],
auth: [AuthType::ADMIN, AuthType::KEY],
responses: [
new SDKResponse(
code: SwooleResponse::STATUS_CODE_NOCONTENT,
@@ -55,7 +55,7 @@ class Create extends DocumentCreate
name: 'createDocument',
desc: 'Create document',
description: '/docs/references/vectordb/create-document.md',
auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT],
auth: [AuthType::ADMIN, AuthType::SESSION, AuthType::KEY, AuthType::JWT],
responses: [
new SDKResponse(
code: SwooleResponse::STATUS_CODE_CREATED,
@@ -49,7 +49,7 @@ class Delete extends DocumentDelete
group: $this->getSdkGroup(),
name: 'deleteDocument',
description: '/docs/references/vectordb/delete-document.md',
auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT],
auth: [AuthType::ADMIN, AuthType::SESSION, AuthType::KEY, AuthType::JWT],
responses: [
new SDKResponse(
code: SwooleResponse::STATUS_CODE_NOCONTENT,
@@ -39,7 +39,7 @@ class Get extends DocumentGet
group: $this->getSdkGroup(),
name: 'getDocument',
description: '/docs/references/vectordb/get-document.md',
auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT],
auth: [AuthType::ADMIN, AuthType::SESSION, AuthType::KEY, AuthType::JWT],
responses: [
new SDKResponse(
code: SwooleResponse::STATUS_CODE_OK,
@@ -46,7 +46,7 @@ class Update extends DocumentUpdate
group: $this->getSdkGroup(),
name: 'updateDocument',
description: '/docs/references/vectordb/update-document.md',
auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT],
auth: [AuthType::ADMIN, AuthType::SESSION, AuthType::KEY, AuthType::JWT],
responses: [
new SDKResponse(
code: SwooleResponse::STATUS_CODE_OK,
@@ -48,7 +48,7 @@ class Upsert extends DocumentUpsert
group: $this->getSdkGroup(),
name: 'upsertDocument',
description: '/docs/references/vectordb/upsert-document.md',
auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT],
auth: [AuthType::ADMIN, AuthType::SESSION, AuthType::KEY, AuthType::JWT],
responses: [
new SDKResponse(
code: SwooleResponse::STATUS_CODE_CREATED,
@@ -40,7 +40,7 @@ class XList extends DocumentXList
group: $this->getSdkGroup(),
name: 'listDocuments',
description: '/docs/references/vectordb/list-documents.md',
auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT],
auth: [AuthType::ADMIN, AuthType::SESSION, AuthType::KEY, AuthType::JWT],
responses: [
new SDKResponse(
code: SwooleResponse::STATUS_CODE_OK,
@@ -37,7 +37,7 @@ class Get extends CollectionGet
group: 'collections',
name: 'getCollection',
description: '/docs/references/vectordb/get-collection.md',
auth: [AuthType::KEY],
auth: [AuthType::ADMIN, AuthType::KEY],
responses: [
new SDKResponse(
code: SwooleResponse::STATUS_CODE_OK,
@@ -49,7 +49,7 @@ class Update extends CollectionAction
group: 'collections',
name: 'updateCollection',
description: '/docs/references/vectordb/update-collection.md',
auth: [AuthType::KEY],
auth: [AuthType::ADMIN, AuthType::KEY],
responses: [
new SDKResponse(
code: SwooleResponse::STATUS_CODE_OK,
@@ -40,7 +40,7 @@ class XList extends CollectionXList
group: 'collections',
name: 'listCollections',
description: '/docs/references/vectordb/list-collections.md',
auth: [AuthType::KEY],
auth: [AuthType::ADMIN, AuthType::KEY],
responses: [
new SDKResponse(
code: SwooleResponse::STATUS_CODE_OK,
@@ -37,7 +37,7 @@ class Create extends DatabaseCreate
group: 'vectordb',
name: 'create',
description: '/docs/references/vectordb/create.md',
auth: [AuthType::KEY],
auth: [AuthType::ADMIN, AuthType::KEY],
responses: [
new SDKResponse(
code: SwooleResponse::STATUS_CODE_CREATED,
@@ -35,7 +35,7 @@ class Delete extends DatabaseDelete
group: 'vectordb',
name: 'delete',
description: '/docs/references/vectordb/delete.md',
auth: [AuthType::KEY],
auth: [AuthType::ADMIN, AuthType::KEY],
responses: [
new SDKResponse(
code: SwooleResponse::STATUS_CODE_NOCONTENT,
@@ -59,7 +59,7 @@ class Create extends CreateDocumentAction
name: 'createTextEmbeddings',
desc: 'Create Text Embedding',
description: '/docs/references/vectordb/create-document.md',
auth: [AuthType::KEY, AuthType::JWT],
auth: [AuthType::ADMIN, AuthType::KEY, AuthType::JWT],
responses: [
new SDKResponse(
code: SwooleResponse::STATUS_CODE_OK,
@@ -32,7 +32,7 @@ class Get extends DatabaseGet
group: 'vectordb',
name: 'get',
description: '/docs/references/vectordb/get.md',
auth: [AuthType::KEY],
auth: [AuthType::ADMIN, AuthType::KEY],
responses: [
new SDKResponse(
code: SwooleResponse::STATUS_CODE_OK,
@@ -37,7 +37,7 @@ class Create extends TransactionsCreate
group: 'transactions',
name: 'createTransaction',
description: '/docs/references/vectordb/create-transaction.md',
auth: [AuthType::KEY, AuthType::SESSION, AuthType::JWT],
auth: [AuthType::ADMIN, AuthType::KEY, AuthType::SESSION, AuthType::JWT],
responses: [
new SDKResponse(
code: SwooleResponse::STATUS_CODE_CREATED,
@@ -37,7 +37,7 @@ class Delete extends TransactionsDelete
group: 'transactions',
name: 'deleteTransaction',
description: '/docs/references/vectordb/delete-transaction.md',
auth: [AuthType::KEY, AuthType::SESSION, AuthType::JWT],
auth: [AuthType::ADMIN, AuthType::KEY, AuthType::SESSION, AuthType::JWT],
responses: [
new SDKResponse(
code: SwooleResponse::STATUS_CODE_NOCONTENT,
@@ -37,7 +37,7 @@ class Get extends TransactionsGet
group: 'transactions',
name: 'getTransaction',
description: '/docs/references/vectordb/get-transaction.md',
auth: [AuthType::KEY, AuthType::SESSION, AuthType::JWT],
auth: [AuthType::ADMIN, AuthType::KEY, AuthType::SESSION, AuthType::JWT],
responses: [
new SDKResponse(
code: SwooleResponse::STATUS_CODE_OK,
@@ -39,7 +39,7 @@ class Create extends OperationsCreate
group: 'transactions',
name: 'createOperations',
description: '/docs/references/vectordb/create-operations.md',
auth: [AuthType::KEY, AuthType::SESSION, AuthType::JWT],
auth: [AuthType::ADMIN, AuthType::KEY, AuthType::SESSION, AuthType::JWT],
responses: [
new SDKResponse(
code: SwooleResponse::STATUS_CODE_CREATED,
@@ -38,7 +38,7 @@ class Update extends TransactionsUpdate
group: 'transactions',
name: 'updateTransaction',
description: '/docs/references/vectordb/update-transaction.md',
auth: [AuthType::KEY, AuthType::SESSION, AuthType::JWT],
auth: [AuthType::ADMIN, AuthType::KEY, AuthType::SESSION, AuthType::JWT],
responses: [
new SDKResponse(
code: SwooleResponse::STATUS_CODE_OK,
@@ -37,7 +37,7 @@ class XList extends TransactionsList
group: 'transactions',
name: 'listTransactions',
description: '/docs/references/vectordb/list-transactions.md',
auth: [AuthType::KEY, AuthType::SESSION, AuthType::JWT],
auth: [AuthType::ADMIN, AuthType::KEY, AuthType::SESSION, AuthType::JWT],
responses: [
new SDKResponse(
code: SwooleResponse::STATUS_CODE_OK,
@@ -37,7 +37,7 @@ class Update extends DatabaseUpdate
group: 'vectordb',
name: 'update',
description: '/docs/references/vectordb/update.md',
auth: [AuthType::KEY],
auth: [AuthType::ADMIN, AuthType::KEY],
responses: [
new SDKResponse(
code: SwooleResponse::STATUS_CODE_OK,
@@ -34,7 +34,7 @@ class XList extends DatabaseXList
group: 'vectordb',
name: 'list',
description: '/docs/references/vectordb/list.md',
auth: [AuthType::KEY],
auth: [AuthType::ADMIN, AuthType::KEY],
responses: [
new SDKResponse(
code: SwooleResponse::STATUS_CODE_OK,