lambdadb 0.3.2__tar.gz → 0.3.4__tar.gz

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 lambdadb might be problematic. Click here for more details.

Files changed (63) hide show
  1. {lambdadb-0.3.2 → lambdadb-0.3.4}/PKG-INFO +1 -1
  2. {lambdadb-0.3.2 → lambdadb-0.3.4}/pyproject.toml +1 -1
  3. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/_version.py +3 -3
  4. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/collections.py +16 -16
  5. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/docs.py +30 -28
  6. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/models/__init__.py +31 -43
  7. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/models/bulkupsertdocsop.py +1 -14
  8. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/models/collectionresponse.py +14 -18
  9. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/models/createcollectionop.py +13 -0
  10. lambdadb-0.3.2/src/lambdadb/models/getcollectionop.py → lambdadb-0.3.4/src/lambdadb/models/deletecollectionop.py +2 -2
  11. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/models/deletedocsop.py +21 -20
  12. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/models/fetchdocsop.py +6 -6
  13. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/models/getbulkupsertdocsop.py +7 -7
  14. lambdadb-0.3.2/src/lambdadb/models/deletecollectionop.py → lambdadb-0.3.4/src/lambdadb/models/getcollectionop.py +10 -10
  15. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/models/listcollectionsop.py +4 -4
  16. lambdadb-0.3.2/src/lambdadb/models/ids.py → lambdadb-0.3.4/src/lambdadb/models/messageresponse.py +4 -7
  17. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/models/querycollectionop.py +8 -8
  18. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/models/updatecollectionop.py +13 -0
  19. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/models/updatedocsop.py +2 -14
  20. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/models/upsertdocsop.py +2 -14
  21. lambdadb-0.3.2/src/lambdadb/models/filter_.py +0 -24
  22. {lambdadb-0.3.2 → lambdadb-0.3.4}/LICENSE +0 -0
  23. {lambdadb-0.3.2 → lambdadb-0.3.4}/README-PYPI.md +0 -0
  24. {lambdadb-0.3.2 → lambdadb-0.3.4}/py.typed +0 -0
  25. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/__init__.py +0 -0
  26. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/_hooks/__init__.py +0 -0
  27. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/_hooks/registration.py +0 -0
  28. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/_hooks/sdkhooks.py +0 -0
  29. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/_hooks/types.py +0 -0
  30. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/basesdk.py +0 -0
  31. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/errors/__init__.py +0 -0
  32. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/errors/apierror.py +0 -0
  33. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/errors/badrequest_error.py +0 -0
  34. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/errors/internalservererror.py +0 -0
  35. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/errors/resourcealreadyexists_error.py +0 -0
  36. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/errors/resourcenotfound_error.py +0 -0
  37. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/errors/toomanyrequests_error.py +0 -0
  38. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/errors/unauthenticated_error.py +0 -0
  39. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/httpclient.py +0 -0
  40. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/models/indexconfigs_union.py +0 -0
  41. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/models/security.py +0 -0
  42. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/models/status.py +0 -0
  43. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/py.typed +0 -0
  44. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/sdk.py +0 -0
  45. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/sdkconfiguration.py +0 -0
  46. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/types/__init__.py +0 -0
  47. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/types/basemodel.py +0 -0
  48. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/utils/__init__.py +0 -0
  49. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/utils/annotations.py +0 -0
  50. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/utils/datetimes.py +0 -0
  51. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/utils/enums.py +0 -0
  52. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/utils/eventstreaming.py +0 -0
  53. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/utils/forms.py +0 -0
  54. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/utils/headers.py +0 -0
  55. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/utils/logger.py +0 -0
  56. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/utils/metadata.py +0 -0
  57. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/utils/queryparams.py +0 -0
  58. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/utils/requestbodies.py +0 -0
  59. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/utils/retries.py +0 -0
  60. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/utils/security.py +0 -0
  61. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/utils/serializers.py +0 -0
  62. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/utils/url.py +0 -0
  63. {lambdadb-0.3.2 → lambdadb-0.3.4}/src/lambdadb/utils/values.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: lambdadb
3
- Version: 0.3.2
3
+ Version: 0.3.4
4
4
  Summary: Python Client SDK Generated by Speakeasy.
5
5
  Author: Speakeasy
6
6
  Requires-Python: >=3.9.2
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "lambdadb"
3
- version = "0.3.2"
3
+ version = "0.3.4"
4
4
  description = "Python Client SDK Generated by Speakeasy."
5
5
  authors = [{ name = "Speakeasy" },]
6
6
  readme = "README-PYPI.md"
@@ -3,10 +3,10 @@
3
3
  import importlib.metadata
4
4
 
5
5
  __title__: str = "lambdadb"
6
- __version__: str = "0.3.2"
7
- __openapi_doc_version__: str = "1.1.0"
6
+ __version__: str = "0.3.4"
7
+ __openapi_doc_version__: str = "1.1.1"
8
8
  __gen_version__: str = "2.644.1"
