syllable-sdk 0.39.4__py3-none-any.whl → 0.40.0__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,74 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .directorymember import DirectoryMember, DirectoryMemberTypedDict
5
+ from pydantic import model_serializer
6
+ from syllable_sdk.types import (
7
+ BaseModel,
8
+ Nullable,
9
+ OptionalNullable,
10
+ UNSET,
11
+ UNSET_SENTINEL,
12
+ )
13
+ from typing import List
14
+ from typing_extensions import NotRequired, TypedDict
15
+
16
+
17
+ class ListResponseDirectoryMemberTypedDict(TypedDict):
18
+ items: List[DirectoryMemberTypedDict]
19
+ r"""List of items returned from the query"""
20
+ page: int
21
+ r"""The page number of the results (0-based)"""
22
+ page_size: int
23
+ r"""The number of items returned per page"""
24
+ total_pages: NotRequired[Nullable[int]]
25
+ r"""The total number of pages of results given the indicated page size"""
26
+ total_count: NotRequired[Nullable[int]]
27
+ r"""The total number of items returned from the query"""
28
+
29
+
30
+ class ListResponseDirectoryMember(BaseModel):
31
+ items: List[DirectoryMember]
32
+ r"""List of items returned from the query"""
33
+
34
+ page: int
35
+ r"""The page number of the results (0-based)"""
36
+
37
+ page_size: int
38
+ r"""The number of items returned per page"""
39
+
40
+ total_pages: OptionalNullable[int] = UNSET
41
+ r"""The total number of pages of results given the indicated page size"""
42
+
43
+ total_count: OptionalNullable[int] = UNSET
44
+ r"""The total number of items returned from the query"""
45
+
46
+ @model_serializer(mode="wrap")
47
+ def serialize_model(self, handler):
48
+ optional_fields = ["total_pages", "total_count"]
49
+ nullable_fields = ["total_pages", "total_count"]
50
+ null_default_fields = []
51
+
52
+ serialized = handler(self)
53
+
54
+ m = {}
55
+
56
+ for n, f in type(self).model_fields.items():
57
+ k = f.alias or n
58
+ val = serialized.get(k)
59
+ serialized.pop(k, None)
60
+
61
+ optional_nullable = k in optional_fields and k in nullable_fields
62
+ is_set = (
63
+ self.__pydantic_fields_set__.intersection({n})
64
+ or k in null_default_fields
65
+ ) # pylint: disable=no-member
66
+
67
+ if val is not None and val != UNSET_SENTINEL:
68
+ m[k] = val
69
+ elif val != UNSET_SENTINEL and (
70
+ not k in optional_fields or (optional_nullable and is_set)
71
+ ):
72
+ m[k] = val
73
+
74
+ return m
syllable_sdk/sdk.py CHANGED
@@ -21,6 +21,7 @@ if TYPE_CHECKING:
21
21
  from syllable_sdk.custom_messages import CustomMessages
22
22
  from syllable_sdk.dashboards import Dashboards
23
23
  from syllable_sdk.data_sources import DataSources
24
+ from syllable_sdk.directory import Directory
24
25
  from syllable_sdk.events import Events
25
26
  from syllable_sdk.incidents import Incidents
26
27
  from syllable_sdk.insights_sdk import InsightsSDK
@@ -112,6 +113,8 @@ class SyllableSDK(BaseSDK):
112
113
  session_debug: "SessionDebug"
113
114
  tools: "Tools"
114
115
  r"""Operations related to tool configuration. A tool is a function that an agent can call to perform actions like accessing databases, making API calls, or processing data. For an agent to have access to a tool, the prompt associated with that agent should be linked to the tool and include instructions to use it. For more information, see [Console docs](https://docs.syllable.ai/Resources/Tools)."""
116
+ directory: "Directory"
117
+ r"""Operations related to directory"""
115
118
  dashboards: "Dashboards"
116
119
  r"""Operations related to dashboards. Currently the API/SDK only supports fetching basic information about dashboards."""
117
120
  organizations: "Organizations"
@@ -141,6 +144,7 @@ class SyllableSDK(BaseSDK):
141
144
  "sessions": ("syllable_sdk.sessions", "Sessions"),
142
145
  "session_debug": ("syllable_sdk.session_debug", "SessionDebug"),
143
146
  "tools": ("syllable_sdk.tools", "Tools"),
147
+ "directory": ("syllable_sdk.directory", "Directory"),
144
148
  "dashboards": ("syllable_sdk.dashboards", "Dashboards"),
145
149
  "organizations": ("syllable_sdk.organizations", "Organizations"),
146
150
  "outbound": ("syllable_sdk.outbound", "Outbound"),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: syllable-sdk
3
- Version: 0.39.4
3
+ Version: 0.40.0
4
4
  Summary: Python Client SDK Generated by Speakeasy.
