lambdadb 0.3.2__tar.gz → 0.3.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of lambdadb might be problematic. Click here for more details.

Files changed (63) hide show
  1. {lambdadb-0.3.2 → lambdadb-0.3.3}/PKG-INFO +1 -1
  2. {lambdadb-0.3.2 → lambdadb-0.3.3}/pyproject.toml +1 -1
  3. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/_version.py +2 -2
  4. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/docs.py +14 -12
  5. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/models/__init__.py +4 -12
  6. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/models/deletedocsop.py +21 -8
  7. lambdadb-0.3.2/src/lambdadb/models/filter_.py +0 -24
  8. lambdadb-0.3.2/src/lambdadb/models/ids.py +0 -16
  9. {lambdadb-0.3.2 → lambdadb-0.3.3}/LICENSE +0 -0
  10. {lambdadb-0.3.2 → lambdadb-0.3.3}/README-PYPI.md +0 -0
  11. {lambdadb-0.3.2 → lambdadb-0.3.3}/py.typed +0 -0
  12. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/__init__.py +0 -0
  13. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/_hooks/__init__.py +0 -0
  14. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/_hooks/registration.py +0 -0
  15. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/_hooks/sdkhooks.py +0 -0
  16. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/_hooks/types.py +0 -0
  17. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/basesdk.py +0 -0
  18. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/collections.py +0 -0
  19. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/errors/__init__.py +0 -0
  20. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/errors/apierror.py +0 -0
  21. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/errors/badrequest_error.py +0 -0
  22. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/errors/internalservererror.py +0 -0
  23. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/errors/resourcealreadyexists_error.py +0 -0
  24. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/errors/resourcenotfound_error.py +0 -0
  25. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/errors/toomanyrequests_error.py +0 -0
  26. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/errors/unauthenticated_error.py +0 -0
  27. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/httpclient.py +0 -0
  28. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/models/bulkupsertdocsop.py +0 -0
  29. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/models/collectionresponse.py +0 -0
  30. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/models/createcollectionop.py +0 -0
  31. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/models/deletecollectionop.py +0 -0
  32. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/models/fetchdocsop.py +0 -0
  33. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/models/getbulkupsertdocsop.py +0 -0
  34. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/models/getcollectionop.py +0 -0
  35. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/models/indexconfigs_union.py +0 -0
  36. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/models/listcollectionsop.py +0 -0
  37. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/models/querycollectionop.py +0 -0
  38. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/models/security.py +0 -0
  39. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/models/status.py +0 -0
  40. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/models/updatecollectionop.py +0 -0
  41. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/models/updatedocsop.py +0 -0
  42. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/models/upsertdocsop.py +0 -0
  43. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/py.typed +0 -0
  44. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/sdk.py +0 -0
  45. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/sdkconfiguration.py +0 -0
  46. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/types/__init__.py +0 -0
  47. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/types/basemodel.py +0 -0
  48. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/utils/__init__.py +0 -0
  49. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/utils/annotations.py +0 -0
  50. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/utils/datetimes.py +0 -0
  51. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/utils/enums.py +0 -0
  52. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/utils/eventstreaming.py +0 -0
  53. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/utils/forms.py +0 -0
  54. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/utils/headers.py +0 -0
  55. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/utils/logger.py +0 -0
  56. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/utils/metadata.py +0 -0
  57. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/utils/queryparams.py +0 -0
  58. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/utils/requestbodies.py +0 -0
  59. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/utils/retries.py +0 -0
  60. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/utils/security.py +0 -0
  61. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/utils/serializers.py +0 -0
  62. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/utils/url.py +0 -0
  63. {lambdadb-0.3.2 → lambdadb-0.3.3}/src/lambdadb/utils/values.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: lambdadb
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: Python Client SDK Generated by Speakeasy.
5
5
  Author: Speakeasy
6
6
  Requires-Python: >=3.9.2
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "lambdadb"
3
- version = "0.3.2"
3
+ version = "0.3.3"
4
4
  description = "Python Client SDK Generated by Speakeasy."
5
5
  authors = [{ name = "Speakeasy" },]
6
6
  readme = "README-PYPI.md"
@@ -3,10 +3,10 @@
3
3
  import importlib.metadata
4
4
 
5
5
  __title__: str = "lambdadb"
6
- __version__: str = "0.3.2"
6
+ __version__: str = "0.3.3"
7
7
  __openapi_doc_version__: str = "1.1.0"
8
8
  __gen_version__: str = "2.644.1"
9
- __user_agent__: str = "speakeasy-sdk/python 0.3.2 2.644.1 1.1.0 lambdadb"
9
+ __user_agent__: str = "speakeasy-sdk/python 0.3.3 2.644.1 1.1.0 lambdadb"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
@@ -1060,9 +1060,8 @@ class Docs(BaseSDK):
1060
1060
  *,
1061
1061
  project_name: str,
1062
1062
  collection_name: str,
