mirror of
https://github.com/cloudflare/cloudflare-python.git
synced 2026-01-17 07:10:37 +00:00
feat(api): OpenAPI spec update via Stainless API (#1150)
This commit is contained in:
parent
b017f04e5b
commit
11218de0b1
5 changed files with 14 additions and 12 deletions
|
|
@ -1,2 +1,2 @@
|
|||
configured_endpoints: 1254
|
||||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5e3cc17dacbf34ea6c55cfa520e9852ce21b11a0a722ad53edcc7e7fe4299a1e.yml
|
||||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e162f6d2b8d992c37325f085f70201b88fce7c9fb8959d5fb9f92423f7de9b47.yml
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
-e file:.
|
||||
annotated-types==0.6.0
|
||||
# via pydantic
|
||||
anyio==4.1.0
|
||||
anyio==4.4.0
|
||||
# via cloudflare
|
||||
# via httpx
|
||||
argcomplete==3.1.2
|
||||
|
|
@ -86,6 +86,7 @@ tomli==2.0.1
|
|||
# via mypy
|
||||
# via pytest
|
||||
typing-extensions==4.8.0
|
||||
# via anyio
|
||||
# via cloudflare
|
||||
# via mypy
|
||||
# via pydantic
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
-e file:.
|
||||
annotated-types==0.6.0
|
||||
# via pydantic
|
||||
anyio==4.1.0
|
||||
anyio==4.4.0
|
||||
# via cloudflare
|
||||
# via httpx
|
||||
certifi==2023.7.22
|
||||
|
|
@ -38,6 +38,7 @@ sniffio==1.3.0
|
|||
# via cloudflare
|
||||
# via httpx
|
||||
typing-extensions==4.8.0
|
||||
# via anyio
|
||||
# via cloudflare
|
||||
# via pydantic
|
||||
# via pydantic-core
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ __all__ = [
|
|||
"TextClassification",
|
||||
"TextToImage",
|
||||
"TextEmbeddings",
|
||||
"SpeechRecognition",
|
||||
"AutomaticSpeechRecognition",
|
||||
"ImageClassification",
|
||||
"ObjectDetection",
|
||||
"TextGeneration",
|
||||
|
|
@ -57,7 +57,7 @@ class TextEmbeddings(TypedDict, total=False):
|
|||
text: Required[Union[str, List[str]]]
|
||||
|
||||
|
||||
class SpeechRecognition(TypedDict, total=False):
|
||||
class AutomaticSpeechRecognition(TypedDict, total=False):
|
||||
account_id: Required[str]
|
||||
|
||||
audio: Required[Iterable[float]]
|
||||
|
|
@ -142,7 +142,7 @@ AIRunParams = Union[
|
|||
TextClassification,
|
||||
TextToImage,
|
||||
TextEmbeddings,
|
||||
SpeechRecognition,
|
||||
AutomaticSpeechRecognition,
|
||||
ImageClassification,
|
||||
ObjectDetection,
|
||||
TextGeneration,
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ __all__ = [
|
|||
"AIRunResponse",
|
||||
"TextClassification",
|
||||
"TextEmbeddings",
|
||||
"SpeechRecognition",
|
||||
"SpeechRecognitionWord",
|
||||
"AutomaticSpeechRecognition",
|
||||
"AutomaticSpeechRecognitionWord",
|
||||
"ImageClassification",
|
||||
"ObjectDetection",
|
||||
"ObjectDetectionBox",
|
||||
|
|
@ -33,7 +33,7 @@ class TextEmbeddings(BaseModel):
|
|||
shape: Optional[List[float]] = None
|
||||
|
||||
|
||||
class SpeechRecognitionWord(BaseModel):
|
||||
class AutomaticSpeechRecognitionWord(BaseModel):
|
||||
end: Optional[float] = None
|
||||
|
||||
start: Optional[float] = None
|
||||
|
|
@ -41,14 +41,14 @@ class SpeechRecognitionWord(BaseModel):
|
|||
word: Optional[str] = None
|
||||
|
||||
|
||||
class SpeechRecognition(BaseModel):
|
||||
class AutomaticSpeechRecognition(BaseModel):
|
||||
text: str
|
||||
|
||||
vtt: Optional[str] = None
|
||||
|
||||
word_count: Optional[float] = None
|
||||
|
||||
words: Optional[List[SpeechRecognitionWord]] = None
|
||||
words: Optional[List[AutomaticSpeechRecognitionWord]] = None
|
||||
|
||||
|
||||
class ImageClassification(BaseModel):
|
||||
|
|
@ -103,7 +103,7 @@ AIRunResponse = Union[
|
|||
List[TextClassification],
|
||||
object,
|
||||
TextEmbeddings,
|
||||
SpeechRecognition,
|
||||
AutomaticSpeechRecognition,
|
||||
List[ImageClassification],
|
||||
List[ObjectDetection],
|
||||
UnionMember6,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue