lambdadb 0.3.3__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.
- {lambdadb-0.3.3 → lambdadb-0.3.4}/PKG-INFO +1 -1
- {lambdadb-0.3.3 → lambdadb-0.3.4}/pyproject.toml +1 -1
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/_version.py +3 -3
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/collections.py +16 -16
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/docs.py +16 -16
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/models/__init__.py +27 -31
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/models/bulkupsertdocsop.py +1 -14
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/models/collectionresponse.py +14 -18
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/models/createcollectionop.py +13 -0
- lambdadb-0.3.3/src/lambdadb/models/getcollectionop.py → lambdadb-0.3.4/src/lambdadb/models/deletecollectionop.py +2 -2
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/models/deletedocsop.py +0 -12
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/models/fetchdocsop.py +6 -6
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/models/getbulkupsertdocsop.py +7 -7
- lambdadb-0.3.3/src/lambdadb/models/deletecollectionop.py → lambdadb-0.3.4/src/lambdadb/models/getcollectionop.py +10 -10
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/models/listcollectionsop.py +4 -4
- lambdadb-0.3.4/src/lambdadb/models/messageresponse.py +13 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/models/querycollectionop.py +8 -8
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/models/updatecollectionop.py +13 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/models/updatedocsop.py +2 -14
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/models/upsertdocsop.py +2 -14
- {lambdadb-0.3.3 → lambdadb-0.3.4}/LICENSE +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/README-PYPI.md +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/py.typed +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/__init__.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/_hooks/__init__.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/_hooks/registration.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/_hooks/sdkhooks.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/_hooks/types.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/basesdk.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/errors/__init__.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/errors/apierror.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/errors/badrequest_error.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/errors/internalservererror.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/errors/resourcealreadyexists_error.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/errors/resourcenotfound_error.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/errors/toomanyrequests_error.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/errors/unauthenticated_error.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/httpclient.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/models/indexconfigs_union.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/models/security.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/models/status.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/py.typed +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/sdk.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/sdkconfiguration.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/types/__init__.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/types/basemodel.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/utils/__init__.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/utils/annotations.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/utils/datetimes.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/utils/enums.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/utils/eventstreaming.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/utils/forms.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/utils/headers.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/utils/logger.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/utils/metadata.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/utils/queryparams.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/utils/requestbodies.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/utils/retries.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/utils/security.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/utils/serializers.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/utils/url.py +0 -0
- {lambdadb-0.3.3 → lambdadb-0.3.4}/src/lambdadb/utils/values.py +0 -0
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "lambdadb"
|
|
6
|
-
__version__: str = "0.3.
|
|
7
|
-
__openapi_doc_version__: str = "1.1.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
@@ -1066,7 +1066,7 @@ class Docs(BaseSDK):
|
|
|
1066
1066
|
server_url: Optional[str] = None,
|
|
1067
1067
|
timeout_ms: Optional[int] = None,
|
|
1068
1068
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1069
|
-
) -> models.
|
|
1069
|
+
) -> models.MessageResponse:
|
|
1070
1070
|
r"""Delete documents by document IDs or query filter from a collection.
|
|
1071
1071
|
|
|
1072
1072
|
:param project_name: Project name.
|
|
@@ -1145,7 +1145,7 @@ class Docs(BaseSDK):
|
|
|
1145
1145
|
|
|
1146
1146
|
response_data: Any = None
|
|
1147
1147
|
if utils.match_response(http_res, "202", "application/json"):
|
|
1148
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
1148
|
+
return utils.unmarshal_json(http_res.text, models.MessageResponse)
|
|
1149
1149
|
if utils.match_response(http_res, "400", "application/json"):
|
|
1150
1150
|
response_data = utils.unmarshal_json(
|
|
1151
1151
|
http_res.text, errors.BadRequestErrorData
|
|
@@ -1202,7 +1202,7 @@ class Docs(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.
|
|
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.
|
|
@@ -1281,7 +1281,7 @@ class Docs(BaseSDK):
|
|
|
1281
1281
|
|
|
1282
1282
|
response_data: Any = None
|
|
1283
1283
|
if utils.match_response(http_res, "202", "application/json"):
|
|
1284
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
1284
|
+
return utils.unmarshal_json(http_res.text, models.MessageResponse)
|
|
1285
1285
|
if utils.match_response(http_res, "400", "application/json"):
|
|
1286
1286
|
response_data = utils.unmarshal_json(
|
|
1287
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,18 @@ 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,
|
|
35
31
|
Filter,
|
|
36
32
|
FilterTypedDict,
|
|
37
33
|
)
|
|
@@ -55,7 +51,12 @@ if TYPE_CHECKING:
|
|
|
55
51
|
GetBulkUpsertDocsType,
|
|
56
52
|
HTTPMethod,
|
|
57
53
|
)
|
|
58
|
-
from .getcollectionop import
|
|
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",
|
|
@@ -165,6 +161,8 @@ __all__ = [
|
|
|
165
161
|
"GetBulkUpsertDocsType",
|
|
166
162
|
"GetCollectionRequest",
|
|
167
163
|
"GetCollectionRequestTypedDict",
|
|
164
|
+
"GetCollectionResponse",
|
|
165
|
+
"GetCollectionResponseTypedDict",
|
|
168
166
|
"HTTPMethod",
|
|
169
167
|
"IndexConfigs",
|
|
170
168
|
"IndexConfigsText",
|
|
@@ -178,6 +176,8 @@ __all__ = [
|
|
|
178
176
|
"ListCollectionsRequestTypedDict",
|
|
179
177
|
"ListCollectionsResponse",
|
|
180
178
|
"ListCollectionsResponseTypedDict",
|
|
179
|
+
"MessageResponse",
|
|
180
|
+
"MessageResponseTypedDict",
|
|
181
181
|
"Query",
|
|
182
182
|
"QueryCollectionDoc",
|
|
183
183
|
"QueryCollectionDocDoc",
|
|
@@ -203,22 +203,20 @@ __all__ = [
|
|
|
203
203
|
"UpdateCollectionRequestBody",
|
|
204
204
|
"UpdateCollectionRequestBodyTypedDict",
|
|
205
205
|
"UpdateCollectionRequestTypedDict",
|
|
206
|
+
"UpdateCollectionResponse",
|
|
207
|
+
"UpdateCollectionResponseTypedDict",
|
|
206
208
|
"UpdateDocsDoc",
|
|
207
209
|
"UpdateDocsDocTypedDict",
|
|
208
210
|
"UpdateDocsRequest",
|
|
209
211
|
"UpdateDocsRequestBody",
|
|
210
212
|
"UpdateDocsRequestBodyTypedDict",
|
|
211
213
|
"UpdateDocsRequestTypedDict",
|
|
212
|
-
"UpdateDocsResponse",
|
|
213
|
-
"UpdateDocsResponseTypedDict",
|
|
214
214
|
"UpsertDocsDoc",
|
|
215
215
|
"UpsertDocsDocTypedDict",
|
|
216
216
|
"UpsertDocsRequest",
|
|
217
217
|
"UpsertDocsRequestBody",
|
|
218
218
|
"UpsertDocsRequestBodyTypedDict",
|
|
219
219
|
"UpsertDocsRequestTypedDict",
|
|
220
|
-
"UpsertDocsResponse",
|
|
221
|
-
"UpsertDocsResponseTypedDict",
|
|
222
220
|
]
|
|
223
221
|
|
|
224
222
|
_dynamic_imports: dict[str, str] = {
|
|
@@ -226,24 +224,20 @@ _dynamic_imports: dict[str, str] = {
|
|
|
226
224
|
"BulkUpsertDocsRequestBody": ".bulkupsertdocsop",
|
|
227
225
|
"BulkUpsertDocsRequestBodyTypedDict": ".bulkupsertdocsop",
|
|
228
226
|
"BulkUpsertDocsRequestTypedDict": ".bulkupsertdocsop",
|
|
229
|
-
"BulkUpsertDocsResponse": ".bulkupsertdocsop",
|
|
230
|
-
"BulkUpsertDocsResponseTypedDict": ".bulkupsertdocsop",
|
|
231
227
|
"CollectionResponse": ".collectionresponse",
|
|
232
228
|
"CollectionResponseTypedDict": ".collectionresponse",
|
|
233
229
|
"CreateCollectionRequest": ".createcollectionop",
|
|
234
230
|
"CreateCollectionRequestBody": ".createcollectionop",
|
|
235
231
|
"CreateCollectionRequestBodyTypedDict": ".createcollectionop",
|
|
236
232
|
"CreateCollectionRequestTypedDict": ".createcollectionop",
|
|
233
|
+
"CreateCollectionResponse": ".createcollectionop",
|
|
234
|
+
"CreateCollectionResponseTypedDict": ".createcollectionop",
|
|
237
235
|
"DeleteCollectionRequest": ".deletecollectionop",
|
|
238
236
|
"DeleteCollectionRequestTypedDict": ".deletecollectionop",
|
|
239
|
-
"DeleteCollectionResponse": ".deletecollectionop",
|
|
240
|
-
"DeleteCollectionResponseTypedDict": ".deletecollectionop",
|
|
241
237
|
"DeleteDocsRequest": ".deletedocsop",
|
|
242
238
|
"DeleteDocsRequestBody": ".deletedocsop",
|
|
243
239
|
"DeleteDocsRequestBodyTypedDict": ".deletedocsop",
|
|
244
240
|
"DeleteDocsRequestTypedDict": ".deletedocsop",
|
|
245
|
-
"DeleteDocsResponse": ".deletedocsop",
|
|
246
|
-
"DeleteDocsResponseTypedDict": ".deletedocsop",
|
|
247
241
|
"Filter": ".deletedocsop",
|
|
248
242
|
"FilterTypedDict": ".deletedocsop",
|
|
249
243
|
"FetchDocsDoc": ".fetchdocsop",
|
|
@@ -264,6 +258,8 @@ _dynamic_imports: dict[str, str] = {
|
|
|
264
258
|
"HTTPMethod": ".getbulkupsertdocsop",
|
|
265
259
|
"GetCollectionRequest": ".getcollectionop",
|
|
266
260
|
"GetCollectionRequestTypedDict": ".getcollectionop",
|
|
261
|
+
"GetCollectionResponse": ".getcollectionop",
|
|
262
|
+
"GetCollectionResponseTypedDict": ".getcollectionop",
|
|
267
263
|
"Analyzer": ".indexconfigs_union",
|
|
268
264
|
"IndexConfigs": ".indexconfigs_union",
|
|
269
265
|
"IndexConfigsText": ".indexconfigs_union",
|
|
@@ -281,6 +277,8 @@ _dynamic_imports: dict[str, str] = {
|
|
|
281
277
|
"ListCollectionsRequestTypedDict": ".listcollectionsop",
|
|
282
278
|
"ListCollectionsResponse": ".listcollectionsop",
|
|
283
279
|
"ListCollectionsResponseTypedDict": ".listcollectionsop",
|
|
280
|
+
"MessageResponse": ".messageresponse",
|
|
281
|
+
"MessageResponseTypedDict": ".messageresponse",
|
|
284
282
|
"Query": ".querycollectionop",
|
|
285
283
|
"QueryCollectionDoc": ".querycollectionop",
|
|
286
284
|
"QueryCollectionDocDoc": ".querycollectionop",
|
|
@@ -302,22 +300,20 @@ _dynamic_imports: dict[str, str] = {
|
|
|
302
300
|
"UpdateCollectionRequestBody": ".updatecollectionop",
|
|
303
301
|
"UpdateCollectionRequestBodyTypedDict": ".updatecollectionop",
|
|
304
302
|
"UpdateCollectionRequestTypedDict": ".updatecollectionop",
|
|
303
|
+
"UpdateCollectionResponse": ".updatecollectionop",
|
|
304
|
+
"UpdateCollectionResponseTypedDict": ".updatecollectionop",
|
|
305
305
|
"UpdateDocsDoc": ".updatedocsop",
|
|
306
306
|
"UpdateDocsDocTypedDict": ".updatedocsop",
|
|
307
307
|
"UpdateDocsRequest": ".updatedocsop",
|
|
308
308
|
"UpdateDocsRequestBody": ".updatedocsop",
|
|
309
309
|
"UpdateDocsRequestBodyTypedDict": ".updatedocsop",
|
|
310
310
|
"UpdateDocsRequestTypedDict": ".updatedocsop",
|
|
311
|
-
"UpdateDocsResponse": ".updatedocsop",
|
|
312
|
-
"UpdateDocsResponseTypedDict": ".updatedocsop",
|
|
313
311
|
"UpsertDocsDoc": ".upsertdocsop",
|
|
314
312
|
"UpsertDocsDocTypedDict": ".upsertdocsop",
|
|
315
313
|
"UpsertDocsRequest": ".upsertdocsop",
|
|
316
314
|
"UpsertDocsRequestBody": ".upsertdocsop",
|
|
317
315
|
"UpsertDocsRequestBodyTypedDict": ".upsertdocsop",
|
|
318
316
|
"UpsertDocsRequestTypedDict": ".upsertdocsop",
|
|
319
|
-
"UpsertDocsResponse": ".upsertdocsop",
|
|
320
|
-
"UpsertDocsResponseTypedDict": ".upsertdocsop",
|
|
321
317
|
}
|
|
322
318
|
|
|
323
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
|
|
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
|
|
@@ -10,39 +10,40 @@ from typing_extensions import Annotated, NotRequired, TypedDict
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class CollectionResponseTypedDict(TypedDict):
|
|
13
|
-
project_name:
|
|
13
|
+
project_name: str
|
|
14
14
|
r"""Project name."""
|
|
15
|
-
collection_name:
|
|
15
|
+
collection_name: str
|
|
16
16
|
r"""Collection name."""
|
|
17
|
-
index_configs:
|
|
18
|
-
num_docs:
|
|
17
|
+
index_configs: Dict[str, IndexConfigsUnionTypedDict]
|
|
18
|
+
num_docs: int
|
|
19
19
|
r"""Total number of documents."""
|
|
20
|
+
collection_status: Status
|
|
21
|
+
r"""Status"""
|
|
20
22
|
source_project_name: NotRequired[str]
|
|
21
23
|
r"""Source project name."""
|
|
22
24
|
source_collection_name: NotRequired[str]
|
|
23
25
|
r"""Source collection name."""
|
|
24
26
|
source_collection_version_id: NotRequired[str]
|
|
25
27
|
r"""Source collection version."""
|
|
26
|
-
collection_status: NotRequired[Status]
|
|
27
|
-
r"""Status"""
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
class CollectionResponse(BaseModel):
|
|
31
|
-
project_name: Annotated[
|
|
31
|
+
project_name: Annotated[str, pydantic.Field(alias="projectName")]
|
|
32
32
|
r"""Project name."""
|
|
33
33
|
|
|
34
|
-
collection_name: Annotated[
|
|
35
|
-
Optional[str], pydantic.Field(alias="collectionName")
|
|
36
|
-
] = None
|
|
34
|
+
collection_name: Annotated[str, pydantic.Field(alias="collectionName")]
|
|
37
35
|
r"""Collection name."""
|
|
38
36
|
|
|
39
37
|
index_configs: Annotated[
|
|
40
|
-
|
|
41
|
-
]
|
|
38
|
+
Dict[str, IndexConfigsUnion], pydantic.Field(alias="indexConfigs")
|
|
39
|
+
]
|
|
42
40
|
|
|
43
|
-
num_docs: Annotated[
|
|
41
|
+
num_docs: Annotated[int, pydantic.Field(alias="numDocs")]
|
|
44
42
|
r"""Total number of documents."""
|
|
45
43
|
|
|
44
|
+
collection_status: Annotated[Status, pydantic.Field(alias="collectionStatus")]
|
|
45
|
+
r"""Status"""
|
|
46
|
+
|
|
46
47
|
source_project_name: Annotated[
|
|
47
48
|
Optional[str], pydantic.Field(alias="sourceProjectName")
|
|
48
49
|
] = None
|
|
@@ -57,8 +58,3 @@ class CollectionResponse(BaseModel):
|
|
|
57
58
|
Optional[str], pydantic.Field(alias="sourceCollectionVersionId")
|
|
58
59
|
] = None
|
|
59
60
|
r"""Source collection version."""
|
|
60
|
-
|
|
61
|
-
collection_status: Annotated[
|
|
62
|
-
Optional[Status], pydantic.Field(alias="collectionStatus")
|
|
63
|
-
] = None
|
|
64
|
-
r"""Status"""
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
+
from .collectionresponse import CollectionResponse, CollectionResponseTypedDict
|
|
4
5
|
from .indexconfigs_union import IndexConfigsUnion, IndexConfigsUnionTypedDict
|
|
5
6
|
from lambdadb.types import BaseModel
|
|
6
7
|
from lambdadb.utils import FieldMetadata, PathParamMetadata, RequestMetadata
|
|
@@ -62,3 +63,15 @@ class CreateCollectionRequest(BaseModel):
|
|
|
62
63
|
CreateCollectionRequestBody,
|
|
63
64
|
FieldMetadata(request=RequestMetadata(media_type="application/json")),
|
|
64
65
|
]
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
class CreateCollectionResponseTypedDict(TypedDict):
|
|
69
|
+
r"""Created collection"""
|
|
70
|
+
|
|
71
|
+
collection: CollectionResponseTypedDict
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
class CreateCollectionResponse(BaseModel):
|
|
75
|
+
r"""Created collection"""
|
|
76
|
+
|
|
77
|
+
collection: CollectionResponse
|
|
@@ -7,14 +7,14 @@ import pydantic
|
|
|
7
7
|
from typing_extensions import Annotated, TypedDict
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class
|
|
10
|
+
class DeleteCollectionRequestTypedDict(TypedDict):
|
|
11
11
|
project_name: str
|
|
12
12
|
r"""Project name."""
|
|
13
13
|
collection_name: str
|
|
14
14
|
r"""Collection name."""
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
class
|
|
17
|
+
class DeleteCollectionRequest(BaseModel):
|
|
18
18
|
project_name: Annotated[
|
|
19
19
|
str,
|
|
20
20
|
pydantic.Field(alias="projectName"),
|
|
@@ -58,15 +58,3 @@ class DeleteDocsRequest(BaseModel):
|
|
|
58
58
|
DeleteDocsRequestBody,
|
|
59
59
|
FieldMetadata(request=RequestMetadata(media_type="application/json")),
|
|
60
60
|
]
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
class DeleteDocsResponseTypedDict(TypedDict):
|
|
64
|
-
r"""Delete request accepted."""
|
|
65
|
-
|
|
66
|
-
message: NotRequired[str]
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
class DeleteDocsResponse(BaseModel):
|
|
70
|
-
r"""Delete request accepted."""
|
|
71
|
-
|
|
72
|
-
message: Optional[str] = None
|
|
@@ -83,20 +83,20 @@ class FetchDocsDoc(BaseModel):
|
|
|
83
83
|
class FetchDocsResponseTypedDict(TypedDict):
|
|
84
84
|
r"""Fetched documents."""
|
|
85
85
|
|
|
86
|
-
total:
|
|
86
|
+
total: int
|
|
87
87
|
r"""Total number of documents returned."""
|
|
88
|
-
took:
|
|
88
|
+
took: int
|
|
89
89
|
r"""Elapsed time in milliseconds."""
|
|
90
|
-
docs:
|
|
90
|
+
docs: List[FetchDocsDocTypedDict]
|
|
91
91
|
|
|
92
92
|
|
|
93
93
|
class FetchDocsResponse(BaseModel):
|
|
94
94
|
r"""Fetched documents."""
|
|
95
95
|
|
|
96
|
-
total:
|
|
96
|
+
total: int
|
|
97
97
|
r"""Total number of documents returned."""
|
|
98
98
|
|
|
99
|
-
took:
|
|
99
|
+
took: int
|
|
100
100
|
r"""Elapsed time in milliseconds."""
|
|
101
101
|
|
|
102
|
-
docs:
|
|
102
|
+
docs: List[FetchDocsDoc]
|
|
@@ -47,14 +47,14 @@ class HTTPMethod(str, Enum):
|
|
|
47
47
|
class GetBulkUpsertDocsResponseTypedDict(TypedDict):
|
|
48
48
|
r"""Required info to upload documents."""
|
|
49
49
|
|
|
50
|
-
url:
|
|
50
|
+
url: str
|
|
51
51
|
r"""Presigned URL."""
|
|
52
|
+
object_key: str
|
|
53
|
+
r"""Object key that must be specified when uploading documents."""
|
|
52
54
|
type: NotRequired[GetBulkUpsertDocsType]
|
|
53
55
|
r"""Content type that must be specified when uploading documents."""
|
|
54
56
|
http_method: NotRequired[HTTPMethod]
|
|
55
57
|
r"""HTTP method that must be specified when uploading documents."""
|
|
56
|
-
object_key: NotRequired[str]
|
|
57
|
-
r"""Object key that must be specified when uploading documents."""
|
|
58
58
|
size_limit_bytes: NotRequired[int]
|
|
59
59
|
r"""Object size limit in bytes."""
|
|
60
60
|
|
|
@@ -62,9 +62,12 @@ class GetBulkUpsertDocsResponseTypedDict(TypedDict):
|
|
|
62
62
|
class GetBulkUpsertDocsResponse(BaseModel):
|
|
63
63
|
r"""Required info to upload documents."""
|
|
64
64
|
|
|
65
|
-
url:
|
|
65
|
+
url: str
|
|
66
66
|
r"""Presigned URL."""
|
|
67
67
|
|
|
68
|
+
object_key: Annotated[str, pydantic.Field(alias="objectKey")]
|
|
69
|
+
r"""Object key that must be specified when uploading documents."""
|
|
70
|
+
|
|
68
71
|
type: Optional[GetBulkUpsertDocsType] = GetBulkUpsertDocsType.APPLICATION_JSON
|
|
69
72
|
r"""Content type that must be specified when uploading documents."""
|
|
70
73
|
|
|
@@ -73,9 +76,6 @@ class GetBulkUpsertDocsResponse(BaseModel):
|
|
|
73
76
|
)
|
|
74
77
|
r"""HTTP method that must be specified when uploading documents."""
|
|
75
78
|
|
|
76
|
-
object_key: Annotated[Optional[str], pydantic.Field(alias="objectKey")] = None
|
|
77
|
-
r"""Object key that must be specified when uploading documents."""
|
|
78
|
-
|
|
79
79
|
size_limit_bytes: Annotated[
|
|
80
80
|
Optional[int], pydantic.Field(alias="sizeLimitBytes")
|
|
81
81
|
] = 209715200
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
+
from .collectionresponse import CollectionResponse, CollectionResponseTypedDict
|
|
4
5
|
from lambdadb.types import BaseModel
|
|
5
6
|
from lambdadb.utils import FieldMetadata, PathParamMetadata
|
|
6
7
|
import pydantic
|
|
7
|
-
from
|
|
8
|
-
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
8
|
+
from typing_extensions import Annotated, TypedDict
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class GetCollectionRequestTypedDict(TypedDict):
|
|
12
12
|
project_name: str
|
|
13
13
|
r"""Project name."""
|
|
14
14
|
collection_name: str
|
|
15
15
|
r"""Collection name."""
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
class
|
|
18
|
+
class GetCollectionRequest(BaseModel):
|
|
19
19
|
project_name: Annotated[
|
|
20
20
|
str,
|
|
21
21
|
pydantic.Field(alias="projectName"),
|
|
@@ -31,13 +31,13 @@ class DeleteCollectionRequest(BaseModel):
|
|
|
31
31
|
r"""Collection name."""
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
class
|
|
35
|
-
r"""
|
|
34
|
+
class GetCollectionResponseTypedDict(TypedDict):
|
|
35
|
+
r"""Describe collection success."""
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
collection: CollectionResponseTypedDict
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
class
|
|
41
|
-
r"""
|
|
40
|
+
class GetCollectionResponse(BaseModel):
|
|
41
|
+
r"""Describe collection success."""
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
collection: CollectionResponse
|
|
@@ -5,8 +5,8 @@ from .collectionresponse import CollectionResponse, CollectionResponseTypedDict
|
|
|
5
5
|
from lambdadb.types import BaseModel
|
|
6
6
|
from lambdadb.utils import FieldMetadata, PathParamMetadata
|
|
7
7
|
import pydantic
|
|
8
|
-
from typing import List
|
|
9
|
-
from typing_extensions import Annotated,
|
|
8
|
+
from typing import List
|
|
9
|
+
from typing_extensions import Annotated, TypedDict
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class ListCollectionsRequestTypedDict(TypedDict):
|
|
@@ -26,10 +26,10 @@ class ListCollectionsRequest(BaseModel):
|
|
|
26
26
|
class ListCollectionsResponseTypedDict(TypedDict):
|
|
27
27
|
r"""A list of collections matched with a projectName."""
|
|
28
28
|
|
|
29
|
-
collections:
|
|
29
|
+
collections: List[CollectionResponseTypedDict]
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
class ListCollectionsResponse(BaseModel):
|
|
33
33
|
r"""A list of collections matched with a projectName."""
|
|
34
34
|
|
|
35
|
-
collections:
|
|
35
|
+
collections: List[CollectionResponse]
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from lambdadb.types import BaseModel
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class MessageResponseTypedDict(TypedDict):
|
|
9
|
+
message: str
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class MessageResponse(BaseModel):
|
|
13
|
+
message: str
|
|
@@ -121,27 +121,27 @@ class QueryCollectionDoc(BaseModel):
|
|
|
121
121
|
class QueryCollectionResponseTypedDict(TypedDict):
|
|
122
122
|
r"""Documents selected by query."""
|
|
123
123
|
|
|
124
|
-
took:
|
|
124
|
+
took: int
|
|
125
125
|
r"""Elapsed time in milliseconds."""
|
|
126
|
-
max_score:
|
|
126
|
+
max_score: float
|
|
127
127
|
r"""Maximum score."""
|
|
128
|
-
total:
|
|
128
|
+
total: int
|
|
129
129
|
r"""Total number of documents returned."""
|
|
130
|
-
docs:
|
|
130
|
+
docs: List[QueryCollectionDocTypedDict]
|
|
131
131
|
r"""List of documents."""
|
|
132
132
|
|
|
133
133
|
|
|
134
134
|
class QueryCollectionResponse(BaseModel):
|
|
135
135
|
r"""Documents selected by query."""
|
|
136
136
|
|
|
137
|
-
took:
|
|
137
|
+
took: int
|
|
138
138
|
r"""Elapsed time in milliseconds."""
|
|
139
139
|
|
|
140
|
-
max_score: Annotated[
|
|
140
|
+
max_score: Annotated[float, pydantic.Field(alias="maxScore")]
|
|
141
141
|
r"""Maximum score."""
|
|
142
142
|
|
|
143
|
-
total:
|
|
143
|
+
total: int
|
|
144
144
|
r"""Total number of documents returned."""
|
|
145
145
|
|
|
146
|
-
docs:
|
|
146
|
+
docs: List[QueryCollectionDoc]
|
|
147
147
|
r"""List of documents."""
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
+
from .collectionresponse import CollectionResponse, CollectionResponseTypedDict
|
|
4
5
|
from .indexconfigs_union import IndexConfigsUnion, IndexConfigsUnionTypedDict
|
|
5
6
|
from lambdadb.types import BaseModel
|
|
6
7
|
from lambdadb.utils import FieldMetadata, PathParamMetadata, RequestMetadata
|
|
@@ -46,3 +47,15 @@ class UpdateCollectionRequest(BaseModel):
|
|
|
46
47
|
UpdateCollectionRequestBody,
|
|
47
48
|
FieldMetadata(request=RequestMetadata(media_type="application/json")),
|
|
48
49
|
]
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
class UpdateCollectionResponseTypedDict(TypedDict):
|
|
53
|
+
r"""Updated collection"""
|
|
54
|
+
|
|
55
|
+
collection: CollectionResponseTypedDict
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class UpdateCollectionResponse(BaseModel):
|
|
59
|
+
r"""Updated collection"""
|
|
60
|
+
|
|
61
|
+
collection: CollectionResponse
|
|
@@ -4,8 +4,8 @@ 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 List
|
|
8
|
-
from typing_extensions import Annotated,
|
|
7
|
+
from typing import List
|
|
8
|
+
from typing_extensions import Annotated, TypedDict
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class UpdateDocsDocTypedDict(TypedDict):
|
|
@@ -53,15 +53,3 @@ class UpdateDocsRequest(BaseModel):
|
|
|
53
53
|
UpdateDocsRequestBody,
|
|
54
54
|
FieldMetadata(request=RequestMetadata(media_type="application/json")),
|
|
55
55
|
]
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
class UpdateDocsResponseTypedDict(TypedDict):
|
|
59
|
-
r"""Update request accepted."""
|
|
60
|
-
|
|
61
|
-
message: NotRequired[str]
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
class UpdateDocsResponse(BaseModel):
|
|
65
|
-
r"""Update request accepted."""
|
|
66
|
-
|
|
67
|
-
message: Optional[str] = None
|
|
@@ -4,8 +4,8 @@ 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 List
|
|
8
|
-
from typing_extensions import Annotated,
|
|
7
|
+
from typing import List
|
|
8
|
+
from typing_extensions import Annotated, TypedDict
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class UpsertDocsDocTypedDict(TypedDict):
|
|
@@ -53,15 +53,3 @@ class UpsertDocsRequest(BaseModel):
|
|
|
53
53
|
UpsertDocsRequestBody,
|
|
54
54
|
FieldMetadata(request=RequestMetadata(media_type="application/json")),
|
|
55
55
|
]
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
class UpsertDocsResponseTypedDict(TypedDict):
|
|
59
|
-
r"""Upsert request accepted."""
|
|
60
|
-
|
|
61
|
-
message: NotRequired[str]
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
class UpsertDocsResponse(BaseModel):
|
|
65
|
-
r"""Upsert request accepted."""
|
|
66
|
-
|
|
67
|
-
message: Optional[str] = None
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|