syllable-sdk 0.35.32__py3-none-any.whl → 0.35.33__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/__init__.py +0 -1
- syllable_sdk/_version.py +3 -3
- syllable_sdk/agents.py +83 -211
- syllable_sdk/basesdk.py +5 -5
- syllable_sdk/batches.py +131 -329
- syllable_sdk/campaigns.py +73 -183
- syllable_sdk/channels.py +29 -73
- syllable_sdk/conversations.py +19 -37
- syllable_sdk/custom_messages.py +73 -183
- syllable_sdk/dashboards.py +67 -195
- syllable_sdk/data_sources.py +85 -183
- syllable_sdk/errors/__init__.py +55 -0
- syllable_sdk/errors/apierror.py +38 -0
- syllable_sdk/errors/httpvalidationerror.py +26 -0
- syllable_sdk/errors/no_response_error.py +13 -0
- syllable_sdk/errors/responsevalidationerror.py +25 -0
- syllable_sdk/errors/syllablesdkerror.py +26 -0
- syllable_sdk/events.py +15 -37
- syllable_sdk/folders.py +121 -293
- syllable_sdk/full_summary.py +19 -37
- syllable_sdk/incidents.py +83 -215
- syllable_sdk/insights_sdk.py +17 -39
- syllable_sdk/insights_tools.py +97 -251
- syllable_sdk/language_groups.py +85 -215
- syllable_sdk/latency.py +19 -37
- syllable_sdk/models/__init__.py +0 -8
- syllable_sdk/numbers.py +53 -111
- syllable_sdk/organizations.py +51 -139
- syllable_sdk/permissions.py +11 -33
- syllable_sdk/prompts.py +95 -249
- syllable_sdk/roles.py +75 -181
- syllable_sdk/services.py +73 -183
- syllable_sdk/session_debug.py +43 -109
- syllable_sdk/session_labels.py +47 -109
- syllable_sdk/sessions.py +59 -141
- syllable_sdk/takeouts.py +35 -99
- syllable_sdk/targets.py +75 -185
- syllable_sdk/test.py +15 -37
- syllable_sdk/tools.py +75 -181
- syllable_sdk/transcript.py +17 -39
- syllable_sdk/twilio.py +43 -109
- syllable_sdk/users.py +97 -247
- syllable_sdk/utils/__init__.py +3 -0
- syllable_sdk/utils/serializers.py +21 -3
- syllable_sdk/v1.py +97 -247
- syllable_sdk/workflows.py +115 -291
- {syllable_sdk-0.35.32.dist-info → syllable_sdk-0.35.33.dist-info}/METADATA +58 -45
- {syllable_sdk-0.35.32.dist-info → syllable_sdk-0.35.33.dist-info}/RECORD +49 -45
- syllable_sdk/models/apierror.py +0 -22
- syllable_sdk/models/httpvalidationerror.py +0 -21
- {syllable_sdk-0.35.32.dist-info → syllable_sdk-0.35.33.dist-info}/WHEEL +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: syllable-sdk
|
|
3
|
-
Version: 0.35.
|
|
3
|
+
Version: 0.35.33
|
|
4
4
|
Summary: Python Client SDK Generated by Speakeasy.
|
|
5
5
|
Author: Syllable
|
|
6
6
|
Requires-Python: >=3.9.2
|
|
@@ -137,8 +137,7 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u
|
|
|
137
137
|
```python
|
|
138
138
|
# Synchronous Example
|
|
139
139
|
import os
|
|
140
|
-
import
|
|
141
|
-
from syllable_sdk import SyllableSDK
|
|
140
|
+
from syllable_sdk import SyllableSDK, models
|
|
142
141
|
|
|
143
142
|
|
|
144
143
|
with SyllableSDK(
|
|
@@ -146,7 +145,7 @@ with SyllableSDK(
|
|
|
146
145
|
) as ss_client:
|
|
147
146
|
|
|
148
147
|
res = ss_client.agents.list(page=0, limit=25, search_fields=[
|
|
149
|
-
|
|
148
|
+
models.AgentProperties.NAME,
|
|
150
149
|
], search_field_values=[
|
|
151
150
|
"Some Object Name",
|
|
152
151
|
], start_datetime="2023-01-01T00:00:00Z", end_datetime="2024-01-01T00:00:00Z")
|
|
@@ -162,8 +161,7 @@ The same SDK client can also be used to make asychronous requests by importing a
|
|
|
162
161
|
# Asynchronous Example
|
|
163
162
|
import asyncio
|
|
164
163
|
import os
|
|
165
|
-
import
|
|
166
|
-
from syllable_sdk import SyllableSDK
|
|
164
|
+
from syllable_sdk import SyllableSDK, models
|
|
167
165
|
|
|
168
166
|
async def main():
|
|
169
167
|
|
|
@@ -172,7 +170,7 @@ async def main():
|
|
|
172
170
|
) as ss_client:
|
|
173
171
|
|
|
174
172
|
res = await ss_client.agents.list_async(page=0, limit=25, search_fields=[
|
|
175
|
-
|
|
173
|
+
models.AgentProperties.NAME,
|
|
176
174
|
], search_field_values=[
|
|
177
175
|
"Some Object Name",
|
|
178
176
|
], start_datetime="2023-01-01T00:00:00Z", end_datetime="2024-01-01T00:00:00Z")
|
|
@@ -198,8 +196,7 @@ This SDK supports the following security scheme globally:
|
|
|
198
196
|
To authenticate with the API the `api_key_header` parameter must be set when initializing the SDK client instance. For example:
|
|
199
197
|
```python
|
|
200
198
|
import os
|
|
201
|
-
import
|
|
202
|
-
from syllable_sdk import SyllableSDK
|
|
199
|
+
from syllable_sdk import SyllableSDK, models
|
|
203
200
|
|
|
204
201
|
|
|
205
202
|
with SyllableSDK(
|
|
@@ -207,7 +204,7 @@ with SyllableSDK(
|
|
|
207
204
|
) as ss_client:
|
|
208
205
|
|
|
209
206
|
res = ss_client.agents.list(page=0, limit=25, search_fields=[
|
|
210
|
-
|
|
207
|
+
models.AgentProperties.NAME,
|
|
211
208
|
], search_field_values=[
|
|
212
209
|
"Some Object Name",
|
|
213
210
|
], start_datetime="2023-01-01T00:00:00Z", end_datetime="2024-01-01T00:00:00Z")
|
|
@@ -513,8 +510,7 @@ Some of the endpoints in this SDK support retries. If you use the SDK without an
|
|
|
513
510
|
To change the default retry strategy for a single API call, simply provide a `RetryConfig` object to the call:
|
|
514
511
|
```python
|
|
515
512
|
import os
|
|
516
|
-
import
|
|
517
|
-
from syllable_sdk import SyllableSDK
|
|
513
|
+
from syllable_sdk import SyllableSDK, models
|
|
518
514
|
from syllable_sdk.utils import BackoffStrategy, RetryConfig
|
|
519
515
|
|
|
520
516
|
|
|
@@ -523,7 +519,7 @@ with SyllableSDK(
|
|
|
523
519
|
) as ss_client:
|
|
524
520
|
|
|
525
521
|
res = ss_client.agents.list(page=0, limit=25, search_fields=[
|
|
526
|
-
|
|
522
|
+
models.AgentProperties.NAME,
|
|
527
523
|
], search_field_values=[
|
|
528
524
|
"Some Object Name",
|
|
529
525
|
], start_datetime="2023-01-01T00:00:00Z", end_datetime="2024-01-01T00:00:00Z",
|
|
@@ -537,8 +533,7 @@ with SyllableSDK(
|
|
|
537
533
|
If you'd like to override the default retry strategy for all operations that support retries, you can use the `retry_config` optional parameter when initializing the SDK:
|
|
538
534
|
```python
|
|
539
535
|
import os
|
|
540
|
-
import
|
|
541
|
-
from syllable_sdk import SyllableSDK
|
|
536
|
+
from syllable_sdk import SyllableSDK, models
|
|
542
537
|
from syllable_sdk.utils import BackoffStrategy, RetryConfig
|
|
543
538
|
|
|
544
539
|
|
|
@@ -548,7 +543,7 @@ with SyllableSDK(
|
|
|
548
543
|
) as ss_client:
|
|
549
544
|
|
|
550
545
|
res = ss_client.agents.list(page=0, limit=25, search_fields=[
|
|
551
|
-
|
|
546
|
+
models.AgentProperties.NAME,
|
|
552
547
|
], search_field_values=[
|
|
553
548
|
"Some Object Name",
|
|
554
549
|
], start_datetime="2023-01-01T00:00:00Z", end_datetime="2024-01-01T00:00:00Z")
|
|
@@ -562,30 +557,21 @@ with SyllableSDK(
|
|
|
562
557
|
<!-- Start Error Handling [errors] -->
|
|
563
558
|
## Error Handling
|
|
564
559
|
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
By default, an API error will raise a models.APIError exception, which has the following properties:
|
|
560
|
+
[`SyllableSDKError`](https://github.com/asksyllable/syllable-sdk-python/blob/master/./src/syllable_sdk/errors/syllablesdkerror.py) is the base class for all HTTP error responses. It has the following properties:
|
|
568
561
|
|
|
569
|
-
| Property
|
|
570
|
-
|
|
571
|
-
|
|
|
572
|
-
|
|
|
573
|
-
|
|
|
574
|
-
|
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
| Error Type | Status Code | Content Type |
|
|
579
|
-
| -------------------------- | ----------- | ---------------- |
|
|
580
|
-
| models.HTTPValidationError | 422 | application/json |
|
|
581
|
-
| models.APIError | 4XX, 5XX | \*/\* |
|
|
562
|
+
| Property | Type | Description |
|
|
563
|
+
| ------------------ | ---------------- | --------------------------------------------------------------------------------------- |
|
|
564
|
+
| `err.message` | `str` | Error message |
|
|
565
|
+
| `err.status_code` | `int` | HTTP response status code eg `404` |
|
|
566
|
+
| `err.headers` | `httpx.Headers` | HTTP response headers |
|
|
567
|
+
| `err.body` | `str` | HTTP body. Can be empty string if no body is returned. |
|
|
568
|
+
| `err.raw_response` | `httpx.Response` | Raw HTTP response |
|
|
569
|
+
| `err.data` | | Optional. Some errors may contain structured data. [See Error Classes](https://github.com/asksyllable/syllable-sdk-python/blob/master/#error-classes). |
|
|
582
570
|
|
|
583
571
|
### Example
|
|
584
|
-
|
|
585
572
|
```python
|
|
586
573
|
import os
|
|
587
|
-
import
|
|
588
|
-
from syllable_sdk import SyllableSDK, models
|
|
574
|
+
from syllable_sdk import SyllableSDK, errors, models
|
|
589
575
|
|
|
590
576
|
|
|
591
577
|
with SyllableSDK(
|
|
@@ -595,7 +581,7 @@ with SyllableSDK(
|
|
|
595
581
|
try:
|
|
596
582
|
|
|
597
583
|
res = ss_client.agents.list(page=0, limit=25, search_fields=[
|
|
598
|
-
|
|
584
|
+
models.AgentProperties.NAME,
|
|
599
585
|
], search_field_values=[
|
|
600
586
|
"Some Object Name",
|
|
601
587
|
], start_datetime="2023-01-01T00:00:00Z", end_datetime="2024-01-01T00:00:00Z")
|
|
@@ -603,13 +589,41 @@ with SyllableSDK(
|
|
|
603
589
|
# Handle response
|
|
604
590
|
print(res)
|
|
605
591
|
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
592
|
+
|
|
593
|
+
except errors.SyllableSDKError as e:
|
|
594
|
+
# The base class for HTTP error responses
|
|
595
|
+
print(e.message)
|
|
596
|
+
print(e.status_code)
|
|
597
|
+
print(e.body)
|
|
598
|
+
print(e.headers)
|
|
599
|
+
print(e.raw_response)
|
|
600
|
+
|
|
601
|
+
# Depending on the method different errors may be thrown
|
|
602
|
+
if isinstance(e, errors.HTTPValidationError):
|
|
603
|
+
print(e.data.detail) # Optional[List[models.ValidationError]]
|
|
612
604
|
```
|
|
605
|
+
|
|
606
|
+
### Error Classes
|
|
607
|
+
**Primary errors:**
|
|
608
|
+
* [`SyllableSDKError`](https://github.com/asksyllable/syllable-sdk-python/blob/master/./src/syllable_sdk/errors/syllablesdkerror.py): The base class for HTTP error responses.
|
|
609
|
+
* [`HTTPValidationError`](https://github.com/asksyllable/syllable-sdk-python/blob/master/./src/syllable_sdk/errors/httpvalidationerror.py): Validation Error. Status code `422`. *
|
|
610
|
+
|
|
611
|
+
<details><summary>Less common errors (5)</summary>
|
|
612
|
+
|
|
613
|
+
<br />
|
|
614
|
+
|
|
615
|
+
**Network errors:**
|
|
616
|
+
* [`httpx.RequestError`](https://www.python-httpx.org/exceptions/#httpx.RequestError): Base class for request errors.
|
|
617
|
+
* [`httpx.ConnectError`](https://www.python-httpx.org/exceptions/#httpx.ConnectError): HTTP client was unable to make a request to a server.
|
|
618
|
+
* [`httpx.TimeoutException`](https://www.python-httpx.org/exceptions/#httpx.TimeoutException): HTTP request timed out.
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
**Inherit from [`SyllableSDKError`](https://github.com/asksyllable/syllable-sdk-python/blob/master/./src/syllable_sdk/errors/syllablesdkerror.py)**:
|
|
622
|
+
* [`ResponseValidationError`](https://github.com/asksyllable/syllable-sdk-python/blob/master/./src/syllable_sdk/errors/responsevalidationerror.py): Type mismatch between the response data and the expected Pydantic model. Provides access to the Pydantic validation error via the `cause` attribute.
|
|
623
|
+
|
|
624
|
+
</details>
|
|
625
|
+
|
|
626
|
+
\* Check [the method documentation](https://github.com/asksyllable/syllable-sdk-python/blob/master/#available-resources-and-operations) to see if the error is applicable.
|
|
613
627
|
<!-- End Error Handling [errors] -->
|
|
614
628
|
|
|
615
629
|
<!-- Start Server Selection [server] -->
|
|
@@ -620,8 +634,7 @@ with SyllableSDK(
|
|
|
620
634
|
The default server can be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
|
|
621
635
|
```python
|
|
622
636
|
import os
|
|
623
|
-
import
|
|
624
|
-
from syllable_sdk import SyllableSDK
|
|
637
|
+
from syllable_sdk import SyllableSDK, models
|
|
625
638
|
|
|
626
639
|
|
|
627
640
|
with SyllableSDK(
|
|
@@ -630,7 +643,7 @@ with SyllableSDK(
|
|
|
630
643
|
) as ss_client:
|
|
631
644
|
|
|
632
645
|
res = ss_client.agents.list(page=0, limit=25, search_fields=[
|
|
633
|
-
|
|
646
|
+
models.AgentProperties.NAME,
|
|
634
647
|
], search_field_values=[
|
|
635
648
|
"Some Object Name",
|
|
636
649
|
], start_datetime="2023-01-01T00:00:00Z", end_datetime="2024-01-01T00:00:00Z")
|
|
@@ -1,28 +1,34 @@
|
|
|
1
|
-
syllable_sdk/__init__.py,sha256=
|
|
1
|
+
syllable_sdk/__init__.py,sha256=w2u919V3Tzv4zEPQ-OYJ79gQ_4_SyW7GOFFoHtqXDFA,401
|
|
2
2
|
syllable_sdk/_hooks/__init__.py,sha256=9_7W5jAYw8rcO8Kfc-Ty-lB82BHfksAJJpVFb_UeU1c,146
|
|
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=
|
|
8
|
-
syllable_sdk/basesdk.py,sha256=
|
|
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=
|
|
16
|
-
syllable_sdk/
|
|
17
|
-
syllable_sdk/
|
|
18
|
-
syllable_sdk/
|
|
6
|
+
syllable_sdk/_version.py,sha256=Q3Wd5jBJRjjuGUKzkntm9-2ECHDbLMbgu39-wPnLYCM,470
|
|
7
|
+
syllable_sdk/agents.py,sha256=3LmumD6d5qfLl7IQApeoyCPWh496dfngb-bvhs0SRis,46807
|
|
8
|
+
syllable_sdk/basesdk.py,sha256=dULbDf9e71tjSgOe7YwC9jD-80uIFiMrAhFbFvbEYho,11916
|
|
9
|
+
syllable_sdk/batches.py,sha256=htqidc-5qdeHm4ccme0QYaVHtSrG2mppCghZrDWvRvo,73196
|
|
10
|
+
syllable_sdk/campaigns.py,sha256=7sajGKhDciWyr3-lDWyX-8Md0HTirVXaHQOg0ZFrA1U,40587
|
|
11
|
+
syllable_sdk/channels.py,sha256=ErG1zma8DZfs6w1oGB85XsIb-rSLQ6tMJ0UQzTJEf0Y,18654
|
|
12
|
+
syllable_sdk/conversations.py,sha256=0hNzL1-Kkbnn-XX1Qvx-xbmSKxYEt0BYeJiq8bocmVM,10748
|
|
13
|
+
syllable_sdk/custom_messages.py,sha256=AmraS8f2pdDT9h2WUFYPtxA-Q4vI26jqNg_rjyZlWuI,41348
|
|
14
|
+
syllable_sdk/dashboards.py,sha256=GD_8QyeRE83ouyA7zbqogHbTazWzGm7YFukDG3XZzWg,45519
|
|
15
|
+
syllable_sdk/data_sources.py,sha256=C4Xnuk97Jfp3mHn1Z6dRSDexHVKWKWd6Y-GdM1GLRNY,41130
|
|
16
|
+
syllable_sdk/errors/__init__.py,sha256=YPocjxLNtvZDr-26Vblv3TCBFx7GBwr5jTHWg3_4MSE,1698
|
|
17
|
+
syllable_sdk/errors/apierror.py,sha256=CM3pZTIA9QnXmav_lDlcGgwyYLJ4pmMtni4Ck-iwFow,1234
|
|
18
|
+
syllable_sdk/errors/httpvalidationerror.py,sha256=wBTQY0G7zOW5nGyKkZDkEDc51htoMJTVBXO1mVYFh-4,794
|
|
19
|
+
syllable_sdk/errors/no_response_error.py,sha256=FQG44Lq6uF7uUlzbUYfM3dJon6sbqXzJ0Ri6YrDdsEs,380
|
|
20
|
+
syllable_sdk/errors/responsevalidationerror.py,sha256=yjbGMdguC5CxzL9DOykZYl-EF7ogz7V-fbWdttSYf4E,701
|
|
21
|
+
syllable_sdk/errors/syllablesdkerror.py,sha256=KM5G7mkzhdFyax1X6fj5sIjRGP-bxLanyccRMKbhqcE,718
|
|
22
|
+
syllable_sdk/events.py,sha256=TaITgBbp2Ym1B2Baz63Xgi-k6Wd3Of4Is9oW_Ng8wnc,10549
|
|
23
|
+
syllable_sdk/folders.py,sha256=zrvFzJkXu3soGu8gV2HgCopjUoTsXzyqPMXYDkcxfII,69685
|
|
24
|
+
syllable_sdk/full_summary.py,sha256=g2ftwh4PjejArlEBHPhudZsEsIVoO8e-2WypXTrRLt4,7492
|
|
19
25
|
syllable_sdk/httpclient.py,sha256=Eu73urOAiZQtdUIyOUnPccxCiBbWEKrXG-JrRG3SLM4,3946
|
|
20
|
-
syllable_sdk/incidents.py,sha256=
|
|
21
|
-
syllable_sdk/insights_sdk.py,sha256=
|
|
22
|
-
syllable_sdk/insights_tools.py,sha256=
|
|
23
|
-
syllable_sdk/language_groups.py,sha256=
|
|
24
|
-
syllable_sdk/latency.py,sha256=
|
|
25
|
-
syllable_sdk/models/__init__.py,sha256=
|
|
26
|
+
syllable_sdk/incidents.py,sha256=eKQbZjEFlZH6A_MRU9AUm1vRVMHavJF2XGfZJxBODnE,46475
|
|
27
|
+
syllable_sdk/insights_sdk.py,sha256=BHUfBB2geY6HSMhrqzn3OBa-1zPB4oSYSv_QMqycOxk,11925
|
|
28
|
+
syllable_sdk/insights_tools.py,sha256=PIktUpeaeN2kMay35WedFf6lkiKXiouDPovDuyxE0fQ,55252
|
|
29
|
+
syllable_sdk/language_groups.py,sha256=w-IkOz6FaMceGM6pl-MYqk2cdZ1hqNkHBy3iwxXh0yY,49267
|
|
30
|
+
syllable_sdk/latency.py,sha256=HFyXe9QJodM4Y-MBuYzItiACH6gmL2FICrZNzMw8xi0,7454
|
|
31
|
+
syllable_sdk/models/__init__.py,sha256=2pK0yy6zUHZ1c9LYaOmxJmuaIcgXiUpiWuqDHbF9yFI,83441
|
|
26
32
|
syllable_sdk/models/agent_deleteop.py,sha256=tUbi-gwd4chf2Ba9O9lCvqDQw6YOnn7aheu8OPDzptc,629
|
|
27
33
|
syllable_sdk/models/agent_get_by_idop.py,sha256=vj_xEbhOv3c8n3-B3uQnfTwHWdxYSE4k3Zvr58Yc9A4,484
|
|
28
34
|
syllable_sdk/models/agent_listop.py,sha256=dJdQuIst1TF4xMol9XVdX4xOw8z06jyAQpm46_u0Ysk,5007
|
|
@@ -40,7 +46,6 @@ syllable_sdk/models/agentvoicegender.py,sha256=eSrSwtf7UsFw9hFLcdgtjyp_OeNheZRGJ
|
|
|
40
46
|
syllable_sdk/models/agentvoicemodel.py,sha256=N3TAL-P3ygR1NOJ50sTTQGYSbRbsFcC-tf-auKPndrQ,435
|
|
41
47
|
syllable_sdk/models/agentvoicevarname.py,sha256=aP_1qjeRx7Hye5mC_6u-7RPpHqAZFPorQIBXCr88SmY,5897
|
|
42
48
|
syllable_sdk/models/agentwaitsound.py,sha256=ymA-9uspKNFof6S1_JNnaqjUqK7P1e5SY44xQdtjWDc,328
|
|
43
|
-
syllable_sdk/models/apierror.py,sha256=9mTyJSyvUAOnSfW_1HWt9dGl8IDlpQ68DebwYsDNdug,528
|
|
44
49
|
syllable_sdk/models/available_targetsop.py,sha256=Y51_cmkQO9zDsL10ObhxUgnMluyHht3mqQLRUNh8i68,5101
|
|
45
50
|
syllable_sdk/models/availabletarget.py,sha256=fiLk4tQ_ZWmqjPYUm49ckaTtvmT4DppBfPdxMJujQo0,2217
|
|
46
51
|
syllable_sdk/models/availabletargetproperties.py,sha256=taQ4fRcKP1AmUFursvvCqOfaIN_A14kiIULR776FJks,365
|
|
@@ -113,7 +118,6 @@ syllable_sdk/models/generate_session_recording_urlsop.py,sha256=gQ0CIWLaOB-gSlyV
|
|
|
113
118
|
syllable_sdk/models/get_session_data_by_session_idop.py,sha256=8IEsII6_AZjc8E52t0rfmlLC5Z8L4mDeJ7jzxlMx4aQ,514
|
|
114
119
|
syllable_sdk/models/get_session_data_by_sidop.py,sha256=hy1WQAdwx3p9h39iEMLGdaaXlQkHqcTvnh2aq0aNBQ4,682
|
|
115
120
|
syllable_sdk/models/get_session_tool_call_result_by_idop.py,sha256=203xSqn0_eJKomS4DVP8HeLt28wQiDQRfEdLwnvpaDo,660
|
|
116
|
-
syllable_sdk/models/httpvalidationerror.py,sha256=XiQh0SDKWCN7INtWL84h5X4XL_lS72FTcMtRIaNwVC8,610
|
|
117
121
|
syllable_sdk/models/incident_deleteop.py,sha256=sF9f9ISsZ4LkAxSJF_8EhLA1XSdcsEUb3DiSe-ZCWhk,641
|
|
118
122
|
syllable_sdk/models/incident_get_by_idop.py,sha256=g_WK1vlPPNfCkXovtcYfriQASEYON2spyi5ql2D9nLk,496
|
|
119
123
|
syllable_sdk/models/incident_listop.py,sha256=0Plvi_l59L7mA2hlXUAsgS9Yh8beiUneKK-gxlCCmtM,5037
|
|
@@ -321,29 +325,29 @@ syllable_sdk/models/users_send_emailop.py,sha256=PSWjzSWJ2nsm_o3cEEafbq6W3VmDsFr
|
|
|
321
325
|
syllable_sdk/models/userupdaterequest.py,sha256=mK96YNCSQSm4ib-LsaZoZQM6mj5Wo2OWmmbK9UBp-pQ,2274
|
|
322
326
|
syllable_sdk/models/validationerror.py,sha256=uxsoFicbgd_z1G43oIqm9zxSAulUONwaDMKvaOLytHE,529
|
|
323
327
|
syllable_sdk/models/voicesamplecreaterequest.py,sha256=HXpoJr5cH3DYeMq2sHZ0S92vNGnT2XGPs7BAzAK8K5o,3158
|
|
324
|
-
syllable_sdk/numbers.py,sha256=
|
|
325
|
-
syllable_sdk/organizations.py,sha256=
|
|
328
|
+
syllable_sdk/numbers.py,sha256=pJGS79HhOmjkqPWYpy8BYYjAh5uMUioP9GFRhf2MOIM,24503
|
|
329
|
+
syllable_sdk/organizations.py,sha256=6UlCMDaNnL7HS2hocQPq0uD9--nOamoQVe4aR3B4IxU,30071
|
|
326
330
|
syllable_sdk/outbound.py,sha256=6_SVy_ytR6eoAJQ49LP0cqqoSEO085Y3Hf8Z3rvWXJ4,744
|
|
327
|
-
syllable_sdk/permissions.py,sha256=
|
|
328
|
-
syllable_sdk/prompts.py,sha256=
|
|
331
|
+
syllable_sdk/permissions.py,sha256=bQw3yCqHk5eW0fbQSnHXi7aEOTC5WGdnGzaUWYckkns,6824
|
|
332
|
+
syllable_sdk/prompts.py,sha256=TQceuHTP4umfivAIMesfVccgmrZzs0W62uJehlwaGgo,53407
|
|
329
333
|
syllable_sdk/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
|
330
|
-
syllable_sdk/roles.py,sha256=
|
|
334
|
+
syllable_sdk/roles.py,sha256=WMsFatLVxXSeIdEXmDcZuBmRvnofS1CLhIG8V8CsN6w,40475
|
|
331
335
|
syllable_sdk/sdk.py,sha256=AqYFoA4CH3JlGENkinAhjvftV4YKdsVjw2xDnwUIYGE,14657
|
|
332
336
|
syllable_sdk/sdkconfiguration.py,sha256=cbYqSx5Sw6bPo2RiqBsU6OkBJnBBVJ6pNORhPyaTHkg,1594
|
|
333
|
-
syllable_sdk/services.py,sha256=
|
|
334
|
-
syllable_sdk/session_debug.py,sha256=
|
|
335
|
-
syllable_sdk/session_labels.py,sha256=
|
|
336
|
-
syllable_sdk/sessions.py,sha256=
|
|
337
|
-
syllable_sdk/takeouts.py,sha256=
|
|
338
|
-
syllable_sdk/targets.py,sha256=
|
|
339
|
-
syllable_sdk/test.py,sha256=
|
|
340
|
-
syllable_sdk/tools.py,sha256=
|
|
341
|
-
syllable_sdk/transcript.py,sha256=
|
|
342
|
-
syllable_sdk/twilio.py,sha256=
|
|
337
|
+
syllable_sdk/services.py,sha256=VEuW__Vh7KtDgbIO9C_Hy_n31TC52VdDwkXgsfU25PU,40208
|
|
338
|
+
syllable_sdk/session_debug.py,sha256=2wyLWOINgHpYxYHG1aKcT5QUqjvVrVUFwhFzc-2d3qs,22181
|
|
339
|
+
syllable_sdk/session_labels.py,sha256=r9jKFGDiO7RbhsQ4TwoVAAl1z-hy4piIXrEHmuWED8A,25484
|
|
340
|
+
syllable_sdk/sessions.py,sha256=eC42J2OACmjJRrpttxoMc-mutp5hcO-Jvfb-jyvw57o,32614
|
|
341
|
+
syllable_sdk/takeouts.py,sha256=irllSIdTgYwd-62sWBUEn2-OAcqf74L5QOsq5ccx-ac,20710
|
|
342
|
+
syllable_sdk/targets.py,sha256=UZQ_pMmNqjIxr5yvNeHVc4MEa6FBvJUIYodPf9SyzHY,45253
|
|
343
|
+
syllable_sdk/test.py,sha256=FXx4GDgbenK5G7ZwcZwBeyO-6UwiVab1uMmMkF_iv8A,8149
|
|
344
|
+
syllable_sdk/tools.py,sha256=KidB2O5d6x2zkIfhqIMbZPkUchMymjhWD4FFJJMjHlM,40129
|
|
345
|
+
syllable_sdk/transcript.py,sha256=h6C-YLUeCiKhe2GsRAJ81SK9EhaU7qtfKp90lAP67lk,7501
|
|
346
|
+
syllable_sdk/twilio.py,sha256=_6jRnm-CbgooYI6m6E7F6eGye1PRZ_JGSolWHjiWIjY,23314
|
|
343
347
|
syllable_sdk/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
|
|
344
348
|
syllable_sdk/types/basemodel.py,sha256=L79WXvTECbSqaJzs8D3ud_KdIWkU7Cx2wbohDAktE9E,1127
|
|
345
|
-
syllable_sdk/users.py,sha256=
|
|
346
|
-
syllable_sdk/utils/__init__.py,sha256=
|
|
349
|
+
syllable_sdk/users.py,sha256=AjtcGmTxflbqBog--SR_5CeN5X6WHq-jIyxx3SG8XpM,53384
|
|
350
|
+
syllable_sdk/utils/__init__.py,sha256=7PZhKrdGnbPpXnPNaJR8C8QXpKC-mkyaJA_zglZUDLc,5547
|
|
347
351
|
syllable_sdk/utils/annotations.py,sha256=aR7mZG34FzgRdew7WZPYEu9QGBerpuKxCF4sek5Z_5Y,1699
|
|
348
352
|
syllable_sdk/utils/datetimes.py,sha256=oppAA5e3V35pQov1-FNLKxAaNF1_XWi-bQtyjjql3H8,855
|
|
349
353
|
syllable_sdk/utils/enums.py,sha256=REU6ydF8gsVL3xaeGX4sMNyiL3q5P9h29-f6Sa6luAE,2633
|
|
@@ -356,11 +360,11 @@ syllable_sdk/utils/queryparams.py,sha256=MTK6inMS1_WwjmMJEJmAn67tSHHJyarpdGRlorR
|
|
|
356
360
|
syllable_sdk/utils/requestbodies.py,sha256=ySjEyjcLi731LNUahWvLOrES2HihuA8VrOJx4eQ7Qzg,2101
|
|
357
361
|
syllable_sdk/utils/retries.py,sha256=6yhfZifqIat9i76xF0lTR2jLj1IN9BNGyqqxATlEFPU,6348
|
|
358
362
|
syllable_sdk/utils/security.py,sha256=ISsENQVLMQAPDsJ09g-m67Bs9YaS1-H-Hhw89RBJA3E,6037
|
|
359
|
-
syllable_sdk/utils/serializers.py,sha256=
|
|
363
|
+
syllable_sdk/utils/serializers.py,sha256=CCChP5PNN3J7uxUgIaUGD5-Xf6zrkCwdz7w-SZvt0X0,6436
|
|
360
364
|
syllable_sdk/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
|
|
361
365
|
syllable_sdk/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
|
|
362
|
-
syllable_sdk/v1.py,sha256=
|
|
363
|
-
syllable_sdk/workflows.py,sha256=
|
|
364
|
-
syllable_sdk-0.35.
|
|
365
|
-
syllable_sdk-0.35.
|
|
366
|
-
syllable_sdk-0.35.
|
|
366
|
+
syllable_sdk/v1.py,sha256=czPQWTcfAJHf1edQI37hjRz_R0YJsczIXsqeZcXHVmE,53381
|
|
367
|
+
syllable_sdk/workflows.py,sha256=3UyifdkJHMo_CVGGC0qMaX1GYrXnP5kQiT1K2FuWi34,64890
|
|
368
|
+
syllable_sdk-0.35.33.dist-info/METADATA,sha256=uftgBZ87RzsIVJps6cgdZBYHX-ETyRYZhkx4qbK4sAk,44808
|
|
369
|
+
syllable_sdk-0.35.33.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
370
|
+
syllable_sdk-0.35.33.dist-info/RECORD,,
|
syllable_sdk/models/apierror.py
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
-
|
|
3
|
-
from dataclasses import dataclass
|
|
4
|
-
from typing import Optional
|
|
5
|
-
import httpx
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
@dataclass
|
|
9
|
-
class APIError(Exception):
|
|
10
|
-
"""Represents an error returned by the API."""
|
|
11
|
-
|
|
12
|
-
message: str
|
|
13
|
-
status_code: int = -1
|
|
14
|
-
body: str = ""
|
|
15
|
-
raw_response: Optional[httpx.Response] = None
|
|
16
|
-
|
|
17
|
-
def __str__(self):
|
|
18
|
-
body = ""
|
|
19
|
-
if len(self.body) > 0:
|
|
20
|
-
body = f"\n{self.body}"
|
|
21
|
-
|
|
22
|
-
return f"{self.message}: Status {self.status_code}{body}"
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
from .validationerror import ValidationError
|
|
5
|
-
from syllable_sdk import utils
|
|
6
|
-
from syllable_sdk.types import BaseModel
|
|
7
|
-
from typing import List, Optional
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class HTTPValidationErrorData(BaseModel):
|
|
11
|
-
detail: Optional[List[ValidationError]] = None
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
class HTTPValidationError(Exception):
|
|
15
|
-
data: HTTPValidationErrorData
|
|
16
|
-
|
|
17
|
-
def __init__(self, data: HTTPValidationErrorData):
|
|
18
|
-
self.data = data
|
|
19
|
-
|
|
20
|
-
def __str__(self) -> str:
|
|
21
|
-
return utils.marshal_json(self.data, HTTPValidationErrorData)
|
|
File without changes
|