5
5
  Author: Syllable
6
6
  Requires-Python: >=3.9.2
@@ -316,6 +316,16 @@ with SyllableSDK(
316
316
  * [get_by_id](https://github.com/asksyllable/syllable-sdk-python/blob/master/docs/sdks/datasources/README.md#get_by_id) - Get Data Source
317
317
  * [delete](https://github.com/asksyllable/syllable-sdk-python/blob/master/docs/sdks/datasources/README.md#delete) - Delete Data Source
318
318
 
319
+ ### [directory](https://github.com/asksyllable/syllable-sdk-python/blob/master/docs/sdks/directory/README.md)
320
+
321
+ * [list](https://github.com/asksyllable/syllable-sdk-python/blob/master/docs/sdks/directory/README.md#list) - Directory Member List
322
+ * [create](https://github.com/asksyllable/syllable-sdk-python/blob/master/docs/sdks/directory/README.md#create) - Create Directory Member
323
+ * [get_by_id](https://github.com/asksyllable/syllable-sdk-python/blob/master/docs/sdks/directory/README.md#get_by_id) - Get Directory Member By Id
324
+ * [update](https://github.com/asksyllable/syllable-sdk-python/blob/master/docs/sdks/directory/README.md#update) - Update Directory Member
325
+ * [delete](https://github.com/asksyllable/syllable-sdk-python/blob/master/docs/sdks/directory/README.md#delete) - Delete Directory Member
326
+ * [directory_member_bulk_load](https://github.com/asksyllable/syllable-sdk-python/blob/master/docs/sdks/directory/README.md#directory_member_bulk_load) - Bulk Load Directory Members
327
+ * [directory_member_download](https://github.com/asksyllable/syllable-sdk-python/blob/master/docs/sdks/directory/README.md#directory_member_download) - Download Directory Members
328
+
319
329
  ### [events](https://github.com/asksyllable/syllable-sdk-python/blob/master/docs/sdks/events/README.md)
320
330
 
321
331
  * [list](https://github.com/asksyllable/syllable-sdk-python/blob/master/docs/sdks/events/README.md#list) - Events List
@@ -3,7 +3,7 @@ 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=qYKRAvL1s9QhxWc1UjwiYEhtGH08tso2ThEaJiQBAf0,468
6
+ syllable_sdk/_version.py,sha256=P9dKhXhLC0aiyrVLG7_NswdkOPuMRjPRo5PEvvo--cQ,468
7
7
  syllable_sdk/agents.py,sha256=KV-3_nFZGBOQV0IAfjO3TFhorfr-PV6eeuTl6DL8AqI,46820
8
8
  syllable_sdk/basesdk.py,sha256=PCXez-bS_sOzXpRo7awDMzW4zqGJtktHytrlQfG1HNw,12211
9
9
  syllable_sdk/batches.py,sha256=I-mV5vzpM3BfO91NLmtwt-GKhrOjf351XWFLrdvIofU,73095
@@ -13,6 +13,7 @@ syllable_sdk/conversations.py,sha256=ghoxP8diGGzI19G2Lffr9v3XgQ_dbC-NibDOvwhaW00
13
13
  syllable_sdk/custom_messages.py,sha256=TFZWJEtt6obeBx7hMZUZkN7rsTlZzLABdS8UHblegU8,41327
14
14
  syllable_sdk/dashboards.py,sha256=db98Dq21VhsVWGKdpWePp5I6dwgQUkQaKRJHun5yVFI,45466
15
15
  syllable_sdk/data_sources.py,sha256=yQ26ikJElPq6HujNJ4_8971GxpFD0LH4kWi2vgKudSA,40929
16
+ syllable_sdk/directory.py,sha256=thTgpawyfT9YaTlWBpiDEMXPpMT1Woknr60Sc8Crrw4,54775
16
17
  syllable_sdk/errors/__init__.py,sha256=b7YCOOsKA0VcV2bgdwU0w8lITftThPQ5QHX8sTisILk,2098
17
18
  syllable_sdk/errors/apierror.py,sha256=-LoYmnlQmN0_BBJU1vWCEvA3QDeag_x4lbw7u4R6pfk,1297
18
19
  syllable_sdk/errors/httpvalidationerror.py,sha256=ZsPoNUMwj4CdGcDRWmljjBmg_a9UkpoKSBFFylM9Pu0,906
@@ -28,7 +29,7 @@ syllable_sdk/insights_sdk.py,sha256=_RfPEqpJGTYpGv0kxID2YQb-EbbhZKc82VwlB4xDON4,
28
29
  syllable_sdk/insights_tools.py,sha256=CcOobBAVx2kS8fj4Qk6eoPanmVpEMK7oH9IFaijDlQs,55143
29
30
  syllable_sdk/language_groups.py,sha256=6x4_4TNhVaz-O50iT1hpDQGfoH1OZdIR0-lL4y5Psbg,51531
30
31
  syllable_sdk/latency.py,sha256=qJT16MmojZcxXD2-x5i27FplrB4O_fAN264LsHbHckg,7453
31
- syllable_sdk/models/__init__.py,sha256=b1Hd0yhEvGiJGypzKQ7OJg1sWZKJsdziGIr5XPG4Nlk,91742
32
+ syllable_sdk/models/__init__.py,sha256=5b6cyeBUwxhu8VdKbo1qH77Q6n_gp0pWsLb0p68rDCU,95997
32
33
  syllable_sdk/models/agent_deleteop.py,sha256=tUbi-gwd4chf2Ba9O9lCvqDQw6YOnn7aheu8OPDzptc,629
33
34
  syllable_sdk/models/agent_get_by_idop.py,sha256=vj_xEbhOv3c8n3-B3uQnfTwHWdxYSE4k3Zvr58Yc9A4,484
34
35
  syllable_sdk/models/agent_listop.py,sha256=dJdQuIst1TF4xMol9XVdX4xOw8z06jyAQpm46_u0Ysk,5007
@@ -52,6 +53,7 @@ syllable_sdk/models/availabletargetproperties.py,sha256=taQ4fRcKP1AmUFursvvCqOfa
52
53
  syllable_sdk/models/batchdetails.py,sha256=TqjwXffSf77omFY2uVJBckSkCFW7MUs_1fnLWQPxYyA,4170
53
54
  syllable_sdk/models/batchproperties.py,sha256=89ZX5kuIyO7VzVhogtOh5vQajSGT7pQWo6AaNoDmWsA,316
54
55
  syllable_sdk/models/batchstatus.py,sha256=NZOhX8BPxuxtr7IP_1pX4_4sy8Oe6p31h1gnATgV4FE,347
56
+ syllable_sdk/models/body_directory_member_bulk_load.py,sha256=jpNkQNE0lk6_z1UpGU7DWIt94SnDw2wYeSZ0jByxWOE,1307
55
57
  syllable_sdk/models/body_insights_folder_upload_file.py,sha256=6m577ErqGnhPNsGoDvG9fO7vjwbwA8XNgzTgrxeSzQc,1343
56
58
  syllable_sdk/models/body_organizations_create.py,sha256=z2TKa8xfLgQ_zXYD7vmhz5ED2cVhwg2Ks-YHqVNtISk,3602
57
59
  syllable_sdk/models/body_organizations_delete.py,sha256=-ooSAYXKGB45bRpcTJrKJhyLg2sLBwgLHIn3ph4FFws,1619
@@ -113,6 +115,14 @@ syllable_sdk/models/dialogmessage.py,sha256=MlB4omxykh8oFlt-UuIJ4YN91YOGTM4K1i8E
113
115
  syllable_sdk/models/dialogrole.py,sha256=KAsvAMkeFhkv4JDsTM0Bw8XctAbtcUhq5DU1CFMOhpc,226
114
116
  syllable_sdk/models/dialogtoolcall.py,sha256=hDdnuQQNrB4Vzb--R_v3ze_p9McQszzyQG9JwWrGmZo,1904
115
117
  syllable_sdk/models/dictionarymetadata.py,sha256=aXEVP6T0vNXh85_LYdvOqhtwzGvTyuyEhC-kleI3D9M,555
118
+ syllable_sdk/models/directory_member_deleteop.py,sha256=a6T1MBc0ZUBaQFQ3ugRMs_E8Ic0p9zCWs9FmdWp-MHg,504
119
+ syllable_sdk/models/directory_member_get_by_idop.py,sha256=5IvyVMM4Ykm-_75QYbe3ljxatQUvO2sQHtQ5Xt98NE8,506
120
+ syllable_sdk/models/directory_member_listop.py,sha256=568u6zJ86cE45I9mF4dzRd4dRn-EHTlppdtazmx5W2c,5107
121
+ syllable_sdk/models/directory_member_updateop.py,sha256=q3kr--mKru1xyqv81_lpHNR_wcHWcXh-0sqj4VvhbsE,783
122
+ syllable_sdk/models/directoryextension.py,sha256=iGkSEB0W6M-odk9-34EqdxTHPSVfb4fGxgni4uzqzl4,1557
123
+ syllable_sdk/models/directorymember.py,sha256=AgMLgVBA7r_X4u2IUgEB9moSob1ZOqQiMbWC_i5HgM8,2923
124
+ syllable_sdk/models/directorymembercreate.py,sha256=Z8RNV7bYZ8AYUCPBqJi3XGwSer7vFyZCsb52rs3hpJE,2749
125
+ syllable_sdk/models/directorymemberproperties.py,sha256=aNLqwweGWUYHbbaStYj8MtStQeP2kIdoUcxopsseDL8,320
116
126
  syllable_sdk/models/event.py,sha256=qFvXId06MfWSPW3SnFyy4_rvvqknzoAo0TSQy3F38Jo,4151
117
127
  syllable_sdk/models/eventproperties.py,sha256=9_5DIkk5RtQsa52IxCkffSG0livH8baPSCdhzRKz48I,444
118
128
  syllable_sdk/models/events_listop.py,sha256=eIXJRB3dZpc0DQAOzgfmls2OIgR8vpn_J-_AspXVUBY,5009
@@ -192,6 +202,7 @@ syllable_sdk/models/listresponse_conversation_.py,sha256=qaulgjao-ya0KZVGJPXrr9N
192
202
  syllable_sdk/models/listresponse_custommessageresponse_.py,sha256=FwUCbo14PPLcQP5i4h4JNTgtmWp77Qhcj7QnxEDyHgI,2411
193
203
  syllable_sdk/models/listresponse_dashboardresponse_.py,sha256=CIdHngU8-JiDrYtRgcMLJVKC2yAklSx5WHvayKoQtNY,2383
194
204
  syllable_sdk/models/listresponse_datasourcemetadataresponse_.py,sha256=Kb4uw07UEshXskBIGbgfGpIYfsoI0qijMSeEEvdLUo4,2459
205
+ syllable_sdk/models/listresponse_directorymember_.py,sha256=oiKM0xOLf3zAcwhZVMGdJU2GU504xZfIbV9CdEJ9z2k,2369
195
206
  syllable_sdk/models/listresponse_event_.py,sha256=08Kl_SVKXFr9Uh-LQqxB6Wa9aDFvRiy2aNZda0aBHLQ,2299
196
207
  syllable_sdk/models/listresponse_incidentresponse_.py,sha256=QVJ3aL2zBpM-efmuoWcEyQdGsCV_GjVqixwr7kQwiFI,2376
197
208
  syllable_sdk/models/listresponse_insightsfolder_.py,sha256=vd40kEPKGr16bFqh-lOZA88-v3UrqtG1LRSKyrbXtvs,2362
@@ -357,7 +368,7 @@ syllable_sdk/prompts.py,sha256=qu4yha2PdiG5ntsGjOgZIlwbRFaFlaCzvcxbm4cYKC0,53372
357
368
  syllable_sdk/pronunciations.py,sha256=eDd25xxtUAaqzeyiF-unpR5RL7hpAJICVSGg_9i_gNA,32972
358
369
  syllable_sdk/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
359
370
  syllable_sdk/roles.py,sha256=zt9FWrBptDZ4Lz3_aJYetvkEVdxSHE9fGXeRlR0MLhk,40394
360
- syllable_sdk/sdk.py,sha256=GqyM2KCwB9Yq9mv6LmdZTfRq6QuDI1cBqcPfr-JLiXg,16634
371
+ syllable_sdk/sdk.py,sha256=pokZi3ctgGEHa--dfC4taqX_wihqRxruFfKn8IIPTVM,16815
361
372
  syllable_sdk/sdkconfiguration.py,sha256=cbYqSx5Sw6bPo2RiqBsU6OkBJnBBVJ6pNORhPyaTHkg,1594
362
373
  syllable_sdk/services.py,sha256=v7dNuYu2_yt7XY8EZPu3v9tfJE55Oszr0glEJIIEEB8,40291
363
374
  syllable_sdk/session_debug.py,sha256=ykvBjvx8cfnqdPxbI3KZ3xEM1-I8InZ7dQJDbuY-EQc,22200
@@ -392,6 +403,6 @@ syllable_sdk/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,
392
403
  syllable_sdk/v1.py,sha256=BuA9D8PTM3ACw7t2p_wd6bIZblDM1JF8Scx0U2GPpCQ,53476
393
404
  syllable_sdk/voice_groups.py,sha256=m68HbT6z6SWtGWPoZaFFu6NIyNYIG7H9H5QkQuzlTQU,48512
394
405
  syllable_sdk/workflows.py,sha256=xHWT4Wl65qw2jvNZ5xF_MwpR5xd5147cSlQE_6gvfSo,64809
395
- syllable_sdk-0.39.4.dist-info/METADATA,sha256=frx4hcnHJFmXwtJx3q65Jr6gRZI5k6Fn8x_DWzp5hcs,48308
396
- syllable_sdk-0.39.4.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
397
- syllable_sdk-0.39.4.dist-info/RECORD,,
406
+ syllable_sdk-0.40.0.dist-info/METADATA,sha256=kIn1MNN48_J_PbR9zBGy9cKQv_qdjdqDwCOP7qexK6I,49474
407
+ syllable_sdk-0.40.0.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
408
+ syllable_sdk-0.40.0.dist-info/RECORD,,