syllable-sdk 0.44.4__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.
@@ -0,0 +1,28 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .directorymembercreate import DirectoryMemberCreate, DirectoryMemberCreateTypedDict
5
+ from .directoryresponseformat import DirectoryResponseFormat
6
+ from syllable_sdk.types import BaseModel
7
+ from syllable_sdk.utils import FieldMetadata, QueryParamMetadata, RequestMetadata
8
+ from typing import Optional
9
+ from typing_extensions import Annotated, NotRequired, TypedDict
10
+
11
+
12
+ class DirectoryMemberCreateRequestTypedDict(TypedDict):
13
+ directory_member_create: DirectoryMemberCreateTypedDict
14
+ response_format: NotRequired[DirectoryResponseFormat]
15
+ r"""Directory response format: normalized (default) strips @hours and formats times; raw returns stored @hours values."""
16
+
17
+
18
+ class DirectoryMemberCreateRequest(BaseModel):
19
+ directory_member_create: Annotated[
20
+ DirectoryMemberCreate,
21
+ FieldMetadata(request=RequestMetadata(media_type="application/json")),
22
+ ]
23
+
24
+ response_format: Annotated[
25
+ Optional[DirectoryResponseFormat],
26
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
27
+ ] = None
28
+ r"""Directory response format: normalized (default) strips @hours and formats times; raw returns stored @hours values."""
@@ -0,0 +1,21 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .directoryresponseformat import DirectoryResponseFormat
5
+ from syllable_sdk.types import BaseModel
6
+ from syllable_sdk.utils import FieldMetadata, QueryParamMetadata
7
+ from typing import Optional
8
+ from typing_extensions import Annotated, NotRequired, TypedDict
9
+
10
+
11
+ class DirectoryMemberDownloadRequestTypedDict(TypedDict):
12
+ response_format: NotRequired[DirectoryResponseFormat]
13
+ r"""Directory response format: normalized (default) strips @hours and formats times; raw returns stored @hours values."""
14
+
15
+
16
+ class DirectoryMemberDownloadRequest(BaseModel):
17
+ response_format: Annotated[
18
+ Optional[DirectoryResponseFormat],
19
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
20
+ ] = None
21
+ r"""Directory response format: normalized (default) strips @hours and formats times; raw returns stored @hours values."""
@@ -1,16 +1,26 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
+ from .directoryresponseformat import DirectoryResponseFormat
4
5
  from syllable_sdk.types import BaseModel
5
- from syllable_sdk.utils import FieldMetadata, PathParamMetadata
6
- from typing_extensions import Annotated, TypedDict
6
+ from syllable_sdk.utils import FieldMetadata, PathParamMetadata, QueryParamMetadata
7
+ from typing import Optional
8
+ from typing_extensions import Annotated, NotRequired, TypedDict
7
9
 
8
10
 
9
11
  class DirectoryMemberGetByIDRequestTypedDict(TypedDict):
10
12
  member_id: int
13
+ response_format: NotRequired[DirectoryResponseFormat]
14
+ r"""Directory response format: normalized (default) strips @hours and formats times; raw returns stored @hours values."""
11
15
 
12
16
 
13
17
  class DirectoryMemberGetByIDRequest(BaseModel):
14
18
  member_id: Annotated[
15
19
  int, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
16
20
  ]
21
+
22
+ response_format: Annotated[
23
+ Optional[DirectoryResponseFormat],
24
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
25
+ ] = None
26
+ r"""Directory response format: normalized (default) strips @hours and formats times; raw returns stored @hours values."""
@@ -2,6 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .directorymemberproperties import DirectoryMemberProperties
5
+ from .directoryresponseformat import DirectoryResponseFormat
5
6
  from .orderbydirection import OrderByDirection
6
7
  from pydantic import model_serializer
