syllable-sdk 0.44.1__py3-none-any.whl → 0.44.12__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- syllable_sdk/_version.py +4 -4
- syllable_sdk/directory.py +100 -39
- syllable_sdk/models/__init__.py +62 -19
- syllable_sdk/models/agentsttprovider.py +1 -0
- syllable_sdk/models/bridgephrasesconfig.py +0 -9
- syllable_sdk/models/{schemas_tts_v1_pronunciations_dictionarymetadata.py → dictionarymetadata.py} +2 -2
- syllable_sdk/models/directory_member_createop.py +28 -0
- syllable_sdk/models/directory_member_downloadop.py +21 -0
- syllable_sdk/models/directory_member_get_by_idop.py +12 -2
- syllable_sdk/models/directory_member_listop.py +28 -18
- syllable_sdk/models/directory_member_test_extensionop.py +4 -5
- syllable_sdk/models/directory_member_updateop.py +17 -2
- syllable_sdk/models/directorymembertestresponse.py +9 -4
- syllable_sdk/models/directoryresponseformat.py +11 -0
- syllable_sdk/models/eventtaskevents.py +1 -4
- syllable_sdk/models/expressiontask.py +2 -2
- syllable_sdk/models/expressiontaskevents.py +4 -6
- syllable_sdk/models/getvalueaction.py +151 -0
- syllable_sdk/models/pronunciationoverridesdictionary.py +3 -6
- syllable_sdk/models/stepeventactions.py +14 -7
- syllable_sdk/models/toolparametertransform.py +5 -3
- syllable_sdk/pronunciations.py +4 -8
- {syllable_sdk-0.44.1.dist-info → syllable_sdk-0.44.12.dist-info}/METADATA +39 -39
- {syllable_sdk-0.44.1.dist-info → syllable_sdk-0.44.12.dist-info}/RECORD +25 -22
- syllable_sdk/models/schemas_cortex_v1_bridge_phrases_dictionarymetadata.py +0 -67
- {syllable_sdk-0.44.1.dist-info → syllable_sdk-0.44.12.dist-info}/WHEEL +0 -0
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
from pydantic import model_serializer
|
|
5
|
-
from syllable_sdk.types import (
|
|
6
|
-
BaseModel,
|
|
7
|
-
Nullable,
|
|
8
|
-
OptionalNullable,
|
|
9
|
-
UNSET,
|
|
10
|
-
UNSET_SENTINEL,
|
|
11
|
-
)
|
|
12
|
-
from typing import Optional
|
|
13
|
-
from typing_extensions import NotRequired, TypedDict
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
class SchemasCortexV1BridgePhrasesDictionaryMetadataTypedDict(TypedDict):
|
|
17
|
-
r"""Metadata for the bridge phrases dictionary."""
|
|
18
|
-
|
|
19
|
-
hash: NotRequired[Nullable[str]]
|
|
20
|
-
r"""Hash of the dictionary content."""
|
|
21
|
-
source: NotRequired[Nullable[str]]
|
|
22
|
-
r"""Source of the dictionary (e.g. filename)."""
|
|
23
|
-
entries: NotRequired[int]
|
|
24
|
-
r"""Number of entries in the dictionary."""
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
class SchemasCortexV1BridgePhrasesDictionaryMetadata(BaseModel):
|
|
28
|
-
r"""Metadata for the bridge phrases dictionary."""
|
|
29
|
-
|
|
30
|
-
hash: OptionalNullable[str] = UNSET
|
|
31
|
-
r"""Hash of the dictionary content."""
|
|
32
|
-
|
|
33
|
-
source: OptionalNullable[str] = UNSET
|
|
34
|
-
r"""Source of the dictionary (e.g. filename)."""
|
|
35
|
-
|
|
36
|
-
entries: Optional[int] = 0
|
|
37
|
-
r"""Number of entries in the dictionary."""
|
|
38
|
-
|
|
39
|
-
@model_serializer(mode="wrap")
|
|
40
|
-
def serialize_model(self, handler):
|
|
41
|
-
optional_fields = ["hash", "source", "entries"]
|
|
42
|
-
nullable_fields = ["hash", "source"]
|
|
43
|
-
null_default_fields = []
|
|
44
|
-
|
|
45
|
-
serialized = handler(self)
|
|
46
|
-
|
|
47
|
-
m = {}
|
|
48
|
-
|
|
49
|
-
for n, f in type(self).model_fields.items():
|
|
50
|
-
k = f.alias or n
|
|
51
|
-
val = serialized.get(k)
|
|
52
|
-
serialized.pop(k, None)
|
|
53
|
-
|
|
54
|
-
optional_nullable = k in optional_fields and k in nullable_fields
|
|
55
|
-
is_set = (
|
|
56
|
-
self.__pydantic_fields_set__.intersection({n})
|
|
57
|
-
or k in null_default_fields
|
|
58
|
-
) # pylint: disable=no-member
|
|
59
|
-
|
|
60
|
-
if val is not None and val != UNSET_SENTINEL:
|
|
61
|
-
m[k] = val
|
|
62
|
-
elif val != UNSET_SENTINEL and (
|
|
63
|
-
not k in optional_fields or (optional_nullable and is_set)
|
|
64
|
-
):
|
|
65
|
-
m[k] = val
|
|
66
|
-
|
|
67
|
-
return m
|
|
File without changes
|