dub 0.32.0__py3-none-any.whl → 0.34.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 (70) hide show
  1. dub/_version.py +3 -3
  2. dub/analytics.py +6 -4
  3. dub/basesdk.py +6 -0
  4. dub/commissions.py +12 -8
  5. dub/customers.py +24 -313
  6. dub/domains.py +34 -26
  7. dub/embed_tokens.py +6 -4
  8. dub/events.py +6 -4
  9. dub/folders.py +24 -20
  10. dub/links.py +58 -54
  11. dub/models/components/__init__.py +81 -149
  12. dub/models/components/analyticstopurls.py +2 -2
  13. dub/models/components/leadcreatedevent.py +15 -14
  14. dub/models/components/linkclickedevent.py +19 -18
  15. dub/models/components/linkerrorschema.py +12 -12
  16. dub/models/components/linkschema.py +9 -3
  17. dub/models/components/linktagschema.py +3 -3
  18. dub/models/components/linktagschemaoutput.py +38 -0
  19. dub/models/components/linkwebhookevent.py +15 -16
  20. dub/models/components/partnerapplicationsubmittedevent.py +269 -0
  21. dub/models/components/partnerenrolledevent.py +68 -8
  22. dub/models/components/salecreatedevent.py +15 -14
  23. dub/models/components/webhookevent.py +6 -0
  24. dub/models/components/workspaceschema.py +6 -0
  25. dub/models/operations/__init__.py +147 -57
  26. dub/models/operations/banpartner.py +83 -0
  27. dub/models/operations/createpartner.py +68 -59
  28. dub/models/operations/createpartnerlink.py +0 -51
  29. dub/models/operations/createreferralsembedtoken.py +0 -51
  30. dub/models/operations/getcustomers.py +18 -0
  31. dub/models/operations/getlinkinfo.py +0 -2
  32. dub/models/operations/getlinks.py +2 -2
  33. dub/models/operations/getlinkscount.py +2 -2
  34. dub/models/operations/getqrcode.py +1 -1
  35. dub/models/operations/listcommissions.py +13 -2
  36. dub/models/operations/listdomains.py +1 -1
  37. dub/models/operations/listevents.py +2026 -21
  38. dub/models/operations/listpartners.py +75 -8
  39. dub/models/operations/retrieveanalytics.py +28 -5
  40. dub/models/operations/retrievelinks.py +44 -9
  41. dub/models/operations/retrievepartneranalytics.py +51 -11
  42. dub/models/operations/tracklead.py +4 -4
  43. dub/models/operations/updatecommission.py +7 -2
  44. dub/models/operations/updatecustomer.py +23 -11
  45. dub/models/operations/updatelink.py +0 -2
  46. dub/models/operations/updateworkspace.py +3 -3
  47. dub/models/operations/upsertpartnerlink.py +0 -51
  48. dub/partners.py +316 -24
  49. dub/qr_codes.py +4 -2
  50. dub/tags.py +24 -20
  51. dub/track.py +12 -16
  52. dub/types/basemodel.py +41 -3
  53. dub/utils/__init__.py +0 -3
  54. dub/utils/enums.py +60 -0
  55. dub/utils/forms.py +21 -10
  56. dub/utils/queryparams.py +14 -2
  57. dub/utils/requestbodies.py +3 -3
  58. dub/utils/retries.py +69 -5
  59. dub/utils/serializers.py +0 -20
  60. dub/utils/unmarshal_json_response.py +15 -1
  61. dub/workspaces.py +12 -16
  62. {dub-0.32.0.dist-info → dub-0.34.0.dist-info}/METADATA +15 -33
  63. {dub-0.32.0.dist-info → dub-0.34.0.dist-info}/RECORD +65 -67
  64. dub/models/components/clickevent.py +0 -556
  65. dub/models/components/continentcode.py +0 -16
  66. dub/models/components/leadevent.py +0 -680
  67. dub/models/components/saleevent.py +0 -779
  68. dub/models/operations/createcustomer.py +0 -382
  69. {dub-0.32.0.dist-info → dub-0.34.0.dist-info}/WHEEL +0 -0
  70. {dub-0.32.0.dist-info → dub-0.34.0.dist-info}/licenses/LICENSE +0 -0
