arbi 0.18.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.
Files changed (165) hide show
  1. arbi/__init__.py +92 -0
  2. arbi/_base_client.py +2124 -0
  3. arbi/_client.py +442 -0
  4. arbi/_compat.py +219 -0
  5. arbi/_constants.py +14 -0
  6. arbi/_exceptions.py +108 -0
  7. arbi/_files.py +123 -0
  8. arbi/_models.py +872 -0
  9. arbi/_qs.py +150 -0
  10. arbi/_resource.py +43 -0
  11. arbi/_response.py +830 -0
  12. arbi/_streaming.py +333 -0
  13. arbi/_types.py +270 -0
  14. arbi/_utils/__init__.py +64 -0
  15. arbi/_utils/_compat.py +45 -0
  16. arbi/_utils/_datetime_parse.py +136 -0
  17. arbi/_utils/_logs.py +25 -0
  18. arbi/_utils/_proxy.py +65 -0
  19. arbi/_utils/_reflection.py +42 -0
  20. arbi/_utils/_resources_proxy.py +24 -0
  21. arbi/_utils/_streams.py +12 -0
  22. arbi/_utils/_sync.py +58 -0
  23. arbi/_utils/_transform.py +457 -0
  24. arbi/_utils/_typing.py +156 -0
  25. arbi/_utils/_utils.py +421 -0
  26. arbi/_version.py +4 -0
  27. arbi/lib/.keep +4 -0
  28. arbi/py.typed +0 -0
  29. arbi/resources/__init__.py +19 -0
  30. arbi/resources/api/__init__.py +145 -0
  31. arbi/resources/api/api.py +422 -0
  32. arbi/resources/api/assistant.py +312 -0
  33. arbi/resources/api/configs.py +533 -0
  34. arbi/resources/api/conversation/__init__.py +33 -0
  35. arbi/resources/api/conversation/conversation.py +648 -0
  36. arbi/resources/api/conversation/user.py +270 -0
  37. arbi/resources/api/document/__init__.py +33 -0
  38. arbi/resources/api/document/doctag.py +516 -0
  39. arbi/resources/api/document/document.py +929 -0
  40. arbi/resources/api/health.py +253 -0
  41. arbi/resources/api/notifications.py +478 -0
  42. arbi/resources/api/tag.py +409 -0
  43. arbi/resources/api/user/__init__.py +61 -0
  44. arbi/resources/api/user/contacts.py +322 -0
  45. arbi/resources/api/user/settings.py +283 -0
  46. arbi/resources/api/user/subscription.py +230 -0
  47. arbi/resources/api/user/user.py +943 -0
  48. arbi/resources/api/workspace.py +1198 -0
  49. arbi/types/__init__.py +8 -0
  50. arbi/types/api/__init__.py +94 -0
  51. arbi/types/api/assistant_query_params.py +95 -0
  52. arbi/types/api/assistant_retrieve_params.py +95 -0
  53. arbi/types/api/chunker_config_param.py +9 -0
  54. arbi/types/api/config_create_params.py +227 -0
  55. arbi/types/api/config_create_response.py +17 -0
  56. arbi/types/api/config_delete_response.py +11 -0
  57. arbi/types/api/config_get_versions_response.py +19 -0
  58. arbi/types/api/config_retrieve_response.py +234 -0
  59. arbi/types/api/conversation/__init__.py +8 -0
  60. arbi/types/api/conversation/user_add_params.py +11 -0
  61. arbi/types/api/conversation/user_add_response.py +11 -0
  62. arbi/types/api/conversation/user_remove_params.py +11 -0
  63. arbi/types/api/conversation/user_remove_response.py +11 -0
  64. arbi/types/api/conversation_delete_message_response.py +11 -0
  65. arbi/types/api/conversation_delete_response.py +11 -0
  66. arbi/types/api/conversation_retrieve_message_response.py +105 -0
  67. arbi/types/api/conversation_retrieve_threads_response.py +124 -0
  68. arbi/types/api/conversation_share_response.py +11 -0
  69. arbi/types/api/conversation_update_title_params.py +16 -0
  70. arbi/types/api/conversation_update_title_response.py +13 -0
  71. arbi/types/api/doc_response.py +66 -0
  72. arbi/types/api/document/__init__.py +11 -0
  73. arbi/types/api/document/doc_tag_response.py +40 -0
  74. arbi/types/api/document/doctag_create_params.py +35 -0
  75. arbi/types/api/document/doctag_create_response.py +10 -0
  76. arbi/types/api/document/doctag_delete_params.py +15 -0
  77. arbi/types/api/document/doctag_generate_params.py +22 -0
  78. arbi/types/api/document/doctag_generate_response.py +20 -0
  79. arbi/types/api/document/doctag_update_params.py +35 -0
  80. arbi/types/api/document_date_extractor_llm_config.py +29 -0
  81. arbi/types/api/document_date_extractor_llm_config_param.py +28 -0
  82. arbi/types/api/document_delete_params.py +13 -0
  83. arbi/types/api/document_get_parsed_response.py +26 -0
  84. arbi/types/api/document_retrieve_params.py +16 -0
  85. arbi/types/api/document_retrieve_response.py +10 -0
  86. arbi/types/api/document_update_params.py +42 -0
  87. arbi/types/api/document_update_response.py +10 -0
  88. arbi/types/api/document_upload_from_url_params.py +26 -0
  89. arbi/types/api/document_upload_from_url_response.py +16 -0
  90. arbi/types/api/document_upload_params.py +26 -0
  91. arbi/types/api/document_upload_response.py +16 -0
  92. arbi/types/api/embedder_config.py +30 -0
  93. arbi/types/api/embedder_config_param.py +29 -0
  94. arbi/types/api/health_check_models_response.py +21 -0
  95. arbi/types/api/health_get_models_response.py +19 -0
  96. arbi/types/api/health_retrieve_status_response.py +49 -0
  97. arbi/types/api/model_citation_config.py +20 -0
  98. arbi/types/api/model_citation_config_param.py +20 -0
  99. arbi/types/api/notification_create_params.py +20 -0
  100. arbi/types/api/notification_create_response.py +47 -0
  101. arbi/types/api/notification_delete_params.py +13 -0
  102. arbi/types/api/notification_get_schemas_response.py +197 -0
  103. arbi/types/api/notification_list_response.py +47 -0
  104. arbi/types/api/notification_update_params.py +27 -0
  105. arbi/types/api/notification_update_response.py +47 -0
  106. arbi/types/api/parser_config_param.py +9 -0
  107. arbi/types/api/query_llm_config.py +30 -0
  108. arbi/types/api/query_llm_config_param.py +29 -0
  109. arbi/types/api/reranker_config.py +21 -0
  110. arbi/types/api/reranker_config_param.py +20 -0
  111. arbi/types/api/retriever_config.py +39 -0
  112. arbi/types/api/retriever_config_param.py +38 -0
  113. arbi/types/api/tag_create_params.py +49 -0
  114. arbi/types/api/tag_create_response.py +57 -0
  115. arbi/types/api/tag_delete_response.py +9 -0
  116. arbi/types/api/tag_update_params.py +22 -0
  117. arbi/types/api/tag_update_response.py +57 -0
  118. arbi/types/api/title_llm_config.py +29 -0
  119. arbi/types/api/title_llm_config_param.py +28 -0
  120. arbi/types/api/user/__init__.py +13 -0
  121. arbi/types/api/user/contact_create_params.py +13 -0
  122. arbi/types/api/user/contact_create_response.py +30 -0
  123. arbi/types/api/user/contact_delete_params.py +13 -0
  124. arbi/types/api/user/contact_list_response.py +30 -0
  125. arbi/types/api/user/setting_retrieve_response.py +89 -0
  126. arbi/types/api/user/setting_update_params.py +60 -0
  127. arbi/types/api/user/subscription_create_params.py +13 -0
  128. arbi/types/api/user/subscription_create_response.py +11 -0
  129. arbi/types/api/user/subscription_retrieve_response.py +48 -0
  130. arbi/types/api/user_change_password_params.py +18 -0
  131. arbi/types/api/user_change_password_response.py +11 -0
  132. arbi/types/api/user_check_sso_status_params.py +20 -0
  133. arbi/types/api/user_check_sso_status_response.py +25 -0
  134. arbi/types/api/user_list_products_response.py +37 -0
  135. arbi/types/api/user_list_workspaces_response.py +10 -0
  136. arbi/types/api/user_login_params.py +18 -0
  137. arbi/types/api/user_login_response.py +23 -0
  138. arbi/types/api/user_logout_response.py +9 -0
  139. arbi/types/api/user_register_params.py +22 -0
  140. arbi/types/api/user_response.py +26 -0
  141. arbi/types/api/user_verify_email_params.py +11 -0
  142. arbi/types/api/user_verify_email_response.py +9 -0
  143. arbi/types/api/workspace_copy_params.py +21 -0
  144. arbi/types/api/workspace_copy_response.py +25 -0
  145. arbi/types/api/workspace_create_protected_params.py +16 -0
  146. arbi/types/api/workspace_delete_response.py +9 -0
  147. arbi/types/api/workspace_get_conversations_response.py +30 -0
  148. arbi/types/api/workspace_get_documents_response.py +10 -0
  149. arbi/types/api/workspace_get_stats_response.py +17 -0
  150. arbi/types/api/workspace_get_tags_response.py +60 -0
  151. arbi/types/api/workspace_get_users_response.py +10 -0
  152. arbi/types/api/workspace_remove_user_params.py +11 -0
  153. arbi/types/api/workspace_remove_user_response.py +11 -0
  154. arbi/types/api/workspace_response.py +41 -0
  155. arbi/types/api/workspace_share_params.py +15 -0
  156. arbi/types/api/workspace_share_response.py +13 -0
  157. arbi/types/api/workspace_update_params.py +20 -0
  158. arbi/types/chunk.py +12 -0
  159. arbi/types/chunk_metadata.py +31 -0
  160. arbi/types/chunk_metadata_param.py +32 -0
  161. arbi/types/chunk_param.py +15 -0
  162. arbi-0.18.0.dist-info/METADATA +410 -0
  163. arbi-0.18.0.dist-info/RECORD +165 -0
  164. arbi-0.18.0.dist-info/WHEEL +4 -0
  165. arbi-0.18.0.dist-info/licenses/LICENSE +201 -0
