mirror of
https://github.com/langgenius/dify-plugin-daemon.git
synced 2026-07-22 01:35:24 -04:00
a0414b30e6
* feat(oauth): add RedirectURI field to OAuth request structures * feat(oauth): update OAuthSchema validation * feat: add Context field to request and session structures * feat: add CredentialType field to Credentials and InvokeToolRequest structures * fix: handle unhandled default case in basic_type.go * feat: add support for build branches in build-push.yml
25 lines
754 B
Go
25 lines
754 B
Go
package plugin_entities
|
|
|
|
type InvokePluginUserIdentity struct {
|
|
TenantId string `json:"tenant_id" validate:"required" uri:"tenant_id"`
|
|
UserId string `json:"user_id"`
|
|
}
|
|
|
|
type BasePluginIdentifier struct {
|
|
PluginID string `json:"plugin_id"`
|
|
}
|
|
|
|
type InvokePluginRequest[T any] struct {
|
|
InvokePluginUserIdentity
|
|
BasePluginIdentifier
|
|
|
|
UniqueIdentifier PluginUniqueIdentifier `json:"unique_identifier"`
|
|
ConversationID *string `json:"conversation_id"`
|
|
MessageID *string `json:"message_id"`
|
|
AppID *string `json:"app_id"`
|
|
EndpointID *string `json:"endpoint_id"`
|
|
Context map[string]any `json:"context"`
|
|
|
|
Data T `json:"data" validate:"required"`
|
|
}
|