dub/customers.py CHANGED
@@ -7,7 +7,6 @@ from dub.models import errors, operations
7
7
  from dub.types import BaseModel, OptionalNullable, UNSET
8
8
  from dub.utils.unmarshal_json_response import unmarshal_json_response
9
9
  from typing import Any, List, Mapping, Optional, Union, cast
10
- from typing_extensions import deprecated
11
10
 
12
11
 
13
12
  class Customers(BaseSDK):
@@ -21,7 +20,7 @@ class Customers(BaseSDK):
21
20
  server_url: Optional[str] = None,
22
21
  timeout_ms: Optional[int] = None,
23
22
  http_headers: Optional[Mapping[str, str]] = None,
24
- ) -> Optional[List[operations.GetCustomersResponseBody]]:
23
+ ) -> List[operations.GetCustomersResponseBody]:
25
24
  r"""Retrieve a list of customers
26
25
 
27
26
  Retrieve a list of customers for the authenticated workspace.
@@ -59,6 +58,7 @@ class Customers(BaseSDK):
59
58
  accept_header_value="application/json",
60
59
  http_headers=http_headers,
61
60
  security=self.sdk_configuration.security,
61
+ allow_empty_value=None,
62
62
  timeout_ms=timeout_ms,
63
63
  )
64
64
 
@@ -98,7 +98,7 @@ class Customers(BaseSDK):
98
98
  response_data: Any = None
99
99
  if utils.match_response(http_res, "200", "application/json"):
100
100
  return unmarshal_json_response(
101
- Optional[List[operations.GetCustomersResponseBody]], http_res
101
+ List[operations.GetCustomersResponseBody], http_res
102
102
  )
103
103
  if utils.match_response(http_res, "400", "application/json"):
104
104
  response_data = unmarshal_json_response(errors.BadRequestData, http_res)
@@ -152,7 +152,7 @@ class Customers(BaseSDK):
152
152
  server_url: Optional[str] = None,
153
153
  timeout_ms: Optional[int] = None,
154
154
  http_headers: Optional[Mapping[str, str]] = None,
155
- ) -> Optional[List[operations.GetCustomersResponseBody]]:
155
+ ) -> List[operations.GetCustomersResponseBody]:
156
156
  r"""Retrieve a list of customers
157
157
 
158
158
  Retrieve a list of customers for the authenticated workspace.
@@ -190,6 +190,7 @@ class Customers(BaseSDK):
190
190
  accept_header_value="application/json",
191
191
  http_headers=http_headers,
192
192
  security=self.sdk_configuration.security,
193
+ allow_empty_value=None,
193
194
  timeout_ms=timeout_ms,
194
195
  )
195
196
 
@@ -229,299 +230,7 @@ class Customers(BaseSDK):
229
230
  response_data: Any = None
230
231
  if utils.match_response(http_res, "200", "application/json"):