1063
- request_body: Union[
1064
- models.DeleteDocsRequestBody, models.DeleteDocsRequestBodyTypedDict
1065
- ],
1063
+ ids: Optional[List[str]] = None,
1064
+ filter_: Optional[Union[models.Filter, models.FilterTypedDict]] = None,
1066
1065
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1067
1066
  server_url: Optional[str] = None,
1068
1067
  timeout_ms: Optional[int] = None,
@@ -1072,7 +1071,8 @@ class Docs(BaseSDK):
1072
1071
 
1073
1072
  :param project_name: Project name.
1074
1073
  :param collection_name: Collection name.
1075
- :param request_body:
1074
+ :param ids: A list of document IDs.
1075
+ :param filter_: Query filter.
1076
1076
  :param retries: Override the default retry configuration for this method
1077
1077
  :param server_url: Override the default server URL for this method
1078
1078
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1091,8 +1091,9 @@ class Docs(BaseSDK):
1091
1091
  request = models.DeleteDocsRequest(
1092
1092
  project_name=project_name,
1093
1093
  collection_name=collection_name,
1094
- request_body=utils.get_pydantic_model(
1095
- request_body, models.DeleteDocsRequestBody
1094
+ request_body=models.DeleteDocsRequestBody(
1095
+ ids=ids,
1096
+ filter_=utils.get_pydantic_model(filter_, Optional[models.Filter]),
1096
1097
  ),
1097
1098
  )
1098
1099
 
@@ -1195,9 +1196,8 @@ class Docs(BaseSDK):
1195
1196
  *,
1196
1197
  project_name: str,
1197
1198
  collection_name: str,
1198
- request_body: Union[
1199
- models.DeleteDocsRequestBody, models.DeleteDocsRequestBodyTypedDict
1200
- ],
1199
+ ids: Optional[List[str]] = None,
1200
+ filter_: Optional[Union[models.Filter, models.FilterTypedDict]] = None,
1201
1201
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1202
1202
  server_url: Optional[str] = None,
1203
1203
  timeout_ms: Optional[int] = None,
@@ -1207,7 +1207,8 @@ class Docs(BaseSDK):
1207
1207
 
1208
1208
  :param project_name: Project name.
1209
1209
  :param collection_name: Collection name.
1210
- :param request_body:
1210
+ :param ids: A list of document IDs.
1211
+ :param filter_: Query filter.
1211
1212
  :param retries: Override the default retry configuration for this method
1212
1213
  :param server_url: Override the default server URL for this method
1213
1214
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1226,8 +1227,9 @@ class Docs(BaseSDK):
1226
1227
  request = models.DeleteDocsRequest(
1227
1228
  project_name=project_name,
1228
1229
  collection_name=collection_name,
1229
- request_body=utils.get_pydantic_model(
1230
- request_body, models.DeleteDocsRequestBody
1230
+ request_body=models.DeleteDocsRequestBody(
1231
+ ids=ids,
1232
+ filter_=utils.get_pydantic_model(filter_, Optional[models.Filter]),
1231
1233
  ),
1232
1234
  )
1233
1235
 
@@ -32,6 +32,8 @@ if TYPE_CHECKING:
32
32
  DeleteDocsRequestTypedDict,
33
33
  DeleteDocsResponse,
34
34
  DeleteDocsResponseTypedDict,
35
+ Filter,
36
+ FilterTypedDict,
35
37
  )
36
38
  from .fetchdocsop import (
37
39
  FetchDocsDoc,
@@ -45,7 +47,6 @@ if TYPE_CHECKING:
45
47
  FetchDocsResponse,
46
48
  FetchDocsResponseTypedDict,
47
49
  )
48
- from .filter_ import Filter, FilterFilter, FilterFilterTypedDict, FilterTypedDict
49
50
  from .getbulkupsertdocsop import (
50
51
  GetBulkUpsertDocsRequest,
51
52
  GetBulkUpsertDocsRequestTypedDict,
@@ -55,7 +56,6 @@ if TYPE_CHECKING:
55
56
  HTTPMethod,
56
57
  )
57
58
  from .getcollectionop import GetCollectionRequest, GetCollectionRequestTypedDict
58
- from .ids import IDs, IDsTypedDict
59
59
  from .indexconfigs_union import (
60
60
  Analyzer,
61
61
  IndexConfigs,
@@ -157,8 +157,6 @@ __all__ = [
157
157
  "FetchDocsResponse",
158
158
  "FetchDocsResponseTypedDict",
159
159
  "Filter",
160
- "FilterFilter",
161
- "FilterFilterTypedDict",
162
160
  "FilterTypedDict",
163
161
  "GetBulkUpsertDocsRequest",
164
162
  "GetBulkUpsertDocsRequestTypedDict",
@@ -168,8 +166,6 @@ __all__ = [
168
166
  "GetCollectionRequest",
169
167
  "GetCollectionRequestTypedDict",
170
168
  "HTTPMethod",
171
- "IDs",
172
- "IDsTypedDict",
173
169
  "IndexConfigs",
174
170
  "IndexConfigsText",
175
171
  "IndexConfigsTextTypedDict",
@@ -248,6 +244,8 @@ _dynamic_imports: dict[str, str] = {
248
244
  "DeleteDocsRequestTypedDict": ".deletedocsop",
249
245
  "DeleteDocsResponse": ".deletedocsop",
250
246
  "DeleteDocsResponseTypedDict": ".deletedocsop",
247
+ "Filter": ".deletedocsop",
248
+ "FilterTypedDict": ".deletedocsop",
251
249
  "FetchDocsDoc": ".fetchdocsop",
252
250
  "FetchDocsDocDoc": ".fetchdocsop",
253
251
  "FetchDocsDocDocTypedDict": ".fetchdocsop",
@@ -258,10 +256,6 @@ _dynamic_imports: dict[str, str] = {
258
256
  "FetchDocsRequestTypedDict": ".fetchdocsop",
259
257
  "FetchDocsResponse": ".fetchdocsop",
260
258
  "FetchDocsResponseTypedDict": ".fetchdocsop",
261
- "Filter": ".filter_",
262
- "FilterFilter": ".filter_",
263
- "FilterFilterTypedDict": ".filter_",
264
- "FilterTypedDict": ".filter_",
265
259
  "GetBulkUpsertDocsRequest": ".getbulkupsertdocsop",
266
260
  "GetBulkUpsertDocsRequestTypedDict": ".getbulkupsertdocsop",
267
261
  "GetBulkUpsertDocsResponse": ".getbulkupsertdocsop",
@@ -270,8 +264,6 @@ _dynamic_imports: dict[str, str] = {
270
264
  "HTTPMethod": ".getbulkupsertdocsop",
271
265
  "GetCollectionRequest": ".getcollectionop",
272
266
  "GetCollectionRequestTypedDict": ".getcollectionop",
273
- "IDs": ".ids",
274
- "IDsTypedDict": ".ids",
275
267
  "Analyzer": ".indexconfigs_union",
276
268
  "IndexConfigs": ".indexconfigs_union",
277
269
  "IndexConfigsText": ".indexconfigs_union",
@@ -1,21 +1,34 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from .filter_ import Filter, FilterTypedDict
5
- from .ids import IDs, IDsTypedDict
6
4
  from lambdadb.types import BaseModel
7
5
  from lambdadb.utils import FieldMetadata, PathParamMetadata, RequestMetadata
8
6
  import pydantic
9
- from typing import Optional, Union
10
- from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
7
+ from typing import List, Optional
8
+ from typing_extensions import Annotated, NotRequired, TypedDict
11
9
 
12
10
 
13
- DeleteDocsRequestBodyTypedDict = TypeAliasType(
14
- "DeleteDocsRequestBodyTypedDict", Union[IDsTypedDict, FilterTypedDict]
15
- )
11
+ class FilterTypedDict(TypedDict):
12
+ r"""Query filter."""
16
13
 
17
14
 
18
- DeleteDocsRequestBody = TypeAliasType("DeleteDocsRequestBody", Union[IDs, Filter])
15
+ class Filter(BaseModel):
16
+ r"""Query filter."""
17
+
18
+
19
+ class DeleteDocsRequestBodyTypedDict(TypedDict):
20
+ ids: NotRequired[List[str]]
21
+ r"""A list of document IDs."""
22
+ filter_: NotRequired[FilterTypedDict]
23
+ r"""Query filter."""
24
+
25
+
26
+ class DeleteDocsRequestBody(BaseModel):
27
+ ids: Optional[List[str]] = None
28
+ r"""A list of document IDs."""
29
+
30
+ filter_: Annotated[Optional[Filter], pydantic.Field(alias="filter")] = None
31
+ r"""Query filter."""
19
32
 
20
33
 
21
34
  class DeleteDocsRequestTypedDict(TypedDict):
@@ -1,24 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from lambdadb.types import BaseModel
5
- import pydantic
6
- from typing_extensions import Annotated, TypedDict
7
-
8
-
9
- class FilterFilterTypedDict(TypedDict):
10
- r"""Query filter."""
11
-
12
-
13
- class FilterFilter(BaseModel):
14
- r"""Query filter."""
15
-
16
-
17
- class FilterTypedDict(TypedDict):
18
- filter_: FilterFilterTypedDict
19
- r"""Query filter."""
20
-
21
-
22
- class Filter(BaseModel):
23
- filter_: Annotated[FilterFilter, pydantic.Field(alias="filter")]
24
- r"""Query filter."""
@@ -1,16 +0,0 @@
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 import List
6
- from typing_extensions import TypedDict
7
-
8
-
9
- class IDsTypedDict(TypedDict):
10
- ids: List[str]
11
- r"""A list of document IDs."""
12
-
13
-
14
- class IDs(BaseModel):
15
- ids: List[str]
16
- r"""A list of document IDs."""
File without changes
File without changes
File without changes
File without changes
File without changes