Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion openapi/SPEC_COMMIT
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c01169e4e2d6e45053e06cd547e871881633bc4a
2859133debbec7d5be7573492e0b0d7cc194d0bf
27 changes: 27 additions & 0 deletions openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6187,6 +6187,9 @@ components:
- rateLimitDocsUrl
- issueRefSyntax
- label
- imageHosts
- avatarHosts
- signedAttachmentPrefix
properties:
autoMergeHeldByApp:
type: boolean
Expand Down Expand Up @@ -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
Expand Down
36 changes: 36 additions & 0 deletions src/forge_dashboard/_generated/models/forge_capabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

from ..types import UNSET, Unset

from typing import cast



Expand Down Expand Up @@ -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
Expand All @@ -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)


Expand Down Expand Up @@ -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)
Expand All @@ -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
Expand Down Expand Up @@ -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,
Expand All @@ -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,
)


Expand Down