weave-python 0.28.2__py3-none-any.whl → 0.30.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.
- weave/weaveapi/auth/v1/service_pb2.py +194 -98
- weave/weaveapi/auth/v1/service_pb2.pyi +1288 -1134
- weave/weaveapi/auth/v1/service_pb2_grpc.pyi +248 -335
- weave/weaveapi/auth/v1/session_pb2.py +14 -6
- weave/weaveapi/auth/v1/session_pb2.pyi +109 -89
- weave/weaveapi/auth/v1/session_pb2_grpc.pyi +11 -10
- weave/weaveapi/auth/v1/usage_pb2.py +18 -14
- weave/weaveapi/auth/v1/usage_pb2.pyi +251 -197
- weave/weaveapi/auth/v1/usage_pb2_grpc.pyi +11 -10
- weave/weaveapi/auth/v1/user_pb2.py +60 -18
- weave/weaveapi/auth/v1/user_pb2.pyi +588 -505
- weave/weaveapi/auth/v1/user_pb2_grpc.pyi +11 -10
- weave/weaveapi/generate/v1/configuration_pb2.py +31 -19
- weave/weaveapi/generate/v1/configuration_pb2.pyi +277 -241
- weave/weaveapi/generate/v1/configuration_pb2_grpc.pyi +11 -10
- weave/weaveapi/generate/v1/generate_pb2.py +32 -6
- weave/weaveapi/generate/v1/generate_pb2.pyi +138 -40
- weave/weaveapi/generate/v1/generate_pb2_grpc.pyi +11 -10
- weave/weaveapi/generate/v1/service_pb2.py +52 -22
- weave/weaveapi/generate/v1/service_pb2.pyi +264 -135
- weave/weaveapi/generate/v1/service_pb2_grpc.py +47 -0
- weave/weaveapi/generate/v1/service_pb2_grpc.pyi +89 -78
- weave/weaveapi/llmx/v1/architecture_pb2.py +42 -42
- weave/weaveapi/llmx/v1/architecture_pb2.pyi +664 -555
- weave/weaveapi/llmx/v1/architecture_pb2_grpc.pyi +11 -10
- weave/weaveapi/llmx/v1/capabilities_pb2.py +88 -56
- weave/weaveapi/llmx/v1/capabilities_pb2.pyi +967 -852
- weave/weaveapi/llmx/v1/capabilities_pb2_grpc.pyi +11 -10
- weave/weaveapi/llmx/v1/model_pb2.py +56 -20
- weave/weaveapi/llmx/v1/model_pb2.pyi +533 -455
- weave/weaveapi/llmx/v1/model_pb2_grpc.pyi +11 -10
- weave/weaveapi/llmx/v1/pricing_pb2.py +24 -20
- weave/weaveapi/llmx/v1/pricing_pb2.pyi +194 -172
- weave/weaveapi/llmx/v1/pricing_pb2_grpc.pyi +11 -10
- weave/weaveapi/llmx/v1/provider_pb2.py +6 -6
- weave/weaveapi/llmx/v1/provider_pb2.pyi +84 -59
- weave/weaveapi/llmx/v1/provider_pb2_grpc.pyi +11 -10
- weave/weaveapi/llmx/v1/service_pb2.py +228 -90
- weave/weaveapi/llmx/v1/service_pb2.pyi +1651 -1403
- weave/weaveapi/llmx/v1/service_pb2_grpc.pyi +160 -203
- weave/weaveapi/mcpregistry/v1/server_pb2.py +16 -10
- weave/weaveapi/mcpregistry/v1/server_pb2.pyi +143 -121
- weave/weaveapi/mcpregistry/v1/server_pb2_grpc.pyi +11 -10
- weave/weaveapi/mcpregistry/v1/service_pb2.py +51 -31
- weave/weaveapi/mcpregistry/v1/service_pb2.pyi +132 -122
- weave/weaveapi/mcpregistry/v1/service_pb2_grpc.pyi +87 -112
- weave/weaveapi/payment/v1/invoice_pb2.py +38 -12
- weave/weaveapi/payment/v1/invoice_pb2.pyi +352 -291
- weave/weaveapi/payment/v1/invoice_pb2_grpc.pyi +11 -10
- weave/weaveapi/payment/v1/service_pb2.py +264 -98
- weave/weaveapi/payment/v1/service_pb2.pyi +1381 -1242
- weave/weaveapi/payment/v1/service_pb2_grpc.pyi +229 -319
- weave/weaveapi/payment/v1/subscription_pb2.py +99 -23
- weave/weaveapi/payment/v1/subscription_pb2.pyi +727 -611
- weave/weaveapi/payment/v1/subscription_pb2_grpc.pyi +11 -10
- weave/weaveapi/storage/v1/auth_pb2.py +6 -6
- weave/weaveapi/storage/v1/auth_pb2.pyi +42 -29
- weave/weaveapi/storage/v1/auth_pb2_grpc.pyi +11 -10
- weave/weaveapi/storage/v1/nosql_database_pb2.py +47 -23
- weave/weaveapi/storage/v1/nosql_database_pb2.pyi +438 -372
- weave/weaveapi/storage/v1/nosql_database_pb2_grpc.pyi +11 -10
- weave/weaveapi/storage/v1/object_store_pb2.py +27 -13
- weave/weaveapi/storage/v1/object_store_pb2.pyi +203 -187
- weave/weaveapi/storage/v1/object_store_pb2_grpc.pyi +11 -10
- weave/weaveapi/storage/v1/service_pb2.py +96 -36
- weave/weaveapi/storage/v1/service_pb2.pyi +414 -357
- weave/weaveapi/storage/v1/service_pb2_grpc.pyi +88 -107
- weave/weaveapi/storage/v1/sql_database_pb2.py +39 -23
- weave/weaveapi/storage/v1/sql_database_pb2.pyi +481 -400
- weave/weaveapi/storage/v1/sql_database_pb2_grpc.pyi +11 -10
- weave/weaveapi/storage/v1/storage_pb2.py +20 -6
- weave/weaveapi/storage/v1/storage_pb2.pyi +79 -70
- weave/weaveapi/storage/v1/storage_pb2_grpc.pyi +11 -10
- weave/weaveapi/synthesize/v1/dataset_pb2.py +14 -12
- weave/weaveapi/synthesize/v1/dataset_pb2.pyi +158 -128
- weave/weaveapi/synthesize/v1/dataset_pb2_grpc.pyi +11 -10
- weave/weaveapi/synthesize/v1/inline_data_pb2.py +9 -9
- weave/weaveapi/synthesize/v1/inline_data_pb2.pyi +31 -27
- weave/weaveapi/synthesize/v1/inline_data_pb2_grpc.pyi +11 -10
- weave/weaveapi/synthesize/v1/relationship_pb2.py +19 -11
- weave/weaveapi/synthesize/v1/relationship_pb2.pyi +67 -64
- weave/weaveapi/synthesize/v1/relationship_pb2_grpc.pyi +11 -10
- weave/weaveapi/synthesize/v1/service_pb2.py +42 -24
- weave/weaveapi/synthesize/v1/service_pb2.pyi +202 -168
- weave/weaveapi/synthesize/v1/service_pb2_grpc.pyi +67 -79
- weave/weaveapi/synthesize/v1/training_pb2.py +19 -13
- weave/weaveapi/synthesize/v1/training_pb2.pyi +119 -106
- weave/weaveapi/synthesize/v1/training_pb2_grpc.pyi +11 -10
- weave/weavesql/llmxdb/capabilities.py +487 -0
- weave/weavesql/llmxdb/changes.py +297 -0
- weave/weavesql/llmxdb/models.py +594 -0
- weave/weavesql/llmxdb/providers.py +348 -0
- weave/weavesql/llmxdb/scraper_runs.py +287 -0
- weave/weavesql/llmxdb/search.py +721 -0
- weave/weavesql/weavedb/dataset.py +75 -0
- weave/weavesql/weavedb/models.py +135 -0
- weave/weavesql/weavedb/relationships.py +72 -0
- weave/weavesql/weavedb/storage.py +113 -0
- weave/weavesql/weavedb/synthesizer.py +107 -0
- {weave_python-0.28.2.dist-info → weave_python-0.30.3.dist-info}/METADATA +3 -3
- weave_python-0.30.3.dist-info/RECORD +131 -0
- {weave_python-0.28.2.dist-info → weave_python-0.30.3.dist-info}/WHEEL +1 -1
- weave_python-0.28.2.dist-info/RECORD +0 -120
- {weave_python-0.28.2.dist-info → weave_python-0.30.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: weaveapi/auth/v1/session.proto
|
|
5
|
-
# Protobuf Python Version: 6.
|
|
5
|
+
# Protobuf Python Version: 6.33.5
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
|
|
8
8
|
from google.protobuf import descriptor as _descriptor
|
|
@@ -12,7 +12,7 @@ from google.protobuf import symbol_database as _symbol_database
|
|
|
12
12
|
from google.protobuf.internal import builder as _builder
|
|
13
13
|
|
|
14
14
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
15
|
-
_runtime_version.Domain.PUBLIC, 6,
|
|
15
|
+
_runtime_version.Domain.PUBLIC, 6, 33, 5, "", "weaveapi/auth/v1/session.proto"
|
|
16
16
|
)
|
|
17
17
|
# @@protoc_insertion_point(imports)
|
|
18
18
|
|
|
@@ -20,7 +20,7 @@ _sym_db = _symbol_database.Default()
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
|
23
|
-
b'\n\x1eweaveapi/auth/v1/session.proto\x12\x10weaveapi.auth.v1\x1a\x1fgoogle/protobuf/timestamp.proto"\
|
|
23
|
+
b'\n\x1eweaveapi/auth/v1/session.proto\x12\x10weaveapi.auth.v1\x1a!google/protobuf/go_features.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xd2\x03\n\x07Session\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x17\n\x07user_id\x18\x02 \x01(\tR\x06userId\x12\x19\n\x08token_id\x18\x03 \x01(\tR\x07tokenId\x12\x1d\n\nip_address\x18\x04 \x01(\tR\tipAddress\x12\x1d\n\nuser_agent\x18\x05 \x01(\tR\tuserAgent\x12\x1a\n\x08location\x18\x06 \x01(\tR\x08location\x12\x1f\n\x0b\x64\x65vice_type\x18\x07 \x01(\tR\ndeviceType\x12\x1b\n\tis_active\x18\x08 \x01(\x08R\x08isActive\x12=\n\nexpires_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02(\x01R\texpiresAt\x12H\n\x10last_activity_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02(\x01R\x0elastActivityAt\x12#\n\rrequest_count\x18\x0b \x01(\x05R\x0crequestCount\x12=\n\ncreated_at\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02(\x01R\tcreatedAtB\xc4\x01\n\x14\x63om.weaveapi.auth.v1B\x0cSessionProtoP\x01Z4github.com/weave-labs/weave-go/weaveapi/auth/v1;auth\xa2\x02\x03WAX\xaa\x02\x10Weaveapi.Auth.V1\xca\x02\x10Weaveapi\\Auth\\V1\xe2\x02\x1cWeaveapi\\Auth\\V1\\GPBMetadata\xea\x02\x12Weaveapi::Auth::V1\x92\x03\x05\xd2>\x02\x10\x03\x62\x08\x65\x64itionsp\xe8\x07'
|
|
24
24
|
)
|
|
25
25
|
|
|
26
26
|
_globals = globals()
|
|
@@ -32,7 +32,15 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
32
32
|
_globals["DESCRIPTOR"]._loaded_options = None
|
|
33
33
|
_globals[
|
|
34
34
|
"DESCRIPTOR"
|
|
35
|
-
]._serialized_options = b"\n\024com.weaveapi.auth.v1B\014SessionProtoP\001Z4github.com/weave-labs/weave-go/weaveapi/auth/v1;auth\242\002\003WAX\252\002\020Weaveapi.Auth.V1\312\002\020Weaveapi\\Auth\\V1\342\002\034Weaveapi\\Auth\\V1\\GPBMetadata\352\002\022Weaveapi::Auth::V1"
|
|
36
|
-
_globals["_SESSION"].
|
|
37
|
-
_globals["_SESSION"].
|
|
35
|
+
]._serialized_options = b"\n\024com.weaveapi.auth.v1B\014SessionProtoP\001Z4github.com/weave-labs/weave-go/weaveapi/auth/v1;auth\242\002\003WAX\252\002\020Weaveapi.Auth.V1\312\002\020Weaveapi\\Auth\\V1\342\002\034Weaveapi\\Auth\\V1\\GPBMetadata\352\002\022Weaveapi::Auth::V1\222\003\005\322>\002\020\003"
|
|
36
|
+
_globals["_SESSION"].fields_by_name["expires_at"]._loaded_options = None
|
|
37
|
+
_globals["_SESSION"].fields_by_name["expires_at"]._serialized_options = b"(\001"
|
|
38
|
+
_globals["_SESSION"].fields_by_name["last_activity_at"]._loaded_options = None
|
|
39
|
+
_globals["_SESSION"].fields_by_name[
|
|
40
|
+
"last_activity_at"
|
|
41
|
+
]._serialized_options = b"(\001"
|
|
42
|
+
_globals["_SESSION"].fields_by_name["created_at"]._loaded_options = None
|
|
43
|
+
_globals["_SESSION"].fields_by_name["created_at"]._serialized_options = b"(\001"
|
|
44
|
+
_globals["_SESSION"]._serialized_start = 121
|
|
45
|
+
_globals["_SESSION"]._serialized_end = 587
|
|
38
46
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -3,109 +3,129 @@
|
|
|
3
3
|
isort:skip_file
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import
|
|
10
|
-
import
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import message as _message
|
|
8
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
9
|
+
import builtins as _builtins
|
|
10
|
+
import sys
|
|
11
|
+
import typing as _typing
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
if sys.version_info >= (3, 10):
|
|
14
|
+
from typing import TypeAlias as _TypeAlias
|
|
15
|
+
else:
|
|
16
|
+
from typing_extensions import TypeAlias as _TypeAlias
|
|
13
17
|
|
|
14
|
-
|
|
15
|
-
class Session(google.protobuf.message.Message):
|
|
16
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
18
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
17
19
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
20
|
+
@_typing.final
|
|
21
|
+
class Session(_message.Message):
|
|
22
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
23
|
+
|
|
24
|
+
ID_FIELD_NUMBER: _builtins.int
|
|
25
|
+
USER_ID_FIELD_NUMBER: _builtins.int
|
|
26
|
+
TOKEN_ID_FIELD_NUMBER: _builtins.int
|
|
27
|
+
IP_ADDRESS_FIELD_NUMBER: _builtins.int
|
|
28
|
+
USER_AGENT_FIELD_NUMBER: _builtins.int
|
|
29
|
+
LOCATION_FIELD_NUMBER: _builtins.int
|
|
30
|
+
DEVICE_TYPE_FIELD_NUMBER: _builtins.int
|
|
31
|
+
IS_ACTIVE_FIELD_NUMBER: _builtins.int
|
|
32
|
+
EXPIRES_AT_FIELD_NUMBER: _builtins.int
|
|
33
|
+
LAST_ACTIVITY_AT_FIELD_NUMBER: _builtins.int
|
|
34
|
+
REQUEST_COUNT_FIELD_NUMBER: _builtins.int
|
|
35
|
+
CREATED_AT_FIELD_NUMBER: _builtins.int
|
|
36
|
+
id: _builtins.str
|
|
37
|
+
user_id: _builtins.str
|
|
38
|
+
token_id: _builtins.str
|
|
33
39
|
"""JWT token ID"""
|
|
34
|
-
ip_address:
|
|
40
|
+
ip_address: _builtins.str
|
|
35
41
|
"""Session details"""
|
|
36
|
-
user_agent:
|
|
37
|
-
location:
|
|
42
|
+
user_agent: _builtins.str
|
|
43
|
+
location: _builtins.str
|
|
38
44
|
"""Geo-location if available"""
|
|
39
|
-
device_type:
|
|
45
|
+
device_type: _builtins.str
|
|
40
46
|
"""desktop, mobile, tablet"""
|
|
41
|
-
is_active:
|
|
47
|
+
is_active: _builtins.bool
|
|
42
48
|
"""Status"""
|
|
43
|
-
request_count:
|
|
44
|
-
@property
|
|
45
|
-
def expires_at(self) ->
|
|
46
|
-
@property
|
|
47
|
-
def last_activity_at(self) ->
|
|
49
|
+
request_count: _builtins.int
|
|
50
|
+
@_builtins.property
|
|
51
|
+
def expires_at(self) -> _timestamp_pb2.Timestamp: ...
|
|
52
|
+
@_builtins.property
|
|
53
|
+
def last_activity_at(self) -> _timestamp_pb2.Timestamp:
|
|
48
54
|
"""Activity"""
|
|
49
55
|
|
|
50
|
-
@property
|
|
51
|
-
def created_at(self) ->
|
|
56
|
+
@_builtins.property
|
|
57
|
+
def created_at(self) -> _timestamp_pb2.Timestamp:
|
|
52
58
|
"""Metadata"""
|
|
53
59
|
|
|
54
60
|
def __init__(
|
|
55
61
|
self,
|
|
56
62
|
*,
|
|
57
|
-
id:
|
|
58
|
-
user_id:
|
|
59
|
-
token_id:
|
|
60
|
-
ip_address:
|
|
61
|
-
user_agent:
|
|
62
|
-
location:
|
|
63
|
-
device_type:
|
|
64
|
-
is_active:
|
|
65
|
-
expires_at:
|
|
66
|
-
last_activity_at:
|
|
67
|
-
request_count:
|
|
68
|
-
created_at:
|
|
69
|
-
) -> None: ...
|
|
70
|
-
def HasField(
|
|
71
|
-
self,
|
|
72
|
-
field_name: typing.Literal[
|
|
73
|
-
"created_at",
|
|
74
|
-
b"created_at",
|
|
75
|
-
"expires_at",
|
|
76
|
-
b"expires_at",
|
|
77
|
-
"last_activity_at",
|
|
78
|
-
b"last_activity_at",
|
|
79
|
-
],
|
|
80
|
-
) -> builtins.bool: ...
|
|
81
|
-
def ClearField(
|
|
82
|
-
self,
|
|
83
|
-
field_name: typing.Literal[
|
|
84
|
-
"created_at",
|
|
85
|
-
b"created_at",
|
|
86
|
-
"device_type",
|
|
87
|
-
b"device_type",
|
|
88
|
-
"expires_at",
|
|
89
|
-
b"expires_at",
|
|
90
|
-
"id",
|
|
91
|
-
b"id",
|
|
92
|
-
"ip_address",
|
|
93
|
-
b"ip_address",
|
|
94
|
-
"is_active",
|
|
95
|
-
b"is_active",
|
|
96
|
-
"last_activity_at",
|
|
97
|
-
b"last_activity_at",
|
|
98
|
-
"location",
|
|
99
|
-
b"location",
|
|
100
|
-
"request_count",
|
|
101
|
-
b"request_count",
|
|
102
|
-
"token_id",
|
|
103
|
-
b"token_id",
|
|
104
|
-
"user_agent",
|
|
105
|
-
b"user_agent",
|
|
106
|
-
"user_id",
|
|
107
|
-
b"user_id",
|
|
108
|
-
],
|
|
63
|
+
id: _builtins.str | None = ...,
|
|
64
|
+
user_id: _builtins.str | None = ...,
|
|
65
|
+
token_id: _builtins.str | None = ...,
|
|
66
|
+
ip_address: _builtins.str | None = ...,
|
|
67
|
+
user_agent: _builtins.str | None = ...,
|
|
68
|
+
location: _builtins.str | None = ...,
|
|
69
|
+
device_type: _builtins.str | None = ...,
|
|
70
|
+
is_active: _builtins.bool | None = ...,
|
|
71
|
+
expires_at: _timestamp_pb2.Timestamp | None = ...,
|
|
72
|
+
last_activity_at: _timestamp_pb2.Timestamp | None = ...,
|
|
73
|
+
request_count: _builtins.int | None = ...,
|
|
74
|
+
created_at: _timestamp_pb2.Timestamp | None = ...,
|
|
109
75
|
) -> None: ...
|
|
76
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
77
|
+
"created_at",
|
|
78
|
+
b"created_at",
|
|
79
|
+
"device_type",
|
|
80
|
+
b"device_type",
|
|
81
|
+
"expires_at",
|
|
82
|
+
b"expires_at",
|
|
83
|
+
"id",
|
|
84
|
+
b"id",
|
|
85
|
+
"ip_address",
|
|
86
|
+
b"ip_address",
|
|
87
|
+
"is_active",
|
|
88
|
+
b"is_active",
|
|
89
|
+
"last_activity_at",
|
|
90
|
+
b"last_activity_at",
|
|
91
|
+
"location",
|
|
92
|
+
b"location",
|
|
93
|
+
"request_count",
|
|
94
|
+
b"request_count",
|
|
95
|
+
"token_id",
|
|
96
|
+
b"token_id",
|
|
97
|
+
"user_agent",
|
|
98
|
+
b"user_agent",
|
|
99
|
+
"user_id",
|
|
100
|
+
b"user_id",
|
|
101
|
+
] # noqa: Y015
|
|
102
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
103
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
104
|
+
"created_at",
|
|
105
|
+
b"created_at",
|
|
106
|
+
"device_type",
|
|
107
|
+
b"device_type",
|
|
108
|
+
"expires_at",
|
|
109
|
+
b"expires_at",
|
|
110
|
+
"id",
|
|
111
|
+
b"id",
|
|
112
|
+
"ip_address",
|
|
113
|
+
b"ip_address",
|
|
114
|
+
"is_active",
|
|
115
|
+
b"is_active",
|
|
116
|
+
"last_activity_at",
|
|
117
|
+
b"last_activity_at",
|
|
118
|
+
"location",
|
|
119
|
+
b"location",
|
|
120
|
+
"request_count",
|
|
121
|
+
b"request_count",
|
|
122
|
+
"token_id",
|
|
123
|
+
b"token_id",
|
|
124
|
+
"user_agent",
|
|
125
|
+
b"user_agent",
|
|
126
|
+
"user_id",
|
|
127
|
+
b"user_id",
|
|
128
|
+
] # noqa: Y015
|
|
129
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
110
130
|
|
|
111
|
-
|
|
131
|
+
Global___Session: _TypeAlias = Session # noqa: Y015
|
|
@@ -3,18 +3,19 @@
|
|
|
3
3
|
isort:skip_file
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
|
-
import abc
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import grpc
|
|
10
|
-
import typing
|
|
6
|
+
from collections import abc as _abc
|
|
7
|
+
from grpc import aio as _aio
|
|
8
|
+
import abc as _abc_1
|
|
9
|
+
import grpc as _grpc
|
|
10
|
+
import typing as _typing
|
|
11
11
|
|
|
12
|
-
_T =
|
|
12
|
+
_T = _typing.TypeVar("_T")
|
|
13
13
|
|
|
14
14
|
class _MaybeAsyncIterator(
|
|
15
|
-
|
|
16
|
-
collections.abc.Iterator[_T],
|
|
17
|
-
metaclass=abc.ABCMeta,
|
|
15
|
+
_abc.AsyncIterator[_T], _abc.Iterator[_T], metaclass=_abc_1.ABCMeta
|
|
18
16
|
): ...
|
|
19
|
-
class _ServicerContext(
|
|
17
|
+
class _ServicerContext(_grpc.ServicerContext, _aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
20
18
|
...
|
|
19
|
+
|
|
20
|
+
GRPC_GENERATED_VERSION: str
|
|
21
|
+
GRPC_VERSION: str
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: weaveapi/auth/v1/usage.proto
|
|
5
|
-
# Protobuf Python Version: 6.
|
|
5
|
+
# Protobuf Python Version: 6.33.5
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
|
|
8
8
|
from google.protobuf import descriptor as _descriptor
|
|
@@ -12,7 +12,7 @@ from google.protobuf import symbol_database as _symbol_database
|
|
|
12
12
|
from google.protobuf.internal import builder as _builder
|
|
13
13
|
|
|
14
14
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
15
|
-
_runtime_version.Domain.PUBLIC, 6,
|
|
15
|
+
_runtime_version.Domain.PUBLIC, 6, 33, 5, "", "weaveapi/auth/v1/usage.proto"
|
|
16
16
|
)
|
|
17
17
|
# @@protoc_insertion_point(imports)
|
|
18
18
|
|
|
@@ -20,7 +20,7 @@ _sym_db = _symbol_database.Default()
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
|
23
|
-
b'\n\x1cweaveapi/auth/v1/usage.proto\x12\x10weaveapi.auth.v1\x1a\x1fgoogle/protobuf/timestamp.proto"\
|
|
23
|
+
b'\n\x1cweaveapi/auth/v1/usage.proto\x12\x10weaveapi.auth.v1\x1a!google/protobuf/go_features.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xb4\x08\n\nUsageStats\x12\x16\n\x06period\x18\x01 \x01(\tR\x06period\x12=\n\nstart_date\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02(\x01R\tstartDate\x12\x39\n\x08\x65nd_date\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02(\x01R\x07\x65ndDate\x12%\n\x0etotal_requests\x18\x04 \x01(\x03R\rtotalRequests\x12/\n\x13successful_requests\x18\x05 \x01(\x03R\x12successfulRequests\x12\'\n\x0f\x66\x61iled_requests\x18\x06 \x01(\x03R\x0e\x66\x61iledRequests\x12\x32\n\x15rate_limited_requests\x18\x07 \x01(\x03R\x13rateLimitedRequests\x12\x66\n\x14requests_by_endpoint\x18\x08 \x03(\x0b\x32\x34.weaveapi.auth.v1.UsageStats.RequestsByEndpointEntryR\x12requestsByEndpoint\x12W\n\x0frequests_by_day\x18\t \x03(\x0b\x32/.weaveapi.auth.v1.UsageStats.RequestsByDayEntryR\rrequestsByDay\x12\x61\n\x13requests_by_api_key\x18\n \x03(\x0b\x32\x32.weaveapi.auth.v1.UsageStats.RequestsByApiKeyEntryR\x10requestsByApiKey\x12/\n\x14\x61vg_response_time_ms\x18\x0b \x01(\x01R\x11\x61vgResponseTimeMs\x12/\n\x14p95_response_time_ms\x18\x0c \x01(\x01R\x11p95ResponseTimeMs\x12/\n\x14p99_response_time_ms\x18\r \x01(\x01R\x11p99ResponseTimeMs\x12(\n\x10total_bytes_sent\x18\x0e \x01(\x03R\x0etotalBytesSent\x12\x30\n\x14total_bytes_received\x18\x0f \x01(\x03R\x12totalBytesReceived\x1a\x45\n\x17RequestsByEndpointEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\x03R\x05value:\x02\x38\x01\x1a@\n\x12RequestsByDayEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\x03R\x05value:\x02\x38\x01\x1a\x43\n\x15RequestsByApiKeyEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\x03R\x05value:\x02\x38\x01"\xcc\x02\n\x0bUsageLimits\x12\x12\n\x04tier\x18\x01 \x01(\tR\x04tier\x12*\n\x11requests_per_hour\x18\x02 \x01(\x03R\x0frequestsPerHour\x12(\n\x10requests_per_day\x18\x03 \x01(\x03R\x0erequestsPerDay\x12,\n\x12requests_per_month\x18\x04 \x01(\x03R\x10requestsPerMonth\x12(\n\x10\x61pi_keys_allowed\x18\x05 \x01(\x05R\x0e\x61piKeysAllowed\x12/\n\x13\x63oncurrent_requests\x18\x06 \x01(\x05R\x12\x63oncurrentRequests\x12%\n\x0ewebhook_access\x18\x07 \x01(\x08R\rwebhookAccess\x12#\n\rexport_access\x18\x08 \x01(\x08R\x0c\x65xportAccessB\xc2\x01\n\x14\x63om.weaveapi.auth.v1B\nUsageProtoP\x01Z4github.com/weave-labs/weave-go/weaveapi/auth/v1;auth\xa2\x02\x03WAX\xaa\x02\x10Weaveapi.Auth.V1\xca\x02\x10Weaveapi\\Auth\\V1\xe2\x02\x1cWeaveapi\\Auth\\V1\\GPBMetadata\xea\x02\x12Weaveapi::Auth::V1\x92\x03\x05\xd2>\x02\x10\x03\x62\x08\x65\x64itionsp\xe8\x07'
|
|
24
24
|
)
|
|
25
25
|
|
|
26
26
|
_globals = globals()
|
|
@@ -32,21 +32,25 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
32
32
|
_globals["DESCRIPTOR"]._loaded_options = None
|
|
33
33
|
_globals[
|
|
34
34
|
"DESCRIPTOR"
|
|
35
|
-
]._serialized_options = b"\n\024com.weaveapi.auth.v1B\nUsageProtoP\001Z4github.com/weave-labs/weave-go/weaveapi/auth/v1;auth\242\002\003WAX\252\002\020Weaveapi.Auth.V1\312\002\020Weaveapi\\Auth\\V1\342\002\034Weaveapi\\Auth\\V1\\GPBMetadata\352\002\022Weaveapi::Auth::V1"
|
|
35
|
+
]._serialized_options = b"\n\024com.weaveapi.auth.v1B\nUsageProtoP\001Z4github.com/weave-labs/weave-go/weaveapi/auth/v1;auth\242\002\003WAX\252\002\020Weaveapi.Auth.V1\312\002\020Weaveapi\\Auth\\V1\342\002\034Weaveapi\\Auth\\V1\\GPBMetadata\352\002\022Weaveapi::Auth::V1\222\003\005\322>\002\020\003"
|
|
36
36
|
_globals["_USAGESTATS_REQUESTSBYENDPOINTENTRY"]._loaded_options = None
|
|
37
37
|
_globals["_USAGESTATS_REQUESTSBYENDPOINTENTRY"]._serialized_options = b"8\001"
|
|
38
38
|
_globals["_USAGESTATS_REQUESTSBYDAYENTRY"]._loaded_options = None
|
|
39
39
|
_globals["_USAGESTATS_REQUESTSBYDAYENTRY"]._serialized_options = b"8\001"
|
|
40
40
|
_globals["_USAGESTATS_REQUESTSBYAPIKEYENTRY"]._loaded_options = None
|
|
41
41
|
_globals["_USAGESTATS_REQUESTSBYAPIKEYENTRY"]._serialized_options = b"8\001"
|
|
42
|
-
_globals["_USAGESTATS"].
|
|
43
|
-
_globals["_USAGESTATS"].
|
|
44
|
-
_globals["
|
|
45
|
-
_globals["
|
|
46
|
-
_globals["
|
|
47
|
-
_globals["
|
|
48
|
-
_globals["
|
|
49
|
-
_globals["
|
|
50
|
-
_globals["
|
|
51
|
-
_globals["
|
|
42
|
+
_globals["_USAGESTATS"].fields_by_name["start_date"]._loaded_options = None
|
|
43
|
+
_globals["_USAGESTATS"].fields_by_name["start_date"]._serialized_options = b"(\001"
|
|
44
|
+
_globals["_USAGESTATS"].fields_by_name["end_date"]._loaded_options = None
|
|
45
|
+
_globals["_USAGESTATS"].fields_by_name["end_date"]._serialized_options = b"(\001"
|
|
46
|
+
_globals["_USAGESTATS"]._serialized_start = 119
|
|
47
|
+
_globals["_USAGESTATS"]._serialized_end = 1195
|
|
48
|
+
_globals["_USAGESTATS_REQUESTSBYENDPOINTENTRY"]._serialized_start = 991
|
|
49
|
+
_globals["_USAGESTATS_REQUESTSBYENDPOINTENTRY"]._serialized_end = 1060
|
|
50
|
+
_globals["_USAGESTATS_REQUESTSBYDAYENTRY"]._serialized_start = 1062
|
|
51
|
+
_globals["_USAGESTATS_REQUESTSBYDAYENTRY"]._serialized_end = 1126
|
|
52
|
+
_globals["_USAGESTATS_REQUESTSBYAPIKEYENTRY"]._serialized_start = 1128
|
|
53
|
+
_globals["_USAGESTATS_REQUESTSBYAPIKEYENTRY"]._serialized_end = 1195
|
|
54
|
+
_globals["_USAGELIMITS"]._serialized_start = 1198
|
|
55
|
+
_globals["_USAGELIMITS"]._serialized_end = 1530
|
|
52
56
|
# @@protoc_insertion_point(module_scope)
|