mirror of
https://github.com/langgenius/dify.git
synced 2026-09-08 02:43:49 +08:00
[autofix.ci] apply automated fixes
This commit is contained in:
parent
9969c9f845
commit
9009960b35
@ -6899,7 +6899,7 @@ Check if dataset is in use
|
||||
|
||||
| Code | Description | Schema |
|
||||
| ---- | ----------- | ------ |
|
||||
| 200 | Success | **application/json**: [LimitationModel](#limitationmodel)<br> |
|
||||
| 200 | Success | **application/json**: [VectorSpaceLimitationModel](#vectorspacelimitationmodel)<br> |
|
||||
|
||||
### [GET] /files/support-type
|
||||
#### Responses
|
||||
@ -7037,13 +7037,6 @@ Request body:
|
||||
| ---- | ----------- | ------ |
|
||||
| 200 | Success | **application/json**: [ConsoleHumanInputFormSubmitResponse](#consolehumaninputformsubmitresponse)<br> |
|
||||
|
||||
### [POST] /info
|
||||
#### Responses
|
||||
|
||||
| Code | Description | Schema |
|
||||
| ---- | ----------- | ------ |
|
||||
| 200 | Success | **application/json**: [TenantInfoResponse](#tenantinforesponse)<br> |
|
||||
|
||||
### [GET] /installed-apps
|
||||
#### Parameters
|
||||
|
||||
@ -10069,13 +10062,6 @@ Returns information about why and where the workflow is paused.
|
||||
| ---- | ----------- | ------ |
|
||||
| 200 | Success | **application/json**: [TenantListResponse](#tenantlistresponse)<br> |
|
||||
|
||||
### [POST] /workspaces/current
|
||||
#### Responses
|
||||
|
||||
| Code | Description | Schema |
|
||||
| ---- | ----------- | ------ |
|
||||
| 200 | Success | **application/json**: [TenantInfoResponse](#tenantinforesponse)<br> |
|
||||
|
||||
### [GET] /workspaces/current/agent-provider/{provider_name}
|
||||
Get specific agent provider details
|
||||
|
||||
@ -10629,6 +10615,20 @@ Update a plugin endpoint
|
||||
| ---- | ----------- | ------ |
|
||||
| 200 | Model providers retrieved successfully | **application/json**: [ModelProviderListResponse](#modelproviderlistresponse)<br> |
|
||||
|
||||
### [GET] /workspaces/current/model-providers/credits
|
||||
#### Responses
|
||||
|
||||
| Code | Description | Schema |
|
||||
| ---- | ----------- | ------ |
|
||||
| 200 | Model provider credits retrieved successfully | **application/json**: [ModelProviderCreditsResponse](#modelprovidercreditsresponse)<br> |
|
||||
|
||||
### [GET] /workspaces/current/model-providers/summary
|
||||
#### Responses
|
||||
|
||||
| Code | Description | Schema |
|
||||
| ---- | ----------- | ------ |
|
||||
| 200 | Model provider summaries retrieved successfully | **application/json**: [ModelProviderSummaryListResponse](#modelprovidersummarylistresponse)<br> |
|
||||
|
||||
### [GET] /workspaces/current/model-providers/{provider}/checkout-url
|
||||
#### Parameters
|
||||
|
||||
@ -11174,6 +11174,19 @@ Returns permission flags that control workspace features like member invitations
|
||||
| ---- | ----------- | ------ |
|
||||
| 200 | Success | **application/json**: [PluginInstallTaskStartResponse](#plugininstalltaskstartresponse)<br> |
|
||||
|
||||
### [GET] /workspaces/current/plugin/installed-ids
|
||||
#### Parameters
|
||||
|
||||
| Name | Located in | Description | Required | Schema |
|
||||
| ---- | ---------- | ----------- | -------- | ------ |
|
||||
| category | query | Plugin category to include | Yes | string, <br>**Available values:** "agent-strategy", "datasource", "extension", "model", "tool", "trigger" |
|
||||
|
||||
#### Responses
|
||||
|
||||
| Code | Description | Schema |
|
||||
| ---- | ----------- | ------ |
|
||||
| 200 | Success | **application/json**: [PluginInstalledIdsResponse](#plugininstalledidsresponse)<br> |
|
||||
|
||||
### [GET] /workspaces/current/plugin/list
|
||||
#### Parameters
|
||||
|
||||
@ -11432,8 +11445,11 @@ Returns permission flags that control workspace features like member invitations
|
||||
|
||||
| Name | Located in | Description | Required | Schema |
|
||||
| ---- | ---------- | ----------- | -------- | ------ |
|
||||
| language | query | Language used for localized label and description search | No | string, <br>**Available values:** "en_US", "ja_JP", "pt_BR", "zh_Hans", <br>**Default:** en_US |
|
||||
| page | query | Page number | No | integer, <br>**Default:** 1 |
|
||||
| page_size | query | Page size (1-256) | No | integer, <br>**Default:** 256 |
|
||||
| query | query | Case-insensitive search query | No | string |
|
||||
| tags | query | Match any plugin tag | No | [ string ] |
|
||||
| category | path | | Yes | string |
|
||||
|
||||
#### Responses
|
||||
@ -12324,7 +12340,7 @@ Import a Skill zip package from multipart form field `file`.
|
||||
|
||||
| Code | Description | Schema |
|
||||
| ---- | ----------- | ------ |
|
||||
| 200 | Skill version restored | **application/json**: [SkillVersionResponse](#skillversionresponse)<br> |
|
||||
| 200 | Skill version restored to draft | **application/json**: [SkillDetailResponse](#skilldetailresponse)<br> |
|
||||
|
||||
### [GET] /workspaces/current/skills/{skill_id}/versions
|
||||
#### Parameters
|
||||
@ -12387,6 +12403,14 @@ Import a Skill zip package from multipart form field `file`.
|
||||
| ---- | ----------- | ------ |
|
||||
| 200 | Skill version updated | **application/json**: [SkillVersionResponse](#skillversionresponse)<br> |
|
||||
|
||||
### [GET] /workspaces/current/summary
|
||||
#### Responses
|
||||
|
||||
| Code | Description | Schema |
|
||||
| ---- | ----------- | ------ |
|
||||
| 200 | Success | **application/json**: [CurrentWorkspaceSummaryResponse](#currentworkspacesummaryresponse)<br> |
|
||||
| 409 | Current workspace is archived | |
|
||||
|
||||
### [GET] /workspaces/current/tool-labels
|
||||
#### Responses
|
||||
|
||||
@ -13194,6 +13218,13 @@ Import a Skill zip package from multipart form field `file`.
|
||||
| ---- | ----------- | ------ |
|
||||
| 200 | Trigger providers retrieved successfully | **application/json**: [TriggerProviderListResponse](#triggerproviderlistresponse)<br> |
|
||||
|
||||
### [GET] /workspaces/custom-config
|
||||
#### Responses
|
||||
|
||||
| Code | Description | Schema |
|
||||
| ---- | ----------- | ------ |
|
||||
| 200 | Success | **application/json**: [WorkspaceCustomConfigResponse](#workspacecustomconfigresponse)<br> |
|
||||
|
||||
### [POST] /workspaces/custom-config
|
||||
#### Request Body
|
||||
|
||||
@ -13634,6 +13665,7 @@ Model class for AI model.
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| access_ready | boolean | | Yes |
|
||||
| api_key_count | integer | | Yes |
|
||||
| api_rph | integer | | Yes |
|
||||
| api_rpm | integer | | Yes |
|
||||
@ -13699,6 +13731,7 @@ Model class for AI model.
|
||||
| Name | Type | Description | Required |
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| access_mode | string | | No |
|
||||
| access_ready | boolean | | No |
|
||||
| api_base_url | string | | No |
|
||||
| app_id | string | | No |
|
||||
| backing_app_id | string | | No |
|
||||
@ -14785,6 +14818,14 @@ section may be empty, which is how callers express "no knowledge layer".
|
||||
| updated_at | integer | | No |
|
||||
| user_rate | number | | No |
|
||||
|
||||
#### AgentLogFeedbackResponse
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| content | string | | No |
|
||||
| from_source | string, <br>**Available values:** "admin", "user" | *Enum:* `"admin"`, `"user"` | Yes |
|
||||
| rating | string, <br>**Available values:** "dislike", "like" | *Enum:* `"dislike"`, `"like"` | Yes |
|
||||
|
||||
#### AgentLogListResponse
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
@ -14805,6 +14846,8 @@ section may be empty, which is how callers express "no knowledge layer".
|
||||
| created_at | integer | | No |
|
||||
| currency | string | | Yes |
|
||||
| error | string | | No |
|
||||
| feedback_enabled | boolean | | No |
|
||||
| feedbacks | [ [AgentLogFeedbackResponse](#agentlogfeedbackresponse) ] | | No |
|
||||
| from_account_id | string | | No |
|
||||
| from_end_user_id | string | | No |
|
||||
| id | string | | Yes |
|
||||
@ -16217,6 +16260,15 @@ AppMCPServer Status Enum
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| data | [ [AverageSessionInteractionStatisticItem](#averagesessioninteractionstatisticitem) ] | | Yes |
|
||||
|
||||
#### BannerContentResponse
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| category | string | | Yes |
|
||||
| description | string | | Yes |
|
||||
| img-src | string | | Yes |
|
||||
| title | string | | Yes |
|
||||
|
||||
#### BannerListResponse
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
@ -16227,12 +16279,20 @@ AppMCPServer Status Enum
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| content | | | Yes |
|
||||
| created_at | string | | No |
|
||||
| content | [BannerContentResponse](#bannercontentresponse) | | Yes |
|
||||
| created_at | string | | Yes |
|
||||
| id | string | | Yes |
|
||||
| link | string | | No |
|
||||
| link | string | | Yes |
|
||||
| sort | integer | | Yes |
|
||||
| status | string | | Yes |
|
||||
| status | [BannerStatus](#bannerstatus) | | Yes |
|
||||
|
||||
#### BannerStatus
|
||||
|
||||
ExporleBanner status
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| BannerStatus | string | ExporleBanner status | |
|
||||
|
||||
#### BatchImportPayload
|
||||
|
||||
@ -16977,6 +17037,16 @@ Model class for credential form schema.
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| CredentialType | string | | |
|
||||
|
||||
#### CurrentWorkspaceSummaryResponse
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| credits | integer | Remaining credits in the effective pool; -1 means unlimited. | Yes |
|
||||
| id | string | | Yes |
|
||||
| name | string | | Yes |
|
||||
| plan | string | | Yes |
|
||||
| role | [TenantAccountRole](#tenantaccountrole) | | Yes |
|
||||
|
||||
#### CustomConfigurationResponse
|
||||
|
||||
Model class for provider custom configuration response.
|
||||
@ -18333,7 +18403,9 @@ declaration of an endpoint group
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| deleted_environment_variable_ids | [ string ] | Environment variable IDs to delete when patch is true | No |
|
||||
| environment_variables | [ [EnvironmentVariableItemPayload](#environmentvariableitempayload) ] | Environment variables for the draft workflow | Yes |
|
||||
| patch | boolean | Treat environment_variables as per-ID upserts instead of replacing the full collection | No |
|
||||
|
||||
#### ErrorDocsResponse
|
||||
|
||||
@ -18469,6 +18541,13 @@ Built-in tool icons are URL strings; API-based tool icons are provider-defined p
|
||||
|
||||
#### ExternalDatasetCreatePayload
|
||||
|
||||
Validated fields required to create an external dataset binding.
|
||||
|
||||
The console controller owns HTTP concerns, but the service also needs this
|
||||
contract when creating the tenant-scoped dataset and external knowledge
|
||||
binding. Keep it outside controllers so service imports do not depend on
|
||||
Flask blueprint initialization.
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| description | string | | No |
|
||||
@ -19275,6 +19354,7 @@ Enum class for large language model mode.
|
||||
| Name | Type | Description | Required |
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| expired_at | string | | Yes |
|
||||
| license_expiry_notice_enabled | boolean | | Yes |
|
||||
| seats | [LicenseLimitationModel](#licenselimitationmodel) | | Yes |
|
||||
| status | [LicenseStatus](#licensestatus) | | Yes |
|
||||
| workspaces | [LicenseLimitationModel](#licenselimitationmodel) | | Yes |
|
||||
@ -19760,6 +19840,30 @@ Enum class for model property key.
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| ModelPropertyKey | string | Enum class for model property key. | |
|
||||
|
||||
#### ModelProviderCreditsResponse
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| exhausted_at | integer | | Yes |
|
||||
| is_exhausted | boolean | | Yes |
|
||||
| is_unlimited | boolean | | Yes |
|
||||
| next_credit_reset_date | integer | | Yes |
|
||||
| pool_type | string | | Yes |
|
||||
| quota_limit | integer | Credit limit for the effective pool; -1 means unlimited. | Yes |
|
||||
| quota_used | integer | | Yes |
|
||||
| remaining_credits | integer | Remaining credits; -1 means unlimited. | Yes |
|
||||
|
||||
#### ModelProviderCustomConfigurationSummaryResponse
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| available_credentials | [ [CredentialConfiguration](#credentialconfiguration) ] | | Yes |
|
||||
| current_credential_id | string | | No |
|
||||
| current_credential_name | string | | No |
|
||||
| current_credential_usable | boolean | | Yes |
|
||||
| has_custom_models | boolean | Whether custom model configuration exists, including saved model credentials. | Yes |
|
||||
| status | [CustomConfigurationStatus](#customconfigurationstatus) | | Yes |
|
||||
|
||||
#### ModelProviderListResponse
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
@ -19772,6 +19876,49 @@ Enum class for model property key.
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| payment_link | string | | Yes |
|
||||
|
||||
#### ModelProviderPluginSummaryResponse
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| installation_id | string | | Yes |
|
||||
| plugin_id | string | | Yes |
|
||||
| plugin_unique_identifier | string | | Yes |
|
||||
| runtime_type | string | | Yes |
|
||||
| source | [PluginInstallationSource](#plugininstallationsource) | | Yes |
|
||||
| version | string | | Yes |
|
||||
|
||||
#### ModelProviderSummaryListResponse
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| data | [ [ModelProviderSummaryResponse](#modelprovidersummaryresponse) ] | | Yes |
|
||||
| plugins | object | | Yes |
|
||||
|
||||
#### ModelProviderSummaryResponse
|
||||
|
||||
Fields required to render the collapsed model-provider list.
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| configurate_methods | [ [ConfigurateMethod](#configuratemethod) ] | | Yes |
|
||||
| custom_configuration | [ModelProviderCustomConfigurationSummaryResponse](#modelprovidercustomconfigurationsummaryresponse) | | Yes |
|
||||
| description | [I18nObject](#i18nobject) | | No |
|
||||
| icon_small | [I18nObject](#i18nobject) | | No |
|
||||
| icon_small_dark | [I18nObject](#i18nobject) | | No |
|
||||
| is_configured | boolean | | Yes |
|
||||
| label | [I18nObject](#i18nobject) | | Yes |
|
||||
| plugin_id | string | | Yes |
|
||||
| preferred_provider_type | [ProviderType](#providertype) | | Yes |
|
||||
| provider | string | | Yes |
|
||||
| supported_model_types | [ [ModelType](#modeltype) ] | | Yes |
|
||||
| system_configuration | [ModelProviderSystemConfigurationSummaryResponse](#modelprovidersystemconfigurationsummaryresponse) | | Yes |
|
||||
|
||||
#### ModelProviderSystemConfigurationSummaryResponse
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| enabled | boolean | | Yes |
|
||||
|
||||
#### ModelSelectorScope
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
@ -20761,8 +20908,11 @@ Shared permission levels for resources (datasets, credentials, etc.)
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| language | string, <br>**Available values:** "en_US", "ja_JP", "pt_BR", "zh_Hans", <br>**Default:** en_US | Language used for localized label and description search<br>*Enum:* `"en_US"`, `"ja_JP"`, `"pt_BR"`, `"zh_Hans"` | No |
|
||||
| page | integer, <br>**Default:** 1 | Page number | No |
|
||||
| page_size | integer, <br>**Default:** 256 | Page size (1-256) | No |
|
||||
| query | string | Case-insensitive search query | No |
|
||||
| tags | [ string ] | Match any plugin tag | No |
|
||||
|
||||
#### PluginCategoryListResponse
|
||||
|
||||
@ -20963,6 +21113,18 @@ Shared permission levels for resources (datasets, credentials, etc.)
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| plugins | [ [PluginInstallationItemResponse](#plugininstallationitemresponse) ] | | Yes |
|
||||
|
||||
#### PluginInstalledIdsQuery
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| category | [PluginCategory](#plugincategory) | Plugin category to include | Yes |
|
||||
|
||||
#### PluginInstalledIdsResponse
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| plugin_ids | [ string ] | | Yes |
|
||||
|
||||
#### PluginListResponse
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
@ -21771,6 +21933,12 @@ Whitelist scopes accepted by RBAC app and dataset access config APIs.
|
||||
| instruction | string | Structured output generation instruction | Yes |
|
||||
| model_config | [ModelConfig](#modelconfig) | Model configuration | Yes |
|
||||
|
||||
#### SSOProtocol
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| SSOProtocol | string | | |
|
||||
|
||||
#### SandboxFileEntryResponse
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
@ -22110,6 +22278,15 @@ Simple provider entity response.
|
||||
| size | integer | | No |
|
||||
| tool_file_id | string | | Yes |
|
||||
|
||||
#### SkillAssistHistoryMessagePayload
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| content | string | | Yes |
|
||||
| role | string, <br>**Available values:** "assistant", "user" | *Enum:* `"assistant"`, `"user"` | Yes |
|
||||
| suggested_display_name | string | | No |
|
||||
| suggested_name | string | | No |
|
||||
|
||||
#### SkillAssistMessagePayload
|
||||
|
||||
One user message and optional uploaded context for the Skill Authoring assistant.
|
||||
@ -22117,6 +22294,7 @@ One user message and optional uploaded context for the Skill Authoring assistant
|
||||
| Name | Type | Description | Required |
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| attachments | [ [SkillAssistAttachmentPayload](#skillassistattachmentpayload) ] | | No |
|
||||
| history | [ [SkillAssistHistoryMessagePayload](#skillassisthistorymessagepayload) ] | | No |
|
||||
| message | string | | Yes |
|
||||
| model | [SkillAssistModelPayload](#skillassistmodelpayload) | | No |
|
||||
| target_path | string | | No |
|
||||
@ -22144,7 +22322,7 @@ One user message and optional uploaded context for the Skill Authoring assistant
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| confirmation_name | string | Required when deleting a referenced Skill. Must match the Skill name. | No |
|
||||
| confirmation_name | string | Required when deleting a referenced Skill. Must match the Skill display name. | No |
|
||||
|
||||
#### SkillDeleteResponse
|
||||
|
||||
@ -22854,7 +23032,7 @@ The subscription constructor of the trigger provider
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| _is_collaborative | boolean | | No |
|
||||
| conversation_variables | [ object ] | | No |
|
||||
| environment_variables | [ object ] | | No |
|
||||
| environment_variable_patch | [SyncEnvironmentVariablePatchPayload](#syncenvironmentvariablepatchpayload) | | No |
|
||||
| features | object | | Yes |
|
||||
| graph | object | | Yes |
|
||||
| hash | string | | No |
|
||||
@ -22867,6 +23045,13 @@ The subscription constructor of the trigger provider
|
||||
| result | string | | Yes |
|
||||
| updated_at | integer | | Yes |
|
||||
|
||||
#### SyncEnvironmentVariablePatchPayload
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| deleted_environment_variable_ids | [ string ] | | No |
|
||||
| environment_variables | [ object ] | | No |
|
||||
|
||||
#### SystemConfigurationResponse
|
||||
|
||||
Model class for provider system configuration response.
|
||||
@ -22903,7 +23088,7 @@ Non-sensitive bootstrap snapshot exposed before Console or Web authentication.
|
||||
| plugin_installation_permission | [PluginInstallationPermissionModel](#plugininstallationpermissionmodel) | | Yes |
|
||||
| rbac_enabled | boolean | | Yes |
|
||||
| sso_enforced_for_signin | boolean | | Yes |
|
||||
| sso_enforced_for_signin_protocol | string | | Yes |
|
||||
| sso_enforced_for_signin_protocol | [SSOProtocol](#ssoprotocol) | | Yes |
|
||||
| webapp_auth | [WebAppAuthModel](#webappauthmodel) | | Yes |
|
||||
|
||||
#### SystemParameters
|
||||
@ -23768,6 +23953,7 @@ Payload for updating a snippet.
|
||||
| file_upload_limit | integer | | Yes |
|
||||
| image_file_batch_limit | integer | | Yes |
|
||||
| image_file_size_limit | integer | | Yes |
|
||||
| knowledge_file_size_limit | integer | | Yes |
|
||||
| single_chunk_attachment_limit | integer | | Yes |
|
||||
| skill_file_size_limit | integer | | Yes |
|
||||
| video_file_size_limit | integer | | Yes |
|
||||
@ -23837,6 +24023,14 @@ in form definition, or a variable while the workflow is running.
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| ValueSourceType | string | ValueSourceType records whether the value comes from a static setting in form definition, or a variable while the workflow is running. | |
|
||||
|
||||
#### VectorSpaceLimitationModel
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| limit | integer | | Yes |
|
||||
| size | integer | | Yes |
|
||||
| usage_unknown | boolean | | No |
|
||||
|
||||
#### VerificationTokenResponse
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
@ -23860,7 +24054,7 @@ in form definition, or a variable while the workflow is running.
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| protocol | string | | Yes |
|
||||
| protocol | [SSOProtocol](#ssoprotocol) | | Yes |
|
||||
|
||||
#### WebhookTriggerResponse
|
||||
|
||||
|
||||
@ -1243,19 +1243,17 @@ class SkillManagementService:
|
||||
|
||||
@staticmethod
|
||||
def _extract_direct_reasoning_from_mapping(value: dict[str, object]) -> str | None:
|
||||
raw_reasoning = (
|
||||
value.get("reasoning_content")
|
||||
or value.get("reasoning")
|
||||
or value.get("reasoningContent")
|
||||
)
|
||||
raw_reasoning = value.get("reasoning_content") or value.get("reasoning") or value.get("reasoningContent")
|
||||
return raw_reasoning if isinstance(raw_reasoning, str) else None
|
||||
|
||||
@staticmethod
|
||||
def _extract_reasoning_from_dump(value: object) -> str:
|
||||
match value:
|
||||
case {"reasoning_content": str(reasoning)} | {"reasoning": str(reasoning)} | {
|
||||
"reasoningContent": str(reasoning)
|
||||
}:
|
||||
case (
|
||||
{"reasoning_content": str(reasoning)}
|
||||
| {"reasoning": str(reasoning)}
|
||||
| {"reasoningContent": str(reasoning)}
|
||||
):
|
||||
return reasoning
|
||||
case {"data": str(text)} | {"content": str(text)}:
|
||||
_clean_text, reasoning = split_reasoning(text, "separated")
|
||||
@ -1290,7 +1288,7 @@ class SkillManagementService:
|
||||
"Only suggest actions for the current Skill. Never suggest creating another Skill, "
|
||||
"starting a new Skill, or switching Skills.\n"
|
||||
"Return exactly one JSON object and no markdown fences, prose, or explanation.\n"
|
||||
"Required schema: {\"suggestions\": [\"...\", \"...\"]}\n\n"
|
||||
'Required schema: {"suggestions": ["...", "..."]}\n\n'
|
||||
f"User request:\n{user_message}\n\n"
|
||||
f"Assistant reply:\n{assistant_reply}"
|
||||
)
|
||||
@ -2662,9 +2660,7 @@ class SkillManagementService:
|
||||
|
||||
skill_md = next((file for file in files if file.path == _SKILL_MD), None)
|
||||
content = skill_md.content_text if skill_md is not None else ""
|
||||
has_description = bool(
|
||||
skill.description.strip() and skill.description.strip() != _UNTITLED_SKILL_DESCRIPTION
|
||||
)
|
||||
has_description = bool(skill.description.strip() and skill.description.strip() != _UNTITLED_SKILL_DESCRIPTION)
|
||||
body = _FRONTMATTER_RE.sub("", content, count=1).strip()
|
||||
has_body = bool(body and body not in {_EMPTY_SKILL_DRAFT_CONTENT.strip(), _UNTITLED_SKILL_MD_BODY.strip()})
|
||||
has_resources = any(file.path != _SKILL_MD for file in files)
|
||||
|
||||
@ -181,17 +181,6 @@
|
||||
"count": 2
|
||||
}
|
||||
},
|
||||
"web/app/account/(commonLayout)/account-page/index.tsx": {
|
||||
"jsx_a11y/click-events-have-key-events": {
|
||||
"count": 2
|
||||
},
|
||||
"jsx_a11y/no-static-element-interactions": {
|
||||
"count": 2
|
||||
},
|
||||
"no-restricted-imports": {
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/app/account/(commonLayout)/delete-account/components/verify-email.tsx": {
|
||||
"eslint-react/set-state-in-effect": {
|
||||
"count": 1
|
||||
@ -437,20 +426,6 @@
|
||||
"count": 4
|
||||
}
|
||||
},
|
||||
"web/app/components/app/configuration/config/automatic/get-automatic-res.tsx": {
|
||||
"eslint-react/set-state-in-effect": {
|
||||
"count": 4
|
||||
},
|
||||
"jsx_a11y/click-events-have-key-events": {
|
||||
"count": 1
|
||||
},
|
||||
"jsx_a11y/no-static-element-interactions": {
|
||||
"count": 1
|
||||
},
|
||||
"typescript/no-explicit-any": {
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/app/components/app/configuration/config/automatic/idea-output.tsx": {
|
||||
"jsx_a11y/click-events-have-key-events": {
|
||||
"count": 1
|
||||
@ -479,14 +454,6 @@
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/app/components/app/configuration/config/code-generator/get-code-generator-res.tsx": {
|
||||
"eslint-react/set-state-in-effect": {
|
||||
"count": 4
|
||||
},
|
||||
"typescript/no-explicit-any": {
|
||||
"count": 2
|
||||
}
|
||||
},
|
||||
"web/app/components/app/configuration/dataset-config/context-var/var-picker.tsx": {
|
||||
"jsx_a11y/click-events-have-key-events": {
|
||||
"count": 1
|
||||
@ -592,11 +559,6 @@
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/app/components/app/create-app-dialog/app-list/index.tsx": {
|
||||
"no-restricted-imports": {
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/app/components/app/create-app-dialog/app-list/sidebar.tsx": {
|
||||
"erasable-syntax-only/enums": {
|
||||
"count": 1
|
||||
@ -665,14 +627,6 @@
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/app/components/app/switch-app-modal/index.tsx": {
|
||||
"eslint-react/set-state-in-effect": {
|
||||
"count": 1
|
||||
},
|
||||
"no-restricted-imports": {
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/app/components/app/text-generate/item/index.tsx": {
|
||||
"typescript/no-explicit-any": {
|
||||
"count": 3
|
||||
@ -709,17 +663,6 @@
|
||||
"count": 2
|
||||
}
|
||||
},
|
||||
"web/app/components/apps/app-card.tsx": {
|
||||
"jsx_a11y/click-events-have-key-events": {
|
||||
"count": 1
|
||||
},
|
||||
"jsx_a11y/no-noninteractive-element-to-interactive-role": {
|
||||
"count": 1
|
||||
},
|
||||
"jsx_a11y/no-static-element-interactions": {
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/app/components/apps/import-from-marketplace-template-modal.tsx": {
|
||||
"jsx_a11y/click-events-have-key-events": {
|
||||
"count": 1
|
||||
@ -1493,7 +1436,7 @@
|
||||
},
|
||||
"web/app/components/base/icons/src/vender/solid/development/index.ts": {
|
||||
"no-barrel-files/no-barrel-files": {
|
||||
"count": 4
|
||||
"count": 3
|
||||
}
|
||||
},
|
||||
"web/app/components/base/icons/src/vender/solid/editor/index.ts": {
|
||||
@ -1503,7 +1446,7 @@
|
||||
},
|
||||
"web/app/components/base/icons/src/vender/solid/education/index.ts": {
|
||||
"no-barrel-files/no-barrel-files": {
|
||||
"count": 2
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/app/components/base/icons/src/vender/solid/files/index.ts": {
|
||||
@ -2002,17 +1945,6 @@
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/app/components/base/tab-slider/index.tsx": {
|
||||
"eslint-react/set-state-in-effect": {
|
||||
"count": 2
|
||||
},
|
||||
"jsx_a11y/click-events-have-key-events": {
|
||||
"count": 1
|
||||
},
|
||||
"jsx_a11y/no-static-element-interactions": {
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/app/components/base/tag-input/index.stories.tsx": {
|
||||
"jsx_a11y/label-has-associated-control": {
|
||||
"count": 12
|
||||
@ -2721,14 +2653,6 @@
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/app/components/datasets/list/dataset-card/__tests__/index.spec.tsx": {
|
||||
"jsx_a11y/click-events-have-key-events": {
|
||||
"count": 1
|
||||
},
|
||||
"jsx_a11y/no-static-element-interactions": {
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/app/components/datasets/list/dataset-card/components/operations-dropdown.tsx": {
|
||||
"jsx_a11y/click-events-have-key-events": {
|
||||
"count": 1
|
||||
@ -2840,11 +2764,6 @@
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/app/components/explore/learn-dify/item.tsx": {
|
||||
"jsx_a11y/no-noninteractive-element-interactions": {
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/app/components/explore/try-app/app/text-generation.tsx": {
|
||||
"jsx_a11y/click-events-have-key-events": {
|
||||
"count": 1
|
||||
@ -2921,14 +2840,6 @@
|
||||
"count": 4
|
||||
}
|
||||
},
|
||||
"web/app/components/header/account-setting/model-provider-page/hooks.ts": {
|
||||
"eslint-react/no-unnecessary-use-prefix": {
|
||||
"count": 1
|
||||
},
|
||||
"typescript/no-explicit-any": {
|
||||
"count": 2
|
||||
}
|
||||
},
|
||||
"web/app/components/header/account-setting/model-provider-page/model-auth/add-custom-model.tsx": {
|
||||
"jsx_a11y/click-events-have-key-events": {
|
||||
"count": 2
|
||||
@ -2953,14 +2864,6 @@
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/app/components/header/account-setting/model-provider-page/model-auth/config-model.tsx": {
|
||||
"jsx_a11y/click-events-have-key-events": {
|
||||
"count": 1
|
||||
},
|
||||
"jsx_a11y/no-static-element-interactions": {
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/app/components/header/account-setting/model-provider-page/model-auth/credential-selector.tsx": {
|
||||
"jsx_a11y/click-events-have-key-events": {
|
||||
"count": 1
|
||||
@ -3004,11 +2907,6 @@
|
||||
"count": 5
|
||||
}
|
||||
},
|
||||
"web/app/components/header/account-setting/model-provider-page/model-parameter-modal/configuration-button.tsx": {
|
||||
"typescript/no-explicit-any": {
|
||||
"count": 2
|
||||
}
|
||||
},
|
||||
"web/app/components/header/account-setting/model-provider-page/model-parameter-modal/model-display.tsx": {
|
||||
"typescript/no-explicit-any": {
|
||||
"count": 1
|
||||
@ -3390,14 +3288,6 @@
|
||||
"count": 25
|
||||
}
|
||||
},
|
||||
"web/app/components/plugins/update-plugin/plugin-version-picker.tsx": {
|
||||
"jsx_a11y/click-events-have-key-events": {
|
||||
"count": 1
|
||||
},
|
||||
"jsx_a11y/no-static-element-interactions": {
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/app/components/rag-pipeline/components/__tests__/publish-as-knowledge-pipeline-modal.spec.tsx": {
|
||||
"jsx_a11y/click-events-have-key-events": {
|
||||
"count": 1
|
||||
@ -4833,9 +4723,6 @@
|
||||
},
|
||||
"web/app/components/workflow/nodes/llm/use-config.ts": {
|
||||
"eslint-react/set-state-in-effect": {
|
||||
"count": 2
|
||||
},
|
||||
"typescript/no-explicit-any": {
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
@ -5336,28 +5223,17 @@
|
||||
"count": 2
|
||||
}
|
||||
},
|
||||
"web/app/components/workflow/panel/env-panel/index.tsx": {
|
||||
"jsx_a11y/click-events-have-key-events": {
|
||||
"count": 1
|
||||
},
|
||||
"jsx_a11y/no-static-element-interactions": {
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/app/components/workflow/panel/env-panel/variable-modal.tsx": {
|
||||
"eslint-react/set-state-in-effect": {
|
||||
"count": 4
|
||||
},
|
||||
"jsx_a11y/click-events-have-key-events": {
|
||||
"count": 4
|
||||
},
|
||||
"jsx_a11y/no-static-element-interactions": {
|
||||
"count": 4
|
||||
},
|
||||
"no-restricted-imports": {
|
||||
"count": 1
|
||||
},
|
||||
"typescript/no-explicit-any": {
|
||||
"jsx_a11y/no-static-element-interactions": {
|
||||
"count": 1
|
||||
},
|
||||
"no-restricted-imports": {
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
@ -5369,11 +5245,6 @@
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/app/components/workflow/panel/human-input-form-list.tsx": {
|
||||
"typescript/no-explicit-any": {
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/app/components/workflow/panel/inputs-panel.tsx": {
|
||||
"jsx_a11y/no-autofocus": {
|
||||
"count": 1
|
||||
@ -5600,7 +5471,7 @@
|
||||
"count": 3
|
||||
},
|
||||
"typescript/no-explicit-any": {
|
||||
"count": 8
|
||||
"count": 6
|
||||
}
|
||||
},
|
||||
"web/app/components/workflow/update-dsl-modal.tsx": {
|
||||
@ -5873,14 +5744,6 @@
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/features/tag-management/components/dataset-card-tags.tsx": {
|
||||
"jsx_a11y/click-events-have-key-events": {
|
||||
"count": 1
|
||||
},
|
||||
"jsx_a11y/no-static-element-interactions": {
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/features/tag-management/components/tag-item-editor.tsx": {
|
||||
"jsx_a11y/no-autofocus": {
|
||||
"count": 1
|
||||
@ -5929,11 +5792,6 @@
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/models/app.ts": {
|
||||
"erasable-syntax-only/enums": {
|
||||
"count": 2
|
||||
}
|
||||
},
|
||||
"web/models/datasets.ts": {
|
||||
"erasable-syntax-only/enums": {
|
||||
"count": 7
|
||||
@ -6024,7 +5882,7 @@
|
||||
"count": 1
|
||||
},
|
||||
"typescript/no-explicit-any": {
|
||||
"count": 6
|
||||
"count": 4
|
||||
}
|
||||
},
|
||||
"web/service/base.ts": {
|
||||
@ -6045,7 +5903,7 @@
|
||||
"count": 1
|
||||
},
|
||||
"typescript/no-explicit-any": {
|
||||
"count": 8
|
||||
"count": 6
|
||||
}
|
||||
},
|
||||
"web/service/datasets.ts": {
|
||||
@ -6053,7 +5911,7 @@
|
||||
"count": 1
|
||||
},
|
||||
"typescript/no-explicit-any": {
|
||||
"count": 5
|
||||
"count": 3
|
||||
}
|
||||
},
|
||||
"web/service/debug.ts": {
|
||||
@ -6158,21 +6016,11 @@
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/service/use-apps.ts": {
|
||||
"no-restricted-imports": {
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/service/use-datasource.ts": {
|
||||
"no-restricted-imports": {
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/service/use-education.ts": {
|
||||
"no-restricted-imports": {
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"web/service/use-endpoints.ts": {
|
||||
"no-restricted-imports": {
|
||||
"count": 1
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -8,22 +8,6 @@ export type TenantListResponse = {
|
||||
workspaces: Array<TenantListItemResponse>
|
||||
}
|
||||
|
||||
export type TenantInfoResponse = {
|
||||
created_at?: number | null
|
||||
custom_config?: WorkspaceCustomConfigResponse | null
|
||||
id: string
|
||||
in_trial?: boolean | null
|
||||
name?: string | null
|
||||
next_credit_reset_date?: number | null
|
||||
plan?: string | null
|
||||
role?: string | null
|
||||
status?: string | null
|
||||
trial_credits?: number | null
|
||||
trial_credits_exhausted_at?: number | null
|
||||
trial_credits_used?: number | null
|
||||
trial_end_reason?: string | null
|
||||
}
|
||||
|
||||
export type AgentProviderResponse = {
|
||||
[key: string]: unknown
|
||||
}
|
||||
@ -237,6 +221,24 @@ export type ModelProviderListResponse = {
|
||||
data: Array<ProviderResponse>
|
||||
}
|
||||
|
||||
export type ModelProviderCreditsResponse = {
|
||||
exhausted_at: number | null
|
||||
is_exhausted: boolean
|
||||
is_unlimited: boolean
|
||||
next_credit_reset_date: number | null
|
||||
pool_type: 'paid' | 'trial' | null
|
||||
quota_limit: number | null
|
||||
quota_used: number | null
|
||||
remaining_credits: number | null
|
||||
}
|
||||
|
||||
export type ModelProviderSummaryListResponse = {
|
||||
data: Array<ModelProviderSummaryResponse>
|
||||
plugins: {
|
||||
[key: string]: ModelProviderPluginSummaryResponse
|
||||
}
|
||||
}
|
||||
|
||||
export type ModelProviderPaymentCheckoutUrlResponse = {
|
||||
payment_link: string
|
||||
}
|
||||
@ -427,6 +429,10 @@ export type ParserPluginIdentifiers = {
|
||||
plugin_unique_identifiers: Array<string>
|
||||
}
|
||||
|
||||
export type PluginInstalledIdsResponse = {
|
||||
plugin_ids: Array<string>
|
||||
}
|
||||
|
||||
export type PluginListResponse = {
|
||||
plugins: Array<PluginEntity>
|
||||
total: number
|
||||
@ -741,13 +747,6 @@ export type SkillAssistMessagePayload = {
|
||||
target_path?: string | null
|
||||
}
|
||||
|
||||
export type SkillAssistHistoryMessagePayload = {
|
||||
content: string
|
||||
role: 'assistant' | 'user'
|
||||
suggested_display_name?: string | null
|
||||
suggested_name?: string | null
|
||||
}
|
||||
|
||||
export type SkillDraftFileOperationPayload = {
|
||||
content?: string | null
|
||||
expected_updated_at?: number | null
|
||||
@ -842,6 +841,14 @@ export type SkillVersionUpdatePayload = {
|
||||
version_name?: string | null
|
||||
}
|
||||
|
||||
export type CurrentWorkspaceSummaryResponse = {
|
||||
credits: number | null
|
||||
id: string
|
||||
name: string
|
||||
plan: string | null
|
||||
role: TenantAccountRole
|
||||
}
|
||||
|
||||
export type ToolLabelListResponse = Array<ToolLabel>
|
||||
|
||||
export type ApiToolProviderAddPayload = {
|
||||
@ -1207,6 +1214,11 @@ export type TriggerOAuthAuthorizeResponse = {
|
||||
|
||||
export type TriggerProviderListResponse = Array<TriggerProviderApiEntity>
|
||||
|
||||
export type WorkspaceCustomConfigResponse = {
|
||||
remove_webapp_brand?: boolean | null
|
||||
replace_webapp_logo?: string | null
|
||||
}
|
||||
|
||||
export type WorkspaceCustomConfigPayload = {
|
||||
remove_webapp_brand?: boolean | null
|
||||
replace_webapp_logo?: string | null
|
||||
@ -1244,11 +1256,6 @@ export type TenantListItemResponse = {
|
||||
status?: string | null
|
||||
}
|
||||
|
||||
export type WorkspaceCustomConfigResponse = {
|
||||
remove_webapp_brand?: boolean | null
|
||||
replace_webapp_logo?: string | null
|
||||
}
|
||||
|
||||
export type AgentSkillBindingItemResponse = {
|
||||
description: string
|
||||
display_name: string
|
||||
@ -1413,6 +1420,30 @@ export type ProviderResponse = {
|
||||
tenant_id: string
|
||||
}
|
||||
|
||||
export type ModelProviderSummaryResponse = {
|
||||
configurate_methods: Array<ConfigurateMethod>
|
||||
custom_configuration: ModelProviderCustomConfigurationSummaryResponse
|
||||
description?: I18nObject | null
|
||||
icon_small?: I18nObject | null
|
||||
icon_small_dark?: I18nObject | null
|
||||
is_configured: boolean
|
||||
label: I18nObject
|
||||
plugin_id: string
|
||||
preferred_provider_type: ProviderType
|
||||
provider: string
|
||||
supported_model_types: Array<ModelType>
|
||||
system_configuration: ModelProviderSystemConfigurationSummaryResponse
|
||||
}
|
||||
|
||||
export type ModelProviderPluginSummaryResponse = {
|
||||
installation_id: string
|
||||
plugin_id: string
|
||||
plugin_unique_identifier: string
|
||||
runtime_type: string
|
||||
source: PluginInstallationSource
|
||||
version: string
|
||||
}
|
||||
|
||||
export type ModelType = 'llm' | 'moderation' | 'rerank' | 'speech2text' | 'text-embedding' | 'tts'
|
||||
|
||||
export type ModelWithProviderEntityResponse = {
|
||||
@ -1748,6 +1779,13 @@ export type SkillAssistAttachmentPayload = {
|
||||
tool_file_id: string
|
||||
}
|
||||
|
||||
export type SkillAssistHistoryMessagePayload = {
|
||||
content: string
|
||||
role: 'assistant' | 'user'
|
||||
suggested_display_name?: string | null
|
||||
suggested_name?: string | null
|
||||
}
|
||||
|
||||
export type SkillAssistModelPayload = {
|
||||
model: string
|
||||
model_settings?: {
|
||||
@ -1810,6 +1848,8 @@ export type SkillReferenceResponse = {
|
||||
workflow_version?: string | null
|
||||
}
|
||||
|
||||
export type TenantAccountRole = 'admin' | 'dataset_operator' | 'editor' | 'normal' | 'owner'
|
||||
|
||||
export type ToolLabel = {
|
||||
icon: string
|
||||
label: I18nObject
|
||||
@ -1969,6 +2009,22 @@ export type TriggerProviderSubscriptionApiEntity = {
|
||||
workflows_in_use: number
|
||||
}
|
||||
|
||||
export type TenantInfoResponse = {
|
||||
created_at?: number | null
|
||||
custom_config?: WorkspaceCustomConfigResponse | null
|
||||
id: string
|
||||
in_trial?: boolean | null
|
||||
name?: string | null
|
||||
next_credit_reset_date?: number | null
|
||||
plan?: string | null
|
||||
role?: string | null
|
||||
status?: string | null
|
||||
trial_credits?: number | null
|
||||
trial_credits_exhausted_at?: number | null
|
||||
trial_credits_used?: number | null
|
||||
trial_end_reason?: string | null
|
||||
}
|
||||
|
||||
export type PluginDependencyType = 'github' | 'marketplace' | 'package'
|
||||
|
||||
export type Github = {
|
||||
@ -2037,6 +2093,21 @@ export type SystemConfigurationResponse = {
|
||||
quota_configurations?: Array<QuotaConfiguration>
|
||||
}
|
||||
|
||||
export type ModelProviderCustomConfigurationSummaryResponse = {
|
||||
available_credentials: Array<CredentialConfiguration>
|
||||
current_credential_id?: string | null
|
||||
current_credential_name?: string | null
|
||||
current_credential_usable: boolean
|
||||
has_custom_models: boolean
|
||||
status: CustomConfigurationStatus
|
||||
}
|
||||
|
||||
export type ModelProviderSystemConfigurationSummaryResponse = {
|
||||
enabled: boolean
|
||||
}
|
||||
|
||||
export type PluginInstallationSource = 'github' | 'marketplace' | 'package' | 'remote'
|
||||
|
||||
export type ModelFeature =
|
||||
| 'agent-thought'
|
||||
| 'audio'
|
||||
@ -2207,8 +2278,6 @@ export type PluginInstallTaskPluginStatus = {
|
||||
|
||||
export type PluginInstallTaskStatus = 'failed' | 'pending' | 'running' | 'success'
|
||||
|
||||
export type PluginInstallationSource = 'github' | 'marketplace' | 'package' | 'remote'
|
||||
|
||||
export type PluginDeclarationResponse = {
|
||||
agent_strategy?: {
|
||||
[key: string]: unknown
|
||||
@ -2746,20 +2815,6 @@ export type GetWorkspacesResponses = {
|
||||
|
||||
export type GetWorkspacesResponse = GetWorkspacesResponses[keyof GetWorkspacesResponses]
|
||||
|
||||
export type PostWorkspacesCurrentData = {
|
||||
body?: never
|
||||
path?: never
|
||||
query?: never
|
||||
url: '/workspaces/current'
|
||||
}
|
||||
|
||||
export type PostWorkspacesCurrentResponses = {
|
||||
200: TenantInfoResponse
|
||||
}
|
||||
|
||||
export type PostWorkspacesCurrentResponse =
|
||||
PostWorkspacesCurrentResponses[keyof PostWorkspacesCurrentResponses]
|
||||
|
||||
export type GetWorkspacesCurrentAgentProviderByProviderNameData = {
|
||||
body?: never
|
||||
path: {
|
||||
@ -3377,6 +3432,34 @@ export type GetWorkspacesCurrentModelProvidersResponses = {
|
||||
export type GetWorkspacesCurrentModelProvidersResponse =
|
||||
GetWorkspacesCurrentModelProvidersResponses[keyof GetWorkspacesCurrentModelProvidersResponses]
|
||||
|
||||
export type GetWorkspacesCurrentModelProvidersCreditsData = {
|
||||
body?: never
|
||||
path?: never
|
||||
query?: never
|
||||
url: '/workspaces/current/model-providers/credits'
|
||||
}
|
||||
|
||||
export type GetWorkspacesCurrentModelProvidersCreditsResponses = {
|
||||
200: ModelProviderCreditsResponse
|
||||
}
|
||||
|
||||
export type GetWorkspacesCurrentModelProvidersCreditsResponse =
|
||||
GetWorkspacesCurrentModelProvidersCreditsResponses[keyof GetWorkspacesCurrentModelProvidersCreditsResponses]
|
||||
|
||||
export type GetWorkspacesCurrentModelProvidersSummaryData = {
|
||||
body?: never
|
||||
path?: never
|
||||
query?: never
|
||||
url: '/workspaces/current/model-providers/summary'
|
||||
}
|
||||
|
||||
export type GetWorkspacesCurrentModelProvidersSummaryResponses = {
|
||||
200: ModelProviderSummaryListResponse
|
||||
}
|
||||
|
||||
export type GetWorkspacesCurrentModelProvidersSummaryResponse =
|
||||
GetWorkspacesCurrentModelProvidersSummaryResponses[keyof GetWorkspacesCurrentModelProvidersSummaryResponses]
|
||||
|
||||
export type GetWorkspacesCurrentModelProvidersByProviderCheckoutUrlData = {
|
||||
body?: never
|
||||
path: {
|
||||
@ -3923,6 +4006,22 @@ export type PostWorkspacesCurrentPluginInstallPkgResponses = {
|
||||
export type PostWorkspacesCurrentPluginInstallPkgResponse =
|
||||
PostWorkspacesCurrentPluginInstallPkgResponses[keyof PostWorkspacesCurrentPluginInstallPkgResponses]
|
||||
|
||||
export type GetWorkspacesCurrentPluginInstalledIdsData = {
|
||||
body?: never
|
||||
path?: never
|
||||
query: {
|
||||
category: 'agent-strategy' | 'datasource' | 'extension' | 'model' | 'tool' | 'trigger'
|
||||
}
|
||||
url: '/workspaces/current/plugin/installed-ids'
|
||||
}
|
||||
|
||||
export type GetWorkspacesCurrentPluginInstalledIdsResponses = {
|
||||
200: PluginInstalledIdsResponse
|
||||
}
|
||||
|
||||
export type GetWorkspacesCurrentPluginInstalledIdsResponse =
|
||||
GetWorkspacesCurrentPluginInstalledIdsResponses[keyof GetWorkspacesCurrentPluginInstalledIdsResponses]
|
||||
|
||||
export type GetWorkspacesCurrentPluginListData = {
|
||||
body?: never
|
||||
path?: never
|
||||
@ -4236,8 +4335,11 @@ export type GetWorkspacesCurrentPluginByCategoryListData = {
|
||||
category: string
|
||||
}
|
||||
query?: {
|
||||
language?: 'en_US' | 'ja_JP' | 'pt_BR' | 'zh_Hans'
|
||||
page?: number
|
||||
page_size?: number
|
||||
query?: string
|
||||
tags?: Array<string>
|
||||
}
|
||||
url: '/workspaces/current/plugin/{category}/list'
|
||||
}
|
||||
@ -5353,6 +5455,24 @@ export type PatchWorkspacesCurrentSkillsBySkillIdVersionsByVersionIdResponses =
|
||||
export type PatchWorkspacesCurrentSkillsBySkillIdVersionsByVersionIdResponse =
|
||||
PatchWorkspacesCurrentSkillsBySkillIdVersionsByVersionIdResponses[keyof PatchWorkspacesCurrentSkillsBySkillIdVersionsByVersionIdResponses]
|
||||
|
||||
export type GetWorkspacesCurrentSummaryData = {
|
||||
body?: never
|
||||
path?: never
|
||||
query?: never
|
||||
url: '/workspaces/current/summary'
|
||||
}
|
||||
|
||||
export type GetWorkspacesCurrentSummaryErrors = {
|
||||
409: unknown
|
||||
}
|
||||
|
||||
export type GetWorkspacesCurrentSummaryResponses = {
|
||||
200: CurrentWorkspaceSummaryResponse
|
||||
}
|
||||
|
||||
export type GetWorkspacesCurrentSummaryResponse =
|
||||
GetWorkspacesCurrentSummaryResponses[keyof GetWorkspacesCurrentSummaryResponses]
|
||||
|
||||
export type GetWorkspacesCurrentToolLabelsData = {
|
||||
body?: never
|
||||
path?: never
|
||||
@ -6252,6 +6372,20 @@ export type GetWorkspacesCurrentTriggersResponses = {
|
||||
export type GetWorkspacesCurrentTriggersResponse =
|
||||
GetWorkspacesCurrentTriggersResponses[keyof GetWorkspacesCurrentTriggersResponses]
|
||||
|
||||
export type GetWorkspacesCustomConfigData = {
|
||||
body?: never
|
||||
path?: never
|
||||
query?: never
|
||||
url: '/workspaces/custom-config'
|
||||
}
|
||||
|
||||
export type GetWorkspacesCustomConfigResponses = {
|
||||
200: WorkspaceCustomConfigResponse
|
||||
}
|
||||
|
||||
export type GetWorkspacesCustomConfigResponse =
|
||||
GetWorkspacesCustomConfigResponses[keyof GetWorkspacesCustomConfigResponses]
|
||||
|
||||
export type PostWorkspacesCustomConfigData = {
|
||||
body: WorkspaceCustomConfigPayload
|
||||
path?: never
|
||||
|
||||
@ -165,6 +165,20 @@ export const zMemberRoleUpdatePayload = z.object({
|
||||
role: z.string(),
|
||||
})
|
||||
|
||||
/**
|
||||
* ModelProviderCreditsResponse
|
||||
*/
|
||||
export const zModelProviderCreditsResponse = z.object({
|
||||
exhausted_at: z.int().nullable(),
|
||||
is_exhausted: z.boolean(),
|
||||
is_unlimited: z.boolean(),
|
||||
next_credit_reset_date: z.int().nullable(),
|
||||
pool_type: z.enum(['paid', 'trial']).nullable(),
|
||||
quota_limit: z.int().nullable(),
|
||||
quota_used: z.int().nullable(),
|
||||
remaining_credits: z.int().nullable(),
|
||||
})
|
||||
|
||||
/**
|
||||
* ModelProviderPaymentCheckoutUrlResponse
|
||||
*/
|
||||
@ -290,6 +304,13 @@ export const zParserPluginIdentifiers = z.object({
|
||||
plugin_unique_identifiers: z.array(z.string()),
|
||||
})
|
||||
|
||||
/**
|
||||
* PluginInstalledIdsResponse
|
||||
*/
|
||||
export const zPluginInstalledIdsResponse = z.object({
|
||||
plugin_ids: z.array(z.string()),
|
||||
})
|
||||
|
||||
/**
|
||||
* ParserLatest
|
||||
*/
|
||||
@ -723,6 +744,14 @@ export const zTriggerProviderErrorResponse = z.object({
|
||||
error: z.string(),
|
||||
})
|
||||
|
||||
/**
|
||||
* WorkspaceCustomConfigResponse
|
||||
*/
|
||||
export const zWorkspaceCustomConfigResponse = z.object({
|
||||
remove_webapp_brand: z.boolean().nullish(),
|
||||
replace_webapp_logo: z.string().nullish(),
|
||||
})
|
||||
|
||||
/**
|
||||
* WorkspaceCustomConfigPayload
|
||||
*/
|
||||
@ -772,49 +801,6 @@ export const zTenantListResponse = z.object({
|
||||
workspaces: z.array(zTenantListItemResponse),
|
||||
})
|
||||
|
||||
/**
|
||||
* WorkspaceCustomConfigResponse
|
||||
*/
|
||||
export const zWorkspaceCustomConfigResponse = z.object({
|
||||
remove_webapp_brand: z.boolean().nullish(),
|
||||
replace_webapp_logo: z.string().nullish(),
|
||||
})
|
||||
|
||||
/**
|
||||
* TenantInfoResponse
|
||||
*/
|
||||
export const zTenantInfoResponse = z.object({
|
||||
created_at: z.int().nullish(),
|
||||
custom_config: zWorkspaceCustomConfigResponse.nullish(),
|
||||
id: z.string(),
|
||||
in_trial: z.boolean().nullish(),
|
||||
name: z.string().nullish(),
|
||||
next_credit_reset_date: z.int().nullish(),
|
||||
plan: z.string().nullish(),
|
||||
role: z.string().nullish(),
|
||||
status: z.string().nullish(),
|
||||
trial_credits: z.int().nullish(),
|
||||
trial_credits_exhausted_at: z.int().nullish(),
|
||||
trial_credits_used: z.int().nullish(),
|
||||
trial_end_reason: z.string().nullish(),
|
||||
})
|
||||
|
||||
/**
|
||||
* WorkspaceTenantResultResponse
|
||||
*/
|
||||
export const zWorkspaceTenantResultResponse = z.object({
|
||||
result: z.string(),
|
||||
tenant: zTenantInfoResponse,
|
||||
})
|
||||
|
||||
/**
|
||||
* SwitchWorkspaceResponse
|
||||
*/
|
||||
export const zSwitchWorkspaceResponse = z.object({
|
||||
new_tenant: zTenantInfoResponse,
|
||||
result: z.string(),
|
||||
})
|
||||
|
||||
/**
|
||||
* AgentSkillBindingItemResponse
|
||||
*/
|
||||
@ -1513,6 +1499,16 @@ export const zSkillAssistAttachmentPayload = z.object({
|
||||
tool_file_id: z.string().min(1),
|
||||
})
|
||||
|
||||
/**
|
||||
* SkillAssistHistoryMessagePayload
|
||||
*/
|
||||
export const zSkillAssistHistoryMessagePayload = z.object({
|
||||
content: z.string().min(1).max(8000),
|
||||
role: z.enum(['assistant', 'user']),
|
||||
suggested_display_name: z.string().max(128).nullish(),
|
||||
suggested_name: z.string().max(128).nullish(),
|
||||
})
|
||||
|
||||
/**
|
||||
* SkillAssistModelPayload
|
||||
*/
|
||||
@ -1528,13 +1524,6 @@ export const zSkillAssistModelPayload = z.object({
|
||||
*
|
||||
* One user message and optional uploaded context for the Skill Authoring assistant.
|
||||
*/
|
||||
export const zSkillAssistHistoryMessagePayload = z.object({
|
||||
content: z.string().min(1).max(8000),
|
||||
role: z.enum(['assistant', 'user']),
|
||||
suggested_display_name: z.string().max(128).nullish(),
|
||||
suggested_name: z.string().max(128).nullish(),
|
||||
})
|
||||
|
||||
export const zSkillAssistMessagePayload = z.object({
|
||||
attachments: z.array(zSkillAssistAttachmentPayload).max(10).optional(),
|
||||
history: z.array(zSkillAssistHistoryMessagePayload).max(20).optional(),
|
||||
@ -1615,6 +1604,22 @@ export const zSkillReferenceListResponse = z.object({
|
||||
data: z.array(zSkillReferenceResponse).optional(),
|
||||
})
|
||||
|
||||
/**
|
||||
* TenantAccountRole
|
||||
*/
|
||||
export const zTenantAccountRole = z.enum(['admin', 'dataset_operator', 'editor', 'normal', 'owner'])
|
||||
|
||||
/**
|
||||
* CurrentWorkspaceSummaryResponse
|
||||
*/
|
||||
export const zCurrentWorkspaceSummaryResponse = z.object({
|
||||
credits: z.int().nullable(),
|
||||
id: z.string(),
|
||||
name: z.string(),
|
||||
plan: z.string().nullable(),
|
||||
role: zTenantAccountRole,
|
||||
})
|
||||
|
||||
/**
|
||||
* ToolEmojiIcon
|
||||
*/
|
||||
@ -1924,6 +1929,41 @@ export const zTriggerProviderSubscriptionListResponse = z.array(
|
||||
zTriggerProviderSubscriptionApiEntity,
|
||||
)
|
||||
|
||||
/**
|
||||
* TenantInfoResponse
|
||||
*/
|
||||
export const zTenantInfoResponse = z.object({
|
||||
created_at: z.int().nullish(),
|
||||
custom_config: zWorkspaceCustomConfigResponse.nullish(),
|
||||
id: z.string(),
|
||||
in_trial: z.boolean().nullish(),
|
||||
name: z.string().nullish(),
|
||||
next_credit_reset_date: z.int().nullish(),
|
||||
plan: z.string().nullish(),
|
||||
role: z.string().nullish(),
|
||||
status: z.string().nullish(),
|
||||
trial_credits: z.int().nullish(),
|
||||
trial_credits_exhausted_at: z.int().nullish(),
|
||||
trial_credits_used: z.int().nullish(),
|
||||
trial_end_reason: z.string().nullish(),
|
||||
})
|
||||
|
||||
/**
|
||||
* WorkspaceTenantResultResponse
|
||||
*/
|
||||
export const zWorkspaceTenantResultResponse = z.object({
|
||||
result: z.string(),
|
||||
tenant: zTenantInfoResponse,
|
||||
})
|
||||
|
||||
/**
|
||||
* SwitchWorkspaceResponse
|
||||
*/
|
||||
export const zSwitchWorkspaceResponse = z.object({
|
||||
new_tenant: zTenantInfoResponse,
|
||||
result: z.string(),
|
||||
})
|
||||
|
||||
/**
|
||||
* PluginDependencyType
|
||||
*/
|
||||
@ -1983,6 +2023,30 @@ export const zConfigurateMethod = z.enum(['customizable-model', 'predefined-mode
|
||||
*/
|
||||
export const zProviderType = z.enum(['custom', 'system'])
|
||||
|
||||
/**
|
||||
* ModelProviderSystemConfigurationSummaryResponse
|
||||
*/
|
||||
export const zModelProviderSystemConfigurationSummaryResponse = z.object({
|
||||
enabled: z.boolean(),
|
||||
})
|
||||
|
||||
/**
|
||||
* PluginInstallationSource
|
||||
*/
|
||||
export const zPluginInstallationSource = z.enum(['github', 'marketplace', 'package', 'remote'])
|
||||
|
||||
/**
|
||||
* ModelProviderPluginSummaryResponse
|
||||
*/
|
||||
export const zModelProviderPluginSummaryResponse = z.object({
|
||||
installation_id: z.string(),
|
||||
plugin_id: z.string(),
|
||||
plugin_unique_identifier: z.string(),
|
||||
runtime_type: z.string(),
|
||||
source: zPluginInstallationSource,
|
||||
version: z.string(),
|
||||
})
|
||||
|
||||
/**
|
||||
* ModelFeature
|
||||
*
|
||||
@ -2173,6 +2237,46 @@ export const zAvailableModelListResponse = z.object({
|
||||
data: z.array(zProviderWithModelsResponse),
|
||||
})
|
||||
|
||||
/**
|
||||
* ModelProviderCustomConfigurationSummaryResponse
|
||||
*/
|
||||
export const zModelProviderCustomConfigurationSummaryResponse = z.object({
|
||||
available_credentials: z.array(zCredentialConfiguration),
|
||||
current_credential_id: z.string().nullish(),
|
||||
current_credential_name: z.string().nullish(),
|
||||
current_credential_usable: z.boolean(),
|
||||
has_custom_models: z.boolean(),
|
||||
status: zCustomConfigurationStatus,
|
||||
})
|
||||
|
||||
/**
|
||||
* ModelProviderSummaryResponse
|
||||
*
|
||||
* Fields required to render the collapsed model-provider list.
|
||||
*/
|
||||
export const zModelProviderSummaryResponse = z.object({
|
||||
configurate_methods: z.array(zConfigurateMethod),
|
||||
custom_configuration: zModelProviderCustomConfigurationSummaryResponse,
|
||||
description: zI18nObject.nullish(),
|
||||
icon_small: zI18nObject.nullish(),
|
||||
icon_small_dark: zI18nObject.nullish(),
|
||||
is_configured: z.boolean(),
|
||||
label: zI18nObject,
|
||||
plugin_id: z.string(),
|
||||
preferred_provider_type: zProviderType,
|
||||
provider: z.string(),
|
||||
supported_model_types: z.array(zModelType),
|
||||
system_configuration: zModelProviderSystemConfigurationSummaryResponse,
|
||||
})
|
||||
|
||||
/**
|
||||
* ModelProviderSummaryListResponse
|
||||
*/
|
||||
export const zModelProviderSummaryListResponse = z.object({
|
||||
data: z.array(zModelProviderSummaryResponse),
|
||||
plugins: z.record(z.string(), zModelProviderPluginSummaryResponse),
|
||||
})
|
||||
|
||||
/**
|
||||
* TenantPluginAutoUpgradeStrategySetting
|
||||
*/
|
||||
@ -2318,11 +2422,6 @@ export const zPluginTaskResponse = z.object({
|
||||
task: zPluginInstallTask,
|
||||
})
|
||||
|
||||
/**
|
||||
* PluginInstallationSource
|
||||
*/
|
||||
export const zPluginInstallationSource = z.enum(['github', 'marketplace', 'package', 'remote'])
|
||||
|
||||
/**
|
||||
* PluginBundleDependencyType
|
||||
*/
|
||||
@ -3836,11 +3935,6 @@ export const zAccountWithRoleListResponseWritable = z.object({
|
||||
*/
|
||||
export const zGetWorkspacesResponse = zTenantListResponse
|
||||
|
||||
/**
|
||||
* Success
|
||||
*/
|
||||
export const zPostWorkspacesCurrentResponse = zTenantInfoResponse
|
||||
|
||||
export const zGetWorkspacesCurrentAgentProviderByProviderNamePath = z.object({
|
||||
provider_name: z.string(),
|
||||
})
|
||||
@ -4149,6 +4243,16 @@ export const zGetWorkspacesCurrentModelProvidersQuery = z.object({
|
||||
*/
|
||||
export const zGetWorkspacesCurrentModelProvidersResponse = zModelProviderListResponse
|
||||
|
||||
/**
|
||||
* Model provider credits retrieved successfully
|
||||
*/
|
||||
export const zGetWorkspacesCurrentModelProvidersCreditsResponse = zModelProviderCreditsResponse
|
||||
|
||||
/**
|
||||
* Model provider summaries retrieved successfully
|
||||
*/
|
||||
export const zGetWorkspacesCurrentModelProvidersSummaryResponse = zModelProviderSummaryListResponse
|
||||
|
||||
export const zGetWorkspacesCurrentModelProvidersByProviderCheckoutUrlPath = z.object({
|
||||
provider: z.string(),
|
||||
})
|
||||
@ -4524,6 +4628,15 @@ export const zPostWorkspacesCurrentPluginInstallPkgBody = zParserPluginIdentifie
|
||||
*/
|
||||
export const zPostWorkspacesCurrentPluginInstallPkgResponse = zPluginInstallTaskStartResponse
|
||||
|
||||
export const zGetWorkspacesCurrentPluginInstalledIdsQuery = z.object({
|
||||
category: z.enum(['agent-strategy', 'datasource', 'extension', 'model', 'tool', 'trigger']),
|
||||
})
|
||||
|
||||
/**
|
||||
* Success
|
||||
*/
|
||||
export const zGetWorkspacesCurrentPluginInstalledIdsResponse = zPluginInstalledIdsResponse
|
||||
|
||||
export const zGetWorkspacesCurrentPluginListQuery = z.object({
|
||||
page: z.int().gte(1).optional().default(1),
|
||||
page_size: z.int().gte(1).lte(256).optional().default(256),
|
||||
@ -4694,8 +4807,11 @@ export const zGetWorkspacesCurrentPluginByCategoryListPath = z.object({
|
||||
})
|
||||
|
||||
export const zGetWorkspacesCurrentPluginByCategoryListQuery = z.object({
|
||||
language: z.enum(['en_US', 'ja_JP', 'pt_BR', 'zh_Hans']).optional().default('en_US'),
|
||||
page: z.int().gte(1).optional().default(1),
|
||||
page_size: z.int().gte(1).lte(256).optional().default(256),
|
||||
query: z.string().max(256).optional().default(''),
|
||||
tags: z.array(z.string()).max(128).optional(),
|
||||
})
|
||||
|
||||
/**
|
||||
@ -5387,6 +5503,11 @@ export const zPatchWorkspacesCurrentSkillsBySkillIdVersionsByVersionIdPath = z.o
|
||||
export const zPatchWorkspacesCurrentSkillsBySkillIdVersionsByVersionIdResponse =
|
||||
zSkillVersionResponse
|
||||
|
||||
/**
|
||||
* Success
|
||||
*/
|
||||
export const zGetWorkspacesCurrentSummaryResponse = zCurrentWorkspaceSummaryResponse
|
||||
|
||||
/**
|
||||
* Tool labels retrieved successfully
|
||||
*/
|
||||
@ -5940,6 +6061,11 @@ export const zPostWorkspacesCurrentTriggerProviderBySubscriptionIdSubscriptionsU
|
||||
*/
|
||||
export const zGetWorkspacesCurrentTriggersResponse = zTriggerProviderListResponse
|
||||
|
||||
/**
|
||||
* Success
|
||||
*/
|
||||
export const zGetWorkspacesCustomConfigResponse = zWorkspaceCustomConfigResponse
|
||||
|
||||
export const zPostWorkspacesCustomConfigBody = zWorkspaceCustomConfigPayload
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user