syllable-sdk 0.35.33__py3-none-any.whl → 0.35.38__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 +3 -3
- syllable_sdk/agents.py +23 -26
- syllable_sdk/batches.py +37 -36
- syllable_sdk/campaigns.py +21 -20
- syllable_sdk/channels.py +9 -8
- syllable_sdk/conversations.py +5 -8
- syllable_sdk/custom_messages.py +21 -20
- syllable_sdk/dashboards.py +17 -20
- syllable_sdk/data_sources.py +21 -32
- syllable_sdk/events.py +5 -4
- syllable_sdk/folders.py +33 -40
- syllable_sdk/full_summary.py +5 -8
- syllable_sdk/incidents.py +23 -22
- syllable_sdk/insights_sdk.py +5 -8
- syllable_sdk/insights_tools.py +27 -30
- syllable_sdk/language_groups.py +23 -22
- syllable_sdk/latency.py +5 -8
- syllable_sdk/models/agentsttprovider.py +1 -1
- syllable_sdk/models/insightworkflowcondition.py +8 -1
- syllable_sdk/models/insightworkflowinput.py +10 -10
- syllable_sdk/models/insightworkflowoutput.py +10 -10
- syllable_sdk/numbers.py +13 -24
- syllable_sdk/organizations.py +15 -14
- syllable_sdk/permissions.py +3 -2
- syllable_sdk/prompts.py +27 -30
- syllable_sdk/roles.py +21 -24
- syllable_sdk/sdk.py +23 -8
- syllable_sdk/services.py +21 -24
- syllable_sdk/session_debug.py +13 -12
- syllable_sdk/session_labels.py +13 -16
- syllable_sdk/sessions.py +15 -18
- syllable_sdk/takeouts.py +9 -8
- syllable_sdk/targets.py +21 -24
- syllable_sdk/test.py +5 -4
- syllable_sdk/tools.py +21 -24
- syllable_sdk/transcript.py +5 -4
- syllable_sdk/twilio.py +13 -12
- syllable_sdk/users.py +27 -30
- syllable_sdk/utils/__init__.py +0 -3
- syllable_sdk/utils/serializers.py +1 -18
- syllable_sdk/utils/unmarshal_json_response.py +24 -0
- syllable_sdk/v1.py +27 -30
- syllable_sdk/workflows.py +33 -32
- {syllable_sdk-0.35.33.dist-info → syllable_sdk-0.35.38.dist-info}/METADATA +24 -8
- {syllable_sdk-0.35.33.dist-info → syllable_sdk-0.35.38.dist-info}/RECORD +46 -45
- {syllable_sdk-0.35.33.dist-info → syllable_sdk-0.35.38.dist-info}/WHEEL +0 -0
syllable_sdk/v1.py
CHANGED
|
@@ -5,6 +5,7 @@ from syllable_sdk import errors, models, utils
|
|
|
5
5
|
from syllable_sdk._hooks import HookContext
|
|
6
6
|
from syllable_sdk.types import BaseModel, OptionalNullable, UNSET
|
|
7
7
|
from syllable_sdk.utils import get_security_from_env
|
|
8
|
+
from syllable_sdk.utils.unmarshal_json_response import unmarshal_json_response
|
|
8
9
|
from typing import Any, List, Mapping, Optional, Union, cast
|
|
9
10
|
|
|
10
11
|
|
|
@@ -107,11 +108,9 @@ class V1(BaseSDK):
|
|
|
107
108
|
|
|
108
109
|
response_data: Any = None
|
|
109
110
|
if utils.match_response(http_res, "200", "application/json"):
|
|
110
|
-
return
|
|
111
|
-
models.ListResponseUserResponse, http_res
|
|
112
|
-
)
|
|
111
|
+
return unmarshal_json_response(models.ListResponseUserResponse, http_res)
|
|
113
112
|
if utils.match_response(http_res, "422", "application/json"):
|
|
114
|
-
response_data =
|
|
113
|
+
response_data = unmarshal_json_response(
|
|
115
114
|
errors.HTTPValidationErrorData, http_res
|
|
116
115
|
)
|
|
117
116
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -222,11 +221,9 @@ class V1(BaseSDK):
|
|
|
222
221
|
|
|
223
222
|
response_data: Any = None
|
|
224
223
|
if utils.match_response(http_res, "200", "application/json"):
|
|
225
|
-
return
|
|
226
|
-
models.ListResponseUserResponse, http_res
|
|
227
|
-
)
|
|
224
|
+
return unmarshal_json_response(models.ListResponseUserResponse, http_res)
|
|
228
225
|
if utils.match_response(http_res, "422", "application/json"):
|
|
229
|
-
response_data =
|
|
226
|
+
response_data = unmarshal_json_response(
|
|
230
227
|
errors.HTTPValidationErrorData, http_res
|
|
231
228
|
)
|
|
232
229
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -316,9 +313,9 @@ class V1(BaseSDK):
|
|
|
316
313
|
|
|
317
314
|
response_data: Any = None
|
|
318
315
|
if utils.match_response(http_res, "200", "application/json"):
|
|
319
|
-
return
|
|
316
|
+
return unmarshal_json_response(models.UserResponse, http_res)
|
|
320
317
|
if utils.match_response(http_res, "422", "application/json"):
|
|
321
|
-
response_data =
|
|
318
|
+
response_data = unmarshal_json_response(
|
|
322
319
|
errors.HTTPValidationErrorData, http_res
|
|
323
320
|
)
|
|
324
321
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -408,9 +405,9 @@ class V1(BaseSDK):
|
|
|
408
405
|
|
|
409
406
|
response_data: Any = None
|
|
410
407
|
if utils.match_response(http_res, "200", "application/json"):
|
|
411
|
-
return
|
|
408
|
+
return unmarshal_json_response(models.UserResponse, http_res)
|
|
412
409
|
if utils.match_response(http_res, "422", "application/json"):
|
|
413
|
-
response_data =
|
|
410
|
+
response_data = unmarshal_json_response(
|
|
414
411
|
errors.HTTPValidationErrorData, http_res
|
|
415
412
|
)
|
|
416
413
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -500,9 +497,9 @@ class V1(BaseSDK):
|
|
|
500
497
|
|
|
501
498
|
response_data: Any = None
|
|
502
499
|
if utils.match_response(http_res, "200", "application/json"):
|
|
503
|
-
return
|
|
500
|
+
return unmarshal_json_response(models.UserResponse, http_res)
|
|
504
501
|
if utils.match_response(http_res, "422", "application/json"):
|
|
505
|
-
response_data =
|
|
502
|
+
response_data = unmarshal_json_response(
|
|
506
503
|
errors.HTTPValidationErrorData, http_res
|
|
507
504
|
)
|
|
508
505
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -592,9 +589,9 @@ class V1(BaseSDK):
|
|
|
592
589
|
|
|
593
590
|
response_data: Any = None
|
|
594
591
|
if utils.match_response(http_res, "200", "application/json"):
|
|
595
|
-
return
|
|
592
|
+
return unmarshal_json_response(models.UserResponse, http_res)
|
|
596
593
|
if utils.match_response(http_res, "422", "application/json"):
|
|
597
|
-
response_data =
|
|
594
|
+
response_data = unmarshal_json_response(
|
|
598
595
|
errors.HTTPValidationErrorData, http_res
|
|
599
596
|
)
|
|
600
597
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -684,9 +681,9 @@ class V1(BaseSDK):
|
|
|
684
681
|
|
|
685
682
|
response_data: Any = None
|
|
686
683
|
if utils.match_response(http_res, "200", "application/json"):
|
|
687
|
-
return
|
|
684
|
+
return unmarshal_json_response(Any, http_res)
|
|
688
685
|
if utils.match_response(http_res, "422", "application/json"):
|
|
689
|
-
response_data =
|
|
686
|
+
response_data = unmarshal_json_response(
|
|
690
687
|
errors.HTTPValidationErrorData, http_res
|
|
691
688
|
)
|
|
692
689
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -776,9 +773,9 @@ class V1(BaseSDK):
|
|
|
776
773
|
|
|
777
774
|
response_data: Any = None
|
|
778
775
|
if utils.match_response(http_res, "200", "application/json"):
|
|
779
|
-
return
|
|
776
|
+
return unmarshal_json_response(Any, http_res)
|
|
780
777
|
if utils.match_response(http_res, "422", "application/json"):
|
|
781
|
-
response_data =
|
|
778
|
+
response_data = unmarshal_json_response(
|
|
782
779
|
errors.HTTPValidationErrorData, http_res
|
|
783
780
|
)
|
|
784
781
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -865,9 +862,9 @@ class V1(BaseSDK):
|
|
|
865
862
|
|
|
866
863
|
response_data: Any = None
|
|
867
864
|
if utils.match_response(http_res, "200", "application/json"):
|
|
868
|
-
return
|
|
865
|
+
return unmarshal_json_response(models.UserResponse, http_res)
|
|
869
866
|
if utils.match_response(http_res, "422", "application/json"):
|
|
870
|
-
response_data =
|
|
867
|
+
response_data = unmarshal_json_response(
|
|
871
868
|
errors.HTTPValidationErrorData, http_res
|
|
872
869
|
)
|
|
873
870
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -954,9 +951,9 @@ class V1(BaseSDK):
|
|
|
954
951
|
|
|
955
952
|
response_data: Any = None
|
|
956
953
|
if utils.match_response(http_res, "200", "application/json"):
|
|
957
|
-
return
|
|
954
|
+
return unmarshal_json_response(models.UserResponse, http_res)
|
|
958
955
|
if utils.match_response(http_res, "422", "application/json"):
|
|
959
|
-
response_data =
|
|
956
|
+
response_data = unmarshal_json_response(
|
|
960
957
|
errors.HTTPValidationErrorData, http_res
|
|
961
958
|
)
|
|
962
959
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -1043,9 +1040,9 @@ class V1(BaseSDK):
|
|
|
1043
1040
|
|
|
1044
1041
|
response_data: Any = None
|
|
1045
1042
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1046
|
-
return
|
|
1043
|
+
return unmarshal_json_response(Any, http_res)
|
|
1047
1044
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1048
|
-
response_data =
|
|
1045
|
+
response_data = unmarshal_json_response(
|
|
1049
1046
|
errors.HTTPValidationErrorData, http_res
|
|
1050
1047
|
)
|
|
1051
1048
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -1132,9 +1129,9 @@ class V1(BaseSDK):
|
|
|
1132
1129
|
|
|
1133
1130
|
response_data: Any = None
|
|
1134
1131
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1135
|
-
return
|
|
1132
|
+
return unmarshal_json_response(Any, http_res)
|
|
1136
1133
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1137
|
-
response_data =
|
|
1134
|
+
response_data = unmarshal_json_response(
|
|
1138
1135
|
errors.HTTPValidationErrorData, http_res
|
|
1139
1136
|
)
|
|
1140
1137
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -1214,7 +1211,7 @@ class V1(BaseSDK):
|
|
|
1214
1211
|
)
|
|
1215
1212
|
|
|
1216
1213
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1217
|
-
return
|
|
1214
|
+
return unmarshal_json_response(Any, http_res)
|
|
1218
1215
|
if utils.match_response(http_res, "4XX", "*"):
|
|
1219
1216
|
http_res_text = utils.stream_to_text(http_res)
|
|
1220
1217
|
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
@@ -1291,7 +1288,7 @@ class V1(BaseSDK):
|
|
|
1291
1288
|
)
|
|
1292
1289
|
|
|
1293
1290
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1294
|
-
return
|
|
1291
|
+
return unmarshal_json_response(Any, http_res)
|
|
1295
1292
|
if utils.match_response(http_res, "4XX", "*"):
|
|
1296
1293
|
http_res_text = await utils.stream_to_text_async(http_res)
|
|
1297
1294
|
raise errors.APIError("API error occurred", http_res, http_res_text)
|
syllable_sdk/workflows.py
CHANGED
|
@@ -5,6 +5,7 @@ from syllable_sdk import errors, models, utils
|
|
|
5
5
|
from syllable_sdk._hooks import HookContext
|
|
6
6
|
from syllable_sdk.types import BaseModel, OptionalNullable, UNSET
|
|
7
7
|
from syllable_sdk.utils import get_security_from_env
|
|
8
|
+
from syllable_sdk.utils.unmarshal_json_response import unmarshal_json_response
|
|
8
9
|
from typing import Any, List, Mapping, Optional, Union, cast
|
|
9
10
|
|
|
10
11
|
|
|
@@ -109,11 +110,11 @@ class Workflows(BaseSDK):
|
|
|
109
110
|
|
|
110
111
|
response_data: Any = None
|
|
111
112
|
if utils.match_response(http_res, "200", "application/json"):
|
|
112
|
-
return
|
|
113
|
+
return unmarshal_json_response(
|
|
113
114
|
models.ListResponseInsightWorkflowOutput, http_res
|
|
114
115
|
)
|
|
115
116
|
if utils.match_response(http_res, "422", "application/json"):
|
|
116
|
-
response_data =
|
|
117
|
+
response_data = unmarshal_json_response(
|
|
117
118
|
errors.HTTPValidationErrorData, http_res
|
|
118
119
|
)
|
|
119
120
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -224,11 +225,11 @@ class Workflows(BaseSDK):
|
|
|
224
225
|
|
|
225
226
|
response_data: Any = None
|
|
226
227
|
if utils.match_response(http_res, "200", "application/json"):
|
|
227
|
-
return
|
|
228
|
+
return unmarshal_json_response(
|
|
228
229
|
models.ListResponseInsightWorkflowOutput, http_res
|
|
229
230
|
)
|
|
230
231
|
if utils.match_response(http_res, "422", "application/json"):
|
|
231
|
-
response_data =
|
|
232
|
+
response_data = unmarshal_json_response(
|
|
232
233
|
errors.HTTPValidationErrorData, http_res
|
|
233
234
|
)
|
|
234
235
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -320,9 +321,9 @@ class Workflows(BaseSDK):
|
|
|
320
321
|
|
|
321
322
|
response_data: Any = None
|
|
322
323
|
if utils.match_response(http_res, "200", "application/json"):
|
|
323
|
-
return
|
|
324
|
+
return unmarshal_json_response(models.InsightWorkflowOutput, http_res)
|
|
324
325
|
if utils.match_response(http_res, "422", "application/json"):
|
|
325
|
-
response_data =
|
|
326
|
+
response_data = unmarshal_json_response(
|
|
326
327
|
errors.HTTPValidationErrorData, http_res
|
|
327
328
|
)
|
|
328
329
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -414,9 +415,9 @@ class Workflows(BaseSDK):
|
|
|
414
415
|
|
|
415
416
|
response_data: Any = None
|
|
416
417
|
if utils.match_response(http_res, "200", "application/json"):
|
|
417
|
-
return
|
|
418
|
+
return unmarshal_json_response(models.InsightWorkflowOutput, http_res)
|
|
418
419
|
if utils.match_response(http_res, "422", "application/json"):
|
|
419
|
-
response_data =
|
|
420
|
+
response_data = unmarshal_json_response(
|
|
420
421
|
errors.HTTPValidationErrorData, http_res
|
|
421
422
|
)
|
|
422
423
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -503,9 +504,9 @@ class Workflows(BaseSDK):
|
|
|
503
504
|
|
|
504
505
|
response_data: Any = None
|
|
505
506
|
if utils.match_response(http_res, "200", "application/json"):
|
|
506
|
-
return
|
|
507
|
+
return unmarshal_json_response(models.InsightWorkflowOutput, http_res)
|
|
507
508
|
if utils.match_response(http_res, "422", "application/json"):
|
|
508
|
-
response_data =
|
|
509
|
+
response_data = unmarshal_json_response(
|
|
509
510
|
errors.HTTPValidationErrorData, http_res
|
|
510
511
|
)
|
|
511
512
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -592,9 +593,9 @@ class Workflows(BaseSDK):
|
|
|
592
593
|
|
|
593
594
|
response_data: Any = None
|
|
594
595
|
if utils.match_response(http_res, "200", "application/json"):
|
|
595
|
-
return
|
|
596
|
+
return unmarshal_json_response(models.InsightWorkflowOutput, http_res)
|
|
596
597
|
if utils.match_response(http_res, "422", "application/json"):
|
|
597
|
-
response_data =
|
|
598
|
+
response_data = unmarshal_json_response(
|
|
598
599
|
errors.HTTPValidationErrorData, http_res
|
|
599
600
|
)
|
|
600
601
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -695,9 +696,9 @@ class Workflows(BaseSDK):
|
|
|
695
696
|
|
|
696
697
|
response_data: Any = None
|
|
697
698
|
if utils.match_response(http_res, "200", "application/json"):
|
|
698
|
-
return
|
|
699
|
+
return unmarshal_json_response(models.InsightWorkflowOutput, http_res)
|
|
699
700
|
if utils.match_response(http_res, "422", "application/json"):
|
|
700
|
-
response_data =
|
|
701
|
+
response_data = unmarshal_json_response(
|
|
701
702
|
errors.HTTPValidationErrorData, http_res
|
|
702
703
|
)
|
|
703
704
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -798,9 +799,9 @@ class Workflows(BaseSDK):
|
|
|
798
799
|
|
|
799
800
|
response_data: Any = None
|
|
800
801
|
if utils.match_response(http_res, "200", "application/json"):
|
|
801
|
-
return
|
|
802
|
+
return unmarshal_json_response(models.InsightWorkflowOutput, http_res)
|
|
802
803
|
if utils.match_response(http_res, "422", "application/json"):
|
|
803
|
-
response_data =
|
|
804
|
+
response_data = unmarshal_json_response(
|
|
804
805
|
errors.HTTPValidationErrorData, http_res
|
|
805
806
|
)
|
|
806
807
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -887,9 +888,9 @@ class Workflows(BaseSDK):
|
|
|
887
888
|
|
|
888
889
|
response_data: Any = None
|
|
889
890
|
if utils.match_response(http_res, "200", "application/json"):
|
|
890
|
-
return
|
|
891
|
+
return unmarshal_json_response(Any, http_res)
|
|
891
892
|
if utils.match_response(http_res, "422", "application/json"):
|
|
892
|
-
response_data =
|
|
893
|
+
response_data = unmarshal_json_response(
|
|
893
894
|
errors.HTTPValidationErrorData, http_res
|
|
894
895
|
)
|
|
895
896
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -976,9 +977,9 @@ class Workflows(BaseSDK):
|
|
|
976
977
|
|
|
977
978
|
response_data: Any = None
|
|
978
979
|
if utils.match_response(http_res, "200", "application/json"):
|
|
979
|
-
return
|
|
980
|
+
return unmarshal_json_response(Any, http_res)
|
|
980
981
|
if utils.match_response(http_res, "422", "application/json"):
|
|
981
|
-
response_data =
|
|
982
|
+
response_data = unmarshal_json_response(
|
|
982
983
|
errors.HTTPValidationErrorData, http_res
|
|
983
984
|
)
|
|
984
985
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -1065,9 +1066,9 @@ class Workflows(BaseSDK):
|
|
|
1065
1066
|
|
|
1066
1067
|
response_data: Any = None
|
|
1067
1068
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1068
|
-
return
|
|
1069
|
+
return unmarshal_json_response(models.InsightWorkflowOutput, http_res)
|
|
1069
1070
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1070
|
-
response_data =
|
|
1071
|
+
response_data = unmarshal_json_response(
|
|
1071
1072
|
errors.HTTPValidationErrorData, http_res
|
|
1072
1073
|
)
|
|
1073
1074
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -1154,9 +1155,9 @@ class Workflows(BaseSDK):
|
|
|
1154
1155
|
|
|
1155
1156
|
response_data: Any = None
|
|
1156
1157
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1157
|
-
return
|
|
1158
|
+
return unmarshal_json_response(models.InsightWorkflowOutput, http_res)
|
|
1158
1159
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1159
|
-
response_data =
|
|
1160
|
+
response_data = unmarshal_json_response(
|
|
1160
1161
|
errors.HTTPValidationErrorData, http_res
|
|
1161
1162
|
)
|
|
1162
1163
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -1257,9 +1258,9 @@ class Workflows(BaseSDK):
|
|
|
1257
1258
|
|
|
1258
1259
|
response_data: Any = None
|
|
1259
1260
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1260
|
-
return
|
|
1261
|
+
return unmarshal_json_response(models.InsightWorkflowOutput, http_res)
|
|
1261
1262
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1262
|
-
response_data =
|
|
1263
|
+
response_data = unmarshal_json_response(
|
|
1263
1264
|
errors.HTTPValidationErrorData, http_res
|
|
1264
1265
|
)
|
|
1265
1266
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -1360,9 +1361,9 @@ class Workflows(BaseSDK):
|
|
|
1360
1361
|
|
|
1361
1362
|
response_data: Any = None
|
|
1362
1363
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1363
|
-
return
|
|
1364
|
+
return unmarshal_json_response(models.InsightWorkflowOutput, http_res)
|
|
1364
1365
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1365
|
-
response_data =
|
|
1366
|
+
response_data = unmarshal_json_response(
|
|
1366
1367
|
errors.HTTPValidationErrorData, http_res
|
|
1367
1368
|
)
|
|
1368
1369
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -1455,9 +1456,9 @@ class Workflows(BaseSDK):
|
|
|
1455
1456
|
|
|
1456
1457
|
response_data: Any = None
|
|
1457
1458
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1458
|
-
return
|
|
1459
|
+
return unmarshal_json_response(Any, http_res)
|
|
1459
1460
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1460
|
-
response_data =
|
|
1461
|
+
response_data = unmarshal_json_response(
|
|
1461
1462
|
errors.HTTPValidationErrorData, http_res
|
|
1462
1463
|
)
|
|
1463
1464
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -1550,9 +1551,9 @@ class Workflows(BaseSDK):
|
|
|
1550
1551
|
|
|
1551
1552
|
response_data: Any = None
|
|
1552
1553
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1553
|
-
return
|
|
1554
|
+
return unmarshal_json_response(Any, http_res)
|
|
1554
1555
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1555
|
-
response_data =
|
|
1556
|
+
response_data = unmarshal_json_response(
|
|
1556
1557
|
errors.HTTPValidationErrorData, http_res
|
|
1557
1558
|
)
|
|
1558
1559
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: syllable-sdk
|
|
3
|
-
Version: 0.35.
|
|
3
|
+
Version: 0.35.38
|
|
4
4
|
Summary: Python Client SDK Generated by Speakeasy.
|
|
5
5
|
Author: Syllable
|
|
6
6
|
Requires-Python: >=3.9.2
|
|
@@ -27,16 +27,32 @@ Syllable SDK gives you the power of awesome AI agentry. 🚀
|
|
|
27
27
|
## Overview
|
|
28
28
|
|
|
29
29
|
The Syllable SDK provides a comprehensive set of tools and APIs to integrate powerful AI
|
|
30
|
-
capabilities into your communication applications. Whether you're building chatbots,
|
|
31
|
-
assistants, or any other AI-driven solutions, Syllable SDK has got you covered.
|
|
30
|
+
capabilities into your communication applications. Whether you're building phone agents, chatbots,
|
|
31
|
+
virtual assistants, or any other AI-driven solutions, Syllable SDK has got you covered.
|
|
32
32
|
|
|
33
33
|
## Features
|
|
34
34
|
|
|
35
|
-
- **
|
|
36
|
-
|
|
37
|
-
- **
|
|
38
|
-
|
|
39
|
-
- **
|
|
35
|
+
- **Agent Configuration**: Create and manage agents that can interact with users across various
|
|
36
|
+
channels.
|
|
37
|
+
- **Channel Management**: Configure channels like SMS, web chat, and more to connect agents with
|
|
38
|
+
users.
|
|
39
|
+
- **Custom Messages**: Set up custom messages that agents can deliver as greetings or responses.
|
|
40
|
+
- **Conversations**: Track and manage conversations between users and agents, including session
|
|
41
|
+
management.
|
|
42
|
+
- **Tools and Workflows**: Leverage tools and workflows to enhance agent capabilities, such as data
|
|
43
|
+
processing and API calls.
|
|
44
|
+
- **Data Sources**: Integrate data sources to provide agents with additional context and
|
|
45
|
+
information.
|
|
46
|
+
- **Insights and Analytics**: Analyze conversations and sessions to gain insights into user
|
|
47
|
+
interactions.
|
|
48
|
+
- **Permissions and Security**: Manage permissions to control access to various features and
|
|
49
|
+
functionalities.
|
|
50
|
+
- **Language Support**: Define language groups to enable multilingual support for agents.
|
|
51
|
+
- **Outbound Campaigns**: Create and manage outbound communication campaigns to reach users
|
|
52
|
+
effectively.
|
|
53
|
+
- **Session Labels**: Label sessions with evaluations of quality and descriptions of issues
|
|
54
|
+
encountered.
|
|
55
|
+
- **Incident Management**: Track and manage incidents related to agent interactions.
|
|
40
56
|
<!-- End Summary [summary] -->
|
|
41
57
|
|
|
42
58
|
<!-- Start Table of Contents [toc] -->
|
|
@@ -3,31 +3,31 @@ syllable_sdk/_hooks/__init__.py,sha256=9_7W5jAYw8rcO8Kfc-Ty-lB82BHfksAJJpVFb_UeU
|
|
|
3
3
|
syllable_sdk/_hooks/registration.py,sha256=1QZB41w6If7I9dXiOSQx6dhSc6BPWrnI5Q5bMOr4iVA,624
|
|
4
4
|
syllable_sdk/_hooks/sdkhooks.py,sha256=aRu2TMpxilLKDrG6EIy6uQd6IrBH7kaHOoVkd7GIcus,2562
|
|
5
5
|
syllable_sdk/_hooks/types.py,sha256=uwJkn18g4_rLZhVtKdE6Ed5YcCjGWSqVgN9-PWqV7Ho,3053
|
|
6
|
-
syllable_sdk/_version.py,sha256=
|
|
7
|
-
syllable_sdk/agents.py,sha256=
|
|
6
|
+
syllable_sdk/_version.py,sha256=xYWicuEBih38HLJH5qMI27YCoPFJnkh8T3qXXezRcFw,470
|
|
7
|
+
syllable_sdk/agents.py,sha256=0x4iFVF9VksBu32ThrGcgM3FqMCC9-iP8ggPh2r4R04,46694
|
|
8
8
|
syllable_sdk/basesdk.py,sha256=dULbDf9e71tjSgOe7YwC9jD-80uIFiMrAhFbFvbEYho,11916
|
|
9
|
-
syllable_sdk/batches.py,sha256=
|
|
10
|
-
syllable_sdk/campaigns.py,sha256=
|
|
11
|
-
syllable_sdk/channels.py,sha256=
|
|
12
|
-
syllable_sdk/conversations.py,sha256=
|
|
13
|
-
syllable_sdk/custom_messages.py,sha256=
|
|
14
|
-
syllable_sdk/dashboards.py,sha256=
|
|
15
|
-
syllable_sdk/data_sources.py,sha256=
|
|
9
|
+
syllable_sdk/batches.py,sha256=qgI5PRkdgLdaJl4DPfs4mBJrB0OY_CCDePYntyjleSs,73059
|
|
10
|
+
syllable_sdk/campaigns.py,sha256=MIw1sWFreiedJfhFuGg2lYbxOQDtwwsgI2TiS7AgnIM,40546
|
|
11
|
+
syllable_sdk/channels.py,sha256=oGyKProLr9x6J41TjuH4_6KH7rKD_CSf6XaWYDq6Hys,18685
|
|
12
|
+
syllable_sdk/conversations.py,sha256=SjbYq8-mr2RdIh_JO_qxh25WvLkWXf_KsEUxhHRVlB4,10743
|
|
13
|
+
syllable_sdk/custom_messages.py,sha256=xM3Sy-bdXPYX-qUJUl_CfgjR0HtEpN32u1uXqc1X9x0,41307
|
|
14
|
+
syllable_sdk/dashboards.py,sha256=qvzxTiPnzJTmip02EPyGP-qaCgBtpZ4OPYJa2IGH1nw,45442
|
|
15
|
+
syllable_sdk/data_sources.py,sha256=ReOnnz4OYQupXW6aS7iHNJgK84aJEWN7vnuqn1eCYAs,40909
|
|
16
16
|
syllable_sdk/errors/__init__.py,sha256=YPocjxLNtvZDr-26Vblv3TCBFx7GBwr5jTHWg3_4MSE,1698
|
|
17
17
|
syllable_sdk/errors/apierror.py,sha256=CM3pZTIA9QnXmav_lDlcGgwyYLJ4pmMtni4Ck-iwFow,1234
|
|
18
18
|
syllable_sdk/errors/httpvalidationerror.py,sha256=wBTQY0G7zOW5nGyKkZDkEDc51htoMJTVBXO1mVYFh-4,794
|
|
19
19
|
syllable_sdk/errors/no_response_error.py,sha256=FQG44Lq6uF7uUlzbUYfM3dJon6sbqXzJ0Ri6YrDdsEs,380
|
|
20
20
|
syllable_sdk/errors/responsevalidationerror.py,sha256=yjbGMdguC5CxzL9DOykZYl-EF7ogz7V-fbWdttSYf4E,701
|
|
21
21
|
syllable_sdk/errors/syllablesdkerror.py,sha256=KM5G7mkzhdFyax1X6fj5sIjRGP-bxLanyccRMKbhqcE,718
|
|
22
|
-
syllable_sdk/events.py,sha256=
|
|
23
|
-
syllable_sdk/folders.py,sha256=
|
|
24
|
-
syllable_sdk/full_summary.py,sha256=
|
|
22
|
+
syllable_sdk/events.py,sha256=POKcChr-8dU3XjIcMwlEqAn4BmtBZRzDplMe2r-hI3I,10604
|
|
23
|
+
syllable_sdk/folders.py,sha256=Yf8zZ3TY38nIWx8HEjmC13KciWxFYHCTUBOzRYAEdZ8,69452
|
|
24
|
+
syllable_sdk/full_summary.py,sha256=OMOJu6wE6IdiI54w72ljqKYvDbxzXvPu8lgfQhbniz0,7487
|
|
25
25
|
syllable_sdk/httpclient.py,sha256=Eu73urOAiZQtdUIyOUnPccxCiBbWEKrXG-JrRG3SLM4,3946
|
|
26
|
-
syllable_sdk/incidents.py,sha256=
|
|
27
|
-
syllable_sdk/insights_sdk.py,sha256=
|
|
28
|
-
syllable_sdk/insights_tools.py,sha256=
|
|
29
|
-
syllable_sdk/language_groups.py,sha256=
|
|
30
|
-
syllable_sdk/latency.py,sha256=
|
|
26
|
+
syllable_sdk/incidents.py,sha256=mkhdIEED5nBcwz3KvkdrpQEbSbRpKVpvXe4-5vYvqMU,46422
|
|
27
|
+
syllable_sdk/insights_sdk.py,sha256=MxNtdwu2dcM8xCjKS2l-ZIM-pT-Bbh8LSjMnFLl32nc,11920
|
|
28
|
+
syllable_sdk/insights_tools.py,sha256=SuDEOpPtk7SlsFZ-thzIZSt_31WjofzyzqozseWQy3M,55115
|
|
29
|
+
syllable_sdk/language_groups.py,sha256=BlcTvh_KitUkbVzXlBjCcxTmBbQ12QWxCZfXqlCOoPc,49214
|
|
30
|
+
syllable_sdk/latency.py,sha256=PymvwBTs6KAVMl-IZVj6L4zJotRApBOcnkfB4FrlNkg,7449
|
|
31
31
|
syllable_sdk/models/__init__.py,sha256=2pK0yy6zUHZ1c9LYaOmxJmuaIcgXiUpiWuqDHbF9yFI,83441
|
|
32
32
|
syllable_sdk/models/agent_deleteop.py,sha256=tUbi-gwd4chf2Ba9O9lCvqDQw6YOnn7aheu8OPDzptc,629
|
|
33
33
|
syllable_sdk/models/agent_get_by_idop.py,sha256=vj_xEbhOv3c8n3-B3uQnfTwHWdxYSE4k3Zvr58Yc9A4,484
|
|
@@ -36,7 +36,7 @@ syllable_sdk/models/agentcreate.py,sha256=QYTUpHd6sRA0EmVSjiJN64PoaoCb33SAh4pWqC
|
|
|
36
36
|
syllable_sdk/models/agentlanguage.py,sha256=NkquRaZj2cPpm5bDSf2AuhHsL8NxDOYSDEO8YePUE4o,650
|
|
37
37
|
syllable_sdk/models/agentproperties.py,sha256=r7acQPPWRA7gZUMbhSrQMyDFw_A7RSRZdKo7yvgGQY0,792
|
|
38
38
|
syllable_sdk/models/agentresponse.py,sha256=86Z3kNBakkBYdL3PFGqzjs1otVfDbl1aIL7_ZJRGDqk,9075
|
|
39
|
-
syllable_sdk/models/agentsttprovider.py,sha256=
|
|
39
|
+
syllable_sdk/models/agentsttprovider.py,sha256=A-Y48rQF8_NOTAYbmzwFhgeeGX93mq4fEYV4JSbPywA,337
|
|
40
40
|
syllable_sdk/models/agenttooldefaults.py,sha256=grephhXpDNRoteEjin5eOFqe2pqh2WHs80wO9As87S4,903
|
|
41
41
|
syllable_sdk/models/agenttoolfielddefault.py,sha256=80ANVtg-F04tDjWvMj55g2xUujUIx-XtT-_lIQOiYnY,788
|
|
42
42
|
syllable_sdk/models/agentupdate.py,sha256=kFJ_1Hixyub3GEGvqUEmwIuU5V6A8IsZxSW4T0h31aM,6153
|
|
@@ -159,10 +159,10 @@ syllable_sdk/models/insighttooloutput.py,sha256=lOgOnhwNp5ufaJfYb04BWo2WmaR3wUUt
|
|
|
159
159
|
syllable_sdk/models/insighttoolproperties.py,sha256=4CND3iVh8BInmfWszIN6xY97spN5xGFEfD4yD9NZ2dA,396
|
|
160
160
|
syllable_sdk/models/insighttooltestinput.py,sha256=pbQtoUZ5WGSNS0cIYkNaT7Fp4Humn4ntzRx_NjwfA4w,2099
|
|
161
161
|
syllable_sdk/models/insightworkflowactivate.py,sha256=XwMga80GoXNPBvMbER8lX_cfB0zcMsk9ZhIRTH_AHyc,892
|
|
162
|
-
syllable_sdk/models/insightworkflowcondition.py,sha256=
|
|
162
|
+
syllable_sdk/models/insightworkflowcondition.py,sha256=brPTt-3xUqv0wa0GQzObYIc5E2kUt3J9VlNMm__QEvo,3413
|
|
163
163
|
syllable_sdk/models/insightworkflowestimate.py,sha256=diEVEf4XiPnq624z_y3tK2wFUh5m8e5F4-hriC1ezTY,1775
|
|
164
|
-
syllable_sdk/models/insightworkflowinput.py,sha256=
|
|
165
|
-
syllable_sdk/models/insightworkflowoutput.py,sha256=
|
|
164
|
+
syllable_sdk/models/insightworkflowinput.py,sha256=FvGFmOaNgdPill1_O1dQoWyQrGXyu5glGqLJ4KZmS0E,3273
|
|
165
|
+
syllable_sdk/models/insightworkflowoutput.py,sha256=X7AFO6LBi4RRlKD5D8mJjrMoLSoat2EAr1fVpb4Nen4,5060
|
|
166
166
|
syllable_sdk/models/insightworkflowproperties.py,sha256=tCD5v445mS1K1Ng3sbIud6QUuUcIjtZ8SvyLBqZi-bQ,394
|
|
167
167
|
syllable_sdk/models/inspectlatencyresponse.py,sha256=enfpoWfWUPUVoZeejYRP8WT5zSre-S74ARkeXG2tYaY,1195
|
|
168
168
|
syllable_sdk/models/internaltool.py,sha256=d-n7i573SPGBMZ0Krz3UhcJSopb-YkoH0q4uR59Z17I,1260
|
|
@@ -325,29 +325,29 @@ syllable_sdk/models/users_send_emailop.py,sha256=PSWjzSWJ2nsm_o3cEEafbq6W3VmDsFr
|
|
|
325
325
|
syllable_sdk/models/userupdaterequest.py,sha256=mK96YNCSQSm4ib-LsaZoZQM6mj5Wo2OWmmbK9UBp-pQ,2274
|
|
326
326
|
syllable_sdk/models/validationerror.py,sha256=uxsoFicbgd_z1G43oIqm9zxSAulUONwaDMKvaOLytHE,529
|
|
327
327
|
syllable_sdk/models/voicesamplecreaterequest.py,sha256=HXpoJr5cH3DYeMq2sHZ0S92vNGnT2XGPs7BAzAK8K5o,3158
|
|
328
|
-
syllable_sdk/numbers.py,sha256=
|
|
329
|
-
syllable_sdk/organizations.py,sha256=
|
|
328
|
+
syllable_sdk/numbers.py,sha256=nqfC3Cex9wnLtavjKbQ_Aty0tQ3cYJCdS5IsEsSMPlI,24330
|
|
329
|
+
syllable_sdk/organizations.py,sha256=4lF7s0dX93hAek-Hsg99QDsYNlg79snldkLLlREN1e0,30066
|
|
330
330
|
syllable_sdk/outbound.py,sha256=6_SVy_ytR6eoAJQ49LP0cqqoSEO085Y3Hf8Z3rvWXJ4,744
|
|
331
|
-
syllable_sdk/permissions.py,sha256=
|
|
332
|
-
syllable_sdk/prompts.py,sha256=
|
|
331
|
+
syllable_sdk/permissions.py,sha256=EGDOu1toJfNgAEfS4Uv5QdWTPKvnPkH_DWGXDQdDhkk,6891
|
|
332
|
+
syllable_sdk/prompts.py,sha256=he6DC_QyGK--i1TbfaLZLSrr8Wwd-XIUGRL9XLWf_IE,53270
|
|
333
333
|
syllable_sdk/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
|
334
|
-
syllable_sdk/roles.py,sha256=
|
|
335
|
-
syllable_sdk/sdk.py,sha256=
|
|
334
|
+
syllable_sdk/roles.py,sha256=wfAePzjeRItms1lvXIKZo73PdGZnzNn1SgjyMSKqdxc,40374
|
|
335
|
+
syllable_sdk/sdk.py,sha256=P61SDKE0y6_uDg5QHDTGGubo2oBNlKcUms3H-LPhUBM,15588
|
|
336
336
|
syllable_sdk/sdkconfiguration.py,sha256=cbYqSx5Sw6bPo2RiqBsU6OkBJnBBVJ6pNORhPyaTHkg,1594
|
|
337
|
-
syllable_sdk/services.py,sha256=
|
|
338
|
-
syllable_sdk/session_debug.py,sha256=
|
|
339
|
-
syllable_sdk/session_labels.py,sha256=
|
|
340
|
-
syllable_sdk/sessions.py,sha256=
|
|
341
|
-
syllable_sdk/takeouts.py,sha256=
|
|
342
|
-
syllable_sdk/targets.py,sha256=
|
|
343
|
-
syllable_sdk/test.py,sha256=
|
|
344
|
-
syllable_sdk/tools.py,sha256=
|
|
345
|
-
syllable_sdk/transcript.py,sha256=
|
|
346
|
-
syllable_sdk/twilio.py,sha256=
|
|
337
|
+
syllable_sdk/services.py,sha256=tIGg5QvQAMx_IQlTTiHGQ7UuHLFeJgQbQMC5VLKtPos,40107
|
|
338
|
+
syllable_sdk/session_debug.py,sha256=wKqcDWjexF_k3BtZ4whViJOZtwUhVRoNrv22YI9kxTM,22188
|
|
339
|
+
syllable_sdk/session_labels.py,sha256=_9pkwDKQ0Hwnb8neaAYS6ADcfd-Wf5CJXsMgSXaWHbc,25431
|
|
340
|
+
syllable_sdk/sessions.py,sha256=VF_HhFnj1v7jwsT_dXBygcWEpuyJzfnODvDmib9aFbM,32549
|
|
341
|
+
syllable_sdk/takeouts.py,sha256=epDwpu4vpBiFiXBtfWRZlqJGdDWo9kop_SP3B06LpUk,20741
|
|
342
|
+
syllable_sdk/targets.py,sha256=hejkJHuIMzu3NLHMDGFkeI1O6Q7niNVoMGFmvQk3-LU,45152
|
|
343
|
+
syllable_sdk/test.py,sha256=PcbzlxEMiVhbrtpTo6VyjJse6d3D2uAwvganM1uG7as,8204
|
|
344
|
+
syllable_sdk/tools.py,sha256=HKAYTsNPzmjHbbrs-vczV_AtFWM5C-nbyyb5d8kLSZo,40028
|
|
345
|
+
syllable_sdk/transcript.py,sha256=JMvlIDPkvEiHXnHJMCxgjJM76jZmU95LNSNH5MJIZFU,7556
|
|
346
|
+
syllable_sdk/twilio.py,sha256=a80162PJ7AmdYoWtiwBgWnOmLzL9tKKvTI9ue74QaWA,23321
|
|
347
347
|
syllable_sdk/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
|
|
348
348
|
syllable_sdk/types/basemodel.py,sha256=L79WXvTECbSqaJzs8D3ud_KdIWkU7Cx2wbohDAktE9E,1127
|
|
349
|
-
syllable_sdk/users.py,sha256=
|
|
350
|
-
syllable_sdk/utils/__init__.py,sha256=
|
|
349
|
+
syllable_sdk/users.py,sha256=ASag1zFScwEq2SNvOjmtocUWy3TQ1rVWgxeLKCue8S0,53247
|
|
350
|
+
syllable_sdk/utils/__init__.py,sha256=BQt6xIdX86A6mOHAnxAXBXaPgdUJtDy2-_4ymAsII_Y,5436
|
|
351
351
|
syllable_sdk/utils/annotations.py,sha256=aR7mZG34FzgRdew7WZPYEu9QGBerpuKxCF4sek5Z_5Y,1699
|
|
352
352
|
syllable_sdk/utils/datetimes.py,sha256=oppAA5e3V35pQov1-FNLKxAaNF1_XWi-bQtyjjql3H8,855
|
|
353
353
|
syllable_sdk/utils/enums.py,sha256=REU6ydF8gsVL3xaeGX4sMNyiL3q5P9h29-f6Sa6luAE,2633
|
|
@@ -360,11 +360,12 @@ syllable_sdk/utils/queryparams.py,sha256=MTK6inMS1_WwjmMJEJmAn67tSHHJyarpdGRlorR
|
|
|
360
360
|
syllable_sdk/utils/requestbodies.py,sha256=ySjEyjcLi731LNUahWvLOrES2HihuA8VrOJx4eQ7Qzg,2101
|
|
361
361
|
syllable_sdk/utils/retries.py,sha256=6yhfZifqIat9i76xF0lTR2jLj1IN9BNGyqqxATlEFPU,6348
|
|
362
362
|
syllable_sdk/utils/security.py,sha256=ISsENQVLMQAPDsJ09g-m67Bs9YaS1-H-Hhw89RBJA3E,6037
|
|
363
|
-
syllable_sdk/utils/serializers.py,sha256=
|
|
363
|
+
syllable_sdk/utils/serializers.py,sha256=Hndks5M_rJXVub_N5lu0gKZQUoEmWrn6PN7R-0HwvOE,5999
|
|
364
|
+
syllable_sdk/utils/unmarshal_json_response.py,sha256=ie3yrnympvSLf0qqOrnZFbnV_tswyDbbDjqFLU_IBzc,588
|
|
364
365
|
syllable_sdk/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
|
|
365
366
|
syllable_sdk/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
|
|
366
|
-
syllable_sdk/v1.py,sha256=
|
|
367
|
-
syllable_sdk/workflows.py,sha256=
|
|
368
|
-
syllable_sdk-0.35.
|
|
369
|
-
syllable_sdk-0.35.
|
|
370
|
-
syllable_sdk-0.35.
|
|
367
|
+
syllable_sdk/v1.py,sha256=noni4Ds8tZ5oHPZqoEoVJUYGs8L-ts9jGGFDU2E0pyE,53244
|
|
368
|
+
syllable_sdk/workflows.py,sha256=kQPJzssdldotkipoWzu1ddas4IKbpFdXkGFDwDkWt1M,64777
|
|
369
|
+
syllable_sdk-0.35.38.dist-info/METADATA,sha256=jPY2OeFdJi4BxNnTmmQ88IPKDG7panH5gU_nJZ5qciA,45685
|
|
370
|
+
syllable_sdk-0.35.38.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
371
|
+
syllable_sdk-0.35.38.dist-info/RECORD,,
|
|
File without changes
|