7
8
  from syllable_sdk.types import (
@@ -17,84 +18,93 @@ from typing_extensions import Annotated, NotRequired, TypedDict
17
18
 
18
19
 
19
20
  class DirectoryMemberListRequestTypedDict(TypedDict):
21
+ response_format: NotRequired[DirectoryResponseFormat]
22
+ r"""Directory response format: normalized (default) strips @hours and formats times; raw returns stored @hours values."""
20
23
  page: NotRequired[Nullable[int]]
21
- r"""The page number from which to start (0-based)"""
24
+ r"""Page number (0-based)"""
22
25
  limit: NotRequired[int]
23
- r"""The maximum number of items to return"""
26
+ r"""Items per page"""
24
27
  search_fields: NotRequired[List[DirectoryMemberProperties]]
25
- r"""String names of fields to search. Correspond by index to search field values"""
28
+ r"""Fields to search; aligns with search_field_values"""
26
29
  search_field_values: NotRequired[List[str]]
27
- r"""Values of fields to search. Correspond by index to search fields. Unless field name contains \"list\", an individual search field value cannot be a list"""
30
+ r"""Values for search_fields in matching order"""
28
31
  order_by: NotRequired[Nullable[DirectoryMemberProperties]]
29
- r"""The field whose value should be used to order the results"""
32
+ r"""Field to order results by"""
30
33
  order_by_direction: NotRequired[Nullable[OrderByDirection]]
31
- r"""The direction in which to order the results"""
34
+ r"""Direction to order results"""
32
35
  fields: NotRequired[Nullable[List[DirectoryMemberProperties]]]
33
- r"""The fields to include in the response"""
36
+ r"""Fields to include in response"""
34
37
  start_datetime: NotRequired[Nullable[str]]
35
- r"""The start datetime for filtering results"""
38
+ r"""Start datetime for filtering results"""
36
39
  end_datetime: NotRequired[Nullable[str]]
37
- r"""The end datetime for filtering results"""
40
+ r"""End datetime for filtering results"""
38
41
 
39
42
 
40
43
  class DirectoryMemberListRequest(BaseModel):
44
+ response_format: Annotated[
45
+ Optional[DirectoryResponseFormat],
46
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
47
+ ] = None
48
+ r"""Directory response format: normalized (default) strips @hours and formats times; raw returns stored @hours values."""
49
+
41
50
  page: Annotated[
42
51
  OptionalNullable[int],
43
52
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
44
53
  ] = UNSET
45
- r"""The page number from which to start (0-based)"""
54
+ r"""Page number (0-based)"""
46
55
 
47
56
  limit: Annotated[
48
57
  Optional[int],
49
58
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
50
59
  ] = 25
51
- r"""The maximum number of items to return"""
60
+ r"""Items per page"""
52
61
 
53
62
  search_fields: Annotated[
54
63
  Optional[List[DirectoryMemberProperties]],
55
64
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
56
65
  ] = None
57
- r"""String names of fields to search. Correspond by index to search field values"""
66
+ r"""Fields to search; aligns with search_field_values"""
58
67
 
59
68
  search_field_values: Annotated[
60
69
  Optional[List[str]],
61
70
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
62
71
  ] = None
63
- r"""Values of fields to search. Correspond by index to search fields. Unless field name contains \"list\", an individual search field value cannot be a list"""
72
+ r"""Values for search_fields in matching order"""
64
73
 
65
74
  order_by: Annotated[
66
75
  OptionalNullable[DirectoryMemberProperties],
67
76
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
68
77
  ] = UNSET
69
- r"""The field whose value should be used to order the results"""
78
+ r"""Field to order results by"""
70
79
 
71
80
  order_by_direction: Annotated[
72
81
  OptionalNullable[OrderByDirection],
73
82
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
74
83
  ] = UNSET
75
- r"""The direction in which to order the results"""
84
+ r"""Direction to order results"""
76
85
 
77
86
  fields: Annotated[
78
87
  OptionalNullable[List[DirectoryMemberProperties]],
79
88
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
80
89
  ] = UNSET
81
- r"""The fields to include in the response"""
90
+ r"""Fields to include in response"""
82
91
 
83
92
  start_datetime: Annotated[
84
93
  OptionalNullable[str],
85
94
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
86
95
  ] = UNSET
87
- r"""The start datetime for filtering results"""
96
+ r"""Start datetime for filtering results"""
88
97
 
89
98
  end_datetime: Annotated[
90
99
  OptionalNullable[str],
91
100
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
92
101
  ] = UNSET
93
- r"""The end datetime for filtering results"""
102
+ r"""End datetime for filtering results"""
94
103
 
95
104
  @model_serializer(mode="wrap")
96
105
  def serialize_model(self, handler):
97
106
  optional_fields = [
107
+ "response_format",
98
108
  "page",
99
109
  "limit",
100
110
  "search_fields",
@@ -2,14 +2,23 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .directorymemberupdate import DirectoryMemberUpdate, DirectoryMemberUpdateTypedDict
5
+ from .directoryresponseformat import DirectoryResponseFormat
5
6
  from syllable_sdk.types import BaseModel
6
- from syllable_sdk.utils import FieldMetadata, PathParamMetadata, RequestMetadata
7
- from typing_extensions import Annotated, TypedDict
7
+ from syllable_sdk.utils import (
8
+ FieldMetadata,
9
+ PathParamMetadata,
10
+ QueryParamMetadata,
11
+ RequestMetadata,
12
+ )
13
+ from typing import Optional
14
+ from typing_extensions import Annotated, NotRequired, TypedDict
8
15
 
9
16
 
10
17
  class DirectoryMemberUpdateRequestTypedDict(TypedDict):
11
18
  member_id: int
12
19
  directory_member_update: DirectoryMemberUpdateTypedDict
20
+ response_format: NotRequired[DirectoryResponseFormat]
21
+ r"""Directory response format: normalized (default) strips @hours and formats times; raw returns stored @hours values."""
13
22
 
14
23
 
15
24
  class DirectoryMemberUpdateRequest(BaseModel):
@@ -21,3 +30,9 @@ class DirectoryMemberUpdateRequest(BaseModel):
21
30
  DirectoryMemberUpdate,
22
31
  FieldMetadata(request=RequestMetadata(media_type="application/json")),
23
32
  ]
33
+
34
+ response_format: Annotated[
35
+ Optional[DirectoryResponseFormat],
36
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
37
+ ] = None
38
+ r"""Directory response format: normalized (default) strips @hours and formats times; raw returns stored @hours values."""
@@ -0,0 +1,11 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from enum import Enum
5
+
6
+
7
+ class DirectoryResponseFormat(str, Enum):
8
+ r"""Response shape selector for directory member APIs."""
9
+
10
+ NORMALIZED = "normalized"
11
+ RAW = "raw"
@@ -3,7 +3,6 @@
3
3
  from __future__ import annotations
4
4
  from .callaction import CallAction, CallActionTypedDict
5
5
  from .incrementaction import IncrementAction, IncrementActionTypedDict
6
- from .saveaction import SaveAction, SaveActionTypedDict
7
6
  from .sayaction import SayAction, SayActionTypedDict
8
7
  from .setvalueaction import SetValueAction, SetValueActionTypedDict
9
8
  from pydantic import Discriminator, Tag, model_serializer
@@ -22,9 +21,8 @@ from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
22
21
  EventTaskEventsStartTypedDict = TypeAliasType(
23
22
  "EventTaskEventsStartTypedDict",
24
23
  Union[
25
- SayActionTypedDict,
26
- SaveActionTypedDict,
27
24
  IncrementActionTypedDict,
25
+ SayActionTypedDict,
28
26
  SetValueActionTypedDict,
29
27
  CallActionTypedDict,
30
28
  ],
@@ -35,7 +33,6 @@ EventTaskEventsStart = Annotated[
35
33
  Union[
36
34
  Annotated[CallAction, Tag("call")],
37
35
  Annotated[IncrementAction, Tag("inc")],
38
- Annotated[SaveAction, Tag("save")],
39
36
  Annotated[SayAction, Tag("say")],
40
37
  Annotated[SetValueAction, Tag("set")],
41
38
  ],
@@ -60,7 +60,7 @@ class ExpressionTaskTypedDict(TypedDict):
60
60
  expression: NotRequired[Nullable[Expression2TypedDict]]
61
61
  output: NotRequired[Nullable[Any]]
62
62
  on: NotRequired[ExpressionTaskEventsTypedDict]
63
- r"""Actions to perform when events occur (enter, submit)."""
63
+ r"""Actions to perform when events occur (start, submit)."""
64
64
 
65
65
 
66
66
  class ExpressionTask(BaseModel):
@@ -97,7 +97,7 @@ class ExpressionTask(BaseModel):
97
97
  output: OptionalNullable[Any] = UNSET
98
98
 
99
99
  on: Optional[ExpressionTaskEvents] = None
100
- r"""Actions to perform when events occur (enter, submit)."""
100
+ r"""Actions to perform when events occur (start, submit)."""
101
101
 
102
102
  @model_serializer(mode="wrap")
103
103
  def serialize_model(self, handler):
@@ -22,9 +22,8 @@ from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
22
22
  ExpressionTaskEventsStartTypedDict = TypeAliasType(
23
23
  "ExpressionTaskEventsStartTypedDict",
24
24
  Union[
25
- SayActionTypedDict,
26
- SaveActionTypedDict,
27
25
  IncrementActionTypedDict,
26
+ SayActionTypedDict,
28
27
  SetValueActionTypedDict,
29
28
  CallActionTypedDict,
30
29
  ],
@@ -35,7 +34,6 @@ ExpressionTaskEventsStart = Annotated[
35
34
  Union[
36
35
  Annotated[CallAction, Tag("call")],
37
36
  Annotated[IncrementAction, Tag("inc")],
38
- Annotated[SaveAction, Tag("save")],
39
37
  Annotated[SayAction, Tag("say")],
40
38
  Annotated[SetValueAction, Tag("set")],
41
39
  ],
@@ -47,8 +45,8 @@ ExpressionTaskEventsSubmitTypedDict = TypeAliasType(
47
45
  "ExpressionTaskEventsSubmitTypedDict",
48
46
  Union[
49
47
  IncrementActionTypedDict,
50
- SayActionTypedDict,
51
48
  SaveActionTypedDict,
49
+ SayActionTypedDict,
52
50
  SetValueActionTypedDict,
53
51
  CallActionTypedDict,
54
52
  ],
@@ -68,7 +66,7 @@ ExpressionTaskEventsSubmit = Annotated[
68
66
 
69
67
 
70
68
  class ExpressionTaskEventsTypedDict(TypedDict):
71
- r"""Actions to perform when events occur (enter, submit)."""
69
+ r"""Actions to perform when events occur (start, submit)."""
72
70
 
73
71
  start: NotRequired[Nullable[List[ExpressionTaskEventsStartTypedDict]]]
74
72
  r"""Actions to execute on the first input from the user."""
@@ -77,7 +75,7 @@ class ExpressionTaskEventsTypedDict(TypedDict):
77
75
 
78
76
 
79
77
  class ExpressionTaskEvents(BaseModel):
80
- r"""Actions to perform when events occur (enter, submit)."""
78
+ r"""Actions to perform when events occur (start, submit)."""
81
79
 
82
80
  start: OptionalNullable[List[ExpressionTaskEventsStart]] = UNSET
83
81
  r"""Actions to execute on the first input from the user."""
@@ -0,0 +1,151 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .caseexpression import CaseExpression, CaseExpressionTypedDict
5
+ from .celexpression import CelExpression, CelExpressionTypedDict
6
+ from .jmespathexpression import JMESPathExpression, JMESPathExpressionTypedDict
7
+ from enum import Enum
8
+ import pydantic
9
+ from pydantic import Discriminator, Tag, model_serializer
10
+ from syllable_sdk.types import (
11
+ BaseModel,
12
+ Nullable,
13
+ OptionalNullable,
14
+ UNSET,
15
+ UNSET_SENTINEL,
16
+ )
17
+ from syllable_sdk.utils import get_discriminator
18
+ from typing import Any, List, Optional, Union
19
+ from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
20
+
21
+
22
+ GetValueActionValueFrom1TypedDict = TypeAliasType(
23
+ "GetValueActionValueFrom1TypedDict",
24
+ Union[CelExpressionTypedDict, JMESPathExpressionTypedDict],
25
+ )
26
+
27
+
28
+ GetValueActionValueFrom1 = Annotated[
29
+ Union[
30
+ Annotated[CelExpression, Tag("cel")],
31
+ Annotated[JMESPathExpression, Tag("jmespath")],
32
+ Annotated[JMESPathExpression, Tag("jp")],
33
+ ],
34
+ Discriminator(lambda m: get_discriminator(m, "type", "type")),
35
+ ]
36
+
37
+
38
+ GetValueActionValueFrom2TypedDict = TypeAliasType(
39
+ "GetValueActionValueFrom2TypedDict",
40
+ Union[CaseExpressionTypedDict, GetValueActionValueFrom1TypedDict, str],
41
+ )
42
+ r"""Expression to compute initial value (mutually exclusive with value)."""
43
+
44
+
45
+ GetValueActionValueFrom2 = TypeAliasType(
46
+ "GetValueActionValueFrom2", Union[CaseExpression, GetValueActionValueFrom1, str]
47
+ )
48
+ r"""Expression to compute initial value (mutually exclusive with value)."""
49
+
50
+
51
+ GetValueActionIf1TypedDict = TypeAliasType(
52
+ "GetValueActionIf1TypedDict",
53
+ Union[CelExpressionTypedDict, JMESPathExpressionTypedDict],
54
+ )
55
+
56
+
57
+ GetValueActionIf1 = Annotated[
58
+ Union[
59
+ Annotated[CelExpression, Tag("cel")],
60
+ Annotated[JMESPathExpression, Tag("jmespath")],
61
+ Annotated[JMESPathExpression, Tag("jp")],
62
+ ],
63
+ Discriminator(lambda m: get_discriminator(m, "type", "type")),
64
+ ]
65
+
66
+
67
+ GetValueActionIf2TypedDict = TypeAliasType(
68
+ "GetValueActionIf2TypedDict",
69
+ Union[CaseExpressionTypedDict, GetValueActionIf1TypedDict, str],
70
+ )
71
+ r"""An expression that must evaluate to true for the action to be applied."""
72
+
73
+
74
+ GetValueActionIf2 = TypeAliasType(
75
+ "GetValueActionIf2", Union[CaseExpression, GetValueActionIf1, str]
76
+ )
77
+ r"""An expression that must evaluate to true for the action to be applied."""
78
+
79
+
80
+ class GetValueActionAction(str, Enum):
81
+ r"""Populate default input values."""
82
+
83
+ GET = "get"
84
+ LOAD = "load"
85
+
86
+
87
+ class GetValueActionTypedDict(TypedDict):
88
+ value: NotRequired[Nullable[Any]]
89
+ r"""Initial value of the variable."""
90
+ value_from: NotRequired[Nullable[GetValueActionValueFrom2TypedDict]]
91
+ r"""Expression to compute initial value (mutually exclusive with value)."""
92
+ if_: NotRequired[Nullable[GetValueActionIf2TypedDict]]
93
+ r"""An expression that must evaluate to true for the action to be applied."""
94
+ action: NotRequired[GetValueActionAction]
95
+ r"""Populate default input values."""
96
+ inputs: NotRequired[Nullable[List[str]]]
97
+ r"""Input field names to populate; None populates all step inputs."""
98
+ overwrite: NotRequired[bool]
99
+ r"""If False (default), only populate empty inputs. If True, always overwrite."""
100
+
101
+
102
+ class GetValueAction(BaseModel):
103
+ value: OptionalNullable[Any] = UNSET
104
+ r"""Initial value of the variable."""
105
+
106
+ value_from: OptionalNullable[GetValueActionValueFrom2] = UNSET
107
+ r"""Expression to compute initial value (mutually exclusive with value)."""
108
+
109
+ if_: Annotated[OptionalNullable[GetValueActionIf2], pydantic.Field(alias="if")] = (
110
+ UNSET
111
+ )
112
+ r"""An expression that must evaluate to true for the action to be applied."""
113
+
114
+ action: Optional[GetValueActionAction] = GetValueActionAction.GET
115
+ r"""Populate default input values."""
116
+
117
+ inputs: OptionalNullable[List[str]] = UNSET
118
+ r"""Input field names to populate; None populates all step inputs."""
119
+
120
+ overwrite: Optional[bool] = False
121
+ r"""If False (default), only populate empty inputs. If True, always overwrite."""
122
+
123
+ @model_serializer(mode="wrap")
124
+ def serialize_model(self, handler):
125
+ optional_fields = ["value", "value_from", "if", "action", "inputs", "overwrite"]
126
+ nullable_fields = ["value", "value_from", "if", "inputs"]
127
+ null_default_fields = []
128
+
129
+ serialized = handler(self)
130
+
131
+ m = {}
132
+
133
+ for n, f in type(self).model_fields.items():
134
+ k = f.alias or n
135
+ val = serialized.get(k)
136
+ serialized.pop(k, None)
137
+
138
+ optional_nullable = k in optional_fields and k in nullable_fields
139
+ is_set = (
140
+ self.__pydantic_fields_set__.intersection({n})
141
+ or k in null_default_fields
142
+ ) # pylint: disable=no-member
143
+
144
+ if val is not None and val != UNSET_SENTINEL:
145
+ m[k] = val
146
+ elif val != UNSET_SENTINEL and (
147
+ not k in optional_fields or (optional_nullable and is_set)
148
+ ):
149
+ m[k] = val
150
+
151
+ return m
@@ -1,11 +1,8 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
+ from .dictionarymetadata import DictionaryMetadata, DictionaryMetadataTypedDict
4
5
  from .pronunciationoverride import PronunciationOverride, PronunciationOverrideTypedDict
5
- from .schemas_tts_v1_pronunciations_dictionarymetadata import (
6
- SchemasTtsV1PronunciationsDictionaryMetadata,
7
- SchemasTtsV1PronunciationsDictionaryMetadataTypedDict,
8
- )
9
6
  from .voicedisplayinfo import VoiceDisplayInfo, VoiceDisplayInfoTypedDict
10
7
  from syllable_sdk.types import BaseModel
11
8
  from typing import Dict, List, Optional
@@ -35,7 +32,7 @@ class PronunciationOverridesDictionaryTypedDict(TypedDict):
35
32
  """
36
33
 
37
34
  pronunciations: List[PronunciationOverrideTypedDict]
38
- metadata: SchemasTtsV1PronunciationsDictionaryMetadataTypedDict
35
+ metadata: DictionaryMetadataTypedDict
39
36
  r"""Audit metadata associated with a dictionary."""
40
37
  type: NotRequired[str]
41
38
  voices: NotRequired[Dict[str, VoiceDisplayInfoTypedDict]]
@@ -65,7 +62,7 @@ class PronunciationOverridesDictionary(BaseModel):
65
62
 
66
63
  pronunciations: List[PronunciationOverride]
67
64
 
68
- metadata: SchemasTtsV1PronunciationsDictionaryMetadata
65
+ metadata: DictionaryMetadata
69
66
  r"""Audit metadata associated with a dictionary."""
70
67
 
71
68
  type: Optional[str] = "pronunciations_v1"
@@ -2,6 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .callaction import CallAction, CallActionTypedDict
5
+ from .getvalueaction import GetValueAction, GetValueActionTypedDict
5
6
  from .incrementaction import IncrementAction, IncrementActionTypedDict
6
7
  from .saveaction import SaveAction, SaveActionTypedDict
7
8
  from .sayaction import SayAction, SayActionTypedDict
@@ -22,9 +23,8 @@ from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
22
23
  StepEventActionsStartTypedDict = TypeAliasType(
23
24
  "StepEventActionsStartTypedDict",
24
25
  Union[
25
- SayActionTypedDict,
26
- SaveActionTypedDict,
27
26
  IncrementActionTypedDict,
27
+ SayActionTypedDict,
28
28
  SetValueActionTypedDict,
29
29
  CallActionTypedDict,
30
30
  ],
@@ -35,7 +35,6 @@ StepEventActionsStart = Annotated[
35
35
  Union[
36
36
  Annotated[CallAction, Tag("call")],
37
37
  Annotated[IncrementAction, Tag("inc")],
38
- Annotated[SaveAction, Tag("save")],
39
38
  Annotated[SayAction, Tag("say")],
40
39
  Annotated[SetValueAction, Tag("set")],
41
40
  ],
@@ -48,9 +47,9 @@ EnterTypedDict = TypeAliasType(
48
47
  Union[
49
48
  IncrementActionTypedDict,
50
49
  SayActionTypedDict,
51
- SaveActionTypedDict,
52
50
  SetValueActionTypedDict,
53
51
  CallActionTypedDict,
52
+ GetValueActionTypedDict,
54
53
  ],
55
54
  )
56
55
 
@@ -58,8 +57,9 @@ EnterTypedDict = TypeAliasType(
58
57
  Enter = Annotated[
59
58
  Union[
60
59
  Annotated[CallAction, Tag("call")],
60
+ Annotated[GetValueAction, Tag("get")],
61
61
  Annotated[IncrementAction, Tag("inc")],
62
- Annotated[SaveAction, Tag("save")],
62
+ Annotated[GetValueAction, Tag("load")],
63
63
  Annotated[SayAction, Tag("say")],
64
64
  Annotated[SetValueAction, Tag("set")],
65
65
  ],
@@ -69,13 +69,20 @@ Enter = Annotated[
69
69
 
70
70
  PresubmitTypedDict = TypeAliasType(
71
71
  "PresubmitTypedDict",
72
- Union[IncrementActionTypedDict, SaveActionTypedDict, SetValueActionTypedDict],
72
+ Union[
73
+ IncrementActionTypedDict,
74
+ SaveActionTypedDict,
75
+ SetValueActionTypedDict,
76
+ GetValueActionTypedDict,
77
+ ],
73
78
  )
74
79
 
75
80
 
76
81
  Presubmit = Annotated[
77
82
  Union[
83
+ Annotated[GetValueAction, Tag("get")],
78
84
  Annotated[IncrementAction, Tag("inc")],
85
+ Annotated[GetValueAction, Tag("load")],
79
86
  Annotated[SaveAction, Tag("save")],
80
87
  Annotated[SetValueAction, Tag("set")],
81
88
  ],
@@ -87,8 +94,8 @@ StepEventActionsSubmitTypedDict = TypeAliasType(
87
94
  "StepEventActionsSubmitTypedDict",
88
95
  Union[
89
96
  IncrementActionTypedDict,
90
- SayActionTypedDict,
91
97
  SaveActionTypedDict,
98
+ SayActionTypedDict,
92
99
  SetValueActionTypedDict,
93
100
  CallActionTypedDict,
94
101
  ],
@@ -19,7 +19,7 @@ from typing import Any, Optional
19
19
  from typing_extensions import Annotated, NotRequired, TypedDict
20
20
 
21
21
 
22
- class Action(str, Enum):
22
+ class ToolParameterTransformAction(str, Enum):
23
23
  r"""The action to perform on the tool parameter value: `default` means only set the value (using the `format` field) if the parameter doesn't exist or is empty, `override` means always set the value,\" and `remove` means \"remove the parameter value.\" """
24
24
 
25
25
  DEFAULT = "default"
@@ -35,7 +35,7 @@ class ToolParameterTransformTypedDict(TypedDict):
35
35
  - `format` is a string composed of other parameters or context variables.
36
36
  """
37
37
 
38
- action: NotRequired[Action]
38
+ action: NotRequired[ToolParameterTransformAction]
39
39
  r"""The action to perform on the tool parameter value: `default` means only set the value (using the `format` field) if the parameter doesn't exist or is empty, `override` means always set the value,\" and `remove` means \"remove the parameter value.\" """
40
40
  when: NotRequired[Nullable[ToolParameterTransformConditionTypedDict]]
41
41
  r"""Only apply the transform if the condition is met."""
@@ -53,7 +53,9 @@ class ToolParameterTransform(BaseModel):
53
53
  - `format` is a string composed of other parameters or context variables.
54
54
  """
55
55
 
56
- action: Optional[Action] = Action.DEFAULT
56
+ action: Optional[ToolParameterTransformAction] = (
57
+ ToolParameterTransformAction.DEFAULT
58
+ )
57
59
  r"""The action to perform on the tool parameter value: `default` means only set the value (using the `format` field) if the parameter doesn't exist or is empty, `override` means always set the value,\" and `remove` means \"remove the parameter value.\" """
58
60
 
59
61
  when: OptionalNullable[ToolParameterTransformCondition] = UNSET