mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
refactor(api): centralize API key management (#42489)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
1a09485013
commit
8b7f903cff
36 files changed
+1840
-1077
No files matched your search
@@ -4498,8 +4498,6 @@ export const byAppId2 = {
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete an API key for an app
|
||||
*
|
||||
* Delete an API key for an app
|
||||
*/
|
||||
export const delete16 = oc
|
||||
@@ -4510,7 +4508,6 @@ export const delete16 = oc
|
||||
operationId: 'deleteAppsByResourceIdApiKeysByApiKeyId',
|
||||
path: '/apps/{resource_id}/api-keys/{api_key_id}',
|
||||
successStatus: 204,
|
||||
summary: 'Delete an API key for an app',
|
||||
tags: ['console'],
|
||||
})
|
||||
.input(z.object({ params: zDeleteAppsByResourceIdApiKeysByApiKeyIdPath }))
|
||||
@@ -4521,8 +4518,6 @@ export const byApiKeyId = {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all API keys for an app
|
||||
*
|
||||
* Get all API keys for an app
|
||||
*/
|
||||
export const get85 = oc
|
||||
@@ -4532,15 +4527,12 @@ export const get85 = oc
|
||||
method: 'GET',
|
||||
operationId: 'getAppsByResourceIdApiKeys',
|
||||
path: '/apps/{resource_id}/api-keys',
|
||||
summary: 'Get all API keys for an app',
|
||||
tags: ['console'],
|
||||
})
|
||||
.input(z.object({ params: zGetAppsByResourceIdApiKeysPath }))
|
||||
.output(zGetAppsByResourceIdApiKeysResponse)
|
||||
|
||||
/**
|
||||
* Create a new API key for an app
|
||||
*
|
||||
* Create a new API key for an app
|
||||
*/
|
||||
export const post63 = oc
|
||||
@@ -4551,7 +4543,6 @@ export const post63 = oc
|
||||
operationId: 'postAppsByResourceIdApiKeys',
|
||||
path: '/apps/{resource_id}/api-keys',
|
||||
successStatus: 201,
|
||||
summary: 'Create a new API key for an app',
|
||||
tags: ['console'],
|
||||
})
|
||||
.input(z.object({ params: zPostAppsByResourceIdApiKeysPath }))
|
||||
|
||||
@@ -1698,8 +1698,6 @@ export const byDatasetId = {
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete an API key for a dataset
|
||||
*
|
||||
* Delete an API key for a dataset
|
||||
*/
|
||||
export const delete10 = oc
|
||||
@@ -1710,7 +1708,6 @@ export const delete10 = oc
|
||||
operationId: 'deleteDatasetsByResourceIdApiKeysByApiKeyId',
|
||||
path: '/datasets/{resource_id}/api-keys/{api_key_id}',
|
||||
successStatus: 204,
|
||||
summary: 'Delete an API key for a dataset',
|
||||
tags: ['console'],
|
||||
})
|
||||
.input(z.object({ params: zDeleteDatasetsByResourceIdApiKeysByApiKeyIdPath }))
|
||||
@@ -1721,8 +1718,6 @@ export const byApiKeyId2 = {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all API keys for a dataset
|
||||
*
|
||||
* Get all API keys for a dataset
|
||||
*/
|
||||
export const get35 = oc
|
||||
@@ -1732,15 +1727,12 @@ export const get35 = oc
|
||||
method: 'GET',
|
||||
operationId: 'getDatasetsByResourceIdApiKeys',
|
||||
path: '/datasets/{resource_id}/api-keys',
|
||||
summary: 'Get all API keys for a dataset',
|
||||
tags: ['console'],
|
||||
})
|
||||
.input(z.object({ params: zGetDatasetsByResourceIdApiKeysPath }))
|
||||
.output(zGetDatasetsByResourceIdApiKeysResponse)
|
||||
|
||||
/**
|
||||
* Create a new API key for a dataset
|
||||
*
|
||||
* Create a new API key for a dataset
|
||||
*/
|
||||
export const post22 = oc
|
||||
@@ -1751,7 +1743,6 @@ export const post22 = oc
|
||||
operationId: 'postDatasetsByResourceIdApiKeys',
|
||||
path: '/datasets/{resource_id}/api-keys',
|
||||
successStatus: 201,
|
||||
summary: 'Create a new API key for a dataset',
|
||||
tags: ['console'],
|
||||
})
|
||||
.input(z.object({ params: zPostDatasetsByResourceIdApiKeysPath }))
|
||||
|
||||
Reference in new issue
Block a user