lambdadb 0.3.0__tar.gz → 0.3.1__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 (61) hide show
  1. {lambdadb-0.3.0 → lambdadb-0.3.1}/PKG-INFO +9 -8
  2. {lambdadb-0.3.0 → lambdadb-0.3.1}/README-PYPI.md +8 -7
  3. {lambdadb-0.3.0 → lambdadb-0.3.1}/pyproject.toml +1 -1
  4. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/_version.py +3 -3
  5. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/collections.py +16 -16
  6. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/docs.py +276 -10
  7. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/models/__init__.py +38 -12
  8. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/models/fetchdocsop.py +2 -2
  9. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/models/indexconfigs_union.py +1 -0
  10. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/models/listcollectionsop.py +4 -4
  11. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/models/querycollectionop.py +2 -2
  12. lambdadb-0.3.1/src/lambdadb/models/updatedocsop.py +67 -0
  13. {lambdadb-0.3.0 → lambdadb-0.3.1}/LICENSE +0 -0
  14. {lambdadb-0.3.0 → lambdadb-0.3.1}/py.typed +0 -0
  15. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/__init__.py +0 -0
  16. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/_hooks/__init__.py +0 -0
  17. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/_hooks/registration.py +0 -0
  18. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/_hooks/sdkhooks.py +0 -0
  19. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/_hooks/types.py +0 -0
  20. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/basesdk.py +0 -0
  21. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/errors/__init__.py +0 -0
  22. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/errors/apierror.py +0 -0
  23. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/errors/badrequest_error.py +0 -0
  24. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/errors/internalservererror.py +0 -0
  25. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/errors/resourcealreadyexists_error.py +0 -0
  26. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/errors/resourcenotfound_error.py +0 -0
  27. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/errors/toomanyrequests_error.py +0 -0
  28. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/errors/unauthenticated_error.py +0 -0
  29. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/httpclient.py +0 -0
  30. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/models/bulkupsertdocsop.py +0 -0
  31. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/models/collectionresponse.py +0 -0
  32. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/models/createcollectionop.py +0 -0
  33. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/models/deletecollectionop.py +0 -0
  34. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/models/deletedocsop.py +0 -0
  35. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/models/getbulkupsertdocsop.py +0 -0
  36. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/models/getcollectionop.py +0 -0
  37. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/models/security.py +0 -0
  38. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/models/status.py +0 -0
  39. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/models/updatecollectionop.py +0 -0
  40. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/models/upsertdocsop.py +0 -0
  41. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/py.typed +0 -0
  42. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/sdk.py +0 -0
  43. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/sdkconfiguration.py +0 -0
  44. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/types/__init__.py +0 -0
  45. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/types/basemodel.py +0 -0
  46. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/utils/__init__.py +0 -0
  47. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/utils/annotations.py +0 -0
  48. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/utils/datetimes.py +0 -0
  49. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/utils/enums.py +0 -0
  50. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/utils/eventstreaming.py +0 -0
  51. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/utils/forms.py +0 -0
  52. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/utils/headers.py +0 -0
  53. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/utils/logger.py +0 -0
  54. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/utils/metadata.py +0 -0
  55. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/utils/queryparams.py +0 -0
  56. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/utils/requestbodies.py +0 -0
  57. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/utils/retries.py +0 -0
  58. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/utils/security.py +0 -0
  59. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/utils/serializers.py +0 -0
  60. {lambdadb-0.3.0 → lambdadb-0.3.1}/src/lambdadb/utils/url.py +0 -0
  61. {lambdadb-0.3.0 → lambdadb-0.3.1}/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.0
3
+ Version: 0.3.1
4
4
  Summary: Python Client SDK Generated by Speakeasy.
5
5
  Author: Speakeasy
6
6
  Requires-Python: >=3.9.2