231
232
  return unmarshal_json_response(
232
- Optional[List[operations.GetCustomersResponseBody]], http_res
233
- )
234
- if utils.match_response(http_res, "400", "application/json"):
235
- response_data = unmarshal_json_response(errors.BadRequestData, http_res)
236
- raise errors.BadRequest(response_data, http_res)
237
- if utils.match_response(http_res, "401", "application/json"):
238
- response_data = unmarshal_json_response(errors.UnauthorizedData, http_res)
239
- raise errors.Unauthorized(response_data, http_res)
240
- if utils.match_response(http_res, "403", "application/json"):
241
- response_data = unmarshal_json_response(errors.ForbiddenData, http_res)
242
- raise errors.Forbidden(response_data, http_res)
243
- if utils.match_response(http_res, "404", "application/json"):
244
- response_data = unmarshal_json_response(errors.NotFoundData, http_res)
245
- raise errors.NotFound(response_data, http_res)
246
- if utils.match_response(http_res, "409", "application/json"):
247
- response_data = unmarshal_json_response(errors.ConflictData, http_res)
248
- raise errors.Conflict(response_data, http_res)
249
- if utils.match_response(http_res, "410", "application/json"):
250
- response_data = unmarshal_json_response(errors.InviteExpiredData, http_res)
251
- raise errors.InviteExpired(response_data, http_res)
252
- if utils.match_response(http_res, "422", "application/json"):
253
- response_data = unmarshal_json_response(
254
- errors.UnprocessableEntityData, http_res
255
- )
256
- raise errors.UnprocessableEntity(response_data, http_res)
257
- if utils.match_response(http_res, "429", "application/json"):
258
- response_data = unmarshal_json_response(
259
- errors.RateLimitExceededData, http_res
260
- )
261
- raise errors.RateLimitExceeded(response_data, http_res)
262
- if utils.match_response(http_res, "500", "application/json"):
263
- response_data = unmarshal_json_response(
264
- errors.InternalServerErrorData, http_res
265
- )
266
- raise errors.InternalServerError(response_data, http_res)
267
- if utils.match_response(http_res, "4XX", "*"):
268
- http_res_text = await utils.stream_to_text_async(http_res)
269
- raise errors.SDKError("API error occurred", http_res, http_res_text)
270
- if utils.match_response(http_res, "5XX", "*"):
271
- http_res_text = await utils.stream_to_text_async(http_res)
272
- raise errors.SDKError("API error occurred", http_res, http_res_text)
273
-
274
- raise errors.SDKError("Unexpected response received", http_res)
275
-
276
- @deprecated(
277
- "warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible."
278
- )
279
- def create(
280
- self,
281
- *,
282
- request: Optional[
283
- Union[
284
- operations.CreateCustomerRequestBody,
285
- operations.CreateCustomerRequestBodyTypedDict,
286
- ]
287
- ] = None,
288
- retries: OptionalNullable[utils.RetryConfig] = UNSET,
289
- server_url: Optional[str] = None,
290
- timeout_ms: Optional[int] = None,
291
- http_headers: Optional[Mapping[str, str]] = None,
292
- ) -> Optional[operations.CreateCustomerResponseBody]:
293
- r"""Create a customer
294
-
295
- [Deprecated]: Customer creation can only be done via tracking a lead event. Use the /track/lead endpoint instead.
296
-
297
- :param request: The request object to send.
298
- :param retries: Override the default retry configuration for this method
299
- :param server_url: Override the default server URL for this method
300
- :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
301
- :param http_headers: Additional headers to set or replace on requests.
302
- """
303
- base_url = None
304
- url_variables = None
305
- if timeout_ms is None:
306
- timeout_ms = self.sdk_configuration.timeout_ms
307
-
308
- if server_url is not None:
309
- base_url = server_url
310
- else:
311
- base_url = self._get_url(base_url, url_variables)
312
-
313
- if not isinstance(request, BaseModel):
314
- request = utils.unmarshal(
315
- request, Optional[operations.CreateCustomerRequestBody]
316
- )
317
- request = cast(Optional[operations.CreateCustomerRequestBody], request)
318
-
319
- req = self._build_request(
320
- method="POST",
321
- path="/customers",
322
- base_url=base_url,
323
- url_variables=url_variables,
324
- request=request,
325
- request_body_required=False,
326
- request_has_path_params=False,
327
- request_has_query_params=True,
328
- user_agent_header="user-agent",
329
- accept_header_value="application/json",
330
- http_headers=http_headers,
331
- security=self.sdk_configuration.security,
332
- get_serialized_body=lambda: utils.serialize_request_body(
333
- request,
334
- False,
335
- True,
336
- "json",
337
- Optional[operations.CreateCustomerRequestBody],
338
- ),
339
- timeout_ms=timeout_ms,
340
- )
341
-
342
- if retries == UNSET:
343
- if self.sdk_configuration.retry_config is not UNSET:
344
- retries = self.sdk_configuration.retry_config
345
-
346
- retry_config = None
347
- if isinstance(retries, utils.RetryConfig):
348
- retry_config = (retries, ["429", "500", "502", "503", "504"])
349
-
350
- http_res = self.do_request(
351
- hook_ctx=HookContext(
352
- config=self.sdk_configuration,
353
- base_url=base_url or "",
354
- operation_id="createCustomer",
355
- oauth2_scopes=None,
356
- security_source=self.sdk_configuration.security,
357
- ),
358
- request=req,
359
- error_status_codes=[
360
- "400",
361
- "401",
362
- "403",
363
- "404",
364
- "409",
365
- "410",
366
- "422",
367
- "429",
368
- "4XX",
369
- "500",
370
- "5XX",
371
- ],
372
- retry_config=retry_config,
373
- )
374
-
375
- response_data: Any = None
376
- if utils.match_response(http_res, "201", "application/json"):
377
- return unmarshal_json_response(
378
- Optional[operations.CreateCustomerResponseBody], http_res
379
- )
380
- if utils.match_response(http_res, "400", "application/json"):
381
- response_data = unmarshal_json_response(errors.BadRequestData, http_res)
382
- raise errors.BadRequest(response_data, http_res)
383
- if utils.match_response(http_res, "401", "application/json"):
384
- response_data = unmarshal_json_response(errors.UnauthorizedData, http_res)
385
- raise errors.Unauthorized(response_data, http_res)
386
- if utils.match_response(http_res, "403", "application/json"):
387
- response_data = unmarshal_json_response(errors.ForbiddenData, http_res)
388
- raise errors.Forbidden(response_data, http_res)
389
- if utils.match_response(http_res, "404", "application/json"):
390
- response_data = unmarshal_json_response(errors.NotFoundData, http_res)
391
- raise errors.NotFound(response_data, http_res)
392
- if utils.match_response(http_res, "409", "application/json"):
393
- response_data = unmarshal_json_response(errors.ConflictData, http_res)
394
- raise errors.Conflict(response_data, http_res)
395
- if utils.match_response(http_res, "410", "application/json"):
396
- response_data = unmarshal_json_response(errors.InviteExpiredData, http_res)
397
- raise errors.InviteExpired(response_data, http_res)
398
- if utils.match_response(http_res, "422", "application/json"):
399
- response_data = unmarshal_json_response(
400
- errors.UnprocessableEntityData, http_res
401
- )
402
- raise errors.UnprocessableEntity(response_data, http_res)
403
- if utils.match_response(http_res, "429", "application/json"):
404
- response_data = unmarshal_json_response(
405
- errors.RateLimitExceededData, http_res
406
- )
407
- raise errors.RateLimitExceeded(response_data, http_res)
408
- if utils.match_response(http_res, "500", "application/json"):
409
- response_data = unmarshal_json_response(
410
- errors.InternalServerErrorData, http_res
411
- )
412
- raise errors.InternalServerError(response_data, http_res)
413
- if utils.match_response(http_res, "4XX", "*"):
414
- http_res_text = utils.stream_to_text(http_res)
415
- raise errors.SDKError("API error occurred", http_res, http_res_text)
416
- if utils.match_response(http_res, "5XX", "*"):
417
- http_res_text = utils.stream_to_text(http_res)
418
- raise errors.SDKError("API error occurred", http_res, http_res_text)
419
-
420
- raise errors.SDKError("Unexpected response received", http_res)
421
-
422
- @deprecated(
423
- "warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible."
424
- )
425
- async def create_async(
426
- self,
427
- *,
428
- request: Optional[
429
- Union[
430
- operations.CreateCustomerRequestBody,
431
- operations.CreateCustomerRequestBodyTypedDict,
432
- ]
433
- ] = None,
434
- retries: OptionalNullable[utils.RetryConfig] = UNSET,
435
- server_url: Optional[str] = None,
436
- timeout_ms: Optional[int] = None,
437
- http_headers: Optional[Mapping[str, str]] = None,
438
- ) -> Optional[operations.CreateCustomerResponseBody]:
439
- r"""Create a customer
440
-
441
- [Deprecated]: Customer creation can only be done via tracking a lead event. Use the /track/lead endpoint instead.
442
-
443
- :param request: The request object to send.
444
- :param retries: Override the default retry configuration for this method
445
- :param server_url: Override the default server URL for this method
446
- :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
447
- :param http_headers: Additional headers to set or replace on requests.
448
- """
449
- base_url = None
450
- url_variables = None
451
- if timeout_ms is None:
452
- timeout_ms = self.sdk_configuration.timeout_ms
453
-
454
- if server_url is not None:
455
- base_url = server_url
456
- else:
457
- base_url = self._get_url(base_url, url_variables)
458
-
459
- if not isinstance(request, BaseModel):
460
- request = utils.unmarshal(
461
- request, Optional[operations.CreateCustomerRequestBody]
462
- )
463
- request = cast(Optional[operations.CreateCustomerRequestBody], request)
464
-
465
- req = self._build_request_async(
466
- method="POST",
467
- path="/customers",
468
- base_url=base_url,
469
- url_variables=url_variables,
470
- request=request,
471
- request_body_required=False,
472
- request_has_path_params=False,
473
- request_has_query_params=True,
474
- user_agent_header="user-agent",
475
- accept_header_value="application/json",
476
- http_headers=http_headers,
477
- security=self.sdk_configuration.security,
478
- get_serialized_body=lambda: utils.serialize_request_body(
479
- request,
480
- False,
481
- True,
482
- "json",
483
- Optional[operations.CreateCustomerRequestBody],
484
- ),
485
- timeout_ms=timeout_ms,
486
- )
487
-
488
- if retries == UNSET:
489
- if self.sdk_configuration.retry_config is not UNSET:
490
- retries = self.sdk_configuration.retry_config
491
-
492
- retry_config = None
493
- if isinstance(retries, utils.RetryConfig):
494
- retry_config = (retries, ["429", "500", "502", "503", "504"])
495
-
496
- http_res = await self.do_request_async(
497
- hook_ctx=HookContext(
498
- config=self.sdk_configuration,
499
- base_url=base_url or "",
500
- operation_id="createCustomer",
501
- oauth2_scopes=None,
502
- security_source=self.sdk_configuration.security,
503
- ),
504
- request=req,
505
- error_status_codes=[
506
- "400",
507
- "401",
508
- "403",
509
- "404",
510
- "409",
511
- "410",
512
- "422",
513
- "429",
514
- "4XX",
515
- "500",
516
- "5XX",
517
- ],
518
- retry_config=retry_config,
519
- )
520
-
521
- response_data: Any = None
522
- if utils.match_response(http_res, "201", "application/json"):
523
- return unmarshal_json_response(
524
- Optional[operations.CreateCustomerResponseBody], http_res
233
+ List[operations.GetCustomersResponseBody], http_res
525
234
  )