9
- __user_agent__: str = "speakeasy-sdk/python 0.3.2 2.644.1 1.1.0 lambdadb"
9
+ __user_agent__: str = "speakeasy-sdk/python 0.3.4 2.644.1 1.1.1 lambdadb"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
@@ -274,7 +274,7 @@ class Collections(BaseSDK):
274
274
  server_url: Optional[str] = None,
275
275
  timeout_ms: Optional[int] = None,
276
276
  http_headers: Optional[Mapping[str, str]] = None,
277
- ) -> models.CollectionResponse:
277
+ ) -> models.CreateCollectionResponse:
278
278
  r"""Create a collection.
279
279
 
280
280
  :param project_name: Project name.
@@ -365,7 +365,7 @@ class Collections(BaseSDK):
365
365
 
366
366
  response_data: Any = None
367
367
  if utils.match_response(http_res, "202", "application/json"):
368
- return utils.unmarshal_json(http_res.text, models.CollectionResponse)
368
+ return utils.unmarshal_json(http_res.text, models.CreateCollectionResponse)
369
369
  if utils.match_response(http_res, "400", "application/json"):
370
370
  response_data = utils.unmarshal_json(
371
371
  http_res.text, errors.BadRequestErrorData
@@ -430,7 +430,7 @@ class Collections(BaseSDK):
430
430
  server_url: Optional[str] = None,
431
431
  timeout_ms: Optional[int] = None,
432
432
  http_headers: Optional[Mapping[str, str]] = None,
433
- ) -> models.CollectionResponse:
433
+ ) -> models.CreateCollectionResponse:
434
434
  r"""Create a collection.
435
435
 
436
436
  :param project_name: Project name.
@@ -521,7 +521,7 @@ class Collections(BaseSDK):
521
521
 
522
522
  response_data: Any = None
523
523
  if utils.match_response(http_res, "202", "application/json"):
524
- return utils.unmarshal_json(http_res.text, models.CollectionResponse)
524
+ return utils.unmarshal_json(http_res.text, models.CreateCollectionResponse)
525
525
  if utils.match_response(http_res, "400", "application/json"):
526
526
  response_data = utils.unmarshal_json(
527
527
  http_res.text, errors.BadRequestErrorData
@@ -576,7 +576,7 @@ class Collections(BaseSDK):
576
576
  server_url: Optional[str] = None,
577
577
  timeout_ms: Optional[int] = None,
578
578
  http_headers: Optional[Mapping[str, str]] = None,
579
- ) -> models.DeleteCollectionResponse:
579
+ ) -> models.MessageResponse:
580
580
  r"""Delete an existing collection.
581
581
 
582
582
  :param project_name: Project name.
@@ -646,7 +646,7 @@ class Collections(BaseSDK):
646
646
 
647
647
  response_data: Any = None
648
648
  if utils.match_response(http_res, "202", "application/json"):
649
- return utils.unmarshal_json(http_res.text, models.DeleteCollectionResponse)
649
+ return utils.unmarshal_json(http_res.text, models.MessageResponse)
650
650
  if utils.match_response(http_res, "401", "application/json"):
651
651
  response_data = utils.unmarshal_json(
652
652
  http_res.text, errors.UnauthenticatedErrorData
@@ -696,7 +696,7 @@ class Collections(BaseSDK):
696
696
  server_url: Optional[str] = None,
697
697
  timeout_ms: Optional[int] = None,
698
698
  http_headers: Optional[Mapping[str, str]] = None,
699
- ) -> models.DeleteCollectionResponse:
699
+ ) -> models.MessageResponse:
700
700
  r"""Delete an existing collection.
701
701
 
702
702
  :param project_name: Project name.
@@ -766,7 +766,7 @@ class Collections(BaseSDK):
766
766
 
767
767
  response_data: Any = None
768
768
  if utils.match_response(http_res, "202", "application/json"):
769
- return utils.unmarshal_json(http_res.text, models.DeleteCollectionResponse)
769
+ return utils.unmarshal_json(http_res.text, models.MessageResponse)
770
770
  if utils.match_response(http_res, "401", "application/json"):
771
771
  response_data = utils.unmarshal_json(
772
772
  http_res.text, errors.UnauthenticatedErrorData
@@ -816,7 +816,7 @@ class Collections(BaseSDK):
816
816
  server_url: Optional[str] = None,
817
817
  timeout_ms: Optional[int] = None,
818
818
  http_headers: Optional[Mapping[str, str]] = None,
819
- ) -> models.CollectionResponse:
819
+ ) -> models.GetCollectionResponse:
820
820
  r"""Get metadata of an existing collection.
821
821
 
822
822
  :param project_name: Project name.
@@ -886,7 +886,7 @@ class Collections(BaseSDK):
886
886
 
887
887
  response_data: Any = None
888
888
  if utils.match_response(http_res, "200", "application/json"):
889
- return utils.unmarshal_json(http_res.text, models.CollectionResponse)
889
+ return utils.unmarshal_json(http_res.text, models.GetCollectionResponse)
890
890
  if utils.match_response(http_res, "401", "application/json"):
891
891
  response_data = utils.unmarshal_json(
892
892
  http_res.text, errors.UnauthenticatedErrorData
@@ -936,7 +936,7 @@ class Collections(BaseSDK):
936
936
  server_url: Optional[str] = None,
937
937
  timeout_ms: Optional[int] = None,
938
938
  http_headers: Optional[Mapping[str, str]] = None,
939
- ) -> models.CollectionResponse:
939
+ ) -> models.GetCollectionResponse:
940
940
  r"""Get metadata of an existing collection.
