elimity-insights-sdk 1.1.0__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 elimity-insights-sdk might be problematic. Click here for more details.

Files changed (46) hide show
  1. elimity/__init__.py +0 -0
  2. elimity/__init__.pyi +1 -0
  3. elimity/insights/__init__.py +0 -0
  4. elimity/insights/__init__.pyi +3 -0
  5. elimity/insights/common/__init__.py +0 -0
  6. elimity/insights/common/__init__.pyi +1 -0
  7. elimity/insights/common/v1alpha1/__init__.py +0 -0
  8. elimity/insights/common/v1alpha1/__init__.pyi +1 -0
  9. elimity/insights/common/v1alpha1/common.pb.go +494 -0
  10. elimity/insights/common/v1alpha1/common_pb.ts +202 -0
  11. elimity/insights/common/v1alpha1/common_pb2.py +50 -0
  12. elimity/insights/common/v1alpha1/common_pb2.pyi +63 -0
  13. elimity/insights/customgateway/__init__.py +0 -0
  14. elimity/insights/customgateway/__init__.pyi +1 -0
  15. elimity/insights/customgateway/v1alpha1/__init__.py +0 -0
  16. elimity/insights/customgateway/v1alpha1/__init__.pyi +2 -0
  17. elimity/insights/customgateway/v1alpha1/customgateway.pb.go +504 -0
  18. elimity/insights/customgateway/v1alpha1/customgateway_connect.py +119 -0
  19. elimity/insights/customgateway/v1alpha1/customgateway_connect.ts +26 -0
  20. elimity/insights/customgateway/v1alpha1/customgateway_pb.ts +196 -0
  21. elimity/insights/customgateway/v1alpha1/customgateway_pb2.py +52 -0
  22. elimity/insights/customgateway/v1alpha1/customgateway_pb2.pyi +48 -0
  23. elimity/insights/customgateway/v1alpha1/v1alpha1connect/__init__.py +0 -0
  24. elimity/insights/customgateway/v1alpha1/v1alpha1connect/__init__.pyi +0 -0
  25. elimity/insights/customgateway/v1alpha1/v1alpha1connect/customgateway.connect.go +113 -0
  26. elimity/insights/export/__init__.py +0 -0
  27. elimity/insights/export/__init__.pyi +1 -0
  28. elimity/insights/export/v1alpha1/__init__.py +0 -0
  29. elimity/insights/export/v1alpha1/__init__.pyi +2 -0
  30. elimity/insights/export/v1alpha1/export.pb.go +635 -0
  31. elimity/insights/export/v1alpha1/export_connect.py +119 -0
  32. elimity/insights/export/v1alpha1/export_connect.ts +26 -0
  33. elimity/insights/export/v1alpha1/export_pb.ts +287 -0
  34. elimity/insights/export/v1alpha1/export_pb2.py +50 -0
  35. elimity/insights/export/v1alpha1/export_pb2.pyi +57 -0
  36. elimity/insights/export/v1alpha1/v1alpha1connect/__init__.py +0 -0
  37. elimity/insights/export/v1alpha1/v1alpha1connect/__init__.pyi +0 -0
  38. elimity/insights/export/v1alpha1/v1alpha1connect/export.connect.go +112 -0
  39. elimity/py.typed +0 -0
  40. elimity_insights_sdk/__init__.py +31 -0
  41. elimity_insights_sdk/_sdk.py +190 -0
  42. elimity_insights_sdk/py.typed +0 -0
  43. elimity_insights_sdk-1.1.0.dist-info/METADATA +13 -0
  44. elimity_insights_sdk-1.1.0.dist-info/RECORD +46 -0
  45. elimity_insights_sdk-1.1.0.dist-info/WHEEL +4 -0
  46. elimity_insights_sdk-1.1.0.dist-info/licenses/LICENSE.txt +201 -0