526
235
  if utils.match_response(http_res, "400", "application/json"):
527
236
  response_data = unmarshal_json_response(errors.BadRequestData, http_res)
@@ -575,7 +284,7 @@ class Customers(BaseSDK):
575
284
  server_url: Optional[str] = None,
576
285
  timeout_ms: Optional[int] = None,
577
286
  http_headers: Optional[Mapping[str, str]] = None,
578
- ) -> Optional[operations.GetCustomerResponseBody]:
287
+ ) -> operations.GetCustomerResponseBody:
579
288
  r"""Retrieve a customer
580
289
 
581
290
  Retrieve a customer by ID for the authenticated workspace.
@@ -613,6 +322,7 @@ class Customers(BaseSDK):
613
322
  accept_header_value="application/json",
614
323
  http_headers=http_headers,
615
324
  security=self.sdk_configuration.security,
325
+ allow_empty_value=None,
616
326
  timeout_ms=timeout_ms,
617
327
  )
618
328
 
@@ -651,9 +361,7 @@ class Customers(BaseSDK):
651
361
 
652
362
  response_data: Any = None
653
363
  if utils.match_response(http_res, "200", "application/json"):
654
- return unmarshal_json_response(
655
- Optional[operations.GetCustomerResponseBody], http_res
656
- )
364
+ return unmarshal_json_response(operations.GetCustomerResponseBody, http_res)
657
365
  if utils.match_response(http_res, "400", "application/json"):
658
366
  response_data = unmarshal_json_response(errors.BadRequestData, http_res)
659
367
  raise errors.BadRequest(response_data, http_res)
@@ -706,7 +414,7 @@ class Customers(BaseSDK):
706
414
  server_url: Optional[str] = None,
707
415
  timeout_ms: Optional[int] = None,
708
416
  http_headers: Optional[Mapping[str, str]] = None,
709
- ) -> Optional[operations.GetCustomerResponseBody]:
417
+ ) -> operations.GetCustomerResponseBody:
710
418
  r"""Retrieve a customer