941
941
 
942
942
  :param project_name: Project name.
@@ -1006,7 +1006,7 @@ class Collections(BaseSDK):
1006
1006
 
1007
1007
  response_data: Any = None
1008
1008
  if utils.match_response(http_res, "200", "application/json"):
1009
- return utils.unmarshal_json(http_res.text, models.CollectionResponse)
1009
+ return utils.unmarshal_json(http_res.text, models.GetCollectionResponse)
1010
1010
  if utils.match_response(http_res, "401", "application/json"):
1011
1011
  response_data = utils.unmarshal_json(
1012
1012
  http_res.text, errors.UnauthenticatedErrorData
@@ -1060,7 +1060,7 @@ class Collections(BaseSDK):
1060
1060
  server_url: Optional[str] = None,
1061
1061
  timeout_ms: Optional[int] = None,
1062
1062
  http_headers: Optional[Mapping[str, str]] = None,
1063
- ) -> models.CollectionResponse:
1063
+ ) -> models.UpdateCollectionResponse:
1064
1064
  r"""Configure a collection.
1065
1065
 
1066
1066
  :param project_name: Project name.
@@ -1143,7 +1143,7 @@ class Collections(BaseSDK):
1143
1143
 
1144
1144
  response_data: Any = None
1145
1145
  if utils.match_response(http_res, "200", "application/json"):
1146
- return utils.unmarshal_json(http_res.text, models.CollectionResponse)
1146
+ return utils.unmarshal_json(http_res.text, models.UpdateCollectionResponse)
1147
1147
  if utils.match_response(http_res, "400", "application/json"):
1148
1148
  response_data = utils.unmarshal_json(
1149
1149
  http_res.text, errors.BadRequestErrorData
@@ -1202,7 +1202,7 @@ class Collections(BaseSDK):
1202
1202
  server_url: Optional[str] = None,
1203
1203
  timeout_ms: Optional[int] = None,
1204
1204
  http_headers: Optional[Mapping[str, str]] = None,
1205
- ) -> models.CollectionResponse:
1205
+ ) -> models.UpdateCollectionResponse:
1206
1206
  r"""Configure a collection.
1207
1207
 
1208
1208
  :param project_name: Project name.
@@ -1285,7 +1285,7 @@ class Collections(BaseSDK):
1285
1285
 
1286
1286
  response_data: Any = None
1287
1287
  if utils.match_response(http_res, "200", "application/json"):
1288
- return utils.unmarshal_json(http_res.text, models.CollectionResponse)
1288
+ return utils.unmarshal_json(http_res.text, models.UpdateCollectionResponse)
1289
1289
  if utils.match_response(http_res, "400", "application/json"):
1290
1290
  response_data = utils.unmarshal_json(
1291
1291
  http_res.text, errors.BadRequestErrorData
@@ -19,7 +19,7 @@ class Docs(BaseSDK):
19
19
  server_url: Optional[str] = None,
20
20
  timeout_ms: Optional[int] = None,
21
21
  http_headers: Optional[Mapping[str, str]] = None,
22
- ) -> models.UpsertDocsResponse:
22
+ ) -> models.MessageResponse:
23
23
  r"""Upsert documents into a collection. Note that the maximum supported payload size is 6MB.
24
24
 
25
25
  :param project_name: Project name.
@@ -96,7 +96,7 @@ class Docs(BaseSDK):
96
96
 
97
97
  response_data: Any = None
98
98
  if utils.match_response(http_res, "202", "application/json"):
99
- return utils.unmarshal_json(http_res.text, models.UpsertDocsResponse)
99
+ return utils.unmarshal_json(http_res.text, models.MessageResponse)
100
100
  if utils.match_response(http_res, "400", "application/json"):
101
101
  response_data = utils.unmarshal_json(
102
102
  http_res.text, errors.BadRequestErrorData
@@ -152,7 +152,7 @@ class Docs(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
- ) -> models.UpsertDocsResponse:
155
+ ) -> models.MessageResponse:
156
156
  r"""Upsert documents into a collection. Note that the maximum supported payload size is 6MB.
157
157
 
158
158
  :param project_name: Project name.
@@ -229,7 +229,7 @@ class Docs(BaseSDK):
229
229
 
230
230
  response_data: Any = None
231
231
  if utils.match_response(http_res, "202", "application/json"):