@@ -0,0 +1,409 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Optional
6
+
7
+ import httpx
8
+
9
+ from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
10
+ from ..._utils import maybe_transform, strip_not_given, async_maybe_transform
11
+ from ..._compat import cached_property
12
+ from ..._resource import SyncAPIResource, AsyncAPIResource
13
+ from ..._response import (
14
+ to_raw_response_wrapper,
15
+ to_streamed_response_wrapper,
16
+ async_to_raw_response_wrapper,
17
+ async_to_streamed_response_wrapper,
18
+ )
19
+ from ...types.api import tag_create_params, tag_update_params
20
+ from ..._base_client import make_request_options
21
+ from ...types.api.tag_create_response import TagCreateResponse
22
+ from ...types.api.tag_delete_response import TagDeleteResponse
23
+ from ...types.api.tag_update_response import TagUpdateResponse
24
+
25
+ __all__ = ["TagResource", "AsyncTagResource"]
26
+
27
+
28
+ class TagResource(SyncAPIResource):
29
+ @cached_property
30
+ def with_raw_response(self) -> TagResourceWithRawResponse:
31
+ """
32
+ This property can be used as a prefix for any HTTP method call to return
33
+ the raw response object instead of the parsed content.
34
+
35
+ For more information, see https://www.github.com/arbitrationcity/arbi-python#accessing-raw-response-data-eg-headers
36
+ """
37
+ return TagResourceWithRawResponse(self)
38
+
39
+ @cached_property
40
+ def with_streaming_response(self) -> TagResourceWithStreamingResponse:
41
+ """
42
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
43
+
44
+ For more information, see https://www.github.com/arbitrationcity/arbi-python#with_streaming_response
45
+ """
46
+ return TagResourceWithStreamingResponse(self)
47
+
48
+ def create(
49
+ self,
50
+ *,
51
+ name: str,
52
+ workspace_ext_id: str,
53
+ instruction: Optional[str] | Omit = omit,
54
+ parent_ext_id: Optional[str] | Omit = omit,
55
+ shared: Optional[bool] | Omit = omit,
56
+ tag_type: tag_create_params.TagType | Omit = omit,
57
+ workspace_key: str | Omit = omit,
58
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
59
+ # The extra values given here take precedence over values defined on the client or passed to this method.
60
+ extra_headers: Headers | None = None,
61
+ extra_query: Query | None = None,
62
+ extra_body: Body | None = None,
63
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
64
+ ) -> TagCreateResponse:
65
+ """
66
+ Create a new tag for a given workspace.
67
+
68
+ If 'shared' is provided, the tag will be set to shared or private accordingly.
69
+ If 'shared' is not provided, it defaults to True (shared).
70
+
71
+ Args:
72
+ tag_type: Tag format configuration stored as JSONB.
73
+
74
+ Type-specific fields:
75
+
76
+ - select: options (list of choices, can be single or multi-select)
77
+ - search: tag name is the query, chunks include relevance scores
78
+ - checkbox, text, number, folder: type only
79
+
80
+ extra_headers: Send extra headers
81
+
82
+ extra_query: Add additional query parameters to the request
83
+
84
+ extra_body: Add additional JSON properties to the request
85
+
86
+ timeout: Override the client-level default timeout for this request, in seconds
87
+ """
88
+ extra_headers = {**strip_not_given({"workspace-key": workspace_key}), **(extra_headers or {})}
89
+ return self._post(
90
+ "/api/tag",
91
+ body=maybe_transform(
92
+ {
93
+ "name": name,
94
+ "workspace_ext_id": workspace_ext_id,
95
+ "instruction": instruction,
96
+ "parent_ext_id": parent_ext_id,
97
+ "shared": shared,
98
+ "tag_type": tag_type,
99
+ },
100
+ tag_create_params.TagCreateParams,
101
+ ),
102
+ options=make_request_options(
103
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
104
+ ),
105
+ cast_to=TagCreateResponse,
106
+ )
107
+
108
+ def update(
109
+ self,
110
+ tag_ext_id: str,
111
+ *,
112
+ instruction: Optional[str] | Omit = omit,
113
+ name: Optional[str] | Omit = omit,
114
+ parent_ext_id: Optional[str] | Omit = omit,
115
+ shared: Optional[bool] | Omit = omit,
116
+ workspace_key: str | Omit = omit,
117
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
118
+ # The extra values given here take precedence over values defined on the client or passed to this method.
119
+ extra_headers: Headers | None = None,
120
+ extra_query: Query | None = None,
121
+ extra_body: Body | None = None,
122
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
123
+ ) -> TagUpdateResponse:
124
+ """
125
+ Update a tag by its external ID.
126
+
127
+ Args:
128
+ extra_headers: Send extra headers
129
+
130
+ extra_query: Add additional query parameters to the request
131
+
132
+ extra_body: Add additional JSON properties to the request
133
+
134
+ timeout: Override the client-level default timeout for this request, in seconds
135
+ """
136
+ if not tag_ext_id:
137
+ raise ValueError(f"Expected a non-empty value for `tag_ext_id` but received {tag_ext_id!r}")
138
+ extra_headers = {**strip_not_given({"workspace-key": workspace_key}), **(extra_headers or {})}
139
+ return self._patch(
140
+ f"/api/tag/{tag_ext_id}",
141
+ body=maybe_transform(
142
+ {
143
+ "instruction": instruction,
144
+ "name": name,
145
+ "parent_ext_id": parent_ext_id,
146
+ "shared": shared,
147
+ },
148
+ tag_update_params.TagUpdateParams,
149
+ ),
150
+ options=make_request_options(
151
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
152
+ ),
153
+ cast_to=TagUpdateResponse,
154
+ )
155
+
156
+ def delete(
157
+ self,
158
+ tag_ext_id: str,
159
+ *,
160
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
161
+ # The extra values given here take precedence over values defined on the client or passed to this method.
162
+ extra_headers: Headers | None = None,
163
+ extra_query: Query | None = None,
164
+ extra_body: Body | None = None,
165
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
166
+ ) -> TagDeleteResponse:
167
+ """
168
+ Delete a tag by its external ID.
169
+
170
+ Args:
171
+ extra_headers: Send extra headers
172
+
173
+ extra_query: Add additional query parameters to the request
174
+
175
+ extra_body: Add additional JSON properties to the request
176
+
177
+ timeout: Override the client-level default timeout for this request, in seconds
178
+ """
179
+ if not tag_ext_id:
180
+ raise ValueError(f"Expected a non-empty value for `tag_ext_id` but received {tag_ext_id!r}")
181
+ return self._delete(
182
+ f"/api/tag/{tag_ext_id}",
183
+ options=make_request_options(
184
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
185
+ ),
186
+ cast_to=TagDeleteResponse,
187
+ )
188
+
189
+
190
+ class AsyncTagResource(AsyncAPIResource):
191
+ @cached_property
192
+ def with_raw_response(self) -> AsyncTagResourceWithRawResponse:
193
+ """
194
+ This property can be used as a prefix for any HTTP method call to return
195
+ the raw response object instead of the parsed content.
196
+
197
+ For more information, see https://www.github.com/arbitrationcity/arbi-python#accessing-raw-response-data-eg-headers
198
+ """
199
+ return AsyncTagResourceWithRawResponse(self)
200
+
201
+ @cached_property
202
+ def with_streaming_response(self) -> AsyncTagResourceWithStreamingResponse:
203
+ """
204
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
205
+
206
+ For more information, see https://www.github.com/arbitrationcity/arbi-python#with_streaming_response
207
+ """
208
+ return AsyncTagResourceWithStreamingResponse(self)
209
+
210
+ async def create(
211
+ self,
212
+ *,
213
+ name: str,
214
+ workspace_ext_id: str,
215
+ instruction: Optional[str] | Omit = omit,
216
+ parent_ext_id: Optional[str] | Omit = omit,
217
+ shared: Optional[bool] | Omit = omit,
218
+ tag_type: tag_create_params.TagType | Omit = omit,
219
+ workspace_key: str | Omit = omit,
220
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
221
+ # The extra values given here take precedence over values defined on the client or passed to this method.
222
+ extra_headers: Headers | None = None,
223
+ extra_query: Query | None = None,
224
+ extra_body: Body | None = None,
225
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
226
+ ) -> TagCreateResponse:
227
+ """
228
+ Create a new tag for a given workspace.
229
+
230
+ If 'shared' is provided, the tag will be set to shared or private accordingly.
231
+ If 'shared' is not provided, it defaults to True (shared).
232
+
233
+ Args:
234
+ tag_type: Tag format configuration stored as JSONB.
235
+
236
+ Type-specific fields:
237
+
238
+ - select: options (list of choices, can be single or multi-select)
239
+ - search: tag name is the query, chunks include relevance scores
240
+ - checkbox, text, number, folder: type only
241
+
242
+ extra_headers: Send extra headers
243
+
244
+ extra_query: Add additional query parameters to the request
245
+
246
+ extra_body: Add additional JSON properties to the request
247
+
248
+ timeout: Override the client-level default timeout for this request, in seconds
249
+ """
250
+ extra_headers = {**strip_not_given({"workspace-key": workspace_key}), **(extra_headers or {})}
251
+ return await self._post(
252
+ "/api/tag",
253
+ body=await async_maybe_transform(
254
+ {
255
+ "name": name,
256
+ "workspace_ext_id": workspace_ext_id,
257
+ "instruction": instruction,
258
+ "parent_ext_id": parent_ext_id,
259
+ "shared": shared,
260
+ "tag_type": tag_type,
261
+ },
262
+ tag_create_params.TagCreateParams,
263
+ ),
264
+ options=make_request_options(
265
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
266
+ ),
267
+ cast_to=TagCreateResponse,
268
+ )
269
+
270
+ async def update(
271
+ self,
272
+ tag_ext_id: str,
273
+ *,
274
+ instruction: Optional[str] | Omit = omit,
275
+ name: Optional[str] | Omit = omit,
276
+ parent_ext_id: Optional[str] | Omit = omit,
277
+ shared: Optional[bool] | Omit = omit,
278
+ workspace_key: str | Omit = omit,
279
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
280
+ # The extra values given here take precedence over values defined on the client or passed to this method.
281
+ extra_headers: Headers | None = None,
282
+ extra_query: Query | None = None,
283
+ extra_body: Body | None = None,
284
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
285
+ ) -> TagUpdateResponse:
286
+ """
287
+ Update a tag by its external ID.
288
+
289
+ Args:
290
+ extra_headers: Send extra headers
291
+
292
+ extra_query: Add additional query parameters to the request
293
+
294
+ extra_body: Add additional JSON properties to the request
295
+
296
+ timeout: Override the client-level default timeout for this request, in seconds
297
+ """
298
+ if not tag_ext_id:
299
+ raise ValueError(f"Expected a non-empty value for `tag_ext_id` but received {tag_ext_id!r}")
300
+ extra_headers = {**strip_not_given({"workspace-key": workspace_key}), **(extra_headers or {})}
301
+ return await self._patch(
302
+ f"/api/tag/{tag_ext_id}",
303
+ body=await async_maybe_transform(
304
+ {
305
+ "instruction": instruction,
306
+ "name": name,
307
+ "parent_ext_id": parent_ext_id,
308
+ "shared": shared,
309
+ },
310
+ tag_update_params.TagUpdateParams,
311
+ ),
312
+ options=make_request_options(
313
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
314
+ ),
315
+ cast_to=TagUpdateResponse,
316
+ )
317
+
318
+ async def delete(
319
+ self,
320
+ tag_ext_id: str,
321
+ *,
322
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
323
+ # The extra values given here take precedence over values defined on the client or passed to this method.
324
+ extra_headers: Headers | None = None,
325
+ extra_query: Query | None = None,
326
+ extra_body: Body | None = None,
327
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
328
+ ) -> TagDeleteResponse:
329
+ """
330
+ Delete a tag by its external ID.
331
+
332
+ Args:
333
+ extra_headers: Send extra headers
334
+
335
+ extra_query: Add additional query parameters to the request
336
+
337
+ extra_body: Add additional JSON properties to the request
338
+
339
+ timeout: Override the client-level default timeout for this request, in seconds
340
+ """
341
+ if not tag_ext_id:
342
+ raise ValueError(f"Expected a non-empty value for `tag_ext_id` but received {tag_ext_id!r}")
343
+ return await self._delete(
344
+ f"/api/tag/{tag_ext_id}",
345
+ options=make_request_options(
346
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
347
+ ),
348
+ cast_to=TagDeleteResponse,
349
+ )
350
+
351
+
352
+ class TagResourceWithRawResponse:
353
+ def __init__(self, tag: TagResource) -> None:
354
+ self._tag = tag
355
+
356
+ self.create = to_raw_response_wrapper(
357
+ tag.create,
358
+ )
359
+ self.update = to_raw_response_wrapper(
360
+ tag.update,
361
+ )
362
+ self.delete = to_raw_response_wrapper(
363
+ tag.delete,
364
+ )
365
+
366
+
367
+ class AsyncTagResourceWithRawResponse:
368
+ def __init__(self, tag: AsyncTagResource) -> None:
369
+ self._tag = tag
370
+
371
+ self.create = async_to_raw_response_wrapper(
372
+ tag.create,
373
+ )
374
+ self.update = async_to_raw_response_wrapper(
375
+ tag.update,
376
+ )
377
+ self.delete = async_to_raw_response_wrapper(
378
+ tag.delete,
379
+ )
380
+
381
+
382
+ class TagResourceWithStreamingResponse:
383
+ def __init__(self, tag: TagResource) -> None:
384
+ self._tag = tag
385
+
386
+ self.create = to_streamed_response_wrapper(
387
+ tag.create,
388
+ )
389
+ self.update = to_streamed_response_wrapper(
390
+ tag.update,
391
+ )
392
+ self.delete = to_streamed_response_wrapper(
393
+ tag.delete,
394
+ )
395
+
396
+
397
+ class AsyncTagResourceWithStreamingResponse:
398
+ def __init__(self, tag: AsyncTagResource) -> None:
399
+ self._tag = tag
400
+
401
+ self.create = async_to_streamed_response_wrapper(
402
+ tag.create,
403
+ )
404
+ self.update = async_to_streamed_response_wrapper(
405
+ tag.update,
406
+ )
407
+ self.delete = async_to_streamed_response_wrapper(
408
+ tag.delete,
409
+ )
@@ -0,0 +1,61 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from .user import (
4
+ UserResource,
5
+ AsyncUserResource,
6
+ UserResourceWithRawResponse,
7
+ AsyncUserResourceWithRawResponse,
8
+ UserResourceWithStreamingResponse,
9
+ AsyncUserResourceWithStreamingResponse,
10
+ )
11
+ from .contacts import (
12
+ ContactsResource,
13
+ AsyncContactsResource,
14
+ ContactsResourceWithRawResponse,
15
+ AsyncContactsResourceWithRawResponse,
16
+ ContactsResourceWithStreamingResponse,
17
+ AsyncContactsResourceWithStreamingResponse,
18
+ )
19
+ from .settings import (
20
+ SettingsResource,
21
+ AsyncSettingsResource,
22
+ SettingsResourceWithRawResponse,
23
+ AsyncSettingsResourceWithRawResponse,
24
+ SettingsResourceWithStreamingResponse,
25
+ AsyncSettingsResourceWithStreamingResponse,
26
+ )
27
+ from .subscription import (
28
+ SubscriptionResource,
29
+ AsyncSubscriptionResource,
30
+ SubscriptionResourceWithRawResponse,
31
+ AsyncSubscriptionResourceWithRawResponse,
32
+ SubscriptionResourceWithStreamingResponse,
33
+ AsyncSubscriptionResourceWithStreamingResponse,
34
+ )
35
+
36
+ __all__ = [
37
+ "SettingsResource",
38
+ "AsyncSettingsResource",
39
+ "SettingsResourceWithRawResponse",
40
+ "AsyncSettingsResourceWithRawResponse",
41
+ "SettingsResourceWithStreamingResponse",
42
+ "AsyncSettingsResourceWithStreamingResponse",
43
+ "SubscriptionResource",
44
+ "AsyncSubscriptionResource",
45
+ "SubscriptionResourceWithRawResponse",
46
+ "AsyncSubscriptionResourceWithRawResponse",
47
+ "SubscriptionResourceWithStreamingResponse",
48
+ "AsyncSubscriptionResourceWithStreamingResponse",
49
+ "ContactsResource",
50
+ "AsyncContactsResource",
51
+ "ContactsResourceWithRawResponse",
52
+ "AsyncContactsResourceWithRawResponse",
53
+ "ContactsResourceWithStreamingResponse",
54
+ "AsyncContactsResourceWithStreamingResponse",
55
+ "UserResource",
56
+ "AsyncUserResource",
57
+ "UserResourceWithRawResponse",
58
+ "AsyncUserResourceWithRawResponse",
59
+ "UserResourceWithStreamingResponse",
60
+ "AsyncUserResourceWithStreamingResponse",
61
+ ]