Register IconTheme in OpenAPI schema after rmcp 1.5.0 upgrade (#8621)
Some checks are pending
Canary / Prepare Version (push) Waiting to run
Canary / build-cli (push) Blocked by required conditions
Canary / Upload Install Script (push) Blocked by required conditions
Canary / bundle-desktop (push) Blocked by required conditions
Canary / bundle-desktop-intel (push) Blocked by required conditions
Canary / bundle-desktop-linux (push) Blocked by required conditions
Canary / bundle-desktop-windows (push) Blocked by required conditions
Canary / Release (push) Blocked by required conditions
Cargo Deny / deny (push) Waiting to run
Unused Dependencies / machete (push) Waiting to run
CI / changes (push) Waiting to run
CI / Check Rust Code Format (push) Blocked by required conditions
CI / Build and Test Rust Project (push) Blocked by required conditions
CI / Build Rust Project on Windows (push) Waiting to run
CI / Lint Rust Code (push) Blocked by required conditions
CI / Check Generated Schemas are Up-to-Date (push) Blocked by required conditions
CI / Test and Lint Electron Desktop App (push) Blocked by required conditions
Goose 2 CI / Lint & Format (push) Waiting to run
Goose 2 CI / Unit Tests (push) Waiting to run
Goose 2 CI / Desktop Build & E2E (push) Waiting to run
Goose 2 CI / Rust Lint (push) Waiting to run
Live Provider Tests / check-fork (push) Waiting to run
Live Provider Tests / changes (push) Blocked by required conditions
Live Provider Tests / Build Binary (push) Blocked by required conditions
Live Provider Tests / Smoke Tests (push) Blocked by required conditions
Live Provider Tests / Smoke Tests (Code Execution) (push) Blocked by required conditions
Live Provider Tests / Compaction Tests (push) Blocked by required conditions
Live Provider Tests / goose server HTTP integration tests (push) Blocked by required conditions
Publish Docker Image / docker (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run

Signed-off-by: jh-block <jhugo@block.xyz>
This commit is contained in:
jh-block 2026-04-17 14:14:58 +02:00 committed by GitHub
parent 69d89859a2
commit d52cde3fb9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 36 additions and 3 deletions

View file

@ -10,8 +10,8 @@ use goose::permission::permission_confirmation::{Permission, PrincipalType};
use goose::providers::base::{ConfigKey, ModelInfo, ProviderMetadata, ProviderType};
use goose::session::{Session, SessionInsights, SessionType, SystemInfo};
use rmcp::model::{
Annotations, Content, EmbeddedResource, Icon, ImageContent, JsonObject, RawAudioContent,
RawContent, RawEmbeddedResource, RawImageContent, RawResource, RawTextContent,
Annotations, Content, EmbeddedResource, Icon, IconTheme, ImageContent, JsonObject,
RawAudioContent, RawContent, RawEmbeddedResource, RawImageContent, RawResource, RawTextContent,
ResourceContents, Role, TaskSupport, TextContent, Tool, ToolAnnotations, ToolExecution,
};
use utoipa::{OpenApi, ToSchema};
@ -378,6 +378,7 @@ derive_utoipa!(Annotations as AnnotationsSchema);
derive_utoipa!(ResourceContents as ResourceContentsSchema);
derive_utoipa!(JsonObject as JsonObjectSchema);
derive_utoipa!(Icon as IconSchema);
derive_utoipa!(IconTheme as IconThemeSchema);
#[derive(OpenApi)]
#[openapi(
@ -577,6 +578,7 @@ derive_utoipa!(Icon as IconSchema);
SystemInfo,
Conversation,
IconSchema,
IconThemeSchema,
goose::session::extension_data::ExtensionData,
super::routes::schedule::CreateScheduleRequest,
super::routes::schedule::UpdateScheduleRequest,

View file

@ -5549,9 +5549,35 @@
},
"src": {
"type": "string"
},
"theme": {
"anyOf": [
{
"$ref": "#/components/schemas/IconTheme"
},
{
"type": "object"
}
]
}
}
},
"IconTheme": {
"oneOf": [
{
"type": "string",
"enum": [
"light"
]
},
{
"type": "string",
"enum": [
"dark"
]
}
]
},
"ImageContent": {
"type": "object",
"required": [

File diff suppressed because one or more lines are too long

View file

@ -549,8 +549,13 @@ export type Icon = {
mimeType?: string;
sizes?: Array<string>;
src: string;
theme?: IconTheme | {
[key: string]: unknown;
};
};
export type IconTheme = 'light' | 'dark';
export type ImageContent = {
_meta?: {
[key: string]: unknown;