232
- return utils.unmarshal_json(http_res.text, models.UpsertDocsResponse)
232
+ return utils.unmarshal_json(http_res.text, models.MessageResponse)
233
233
  if utils.match_response(http_res, "400", "application/json"):
234
234
  response_data = utils.unmarshal_json(
235
235
  http_res.text, errors.BadRequestErrorData
@@ -525,7 +525,7 @@ class Docs(BaseSDK):
525
525
  server_url: Optional[str] = None,
526
526
  timeout_ms: Optional[int] = None,
527
527
  http_headers: Optional[Mapping[str, str]] = None,
528
- ) -> models.BulkUpsertDocsResponse:
528
+ ) -> models.MessageResponse:
529
529
  r"""Bulk upsert documents into a collection. Note that the maximum supported object size is 200MB.
530
530
 
531
531
  :param project_name: Project name.
@@ -606,7 +606,7 @@ class Docs(BaseSDK):
606
606
 
607
607
  response_data: Any = None
608
608
  if utils.match_response(http_res, "202", "application/json"):
609
- return utils.unmarshal_json(http_res.text, models.BulkUpsertDocsResponse)
609
+ return utils.unmarshal_json(http_res.text, models.MessageResponse)
610
610
  if utils.match_response(http_res, "400", "application/json"):
611
611
  response_data = utils.unmarshal_json(
612
612
  http_res.text, errors.BadRequestErrorData
@@ -662,7 +662,7 @@ class Docs(BaseSDK):
662
662
  server_url: Optional[str] = None,
663
663
  timeout_ms: Optional[int] = None,
664
664
  http_headers: Optional[Mapping[str, str]] = None,
665
- ) -> models.BulkUpsertDocsResponse:
665
+ ) -> models.MessageResponse:
666
666
  r"""Bulk upsert documents into a collection. Note that the maximum supported object size is 200MB.
667
667
 
668
668
  :param project_name: Project name.
@@ -743,7 +743,7 @@ class Docs(BaseSDK):
743
743
 
744
744
  response_data: Any = None
745
745
  if utils.match_response(http_res, "202", "application/json"):
746
- return utils.unmarshal_json(http_res.text, models.BulkUpsertDocsResponse)
746
+ return utils.unmarshal_json(http_res.text, models.MessageResponse)
747
747
  if utils.match_response(http_res, "400", "application/json"):
748
748
  response_data = utils.unmarshal_json(
749
749
  http_res.text, errors.BadRequestErrorData
@@ -799,7 +799,7 @@ class Docs(BaseSDK):
799
799
  server_url: Optional[str] = None,
800
800
  timeout_ms: Optional[int] = None,
801
801
  http_headers: Optional[Mapping[str, str]] = None,
802
- ) -> models.UpdateDocsResponse:
802
+ ) -> models.MessageResponse:
803
803
  r"""Update documents in a collection. Note that the maximum supported payload size is 6MB.
804
804
 
805
805
  :param project_name: Project name.
@@ -876,7 +876,7 @@ class Docs(BaseSDK):
876
876
 
877
877
  response_data: Any = None
878
878
  if utils.match_response(http_res, "202", "application/json"):
879
- return utils.unmarshal_json(http_res.text, models.UpdateDocsResponse)
879
+ return utils.unmarshal_json(http_res.text, models.MessageResponse)
880
880
  if utils.match_response(http_res, "400", "application/json"):
881
881
  response_data = utils.unmarshal_json(
882
882
  http_res.text, errors.BadRequestErrorData
@@ -932,7 +932,7 @@ class Docs(BaseSDK):
932
932
  server_url: Optional[str] = None,
933
933
  timeout_ms: Optional[int] = None,
934
934
  http_headers: Optional[Mapping[str, str]] = None,
935
- ) -> models.UpdateDocsResponse:
935
+ ) -> models.MessageResponse:
936
936
  r"""Update documents in a collection. Note that the maximum supported payload size is 6MB.
937
937
 
938
938
  :param project_name: Project name.
@@ -1009,7 +1009,7 @@ class Docs(BaseSDK):
1009
1009
 
1010
1010
  response_data: Any = None
1011
1011
  if utils.match_response(http_res, "202", "application/json"):
1012
- return utils.unmarshal_json(http_res.text, models.UpdateDocsResponse)
1012
+ return utils.unmarshal_json(http_res.text, models.MessageResponse)
1013
1013
  if utils.match_response(http_res, "400", "application/json"):
