entdb-sdk 0.1.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.
- entdb_sdk-0.1.1/PKG-INFO +61 -0
- entdb_sdk-0.1.1/README.md +35 -0
- entdb_sdk-0.1.1/entdb_sdk/__init__.py +84 -0
- entdb_sdk-0.1.1/entdb_sdk/_generated/__init__.py +92 -0
- entdb_sdk-0.1.1/entdb_sdk/_generated/entdb_pb2.py +108 -0
- entdb_sdk-0.1.1/entdb_sdk/_generated/entdb_pb2_grpc.py +576 -0
- entdb_sdk-0.1.1/entdb_sdk/_grpc_client.py +663 -0
- entdb_sdk-0.1.1/entdb_sdk/_version.py +1 -0
- entdb_sdk-0.1.1/entdb_sdk/client.py +760 -0
- entdb_sdk-0.1.1/entdb_sdk/errors.py +227 -0
- entdb_sdk-0.1.1/entdb_sdk/registry.py +207 -0
- entdb_sdk-0.1.1/entdb_sdk/schema.py +430 -0
- entdb_sdk-0.1.1/entdb_sdk/validate.py +183 -0
- entdb_sdk-0.1.1/entdb_sdk.egg-info/PKG-INFO +61 -0
- entdb_sdk-0.1.1/entdb_sdk.egg-info/SOURCES.txt +18 -0
- entdb_sdk-0.1.1/entdb_sdk.egg-info/dependency_links.txt +1 -0
- entdb_sdk-0.1.1/entdb_sdk.egg-info/requires.txt +2 -0
- entdb_sdk-0.1.1/entdb_sdk.egg-info/top_level.txt +1 -0
- entdb_sdk-0.1.1/pyproject.toml +48 -0
- entdb_sdk-0.1.1/setup.cfg +4 -0
entdb_sdk-0.1.1/PKG-INFO
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: entdb-sdk
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: Python SDK for EntDB tenant-sharded graph database
|
|
5
|
+
Author-email: EntDB Team <team@entdb.io>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/elloloop/tenant-shard-db
|
|
8
|
+
Project-URL: Documentation, https://github.com/elloloop/tenant-shard-db#readme
|
|
9
|
+
Project-URL: Repository, https://github.com/elloloop/tenant-shard-db
|
|
10
|
+
Project-URL: Issues, https://github.com/elloloop/tenant-shard-db/issues
|
|
11
|
+
Keywords: database,graph,tenant,sharding,grpc,entdb
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Operating System :: OS Independent
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Topic :: Database
|
|
20
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
21
|
+
Classifier: Typing :: Typed
|
|
22
|
+
Requires-Python: >=3.10
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
Requires-Dist: grpcio>=1.60.0
|
|
25
|
+
Requires-Dist: protobuf>=4.25.0
|
|
26
|
+
|
|
27
|
+
# EntDB SDK
|
|
28
|
+
|
|
29
|
+
Python client library for [EntDB](https://github.com/elloloop/tenant-shard-db) — a tenant-sharded graph database with nodes and edges.
|
|
30
|
+
|
|
31
|
+
## Install
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
pip install entdb-sdk
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Quick Start
|
|
38
|
+
|
|
39
|
+
```python
|
|
40
|
+
from entdb_sdk import DbClient, NodeTypeDef, field
|
|
41
|
+
|
|
42
|
+
# Define types
|
|
43
|
+
Task = NodeTypeDef(
|
|
44
|
+
type_id=101,
|
|
45
|
+
name="Task",
|
|
46
|
+
fields=(
|
|
47
|
+
field(1, "title", "str", required=True),
|
|
48
|
+
field(2, "status", "enum", enum_values=("todo", "done")),
|
|
49
|
+
),
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
# Connect and create
|
|
53
|
+
async with DbClient("localhost:50051") as db:
|
|
54
|
+
plan = db.atomic("tenant_1", "user:42")
|
|
55
|
+
plan.create(Task, {"title": "My Task", "status": "todo"})
|
|
56
|
+
result = await plan.commit()
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## License
|
|
60
|
+
|
|
61
|
+
MIT
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# EntDB SDK
|
|
2
|
+
|
|
3
|
+
Python client library for [EntDB](https://github.com/elloloop/tenant-shard-db) — a tenant-sharded graph database with nodes and edges.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install entdb-sdk
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
12
|
+
|
|
13
|
+
```python
|
|
14
|
+
from entdb_sdk import DbClient, NodeTypeDef, field
|
|
15
|
+
|
|
16
|
+
# Define types
|
|
17
|
+
Task = NodeTypeDef(
|
|
18
|
+
type_id=101,
|
|
19
|
+
name="Task",
|
|
20
|
+
fields=(
|
|
21
|
+
field(1, "title", "str", required=True),
|
|
22
|
+
field(2, "status", "enum", enum_values=("todo", "done")),
|
|
23
|
+
),
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
# Connect and create
|
|
27
|
+
async with DbClient("localhost:50051") as db:
|
|
28
|
+
plan = db.atomic("tenant_1", "user:42")
|
|
29
|
+
plan.create(Task, {"title": "My Task", "status": "todo"})
|
|
30
|
+
result = await plan.commit()
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## License
|
|
34
|
+
|
|
35
|
+
MIT
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"""
|
|
2
|
+
EntDB Python SDK - Client library for EntDB database service.
|
|
3
|
+
|
|
4
|
+
This SDK provides a type-safe interface to the EntDB graph database:
|
|
5
|
+
- Type definitions (NodeTypeDef, EdgeTypeDef, FieldDef)
|
|
6
|
+
- Schema registry for type management
|
|
7
|
+
- DbClient for connecting to the server
|
|
8
|
+
- Plan builder for atomic transactions
|
|
9
|
+
|
|
10
|
+
Example:
|
|
11
|
+
>>> from entdb_sdk import DbClient, NodeTypeDef, field
|
|
12
|
+
>>>
|
|
13
|
+
>>> # Define types
|
|
14
|
+
>>> Task = NodeTypeDef(
|
|
15
|
+
... type_id=101,
|
|
16
|
+
... name="Task",
|
|
17
|
+
... fields=(
|
|
18
|
+
... field(1, "title", "str", required=True),
|
|
19
|
+
... field(2, "status", "enum", enum_values=("todo", "done")),
|
|
20
|
+
... ),
|
|
21
|
+
... )
|
|
22
|
+
>>>
|
|
23
|
+
>>> # Connect and create
|
|
24
|
+
>>> async with DbClient("localhost:50051") as db:
|
|
25
|
+
... plan = db.atomic("tenant_1", "user:42")
|
|
26
|
+
... plan.create(Task, {"title": "My Task", "status": "todo"})
|
|
27
|
+
... result = await plan.commit()
|
|
28
|
+
|
|
29
|
+
Invariants:
|
|
30
|
+
- Type IDs are immutable after first use
|
|
31
|
+
- All operations require tenant_id and actor
|
|
32
|
+
- Writes are atomic per commit()
|
|
33
|
+
|
|
34
|
+
Version: see VERSION file at project root.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
from ._version import __version__
|
|
38
|
+
from .client import DbClient, Plan, Receipt
|
|
39
|
+
from .errors import (
|
|
40
|
+
ConnectionError,
|
|
41
|
+
EntDbError,
|
|
42
|
+
SchemaError,
|
|
43
|
+
UnknownFieldError,
|
|
44
|
+
ValidationError,
|
|
45
|
+
)
|
|
46
|
+
from .registry import (
|
|
47
|
+
SchemaRegistry,
|
|
48
|
+
get_registry,
|
|
49
|
+
register_edge_type,
|
|
50
|
+
register_node_type,
|
|
51
|
+
)
|
|
52
|
+
from .schema import (
|
|
53
|
+
EdgeTypeDef,
|
|
54
|
+
FieldDef,
|
|
55
|
+
FieldKind,
|
|
56
|
+
NodeTypeDef,
|
|
57
|
+
field,
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
__all__ = [
|
|
61
|
+
# Version
|
|
62
|
+
"__version__",
|
|
63
|
+
# Schema types
|
|
64
|
+
"NodeTypeDef",
|
|
65
|
+
"EdgeTypeDef",
|
|
66
|
+
"FieldDef",
|
|
67
|
+
"FieldKind",
|
|
68
|
+
"field",
|
|
69
|
+
# Registry
|
|
70
|
+
"SchemaRegistry",
|
|
71
|
+
"get_registry",
|
|
72
|
+
"register_node_type",
|
|
73
|
+
"register_edge_type",
|
|
74
|
+
# Client
|
|
75
|
+
"DbClient",
|
|
76
|
+
"Plan",
|
|
77
|
+
"Receipt",
|
|
78
|
+
# Errors
|
|
79
|
+
"EntDbError",
|
|
80
|
+
"ConnectionError",
|
|
81
|
+
"ValidationError",
|
|
82
|
+
"SchemaError",
|
|
83
|
+
"UnknownFieldError",
|
|
84
|
+
]
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# mypy: ignore-errors
|
|
2
|
+
"""Generated protobuf code for EntDB SDK.
|
|
3
|
+
|
|
4
|
+
Do not edit manually - regenerate with scripts/generate_proto.sh
|
|
5
|
+
|
|
6
|
+
This module is internal to the SDK. Users should not import from here.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from .entdb_pb2 import (
|
|
10
|
+
CreateEdgeOp,
|
|
11
|
+
CreateNodeOp,
|
|
12
|
+
DeleteEdgeOp,
|
|
13
|
+
DeleteNodeOp,
|
|
14
|
+
Edge,
|
|
15
|
+
# Execute
|
|
16
|
+
ExecuteAtomicRequest,
|
|
17
|
+
ExecuteAtomicResponse,
|
|
18
|
+
# Edges
|
|
19
|
+
GetEdgesRequest,
|
|
20
|
+
GetEdgesResponse,
|
|
21
|
+
GetMailboxRequest,
|
|
22
|
+
GetMailboxResponse,
|
|
23
|
+
# Nodes
|
|
24
|
+
GetNodeRequest,
|
|
25
|
+
GetNodeResponse,
|
|
26
|
+
GetNodesRequest,
|
|
27
|
+
GetNodesResponse,
|
|
28
|
+
# Receipt
|
|
29
|
+
GetReceiptStatusRequest,
|
|
30
|
+
GetReceiptStatusResponse,
|
|
31
|
+
GetSchemaRequest,
|
|
32
|
+
GetSchemaResponse,
|
|
33
|
+
# Health/Schema
|
|
34
|
+
HealthRequest,
|
|
35
|
+
HealthResponse,
|
|
36
|
+
MailboxItem,
|
|
37
|
+
MailboxSearchResult,
|
|
38
|
+
Node,
|
|
39
|
+
NodeRef,
|
|
40
|
+
Operation,
|
|
41
|
+
QueryNodesRequest,
|
|
42
|
+
QueryNodesResponse,
|
|
43
|
+
Receipt,
|
|
44
|
+
ReceiptStatus,
|
|
45
|
+
# Common
|
|
46
|
+
RequestContext,
|
|
47
|
+
# Mailbox
|
|
48
|
+
SearchMailboxRequest,
|
|
49
|
+
SearchMailboxResponse,
|
|
50
|
+
TypedNodeRef,
|
|
51
|
+
UpdateNodeOp,
|
|
52
|
+
)
|
|
53
|
+
from .entdb_pb2_grpc import EntDBServiceStub
|
|
54
|
+
|
|
55
|
+
__all__ = [
|
|
56
|
+
"RequestContext",
|
|
57
|
+
"Receipt",
|
|
58
|
+
"ExecuteAtomicRequest",
|
|
59
|
+
"ExecuteAtomicResponse",
|
|
60
|
+
"Operation",
|
|
61
|
+
"CreateNodeOp",
|
|
62
|
+
"UpdateNodeOp",
|
|
63
|
+
"DeleteNodeOp",
|
|
64
|
+
"CreateEdgeOp",
|
|
65
|
+
"DeleteEdgeOp",
|
|
66
|
+
"NodeRef",
|
|
67
|
+
"TypedNodeRef",
|
|
68
|
+
"GetReceiptStatusRequest",
|
|
69
|
+
"GetReceiptStatusResponse",
|
|
70
|
+
"ReceiptStatus",
|
|
71
|
+
"GetNodeRequest",
|
|
72
|
+
"GetNodeResponse",
|
|
73
|
+
"GetNodesRequest",
|
|
74
|
+
"GetNodesResponse",
|
|
75
|
+
"QueryNodesRequest",
|
|
76
|
+
"QueryNodesResponse",
|
|
77
|
+
"Node",
|
|
78
|
+
"GetEdgesRequest",
|
|
79
|
+
"GetEdgesResponse",
|
|
80
|
+
"Edge",
|
|
81
|
+
"SearchMailboxRequest",
|
|
82
|
+
"SearchMailboxResponse",
|
|
83
|
+
"MailboxSearchResult",
|
|
84
|
+
"GetMailboxRequest",
|
|
85
|
+
"GetMailboxResponse",
|
|
86
|
+
"MailboxItem",
|
|
87
|
+
"HealthRequest",
|
|
88
|
+
"HealthResponse",
|
|
89
|
+
"GetSchemaRequest",
|
|
90
|
+
"GetSchemaResponse",
|
|
91
|
+
"EntDBServiceStub",
|
|
92
|
+
]
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# mypy: ignore-errors
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: entdb.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
|
|
8
|
+
from google.protobuf import descriptor as _descriptor
|
|
9
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
10
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
11
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
12
|
+
from google.protobuf.internal import builder as _builder
|
|
13
|
+
|
|
14
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
15
|
+
_runtime_version.Domain.PUBLIC, 6, 31, 1, "", "entdb.proto"
|
|
16
|
+
)
|
|
17
|
+
# @@protoc_insertion_point(imports)
|
|
18
|
+
|
|
19
|
+
_sym_db = _symbol_database.Default()
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
|
23
|
+
b'\n\x0b\x65ntdb.proto\x12\x08\x65ntdb.v1"D\n\x0eRequestContext\x12\x11\n\ttenant_id\x18\x01 \x01(\t\x12\r\n\x05\x61\x63tor\x18\x02 \x01(\t\x12\x10\n\x08trace_id\x18\x03 \x01(\t"N\n\x07Receipt\x12\x11\n\ttenant_id\x18\x01 \x01(\t\x12\x17\n\x0fidempotency_key\x18\x02 \x01(\t\x12\x17\n\x0fstream_position\x18\x03 \x01(\t"\xce\x01\n\x14\x45xecuteAtomicRequest\x12)\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\x18.entdb.v1.RequestContext\x12\x17\n\x0fidempotency_key\x18\x02 \x01(\t\x12\x1a\n\x12schema_fingerprint\x18\x03 \x01(\t\x12\'\n\noperations\x18\x04 \x03(\x0b\x32\x13.entdb.v1.Operation\x12\x14\n\x0cwait_applied\x18\x05 \x01(\x08\x12\x17\n\x0fwait_timeout_ms\x18\x06 \x01(\x05"\xfc\x01\n\tOperation\x12-\n\x0b\x63reate_node\x18\x01 \x01(\x0b\x32\x16.entdb.v1.CreateNodeOpH\x00\x12-\n\x0bupdate_node\x18\x02 \x01(\x0b\x32\x16.entdb.v1.UpdateNodeOpH\x00\x12-\n\x0b\x64\x65lete_node\x18\x03 \x01(\x0b\x32\x16.entdb.v1.DeleteNodeOpH\x00\x12-\n\x0b\x63reate_edge\x18\x04 \x01(\x0b\x32\x16.entdb.v1.CreateEdgeOpH\x00\x12-\n\x0b\x64\x65lete_edge\x18\x05 \x01(\x0b\x32\x16.entdb.v1.DeleteEdgeOpH\x00\x42\x04\n\x02op"o\n\x0c\x43reateNodeOp\x12\x0f\n\x07type_id\x18\x01 \x01(\x05\x12\n\n\x02id\x18\x02 \x01(\t\x12\x11\n\tdata_json\x18\x03 \x01(\t\x12\x10\n\x08\x61\x63l_json\x18\x04 \x01(\t\x12\n\n\x02\x61s\x18\x05 \x01(\t\x12\x11\n\tfanout_to\x18\x06 \x03(\t"S\n\x0cUpdateNodeOp\x12\x0f\n\x07type_id\x18\x01 \x01(\x05\x12\n\n\x02id\x18\x02 \x01(\t\x12\x12\n\npatch_json\x18\x03 \x01(\t\x12\x12\n\nfield_mask\x18\x04 \x03(\t"+\n\x0c\x44\x65leteNodeOp\x12\x0f\n\x07type_id\x18\x01 \x01(\x05\x12\n\n\x02id\x18\x02 \x01(\t"s\n\x0c\x43reateEdgeOp\x12\x0f\n\x07\x65\x64ge_id\x18\x01 \x01(\x05\x12\x1f\n\x04\x66rom\x18\x02 \x01(\x0b\x32\x11.entdb.v1.NodeRef\x12\x1d\n\x02to\x18\x03 \x01(\x0b\x32\x11.entdb.v1.NodeRef\x12\x12\n\nprops_json\x18\x04 \x01(\t"_\n\x0c\x44\x65leteEdgeOp\x12\x0f\n\x07\x65\x64ge_id\x18\x01 \x01(\x05\x12\x1f\n\x04\x66rom\x18\x02 \x01(\x0b\x32\x11.entdb.v1.NodeRef\x12\x1d\n\x02to\x18\x03 \x01(\x0b\x32\x11.entdb.v1.NodeRef"\\\n\x07NodeRef\x12\x0c\n\x02id\x18\x01 \x01(\tH\x00\x12\x13\n\talias_ref\x18\x02 \x01(\tH\x00\x12\'\n\x05typed\x18\x03 \x01(\x0b\x32\x16.entdb.v1.TypedNodeRefH\x00\x42\x05\n\x03ref"+\n\x0cTypedNodeRef\x12\x0f\n\x07type_id\x18\x01 \x01(\x05\x12\n\n\x02id\x18\x02 \x01(\t"\xba\x01\n\x15\x45xecuteAtomicResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12"\n\x07receipt\x18\x02 \x01(\x0b\x32\x11.entdb.v1.Receipt\x12\r\n\x05\x65rror\x18\x03 \x01(\t\x12\x12\n\nerror_code\x18\x04 \x01(\t\x12\x18\n\x10\x63reated_node_ids\x18\x05 \x03(\t\x12/\n\x0e\x61pplied_status\x18\x06 \x01(\x0e\x32\x17.entdb.v1.ReceiptStatus"]\n\x17GetReceiptStatusRequest\x12)\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\x18.entdb.v1.RequestContext\x12\x17\n\x0fidempotency_key\x18\x02 \x01(\t"R\n\x18GetReceiptStatusResponse\x12\'\n\x06status\x18\x01 \x01(\x0e\x32\x17.entdb.v1.ReceiptStatus\x12\r\n\x05\x65rror\x18\x02 \x01(\t"]\n\x0eGetNodeRequest\x12)\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\x18.entdb.v1.RequestContext\x12\x0f\n\x07type_id\x18\x02 \x01(\x05\x12\x0f\n\x07node_id\x18\x03 \x01(\t">\n\x0fGetNodeResponse\x12\x1c\n\x04node\x18\x01 \x01(\x0b\x32\x0e.entdb.v1.Node\x12\r\n\x05\x66ound\x18\x02 \x01(\x08"_\n\x0fGetNodesRequest\x12)\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\x18.entdb.v1.RequestContext\x12\x0f\n\x07type_id\x18\x02 \x01(\x05\x12\x10\n\x08node_ids\x18\x03 \x03(\t"F\n\x10GetNodesResponse\x12\x1d\n\x05nodes\x18\x01 \x03(\x0b\x32\x0e.entdb.v1.Node\x12\x13\n\x0bmissing_ids\x18\x02 \x03(\t"\xa9\x01\n\x11QueryNodesRequest\x12)\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\x18.entdb.v1.RequestContext\x12\x0f\n\x07type_id\x18\x02 \x01(\x05\x12\x13\n\x0b\x66ilter_json\x18\x03 \x01(\t\x12\r\n\x05limit\x18\x04 \x01(\x05\x12\x0e\n\x06offset\x18\x05 \x01(\x05\x12\x10\n\x08order_by\x18\x06 \x01(\t\x12\x12\n\ndescending\x18\x07 \x01(\x08"Z\n\x12QueryNodesResponse\x12\x1d\n\x05nodes\x18\x01 \x03(\x0b\x32\x0e.entdb.v1.Node\x12\x13\n\x0btotal_count\x18\x02 \x01(\x05\x12\x10\n\x08has_more\x18\x03 \x01(\x08"\xa0\x01\n\x04Node\x12\x11\n\ttenant_id\x18\x01 \x01(\t\x12\x0f\n\x07node_id\x18\x02 \x01(\t\x12\x0f\n\x07type_id\x18\x03 \x01(\x05\x12\x14\n\x0cpayload_json\x18\x04 \x01(\t\x12\x12\n\ncreated_at\x18\x05 \x01(\x03\x12\x12\n\nupdated_at\x18\x06 \x01(\x03\x12\x13\n\x0bowner_actor\x18\x07 \x01(\t\x12\x10\n\x08\x61\x63l_json\x18\x08 \x01(\t"\x82\x01\n\x0fGetEdgesRequest\x12)\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\x18.entdb.v1.RequestContext\x12\x0f\n\x07node_id\x18\x02 \x01(\t\x12\x14\n\x0c\x65\x64ge_type_id\x18\x03 \x01(\x05\x12\r\n\x05limit\x18\x04 \x01(\x05\x12\x0e\n\x06offset\x18\x05 \x01(\x05"C\n\x10GetEdgesResponse\x12\x1d\n\x05\x65\x64ges\x18\x01 \x03(\x0b\x32\x0e.entdb.v1.Edge\x12\x10\n\x08has_more\x18\x02 \x01(\x08"\x81\x01\n\x04\x45\x64ge\x12\x11\n\ttenant_id\x18\x01 \x01(\t\x12\x14\n\x0c\x65\x64ge_type_id\x18\x02 \x01(\x05\x12\x14\n\x0c\x66rom_node_id\x18\x03 \x01(\t\x12\x12\n\nto_node_id\x18\x04 \x01(\t\x12\x12\n\nprops_json\x18\x05 \x01(\t\x12\x12\n\ncreated_at\x18\x06 \x01(\x03"\x99\x01\n\x14SearchMailboxRequest\x12)\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\x18.entdb.v1.RequestContext\x12\x0f\n\x07user_id\x18\x02 \x01(\t\x12\r\n\x05query\x18\x03 \x01(\t\x12\x17\n\x0fsource_type_ids\x18\x04 \x03(\x05\x12\r\n\x05limit\x18\x05 \x01(\x05\x12\x0e\n\x06offset\x18\x06 \x01(\x05"Y\n\x15SearchMailboxResponse\x12.\n\x07results\x18\x01 \x03(\x0b\x32\x1d.entdb.v1.MailboxSearchResult\x12\x10\n\x08has_more\x18\x02 \x01(\x08"\\\n\x13MailboxSearchResult\x12#\n\x04item\x18\x01 \x01(\x0b\x32\x15.entdb.v1.MailboxItem\x12\x0c\n\x04rank\x18\x02 \x01(\x02\x12\x12\n\nhighlights\x18\x03 \x01(\t"\xae\x01\n\x11GetMailboxRequest\x12)\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\x18.entdb.v1.RequestContext\x12\x0f\n\x07user_id\x18\x02 \x01(\t\x12\x16\n\x0esource_type_id\x18\x03 \x01(\x05\x12\x11\n\tthread_id\x18\x04 \x01(\t\x12\x13\n\x0bunread_only\x18\x05 \x01(\x08\x12\r\n\x05limit\x18\x06 \x01(\x05\x12\x0e\n\x06offset\x18\x07 \x01(\x05"b\n\x12GetMailboxResponse\x12$\n\x05items\x18\x01 \x03(\x0b\x32\x15.entdb.v1.MailboxItem\x12\x14\n\x0cunread_count\x18\x02 \x01(\x05\x12\x10\n\x08has_more\x18\x03 \x01(\x08"\xb9\x01\n\x0bMailboxItem\x12\x0f\n\x07item_id\x18\x01 \x01(\t\x12\x0e\n\x06ref_id\x18\x02 \x01(\t\x12\x16\n\x0esource_type_id\x18\x03 \x01(\x05\x12\x16\n\x0esource_node_id\x18\x04 \x01(\t\x12\x11\n\tthread_id\x18\x05 \x01(\t\x12\n\n\x02ts\x18\x06 \x01(\x03\x12\x12\n\nstate_json\x18\x07 \x01(\t\x12\x0f\n\x07snippet\x18\x08 \x01(\t\x12\x15\n\rmetadata_json\x18\t \x01(\t"\x0f\n\rHealthRequest"\xa3\x01\n\x0eHealthResponse\x12\x0f\n\x07healthy\x18\x01 \x01(\x08\x12\x0f\n\x07version\x18\x02 \x01(\t\x12<\n\ncomponents\x18\x03 \x03(\x0b\x32(.entdb.v1.HealthResponse.ComponentsEntry\x1a\x31\n\x0f\x43omponentsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"#\n\x10GetSchemaRequest\x12\x0f\n\x07type_id\x18\x01 \x01(\x05"=\n\x11GetSchemaResponse\x12\x13\n\x0bschema_json\x18\x01 \x01(\t\x12\x13\n\x0b\x66ingerprint\x18\x02 \x01(\t*~\n\rReceiptStatus\x12\x1a\n\x16RECEIPT_STATUS_UNKNOWN\x10\x00\x12\x1a\n\x16RECEIPT_STATUS_PENDING\x10\x01\x12\x1a\n\x16RECEIPT_STATUS_APPLIED\x10\x02\x12\x19\n\x15RECEIPT_STATUS_FAILED\x10\x03\x32\xb1\x06\n\x0c\x45ntDBService\x12P\n\rExecuteAtomic\x12\x1e.entdb.v1.ExecuteAtomicRequest\x1a\x1f.entdb.v1.ExecuteAtomicResponse\x12Y\n\x10GetReceiptStatus\x12!.entdb.v1.GetReceiptStatusRequest\x1a".entdb.v1.GetReceiptStatusResponse\x12>\n\x07GetNode\x12\x18.entdb.v1.GetNodeRequest\x1a\x19.entdb.v1.GetNodeResponse\x12\x41\n\x08GetNodes\x12\x19.entdb.v1.GetNodesRequest\x1a\x1a.entdb.v1.GetNodesResponse\x12G\n\nQueryNodes\x12\x1b.entdb.v1.QueryNodesRequest\x1a\x1c.entdb.v1.QueryNodesResponse\x12\x45\n\x0cGetEdgesFrom\x12\x19.entdb.v1.GetEdgesRequest\x1a\x1a.entdb.v1.GetEdgesResponse\x12\x43\n\nGetEdgesTo\x12\x19.entdb.v1.GetEdgesRequest\x1a\x1a.entdb.v1.GetEdgesResponse\x12P\n\rSearchMailbox\x12\x1e.entdb.v1.SearchMailboxRequest\x1a\x1f.entdb.v1.SearchMailboxResponse\x12G\n\nGetMailbox\x12\x1b.entdb.v1.GetMailboxRequest\x1a\x1c.entdb.v1.GetMailboxResponse\x12;\n\x06Health\x12\x17.entdb.v1.HealthRequest\x1a\x18.entdb.v1.HealthResponse\x12\x44\n\tGetSchema\x12\x1a.entdb.v1.GetSchemaRequest\x1a\x1b.entdb.v1.GetSchemaResponseB#Z!github.com/example/entdb/proto/v1b\x06proto3'
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
_globals = globals()
|
|
27
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
28
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "entdb_pb2", _globals)
|
|
29
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
30
|
+
_globals["DESCRIPTOR"]._loaded_options = None
|
|
31
|
+
_globals["DESCRIPTOR"]._serialized_options = b"Z!github.com/example/entdb/proto/v1"
|
|
32
|
+
_globals["_HEALTHRESPONSE_COMPONENTSENTRY"]._loaded_options = None
|
|
33
|
+
_globals["_HEALTHRESPONSE_COMPONENTSENTRY"]._serialized_options = b"8\001"
|
|
34
|
+
_globals["_RECEIPTSTATUS"]._serialized_start = 3781
|
|
35
|
+
_globals["_RECEIPTSTATUS"]._serialized_end = 3907
|
|
36
|
+
_globals["_REQUESTCONTEXT"]._serialized_start = 25
|
|
37
|
+
_globals["_REQUESTCONTEXT"]._serialized_end = 93
|
|
38
|
+
_globals["_RECEIPT"]._serialized_start = 95
|
|
39
|
+
_globals["_RECEIPT"]._serialized_end = 173
|
|
40
|
+
_globals["_EXECUTEATOMICREQUEST"]._serialized_start = 176
|
|
41
|
+
_globals["_EXECUTEATOMICREQUEST"]._serialized_end = 382
|
|
42
|
+
_globals["_OPERATION"]._serialized_start = 385
|
|
43
|
+
_globals["_OPERATION"]._serialized_end = 637
|
|
44
|
+
_globals["_CREATENODEOP"]._serialized_start = 639
|
|
45
|
+
_globals["_CREATENODEOP"]._serialized_end = 750
|
|
46
|
+
_globals["_UPDATENODEOP"]._serialized_start = 752
|
|
47
|
+
_globals["_UPDATENODEOP"]._serialized_end = 835
|
|
48
|
+
_globals["_DELETENODEOP"]._serialized_start = 837
|
|
49
|
+
_globals["_DELETENODEOP"]._serialized_end = 880
|
|
50
|
+
_globals["_CREATEEDGEOP"]._serialized_start = 882
|
|
51
|
+
_globals["_CREATEEDGEOP"]._serialized_end = 997
|
|
52
|
+
_globals["_DELETEEDGEOP"]._serialized_start = 999
|
|
53
|
+
_globals["_DELETEEDGEOP"]._serialized_end = 1094
|
|
54
|
+
_globals["_NODEREF"]._serialized_start = 1096
|
|
55
|
+
_globals["_NODEREF"]._serialized_end = 1188
|
|
56
|
+
_globals["_TYPEDNODEREF"]._serialized_start = 1190
|
|
57
|
+
_globals["_TYPEDNODEREF"]._serialized_end = 1233
|
|
58
|
+
_globals["_EXECUTEATOMICRESPONSE"]._serialized_start = 1236
|
|
59
|
+
_globals["_EXECUTEATOMICRESPONSE"]._serialized_end = 1422
|
|
60
|
+
_globals["_GETRECEIPTSTATUSREQUEST"]._serialized_start = 1424
|
|
61
|
+
_globals["_GETRECEIPTSTATUSREQUEST"]._serialized_end = 1517
|
|
62
|
+
_globals["_GETRECEIPTSTATUSRESPONSE"]._serialized_start = 1519
|
|
63
|
+
_globals["_GETRECEIPTSTATUSRESPONSE"]._serialized_end = 1601
|
|
64
|
+
_globals["_GETNODEREQUEST"]._serialized_start = 1603
|
|
65
|
+
_globals["_GETNODEREQUEST"]._serialized_end = 1696
|
|
66
|
+
_globals["_GETNODERESPONSE"]._serialized_start = 1698
|
|
67
|
+
_globals["_GETNODERESPONSE"]._serialized_end = 1760
|
|
68
|
+
_globals["_GETNODESREQUEST"]._serialized_start = 1762
|
|
69
|
+
_globals["_GETNODESREQUEST"]._serialized_end = 1857
|
|
70
|
+
_globals["_GETNODESRESPONSE"]._serialized_start = 1859
|
|
71
|
+
_globals["_GETNODESRESPONSE"]._serialized_end = 1929
|
|
72
|
+
_globals["_QUERYNODESREQUEST"]._serialized_start = 1932
|
|
73
|
+
_globals["_QUERYNODESREQUEST"]._serialized_end = 2101
|
|
74
|
+
_globals["_QUERYNODESRESPONSE"]._serialized_start = 2103
|
|
75
|
+
_globals["_QUERYNODESRESPONSE"]._serialized_end = 2193
|
|
76
|
+
_globals["_NODE"]._serialized_start = 2196
|
|
77
|
+
_globals["_NODE"]._serialized_end = 2356
|
|
78
|
+
_globals["_GETEDGESREQUEST"]._serialized_start = 2359
|
|
79
|
+
_globals["_GETEDGESREQUEST"]._serialized_end = 2489
|
|
80
|
+
_globals["_GETEDGESRESPONSE"]._serialized_start = 2491
|
|
81
|
+
_globals["_GETEDGESRESPONSE"]._serialized_end = 2558
|
|
82
|
+
_globals["_EDGE"]._serialized_start = 2561
|
|
83
|
+
_globals["_EDGE"]._serialized_end = 2690
|
|
84
|
+
_globals["_SEARCHMAILBOXREQUEST"]._serialized_start = 2693
|
|
85
|
+
_globals["_SEARCHMAILBOXREQUEST"]._serialized_end = 2846
|
|
86
|
+
_globals["_SEARCHMAILBOXRESPONSE"]._serialized_start = 2848
|
|
87
|
+
_globals["_SEARCHMAILBOXRESPONSE"]._serialized_end = 2937
|
|
88
|
+
_globals["_MAILBOXSEARCHRESULT"]._serialized_start = 2939
|
|
89
|
+
_globals["_MAILBOXSEARCHRESULT"]._serialized_end = 3031
|
|
90
|
+
_globals["_GETMAILBOXREQUEST"]._serialized_start = 3034
|
|
91
|
+
_globals["_GETMAILBOXREQUEST"]._serialized_end = 3208
|
|
92
|
+
_globals["_GETMAILBOXRESPONSE"]._serialized_start = 3210
|
|
93
|
+
_globals["_GETMAILBOXRESPONSE"]._serialized_end = 3308
|
|
94
|
+
_globals["_MAILBOXITEM"]._serialized_start = 3311
|
|
95
|
+
_globals["_MAILBOXITEM"]._serialized_end = 3496
|
|
96
|
+
_globals["_HEALTHREQUEST"]._serialized_start = 3498
|
|
97
|
+
_globals["_HEALTHREQUEST"]._serialized_end = 3513
|
|
98
|
+
_globals["_HEALTHRESPONSE"]._serialized_start = 3516
|
|
99
|
+
_globals["_HEALTHRESPONSE"]._serialized_end = 3679
|
|
100
|
+
_globals["_HEALTHRESPONSE_COMPONENTSENTRY"]._serialized_start = 3630
|
|
101
|
+
_globals["_HEALTHRESPONSE_COMPONENTSENTRY"]._serialized_end = 3679
|
|
102
|
+
_globals["_GETSCHEMAREQUEST"]._serialized_start = 3681
|
|
103
|
+
_globals["_GETSCHEMAREQUEST"]._serialized_end = 3716
|
|
104
|
+
_globals["_GETSCHEMARESPONSE"]._serialized_start = 3718
|
|
105
|
+
_globals["_GETSCHEMARESPONSE"]._serialized_end = 3779
|
|
106
|
+
_globals["_ENTDBSERVICE"]._serialized_start = 3910
|
|
107
|
+
_globals["_ENTDBSERVICE"]._serialized_end = 4727
|
|
108
|
+
# @@protoc_insertion_point(module_scope)
|