nucliadb-protos 6.3.5.post4044__py3-none-any.whl → 6.9.3.post5290__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 nucliadb-protos might be problematic. Click here for more details.
- .gitignore +1 -0
- build.py +56 -0
- nucliadb_protos/audit_pb2.py +43 -46
- nucliadb_protos/audit_pb2.pyi +64 -13
- nucliadb_protos/backups_pb2.py +13 -3
- nucliadb_protos/backups_pb2_grpc.py +20 -0
- nucliadb_protos/dataset_pb2.py +13 -3
- nucliadb_protos/dataset_pb2.pyi +2 -0
- nucliadb_protos/kb_usage_pb2.py +14 -4
- nucliadb_protos/knowledgebox_pb2.py +117 -113
- nucliadb_protos/knowledgebox_pb2.pyi +49 -21
- nucliadb_protos/migrations_pb2.py +13 -3
- nucliadb_protos/resources_pb2.py +237 -219
- nucliadb_protos/resources_pb2.pyi +76 -10
- nucliadb_protos/standalone_pb2.py +13 -3
- nucliadb_protos/standalone_pb2_grpc.py +49 -8
- nucliadb_protos/train_pb2.py +18 -40
- nucliadb_protos/train_pb2.pyi +5 -1
- nucliadb_protos/train_pb2_grpc.py +133 -32
- nucliadb_protos/train_pb2_grpc.pyi +5 -1
- nucliadb_protos/utils_pb2.py +17 -7
- nucliadb_protos/writer_pb2.py +166 -174
- nucliadb_protos/writer_pb2.pyi +38 -57
- nucliadb_protos/writer_pb2_grpc.py +259 -68
- nucliadb_protos/writer_pb2_grpc.pyi +6 -27
- {nucliadb_protos-6.3.5.post4044.dist-info → nucliadb_protos-6.9.3.post5290.dist-info}/METADATA +9 -9
- nucliadb_protos-6.9.3.post5290.dist-info/RECORD +37 -0
- {nucliadb_protos-6.3.5.post4044.dist-info → nucliadb_protos-6.9.3.post5290.dist-info}/WHEEL +1 -2
- nucliadb_protos-6.9.3.post5290.dist-info/entry_points.txt +4 -0
- nucliadb_protos/__init__.py +0 -0
- nucliadb_protos/nodereader_pb2.py +0 -187
- nucliadb_protos/nodereader_pb2.pyi +0 -1715
- nucliadb_protos/nodereader_pb2_grpc.py +0 -438
- nucliadb_protos/nodereader_pb2_grpc.pyi +0 -288
- nucliadb_protos/noderesources_pb2.py +0 -145
- nucliadb_protos/noderesources_pb2.pyi +0 -993
- nucliadb_protos/nodewriter_pb2.py +0 -80
- nucliadb_protos/nodewriter_pb2.pyi +0 -348
- nucliadb_protos/nodewriter_pb2_grpc.py +0 -430
- nucliadb_protos/nodewriter_pb2_grpc.pyi +0 -256
- nucliadb_protos-6.3.5.post4044.dist-info/RECORD +0 -46
- nucliadb_protos-6.3.5.post4044.dist-info/top_level.txt +0 -1
nucliadb_protos/writer_pb2.pyi
CHANGED
|
@@ -12,7 +12,6 @@ import google.protobuf.message
|
|
|
12
12
|
import google.protobuf.timestamp_pb2
|
|
13
13
|
import nucliadb_protos.audit_pb2
|
|
14
14
|
import nucliadb_protos.knowledgebox_pb2
|
|
15
|
-
import nucliadb_protos.noderesources_pb2
|
|
16
15
|
import nucliadb_protos.resources_pb2
|
|
17
16
|
import nucliadb_protos.utils_pb2
|
|
18
17
|
import sys
|
|
@@ -27,6 +26,7 @@ from nucliadb_protos.audit_pb2 import (
|
|
|
27
26
|
AuditField as AuditField,
|
|
28
27
|
AuditKBCounter as AuditKBCounter,
|
|
29
28
|
AuditRequest as AuditRequest,
|
|
29
|
+
AuditSearchRequest as AuditSearchRequest,
|
|
30
30
|
CHAT as CHAT,
|
|
31
31
|
CHROME_EXTENSION as CHROME_EXTENSION,
|
|
32
32
|
ChatAudit as ChatAudit,
|
|
@@ -57,6 +57,7 @@ from nucliadb_protos.knowledgebox_pb2 import (
|
|
|
57
57
|
CONFLICT as CONFLICT,
|
|
58
58
|
CreateExternalIndexProviderMetadata as CreateExternalIndexProviderMetadata,
|
|
59
59
|
CreatePineconeConfig as CreatePineconeConfig,
|
|
60
|
+
DENSE_F32 as DENSE_F32,
|
|
60
61
|
DeleteKnowledgeBoxResponse as DeleteKnowledgeBoxResponse,
|
|
61
62
|
DeletedEntitiesGroups as DeletedEntitiesGroups,
|
|
62
63
|
ERROR as ERROR,
|
|
@@ -90,37 +91,12 @@ from nucliadb_protos.knowledgebox_pb2 import (
|
|
|
90
91
|
TermSynonyms as TermSynonyms,
|
|
91
92
|
UNSET as UNSET,
|
|
92
93
|
UpdateKnowledgeBoxResponse as UpdateKnowledgeBoxResponse,
|
|
94
|
+
VectorIndexConfig as VectorIndexConfig,
|
|
93
95
|
VectorSet as VectorSet,
|
|
94
96
|
VectorSetConfig as VectorSetConfig,
|
|
95
97
|
VectorSetPurge as VectorSetPurge,
|
|
96
98
|
VectorSets as VectorSets,
|
|
97
|
-
|
|
98
|
-
from nucliadb_protos.noderesources_pb2 import (
|
|
99
|
-
EmptyQuery as EmptyQuery,
|
|
100
|
-
EmptyResponse as EmptyResponse,
|
|
101
|
-
IndexMetadata as IndexMetadata,
|
|
102
|
-
IndexParagraph as IndexParagraph,
|
|
103
|
-
IndexParagraphs as IndexParagraphs,
|
|
104
|
-
IndexRelation as IndexRelation,
|
|
105
|
-
IndexRelations as IndexRelations,
|
|
106
|
-
NodeMetadata as NodeMetadata,
|
|
107
|
-
ParagraphMetadata as ParagraphMetadata,
|
|
108
|
-
Position as Position,
|
|
109
|
-
Representation as Representation,
|
|
110
|
-
Resource as Resource,
|
|
111
|
-
ResourceID as ResourceID,
|
|
112
|
-
SentenceMetadata as SentenceMetadata,
|
|
113
|
-
Shard as Shard,
|
|
114
|
-
ShardCreated as ShardCreated,
|
|
115
|
-
ShardId as ShardId,
|
|
116
|
-
ShardIds as ShardIds,
|
|
117
|
-
ShardMetadata as ShardMetadata,
|
|
118
|
-
StringList as StringList,
|
|
119
|
-
TextInformation as TextInformation,
|
|
120
|
-
VectorSentence as VectorSentence,
|
|
121
|
-
VectorSetID as VectorSetID,
|
|
122
|
-
VectorSetList as VectorSetList,
|
|
123
|
-
VectorsetSentences as VectorsetSentences,
|
|
99
|
+
VectorType as VectorType,
|
|
124
100
|
)
|
|
125
101
|
from nucliadb_protos.resources_pb2 import (
|
|
126
102
|
AllFieldIDs as AllFieldIDs,
|
|
@@ -185,6 +161,8 @@ from nucliadb_protos.resources_pb2 import (
|
|
|
185
161
|
Representation as Representation,
|
|
186
162
|
RowsPreview as RowsPreview,
|
|
187
163
|
Sentence as Sentence,
|
|
164
|
+
SplitMetadata as SplitMetadata,
|
|
165
|
+
SplitsMetadata as SplitsMetadata,
|
|
188
166
|
TEXT as TEXT,
|
|
189
167
|
UserFieldMetadata as UserFieldMetadata,
|
|
190
168
|
UserMetadata as UserMetadata,
|
|
@@ -322,22 +300,39 @@ class Error(google.protobuf.message.Message):
|
|
|
322
300
|
EXTRACT: Error._ErrorCode.ValueType # 1
|
|
323
301
|
PROCESS: Error._ErrorCode.ValueType # 2
|
|
324
302
|
DATAAUGMENTATION: Error._ErrorCode.ValueType # 3
|
|
303
|
+
INDEX: Error._ErrorCode.ValueType # 4
|
|
325
304
|
|
|
326
305
|
class ErrorCode(_ErrorCode, metaclass=_ErrorCodeEnumTypeWrapper): ...
|
|
327
306
|
GENERIC: Error.ErrorCode.ValueType # 0
|
|
328
307
|
EXTRACT: Error.ErrorCode.ValueType # 1
|
|
329
308
|
PROCESS: Error.ErrorCode.ValueType # 2
|
|
330
309
|
DATAAUGMENTATION: Error.ErrorCode.ValueType # 3
|
|
310
|
+
INDEX: Error.ErrorCode.ValueType # 4
|
|
311
|
+
|
|
312
|
+
class _Severity:
|
|
313
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
314
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
315
|
+
|
|
316
|
+
class _SeverityEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Error._Severity.ValueType], builtins.type):
|
|
317
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
318
|
+
ERROR: Error._Severity.ValueType # 0
|
|
319
|
+
WARNING: Error._Severity.ValueType # 1
|
|
320
|
+
|
|
321
|
+
class Severity(_Severity, metaclass=_SeverityEnumTypeWrapper): ...
|
|
322
|
+
ERROR: Error.Severity.ValueType # 0
|
|
323
|
+
WARNING: Error.Severity.ValueType # 1
|
|
331
324
|
|
|
332
325
|
FIELD_FIELD_NUMBER: builtins.int
|
|
333
326
|
FIELD_TYPE_FIELD_NUMBER: builtins.int
|
|
334
327
|
ERROR_FIELD_NUMBER: builtins.int
|
|
335
328
|
CODE_FIELD_NUMBER: builtins.int
|
|
336
329
|
GENERATED_BY_FIELD_NUMBER: builtins.int
|
|
330
|
+
SEVERITY_FIELD_NUMBER: builtins.int
|
|
337
331
|
field: builtins.str
|
|
338
332
|
field_type: nucliadb_protos.resources_pb2.FieldType.ValueType
|
|
339
333
|
error: builtins.str
|
|
340
334
|
code: global___Error.ErrorCode.ValueType
|
|
335
|
+
severity: global___Error.Severity.ValueType
|
|
341
336
|
@property
|
|
342
337
|
def generated_by(self) -> global___Generator: ...
|
|
343
338
|
def __init__(
|
|
@@ -348,9 +343,10 @@ class Error(google.protobuf.message.Message):
|
|
|
348
343
|
error: builtins.str = ...,
|
|
349
344
|
code: global___Error.ErrorCode.ValueType = ...,
|
|
350
345
|
generated_by: global___Generator | None = ...,
|
|
346
|
+
severity: global___Error.Severity.ValueType = ...,
|
|
351
347
|
) -> None: ...
|
|
352
348
|
def HasField(self, field_name: typing.Literal["generated_by", b"generated_by"]) -> builtins.bool: ...
|
|
353
|
-
def ClearField(self, field_name: typing.Literal["code", b"code", "error", b"error", "field", b"field", "field_type", b"field_type", "generated_by", b"generated_by"]) -> None: ...
|
|
349
|
+
def ClearField(self, field_name: typing.Literal["code", b"code", "error", b"error", "field", b"field", "field_type", b"field_type", "generated_by", b"generated_by", "severity", b"severity"]) -> None: ...
|
|
354
350
|
|
|
355
351
|
global___Error = Error
|
|
356
352
|
|
|
@@ -365,17 +361,19 @@ class BrokerMessage(google.protobuf.message.Message):
|
|
|
365
361
|
class _MessageTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[BrokerMessage._MessageType.ValueType], builtins.type):
|
|
366
362
|
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
367
363
|
AUTOCOMMIT: BrokerMessage._MessageType.ValueType # 0
|
|
364
|
+
DELETE: BrokerMessage._MessageType.ValueType # 4
|
|
368
365
|
MULTI: BrokerMessage._MessageType.ValueType # 1
|
|
366
|
+
"""Deprecated, multi-commit transactions have never worked. Not implemented."""
|
|
369
367
|
COMMIT: BrokerMessage._MessageType.ValueType # 2
|
|
370
368
|
ROLLBACK: BrokerMessage._MessageType.ValueType # 3
|
|
371
|
-
DELETE: BrokerMessage._MessageType.ValueType # 4
|
|
372
369
|
|
|
373
370
|
class MessageType(_MessageType, metaclass=_MessageTypeEnumTypeWrapper): ...
|
|
374
371
|
AUTOCOMMIT: BrokerMessage.MessageType.ValueType # 0
|
|
372
|
+
DELETE: BrokerMessage.MessageType.ValueType # 4
|
|
375
373
|
MULTI: BrokerMessage.MessageType.ValueType # 1
|
|
374
|
+
"""Deprecated, multi-commit transactions have never worked. Not implemented."""
|
|
376
375
|
COMMIT: BrokerMessage.MessageType.ValueType # 2
|
|
377
376
|
ROLLBACK: BrokerMessage.MessageType.ValueType # 3
|
|
378
|
-
DELETE: BrokerMessage.MessageType.ValueType # 4
|
|
379
377
|
|
|
380
378
|
class _MessageSource:
|
|
381
379
|
ValueType = typing.NewType("ValueType", builtins.int)
|
|
@@ -1370,32 +1368,11 @@ class Notification(google.protobuf.message.Message):
|
|
|
1370
1368
|
|
|
1371
1369
|
global___Notification = Notification
|
|
1372
1370
|
|
|
1373
|
-
@typing.final
|
|
1374
|
-
class ShardReplica(google.protobuf.message.Message):
|
|
1375
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1376
|
-
|
|
1377
|
-
SHARD_FIELD_NUMBER: builtins.int
|
|
1378
|
-
NODE_FIELD_NUMBER: builtins.int
|
|
1379
|
-
node: builtins.str
|
|
1380
|
-
@property
|
|
1381
|
-
def shard(self) -> nucliadb_protos.noderesources_pb2.ShardCreated: ...
|
|
1382
|
-
def __init__(
|
|
1383
|
-
self,
|
|
1384
|
-
*,
|
|
1385
|
-
shard: nucliadb_protos.noderesources_pb2.ShardCreated | None = ...,
|
|
1386
|
-
node: builtins.str = ...,
|
|
1387
|
-
) -> None: ...
|
|
1388
|
-
def HasField(self, field_name: typing.Literal["shard", b"shard"]) -> builtins.bool: ...
|
|
1389
|
-
def ClearField(self, field_name: typing.Literal["node", b"node", "shard", b"shard"]) -> None: ...
|
|
1390
|
-
|
|
1391
|
-
global___ShardReplica = ShardReplica
|
|
1392
|
-
|
|
1393
1371
|
@typing.final
|
|
1394
1372
|
class ShardObject(google.protobuf.message.Message):
|
|
1395
1373
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1396
1374
|
|
|
1397
1375
|
SHARD_FIELD_NUMBER: builtins.int
|
|
1398
|
-
REPLICAS_FIELD_NUMBER: builtins.int
|
|
1399
1376
|
TIMESTAMP_FIELD_NUMBER: builtins.int
|
|
1400
1377
|
READ_ONLY_FIELD_NUMBER: builtins.int
|
|
1401
1378
|
NIDX_SHARD_ID_FIELD_NUMBER: builtins.int
|
|
@@ -1403,20 +1380,17 @@ class ShardObject(google.protobuf.message.Message):
|
|
|
1403
1380
|
read_only: builtins.bool
|
|
1404
1381
|
nidx_shard_id: builtins.str
|
|
1405
1382
|
@property
|
|
1406
|
-
def replicas(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ShardReplica]: ...
|
|
1407
|
-
@property
|
|
1408
1383
|
def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
1409
1384
|
def __init__(
|
|
1410
1385
|
self,
|
|
1411
1386
|
*,
|
|
1412
1387
|
shard: builtins.str = ...,
|
|
1413
|
-
replicas: collections.abc.Iterable[global___ShardReplica] | None = ...,
|
|
1414
1388
|
timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
1415
1389
|
read_only: builtins.bool = ...,
|
|
1416
1390
|
nidx_shard_id: builtins.str = ...,
|
|
1417
1391
|
) -> None: ...
|
|
1418
1392
|
def HasField(self, field_name: typing.Literal["timestamp", b"timestamp"]) -> builtins.bool: ...
|
|
1419
|
-
def ClearField(self, field_name: typing.Literal["nidx_shard_id", b"nidx_shard_id", "read_only", b"read_only", "
|
|
1393
|
+
def ClearField(self, field_name: typing.Literal["nidx_shard_id", b"nidx_shard_id", "read_only", b"read_only", "shard", b"shard", "timestamp", b"timestamp"]) -> None: ...
|
|
1420
1394
|
|
|
1421
1395
|
global___ShardObject = ShardObject
|
|
1422
1396
|
|
|
@@ -1560,12 +1534,18 @@ class NewKnowledgeBoxV2Request(google.protobuf.message.Message):
|
|
|
1560
1534
|
EXTERNAL_INDEX_PROVIDER_FIELD_NUMBER: builtins.int
|
|
1561
1535
|
HIDDEN_RESOURCES_ENABLED_FIELD_NUMBER: builtins.int
|
|
1562
1536
|
HIDDEN_RESOURCES_HIDE_ON_CREATION_FIELD_NUMBER: builtins.int
|
|
1537
|
+
PREWARM_ENABLED_FIELD_NUMBER: builtins.int
|
|
1563
1538
|
kbid: builtins.str
|
|
1564
1539
|
slug: builtins.str
|
|
1565
1540
|
title: builtins.str
|
|
1566
1541
|
description: builtins.str
|
|
1567
1542
|
hidden_resources_enabled: builtins.bool
|
|
1568
1543
|
hidden_resources_hide_on_creation: builtins.bool
|
|
1544
|
+
prewarm_enabled: builtins.bool
|
|
1545
|
+
"""whether to enable prewarm of data for faster search or not. Activating
|
|
1546
|
+
this flag allow faster searches (with less cold start) but it is
|
|
1547
|
+
expensive on the infrastructure
|
|
1548
|
+
"""
|
|
1569
1549
|
@property
|
|
1570
1550
|
def vectorsets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___NewKnowledgeBoxV2Request.VectorSet]: ...
|
|
1571
1551
|
@property
|
|
@@ -1581,9 +1561,10 @@ class NewKnowledgeBoxV2Request(google.protobuf.message.Message):
|
|
|
1581
1561
|
external_index_provider: nucliadb_protos.knowledgebox_pb2.CreateExternalIndexProviderMetadata | None = ...,
|
|
1582
1562
|
hidden_resources_enabled: builtins.bool = ...,
|
|
1583
1563
|
hidden_resources_hide_on_creation: builtins.bool = ...,
|
|
1564
|
+
prewarm_enabled: builtins.bool = ...,
|
|
1584
1565
|
) -> None: ...
|
|
1585
1566
|
def HasField(self, field_name: typing.Literal["external_index_provider", b"external_index_provider"]) -> builtins.bool: ...
|
|
1586
|
-
def ClearField(self, field_name: typing.Literal["description", b"description", "external_index_provider", b"external_index_provider", "hidden_resources_enabled", b"hidden_resources_enabled", "hidden_resources_hide_on_creation", b"hidden_resources_hide_on_creation", "kbid", b"kbid", "slug", b"slug", "title", b"title", "vectorsets", b"vectorsets"]) -> None: ...
|
|
1567
|
+
def ClearField(self, field_name: typing.Literal["description", b"description", "external_index_provider", b"external_index_provider", "hidden_resources_enabled", b"hidden_resources_enabled", "hidden_resources_hide_on_creation", b"hidden_resources_hide_on_creation", "kbid", b"kbid", "prewarm_enabled", b"prewarm_enabled", "slug", b"slug", "title", b"title", "vectorsets", b"vectorsets"]) -> None: ...
|
|
1587
1568
|
|
|
1588
1569
|
global___NewKnowledgeBoxV2Request = NewKnowledgeBoxV2Request
|
|
1589
1570
|
|