711
419
 
712
420
  Retrieve a customer by ID for the authenticated workspace.
@@ -744,6 +452,7 @@ class Customers(BaseSDK):
744
452
  accept_header_value="application/json",
745
453
  http_headers=http_headers,
746
454
  security=self.sdk_configuration.security,
455
+ allow_empty_value=None,
747
456
  timeout_ms=timeout_ms,
748
457
  )
749
458
 
@@ -782,9 +491,7 @@ class Customers(BaseSDK):
782
491
 
783
492
  response_data: Any = None
784
493
  if utils.match_response(http_res, "200", "application/json"):
785
- return unmarshal_json_response(
786
- Optional[operations.GetCustomerResponseBody], http_res
787
- )
494
+ return unmarshal_json_response(operations.GetCustomerResponseBody, http_res)
788
495
  if utils.match_response(http_res, "400", "application/json"):
789
496
  response_data = unmarshal_json_response(errors.BadRequestData, http_res)
790
497
  raise errors.BadRequest(response_data, http_res)
@@ -837,7 +544,7 @@ class Customers(BaseSDK):
837
544
  server_url: Optional[str] = None,
838
545
  timeout_ms: Optional[int] = None,
839
546
  http_headers: Optional[Mapping[str, str]] = None,
840
- ) -> Optional[operations.UpdateCustomerResponseBody]:
547
+ ) -> operations.UpdateCustomerResponseBody:
841
548
  r"""Update a customer
842
549
 
843
550
  Update a customer for the authenticated workspace.
@@ -882,6 +589,7 @@ class Customers(BaseSDK):
882
589
  "json",
883
590
  Optional[operations.UpdateCustomerRequestBody],
884
591
  ),
592
+ allow_empty_value=None,
885
593
  timeout_ms=timeout_ms,
886
594
  )
887
595
 
@@ -921,7 +629,7 @@ class Customers(BaseSDK):
921
629
  response_data: Any = None
922
630
  if utils.match_response(http_res, "200", "application/json"):
923
631
  return unmarshal_json_response(
924
- Optional[operations.UpdateCustomerResponseBody], http_res
632
+ operations.UpdateCustomerResponseBody, http_res
925
633
  )
926
634
  if utils.match_response(http_res, "400", "application/json"):
927
635
  response_data = unmarshal_json_response(errors.BadRequestData, http_res)
@@ -975,7 +683,7 @@ class Customers(BaseSDK):
975
683
  server_url: Optional[str] = None,
976
684
  timeout_ms: Optional[int] = None,
977
685
  http_headers: Optional[Mapping[str, str]] = None,
978
- ) -> Optional[operations.UpdateCustomerResponseBody]:
686
+ ) -> operations.UpdateCustomerResponseBody:
979
687
  r"""Update a customer
