From b198b85921f59930937022f153b75e1ecf9a699b Mon Sep 17 00:00:00 2001 From: alrayyes <511318+alrayyes@users.noreply.github.com> Date: Thu, 19 Nov 2026 10:07:04 +0000 Subject: [PATCH] fix: regenerate client from updated forge-dashboard spec --- openapi/SPEC_COMMIT | 2 +- openapi/openapi.yaml | 27 ++++++++++++++ .../_generated/models/forge_capabilities.py | 36 +++++++++++++++++++ 3 files changed, 64 insertions(+), 1 deletion(-) diff --git a/openapi/SPEC_COMMIT b/openapi/SPEC_COMMIT index c7baf31..92d7d3d 100644 --- a/openapi/SPEC_COMMIT +++ b/openapi/SPEC_COMMIT @@ -1 +1 @@ -c01169e4e2d6e45053e06cd547e871881633bc4a +2859133debbec7d5be7573492e0b0d7cc194d0bf diff --git a/openapi/openapi.yaml b/openapi/openapi.yaml index 9442256..29d83e2 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -6187,6 +6187,9 @@ components: - rateLimitDocsUrl - issueRefSyntax - label + - imageHosts + - avatarHosts + - signedAttachmentPrefix properties: autoMergeHeldByApp: type: boolean @@ -6259,6 +6262,30 @@ components: label: type: string description: The forge's name as a person reads it, such as `GitHub`. + imageHosts: + type: array + items: + type: string + description: >- + The fixed public hosts an image embedded in the forge's text may + come from, each matched by its exact name, over https on the default + port. Empty means the forge's own saved instance. See + `GET /api/v1/images`. + avatarHosts: + type: array + items: + type: string + description: >- + Further fixed hosts that only avatars and repository logos load + from. Empty when they live on the forge's own instance. + signedAttachmentPrefix: + type: string + description: >- + The address prefix of an attachment the forge serves only at a + signed link found in the item's rendered body, such as + `https://github.com/user-attachments/`. Empty when the forge has no + such links. Passing `fullName` with the item then lets the server + find the signed link. ProviderStatus: type: object diff --git a/src/forge_dashboard/_generated/models/forge_capabilities.py b/src/forge_dashboard/_generated/models/forge_capabilities.py index 9706741..087b25e 100644 --- a/src/forge_dashboard/_generated/models/forge_capabilities.py +++ b/src/forge_dashboard/_generated/models/forge_capabilities.py @@ -8,6 +8,7 @@ from ..types import UNSET, Unset +from typing import cast @@ -50,6 +51,14 @@ class ForgeCapabilities: issue_ref_syntax (str): The forms the forge's text uses to reference an issue. Open-ended; today `hash_or_gh_prefix` (a hash sign or a `GH-` prefix before the number) and `hash` (the hash sign only). label (str): The forge's name as a person reads it, such as `GitHub`. + image_hosts (list[str]): The fixed public hosts an image embedded in the forge's text may come from, each + matched by its exact name, over https on the default port. Empty means the forge's own saved instance. See `GET + /api/v1/images`. + avatar_hosts (list[str]): Further fixed hosts that only avatars and repository logos load from. Empty when they + live on the forge's own instance. + signed_attachment_prefix (str): The address prefix of an attachment the forge serves only at a signed link found + in the item's rendered body, such as `https://github.com/user-attachments/`. Empty when the forge has no such + links. Passing `fullName` with the item then lets the server find the signed link. """ auto_merge_held_by_app: bool @@ -66,6 +75,9 @@ class ForgeCapabilities: rate_limit_docs_url: str issue_ref_syntax: str label: str + image_hosts: list[str] + avatar_hosts: list[str] + signed_attachment_prefix: str additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) @@ -101,6 +113,16 @@ def to_dict(self) -> dict[str, Any]: label = self.label + image_hosts = self.image_hosts + + + + avatar_hosts = self.avatar_hosts + + + + signed_attachment_prefix = self.signed_attachment_prefix + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) @@ -119,6 +141,9 @@ def to_dict(self) -> dict[str, Any]: "rateLimitDocsUrl": rate_limit_docs_url, "issueRefSyntax": issue_ref_syntax, "label": label, + "imageHosts": image_hosts, + "avatarHosts": avatar_hosts, + "signedAttachmentPrefix": signed_attachment_prefix, }) return field_dict @@ -156,6 +181,14 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: label = d.pop("label") + image_hosts = cast(list[str], d.pop("imageHosts")) + + + avatar_hosts = cast(list[str], d.pop("avatarHosts")) + + + signed_attachment_prefix = d.pop("signedAttachmentPrefix") + forge_capabilities = cls( auto_merge_held_by_app=auto_merge_held_by_app, checks_via_webhook=checks_via_webhook, @@ -171,6 +204,9 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: rate_limit_docs_url=rate_limit_docs_url, issue_ref_syntax=issue_ref_syntax, label=label, + image_hosts=image_hosts, + avatar_hosts=avatar_hosts, + signed_attachment_prefix=signed_attachment_prefix, )