mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 17:15:54 +08:00
endpoints mock data
This commit is contained in:
parent
1ecea62052
commit
5295c72ca1
@ -35,3 +35,46 @@ export const toolNotion = {
|
|||||||
source: PluginSource.marketplace,
|
source: PluginSource.marketplace,
|
||||||
meta: null,
|
meta: null,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const toolNotionEndpoints = [
|
||||||
|
{
|
||||||
|
id: 'dlfajkgjdga-dfjalksjfglkds-dfjakld',
|
||||||
|
created_at: '2024-10-16 16:05:33',
|
||||||
|
updated_at: '2024-10-16 16:05:33',
|
||||||
|
settings: {
|
||||||
|
'api-key': '*******',
|
||||||
|
},
|
||||||
|
tenant_id: 'jflkdsjoewingljlsadjgoijg',
|
||||||
|
plugin_id: 'Notion/notion-page-search',
|
||||||
|
expired_at: '2024-10-16 16:05:33',
|
||||||
|
declaration: {
|
||||||
|
settings: [
|
||||||
|
{
|
||||||
|
type: 'secret-input',
|
||||||
|
name: 'api-key',
|
||||||
|
required: true,
|
||||||
|
default: null,
|
||||||
|
options: null,
|
||||||
|
label: {
|
||||||
|
'en-US': 'API-key',
|
||||||
|
'zh-Hans': 'API-key',
|
||||||
|
},
|
||||||
|
help: null,
|
||||||
|
url: null,
|
||||||
|
placeholder: {
|
||||||
|
'en-US': 'Please input your API key',
|
||||||
|
'zh-Hans': '请输入你的 API key',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
endpoint: [
|
||||||
|
{ path: '/duck/<app_id>', method: 'GET' },
|
||||||
|
{ path: '/neko', method: 'GET' },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
name: 'default',
|
||||||
|
enabled: true,
|
||||||
|
url: 'http://localhost:5002/e/45rj9V4TRxAjL0I2wXRZgZdXjdHEKBh8',
|
||||||
|
hook_id: '45rj9V4TRxAjL0I2wXRZgZdXjdHEKBh8',
|
||||||
|
},
|
||||||
|
]
|
||||||
|
@ -28,7 +28,7 @@ export type PluginToolDeclaration = {
|
|||||||
|
|
||||||
export type PluginEndpointDeclaration = {
|
export type PluginEndpointDeclaration = {
|
||||||
settings: CredentialFormSchemaBase[]
|
settings: CredentialFormSchemaBase[]
|
||||||
endpoint: EndpointItem[]
|
endpoints: EndpointItem[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export type EndpointItem = {
|
export type EndpointItem = {
|
||||||
@ -36,6 +36,21 @@ export type EndpointItem = {
|
|||||||
method: string
|
method: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type EndpointListItem = {
|
||||||
|
id: string
|
||||||
|
created_at: string
|
||||||
|
updated_at: string
|
||||||
|
settings: Record<string, any>
|
||||||
|
tenant_id: string
|
||||||
|
plugin_id: string
|
||||||
|
expired_at: string
|
||||||
|
declaration: PluginEndpointDeclaration
|
||||||
|
name: string
|
||||||
|
enabled: boolean
|
||||||
|
url: string
|
||||||
|
hook_id: string
|
||||||
|
}
|
||||||
|
|
||||||
export type PluginDeclaration = {
|
export type PluginDeclaration = {
|
||||||
version: string
|
version: string
|
||||||
author: string
|
author: string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user