980
688
 
981
689
  Update a customer for the authenticated workspace.
@@ -1020,6 +728,7 @@ class Customers(BaseSDK):
1020
728
  "json",
1021
729
  Optional[operations.UpdateCustomerRequestBody],
1022
730
  ),
731
+ allow_empty_value=None,
1023
732
  timeout_ms=timeout_ms,
1024
733
  )
1025
734
 
@@ -1059,7 +768,7 @@ class Customers(BaseSDK):
1059
768
  response_data: Any = None
1060
769
  if utils.match_response(http_res, "200", "application/json"):
1061
770
  return unmarshal_json_response(
1062
- Optional[operations.UpdateCustomerResponseBody], http_res
771
+ operations.UpdateCustomerResponseBody, http_res
1063
772
  )
1064
773
  if utils.match_response(http_res, "400", "application/json"):
1065
774
  response_data = unmarshal_json_response(errors.BadRequestData, http_res)
@@ -1111,7 +820,7 @@ class Customers(BaseSDK):
1111
820
  server_url: Optional[str] = None,
1112
821
  timeout_ms: Optional[int] = None,
1113
822
  http_headers: Optional[Mapping[str, str]] = None,
1114
- ) -> Optional[operations.DeleteCustomerResponseBody]:
823
+ ) -> operations.DeleteCustomerResponseBody:
1115
824
  r"""Delete a customer
1116
825
 
1117
826
  Delete a customer from a workspace.
@@ -1149,6 +858,7 @@ class Customers(BaseSDK):
1149
858
  accept_header_value="application/json",
1150
859
  http_headers=http_headers,
1151
860
  security=self.sdk_configuration.security,
861
+ allow_empty_value=None,
1152
862
  timeout_ms=timeout_ms,
1153
863
  )
1154
864
 
@@ -1188,7 +898,7 @@ class Customers(BaseSDK):
1188
898
  response_data: Any = None
1189
899
  if utils.match_response(http_res, "200", "application/json"):
1190
900
  return unmarshal_json_response(
1191
- Optional[operations.DeleteCustomerResponseBody], http_res
901
+ operations.DeleteCustomerResponseBody, http_res
1192
902
  )
1193
903
  if utils.match_response(http_res, "400", "application/json"):
1194
904
  response_data = unmarshal_json_response(errors.BadRequestData, http_res)
@@ -1240,7 +950,7 @@ class Customers(BaseSDK):
1240
950
  server_url: Optional[str] = None,
1241
951
  timeout_ms: Optional[int] = None,
1242
952
  http_headers: Optional[Mapping[str, str]] = None,
1243
- ) -> Optional[operations.DeleteCustomerResponseBody]:
953
+ ) -> operations.DeleteCustomerResponseBody:
1244
954
  r"""Delete a customer
1245
955
 
1246
956
  Delete a customer from a workspace.
@@ -1278,6 +988,7 @@ class Customers(BaseSDK):
1278
988
  accept_header_value="application/json",
1279
989
  http_headers=http_headers,
1280
990
  security=self.sdk_configuration.security,
991
+ allow_empty_value=None,
1281
992
  timeout_ms=timeout_ms,
1282
993
  )
1283
994
 
@@ -1317,7 +1028,7 @@ class Customers(BaseSDK):
1317
1028
  response_data: Any = None
1318
1029
  if utils.match_response(http_res, "200", "application/json"):
1319
1030
  return unmarshal_json_response(
1320
- Optional[operations.DeleteCustomerResponseBody], http_res
1031
+ operations.DeleteCustomerResponseBody, http_res
1321
1032
  )
1322
1033
  if utils.match_response(http_res, "400", "application/json"):
1323
1034
  response_data = unmarshal_json_response(errors.BadRequestData, http_res)