Files
2026-07-13 13:24:55 +08:00

78 lines
1.9 KiB
Go

/*
* Copyright 2025 coze-dev Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dto
import (
"github.com/getkin/kin-openapi/openapi3"
"github.com/coze-dev/coze-studio/backend/api/model/plugin_develop/common"
"github.com/coze-dev/coze-studio/backend/crossdomain/plugin/model"
)
type CreateDraftToolsWithCodeRequest struct {
PluginID int64
OpenapiDoc *model.Openapi3T
ConflictAndUpdate bool
}
type CreateDraftToolsWithCodeResponse struct {
DuplicatedTools []UniqueToolAPI
}
type UpdateDraftToolRequest struct {
PluginID int64
ToolID int64
Name *string
Desc *string
SubURL *string
Method *string
Parameters openapi3.Parameters
RequestBody *openapi3.RequestBodyRef
Responses openapi3.Responses
Disabled *bool
SaveExample *bool
DebugExample *common.DebugExample
APIExtend *common.APIExtend
}
type ConvertToOpenapi3DocRequest struct {
RawInput string
PluginServerURL *string
}
type ConvertToOpenapi3DocResponse struct {
OpenapiDoc *model.Openapi3T
Manifest *model.PluginManifest
Format common.PluginDataFormat
ErrMsg string
}
type UpdateBotDefaultParamsRequest struct {
PluginID int64
AgentID int64
ToolName string
Parameters openapi3.Parameters
RequestBody *openapi3.RequestBodyRef
Responses openapi3.Responses
PluginFormat *common.PluginDataFormat
}
type UniqueToolAPI struct {
SubURL string
Method string
}