@@ -0,0 +1,202 @@
1
+ // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
2
+ // @generated from file elimity/insights/common/v1alpha1/common.proto (package elimity.insights.common.v1alpha1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
+ import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
8
+
9
+ /**
10
+ * @generated from message elimity.insights.common.v1alpha1.Entity
11
+ */
12
+ export class Entity extends Message<Entity> {
13
+ /**
14
+ * @generated from field: map<string, elimity.insights.common.v1alpha1.Value> attribute_assignments = 1;
15
+ */
16
+ attributeAssignments: { [key: string]: Value } = {};
17
+
18
+ /**
19
+ * @generated from field: string id = 2;
20
+ */
21
+ id = "";
22
+
23
+ /**
24
+ * @generated from field: string name = 3;
25
+ */
26
+ name = "";
27
+
28
+ /**
29
+ * @generated from field: string type = 4;
30
+ */
31
+ type = "";
32
+
33
+ constructor(data?: PartialMessage<Entity>) {
34
+ super();
35
+ proto3.util.initPartial(data, this);
36
+ }
37
+
38
+ static readonly runtime: typeof proto3 = proto3;
39
+ static readonly typeName = "elimity.insights.common.v1alpha1.Entity";
40
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
41
+ { no: 1, name: "attribute_assignments", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: Value} },
42
+ { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
43
+ { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
44
+ { no: 4, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
45
+ ]);
46
+
47
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Entity {
48
+ return new Entity().fromBinary(bytes, options);
49
+ }
50
+
51
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Entity {
52
+ return new Entity().fromJson(jsonValue, options);
53
+ }
54
+
55
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Entity {
56
+ return new Entity().fromJsonString(jsonString, options);
57
+ }
58
+
59
+ static equals(a: Entity | PlainMessage<Entity> | undefined, b: Entity | PlainMessage<Entity> | undefined): boolean {
60
+ return proto3.util.equals(Entity, a, b);
61
+ }
62
+ }
63
+
64
+ /**
65
+ * @generated from message elimity.insights.common.v1alpha1.Relationship
66
+ */
67
+ export class Relationship extends Message<Relationship> {
68
+ /**
69
+ * @generated from field: map<string, elimity.insights.common.v1alpha1.Value> attribute_assignments = 1;
70
+ */
71
+ attributeAssignments: { [key: string]: Value } = {};
72
+
73
+ /**
74
+ * @generated from field: string from_entity_id = 2;
75
+ */
76
+ fromEntityId = "";
77
+
78
+ /**
79
+ * @generated from field: string from_entity_type = 3;
80
+ */
81
+ fromEntityType = "";
82
+
83
+ /**
84
+ * @generated from field: string to_entity_id = 4;
85
+ */
86
+ toEntityId = "";
87
+
88
+ /**
89
+ * @generated from field: string to_entity_type = 5;
90
+ */
91
+ toEntityType = "";
92
+
93
+ constructor(data?: PartialMessage<Relationship>) {
94
+ super();
95
+ proto3.util.initPartial(data, this);
96
+ }
97
+
98
+ static readonly runtime: typeof proto3 = proto3;
99
+ static readonly typeName = "elimity.insights.common.v1alpha1.Relationship";
100
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
101
+ { no: 1, name: "attribute_assignments", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: Value} },
102
+ { no: 2, name: "from_entity_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
103
+ { no: 3, name: "from_entity_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
104
+ { no: 4, name: "to_entity_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
105
+ { no: 5, name: "to_entity_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
106
+ ]);
107
+
108
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Relationship {
109
+ return new Relationship().fromBinary(bytes, options);
110
+ }
111
+
112
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Relationship {
113
+ return new Relationship().fromJson(jsonValue, options);
114
+ }
115
+
116
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Relationship {
117
+ return new Relationship().fromJsonString(jsonString, options);
118
+ }
119
+
120
+ static equals(a: Relationship | PlainMessage<Relationship> | undefined, b: Relationship | PlainMessage<Relationship> | undefined): boolean {
121
+ return proto3.util.equals(Relationship, a, b);
122
+ }
123
+ }
124
+
125
+ /**
126
+ * @generated from message elimity.insights.common.v1alpha1.Value
127
+ */
128
+ export class Value extends Message<Value> {
129
+ /**
130
+ * @generated from oneof elimity.insights.common.v1alpha1.Value.value
131
+ */
132
+ value: {
133
+ /**
134
+ * @generated from field: bool boolean = 1;
135
+ */
136
+ value: boolean;
137
+ case: "boolean";
138
+ } | {
139
+ /**
140
+ * @generated from field: google.protobuf.Timestamp date = 2;
141
+ */
142
+ value: Timestamp;
143
+ case: "date";
144
+ } | {
145
+ /**
146
+ * @generated from field: google.protobuf.Timestamp date_time = 3;
147
+ */
148
+ value: Timestamp;
149
+ case: "dateTime";
150
+ } | {
151
+ /**
152
+ * @generated from field: double number = 4;
153
+ */
154
+ value: number;
155
+ case: "number";
156
+ } | {
157
+ /**
158
+ * @generated from field: string string = 5;
159
+ */
160
+ value: string;
161
+ case: "string";
162
+ } | {
163
+ /**
164
+ * @generated from field: google.protobuf.Timestamp time = 6;
165
+ */
166
+ value: Timestamp;
167
+ case: "time";
168
+ } | { case: undefined; value?: undefined } = { case: undefined };
169
+
170
+ constructor(data?: PartialMessage<Value>) {
171
+ super();
172
+ proto3.util.initPartial(data, this);
173
+ }
174
+
175
+ static readonly runtime: typeof proto3 = proto3;
176
+ static readonly typeName = "elimity.insights.common.v1alpha1.Value";
177
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
178
+ { no: 1, name: "boolean", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "value" },
179
+ { no: 2, name: "date", kind: "message", T: Timestamp, oneof: "value" },
180
+ { no: 3, name: "date_time", kind: "message", T: Timestamp, oneof: "value" },
181
+ { no: 4, name: "number", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, oneof: "value" },
182
+ { no: 5, name: "string", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "value" },
183
+ { no: 6, name: "time", kind: "message", T: Timestamp, oneof: "value" },
184
+ ]);
185
+
186
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Value {
187
+ return new Value().fromBinary(bytes, options);
188
+ }
189
+
190
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Value {
191
+ return new Value().fromJson(jsonValue, options);
192
+ }
193
+
194
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Value {
195
+ return new Value().fromJsonString(jsonString, options);
196
+ }
197
+
198
+ static equals(a: Value | PlainMessage<Value> | undefined, b: Value | PlainMessage<Value> | undefined): boolean {
199
+ return proto3.util.equals(Value, a, b);
200
+ }
201
+ }
202
+
@@ -0,0 +1,50 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: elimity/insights/common/v1alpha1/common.proto
5
+ # Protobuf Python Version: 5.29.5
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 29,
16
+ 5,
17
+ '',
18
+ 'elimity/insights/common/v1alpha1/common.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
26
+
27
+
28
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n-elimity/insights/common/v1alpha1/common.proto\x12 elimity.insights.common.v1alpha1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xab\x02\n\x06\x45ntity\x12w\n\x15\x61ttribute_assignments\x18\x01 \x03(\x0b\x32\x42.elimity.insights.common.v1alpha1.Entity.AttributeAssignmentsEntryR\x14\x61ttributeAssignments\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12\x12\n\x04type\x18\x04 \x01(\tR\x04type\x1ap\n\x19\x41ttributeAssignmentsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12=\n\x05value\x18\x02 \x01(\x0b\x32\'.elimity.insights.common.v1alpha1.ValueR\x05value:\x02\x38\x01\"\x97\x03\n\x0cRelationship\x12}\n\x15\x61ttribute_assignments\x18\x01 \x03(\x0b\x32H.elimity.insights.common.v1alpha1.Relationship.AttributeAssignmentsEntryR\x14\x61ttributeAssignments\x12$\n\x0e\x66rom_entity_id\x18\x02 \x01(\tR\x0c\x66romEntityId\x12(\n\x10\x66rom_entity_type\x18\x03 \x01(\tR\x0e\x66romEntityType\x12 \n\x0cto_entity_id\x18\x04 \x01(\tR\ntoEntityId\x12$\n\x0eto_entity_type\x18\x05 \x01(\tR\x0ctoEntityType\x1ap\n\x19\x41ttributeAssignmentsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12=\n\x05value\x18\x02 \x01(\x0b\x32\'.elimity.insights.common.v1alpha1.ValueR\x05value:\x02\x38\x01\"\xff\x01\n\x05Value\x12\x1a\n\x07\x62oolean\x18\x01 \x01(\x08H\x00R\x07\x62oolean\x12\x30\n\x04\x64\x61te\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\x04\x64\x61te\x12\x39\n\tdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\x08\x64\x61teTime\x12\x18\n\x06number\x18\x04 \x01(\x01H\x00R\x06number\x12\x18\n\x06string\x18\x05 \x01(\tH\x00R\x06string\x12\x30\n\x04time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\x04timeB\x07\n\x05valueBJZHgithub.com/elimity-com/insights-sdk/gen/elimity/insights/common/v1alpha1b\x06proto3')
29
+
30
+ _globals = globals()
31
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
32
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'elimity.insights.common.v1alpha1.common_pb2', _globals)
33
+ if not _descriptor._USE_C_DESCRIPTORS:
34
+ _globals['DESCRIPTOR']._loaded_options = None
35
+ _globals['DESCRIPTOR']._serialized_options = b'ZHgithub.com/elimity-com/insights-sdk/gen/elimity/insights/common/v1alpha1'
36
+ _globals['_ENTITY_ATTRIBUTEASSIGNMENTSENTRY']._loaded_options = None
37
+ _globals['_ENTITY_ATTRIBUTEASSIGNMENTSENTRY']._serialized_options = b'8\001'
38
+ _globals['_RELATIONSHIP_ATTRIBUTEASSIGNMENTSENTRY']._loaded_options = None
39
+ _globals['_RELATIONSHIP_ATTRIBUTEASSIGNMENTSENTRY']._serialized_options = b'8\001'
40
+ _globals['_ENTITY']._serialized_start=117
41
+ _globals['_ENTITY']._serialized_end=416
42
+ _globals['_ENTITY_ATTRIBUTEASSIGNMENTSENTRY']._serialized_start=304
43
+ _globals['_ENTITY_ATTRIBUTEASSIGNMENTSENTRY']._serialized_end=416
44
+ _globals['_RELATIONSHIP']._serialized_start=419
45
+ _globals['_RELATIONSHIP']._serialized_end=826
46
+ _globals['_RELATIONSHIP_ATTRIBUTEASSIGNMENTSENTRY']._serialized_start=304
47
+ _globals['_RELATIONSHIP_ATTRIBUTEASSIGNMENTSENTRY']._serialized_end=416
48
+ _globals['_VALUE']._serialized_start=829
49
+ _globals['_VALUE']._serialized_end=1084
50
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,63 @@
1
+ from google.protobuf import timestamp_pb2 as _timestamp_pb2
2
+ from google.protobuf.internal import containers as _containers
3
+ from google.protobuf import descriptor as _descriptor
4
+ from google.protobuf import message as _message
5
+ from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union
6
+
7
+ DESCRIPTOR: _descriptor.FileDescriptor
8
+
9
+ class Entity(_message.Message):
10
+ __slots__ = ("attribute_assignments", "id", "name", "type")
11
+ class AttributeAssignmentsEntry(_message.Message):
12
+ __slots__ = ("key", "value")
13
+ KEY_FIELD_NUMBER: _ClassVar[int]
14
+ VALUE_FIELD_NUMBER: _ClassVar[int]
15
+ key: str
16
+ value: Value
17
+ def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[Value, _Mapping]] = ...) -> None: ...
18
+ ATTRIBUTE_ASSIGNMENTS_FIELD_NUMBER: _ClassVar[int]
19
+ ID_FIELD_NUMBER: _ClassVar[int]
20
+ NAME_FIELD_NUMBER: _ClassVar[int]
21
+ TYPE_FIELD_NUMBER: _ClassVar[int]
22
+ attribute_assignments: _containers.MessageMap[str, Value]
23
+ id: str
24
+ name: str
25
+ type: str
26
+ def __init__(self, attribute_assignments: _Optional[_Mapping[str, Value]] = ..., id: _Optional[str] = ..., name: _Optional[str] = ..., type: _Optional[str] = ...) -> None: ...
27
+
28
+ class Relationship(_message.Message):
29
+ __slots__ = ("attribute_assignments", "from_entity_id", "from_entity_type", "to_entity_id", "to_entity_type")
30
+ class AttributeAssignmentsEntry(_message.Message):
31
+ __slots__ = ("key", "value")
32
+ KEY_FIELD_NUMBER: _ClassVar[int]
33
+ VALUE_FIELD_NUMBER: _ClassVar[int]
34
+ key: str
35
+ value: Value
36
+ def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[Value, _Mapping]] = ...) -> None: ...
37
+ ATTRIBUTE_ASSIGNMENTS_FIELD_NUMBER: _ClassVar[int]
38
+ FROM_ENTITY_ID_FIELD_NUMBER: _ClassVar[int]
39
+ FROM_ENTITY_TYPE_FIELD_NUMBER: _ClassVar[int]
40
+ TO_ENTITY_ID_FIELD_NUMBER: _ClassVar[int]
41
+ TO_ENTITY_TYPE_FIELD_NUMBER: _ClassVar[int]
42
+ attribute_assignments: _containers.MessageMap[str, Value]
43
+ from_entity_id: str
44
+ from_entity_type: str
45
+ to_entity_id: str
46
+ to_entity_type: str
47
+ def __init__(self, attribute_assignments: _Optional[_Mapping[str, Value]] = ..., from_entity_id: _Optional[str] = ..., from_entity_type: _Optional[str] = ..., to_entity_id: _Optional[str] = ..., to_entity_type: _Optional[str] = ...) -> None: ...
48
+
49
+ class Value(_message.Message):
50
+ __slots__ = ("boolean", "date", "date_time", "number", "string", "time")
51
+ BOOLEAN_FIELD_NUMBER: _ClassVar[int]
52
+ DATE_FIELD_NUMBER: _ClassVar[int]
53
+ DATE_TIME_FIELD_NUMBER: _ClassVar[int]
54
+ NUMBER_FIELD_NUMBER: _ClassVar[int]
55
+ STRING_FIELD_NUMBER: _ClassVar[int]
56
+ TIME_FIELD_NUMBER: _ClassVar[int]
57
+ boolean: bool
58
+ date: _timestamp_pb2.Timestamp
59
+ date_time: _timestamp_pb2.Timestamp
60
+ number: float
61
+ string: str
62
+ time: _timestamp_pb2.Timestamp
63
+ def __init__(self, boolean: bool = ..., date: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., date_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., number: _Optional[float] = ..., string: _Optional[str] = ..., time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
File without changes
@@ -0,0 +1 @@
1
+ from . import v1alpha1
File without changes
@@ -0,0 +1,2 @@
1
+ from . import customgateway_pb2
2
+ from . import v1alpha1connect