1014
1014
  response_data = utils.unmarshal_json(
1015
1015
  http_res.text, errors.BadRequestErrorData
@@ -1060,19 +1060,19 @@ class Docs(BaseSDK):
1060
1060
  *,
1061
1061
  project_name: str,
1062
1062
  collection_name: str,
1063
- request_body: Union[
1064
- models.DeleteDocsRequestBody, models.DeleteDocsRequestBodyTypedDict
1065
- ],
1063
+ ids: Optional[List[str]] = None,
1064
+ filter_: Optional[Union[models.Filter, models.FilterTypedDict]] = None,
1066
1065
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1067
1066
  server_url: Optional[str] = None,
1068
1067
  timeout_ms: Optional[int] = None,
1069
1068
  http_headers: Optional[Mapping[str, str]] = None,
1070
- ) -> models.DeleteDocsResponse:
1069
+ ) -> models.MessageResponse:
1071
1070
  r"""Delete documents by document IDs or query filter from a collection.
1072
1071
 
1073
1072
  :param project_name: Project name.
1074
1073
  :param collection_name: Collection name.
1075
- :param request_body:
1074
+ :param ids: A list of document IDs.
1075
+ :param filter_: Query filter.
1076
1076
  :param retries: Override the default retry configuration for this method
1077
1077
  :param server_url: Override the default server URL for this method
1078
1078
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1091,8 +1091,9 @@ class Docs(BaseSDK):
1091
1091
  request = models.DeleteDocsRequest(
1092
1092
  project_name=project_name,
1093
1093
  collection_name=collection_name,
1094
- request_body=utils.get_pydantic_model(
1095
- request_body, models.DeleteDocsRequestBody
1094
+ request_body=models.DeleteDocsRequestBody(
1095
+ ids=ids,
1096
+ filter_=utils.get_pydantic_model(filter_, Optional[models.Filter]),
1096
1097
  ),
1097
1098
  )
1098
1099
 
@@ -1144,7 +1145,7 @@ class Docs(BaseSDK):
1144
1145
 
1145
1146
  response_data: Any = None
1146
1147
  if utils.match_response(http_res, "202", "application/json"):
1147
- return utils.unmarshal_json(http_res.text, models.DeleteDocsResponse)
1148
+ return utils.unmarshal_json(http_res.text, models.MessageResponse)
1148
1149
  if utils.match_response(http_res, "400", "application/json"):
1149
1150
  response_data = utils.unmarshal_json(
1150
1151
  http_res.text, errors.BadRequestErrorData
@@ -1195,19 +1196,19 @@ class Docs(BaseSDK):
1195
1196
  *,
1196
1197
  project_name: str,
1197
1198
  collection_name: str,
1198
- request_body: Union[
1199
- models.DeleteDocsRequestBody, models.DeleteDocsRequestBodyTypedDict
1200
- ],
1199
+ ids: Optional[List[str]] = None,
1200
+ filter_: Optional[Union[models.Filter, models.FilterTypedDict]] = None,
1201
1201
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1202
1202
  server_url: Optional[str] = None,
1203
1203
  timeout_ms: Optional[int] = None,
1204
1204
  http_headers: Optional[Mapping[str, str]] = None,
1205
- ) -> models.DeleteDocsResponse:
1205
+ ) -> models.MessageResponse:
1206
1206
  r"""Delete documents by document IDs or query filter from a collection.
1207
1207
 
1208
1208
  :param project_name: Project name.
1209
1209
  :param collection_name: Collection name.
1210
- :param request_body:
1210
+ :param ids: A list of document IDs.
1211
+ :param filter_: Query filter.
1211
1212
  :param retries: Override the default retry configuration for this method
1212
1213
  :param server_url: Override the default server URL for this method
