lambdadb 0.3.2__py3-none-any.whl → 0.3.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of lambdadb might be problematic. Click here for more details.
- lambdadb/_version.py +2 -2
- lambdadb/docs.py +14 -12
- lambdadb/models/__init__.py +4 -12
- lambdadb/models/deletedocsop.py +21 -8
- {lambdadb-0.3.2.dist-info → lambdadb-0.3.3.dist-info}/METADATA +1 -1
- {lambdadb-0.3.2.dist-info → lambdadb-0.3.3.dist-info}/RECORD +8 -10
- lambdadb/models/filter_.py +0 -24
- lambdadb/models/ids.py +0 -16
- {lambdadb-0.3.2.dist-info → lambdadb-0.3.3.dist-info}/LICENSE +0 -0
- {lambdadb-0.3.2.dist-info → lambdadb-0.3.3.dist-info}/WHEEL +0 -0
lambdadb/_version.py
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "lambdadb"
|
|
6
|
-
__version__: str = "0.3.
|
|
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.
|
|
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:
|
lambdadb/docs.py
CHANGED
|
@@ -1060,9 +1060,8 @@ class Docs(BaseSDK):
|
|
|
1060
1060
|
*,
|
|
1061
1061
|
project_name: str,
|
|
1062
1062
|
collection_name: str,
|
|
1063
|
-
|
|
1064
|
-
|
|
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
|
|
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=
|
|
1095
|
-
|
|
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
|
-
|
|
1199
|
-
|
|
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
|
|
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=
|
|
1230
|
-
|
|
1230
|
+
request_body=models.DeleteDocsRequestBody(
|
|
1231
|
+
ids=ids,
|
|
1232
|
+
filter_=utils.get_pydantic_model(filter_, Optional[models.Filter]),
|
|
1231
1233
|
),
|
|
1232
1234
|
)
|
|
1233
1235
|
|
lambdadb/models/__init__.py
CHANGED
|
@@ -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",
|
lambdadb/models/deletedocsop.py
CHANGED
|
@@ -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
|
|
10
|
-
from typing_extensions import Annotated, NotRequired,
|
|
7
|
+
from typing import List, Optional
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
11
9
|
|
|
12
10
|
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
)
|
|
11
|
+
class FilterTypedDict(TypedDict):
|
|
12
|
+
r"""Query filter."""
|
|
16
13
|
|
|
17
14
|
|
|
18
|
-
|
|
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):
|
|
@@ -3,10 +3,10 @@ lambdadb/_hooks/__init__.py,sha256=p5J13DeYuISQyQWirjJAObHIf2VtIlOtFqnIpvjjVwk,1
|
|
|
3
3
|
lambdadb/_hooks/registration.py,sha256=1QZB41w6If7I9dXiOSQx6dhSc6BPWrnI5Q5bMOr4iVA,624
|
|
4
4
|
lambdadb/_hooks/sdkhooks.py,sha256=KGhPvIuUjurDBQOT6t-aWgiu1YDRXpn-OMz6_PkUdFk,2463
|
|
5
5
|
lambdadb/_hooks/types.py,sha256=09dUW5q4HN9aVFAhskDLQqjxLPBfDD97uuucmdcBa6Q,2987
|
|
6
|
-
lambdadb/_version.py,sha256=
|
|
6
|
+
lambdadb/_version.py,sha256=CJdTCJB66ucDzzweX12sq1UdqZ3_mHLO70xuqKD8et8,458
|
|
7
7
|
lambdadb/basesdk.py,sha256=Uo8ZEdXVHmS_j1F9on47XeJD6sj9plIrna_6Oo_1I-I,11853
|
|
8
8
|
lambdadb/collections.py,sha256=es_zRA6ZBzirQ2arrDK4nuZ2ZCGvxoFNV004paNpQTc,69007
|
|
9
|
-
lambdadb/docs.py,sha256=
|
|
9
|
+
lambdadb/docs.py,sha256=ceZ_H5Yqq7q8ptY3musAXUAwR1VSqzf5JXcWoclu6Jc,69190
|
|
10
10
|
lambdadb/errors/__init__.py,sha256=V406LU9TLJQ0eocD79_PpsCjOmH6DAUnBTKd0Ra23uQ,2637
|
|
11
11
|
lambdadb/errors/apierror.py,sha256=9mTyJSyvUAOnSfW_1HWt9dGl8IDlpQ68DebwYsDNdug,528
|
|
12
12
|
lambdadb/errors/badrequest_error.py,sha256=OX1fo-ja-N-zqV4opH_LXnz_vwa2gZbgDx0aAeNMYL0,514
|
|
@@ -16,17 +16,15 @@ lambdadb/errors/resourcenotfound_error.py,sha256=VfsNJ9xJjMzZFoQGt5wu6JkUpRzFhrP
|
|
|
16
16
|
lambdadb/errors/toomanyrequests_error.py,sha256=yHFjs27JCb5mVmOZZqKmA4IG1ONs6FVERWIK_Gwgqwo,539
|
|
17
17
|
lambdadb/errors/unauthenticated_error.py,sha256=HD2a2JwLcIDefnkDLdbHJCbkY28u2cmAGOI8S6Q5m48,539
|
|
18
18
|
lambdadb/httpclient.py,sha256=Eu73urOAiZQtdUIyOUnPccxCiBbWEKrXG-JrRG3SLM4,3946
|
|
19
|
-
lambdadb/models/__init__.py,sha256=
|
|
19
|
+
lambdadb/models/__init__.py,sha256=l-OGqvLaVTf1m3ErOlyP28RCPF9YHzTEuHOZVozXhNA,12286
|
|
20
20
|
lambdadb/models/bulkupsertdocsop.py,sha256=r7WrCY_8uKgQr07eIBOk1U6clKPOKy6OMfsnl43Q5kA,1674
|
|
21
21
|
lambdadb/models/collectionresponse.py,sha256=zK3nHrb_zRKc9B6NuAtd_V1gESwD-fULqZ4SmkmVQHg,2121
|
|
22
22
|
lambdadb/models/createcollectionop.py,sha256=Hk-6zcL9ZWrFDPh23J805x8YwL2_3It02R2oRI9eQ6w,2198
|
|
23
23
|
lambdadb/models/deletecollectionop.py,sha256=MCNYTYXCwsIP4NQXB3CA2oZwF0HFALaIpSUBePP05KM,1171
|
|
24
|
-
lambdadb/models/deletedocsop.py,sha256=
|
|
24
|
+
lambdadb/models/deletedocsop.py,sha256=rC5IIrcEuNJ6dbTwRZZ4s3hFjh3mqjTukYm3LWiWcpY,1860
|
|
25
25
|
lambdadb/models/fetchdocsop.py,sha256=_ibdRiBm83QDh5TzcLyXLcJ8eykxokxRf28l8zvNoOI,3283
|
|
26
|
-
lambdadb/models/filter_.py,sha256=w_Sfldxxb9f1Xw4pWEmQ_L_naSFLifpdlejL1CeSnWk,554
|
|
27
26
|
lambdadb/models/getbulkupsertdocsop.py,sha256=oUkcvIkrM_wIxrCoB_X-jBL9QqA_qpo7olh24vBSdWQ,2586
|
|
28
27
|
lambdadb/models/getcollectionop.py,sha256=9X_4fW9sYfXVe_gPqCbnKBEr0z7ss_wNrhRdSXhNSRU,865
|
|
29
|
-
lambdadb/models/ids.py,sha256=au0wwB6mlctvODTLJnpzISvc2I_MBVj3PZ0XbnLeV38,374
|
|
30
28
|
lambdadb/models/indexconfigs_union.py,sha256=LW0afqNPHxSd7PVyhi9bWALLkofPpewIzWCH5hlghkI,2055
|
|
31
29
|
lambdadb/models/listcollectionsop.py,sha256=6dtHxlLG8Bu9DbPdzlVRVvHCGmuIp0E4NTYYINq6fOg,1081
|
|
32
30
|
lambdadb/models/querycollectionop.py,sha256=iae2F6vxrLAkE3tO0e5bitp1a9l-q_dBGiRewmBGmWc,4485
|
|
@@ -56,7 +54,7 @@ lambdadb/utils/security.py,sha256=Dq3M6Ee_x_uWRPZ7vvM4XQNxjCMSlphrRn6qVs1pljU,60
|
|
|
56
54
|
lambdadb/utils/serializers.py,sha256=hiHBXM1AY8_N2Z_rvFfNSYwvLBkSQlPGFp8poasdU4s,5986
|
|
57
55
|
lambdadb/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
|
|
58
56
|
lambdadb/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
|
|
59
|
-
lambdadb-0.3.
|
|
60
|
-
lambdadb-0.3.
|
|
61
|
-
lambdadb-0.3.
|
|
62
|
-
lambdadb-0.3.
|
|
57
|
+
lambdadb-0.3.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
58
|
+
lambdadb-0.3.3.dist-info/METADATA,sha256=fJq9mM711Hmx0pJ3i2KlNIhCyzt9sv_G1GdzombXpjU,18689
|
|
59
|
+
lambdadb-0.3.3.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
60
|
+
lambdadb-0.3.3.dist-info/RECORD,,
|
lambdadb/models/filter_.py
DELETED
|
@@ -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."""
|
lambdadb/models/ids.py
DELETED
|
@@ -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
|