Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#1076)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Jun 19, 2024
1 parent c1c61cf commit 799cc90
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1348
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6cbe8add32f8acdbd62db2535ff05cb698247f12ffc69168fc121409a8b05bec.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7c1749e86a3410071f606dc2289ff66d9c63b3fd27fb01c8f67bef49e521170d.yml
7 changes: 7 additions & 0 deletions src/cloudflare/types/stream/caption.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Optional
from typing_extensions import Literal

from ..._models import BaseModel

__all__ = ["Caption"]


class Caption(BaseModel):
generated: Optional[bool] = None
"""Whether the caption was generated via AI."""

label: Optional[str] = None
"""The language label displayed in the native language to users."""

language: Optional[str] = None
"""The language tag in BCP 47 format."""

status: Optional[Literal["ready", "inprogress", "error"]] = None
"""The status of a generated caption."""

0 comments on commit 799cc90

Please sign in to comment.