lambdadb 0.1.2__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/__init__.py +17 -0
- lambdadb/_hooks/__init__.py +5 -0
- lambdadb/_hooks/registration.py +13 -0
- lambdadb/_hooks/sdkhooks.py +76 -0
- lambdadb/_hooks/types.py +106 -0
- lambdadb/_version.py +15 -0
- lambdadb/basesdk.py +358 -0
- lambdadb/collections.py +1630 -0
- lambdadb/docs.py +1328 -0
- lambdadb/errors/__init__.py +74 -0
- lambdadb/errors/apierror.py +22 -0
- lambdadb/errors/badrequest_error.py +20 -0
- lambdadb/errors/internalservererror.py +20 -0
- lambdadb/errors/resourcealreadyexists_error.py +20 -0
- lambdadb/errors/resourcenotfound_error.py +20 -0
- lambdadb/errors/toomanyrequests_error.py +20 -0
- lambdadb/errors/unauthenticated_error.py +20 -0
- lambdadb/httpclient.py +126 -0
- lambdadb/models/__init__.py +420 -0
- lambdadb/models/bulkupsertdocsop.py +59 -0
- lambdadb/models/collectionresponse.py +64 -0
- lambdadb/models/createcollectionop.py +64 -0
- lambdadb/models/createprojectop.py +39 -0
- lambdadb/models/deletecollectionop.py +43 -0
- lambdadb/models/deletedocsop.py +88 -0
- lambdadb/models/deleteprojectop.py +52 -0
- lambdadb/models/fetchdocsop.py +102 -0
- lambdadb/models/getbulkupsertdocsop.py +82 -0
- lambdadb/models/getcollectionop.py +30 -0
- lambdadb/models/getprojectop.py +39 -0
- lambdadb/models/indexconfigs_union.py +95 -0
- lambdadb/models/listcollectionsop.py +35 -0
- lambdadb/models/listprojectsop.py +38 -0
- lambdadb/models/projectresponse.py +38 -0
- lambdadb/models/querycollectionop.py +152 -0
- lambdadb/models/security.py +25 -0
- lambdadb/models/status.py +12 -0
- lambdadb/models/updatecollectionop.py +48 -0
- lambdadb/models/updateprojectop.py +58 -0
- lambdadb/models/upsertdocsop.py +67 -0
- lambdadb/projects.py +1228 -0
- lambdadb/py.typed +1 -0
- lambdadb/sdk.py +170 -0
- lambdadb/sdkconfiguration.py +56 -0
- lambdadb/types/__init__.py +21 -0
- lambdadb/types/basemodel.py +39 -0
- lambdadb/utils/__init__.py +187 -0
- lambdadb/utils/annotations.py +55 -0
- lambdadb/utils/datetimes.py +23 -0
- lambdadb/utils/enums.py +74 -0
- lambdadb/utils/eventstreaming.py +238 -0
- lambdadb/utils/forms.py +202 -0
- lambdadb/utils/headers.py +136 -0
- lambdadb/utils/logger.py +27 -0
- lambdadb/utils/metadata.py +118 -0
- lambdadb/utils/queryparams.py +205 -0
- lambdadb/utils/requestbodies.py +66 -0
- lambdadb/utils/retries.py +217 -0
- lambdadb/utils/security.py +192 -0
- lambdadb/utils/serializers.py +248 -0
- lambdadb/utils/url.py +155 -0
- lambdadb/utils/values.py +137 -0
- lambdadb-0.1.2.dist-info/LICENSE +201 -0
- lambdadb-0.1.2.dist-info/METADATA +514 -0
- lambdadb-0.1.2.dist-info/RECORD +66 -0
- lambdadb-0.1.2.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,420 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
from importlib import import_module
|
|
5
|
+
|
|
6
|
+
if TYPE_CHECKING:
|
|
7
|
+
from .bulkupsertdocsop import (
|
|
8
|
+
BulkUpsertDocsRequest,
|
|
9
|
+
BulkUpsertDocsRequestBody,
|
|
10
|
+
BulkUpsertDocsRequestBodyTypedDict,
|
|
11
|
+
BulkUpsertDocsRequestTypedDict,
|
|
12
|
+
BulkUpsertDocsResponse,
|
|
13
|
+
BulkUpsertDocsResponseTypedDict,
|
|
14
|
+
)
|
|
15
|
+
from .collectionresponse import CollectionResponse, CollectionResponseTypedDict
|
|
16
|
+
from .createcollectionop import (
|
|
17
|
+
CreateCollectionRequest,
|
|
18
|
+
CreateCollectionRequestBody,
|
|
19
|
+
CreateCollectionRequestBodyTypedDict,
|
|
20
|
+
CreateCollectionRequestTypedDict,
|
|
21
|
+
)
|
|
22
|
+
from .createprojectop import (
|
|
23
|
+
CreateProjectRequest,
|
|
24
|
+
CreateProjectRequestTypedDict,
|
|
25
|
+
CreateProjectSecurity,
|
|
26
|
+
CreateProjectSecurityTypedDict,
|
|
27
|
+
)
|
|
28
|
+
from .deletecollectionop import (
|
|
29
|
+
DeleteCollectionRequest,
|
|
30
|
+
DeleteCollectionRequestTypedDict,
|
|
31
|
+
DeleteCollectionResponse,
|
|
32
|
+
DeleteCollectionResponseTypedDict,
|
|
33
|
+
)
|
|
34
|
+
from .deletedocsop import (
|
|
35
|
+
DeleteDocsRequest,
|
|
36
|
+
DeleteDocsRequestBody,
|
|
37
|
+
DeleteDocsRequestBodyTypedDict,
|
|
38
|
+
DeleteDocsRequestTypedDict,
|
|
39
|
+
DeleteDocsResponse,
|
|
40
|
+
DeleteDocsResponseTypedDict,
|
|
41
|
+
Filter,
|
|
42
|
+
FilterTypedDict,
|
|
43
|
+
RequestBody1,
|
|
44
|
+
RequestBody1TypedDict,
|
|
45
|
+
RequestBody2,
|
|
46
|
+
RequestBody2TypedDict,
|
|
47
|
+
)
|
|
48
|
+
from .deleteprojectop import (
|
|
49
|
+
DeleteProjectRequest,
|
|
50
|
+
DeleteProjectRequestTypedDict,
|
|
51
|
+
DeleteProjectResponse,
|
|
52
|
+
DeleteProjectResponseTypedDict,
|
|
53
|
+
DeleteProjectSecurity,
|
|
54
|
+
DeleteProjectSecurityTypedDict,
|
|
55
|
+
)
|
|
56
|
+
from .fetchdocsop import (
|
|
57
|
+
FetchDocsDoc,
|
|
58
|
+
FetchDocsDocDoc,
|
|
59
|
+
FetchDocsDocDocTypedDict,
|
|
60
|
+
FetchDocsDocTypedDict,
|
|
61
|
+
FetchDocsRequest,
|
|
62
|
+
FetchDocsRequestBody,
|
|
63
|
+
FetchDocsRequestBodyTypedDict,
|
|
64
|
+
FetchDocsRequestTypedDict,
|
|
65
|
+
FetchDocsResponse,
|
|
66
|
+
FetchDocsResponseTypedDict,
|
|
67
|
+
)
|
|
68
|
+
from .getbulkupsertdocsop import (
|
|
69
|
+
GetBulkUpsertDocsRequest,
|
|
70
|
+
GetBulkUpsertDocsRequestTypedDict,
|
|
71
|
+
GetBulkUpsertDocsResponse,
|
|
72
|
+
GetBulkUpsertDocsResponseTypedDict,
|
|
73
|
+
GetBulkUpsertDocsType,
|
|
74
|
+
HTTPMethod,
|
|
75
|
+
)
|
|
76
|
+
from .getcollectionop import GetCollectionRequest, GetCollectionRequestTypedDict
|
|
77
|
+
from .getprojectop import (
|
|
78
|
+
GetProjectRequest,
|
|
79
|
+
GetProjectRequestTypedDict,
|
|
80
|
+
GetProjectSecurity,
|
|
81
|
+
GetProjectSecurityTypedDict,
|
|
82
|
+
)
|
|
83
|
+
from .indexconfigs_union import (
|
|
84
|
+
Analyzer,
|
|
85
|
+
IndexConfigs,
|
|
86
|
+
IndexConfigsText,
|
|
87
|
+
IndexConfigsTextTypedDict,
|
|
88
|
+
IndexConfigsTypedDict,
|
|
89
|
+
IndexConfigsUnion,
|
|
90
|
+
IndexConfigsUnionTypedDict,
|
|
91
|
+
IndexConfigsVector,
|
|
92
|
+
IndexConfigsVectorTypedDict,
|
|
93
|
+
Similarity,
|
|
94
|
+
Type,
|
|
95
|
+
TypeText,
|
|
96
|
+
TypeVector,
|
|
97
|
+
)
|
|
98
|
+
from .listcollectionsop import (
|
|
99
|
+
ListcollectionsRequest,
|
|
100
|
+
ListcollectionsRequestTypedDict,
|
|
101
|
+
ListcollectionsResponse,
|
|
102
|
+
ListcollectionsResponseTypedDict,
|
|
103
|
+
)
|
|
104
|
+
from .listprojectsop import (
|
|
105
|
+
ListProjectsResponse,
|
|
106
|
+
ListProjectsResponseTypedDict,
|
|
107
|
+
ListProjectsSecurity,
|
|
108
|
+
ListProjectsSecurityTypedDict,
|
|
109
|
+
)
|
|
110
|
+
from .projectresponse import ProjectResponse, ProjectResponseTypedDict
|
|
111
|
+
from .querycollectionop import (
|
|
112
|
+
Query,
|
|
113
|
+
QueryCollectionDoc,
|
|
114
|
+
QueryCollectionDocDoc,
|
|
115
|
+
QueryCollectionDocDocTypedDict,
|
|
116
|
+
QueryCollectionDocTypedDict,
|
|
117
|
+
QueryCollectionRequest,
|
|
118
|
+
QueryCollectionRequestBody,
|
|
119
|
+
QueryCollectionRequestBodyTypedDict,
|
|
120
|
+
QueryCollectionRequestTypedDict,
|
|
121
|
+
QueryCollectionResponse,
|
|
122
|
+
QueryCollectionResponseTypedDict,
|
|
123
|
+
QueryTypedDict,
|
|
124
|
+
Sort,
|
|
125
|
+
SortTypedDict,
|
|
126
|
+
)
|
|
127
|
+
from .security import Security, SecurityTypedDict
|
|
128
|
+
from .status import Status
|
|
129
|
+
from .updatecollectionop import (
|
|
130
|
+
UpdateCollectionRequest,
|
|
131
|
+
UpdateCollectionRequestBody,
|
|
132
|
+
UpdateCollectionRequestBodyTypedDict,
|
|
133
|
+
UpdateCollectionRequestTypedDict,
|
|
134
|
+
)
|
|
135
|
+
from .updateprojectop import (
|
|
136
|
+
UpdateProjectRequest,
|
|
137
|
+
UpdateProjectRequestBody,
|
|
138
|
+
UpdateProjectRequestBodyTypedDict,
|
|
139
|
+
UpdateProjectRequestTypedDict,
|
|
140
|
+
UpdateProjectSecurity,
|
|
141
|
+
UpdateProjectSecurityTypedDict,
|
|
142
|
+
)
|
|
143
|
+
from .upsertdocsop import (
|
|
144
|
+
UpsertDocsDoc,
|
|
145
|
+
UpsertDocsDocTypedDict,
|
|
146
|
+
UpsertDocsRequest,
|
|
147
|
+
UpsertDocsRequestBody,
|
|
148
|
+
UpsertDocsRequestBodyTypedDict,
|
|
149
|
+
UpsertDocsRequestTypedDict,
|
|
150
|
+
UpsertDocsResponse,
|
|
151
|
+
UpsertDocsResponseTypedDict,
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
__all__ = [
|
|
155
|
+
"Analyzer",
|
|
156
|
+
"BulkUpsertDocsRequest",
|
|
157
|
+
"BulkUpsertDocsRequestBody",
|
|
158
|
+
"BulkUpsertDocsRequestBodyTypedDict",
|
|
159
|
+
"BulkUpsertDocsRequestTypedDict",
|
|
160
|
+
"BulkUpsertDocsResponse",
|
|
161
|
+
"BulkUpsertDocsResponseTypedDict",
|
|
162
|
+
"CollectionResponse",
|
|
163
|
+
"CollectionResponseTypedDict",
|
|
164
|
+
"CreateCollectionRequest",
|
|
165
|
+
"CreateCollectionRequestBody",
|
|
166
|
+
"CreateCollectionRequestBodyTypedDict",
|
|
167
|
+
"CreateCollectionRequestTypedDict",
|
|
168
|
+
"CreateProjectRequest",
|
|
169
|
+
"CreateProjectRequestTypedDict",
|
|
170
|
+
"CreateProjectSecurity",
|
|
171
|
+
"CreateProjectSecurityTypedDict",
|
|
172
|
+
"DeleteCollectionRequest",
|
|
173
|
+
"DeleteCollectionRequestTypedDict",
|
|
174
|
+
"DeleteCollectionResponse",
|
|
175
|
+
"DeleteCollectionResponseTypedDict",
|
|
176
|
+
"DeleteDocsRequest",
|
|
177
|
+
"DeleteDocsRequestBody",
|
|
178
|
+
"DeleteDocsRequestBodyTypedDict",
|
|
179
|
+
"DeleteDocsRequestTypedDict",
|
|
180
|
+
"DeleteDocsResponse",
|
|
181
|
+
"DeleteDocsResponseTypedDict",
|
|
182
|
+
"DeleteProjectRequest",
|
|
183
|
+
"DeleteProjectRequestTypedDict",
|
|
184
|
+
"DeleteProjectResponse",
|
|
185
|
+
"DeleteProjectResponseTypedDict",
|
|
186
|
+
"DeleteProjectSecurity",
|
|
187
|
+
"DeleteProjectSecurityTypedDict",
|
|
188
|
+
"FetchDocsDoc",
|
|
189
|
+
"FetchDocsDocDoc",
|
|
190
|
+
"FetchDocsDocDocTypedDict",
|
|
191
|
+
"FetchDocsDocTypedDict",
|
|
192
|
+
"FetchDocsRequest",
|
|
193
|
+
"FetchDocsRequestBody",
|
|
194
|
+
"FetchDocsRequestBodyTypedDict",
|
|
195
|
+
"FetchDocsRequestTypedDict",
|
|
196
|
+
"FetchDocsResponse",
|
|
197
|
+
"FetchDocsResponseTypedDict",
|
|
198
|
+
"Filter",
|
|
199
|
+
"FilterTypedDict",
|
|
200
|
+
"GetBulkUpsertDocsRequest",
|
|
201
|
+
"GetBulkUpsertDocsRequestTypedDict",
|
|
202
|
+
"GetBulkUpsertDocsResponse",
|
|
203
|
+
"GetBulkUpsertDocsResponseTypedDict",
|
|
204
|
+
"GetBulkUpsertDocsType",
|
|
205
|
+
"GetCollectionRequest",
|
|
206
|
+
"GetCollectionRequestTypedDict",
|
|
207
|
+
"GetProjectRequest",
|
|
208
|
+
"GetProjectRequestTypedDict",
|
|
209
|
+
"GetProjectSecurity",
|
|
210
|
+
"GetProjectSecurityTypedDict",
|
|
211
|
+
"HTTPMethod",
|
|
212
|
+
"IndexConfigs",
|
|
213
|
+
"IndexConfigsText",
|
|
214
|
+
"IndexConfigsTextTypedDict",
|
|
215
|
+
"IndexConfigsTypedDict",
|
|
216
|
+
"IndexConfigsUnion",
|
|
217
|
+
"IndexConfigsUnionTypedDict",
|
|
218
|
+
"IndexConfigsVector",
|
|
219
|
+
"IndexConfigsVectorTypedDict",
|
|
220
|
+
"ListProjectsResponse",
|
|
221
|
+
"ListProjectsResponseTypedDict",
|
|
222
|
+
"ListProjectsSecurity",
|
|
223
|
+
"ListProjectsSecurityTypedDict",
|
|
224
|
+
"ListcollectionsRequest",
|
|
225
|
+
"ListcollectionsRequestTypedDict",
|
|
226
|
+
"ListcollectionsResponse",
|
|
227
|
+
"ListcollectionsResponseTypedDict",
|
|
228
|
+
"ProjectResponse",
|
|
229
|
+
"ProjectResponseTypedDict",
|
|
230
|
+
"Query",
|
|
231
|
+
"QueryCollectionDoc",
|
|
232
|
+
"QueryCollectionDocDoc",
|
|
233
|
+
"QueryCollectionDocDocTypedDict",
|
|
234
|
+
"QueryCollectionDocTypedDict",
|
|
235
|
+
"QueryCollectionRequest",
|
|
236
|
+
"QueryCollectionRequestBody",
|
|
237
|
+
"QueryCollectionRequestBodyTypedDict",
|
|
238
|
+
"QueryCollectionRequestTypedDict",
|
|
239
|
+
"QueryCollectionResponse",
|
|
240
|
+
"QueryCollectionResponseTypedDict",
|
|
241
|
+
"QueryTypedDict",
|
|
242
|
+
"RequestBody1",
|
|
243
|
+
"RequestBody1TypedDict",
|
|
244
|
+
"RequestBody2",
|
|
245
|
+
"RequestBody2TypedDict",
|
|
246
|
+
"Security",
|
|
247
|
+
"SecurityTypedDict",
|
|
248
|
+
"Similarity",
|
|
249
|
+
"Sort",
|
|
250
|
+
"SortTypedDict",
|
|
251
|
+
"Status",
|
|
252
|
+
"Type",
|
|
253
|
+
"TypeText",
|
|
254
|
+
"TypeVector",
|
|
255
|
+
"UpdateCollectionRequest",
|
|
256
|
+
"UpdateCollectionRequestBody",
|
|
257
|
+
"UpdateCollectionRequestBodyTypedDict",
|
|
258
|
+
"UpdateCollectionRequestTypedDict",
|
|
259
|
+
"UpdateProjectRequest",
|
|
260
|
+
"UpdateProjectRequestBody",
|
|
261
|
+
"UpdateProjectRequestBodyTypedDict",
|
|
262
|
+
"UpdateProjectRequestTypedDict",
|
|
263
|
+
"UpdateProjectSecurity",
|
|
264
|
+
"UpdateProjectSecurityTypedDict",
|
|
265
|
+
"UpsertDocsDoc",
|
|
266
|
+
"UpsertDocsDocTypedDict",
|
|
267
|
+
"UpsertDocsRequest",
|
|
268
|
+
"UpsertDocsRequestBody",
|
|
269
|
+
"UpsertDocsRequestBodyTypedDict",
|
|
270
|
+
"UpsertDocsRequestTypedDict",
|
|
271
|
+
"UpsertDocsResponse",
|
|
272
|
+
"UpsertDocsResponseTypedDict",
|
|
273
|
+
]
|
|
274
|
+
|
|
275
|
+
_dynamic_imports: dict[str, str] = {
|
|
276
|
+
"BulkUpsertDocsRequest": ".bulkupsertdocsop",
|
|
277
|
+
"BulkUpsertDocsRequestBody": ".bulkupsertdocsop",
|
|
278
|
+
"BulkUpsertDocsRequestBodyTypedDict": ".bulkupsertdocsop",
|
|
279
|
+
"BulkUpsertDocsRequestTypedDict": ".bulkupsertdocsop",
|
|
280
|
+
"BulkUpsertDocsResponse": ".bulkupsertdocsop",
|
|
281
|
+
"BulkUpsertDocsResponseTypedDict": ".bulkupsertdocsop",
|
|
282
|
+
"CollectionResponse": ".collectionresponse",
|
|
283
|
+
"CollectionResponseTypedDict": ".collectionresponse",
|
|
284
|
+
"CreateCollectionRequest": ".createcollectionop",
|
|
285
|
+
"CreateCollectionRequestBody": ".createcollectionop",
|
|
286
|
+
"CreateCollectionRequestBodyTypedDict": ".createcollectionop",
|
|
287
|
+
"CreateCollectionRequestTypedDict": ".createcollectionop",
|
|
288
|
+
"CreateProjectRequest": ".createprojectop",
|
|
289
|
+
"CreateProjectRequestTypedDict": ".createprojectop",
|
|
290
|
+
"CreateProjectSecurity": ".createprojectop",
|
|
291
|
+
"CreateProjectSecurityTypedDict": ".createprojectop",
|
|
292
|
+
"DeleteCollectionRequest": ".deletecollectionop",
|
|
293
|
+
"DeleteCollectionRequestTypedDict": ".deletecollectionop",
|
|
294
|
+
"DeleteCollectionResponse": ".deletecollectionop",
|
|
295
|
+
"DeleteCollectionResponseTypedDict": ".deletecollectionop",
|
|
296
|
+
"DeleteDocsRequest": ".deletedocsop",
|
|
297
|
+
"DeleteDocsRequestBody": ".deletedocsop",
|
|
298
|
+
"DeleteDocsRequestBodyTypedDict": ".deletedocsop",
|
|
299
|
+
"DeleteDocsRequestTypedDict": ".deletedocsop",
|
|
300
|
+
"DeleteDocsResponse": ".deletedocsop",
|
|
301
|
+
"DeleteDocsResponseTypedDict": ".deletedocsop",
|
|
302
|
+
"Filter": ".deletedocsop",
|
|
303
|
+
"FilterTypedDict": ".deletedocsop",
|
|
304
|
+
"RequestBody1": ".deletedocsop",
|
|
305
|
+
"RequestBody1TypedDict": ".deletedocsop",
|
|
306
|
+
"RequestBody2": ".deletedocsop",
|
|
307
|
+
"RequestBody2TypedDict": ".deletedocsop",
|
|
308
|
+
"DeleteProjectRequest": ".deleteprojectop",
|
|
309
|
+
"DeleteProjectRequestTypedDict": ".deleteprojectop",
|
|
310
|
+
"DeleteProjectResponse": ".deleteprojectop",
|
|
311
|
+
"DeleteProjectResponseTypedDict": ".deleteprojectop",
|
|
312
|
+
"DeleteProjectSecurity": ".deleteprojectop",
|
|
313
|
+
"DeleteProjectSecurityTypedDict": ".deleteprojectop",
|
|
314
|
+
"FetchDocsDoc": ".fetchdocsop",
|
|
315
|
+
"FetchDocsDocDoc": ".fetchdocsop",
|
|
316
|
+
"FetchDocsDocDocTypedDict": ".fetchdocsop",
|
|
317
|
+
"FetchDocsDocTypedDict": ".fetchdocsop",
|
|
318
|
+
"FetchDocsRequest": ".fetchdocsop",
|
|
319
|
+
"FetchDocsRequestBody": ".fetchdocsop",
|
|
320
|
+
"FetchDocsRequestBodyTypedDict": ".fetchdocsop",
|
|
321
|
+
"FetchDocsRequestTypedDict": ".fetchdocsop",
|
|
322
|
+
"FetchDocsResponse": ".fetchdocsop",
|
|
323
|
+
"FetchDocsResponseTypedDict": ".fetchdocsop",
|
|
324
|
+
"GetBulkUpsertDocsRequest": ".getbulkupsertdocsop",
|
|
325
|
+
"GetBulkUpsertDocsRequestTypedDict": ".getbulkupsertdocsop",
|
|
326
|
+
"GetBulkUpsertDocsResponse": ".getbulkupsertdocsop",
|
|
327
|
+
"GetBulkUpsertDocsResponseTypedDict": ".getbulkupsertdocsop",
|
|
328
|
+
"GetBulkUpsertDocsType": ".getbulkupsertdocsop",
|
|
329
|
+
"HTTPMethod": ".getbulkupsertdocsop",
|
|
330
|
+
"GetCollectionRequest": ".getcollectionop",
|
|
331
|
+
"GetCollectionRequestTypedDict": ".getcollectionop",
|
|
332
|
+
"GetProjectRequest": ".getprojectop",
|
|
333
|
+
"GetProjectRequestTypedDict": ".getprojectop",
|
|
334
|
+
"GetProjectSecurity": ".getprojectop",
|
|
335
|
+
"GetProjectSecurityTypedDict": ".getprojectop",
|
|
336
|
+
"Analyzer": ".indexconfigs_union",
|
|
337
|
+
"IndexConfigs": ".indexconfigs_union",
|
|
338
|
+
"IndexConfigsText": ".indexconfigs_union",
|
|
339
|
+
"IndexConfigsTextTypedDict": ".indexconfigs_union",
|
|
340
|
+
"IndexConfigsTypedDict": ".indexconfigs_union",
|
|
341
|
+
"IndexConfigsUnion": ".indexconfigs_union",
|
|
342
|
+
"IndexConfigsUnionTypedDict": ".indexconfigs_union",
|
|
343
|
+
"IndexConfigsVector": ".indexconfigs_union",
|
|
344
|
+
"IndexConfigsVectorTypedDict": ".indexconfigs_union",
|
|
345
|
+
"Similarity": ".indexconfigs_union",
|
|
346
|
+
"Type": ".indexconfigs_union",
|
|
347
|
+
"TypeText": ".indexconfigs_union",
|
|
348
|
+
"TypeVector": ".indexconfigs_union",
|
|
349
|
+
"ListcollectionsRequest": ".listcollectionsop",
|
|
350
|
+
"ListcollectionsRequestTypedDict": ".listcollectionsop",
|
|
351
|
+
"ListcollectionsResponse": ".listcollectionsop",
|
|
352
|
+
"ListcollectionsResponseTypedDict": ".listcollectionsop",
|
|
353
|
+
"ListProjectsResponse": ".listprojectsop",
|
|
354
|
+
"ListProjectsResponseTypedDict": ".listprojectsop",
|
|
355
|
+
"ListProjectsSecurity": ".listprojectsop",
|
|
356
|
+
"ListProjectsSecurityTypedDict": ".listprojectsop",
|
|
357
|
+
"ProjectResponse": ".projectresponse",
|
|
358
|
+
"ProjectResponseTypedDict": ".projectresponse",
|
|
359
|
+
"Query": ".querycollectionop",
|
|
360
|
+
"QueryCollectionDoc": ".querycollectionop",
|
|
361
|
+
"QueryCollectionDocDoc": ".querycollectionop",
|
|
362
|
+
"QueryCollectionDocDocTypedDict": ".querycollectionop",
|
|
363
|
+
"QueryCollectionDocTypedDict": ".querycollectionop",
|
|
364
|
+
"QueryCollectionRequest": ".querycollectionop",
|
|
365
|
+
"QueryCollectionRequestBody": ".querycollectionop",
|
|
366
|
+
"QueryCollectionRequestBodyTypedDict": ".querycollectionop",
|
|
367
|
+
"QueryCollectionRequestTypedDict": ".querycollectionop",
|
|
368
|
+
"QueryCollectionResponse": ".querycollectionop",
|
|
369
|
+
"QueryCollectionResponseTypedDict": ".querycollectionop",
|
|
370
|
+
"QueryTypedDict": ".querycollectionop",
|
|
371
|
+
"Sort": ".querycollectionop",
|
|
372
|
+
"SortTypedDict": ".querycollectionop",
|
|
373
|
+
"Security": ".security",
|
|
374
|
+
"SecurityTypedDict": ".security",
|
|
375
|
+
"Status": ".status",
|
|
376
|
+
"UpdateCollectionRequest": ".updatecollectionop",
|
|
377
|
+
"UpdateCollectionRequestBody": ".updatecollectionop",
|
|
378
|
+
"UpdateCollectionRequestBodyTypedDict": ".updatecollectionop",
|
|
379
|
+
"UpdateCollectionRequestTypedDict": ".updatecollectionop",
|
|
380
|
+
"UpdateProjectRequest": ".updateprojectop",
|
|
381
|
+
"UpdateProjectRequestBody": ".updateprojectop",
|
|
382
|
+
"UpdateProjectRequestBodyTypedDict": ".updateprojectop",
|
|
383
|
+
"UpdateProjectRequestTypedDict": ".updateprojectop",
|
|
384
|
+
"UpdateProjectSecurity": ".updateprojectop",
|
|
385
|
+
"UpdateProjectSecurityTypedDict": ".updateprojectop",
|
|
386
|
+
"UpsertDocsDoc": ".upsertdocsop",
|
|
387
|
+
"UpsertDocsDocTypedDict": ".upsertdocsop",
|
|
388
|
+
"UpsertDocsRequest": ".upsertdocsop",
|
|
389
|
+
"UpsertDocsRequestBody": ".upsertdocsop",
|
|
390
|
+
"UpsertDocsRequestBodyTypedDict": ".upsertdocsop",
|
|
391
|
+
"UpsertDocsRequestTypedDict": ".upsertdocsop",
|
|
392
|
+
"UpsertDocsResponse": ".upsertdocsop",
|
|
393
|
+
"UpsertDocsResponseTypedDict": ".upsertdocsop",
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
def __getattr__(attr_name: str) -> object:
|
|
398
|
+
module_name = _dynamic_imports.get(attr_name)
|
|
399
|
+
if module_name is None:
|
|
400
|
+
raise AttributeError(
|
|
401
|
+
f"No {attr_name} found in _dynamic_imports for module name -> {__name__} "
|
|
402
|
+
)
|
|
403
|
+
|
|
404
|
+
try:
|
|
405
|
+
module = import_module(module_name, __package__)
|
|
406
|
+
result = getattr(module, attr_name)
|
|
407
|
+
return result
|
|
408
|
+
except ImportError as e:
|
|
409
|
+
raise ImportError(
|
|
410
|
+
f"Failed to import {attr_name} from {module_name}: {e}"
|
|
411
|
+
) from e
|
|
412
|
+
except AttributeError as e:
|
|
413
|
+
raise AttributeError(
|
|
414
|
+
f"Failed to get {attr_name} from {module_name}: {e}"
|
|
415
|
+
) from e
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
def __dir__():
|
|
419
|
+
lazy_attrs = list(_dynamic_imports.keys())
|
|
420
|
+
return sorted(lazy_attrs)
|
|
@@ -0,0 +1,59 @@
|
|
|
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 Optional
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class BulkUpsertDocsRequestBodyTypedDict(TypedDict):
|
|
12
|
+
object_key: str
|
|
13
|
+
r"""Object key uploaded based on bulk upsert info."""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class BulkUpsertDocsRequestBody(BaseModel):
|
|
17
|
+
object_key: Annotated[str, pydantic.Field(alias="objectKey")]
|
|
18
|
+
r"""Object key uploaded based on bulk upsert info."""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class BulkUpsertDocsRequestTypedDict(TypedDict):
|
|
22
|
+
project_name: str
|
|
23
|
+
r"""Project name."""
|
|
24
|
+
collection_name: str
|
|
25
|
+
r"""Collection name."""
|
|
26
|
+
request_body: BulkUpsertDocsRequestBodyTypedDict
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class BulkUpsertDocsRequest(BaseModel):
|
|
30
|
+
project_name: Annotated[
|
|
31
|
+
str,
|
|
32
|
+
pydantic.Field(alias="projectName"),
|
|
33
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
34
|
+
]
|
|
35
|
+
r"""Project name."""
|
|
36
|
+
|
|
37
|
+
collection_name: Annotated[
|
|
38
|
+
str,
|
|
39
|
+
pydantic.Field(alias="collectionName"),
|
|
40
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
41
|
+
]
|
|
42
|
+
r"""Collection name."""
|
|
43
|
+
|
|
44
|
+
request_body: Annotated[
|
|
45
|
+
BulkUpsertDocsRequestBody,
|
|
46
|
+
FieldMetadata(request=RequestMetadata(media_type="application/json")),
|
|
47
|
+
]
|
|
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
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .indexconfigs_union import IndexConfigsUnion, IndexConfigsUnionTypedDict
|
|
5
|
+
from .status import Status
|
|
6
|
+
from lambdadb.types import BaseModel
|
|
7
|
+
import pydantic
|
|
8
|
+
from typing import Dict, Optional
|
|
9
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class CollectionResponseTypedDict(TypedDict):
|
|
13
|
+
project_name: NotRequired[str]
|
|
14
|
+
r"""Project name."""
|
|
15
|
+
collection_name: NotRequired[str]
|
|
16
|
+
r"""Collection name."""
|
|
17
|
+
index_configs: NotRequired[Dict[str, IndexConfigsUnionTypedDict]]
|
|
18
|
+
num_docs: NotRequired[int]
|
|
19
|
+
r"""Total number of documents."""
|
|
20
|
+
source_project_name: NotRequired[str]
|
|
21
|
+
r"""Source project name."""
|
|
22
|
+
source_collection_name: NotRequired[str]
|
|
23
|
+
r"""Source collection name."""
|
|
24
|
+
source_collection_version_id: NotRequired[str]
|
|
25
|
+
r"""Source collection version."""
|
|
26
|
+
collection_status: NotRequired[Status]
|
|
27
|
+
r"""Status"""
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class CollectionResponse(BaseModel):
|
|
31
|
+
project_name: Annotated[Optional[str], pydantic.Field(alias="projectName")] = None
|
|
32
|
+
r"""Project name."""
|
|
33
|
+
|
|
34
|
+
collection_name: Annotated[
|
|
35
|
+
Optional[str], pydantic.Field(alias="collectionName")
|
|
36
|
+
] = None
|
|
37
|
+
r"""Collection name."""
|
|
38
|
+
|
|
39
|
+
index_configs: Annotated[
|
|
40
|
+
Optional[Dict[str, IndexConfigsUnion]], pydantic.Field(alias="indexConfigs")
|
|
41
|
+
] = None
|
|
42
|
+
|
|
43
|
+
num_docs: Annotated[Optional[int], pydantic.Field(alias="numDocs")] = None
|
|
44
|
+
r"""Total number of documents."""
|
|
45
|
+
|
|
46
|
+
source_project_name: Annotated[
|
|
47
|
+
Optional[str], pydantic.Field(alias="sourceProjectName")
|
|
48
|
+
] = None
|
|
49
|
+
r"""Source project name."""
|
|
50
|
+
|
|
51
|
+
source_collection_name: Annotated[
|
|
52
|
+
Optional[str], pydantic.Field(alias="sourceCollectionName")
|
|
53
|
+
] = None
|
|
54
|
+
r"""Source collection name."""
|
|
55
|
+
|
|
56
|
+
source_collection_version_id: Annotated[
|
|
57
|
+
Optional[str], pydantic.Field(alias="sourceCollectionVersionId")
|
|
58
|
+
] = None
|
|
59
|
+
r"""Source collection version."""
|
|
60
|
+
|
|
61
|
+
collection_status: Annotated[
|
|
62
|
+
Optional[Status], pydantic.Field(alias="collectionStatus")
|
|
63
|
+
] = None
|
|
64
|
+
r"""Status"""
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .indexconfigs_union import IndexConfigsUnion, IndexConfigsUnionTypedDict
|
|
5
|
+
from lambdadb.types import BaseModel
|
|
6
|
+
from lambdadb.utils import FieldMetadata, PathParamMetadata, RequestMetadata
|
|
7
|
+
import pydantic
|
|
8
|
+
from typing import Dict, Optional
|
|
9
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class CreateCollectionRequestBodyTypedDict(TypedDict):
|
|
13
|
+
collection_name: str
|
|
14
|
+
r"""Collection name must be unique within a project and the supported maximum length is 52."""
|
|
15
|
+
index_configs: NotRequired[Dict[str, IndexConfigsUnionTypedDict]]
|
|
16
|
+
source_project_name: NotRequired[str]
|
|
17
|
+
source_collection_name: NotRequired[str]
|
|
18
|
+
source_datetime: NotRequired[str]
|
|
19
|
+
source_project_api_key: NotRequired[str]
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class CreateCollectionRequestBody(BaseModel):
|
|
23
|
+
collection_name: Annotated[str, pydantic.Field(alias="collectionName")]
|
|
24
|
+
r"""Collection name must be unique within a project and the supported maximum length is 52."""
|
|
25
|
+
|
|
26
|
+
index_configs: Annotated[
|
|
27
|
+
Optional[Dict[str, IndexConfigsUnion]], pydantic.Field(alias="indexConfigs")
|
|
28
|
+
] = None
|
|
29
|
+
|
|
30
|
+
source_project_name: Annotated[
|
|
31
|
+
Optional[str], pydantic.Field(alias="sourceProjectName")
|
|
32
|
+
] = None
|
|
33
|
+
|
|
34
|
+
source_collection_name: Annotated[
|
|
35
|
+
Optional[str], pydantic.Field(alias="sourceCollectionName")
|
|
36
|
+
] = None
|
|
37
|
+
|
|
38
|
+
source_datetime: Annotated[
|
|
39
|
+
Optional[str], pydantic.Field(alias="sourceDatetime")
|
|
40
|
+
] = None
|
|
41
|
+
|
|
42
|
+
source_project_api_key: Annotated[
|
|
43
|
+
Optional[str], pydantic.Field(alias="sourceProjectApiKey")
|
|
44
|
+
] = None
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class CreateCollectionRequestTypedDict(TypedDict):
|
|
48
|
+
project_name: str
|
|
49
|
+
r"""Project name."""
|
|
50
|
+
request_body: CreateCollectionRequestBodyTypedDict
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
class CreateCollectionRequest(BaseModel):
|
|
54
|
+
project_name: Annotated[
|
|
55
|
+
str,
|
|
56
|
+
pydantic.Field(alias="projectName"),
|
|
57
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
58
|
+
]
|
|
59
|
+
r"""Project name."""
|
|
60
|
+
|
|
61
|
+
request_body: Annotated[
|
|
62
|
+
CreateCollectionRequestBody,
|
|
63
|
+
FieldMetadata(request=RequestMetadata(media_type="application/json")),
|
|
64
|
+
]
|
|
@@ -0,0 +1,39 @@
|
|
|
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, SecurityMetadata
|
|
6
|
+
import pydantic
|
|
7
|
+
from typing import Optional
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class CreateProjectSecurityTypedDict(TypedDict):
|
|
12
|
+
admin_api_key: str
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class CreateProjectSecurity(BaseModel):
|
|
16
|
+
admin_api_key: Annotated[
|
|
17
|
+
str,
|
|
18
|
+
FieldMetadata(
|
|
19
|
+
security=SecurityMetadata(
|
|
20
|
+
scheme=True,
|
|
21
|
+
scheme_type="apiKey",
|
|
22
|
+
sub_type="header",
|
|
23
|
+
field_name="x-api-key",
|
|
24
|
+
)
|
|
25
|
+
),
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class CreateProjectRequestTypedDict(TypedDict):
|
|
30
|
+
project_name: NotRequired[str]
|
|
31
|
+
r"""Displayed project name. Note that the supported maximum length is 45."""
|
|
32
|
+
rate_limit: NotRequired[float]
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class CreateProjectRequest(BaseModel):
|
|
36
|
+
project_name: Annotated[Optional[str], pydantic.Field(alias="projectName")] = None
|
|
37
|
+
r"""Displayed project name. Note that the supported maximum length is 45."""
|
|
38
|
+
|
|
39
|
+
rate_limit: Annotated[Optional[float], pydantic.Field(alias="rateLimit")] = None
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
|
6
|
+
import pydantic
|
|
7
|
+
from typing import Optional
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DeleteCollectionRequestTypedDict(TypedDict):
|
|
12
|
+
project_name: str
|
|
13
|
+
r"""Project name."""
|
|
14
|
+
collection_name: str
|
|
15
|
+
r"""Collection name."""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class DeleteCollectionRequest(BaseModel):
|
|
19
|
+
project_name: Annotated[
|
|
20
|
+
str,
|
|
21
|
+
pydantic.Field(alias="projectName"),
|
|
22
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
23
|
+
]
|
|
24
|
+
r"""Project name."""
|
|
25
|
+
|
|
26
|
+
collection_name: Annotated[
|
|
27
|
+
str,
|
|
28
|
+
pydantic.Field(alias="collectionName"),
|
|
29
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
30
|
+
]
|
|
31
|
+
r"""Collection name."""
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class DeleteCollectionResponseTypedDict(TypedDict):
|
|
35
|
+
r"""Collection delete request accepted."""
|
|
36
|
+
|
|
37
|
+
message: NotRequired[str]
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class DeleteCollectionResponse(BaseModel):
|
|
41
|
+
r"""Collection delete request accepted."""
|
|
42
|
+
|
|
43
|
+
message: Optional[str] = None
|