frameio 0.0.23__py3-none-any.whl → 0.0.24__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.
Potentially problematic release.
This version of frameio might be problematic. Click here for more details.
- frameio/account_permissions/client.py +2 -2
- frameio/account_permissions/raw_client.py +17 -17
- frameio/accounts/client.py +2 -2
- frameio/accounts/raw_client.py +17 -17
- frameio/comments/client.py +10 -10
- frameio/comments/raw_client.py +79 -79
- frameio/comments/types/create_comment_params_data.py +2 -2
- frameio/comments/types/update_comment_params_data.py +2 -2
- frameio/core/__init__.py +7 -0
- frameio/core/client_wrapper.py +2 -2
- frameio/core/unchecked_base_model.py +341 -0
- frameio/files/client.py +20 -20
- frameio/files/raw_client.py +159 -159
- frameio/files/types/file_copy_params_data.py +2 -2
- frameio/files/types/file_create_local_upload_params_data.py +2 -2
- frameio/files/types/file_create_params_data.py +2 -2
- frameio/files/types/file_create_remote_upload_params_data.py +2 -2
- frameio/files/types/file_move_params_data.py +2 -2
- frameio/files/types/file_update_params_data.py +2 -2
- frameio/folders/client.py +10 -10
- frameio/folders/raw_client.py +121 -121
- frameio/folders/types/folder_copy_params_data.py +2 -2
- frameio/folders/types/folder_create_params_data.py +2 -2
- frameio/folders/types/folder_move_params_data.py +2 -2
- frameio/folders/types/folder_update_params_data.py +2 -2
- frameio/metadata/client.py +16 -16
- frameio/metadata/raw_client.py +31 -31
- frameio/metadata/types/bulk_update_metadata_params_data.py +2 -2
- frameio/metadata/types/bulk_update_metadata_params_data_values_item.py +2 -2
- frameio/metadata_fields/client.py +8 -8
- frameio/metadata_fields/raw_client.py +63 -63
- frameio/metadata_fields/types/create_field_definition_params_data.py +26 -22
- frameio/metadata_fields/types/update_field_definition_params_data.py +26 -22
- frameio/project_permissions/client.py +6 -6
- frameio/project_permissions/raw_client.py +47 -47
- frameio/projects/client.py +10 -10
- frameio/projects/raw_client.py +79 -79
- frameio/shares/client.py +30 -30
- frameio/shares/raw_client.py +155 -155
- frameio/shares/types/add_asset_params_data.py +2 -2
- frameio/shares/types/add_reviewers_to_share_params_data.py +2 -2
- frameio/shares/types/add_reviewers_to_share_params_data_reviewers.py +2 -2
- frameio/shares/types/create_share_params_data.py +4 -3
- frameio/shares/types/remove_reviewer_params_data.py +2 -2
- frameio/shares/types/remove_reviewer_params_data_reviewers.py +2 -2
- frameio/shares/types/update_share_params_data.py +2 -2
- frameio/types/account.py +2 -2
- frameio/types/account_user_role.py +2 -2
- frameio/types/account_user_roles_response.py +2 -2
- frameio/types/accounts_response.py +2 -2
- frameio/types/add_asset_response.py +2 -2
- frameio/types/asset_common.py +2 -2
- frameio/types/asset_common_with_includes.py +2 -2
- frameio/types/asset_share_params.py +2 -2
- frameio/types/asset_with_includes.py +9 -5
- frameio/types/assets_with_includes_response.py +2 -2
- frameio/types/bad_request.py +2 -2
- frameio/types/bad_request_errors_item.py +2 -2
- frameio/types/bad_request_errors_item_source.py +2 -2
- frameio/types/comment.py +2 -2
- frameio/types/comment_response.py +2 -2
- frameio/types/comment_with_includes_response.py +2 -2
- frameio/types/comments_with_includes_response.py +2 -2
- frameio/types/date_definition.py +2 -2
- frameio/types/date_definition_field_configuration.py +2 -2
- frameio/types/date_definition_params.py +2 -2
- frameio/types/date_definition_params_field_configuration.py +2 -2
- frameio/types/field_definition.py +26 -22
- frameio/types/field_definition_response.py +2 -2
- frameio/types/field_definition_with_includes.py +26 -22
- frameio/types/field_definitions_with_includes_response.py +2 -2
- frameio/types/field_value_common.py +2 -2
- frameio/types/file.py +2 -2
- frameio/types/file_copy_response.py +2 -2
- frameio/types/file_remote_upload_response.py +2 -2
- frameio/types/file_response.py +2 -2
- frameio/types/file_upload_status.py +2 -2
- frameio/types/file_upload_status_response.py +2 -2
- frameio/types/file_with_includes_response.py +2 -2
- frameio/types/file_with_upload_urls_response.py +2 -2
- frameio/types/folder_copy_response.py +2 -2
- frameio/types/folder_response.py +2 -2
- frameio/types/folder_with_includes.py +2 -2
- frameio/types/folder_with_includes_response.py +2 -2
- frameio/types/folders_with_includes_response.py +2 -2
- frameio/types/forbidden.py +2 -2
- frameio/types/forbidden_errors_item.py +2 -2
- frameio/types/forbidden_errors_item_source.py +2 -2
- frameio/types/json_error_response.py +2 -2
- frameio/types/json_error_response_errors_item.py +2 -2
- frameio/types/json_error_response_errors_item_source.py +2 -2
- frameio/types/links.py +2 -2
- frameio/types/long_text_definition.py +2 -2
- frameio/types/long_text_definition_field_configuration.py +2 -2
- frameio/types/long_text_definition_params.py +2 -2
- frameio/types/media_link_common.py +2 -2
- frameio/types/media_links_collection.py +2 -2
- frameio/types/metadata_field.py +28 -24
- frameio/types/metadata_response.py +2 -2
- frameio/types/metadata_with_definition.py +2 -2
- frameio/types/not_found.py +2 -2
- frameio/types/not_found_errors_item.py +2 -2
- frameio/types/not_found_errors_item_source.py +2 -2
- frameio/types/number_definition.py +2 -2
- frameio/types/number_definition_field_configuration.py +2 -2
- frameio/types/number_definition_params.py +2 -2
- frameio/types/number_definition_params_field_configuration.py +2 -2
- frameio/types/profile.py +2 -2
- frameio/types/profile_response.py +2 -2
- frameio/types/project.py +2 -2
- frameio/types/project_params.py +2 -2
- frameio/types/project_params_data.py +2 -2
- frameio/types/project_response.py +2 -2
- frameio/types/project_with_includes_response.py +2 -2
- frameio/types/projects_with_includes_response.py +2 -2
- frameio/types/rating_definition.py +2 -2
- frameio/types/rating_definition_field_configuration.py +2 -2
- frameio/types/rating_definition_params.py +2 -2
- frameio/types/rating_definition_params_field_configuration.py +2 -2
- frameio/types/remove_asset_response.py +2 -2
- frameio/types/select_definition.py +2 -2
- frameio/types/select_definition_field_configuration.py +2 -2
- frameio/types/select_definition_field_configuration_options_item.py +2 -2
- frameio/types/select_definition_params.py +2 -2
- frameio/types/select_definition_params_field_configuration.py +2 -2
- frameio/types/select_definition_params_field_configuration_options_item.py +2 -2
- frameio/types/select_multi_definition.py +2 -2
- frameio/types/select_multi_definition_field_configuration.py +2 -2
- frameio/types/select_multi_definition_field_configuration_options_item.py +2 -2
- frameio/types/select_multi_definition_params.py +2 -2
- frameio/types/select_multi_definition_params_field_configuration.py +2 -2
- frameio/types/select_multi_definition_params_field_configuration_options_item.py +2 -2
- frameio/types/select_option.py +2 -2
- frameio/types/share.py +2 -2
- frameio/types/share_response.py +2 -2
- frameio/types/share_reviewers_response.py +2 -2
- frameio/types/shares_response.py +2 -2
- frameio/types/text_definition.py +2 -2
- frameio/types/text_definition_field_configuration.py +2 -2
- frameio/types/text_definition_params.py +2 -2
- frameio/types/toggle_definition.py +2 -2
- frameio/types/toggle_definition_field_configuration.py +2 -2
- frameio/types/toggle_definition_params.py +2 -2
- frameio/types/toggle_definition_params_field_configuration.py +2 -2
- frameio/types/too_many_requests.py +2 -2
- frameio/types/too_many_requests_errors_item.py +2 -2
- frameio/types/too_many_requests_errors_item_source.py +2 -2
- frameio/types/unauthorized.py +2 -2
- frameio/types/unauthorized_errors_item.py +2 -2
- frameio/types/unauthorized_errors_item_source.py +2 -2
- frameio/types/unprocessable_entity.py +2 -2
- frameio/types/unprocessable_entity_errors_item.py +2 -2
- frameio/types/unprocessable_entity_errors_item_source.py +2 -2
- frameio/types/update_date_definition_params.py +2 -2
- frameio/types/update_date_definition_params_field_configuration.py +2 -2
- frameio/types/update_long_text_definition_params.py +2 -2
- frameio/types/update_number_definition_params.py +2 -2
- frameio/types/update_number_definition_params_field_configuration.py +2 -2
- frameio/types/update_rating_definition_params.py +2 -2
- frameio/types/update_rating_definition_params_field_configuration.py +2 -2
- frameio/types/update_select_definition_params.py +2 -2
- frameio/types/update_select_definition_params_field_configuration.py +2 -2
- frameio/types/update_select_definition_params_field_configuration_options_item.py +2 -2
- frameio/types/update_select_multi_definition_params.py +2 -2
- frameio/types/update_select_multi_definition_params_field_configuration.py +2 -2
- frameio/types/update_select_multi_definition_params_field_configuration_options_item.py +2 -2
- frameio/types/update_text_definition_params.py +2 -2
- frameio/types/update_toggle_definition_params.py +2 -2
- frameio/types/update_toggle_definition_params_field_configuration.py +2 -2
- frameio/types/update_user_multi_definition_params.py +2 -2
- frameio/types/update_user_multi_definition_params_field_configuration.py +2 -2
- frameio/types/update_user_multi_definition_params_field_configuration_custom_members_item.py +2 -2
- frameio/types/update_user_roles_params.py +2 -2
- frameio/types/update_user_roles_params_data.py +2 -2
- frameio/types/update_user_roles_response.py +2 -2
- frameio/types/update_user_roles_response_data.py +2 -2
- frameio/types/update_user_single_definition_params.py +2 -2
- frameio/types/update_user_single_definition_params_field_configuration.py +2 -2
- frameio/types/update_user_single_definition_params_field_configuration_custom_members_item.py +2 -2
- frameio/types/upload_url.py +2 -2
- frameio/types/user.py +2 -2
- frameio/types/user_multi_definition.py +2 -2
- frameio/types/user_multi_definition_field_configuration.py +2 -2
- frameio/types/user_multi_definition_field_configuration_custom_members_item.py +2 -2
- frameio/types/user_multi_definition_params.py +2 -2
- frameio/types/user_multi_definition_params_field_configuration.py +2 -2
- frameio/types/user_multi_definition_params_field_configuration_custom_members_item.py +2 -2
- frameio/types/user_role.py +2 -2
- frameio/types/user_roles_response.py +2 -2
- frameio/types/user_single_definition.py +2 -2
- frameio/types/user_single_definition_field_configuration.py +2 -2
- frameio/types/user_single_definition_field_configuration_custom_members_item.py +2 -2
- frameio/types/user_single_definition_params.py +2 -2
- frameio/types/user_single_definition_params_field_configuration.py +2 -2
- frameio/types/user_single_definition_params_field_configuration_custom_members_item.py +2 -2
- frameio/types/user_value.py +2 -2
- frameio/types/version_stack.py +2 -2
- frameio/types/version_stack_copy_response.py +2 -2
- frameio/types/version_stack_response.py +2 -2
- frameio/types/version_stack_with_includes.py +2 -2
- frameio/types/version_stack_with_includes_response.py +2 -2
- frameio/types/version_stacks_with_includes_response.py +2 -2
- frameio/types/webhook.py +2 -2
- frameio/types/webhook_create_response.py +2 -2
- frameio/types/webhook_response.py +2 -2
- frameio/types/webhook_with_includes_response.py +2 -2
- frameio/types/webhooks_with_includes_response.py +2 -2
- frameio/types/workspace.py +2 -2
- frameio/types/workspace_params.py +2 -2
- frameio/types/workspace_params_data.py +2 -2
- frameio/types/workspace_response.py +2 -2
- frameio/types/workspace_with_includes_response.py +2 -2
- frameio/types/workspaces_with_includes_response.py +2 -2
- frameio/users/client.py +2 -2
- frameio/users/raw_client.py +17 -17
- frameio/version_stacks/client.py +10 -10
- frameio/version_stacks/raw_client.py +77 -77
- frameio/version_stacks/types/version_stack_copy_params_data.py +2 -2
- frameio/version_stacks/types/version_stack_create_params_data.py +3 -3
- frameio/version_stacks/types/version_stack_move_params_data.py +2 -2
- frameio/webhooks/client.py +8 -8
- frameio/webhooks/raw_client.py +77 -77
- frameio/webhooks/types/webhook_create_params_data.py +2 -2
- frameio/webhooks/types/webhook_update_params_data.py +2 -2
- frameio/workspace_permissions/client.py +6 -6
- frameio/workspace_permissions/raw_client.py +47 -47
- frameio/workspaces/client.py +10 -10
- frameio/workspaces/raw_client.py +79 -79
- {frameio-0.0.23.dist-info → frameio-0.0.24.dist-info}/METADATA +1 -1
- frameio-0.0.24.dist-info/RECORD +364 -0
- frameio-0.0.23.dist-info/RECORD +0 -363
- {frameio-0.0.23.dist-info → frameio-0.0.24.dist-info}/WHEEL +0 -0
frameio/webhooks/raw_client.py
CHANGED
|
@@ -7,9 +7,9 @@ from ..core.api_error import ApiError
|
|
|
7
7
|
from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
|
8
8
|
from ..core.http_response import AsyncHttpResponse, HttpResponse
|
|
9
9
|
from ..core.jsonable_encoder import jsonable_encoder
|
|
10
|
-
from ..core.pydantic_utilities import parse_obj_as
|
|
11
10
|
from ..core.request_options import RequestOptions
|
|
12
11
|
from ..core.serialization import convert_and_respect_annotation_metadata
|
|
12
|
+
from ..core.unchecked_base_model import construct_type
|
|
13
13
|
from ..errors.bad_request_error import BadRequestError
|
|
14
14
|
from ..errors.forbidden_error import ForbiddenError
|
|
15
15
|
from ..errors.not_found_error import NotFoundError
|
|
@@ -52,7 +52,7 @@ class RawWebhooksClient:
|
|
|
52
52
|
request_options: typing.Optional[RequestOptions] = None,
|
|
53
53
|
) -> HttpResponse[WebhooksWithIncludesResponse]:
|
|
54
54
|
"""
|
|
55
|
-
List webhooks for the given workspace. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per
|
|
55
|
+
List webhooks for the given workspace. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
56
56
|
|
|
57
57
|
Parameters
|
|
58
58
|
----------
|
|
@@ -99,7 +99,7 @@ class RawWebhooksClient:
|
|
|
99
99
|
if 200 <= _response.status_code < 300:
|
|
100
100
|
_data = typing.cast(
|
|
101
101
|
WebhooksWithIncludesResponse,
|
|
102
|
-
|
|
102
|
+
construct_type(
|
|
103
103
|
type_=WebhooksWithIncludesResponse, # type: ignore
|
|
104
104
|
object_=_response.json(),
|
|
105
105
|
),
|
|
@@ -110,7 +110,7 @@ class RawWebhooksClient:
|
|
|
110
110
|
headers=dict(_response.headers),
|
|
111
111
|
body=typing.cast(
|
|
112
112
|
BadRequest,
|
|
113
|
-
|
|
113
|
+
construct_type(
|
|
114
114
|
type_=BadRequest, # type: ignore
|
|
115
115
|
object_=_response.json(),
|
|
116
116
|
),
|
|
@@ -121,7 +121,7 @@ class RawWebhooksClient:
|
|
|
121
121
|
headers=dict(_response.headers),
|
|
122
122
|
body=typing.cast(
|
|
123
123
|
Unauthorized,
|
|
124
|
-
|
|
124
|
+
construct_type(
|
|
125
125
|
type_=Unauthorized, # type: ignore
|
|
126
126
|
object_=_response.json(),
|
|
127
127
|
),
|
|
@@ -132,7 +132,7 @@ class RawWebhooksClient:
|
|
|
132
132
|
headers=dict(_response.headers),
|
|
133
133
|
body=typing.cast(
|
|
134
134
|
Forbidden,
|
|
135
|
-
|
|
135
|
+
construct_type(
|
|
136
136
|
type_=Forbidden, # type: ignore
|
|
137
137
|
object_=_response.json(),
|
|
138
138
|
),
|
|
@@ -143,7 +143,7 @@ class RawWebhooksClient:
|
|
|
143
143
|
headers=dict(_response.headers),
|
|
144
144
|
body=typing.cast(
|
|
145
145
|
NotFound,
|
|
146
|
-
|
|
146
|
+
construct_type(
|
|
147
147
|
type_=NotFound, # type: ignore
|
|
148
148
|
object_=_response.json(),
|
|
149
149
|
),
|
|
@@ -154,7 +154,7 @@ class RawWebhooksClient:
|
|
|
154
154
|
headers=dict(_response.headers),
|
|
155
155
|
body=typing.cast(
|
|
156
156
|
typing.Optional[typing.Any],
|
|
157
|
-
|
|
157
|
+
construct_type(
|
|
158
158
|
type_=typing.Optional[typing.Any], # type: ignore
|
|
159
159
|
object_=_response.json(),
|
|
160
160
|
),
|
|
@@ -165,7 +165,7 @@ class RawWebhooksClient:
|
|
|
165
165
|
headers=dict(_response.headers),
|
|
166
166
|
body=typing.cast(
|
|
167
167
|
TooManyRequests,
|
|
168
|
-
|
|
168
|
+
construct_type(
|
|
169
169
|
type_=TooManyRequests, # type: ignore
|
|
170
170
|
object_=_response.json(),
|
|
171
171
|
),
|
|
@@ -253,7 +253,7 @@ class RawWebhooksClient:
|
|
|
253
253
|
if 200 <= _response.status_code < 300:
|
|
254
254
|
_data = typing.cast(
|
|
255
255
|
WebhookCreateResponse,
|
|
256
|
-
|
|
256
|
+
construct_type(
|
|
257
257
|
type_=WebhookCreateResponse, # type: ignore
|
|
258
258
|
object_=_response.json(),
|
|
259
259
|
),
|
|
@@ -264,7 +264,7 @@ class RawWebhooksClient:
|
|
|
264
264
|
headers=dict(_response.headers),
|
|
265
265
|
body=typing.cast(
|
|
266
266
|
BadRequest,
|
|
267
|
-
|
|
267
|
+
construct_type(
|
|
268
268
|
type_=BadRequest, # type: ignore
|
|
269
269
|
object_=_response.json(),
|
|
270
270
|
),
|
|
@@ -275,7 +275,7 @@ class RawWebhooksClient:
|
|
|
275
275
|
headers=dict(_response.headers),
|
|
276
276
|
body=typing.cast(
|
|
277
277
|
Unauthorized,
|
|
278
|
-
|
|
278
|
+
construct_type(
|
|
279
279
|
type_=Unauthorized, # type: ignore
|
|
280
280
|
object_=_response.json(),
|
|
281
281
|
),
|
|
@@ -286,7 +286,7 @@ class RawWebhooksClient:
|
|
|
286
286
|
headers=dict(_response.headers),
|
|
287
287
|
body=typing.cast(
|
|
288
288
|
Forbidden,
|
|
289
|
-
|
|
289
|
+
construct_type(
|
|
290
290
|
type_=Forbidden, # type: ignore
|
|
291
291
|
object_=_response.json(),
|
|
292
292
|
),
|
|
@@ -297,7 +297,7 @@ class RawWebhooksClient:
|
|
|
297
297
|
headers=dict(_response.headers),
|
|
298
298
|
body=typing.cast(
|
|
299
299
|
NotFound,
|
|
300
|
-
|
|
300
|
+
construct_type(
|
|
301
301
|
type_=NotFound, # type: ignore
|
|
302
302
|
object_=_response.json(),
|
|
303
303
|
),
|
|
@@ -308,7 +308,7 @@ class RawWebhooksClient:
|
|
|
308
308
|
headers=dict(_response.headers),
|
|
309
309
|
body=typing.cast(
|
|
310
310
|
typing.Optional[typing.Any],
|
|
311
|
-
|
|
311
|
+
construct_type(
|
|
312
312
|
type_=typing.Optional[typing.Any], # type: ignore
|
|
313
313
|
object_=_response.json(),
|
|
314
314
|
),
|
|
@@ -319,7 +319,7 @@ class RawWebhooksClient:
|
|
|
319
319
|
headers=dict(_response.headers),
|
|
320
320
|
body=typing.cast(
|
|
321
321
|
TooManyRequests,
|
|
322
|
-
|
|
322
|
+
construct_type(
|
|
323
323
|
type_=TooManyRequests, # type: ignore
|
|
324
324
|
object_=_response.json(),
|
|
325
325
|
),
|
|
@@ -339,7 +339,7 @@ class RawWebhooksClient:
|
|
|
339
339
|
request_options: typing.Optional[RequestOptions] = None,
|
|
340
340
|
) -> HttpResponse[WebhookWithIncludesResponse]:
|
|
341
341
|
"""
|
|
342
|
-
Show webhook details. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per
|
|
342
|
+
Show webhook details. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
343
343
|
|
|
344
344
|
Parameters
|
|
345
345
|
----------
|
|
@@ -372,7 +372,7 @@ class RawWebhooksClient:
|
|
|
372
372
|
if 200 <= _response.status_code < 300:
|
|
373
373
|
_data = typing.cast(
|
|
374
374
|
WebhookWithIncludesResponse,
|
|
375
|
-
|
|
375
|
+
construct_type(
|
|
376
376
|
type_=WebhookWithIncludesResponse, # type: ignore
|
|
377
377
|
object_=_response.json(),
|
|
378
378
|
),
|
|
@@ -383,7 +383,7 @@ class RawWebhooksClient:
|
|
|
383
383
|
headers=dict(_response.headers),
|
|
384
384
|
body=typing.cast(
|
|
385
385
|
BadRequest,
|
|
386
|
-
|
|
386
|
+
construct_type(
|
|
387
387
|
type_=BadRequest, # type: ignore
|
|
388
388
|
object_=_response.json(),
|
|
389
389
|
),
|
|
@@ -394,7 +394,7 @@ class RawWebhooksClient:
|
|
|
394
394
|
headers=dict(_response.headers),
|
|
395
395
|
body=typing.cast(
|
|
396
396
|
Unauthorized,
|
|
397
|
-
|
|
397
|
+
construct_type(
|
|
398
398
|
type_=Unauthorized, # type: ignore
|
|
399
399
|
object_=_response.json(),
|
|
400
400
|
),
|
|
@@ -405,7 +405,7 @@ class RawWebhooksClient:
|
|
|
405
405
|
headers=dict(_response.headers),
|
|
406
406
|
body=typing.cast(
|
|
407
407
|
Forbidden,
|
|
408
|
-
|
|
408
|
+
construct_type(
|
|
409
409
|
type_=Forbidden, # type: ignore
|
|
410
410
|
object_=_response.json(),
|
|
411
411
|
),
|
|
@@ -416,7 +416,7 @@ class RawWebhooksClient:
|
|
|
416
416
|
headers=dict(_response.headers),
|
|
417
417
|
body=typing.cast(
|
|
418
418
|
NotFound,
|
|
419
|
-
|
|
419
|
+
construct_type(
|
|
420
420
|
type_=NotFound, # type: ignore
|
|
421
421
|
object_=_response.json(),
|
|
422
422
|
),
|
|
@@ -427,7 +427,7 @@ class RawWebhooksClient:
|
|
|
427
427
|
headers=dict(_response.headers),
|
|
428
428
|
body=typing.cast(
|
|
429
429
|
typing.Optional[typing.Any],
|
|
430
|
-
|
|
430
|
+
construct_type(
|
|
431
431
|
type_=typing.Optional[typing.Any], # type: ignore
|
|
432
432
|
object_=_response.json(),
|
|
433
433
|
),
|
|
@@ -438,7 +438,7 @@ class RawWebhooksClient:
|
|
|
438
438
|
headers=dict(_response.headers),
|
|
439
439
|
body=typing.cast(
|
|
440
440
|
TooManyRequests,
|
|
441
|
-
|
|
441
|
+
construct_type(
|
|
442
442
|
type_=TooManyRequests, # type: ignore
|
|
443
443
|
object_=_response.json(),
|
|
444
444
|
),
|
|
@@ -453,7 +453,7 @@ class RawWebhooksClient:
|
|
|
453
453
|
self, account_id: Uuid, webhook_id: Uuid, *, request_options: typing.Optional[RequestOptions] = None
|
|
454
454
|
) -> HttpResponse[None]:
|
|
455
455
|
"""
|
|
456
|
-
Delete a webhook. <br><br>Rate Limits: 60 calls per 1.00 minute(s) per
|
|
456
|
+
Delete a webhook. <br><br>Rate Limits: 60 calls per 1.00 minute(s) per account_user
|
|
457
457
|
|
|
458
458
|
Parameters
|
|
459
459
|
----------
|
|
@@ -483,7 +483,7 @@ class RawWebhooksClient:
|
|
|
483
483
|
headers=dict(_response.headers),
|
|
484
484
|
body=typing.cast(
|
|
485
485
|
BadRequest,
|
|
486
|
-
|
|
486
|
+
construct_type(
|
|
487
487
|
type_=BadRequest, # type: ignore
|
|
488
488
|
object_=_response.json(),
|
|
489
489
|
),
|
|
@@ -494,7 +494,7 @@ class RawWebhooksClient:
|
|
|
494
494
|
headers=dict(_response.headers),
|
|
495
495
|
body=typing.cast(
|
|
496
496
|
Unauthorized,
|
|
497
|
-
|
|
497
|
+
construct_type(
|
|
498
498
|
type_=Unauthorized, # type: ignore
|
|
499
499
|
object_=_response.json(),
|
|
500
500
|
),
|
|
@@ -505,7 +505,7 @@ class RawWebhooksClient:
|
|
|
505
505
|
headers=dict(_response.headers),
|
|
506
506
|
body=typing.cast(
|
|
507
507
|
Forbidden,
|
|
508
|
-
|
|
508
|
+
construct_type(
|
|
509
509
|
type_=Forbidden, # type: ignore
|
|
510
510
|
object_=_response.json(),
|
|
511
511
|
),
|
|
@@ -516,7 +516,7 @@ class RawWebhooksClient:
|
|
|
516
516
|
headers=dict(_response.headers),
|
|
517
517
|
body=typing.cast(
|
|
518
518
|
NotFound,
|
|
519
|
-
|
|
519
|
+
construct_type(
|
|
520
520
|
type_=NotFound, # type: ignore
|
|
521
521
|
object_=_response.json(),
|
|
522
522
|
),
|
|
@@ -527,7 +527,7 @@ class RawWebhooksClient:
|
|
|
527
527
|
headers=dict(_response.headers),
|
|
528
528
|
body=typing.cast(
|
|
529
529
|
typing.Optional[typing.Any],
|
|
530
|
-
|
|
530
|
+
construct_type(
|
|
531
531
|
type_=typing.Optional[typing.Any], # type: ignore
|
|
532
532
|
object_=_response.json(),
|
|
533
533
|
),
|
|
@@ -538,7 +538,7 @@ class RawWebhooksClient:
|
|
|
538
538
|
headers=dict(_response.headers),
|
|
539
539
|
body=typing.cast(
|
|
540
540
|
TooManyRequests,
|
|
541
|
-
|
|
541
|
+
construct_type(
|
|
542
542
|
type_=TooManyRequests, # type: ignore
|
|
543
543
|
object_=_response.json(),
|
|
544
544
|
),
|
|
@@ -558,7 +558,7 @@ class RawWebhooksClient:
|
|
|
558
558
|
request_options: typing.Optional[RequestOptions] = None,
|
|
559
559
|
) -> HttpResponse[WebhookResponse]:
|
|
560
560
|
"""
|
|
561
|
-
Update webhook details. <br><br>Rate Limits: 10 calls per 1.00 minute(s) per
|
|
561
|
+
Update webhook details. <br><br>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
562
562
|
|
|
563
563
|
Parameters
|
|
564
564
|
----------
|
|
@@ -596,7 +596,7 @@ class RawWebhooksClient:
|
|
|
596
596
|
if 200 <= _response.status_code < 300:
|
|
597
597
|
_data = typing.cast(
|
|
598
598
|
WebhookResponse,
|
|
599
|
-
|
|
599
|
+
construct_type(
|
|
600
600
|
type_=WebhookResponse, # type: ignore
|
|
601
601
|
object_=_response.json(),
|
|
602
602
|
),
|
|
@@ -607,7 +607,7 @@ class RawWebhooksClient:
|
|
|
607
607
|
headers=dict(_response.headers),
|
|
608
608
|
body=typing.cast(
|
|
609
609
|
BadRequest,
|
|
610
|
-
|
|
610
|
+
construct_type(
|
|
611
611
|
type_=BadRequest, # type: ignore
|
|
612
612
|
object_=_response.json(),
|
|
613
613
|
),
|
|
@@ -618,7 +618,7 @@ class RawWebhooksClient:
|
|
|
618
618
|
headers=dict(_response.headers),
|
|
619
619
|
body=typing.cast(
|
|
620
620
|
Unauthorized,
|
|
621
|
-
|
|
621
|
+
construct_type(
|
|
622
622
|
type_=Unauthorized, # type: ignore
|
|
623
623
|
object_=_response.json(),
|
|
624
624
|
),
|
|
@@ -629,7 +629,7 @@ class RawWebhooksClient:
|
|
|
629
629
|
headers=dict(_response.headers),
|
|
630
630
|
body=typing.cast(
|
|
631
631
|
Forbidden,
|
|
632
|
-
|
|
632
|
+
construct_type(
|
|
633
633
|
type_=Forbidden, # type: ignore
|
|
634
634
|
object_=_response.json(),
|
|
635
635
|
),
|
|
@@ -640,7 +640,7 @@ class RawWebhooksClient:
|
|
|
640
640
|
headers=dict(_response.headers),
|
|
641
641
|
body=typing.cast(
|
|
642
642
|
NotFound,
|
|
643
|
-
|
|
643
|
+
construct_type(
|
|
644
644
|
type_=NotFound, # type: ignore
|
|
645
645
|
object_=_response.json(),
|
|
646
646
|
),
|
|
@@ -651,7 +651,7 @@ class RawWebhooksClient:
|
|
|
651
651
|
headers=dict(_response.headers),
|
|
652
652
|
body=typing.cast(
|
|
653
653
|
typing.Optional[typing.Any],
|
|
654
|
-
|
|
654
|
+
construct_type(
|
|
655
655
|
type_=typing.Optional[typing.Any], # type: ignore
|
|
656
656
|
object_=_response.json(),
|
|
657
657
|
),
|
|
@@ -662,7 +662,7 @@ class RawWebhooksClient:
|
|
|
662
662
|
headers=dict(_response.headers),
|
|
663
663
|
body=typing.cast(
|
|
664
664
|
TooManyRequests,
|
|
665
|
-
|
|
665
|
+
construct_type(
|
|
666
666
|
type_=TooManyRequests, # type: ignore
|
|
667
667
|
object_=_response.json(),
|
|
668
668
|
),
|
|
@@ -690,7 +690,7 @@ class AsyncRawWebhooksClient:
|
|
|
690
690
|
request_options: typing.Optional[RequestOptions] = None,
|
|
691
691
|
) -> AsyncHttpResponse[WebhooksWithIncludesResponse]:
|
|
692
692
|
"""
|
|
693
|
-
List webhooks for the given workspace. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per
|
|
693
|
+
List webhooks for the given workspace. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
694
694
|
|
|
695
695
|
Parameters
|
|
696
696
|
----------
|
|
@@ -737,7 +737,7 @@ class AsyncRawWebhooksClient:
|
|
|
737
737
|
if 200 <= _response.status_code < 300:
|
|
738
738
|
_data = typing.cast(
|
|
739
739
|
WebhooksWithIncludesResponse,
|
|
740
|
-
|
|
740
|
+
construct_type(
|
|
741
741
|
type_=WebhooksWithIncludesResponse, # type: ignore
|
|
742
742
|
object_=_response.json(),
|
|
743
743
|
),
|
|
@@ -748,7 +748,7 @@ class AsyncRawWebhooksClient:
|
|
|
748
748
|
headers=dict(_response.headers),
|
|
749
749
|
body=typing.cast(
|
|
750
750
|
BadRequest,
|
|
751
|
-
|
|
751
|
+
construct_type(
|
|
752
752
|
type_=BadRequest, # type: ignore
|
|
753
753
|
object_=_response.json(),
|
|
754
754
|
),
|
|
@@ -759,7 +759,7 @@ class AsyncRawWebhooksClient:
|
|
|
759
759
|
headers=dict(_response.headers),
|
|
760
760
|
body=typing.cast(
|
|
761
761
|
Unauthorized,
|
|
762
|
-
|
|
762
|
+
construct_type(
|
|
763
763
|
type_=Unauthorized, # type: ignore
|
|
764
764
|
object_=_response.json(),
|
|
765
765
|
),
|
|
@@ -770,7 +770,7 @@ class AsyncRawWebhooksClient:
|
|
|
770
770
|
headers=dict(_response.headers),
|
|
771
771
|
body=typing.cast(
|
|
772
772
|
Forbidden,
|
|
773
|
-
|
|
773
|
+
construct_type(
|
|
774
774
|
type_=Forbidden, # type: ignore
|
|
775
775
|
object_=_response.json(),
|
|
776
776
|
),
|
|
@@ -781,7 +781,7 @@ class AsyncRawWebhooksClient:
|
|
|
781
781
|
headers=dict(_response.headers),
|
|
782
782
|
body=typing.cast(
|
|
783
783
|
NotFound,
|
|
784
|
-
|
|
784
|
+
construct_type(
|
|
785
785
|
type_=NotFound, # type: ignore
|
|
786
786
|
object_=_response.json(),
|
|
787
787
|
),
|
|
@@ -792,7 +792,7 @@ class AsyncRawWebhooksClient:
|
|
|
792
792
|
headers=dict(_response.headers),
|
|
793
793
|
body=typing.cast(
|
|
794
794
|
typing.Optional[typing.Any],
|
|
795
|
-
|
|
795
|
+
construct_type(
|
|
796
796
|
type_=typing.Optional[typing.Any], # type: ignore
|
|
797
797
|
object_=_response.json(),
|
|
798
798
|
),
|
|
@@ -803,7 +803,7 @@ class AsyncRawWebhooksClient:
|
|
|
803
803
|
headers=dict(_response.headers),
|
|
804
804
|
body=typing.cast(
|
|
805
805
|
TooManyRequests,
|
|
806
|
-
|
|
806
|
+
construct_type(
|
|
807
807
|
type_=TooManyRequests, # type: ignore
|
|
808
808
|
object_=_response.json(),
|
|
809
809
|
),
|
|
@@ -891,7 +891,7 @@ class AsyncRawWebhooksClient:
|
|
|
891
891
|
if 200 <= _response.status_code < 300:
|
|
892
892
|
_data = typing.cast(
|
|
893
893
|
WebhookCreateResponse,
|
|
894
|
-
|
|
894
|
+
construct_type(
|
|
895
895
|
type_=WebhookCreateResponse, # type: ignore
|
|
896
896
|
object_=_response.json(),
|
|
897
897
|
),
|
|
@@ -902,7 +902,7 @@ class AsyncRawWebhooksClient:
|
|
|
902
902
|
headers=dict(_response.headers),
|
|
903
903
|
body=typing.cast(
|
|
904
904
|
BadRequest,
|
|
905
|
-
|
|
905
|
+
construct_type(
|
|
906
906
|
type_=BadRequest, # type: ignore
|
|
907
907
|
object_=_response.json(),
|
|
908
908
|
),
|
|
@@ -913,7 +913,7 @@ class AsyncRawWebhooksClient:
|
|
|
913
913
|
headers=dict(_response.headers),
|
|
914
914
|
body=typing.cast(
|
|
915
915
|
Unauthorized,
|
|
916
|
-
|
|
916
|
+
construct_type(
|
|
917
917
|
type_=Unauthorized, # type: ignore
|
|
918
918
|
object_=_response.json(),
|
|
919
919
|
),
|
|
@@ -924,7 +924,7 @@ class AsyncRawWebhooksClient:
|
|
|
924
924
|
headers=dict(_response.headers),
|
|
925
925
|
body=typing.cast(
|
|
926
926
|
Forbidden,
|
|
927
|
-
|
|
927
|
+
construct_type(
|
|
928
928
|
type_=Forbidden, # type: ignore
|
|
929
929
|
object_=_response.json(),
|
|
930
930
|
),
|
|
@@ -935,7 +935,7 @@ class AsyncRawWebhooksClient:
|
|
|
935
935
|
headers=dict(_response.headers),
|
|
936
936
|
body=typing.cast(
|
|
937
937
|
NotFound,
|
|
938
|
-
|
|
938
|
+
construct_type(
|
|
939
939
|
type_=NotFound, # type: ignore
|
|
940
940
|
object_=_response.json(),
|
|
941
941
|
),
|
|
@@ -946,7 +946,7 @@ class AsyncRawWebhooksClient:
|
|
|
946
946
|
headers=dict(_response.headers),
|
|
947
947
|
body=typing.cast(
|
|
948
948
|
typing.Optional[typing.Any],
|
|
949
|
-
|
|
949
|
+
construct_type(
|
|
950
950
|
type_=typing.Optional[typing.Any], # type: ignore
|
|
951
951
|
object_=_response.json(),
|
|
952
952
|
),
|
|
@@ -957,7 +957,7 @@ class AsyncRawWebhooksClient:
|
|
|
957
957
|
headers=dict(_response.headers),
|
|
958
958
|
body=typing.cast(
|
|
959
959
|
TooManyRequests,
|
|
960
|
-
|
|
960
|
+
construct_type(
|
|
961
961
|
type_=TooManyRequests, # type: ignore
|
|
962
962
|
object_=_response.json(),
|
|
963
963
|
),
|
|
@@ -977,7 +977,7 @@ class AsyncRawWebhooksClient:
|
|
|
977
977
|
request_options: typing.Optional[RequestOptions] = None,
|
|
978
978
|
) -> AsyncHttpResponse[WebhookWithIncludesResponse]:
|
|
979
979
|
"""
|
|
980
|
-
Show webhook details. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per
|
|
980
|
+
Show webhook details. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
981
981
|
|
|
982
982
|
Parameters
|
|
983
983
|
----------
|
|
@@ -1010,7 +1010,7 @@ class AsyncRawWebhooksClient:
|
|
|
1010
1010
|
if 200 <= _response.status_code < 300:
|
|
1011
1011
|
_data = typing.cast(
|
|
1012
1012
|
WebhookWithIncludesResponse,
|
|
1013
|
-
|
|
1013
|
+
construct_type(
|
|
1014
1014
|
type_=WebhookWithIncludesResponse, # type: ignore
|
|
1015
1015
|
object_=_response.json(),
|
|
1016
1016
|
),
|
|
@@ -1021,7 +1021,7 @@ class AsyncRawWebhooksClient:
|
|
|
1021
1021
|
headers=dict(_response.headers),
|
|
1022
1022
|
body=typing.cast(
|
|
1023
1023
|
BadRequest,
|
|
1024
|
-
|
|
1024
|
+
construct_type(
|
|
1025
1025
|
type_=BadRequest, # type: ignore
|
|
1026
1026
|
object_=_response.json(),
|
|
1027
1027
|
),
|
|
@@ -1032,7 +1032,7 @@ class AsyncRawWebhooksClient:
|
|
|
1032
1032
|
headers=dict(_response.headers),
|
|
1033
1033
|
body=typing.cast(
|
|
1034
1034
|
Unauthorized,
|
|
1035
|
-
|
|
1035
|
+
construct_type(
|
|
1036
1036
|
type_=Unauthorized, # type: ignore
|
|
1037
1037
|
object_=_response.json(),
|
|
1038
1038
|
),
|
|
@@ -1043,7 +1043,7 @@ class AsyncRawWebhooksClient:
|
|
|
1043
1043
|
headers=dict(_response.headers),
|
|
1044
1044
|
body=typing.cast(
|
|
1045
1045
|
Forbidden,
|
|
1046
|
-
|
|
1046
|
+
construct_type(
|
|
1047
1047
|
type_=Forbidden, # type: ignore
|
|
1048
1048
|
object_=_response.json(),
|
|
1049
1049
|
),
|
|
@@ -1054,7 +1054,7 @@ class AsyncRawWebhooksClient:
|
|
|
1054
1054
|
headers=dict(_response.headers),
|
|
1055
1055
|
body=typing.cast(
|
|
1056
1056
|
NotFound,
|
|
1057
|
-
|
|
1057
|
+
construct_type(
|
|
1058
1058
|
type_=NotFound, # type: ignore
|
|
1059
1059
|
object_=_response.json(),
|
|
1060
1060
|
),
|
|
@@ -1065,7 +1065,7 @@ class AsyncRawWebhooksClient:
|
|
|
1065
1065
|
headers=dict(_response.headers),
|
|
1066
1066
|
body=typing.cast(
|
|
1067
1067
|
typing.Optional[typing.Any],
|
|
1068
|
-
|
|
1068
|
+
construct_type(
|
|
1069
1069
|
type_=typing.Optional[typing.Any], # type: ignore
|
|
1070
1070
|
object_=_response.json(),
|
|
1071
1071
|
),
|
|
@@ -1076,7 +1076,7 @@ class AsyncRawWebhooksClient:
|
|
|
1076
1076
|
headers=dict(_response.headers),
|
|
1077
1077
|
body=typing.cast(
|
|
1078
1078
|
TooManyRequests,
|
|
1079
|
-
|
|
1079
|
+
construct_type(
|
|
1080
1080
|
type_=TooManyRequests, # type: ignore
|
|
1081
1081
|
object_=_response.json(),
|
|
1082
1082
|
),
|
|
@@ -1091,7 +1091,7 @@ class AsyncRawWebhooksClient:
|
|
|
1091
1091
|
self, account_id: Uuid, webhook_id: Uuid, *, request_options: typing.Optional[RequestOptions] = None
|
|
1092
1092
|
) -> AsyncHttpResponse[None]:
|
|
1093
1093
|
"""
|
|
1094
|
-
Delete a webhook. <br><br>Rate Limits: 60 calls per 1.00 minute(s) per
|
|
1094
|
+
Delete a webhook. <br><br>Rate Limits: 60 calls per 1.00 minute(s) per account_user
|
|
1095
1095
|
|
|
1096
1096
|
Parameters
|
|
1097
1097
|
----------
|
|
@@ -1121,7 +1121,7 @@ class AsyncRawWebhooksClient:
|
|
|
1121
1121
|
headers=dict(_response.headers),
|
|
1122
1122
|
body=typing.cast(
|
|
1123
1123
|
BadRequest,
|
|
1124
|
-
|
|
1124
|
+
construct_type(
|
|
1125
1125
|
type_=BadRequest, # type: ignore
|
|
1126
1126
|
object_=_response.json(),
|
|
1127
1127
|
),
|
|
@@ -1132,7 +1132,7 @@ class AsyncRawWebhooksClient:
|
|
|
1132
1132
|
headers=dict(_response.headers),
|
|
1133
1133
|
body=typing.cast(
|
|
1134
1134
|
Unauthorized,
|
|
1135
|
-
|
|
1135
|
+
construct_type(
|
|
1136
1136
|
type_=Unauthorized, # type: ignore
|
|
1137
1137
|
object_=_response.json(),
|
|
1138
1138
|
),
|
|
@@ -1143,7 +1143,7 @@ class AsyncRawWebhooksClient:
|
|
|
1143
1143
|
headers=dict(_response.headers),
|
|
1144
1144
|
body=typing.cast(
|
|
1145
1145
|
Forbidden,
|
|
1146
|
-
|
|
1146
|
+
construct_type(
|
|
1147
1147
|
type_=Forbidden, # type: ignore
|
|
1148
1148
|
object_=_response.json(),
|
|
1149
1149
|
),
|
|
@@ -1154,7 +1154,7 @@ class AsyncRawWebhooksClient:
|
|
|
1154
1154
|
headers=dict(_response.headers),
|
|
1155
1155
|
body=typing.cast(
|
|
1156
1156
|
NotFound,
|
|
1157
|
-
|
|
1157
|
+
construct_type(
|
|
1158
1158
|
type_=NotFound, # type: ignore
|
|
1159
1159
|
object_=_response.json(),
|
|
1160
1160
|
),
|
|
@@ -1165,7 +1165,7 @@ class AsyncRawWebhooksClient:
|
|
|
1165
1165
|
headers=dict(_response.headers),
|
|
1166
1166
|
body=typing.cast(
|
|
1167
1167
|
typing.Optional[typing.Any],
|
|
1168
|
-
|
|
1168
|
+
construct_type(
|
|
1169
1169
|
type_=typing.Optional[typing.Any], # type: ignore
|
|
1170
1170
|
object_=_response.json(),
|
|
1171
1171
|
),
|
|
@@ -1176,7 +1176,7 @@ class AsyncRawWebhooksClient:
|
|
|
1176
1176
|
headers=dict(_response.headers),
|
|
1177
1177
|
body=typing.cast(
|
|
1178
1178
|
TooManyRequests,
|
|
1179
|
-
|
|
1179
|
+
construct_type(
|
|
1180
1180
|
type_=TooManyRequests, # type: ignore
|
|
1181
1181
|
object_=_response.json(),
|
|
1182
1182
|
),
|
|
@@ -1196,7 +1196,7 @@ class AsyncRawWebhooksClient:
|
|
|
1196
1196
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1197
1197
|
) -> AsyncHttpResponse[WebhookResponse]:
|
|
1198
1198
|
"""
|
|
1199
|
-
Update webhook details. <br><br>Rate Limits: 10 calls per 1.00 minute(s) per
|
|
1199
|
+
Update webhook details. <br><br>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
1200
1200
|
|
|
1201
1201
|
Parameters
|
|
1202
1202
|
----------
|
|
@@ -1234,7 +1234,7 @@ class AsyncRawWebhooksClient:
|
|
|
1234
1234
|
if 200 <= _response.status_code < 300:
|
|
1235
1235
|
_data = typing.cast(
|
|
1236
1236
|
WebhookResponse,
|
|
1237
|
-
|
|
1237
|
+
construct_type(
|
|
1238
1238
|
type_=WebhookResponse, # type: ignore
|
|
1239
1239
|
object_=_response.json(),
|
|
1240
1240
|
),
|
|
@@ -1245,7 +1245,7 @@ class AsyncRawWebhooksClient:
|
|
|
1245
1245
|
headers=dict(_response.headers),
|
|
1246
1246
|
body=typing.cast(
|
|
1247
1247
|
BadRequest,
|
|
1248
|
-
|
|
1248
|
+
construct_type(
|
|
1249
1249
|
type_=BadRequest, # type: ignore
|
|
1250
1250
|
object_=_response.json(),
|
|
1251
1251
|
),
|
|
@@ -1256,7 +1256,7 @@ class AsyncRawWebhooksClient:
|
|
|
1256
1256
|
headers=dict(_response.headers),
|
|
1257
1257
|
body=typing.cast(
|
|
1258
1258
|
Unauthorized,
|
|
1259
|
-
|
|
1259
|
+
construct_type(
|
|
1260
1260
|
type_=Unauthorized, # type: ignore
|
|
1261
1261
|
object_=_response.json(),
|
|
1262
1262
|
),
|
|
@@ -1267,7 +1267,7 @@ class AsyncRawWebhooksClient:
|
|
|
1267
1267
|
headers=dict(_response.headers),
|
|
1268
1268
|
body=typing.cast(
|
|
1269
1269
|
Forbidden,
|
|
1270
|
-
|
|
1270
|
+
construct_type(
|
|
1271
1271
|
type_=Forbidden, # type: ignore
|
|
1272
1272
|
object_=_response.json(),
|
|
1273
1273
|
),
|
|
@@ -1278,7 +1278,7 @@ class AsyncRawWebhooksClient:
|
|
|
1278
1278
|
headers=dict(_response.headers),
|
|
1279
1279
|
body=typing.cast(
|
|
1280
1280
|
NotFound,
|
|
1281
|
-
|
|
1281
|
+
construct_type(
|
|
1282
1282
|
type_=NotFound, # type: ignore
|
|
1283
1283
|
object_=_response.json(),
|
|
1284
1284
|
),
|
|
@@ -1289,7 +1289,7 @@ class AsyncRawWebhooksClient:
|
|
|
1289
1289
|
headers=dict(_response.headers),
|
|
1290
1290
|
body=typing.cast(
|
|
1291
1291
|
typing.Optional[typing.Any],
|
|
1292
|
-
|
|
1292
|
+
construct_type(
|
|
1293
1293
|
type_=typing.Optional[typing.Any], # type: ignore
|
|
1294
1294
|
object_=_response.json(),
|
|
1295
1295
|
),
|
|
@@ -1300,7 +1300,7 @@ class AsyncRawWebhooksClient:
|
|
|
1300
1300
|
headers=dict(_response.headers),
|
|
1301
1301
|
body=typing.cast(
|
|
1302
1302
|
TooManyRequests,
|
|
1303
|
-
|
|
1303
|
+
construct_type(
|
|
1304
1304
|
type_=TooManyRequests, # type: ignore
|
|
1305
1305
|
object_=_response.json(),
|
|
1306
1306
|
),
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import typing
|
|
4
4
|
|
|
5
5
|
import pydantic
|
|
6
|
-
from ...core.
|
|
6
|
+
from ...core.unchecked_base_model import UncheckedBaseModel
|
|
7
7
|
from ...types.webhook_events import WebhookEvents
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class WebhookCreateParamsData(
|
|
10
|
+
class WebhookCreateParamsData(UncheckedBaseModel):
|
|
11
11
|
events: WebhookEvents
|
|
12
12
|
name: str
|
|
13
13
|
url: str = pydantic.Field()
|