1213
1214
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1226,8 +1227,9 @@ class Docs(BaseSDK):
1226
1227
  request = models.DeleteDocsRequest(
1227
1228
  project_name=project_name,
1228
1229
  collection_name=collection_name,
1229
- request_body=utils.get_pydantic_model(
1230
- request_body, models.DeleteDocsRequestBody
1230
+ request_body=models.DeleteDocsRequestBody(
1231
+ ids=ids,
1232
+ filter_=utils.get_pydantic_model(filter_, Optional[models.Filter]),
1231
1233
  ),
1232
1234
  )
1233
1235
 
@@ -1279,7 +1281,7 @@ class Docs(BaseSDK):
1279
1281
 
1280
1282
  response_data: Any = None
1281
1283
  if utils.match_response(http_res, "202", "application/json"):
1282
- return utils.unmarshal_json(http_res.text, models.DeleteDocsResponse)
1284
+ return utils.unmarshal_json(http_res.text, models.MessageResponse)
1283
1285
  if utils.match_response(http_res, "400", "application/json"):
1284
1286
  response_data = utils.unmarshal_json(
1285
1287
  http_res.text, errors.BadRequestErrorData
@@ -9,8 +9,6 @@ if TYPE_CHECKING:
9
9
  BulkUpsertDocsRequestBody,
10
10
  BulkUpsertDocsRequestBodyTypedDict,
11
11
  BulkUpsertDocsRequestTypedDict,
12
- BulkUpsertDocsResponse,
13
- BulkUpsertDocsResponseTypedDict,
14
12
  )
15
13
  from .collectionresponse import CollectionResponse, CollectionResponseTypedDict
16
14
  from .createcollectionop import (
@@ -18,20 +16,20 @@ if TYPE_CHECKING:
18
16
  CreateCollectionRequestBody,
19
17
  CreateCollectionRequestBodyTypedDict,
20
18
  CreateCollectionRequestTypedDict,
19
+ CreateCollectionResponse,
20
+ CreateCollectionResponseTypedDict,
21
21
  )
22
22
  from .deletecollectionop import (
23
23
  DeleteCollectionRequest,
24
24
  DeleteCollectionRequestTypedDict,
25
- DeleteCollectionResponse,
26
- DeleteCollectionResponseTypedDict,
27
25
  )
28
26
  from .deletedocsop import (
29
27
  DeleteDocsRequest,
30
28
  DeleteDocsRequestBody,
31
29
  DeleteDocsRequestBodyTypedDict,
32
30
  DeleteDocsRequestTypedDict,
33
- DeleteDocsResponse,
34
- DeleteDocsResponseTypedDict,
31
+ Filter,
32
+ FilterTypedDict,
35
33
  )
36
34
  from .fetchdocsop import (
37
35
  FetchDocsDoc,
@@ -45,7 +43,6 @@ if TYPE_CHECKING:
45
43
  FetchDocsResponse,
46
44
  FetchDocsResponseTypedDict,
47
45
  )
48
- from .filter_ import Filter, FilterFilter, FilterFilterTypedDict, FilterTypedDict
49
46
  from .getbulkupsertdocsop import (
50
47
  GetBulkUpsertDocsRequest,
51
48
  GetBulkUpsertDocsRequestTypedDict,
@@ -54,8 +51,12 @@ if TYPE_CHECKING:
54
51
  GetBulkUpsertDocsType,
55
52
  HTTPMethod,
56
53
  )
57
- from .getcollectionop import GetCollectionRequest, GetCollectionRequestTypedDict
58
- from .ids import IDs, IDsTypedDict
54
+ from .getcollectionop import (
55
+ GetCollectionRequest,
56
+ GetCollectionRequestTypedDict,
57
+ GetCollectionResponse,
58
+ GetCollectionResponseTypedDict,
59
+ )
59
60
  from .indexconfigs_union import (
60
61
  Analyzer,
61
62
  IndexConfigs,
@@ -77,6 +78,7 @@ if TYPE_CHECKING:
77
78
  ListCollectionsResponse,
78
79
  ListCollectionsResponseTypedDict,
79
80
  )
81
+ from .messageresponse import MessageResponse, MessageResponseTypedDict
80
82
  from .querycollectionop import (
81
83
  Query,
82
84
  QueryCollectionDoc,
@@ -100,6 +102,8 @@ if TYPE_CHECKING:
100
102
  UpdateCollectionRequestBody,
101
103
  UpdateCollectionRequestBodyTypedDict,
102
104
  UpdateCollectionRequestTypedDict,
105
+ UpdateCollectionResponse,
106
+ UpdateCollectionResponseTypedDict,
103
107
  )
104
108
  from .updatedocsop import (
105
109
  UpdateDocsDoc,
@@ -108,8 +112,6 @@ if TYPE_CHECKING:
108
112
  UpdateDocsRequestBody,
109
113
  UpdateDocsRequestBodyTypedDict,
110
114
  UpdateDocsRequestTypedDict,
111
- UpdateDocsResponse,
112
- UpdateDocsResponseTypedDict,
113
115
  )
114
116
  from .upsertdocsop import (
115
117
  UpsertDocsDoc,
@@ -118,8 +120,6 @@ if TYPE_CHECKING:
118
120
  UpsertDocsRequestBody,
119
121
  UpsertDocsRequestBodyTypedDict,
120
122
  UpsertDocsRequestTypedDict,
121
- UpsertDocsResponse,
122
- UpsertDocsResponseTypedDict,
123
123
  )
124
124
 
125
125
  __all__ = [
@@ -128,24 +128,20 @@ __all__ = [
128
128
  "BulkUpsertDocsRequestBody",
129
129
  "BulkUpsertDocsRequestBodyTypedDict",
130
130
  "BulkUpsertDocsRequestTypedDict",
131
- "BulkUpsertDocsResponse",
132
- "BulkUpsertDocsResponseTypedDict",
133
131
  "CollectionResponse",
134
132
  "CollectionResponseTypedDict",
135
133
  "CreateCollectionRequest",
136
134
  "CreateCollectionRequestBody",
137
135
  "CreateCollectionRequestBodyTypedDict",
138
136
  "CreateCollectionRequestTypedDict",
137
+ "CreateCollectionResponse",
138
+ "CreateCollectionResponseTypedDict",
139
139
  "DeleteCollectionRequest",
140
140
  "DeleteCollectionRequestTypedDict",
141
- "DeleteCollectionResponse",
142
- "DeleteCollectionResponseTypedDict",
143
141
  "DeleteDocsRequest",
144
142
  "DeleteDocsRequestBody",
145
143
  "DeleteDocsRequestBodyTypedDict",
146
144
  "DeleteDocsRequestTypedDict",
147
- "DeleteDocsResponse",
148
- "DeleteDocsResponseTypedDict",
149
145
  "FetchDocsDoc",
150
146
  "FetchDocsDocDoc",
151
147
  "FetchDocsDocDocTypedDict",
@@ -157,8 +153,6 @@ __all__ = [
157
153
  "FetchDocsResponse",
158
154
  "FetchDocsResponseTypedDict",
159
155
  "Filter",
160
- "FilterFilter",
161
- "FilterFilterTypedDict",
162
156
  "FilterTypedDict",
163
157
  "GetBulkUpsertDocsRequest",
164
158
  "GetBulkUpsertDocsRequestTypedDict",
@@ -167,9 +161,9 @@ __all__ = [
167
161
  "GetBulkUpsertDocsType",
168
162
  "GetCollectionRequest",
169
163
  "GetCollectionRequestTypedDict",
164
+ "GetCollectionResponse",
165
+ "GetCollectionResponseTypedDict",
170
166
  "HTTPMethod",
171
- "IDs",
172
- "IDsTypedDict",
173
167
  "IndexConfigs",
174
168
  "IndexConfigsText",
175
169
  "IndexConfigsTextTypedDict",
@@ -182,6 +176,8 @@ __all__ = [
182
176
  "ListCollectionsRequestTypedDict",
183
177
  "ListCollectionsResponse",
184
178
  "ListCollectionsResponseTypedDict",
179
+ "MessageResponse",
180
+ "MessageResponseTypedDict",
185
181
  "Query",
186
182
  "QueryCollectionDoc",
187
183
  "QueryCollectionDocDoc",
@@ -207,22 +203,20 @@ __all__ = [
207
203
  "UpdateCollectionRequestBody",
208
204
  "UpdateCollectionRequestBodyTypedDict",
209
205
  "UpdateCollectionRequestTypedDict",
206
+ "UpdateCollectionResponse",
207
+ "UpdateCollectionResponseTypedDict",
210
208
  "UpdateDocsDoc",
211
209
  "UpdateDocsDocTypedDict",
212
210
  "UpdateDocsRequest",
213
211
  "UpdateDocsRequestBody",
214
212
  "UpdateDocsRequestBodyTypedDict",
215
213
  "UpdateDocsRequestTypedDict",
216
- "UpdateDocsResponse",
217
- "UpdateDocsResponseTypedDict",
218
214
  "UpsertDocsDoc",
219
215
  "UpsertDocsDocTypedDict",
220
216
  "UpsertDocsRequest",
221
217
  "UpsertDocsRequestBody",
222
218
  "UpsertDocsRequestBodyTypedDict",
223
219
  "UpsertDocsRequestTypedDict",
224
- "UpsertDocsResponse",
225
- "UpsertDocsResponseTypedDict",
226
220
  ]
227
221
 
228
222
  _dynamic_imports: dict[str, str] = {
@@ -230,24 +224,22 @@ _dynamic_imports: dict[str, str] = {
230
224
  "BulkUpsertDocsRequestBody": ".bulkupsertdocsop",
231
225
  "BulkUpsertDocsRequestBodyTypedDict": ".bulkupsertdocsop",
232
226
  "BulkUpsertDocsRequestTypedDict": ".bulkupsertdocsop",
233
- "BulkUpsertDocsResponse": ".bulkupsertdocsop",
234
- "BulkUpsertDocsResponseTypedDict": ".bulkupsertdocsop",
235
227
  "CollectionResponse": ".collectionresponse",
236
228
  "CollectionResponseTypedDict": ".collectionresponse",
237
229
  "CreateCollectionRequest": ".createcollectionop",
238
230
  "CreateCollectionRequestBody": ".createcollectionop",
239
231
  "CreateCollectionRequestBodyTypedDict": ".createcollectionop",
240
232
  "CreateCollectionRequestTypedDict": ".createcollectionop",
233
+ "CreateCollectionResponse": ".createcollectionop",
234
+ "CreateCollectionResponseTypedDict": ".createcollectionop",
241
235
  "DeleteCollectionRequest": ".deletecollectionop",
242
236
  "DeleteCollectionRequestTypedDict": ".deletecollectionop",
243
- "DeleteCollectionResponse": ".deletecollectionop",
244
- "DeleteCollectionResponseTypedDict": ".deletecollectionop",
245
237
  "DeleteDocsRequest": ".deletedocsop",
246
238
  "DeleteDocsRequestBody": ".deletedocsop",
247
239
  "DeleteDocsRequestBodyTypedDict": ".deletedocsop",
248
240
  "DeleteDocsRequestTypedDict": ".deletedocsop",
249
- "DeleteDocsResponse": ".deletedocsop",
250
- "DeleteDocsResponseTypedDict": ".deletedocsop",
241
+ "Filter": ".deletedocsop",
242
+ "FilterTypedDict": ".deletedocsop",
251
243
  "FetchDocsDoc": ".fetchdocsop",
252
244
  "FetchDocsDocDoc": ".fetchdocsop",
253
245
  "FetchDocsDocDocTypedDict": ".fetchdocsop",
@@ -258,10 +250,6 @@ _dynamic_imports: dict[str, str] = {
258
250
  "FetchDocsRequestTypedDict": ".fetchdocsop",
259
251
  "FetchDocsResponse": ".fetchdocsop",
260
252
  "FetchDocsResponseTypedDict": ".fetchdocsop",
261
- "Filter": ".filter_",
262
- "FilterFilter": ".filter_",
263
- "FilterFilterTypedDict": ".filter_",
264
- "FilterTypedDict": ".filter_",
265
253
  "GetBulkUpsertDocsRequest": ".getbulkupsertdocsop",
266
254
  "GetBulkUpsertDocsRequestTypedDict": ".getbulkupsertdocsop",
267
255
  "GetBulkUpsertDocsResponse": ".getbulkupsertdocsop",
@@ -270,8 +258,8 @@ _dynamic_imports: dict[str, str] = {
270
258
  "HTTPMethod": ".getbulkupsertdocsop",
271
259
  "GetCollectionRequest": ".getcollectionop",
272
260
  "GetCollectionRequestTypedDict": ".getcollectionop",
273
- "IDs": ".ids",
274
- "IDsTypedDict": ".ids",
261
+ "GetCollectionResponse": ".getcollectionop",
262
+ "GetCollectionResponseTypedDict": ".getcollectionop",
275
263
  "Analyzer": ".indexconfigs_union",
276
264
  "IndexConfigs": ".indexconfigs_union",
277
265
  "IndexConfigsText": ".indexconfigs_union",
@@ -289,6 +277,8 @@ _dynamic_imports: dict[str, str] = {
289
277
  "ListCollectionsRequestTypedDict": ".listcollectionsop",
290
278
  "ListCollectionsResponse": ".listcollectionsop",
291
279
  "ListCollectionsResponseTypedDict": ".listcollectionsop",
280
+ "MessageResponse": ".messageresponse",
281
+ "MessageResponseTypedDict": ".messageresponse",
292
282
  "Query": ".querycollectionop",
293
283
  "QueryCollectionDoc": ".querycollectionop",
294
284
  "QueryCollectionDocDoc": ".querycollectionop",
@@ -310,22 +300,20 @@ _dynamic_imports: dict[str, str] = {
310
300
  "UpdateCollectionRequestBody": ".updatecollectionop",
311
301
  "UpdateCollectionRequestBodyTypedDict": ".updatecollectionop",
312
302
  "UpdateCollectionRequestTypedDict": ".updatecollectionop",
303
+ "UpdateCollectionResponse": ".updatecollectionop",
304
+ "UpdateCollectionResponseTypedDict": ".updatecollectionop",
313
305
  "UpdateDocsDoc": ".updatedocsop",
314
306
  "UpdateDocsDocTypedDict": ".updatedocsop",
315
307
  "UpdateDocsRequest": ".updatedocsop",
316
308
  "UpdateDocsRequestBody": ".updatedocsop",
317
309
  "UpdateDocsRequestBodyTypedDict": ".updatedocsop",
318
310
  "UpdateDocsRequestTypedDict": ".updatedocsop",
319
- "UpdateDocsResponse": ".updatedocsop",
320
- "UpdateDocsResponseTypedDict": ".updatedocsop",
321
311
  "UpsertDocsDoc": ".upsertdocsop",
322
312
  "UpsertDocsDocTypedDict": ".upsertdocsop",
323
313
  "UpsertDocsRequest": ".upsertdocsop",
324
314
  "UpsertDocsRequestBody": ".upsertdocsop",
325
315
  "UpsertDocsRequestBodyTypedDict": ".upsertdocsop",
326
316
  "UpsertDocsRequestTypedDict": ".upsertdocsop",
327
- "UpsertDocsResponse": ".upsertdocsop",
328
- "UpsertDocsResponseTypedDict": ".upsertdocsop",
329
317
  }
330
318
 
331
319
 
@@ -4,8 +4,7 @@ from __future__ import annotations
4
4
  from lambdadb.types import BaseModel
5
5
  from lambdadb.utils import FieldMetadata, PathParamMetadata, RequestMetadata
6
6
  import pydantic
7
- from typing import Optional
8
- from typing_extensions import Annotated, NotRequired, TypedDict
7
+ from typing_extensions import Annotated, TypedDict
9
8
 
10
9
 
11
10
  class BulkUpsertDocsRequestBodyTypedDict(TypedDict):
@@ -45,15 +44,3 @@ class BulkUpsertDocsRequest(BaseModel):
45
44
  BulkUpsertDocsRequestBody,
46
45
  FieldMetadata(request=RequestMetadata(media_type="application/json")),
47
46
  ]
48
-
49
-
50
- class BulkUpsertDocsResponseTypedDict(TypedDict):
51
- r"""Bulk upsert request accepted."""
52
-
53
- message: NotRequired[str]
54
-
55
-
56
- class BulkUpsertDocsResponse(BaseModel):
57
- r"""Bulk upsert request accepted."""
58
-
59
- message: Optional[str] = None