@@ -201,19 +201,20 @@ with LambdaDB(
201
201
  ### [collections](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md)
202
202
 
203
203
  * [list](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#list) - List all collections in an existing project.
204
- * [create](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#create) - Create an collection.
204
+ * [create](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#create) - Create a collection.
205
205
  * [delete](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#delete) - Delete an existing collection.
206
206
  * [get](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#get) - Get metadata of an existing collection.
207
- * [update](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#update) - Configure an collection.
208
- * [query](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#query) - Search an collection with a query and return the most similar documents.
207
+ * [update](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#update) - Configure a collection.
208
+ * [query](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#query) - Search a collection with a query and return the most similar documents.
209
209
 
210
210
  #### [collections.docs](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md)
211
211
 
212
- * [upsert](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#upsert) - Upsert documents into an collection. Note that the maximum supported payload size is 6MB.
212
+ * [upsert](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#upsert) - Upsert documents into a collection. Note that the maximum supported payload size is 6MB.
213
213
  * [get_bulk_upsert](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#get_bulk_upsert) - Request required info to upload documents.
214
- * [bulk_upsert](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#bulk_upsert) - Bulk upsert documents into an collection. Note that the maximum supported object size is 200MB.
215
- * [delete](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#delete) - Delete documents by document IDs or query filter from an collection.
216
- * [fetch](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#fetch) - Lookup and return documents by document IDs from an collection.
214
+ * [bulk_upsert](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#bulk_upsert) - Bulk upsert documents into a collection. Note that the maximum supported object size is 200MB.
215
+ * [update_docs](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#update_docs) - Update documents in a collection. Note that the maximum supported payload size is 6MB.
216
+ * [delete](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#delete) - Delete documents by document IDs or query filter from a collection.
217
+ * [fetch](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#fetch) - Lookup and return documents by document IDs from a collection.
217
218
 
218
219
 
219
220
  </details>
@@ -184,19 +184,20 @@ with LambdaDB(
184
184
  ### [collections](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md)
185
185
 
186
186
  * [list](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#list) - List all collections in an existing project.
187
- * [create](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#create) - Create an collection.
187
+ * [create](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#create) - Create a collection.
188
188
  * [delete](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#delete) - Delete an existing collection.
189
189
  * [get](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#get) - Get metadata of an existing collection.
190
- * [update](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#update) - Configure an collection.
191
- * [query](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#query) - Search an collection with a query and return the most similar documents.
190
+ * [update](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#update) - Configure a collection.
191
+ * [query](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#query) - Search a collection with a query and return the most similar documents.
192
192
 
193
193
  #### [collections.docs](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md)
194
194
 
195
- * [upsert](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#upsert) - Upsert documents into an collection. Note that the maximum supported payload size is 6MB.
195
+ * [upsert](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#upsert) - Upsert documents into a collection. Note that the maximum supported payload size is 6MB.
196
196
  * [get_bulk_upsert](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#get_bulk_upsert) - Request required info to upload documents.
197
- * [bulk_upsert](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#bulk_upsert) - Bulk upsert documents into an collection. Note that the maximum supported object size is 200MB.
198
- * [delete](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#delete) - Delete documents by document IDs or query filter from an collection.
199
- * [fetch](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#fetch) - Lookup and return documents by document IDs from an collection.
197
+ * [bulk_upsert](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#bulk_upsert) - Bulk upsert documents into a collection. Note that the maximum supported object size is 200MB.
198
+ * [update_docs](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#update_docs) - Update documents in a collection. Note that the maximum supported payload size is 6MB.
199
+ * [delete](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#delete) - Delete documents by document IDs or query filter from a collection.
200
+ * [fetch](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#fetch) - Lookup and return documents by document IDs from a collection.
200
201
 
201
202
 
202
203
  </details>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "lambdadb"
3
- version = "0.3.0"
3
+ version = "0.3.1"
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.0"
6
+ __version__: str = "0.3.1"
7
7
  __openapi_doc_version__: str = "1.1.0"
8
- __gen_version__: str = "2.634.2"
9
- __user_agent__: str = "speakeasy-sdk/python 0.3.0 2.634.2 1.1.0 lambdadb"
8
+ __gen_version__: str = "2.640.2"
9
+ __user_agent__: str = "speakeasy-sdk/python 0.3.1 2.640.2 1.1.0 lambdadb"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
@@ -29,7 +29,7 @@ class Collections(BaseSDK):
29
29
  server_url: Optional[str] = None,
30
30
  timeout_ms: Optional[int] = None,
31
31
  http_headers: Optional[Mapping[str, str]] = None,
32
- ) -> models.ListcollectionsResponse:
32
+ ) -> models.ListCollectionsResponse:
33
33
  r"""List all collections in an existing project.
34
34
 
35
35
  :param project_name: Project name.
@@ -48,7 +48,7 @@ class Collections(BaseSDK):
48
48
  else:
49
49
  base_url = self._get_url(base_url, url_variables)
50
50
 
51
- request = models.ListcollectionsRequest(
51
+ request = models.ListCollectionsRequest(
52
52
  project_name=project_name,
53
53
  )
54
54
 
@@ -84,7 +84,7 @@ class Collections(BaseSDK):
84
84
  hook_ctx=HookContext(
85
85
  config=self.sdk_configuration,
86
86
  base_url=base_url or "",
87
- operation_id="listcollections",
87
+ operation_id="listCollections",
88
88
  oauth2_scopes=[],
89
89
  security_source=get_security_from_env(
90
90
  self.sdk_configuration.security, models.Security
@@ -97,7 +97,7 @@ class Collections(BaseSDK):
97
97
 
98
98
  response_data: Any = None
99
99
  if utils.match_response(http_res, "200", "application/json"):
100
- return utils.unmarshal_json(http_res.text, models.ListcollectionsResponse)
100
+ return utils.unmarshal_json(http_res.text, models.ListCollectionsResponse)
101
101
  if utils.match_response(http_res, "401", "application/json"):
102
102
  response_data = utils.unmarshal_json(
103
103
  http_res.text, errors.UnauthenticatedErrorData
@@ -146,7 +146,7 @@ class Collections(BaseSDK):
146
146
  server_url: Optional[str] = None,
147
147
  timeout_ms: Optional[int] = None,
148
148
  http_headers: Optional[Mapping[str, str]] = None,
149
- ) -> models.ListcollectionsResponse:
149
+ ) -> models.ListCollectionsResponse:
150
150
  r"""List all collections in an existing project.
151
151
 
152
152
  :param project_name: Project name.
@@ -165,7 +165,7 @@ class Collections(BaseSDK):
165
165
  else:
166
166
  base_url = self._get_url(base_url, url_variables)
167
167
 
168
- request = models.ListcollectionsRequest(
168
+ request = models.ListCollectionsRequest(
169
169
  project_name=project_name,
170
170
  )
171
171
 
@@ -201,7 +201,7 @@ class Collections(BaseSDK):
201
201
  hook_ctx=HookContext(
202
202
  config=self.sdk_configuration,
203
203
  base_url=base_url or "",
204
- operation_id="listcollections",
204
+ operation_id="listCollections",
205
205
  oauth2_scopes=[],
206
206
  security_source=get_security_from_env(
207
207
  self.sdk_configuration.security, models.Security
@@ -214,7 +214,7 @@ class Collections(BaseSDK):
214
214
 
215
215
  response_data: Any = None
216
216
  if utils.match_response(http_res, "200", "application/json"):
217
- return utils.unmarshal_json(http_res.text, models.ListcollectionsResponse)
217
+ return utils.unmarshal_json(http_res.text, models.ListCollectionsResponse)
218
218
  if utils.match_response(http_res, "401", "application/json"):
219
219
  response_data = utils.unmarshal_json(
220
220
  http_res.text, errors.UnauthenticatedErrorData
@@ -275,7 +275,7 @@ class Collections(BaseSDK):
275
275
  timeout_ms: Optional[int] = None,
276
276
  http_headers: Optional[Mapping[str, str]] = None,
277
277
  ) -> models.CollectionResponse:
278
- r"""Create an collection.
278
+ r"""Create a collection.
279
279
 
280
280
  :param project_name: Project name.
281
281
  :param collection_name: Collection name must be unique within a project and the supported maximum length is 52.
@@ -431,7 +431,7 @@ class Collections(BaseSDK):
431
431
  timeout_ms: Optional[int] = None,
432
432
  http_headers: Optional[Mapping[str, str]] = None,
433
433
  ) -> models.CollectionResponse:
434
- r"""Create an collection.
434
+ r"""Create a collection.
435
435
 
436
436
  :param project_name: Project name.
437
437
  :param collection_name: Collection name must be unique within a project and the supported maximum length is 52.
@@ -1061,7 +1061,7 @@ class Collections(BaseSDK):
1061
1061
  timeout_ms: Optional[int] = None,
1062
1062
  http_headers: Optional[Mapping[str, str]] = None,
1063
1063
  ) -> models.CollectionResponse:
1064
- r"""Configure an collection.
1064
+ r"""Configure a collection.
1065
1065
 
1066
1066
  :param project_name: Project name.
1067
1067
  :param collection_name: Collection name.
@@ -1203,7 +1203,7 @@ class Collections(BaseSDK):
1203
1203
  timeout_ms: Optional[int] = None,
1204
1204
  http_headers: Optional[Mapping[str, str]] = None,
1205
1205
  ) -> models.CollectionResponse:
1206
- r"""Configure an collection.
1206
+ r"""Configure a collection.
1207
1207
 
1208
1208
  :param project_name: Project name.
1209
1209
  :param collection_name: Collection name.
@@ -1347,11 +1347,11 @@ class Collections(BaseSDK):
1347
1347
  timeout_ms: Optional[int] = None,
1348
1348
  http_headers: Optional[Mapping[str, str]] = None,
1349
1349
  ) -> models.QueryCollectionResponse:
1350
- r"""Search an collection with a query and return the most similar documents.
1350
+ r"""Search a collection with a query and return the most similar documents.
1351
1351
 
1352
1352
  :param project_name: Project name.
1353
1353
  :param collection_name: Collection name.
1354
- :param size: Number of documents to return. Note that the maximum number of documents is 1000.
1354
+ :param size: Number of documents to return. Note that the maximum number of documents is 100.
1355
1355
  :param query: Query object.
1356
1356
  :param consistent_read: If your application requires a strongly consistent read, set consistentRead to true. Although a strongly consistent read might take more time than an eventually consistent read, it always returns the last updated value.
1357
1357
  :param include_vectors: If your application need to include vector values in the response, set includeVectors to true.
@@ -1499,11 +1499,11 @@ class Collections(BaseSDK):
1499
1499
  timeout_ms: Optional[int] = None,
1500
1500
  http_headers: Optional[Mapping[str, str]] = None,
1501
1501
  ) -> models.QueryCollectionResponse:
1502
- r"""Search an collection with a query and return the most similar documents.
1502
+ r"""Search a collection with a query and return the most similar documents.
1503
1503
 
1504
1504
  :param project_name: Project name.
1505
1505
  :param collection_name: Collection name.
1506
- :param size: Number of documents to return. Note that the maximum number of documents is 1000.
1506
+ :param size: Number of documents to return. Note that the maximum number of documents is 100.
1507
1507
  :param query: Query object.
1508
1508
  :param consistent_read: If your application requires a strongly consistent read, set consistentRead to true. Although a strongly consistent read might take more time than an eventually consistent read, it always returns the last updated value.
1509
1509
  :param include_vectors: If your application need to include vector values in the response, set includeVectors to true.
@@ -20,7 +20,7 @@ class Docs(BaseSDK):
20
20
  timeout_ms: Optional[int] = None,
21
21
  http_headers: Optional[Mapping[str, str]] = None,
22
22
  ) -> models.UpsertDocsResponse:
23
- r"""Upsert documents into an collection. Note that the maximum supported payload size is 6MB.
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.
26
26
  :param collection_name: Collection name.
@@ -153,7 +153,7 @@ class Docs(BaseSDK):
153
153
  timeout_ms: Optional[int] = None,
154
154
  http_headers: Optional[Mapping[str, str]] = None,
155
155
  ) -> models.UpsertDocsResponse:
156
- r"""Upsert documents into an collection. Note that the maximum supported payload size is 6MB.
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.
159
159
  :param collection_name: Collection name.
@@ -526,7 +526,7 @@ class Docs(BaseSDK):
526
526
  timeout_ms: Optional[int] = None,
527
527
  http_headers: Optional[Mapping[str, str]] = None,
528
528
  ) -> models.BulkUpsertDocsResponse:
529
- r"""Bulk upsert documents into an collection. Note that the maximum supported object size is 200MB.
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.
532
532
  :param collection_name: Collection name.
@@ -663,7 +663,7 @@ class Docs(BaseSDK):
663
663
  timeout_ms: Optional[int] = None,
664
664
  http_headers: Optional[Mapping[str, str]] = None,
665
665
  ) -> models.BulkUpsertDocsResponse:
666
- r"""Bulk upsert documents into an collection. Note that the maximum supported object size is 200MB.
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.
669
669
  :param collection_name: Collection name.
@@ -789,6 +789,272 @@ class Docs(BaseSDK):
789
789
  http_res,
790
790
  )
791
791
 
792
+ def update_docs(
793
+ self,
794
+ *,
795
+ project_name: str,
796
+ collection_name: str,
797
+ docs: Union[List[models.UpdateDocsDoc], List[models.UpdateDocsDocTypedDict]],
798
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
799
+ server_url: Optional[str] = None,
800
+ timeout_ms: Optional[int] = None,
801
+ http_headers: Optional[Mapping[str, str]] = None,
802
+ ) -> models.UpdateDocsResponse:
803
+ r"""Update documents in a collection. Note that the maximum supported payload size is 6MB.
804
+
805
+ :param project_name: Project name.
806
+ :param collection_name: Collection name.
807
+ :param docs: A list of documents to update. Each document must contain 'id' field to be updated.
808
+ :param retries: Override the default retry configuration for this method
809
+ :param server_url: Override the default server URL for this method
810
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
811
+ :param http_headers: Additional headers to set or replace on requests.
812
+ """
813
+ base_url = None
814
+ url_variables = None
815
+ if timeout_ms is None:
816
+ timeout_ms = self.sdk_configuration.timeout_ms
817
+
818
+ if server_url is not None:
819
+ base_url = server_url
820
+ else:
821
+ base_url = self._get_url(base_url, url_variables)
822
+
823
+ request = models.UpdateDocsRequest(
824
+ project_name=project_name,
825
+ collection_name=collection_name,
826
+ request_body=models.UpdateDocsRequestBody(
827
+ docs=utils.get_pydantic_model(docs, List[models.UpdateDocsDoc]),
828
+ ),
829
+ )
830
+
831
+ req = self._build_request(
832
+ method="POST",
833
+ path="/projects/{projectName}/collections/{collectionName}/docs/update",
834
+ base_url=base_url,
835
+ url_variables=url_variables,
836
+ request=request,
837
+ request_body_required=True,
838
+ request_has_path_params=True,
839
+ request_has_query_params=True,
840
+ user_agent_header="user-agent",
841
+ accept_header_value="application/json",
842
+ http_headers=http_headers,
843
+ security=self.sdk_configuration.security,
844
+ get_serialized_body=lambda: utils.serialize_request_body(
845
+ request.request_body, False, False, "json", models.UpdateDocsRequestBody
846
+ ),
847
+ timeout_ms=timeout_ms,
848
+ )
849
+
850
+ if retries == UNSET:
851
+ if self.sdk_configuration.retry_config is not UNSET:
852
+ retries = self.sdk_configuration.retry_config
853
+ else:
854
+ retries = utils.RetryConfig(
855
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
856
+ )
857
+
858
+ retry_config = None
859
+ if isinstance(retries, utils.RetryConfig):
860
+ retry_config = (retries, ["429", "5XX"])
861
+
862
+ http_res = self.do_request(
863
+ hook_ctx=HookContext(
864
+ config=self.sdk_configuration,
865
+ base_url=base_url or "",
866
+ operation_id="updateDocs",
867
+ oauth2_scopes=[],
868
+ security_source=get_security_from_env(
869
+ self.sdk_configuration.security, models.Security
870
+ ),
871
+ ),
872
+ request=req,
873
+ error_status_codes=["400", "401", "404", "429", "4XX", "500", "5XX"],
874
+ retry_config=retry_config,
875
+ )
876
+
877
+ response_data: Any = None
878
+ if utils.match_response(http_res, "202", "application/json"):
879
+ return utils.unmarshal_json(http_res.text, models.UpdateDocsResponse)
880
+ if utils.match_response(http_res, "400", "application/json"):
881
+ response_data = utils.unmarshal_json(
882
+ http_res.text, errors.BadRequestErrorData
883
+ )
884
+ raise errors.BadRequestError(data=response_data)
885
+ if utils.match_response(http_res, "401", "application/json"):
886
+ response_data = utils.unmarshal_json(
887
+ http_res.text, errors.UnauthenticatedErrorData
888
+ )
889
+ raise errors.UnauthenticatedError(data=response_data)
890
+ if utils.match_response(http_res, "404", "application/json"):
891
+ response_data = utils.unmarshal_json(
892
+ http_res.text, errors.ResourceNotFoundErrorData
893
+ )
894
+ raise errors.ResourceNotFoundError(data=response_data)
895
+ if utils.match_response(http_res, "429", "application/json"):
896
+ response_data = utils.unmarshal_json(
897
+ http_res.text, errors.TooManyRequestsErrorData
898
+ )
899
+ raise errors.TooManyRequestsError(data=response_data)
900
+ if utils.match_response(http_res, "500", "application/json"):
901
+ response_data = utils.unmarshal_json(
902
+ http_res.text, errors.InternalServerErrorData
903
+ )
904
+ raise errors.InternalServerError(data=response_data)
905
+ if utils.match_response(http_res, "4XX", "*"):
906
+ http_res_text = utils.stream_to_text(http_res)
907
+ raise errors.APIError(
908
+ "API error occurred", http_res.status_code, http_res_text, http_res
909
+ )
910
+ if utils.match_response(http_res, "5XX", "*"):
911
+ http_res_text = utils.stream_to_text(http_res)
912
+ raise errors.APIError(
913
+ "API error occurred", http_res.status_code, http_res_text, http_res
914
+ )
915
+
916
+ content_type = http_res.headers.get("Content-Type")
917
+ http_res_text = utils.stream_to_text(http_res)
918
+ raise errors.APIError(
919
+ f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
920
+ http_res.status_code,
921
+ http_res_text,
922
+ http_res,
923
+ )
924
+
925
+ async def update_docs_async(
926
+ self,
927
+ *,
928
+ project_name: str,
929
+ collection_name: str,
930
+ docs: Union[List[models.UpdateDocsDoc], List[models.UpdateDocsDocTypedDict]],
931
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
932
+ server_url: Optional[str] = None,
933
+ timeout_ms: Optional[int] = None,
934
+ http_headers: Optional[Mapping[str, str]] = None,
935
+ ) -> models.UpdateDocsResponse:
936
+ r"""Update documents in a collection. Note that the maximum supported payload size is 6MB.
937
+
938
+ :param project_name: Project name.
939
+ :param collection_name: Collection name.
940
+ :param docs: A list of documents to update. Each document must contain 'id' field to be updated.
941
+ :param retries: Override the default retry configuration for this method
942
+ :param server_url: Override the default server URL for this method
943
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
944
+ :param http_headers: Additional headers to set or replace on requests.
945
+ """
946
+ base_url = None
947
+ url_variables = None
948
+ if timeout_ms is None:
949
+ timeout_ms = self.sdk_configuration.timeout_ms
950
+
951
+ if server_url is not None:
952
+ base_url = server_url
953
+ else:
954
+ base_url = self._get_url(base_url, url_variables)
955
+
956
+ request = models.UpdateDocsRequest(
957
+ project_name=project_name,
958
+ collection_name=collection_name,
959
+ request_body=models.UpdateDocsRequestBody(
960
+ docs=utils.get_pydantic_model(docs, List[models.UpdateDocsDoc]),
961
+ ),
962
+ )
963
+
964
+ req = self._build_request_async(
965
+ method="POST",
966
+ path="/projects/{projectName}/collections/{collectionName}/docs/update",
967
+ base_url=base_url,
968
+ url_variables=url_variables,
969
+ request=request,
970
+ request_body_required=True,
971
+ request_has_path_params=True,
972
+ request_has_query_params=True,
973
+ user_agent_header="user-agent",
974
+ accept_header_value="application/json",
975
+ http_headers=http_headers,
976
+ security=self.sdk_configuration.security,
977
+ get_serialized_body=lambda: utils.serialize_request_body(
978
+ request.request_body, False, False, "json", models.UpdateDocsRequestBody
979
+ ),
980
+ timeout_ms=timeout_ms,
981
+ )
982
+
983
+ if retries == UNSET:
984
+ if self.sdk_configuration.retry_config is not UNSET:
985
+ retries = self.sdk_configuration.retry_config
986
+ else:
987
+ retries = utils.RetryConfig(
988
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
989
+ )
990
+
991
+ retry_config = None
992
+ if isinstance(retries, utils.RetryConfig):
993
+ retry_config = (retries, ["429", "5XX"])
994
+
995
+ http_res = await self.do_request_async(
996
+ hook_ctx=HookContext(
997
+ config=self.sdk_configuration,
998
+ base_url=base_url or "",
999
+ operation_id="updateDocs",
1000
+ oauth2_scopes=[],
1001
+ security_source=get_security_from_env(
1002
+ self.sdk_configuration.security, models.Security
1003
+ ),
1004
+ ),
1005
+ request=req,
1006
+ error_status_codes=["400", "401", "404", "429", "4XX", "500", "5XX"],
1007
+ retry_config=retry_config,
1008
+ )
1009
+
1010
+ response_data: Any = None
1011
+ if utils.match_response(http_res, "202", "application/json"):
1012
+ return utils.unmarshal_json(http_res.text, models.UpdateDocsResponse)
1013
+ if utils.match_response(http_res, "400", "application/json"):
1014
+ response_data = utils.unmarshal_json(
1015
+ http_res.text, errors.BadRequestErrorData
1016
+ )
1017
+ raise errors.BadRequestError(data=response_data)
1018
+ if utils.match_response(http_res, "401", "application/json"):
1019
+ response_data = utils.unmarshal_json(
1020
+ http_res.text, errors.UnauthenticatedErrorData
1021
+ )
1022
+ raise errors.UnauthenticatedError(data=response_data)
1023
+ if utils.match_response(http_res, "404", "application/json"):
1024
+ response_data = utils.unmarshal_json(
1025
+ http_res.text, errors.ResourceNotFoundErrorData
1026
+ )
1027
+ raise errors.ResourceNotFoundError(data=response_data)
1028
+ if utils.match_response(http_res, "429", "application/json"):
1029
+ response_data = utils.unmarshal_json(
1030
+ http_res.text, errors.TooManyRequestsErrorData
1031
+ )
1032
+ raise errors.TooManyRequestsError(data=response_data)
1033
+ if utils.match_response(http_res, "500", "application/json"):
1034
+ response_data = utils.unmarshal_json(
1035
+ http_res.text, errors.InternalServerErrorData
1036
+ )
1037
+ raise errors.InternalServerError(data=response_data)
1038
+ if utils.match_response(http_res, "4XX", "*"):
1039
+ http_res_text = await utils.stream_to_text_async(http_res)
1040
+ raise errors.APIError(
1041
+ "API error occurred", http_res.status_code, http_res_text, http_res
1042
+ )
1043
+ if utils.match_response(http_res, "5XX", "*"):
1044
+ http_res_text = await utils.stream_to_text_async(http_res)
1045
+ raise errors.APIError(
1046
+ "API error occurred", http_res.status_code, http_res_text, http_res
1047
+ )
1048
+
1049
+ content_type = http_res.headers.get("Content-Type")
1050
+ http_res_text = await utils.stream_to_text_async(http_res)
1051
+ raise errors.APIError(
1052
+ f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
1053
+ http_res.status_code,
1054
+ http_res_text,
1055
+ http_res,
1056
+ )
1057
+
792
1058
  def delete(
793
1059
  self,
794
1060
  *,
@@ -802,7 +1068,7 @@ class Docs(BaseSDK):
802
1068
  timeout_ms: Optional[int] = None,
803
1069
  http_headers: Optional[Mapping[str, str]] = None,
804
1070
  ) -> models.DeleteDocsResponse:
805
- r"""Delete documents by document IDs or query filter from an collection.
1071
+ r"""Delete documents by document IDs or query filter from a collection.
806
1072
 
807
1073
  :param project_name: Project name.
808
1074
  :param collection_name: Collection name.
@@ -937,7 +1203,7 @@ class Docs(BaseSDK):
937
1203
  timeout_ms: Optional[int] = None,
938
1204
  http_headers: Optional[Mapping[str, str]] = None,
939
1205
  ) -> models.DeleteDocsResponse:
940
- r"""Delete documents by document IDs or query filter from an collection.
1206
+ r"""Delete documents by document IDs or query filter from a collection.
941
1207
 
942
1208
  :param project_name: Project name.
943
1209
  :param collection_name: Collection name.
@@ -1072,11 +1338,11 @@ class Docs(BaseSDK):
1072
1338
  timeout_ms: Optional[int] = None,
1073
1339
  http_headers: Optional[Mapping[str, str]] = None,
1074
1340
  ) -> models.FetchDocsResponse:
1075
- r"""Lookup and return documents by document IDs from an collection.
1341
+ r"""Lookup and return documents by document IDs from a collection.
1076
1342
 
1077
1343
  :param project_name: Project name.
1078
1344
  :param collection_name: Collection name.
1079
- :param ids: A list of document IDs to fetch. Note that the maximum number of document IDs is 1000.
1345
+ :param ids: A list of document IDs to fetch. Note that the maximum number of document IDs is 100.
1080
1346
  :param consistent_read: If your application requires a strongly consistent read, set consistentRead to true. Although a strongly consistent read might take more time than an eventually consistent read, it always returns the last updated value.
1081
1347
  :param include_vectors: If your application need to include vector values in the response, set includeVectors to true.
1082
1348
  :param retries: Override the default retry configuration for this method
@@ -1211,11 +1477,11 @@ class Docs(BaseSDK):
1211
1477
  timeout_ms: Optional[int] = None,
1212
1478
  http_headers: Optional[Mapping[str, str]] = None,
1213
1479
  ) -> models.FetchDocsResponse:
1214
- r"""Lookup and return documents by document IDs from an collection.
1480
+ r"""Lookup and return documents by document IDs from a collection.
1215
1481
 
1216
1482
  :param project_name: Project name.
1217
1483
  :param collection_name: Collection name.
1218
- :param ids: A list of document IDs to fetch. Note that the maximum number of document IDs is 1000.
1484
+ :param ids: A list of document IDs to fetch. Note that the maximum number of document IDs is 100.
1219
1485
  :param consistent_read: If your application requires a strongly consistent read, set consistentRead to true. Although a strongly consistent read might take more time than an eventually consistent read, it always returns the last updated value.
1220
1486
  :param include_vectors: If your application need to include vector values in the response, set includeVectors to true.
1221
1487
  :param retries: Override the default retry configuration for this method
@@ -76,10 +76,10 @@ if TYPE_CHECKING:
76
76
  TypeVector,
77
77
  )
78
78
  from .listcollectionsop import (
79
- ListcollectionsRequest,
80
- ListcollectionsRequestTypedDict,
81
- ListcollectionsResponse,
82
- ListcollectionsResponseTypedDict,
79
+ ListCollectionsRequest,
80
+ ListCollectionsRequestTypedDict,
81
+ ListCollectionsResponse,
82
+ ListCollectionsResponseTypedDict,
83
83
  )
84
84
  from .querycollectionop import (
85
85
  Query,
@@ -105,6 +105,16 @@ if TYPE_CHECKING:
105
105
  UpdateCollectionRequestBodyTypedDict,
106
106
  UpdateCollectionRequestTypedDict,
107
107
  )
108
+ from .updatedocsop import (
109
+ UpdateDocsDoc,
110
+ UpdateDocsDocTypedDict,
111
+ UpdateDocsRequest,
112
+ UpdateDocsRequestBody,
113
+ UpdateDocsRequestBodyTypedDict,
114
+ UpdateDocsRequestTypedDict,
115
+ UpdateDocsResponse,
116
+ UpdateDocsResponseTypedDict,
117
+ )
108
118
  from .upsertdocsop import (
109
119
  UpsertDocsDoc,
110
120
  UpsertDocsDocTypedDict,
@@ -168,10 +178,10 @@ __all__ = [
168
178
  "IndexConfigsUnionTypedDict",
169
179
  "IndexConfigsVector",
170
180
  "IndexConfigsVectorTypedDict",
171
- "ListcollectionsRequest",
172
- "ListcollectionsRequestTypedDict",
173
- "ListcollectionsResponse",
174
- "ListcollectionsResponseTypedDict",
181
+ "ListCollectionsRequest",
182
+ "ListCollectionsRequestTypedDict",
183
+ "ListCollectionsResponse",
184
+ "ListCollectionsResponseTypedDict",
175
185
  "Query",
176
186
  "QueryCollectionDoc",
177
187
  "QueryCollectionDocDoc",
@@ -201,6 +211,14 @@ __all__ = [
201
211
  "UpdateCollectionRequestBody",
202
212
  "UpdateCollectionRequestBodyTypedDict",
203
213
  "UpdateCollectionRequestTypedDict",
214
+ "UpdateDocsDoc",
215
+ "UpdateDocsDocTypedDict",
216
+ "UpdateDocsRequest",
217
+ "UpdateDocsRequestBody",
218
+ "UpdateDocsRequestBodyTypedDict",
219
+ "UpdateDocsRequestTypedDict",
220
+ "UpdateDocsResponse",
221
+ "UpdateDocsResponseTypedDict",
204
222
  "UpsertDocsDoc",
205
223
  "UpsertDocsDocTypedDict",
206
224
  "UpsertDocsRequest",
@@ -271,10 +289,10 @@ _dynamic_imports: dict[str, str] = {
271
289
  "Type": ".indexconfigs_union",
272
290
  "TypeText": ".indexconfigs_union",
273
291
  "TypeVector": ".indexconfigs_union",
274
- "ListcollectionsRequest": ".listcollectionsop",
275
- "ListcollectionsRequestTypedDict": ".listcollectionsop",
276
- "ListcollectionsResponse": ".listcollectionsop",
277
- "ListcollectionsResponseTypedDict": ".listcollectionsop",
292
+ "ListCollectionsRequest": ".listcollectionsop",
293
+ "ListCollectionsRequestTypedDict": ".listcollectionsop",
294
+ "ListCollectionsResponse": ".listcollectionsop",
295
+ "ListCollectionsResponseTypedDict": ".listcollectionsop",
278
296
  "Query": ".querycollectionop",
279
297
  "QueryCollectionDoc": ".querycollectionop",
280
298
  "QueryCollectionDocDoc": ".querycollectionop",
@@ -296,6 +314,14 @@ _dynamic_imports: dict[str, str] = {
296
314
  "UpdateCollectionRequestBody": ".updatecollectionop",
297
315
  "UpdateCollectionRequestBodyTypedDict": ".updatecollectionop",
298
316
  "UpdateCollectionRequestTypedDict": ".updatecollectionop",
317
+ "UpdateDocsDoc": ".updatedocsop",
318
+ "UpdateDocsDocTypedDict": ".updatedocsop",
319
+ "UpdateDocsRequest": ".updatedocsop",
320
+ "UpdateDocsRequestBody": ".updatedocsop",
321
+ "UpdateDocsRequestBodyTypedDict": ".updatedocsop",
322
+ "UpdateDocsRequestTypedDict": ".updatedocsop",
323
+ "UpdateDocsResponse": ".updatedocsop",
324
+ "UpdateDocsResponseTypedDict": ".updatedocsop",
299
325
  "UpsertDocsDoc": ".upsertdocsop",
300
326
  "UpsertDocsDocTypedDict": ".upsertdocsop",
301
327
  "UpsertDocsRequest": ".upsertdocsop",
@@ -10,7 +10,7 @@ from typing_extensions import Annotated, NotRequired, TypedDict
10
10
 
11
11
  class FetchDocsRequestBodyTypedDict(TypedDict):
12
12
  ids: List[str]
13
- r"""A list of document IDs to fetch. Note that the maximum number of document IDs is 1000."""
13
+ r"""A list of document IDs to fetch. Note that the maximum number of document IDs is 100."""
14
14
  consistent_read: NotRequired[bool]
15
15
  r"""If your application requires a strongly consistent read, set consistentRead to true. Although a strongly consistent read might take more time than an eventually consistent read, it always returns the last updated value."""
16
16
  include_vectors: NotRequired[bool]
@@ -19,7 +19,7 @@ class FetchDocsRequestBodyTypedDict(TypedDict):
19
19
 
20
20
  class FetchDocsRequestBody(BaseModel):
21
21
  ids: List[str]
22
- r"""A list of document IDs to fetch. Note that the maximum number of document IDs is 1000."""
22
+ r"""A list of document IDs to fetch. Note that the maximum number of document IDs is 100."""
23
23
 
24
24
  consistent_read: Annotated[
25
25
  Optional[bool], pydantic.Field(alias="consistentRead")
@@ -13,6 +13,7 @@ class Type(str, Enum):
13
13
  DOUBLE = "double"
14
14
  DATETIME = "datetime"
15
15
  BOOLEAN = "boolean"
16
+ SPARSE_VECTOR = "sparseVector"
16
17
 
17
18
 
18
19
  class IndexConfigsTypedDict(TypedDict):
@@ -9,12 +9,12 @@ from typing import List, Optional
9
9
  from typing_extensions import Annotated, NotRequired, TypedDict
10
10
 
11
11
 
12
- class ListcollectionsRequestTypedDict(TypedDict):
12
+ class ListCollectionsRequestTypedDict(TypedDict):
13
13
  project_name: str
14
14
  r"""Project name."""
15
15
 
16
16
 
17
- class ListcollectionsRequest(BaseModel):
17
+ class ListCollectionsRequest(BaseModel):
18
18
  project_name: Annotated[
19
19
  str,
20
20
  pydantic.Field(alias="projectName"),
@@ -23,13 +23,13 @@ class ListcollectionsRequest(BaseModel):
23
23
  r"""Project name."""
24
24
 
25
25
 
26
- class ListcollectionsResponseTypedDict(TypedDict):
26
+ class ListCollectionsResponseTypedDict(TypedDict):
27
27
  r"""A list of collections matched with a projectName."""
28
28
 
29
29
  collections: NotRequired[List[CollectionResponseTypedDict]]
30
30
 
31
31
 
32
- class ListcollectionsResponse(BaseModel):
32
+ class ListCollectionsResponse(BaseModel):
33
33
  r"""A list of collections matched with a projectName."""
34
34
 
35
35
  collections: Optional[List[CollectionResponse]] = None
@@ -26,7 +26,7 @@ class Sort(BaseModel):
26
26
 
27
27
  class QueryCollectionRequestBodyTypedDict(TypedDict):
28
28
  size: int
29
- r"""Number of documents to return. Note that the maximum number of documents is 1000."""
29
+ r"""Number of documents to return. Note that the maximum number of documents is 100."""
30
30
  query: NotRequired[QueryTypedDict]
31
31
  r"""Query object."""
32
32
  consistent_read: NotRequired[bool]
@@ -41,7 +41,7 @@ class QueryCollectionRequestBodyTypedDict(TypedDict):
41
41
 
42
42
  class QueryCollectionRequestBody(BaseModel):
43
43
  size: int
44
- r"""Number of documents to return. Note that the maximum number of documents is 1000."""
44
+ r"""Number of documents to return. Note that the maximum number of documents is 100."""
45
45
 
46
46
  query: Optional[Query] = None
47
47
  r"""Query object."""
@@ -0,0 +1,67 @@
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 lambdadb.utils import FieldMetadata, PathParamMetadata, RequestMetadata
6
+ import pydantic
7
+ from typing import List, Optional
8
+ from typing_extensions import Annotated, NotRequired, TypedDict
9
+
10
+
11
+ class UpdateDocsDocTypedDict(TypedDict):
12
+ pass
13
+
14
+
15
+ class UpdateDocsDoc(BaseModel):
16
+ pass
17
+
18
+
19
+ class UpdateDocsRequestBodyTypedDict(TypedDict):
20
+ docs: List[UpdateDocsDocTypedDict]
21
+ r"""A list of documents to update. Each document must contain 'id' field to be updated."""
22
+
23
+
24
+ class UpdateDocsRequestBody(BaseModel):
25
+ docs: List[UpdateDocsDoc]
26
+ r"""A list of documents to update. Each document must contain 'id' field to be updated."""
27
+
28
+
29
+ class UpdateDocsRequestTypedDict(TypedDict):
30
+ project_name: str
31
+ r"""Project name."""
32
+ collection_name: str
33
+ r"""Collection name."""
34
+ request_body: UpdateDocsRequestBodyTypedDict
35
+
36
+
37
+ class UpdateDocsRequest(BaseModel):
38
+ project_name: Annotated[
39
+ str,
40
+ pydantic.Field(alias="projectName"),
41
+ FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
42
+ ]
43
+ r"""Project name."""
44
+
45
+ collection_name: Annotated[
46
+ str,
47
+ pydantic.Field(alias="collectionName"),
48
+ FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
49
+ ]
50
+ r"""Collection name."""
51
+
52
+ request_body: Annotated[
53
+ UpdateDocsRequestBody,
54
+ FieldMetadata(request=RequestMetadata(media_type="application/json")),
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
File without changes
File without changes
File without changes
File without changes