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
|
@@ -3,1404 +3,1558 @@
|
|
|
3
3
|
isort:skip_file
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
6
|
+
from collections import abc as _abc
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import message as _message
|
|
9
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
10
|
+
from google.protobuf.internal import containers as _containers
|
|
11
|
+
from weaveapi.auth.v1 import session_pb2 as _session_pb2
|
|
12
|
+
from weaveapi.auth.v1 import usage_pb2 as _usage_pb2
|
|
13
|
+
from weaveapi.auth.v1 import user_pb2 as _user_pb2
|
|
14
|
+
import builtins as _builtins
|
|
15
|
+
import sys
|
|
16
|
+
import typing as _typing
|
|
17
|
+
|
|
18
|
+
if sys.version_info >= (3, 10):
|
|
19
|
+
from typing import TypeAlias as _TypeAlias
|
|
20
|
+
else:
|
|
21
|
+
from typing_extensions import TypeAlias as _TypeAlias
|
|
22
|
+
|
|
23
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
24
|
+
|
|
25
|
+
@_typing.final
|
|
26
|
+
class InitiateOAuthRequest(_message.Message):
|
|
27
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
28
|
+
|
|
29
|
+
@_typing.final
|
|
30
|
+
class ProviderParamsEntry(_message.Message):
|
|
31
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
32
|
+
|
|
33
|
+
KEY_FIELD_NUMBER: _builtins.int
|
|
34
|
+
VALUE_FIELD_NUMBER: _builtins.int
|
|
35
|
+
key: _builtins.str
|
|
36
|
+
value: _builtins.str
|
|
31
37
|
def __init__(
|
|
32
38
|
self,
|
|
33
39
|
*,
|
|
34
|
-
key:
|
|
35
|
-
value:
|
|
40
|
+
key: _builtins.str | None = ...,
|
|
41
|
+
value: _builtins.str | None = ...,
|
|
36
42
|
) -> None: ...
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015
|
|
44
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
45
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
46
|
+
"key", b"key", "value", b"value"
|
|
47
|
+
] # noqa: Y015
|
|
48
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
49
|
+
|
|
50
|
+
PROVIDER_FIELD_NUMBER: _builtins.int
|
|
51
|
+
REDIRECT_URI_FIELD_NUMBER: _builtins.int
|
|
52
|
+
STATE_FIELD_NUMBER: _builtins.int
|
|
53
|
+
SCOPE_FIELD_NUMBER: _builtins.int
|
|
54
|
+
PROVIDER_PARAMS_FIELD_NUMBER: _builtins.int
|
|
55
|
+
provider: _builtins.str
|
|
47
56
|
"""github, google, microsoft, gitlab"""
|
|
48
|
-
redirect_uri:
|
|
57
|
+
redirect_uri: _builtins.str
|
|
49
58
|
"""Optional custom redirect"""
|
|
50
|
-
state:
|
|
59
|
+
state: _builtins.str
|
|
51
60
|
"""CSRF protection"""
|
|
52
|
-
scope:
|
|
61
|
+
scope: _builtins.str
|
|
53
62
|
"""OAuth scopes (provider-specific)"""
|
|
54
|
-
@property
|
|
55
|
-
def provider_params(
|
|
56
|
-
self,
|
|
57
|
-
) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
63
|
+
@_builtins.property
|
|
64
|
+
def provider_params(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]:
|
|
58
65
|
"""Additional provider-specific params"""
|
|
59
66
|
|
|
60
67
|
def __init__(
|
|
61
68
|
self,
|
|
62
69
|
*,
|
|
63
|
-
provider:
|
|
64
|
-
redirect_uri:
|
|
65
|
-
state:
|
|
66
|
-
scope:
|
|
67
|
-
provider_params:
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
70
|
+
provider: _builtins.str | None = ...,
|
|
71
|
+
redirect_uri: _builtins.str | None = ...,
|
|
72
|
+
state: _builtins.str | None = ...,
|
|
73
|
+
scope: _builtins.str | None = ...,
|
|
74
|
+
provider_params: _abc.Mapping[_builtins.str, _builtins.str] | None = ...,
|
|
75
|
+
) -> None: ...
|
|
76
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
77
|
+
"provider",
|
|
78
|
+
b"provider",
|
|
79
|
+
"provider_params",
|
|
80
|
+
b"provider_params",
|
|
81
|
+
"redirect_uri",
|
|
82
|
+
b"redirect_uri",
|
|
83
|
+
"scope",
|
|
84
|
+
b"scope",
|
|
85
|
+
"state",
|
|
86
|
+
b"state",
|
|
87
|
+
] # noqa: Y015
|
|
88
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
89
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
90
|
+
"provider",
|
|
91
|
+
b"provider",
|
|
92
|
+
"provider_params",
|
|
93
|
+
b"provider_params",
|
|
94
|
+
"redirect_uri",
|
|
95
|
+
b"redirect_uri",
|
|
96
|
+
"scope",
|
|
97
|
+
b"scope",
|
|
98
|
+
"state",
|
|
99
|
+
b"state",
|
|
100
|
+
] # noqa: Y015
|
|
101
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
102
|
+
|
|
103
|
+
Global___InitiateOAuthRequest: _TypeAlias = InitiateOAuthRequest # noqa: Y015
|
|
104
|
+
|
|
105
|
+
@_typing.final
|
|
106
|
+
class InitiateOAuthResponse(_message.Message):
|
|
107
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
108
|
+
|
|
109
|
+
AUTH_URL_FIELD_NUMBER: _builtins.int
|
|
110
|
+
STATE_FIELD_NUMBER: _builtins.int
|
|
111
|
+
CODE_VERIFIER_FIELD_NUMBER: _builtins.int
|
|
112
|
+
PROVIDER_FIELD_NUMBER: _builtins.int
|
|
113
|
+
auth_url: _builtins.str
|
|
97
114
|
"""OAuth provider URL to redirect to"""
|
|
98
|
-
state:
|
|
115
|
+
state: _builtins.str
|
|
99
116
|
"""State parameter for CSRF"""
|
|
100
|
-
code_verifier:
|
|
117
|
+
code_verifier: _builtins.str
|
|
101
118
|
"""For PKCE flow (if supported)"""
|
|
102
|
-
provider:
|
|
119
|
+
provider: _builtins.str
|
|
103
120
|
"""Provider name for confirmation"""
|
|
104
121
|
def __init__(
|
|
105
122
|
self,
|
|
106
123
|
*,
|
|
107
|
-
auth_url:
|
|
108
|
-
state:
|
|
109
|
-
code_verifier:
|
|
110
|
-
provider:
|
|
111
|
-
) -> None: ...
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
124
|
+
auth_url: _builtins.str | None = ...,
|
|
125
|
+
state: _builtins.str | None = ...,
|
|
126
|
+
code_verifier: _builtins.str | None = ...,
|
|
127
|
+
provider: _builtins.str | None = ...,
|
|
128
|
+
) -> None: ...
|
|
129
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
130
|
+
"auth_url",
|
|
131
|
+
b"auth_url",
|
|
132
|
+
"code_verifier",
|
|
133
|
+
b"code_verifier",
|
|
134
|
+
"provider",
|
|
135
|
+
b"provider",
|
|
136
|
+
"state",
|
|
137
|
+
b"state",
|
|
138
|
+
] # noqa: Y015
|
|
139
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
140
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
141
|
+
"auth_url",
|
|
142
|
+
b"auth_url",
|
|
143
|
+
"code_verifier",
|
|
144
|
+
b"code_verifier",
|
|
145
|
+
"provider",
|
|
146
|
+
b"provider",
|
|
147
|
+
"state",
|
|
148
|
+
b"state",
|
|
149
|
+
] # noqa: Y015
|
|
150
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
151
|
+
|
|
152
|
+
Global___InitiateOAuthResponse: _TypeAlias = InitiateOAuthResponse # noqa: Y015
|
|
153
|
+
|
|
154
|
+
@_typing.final
|
|
155
|
+
class HandleOAuthCallbackRequest(_message.Message):
|
|
156
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
157
|
+
|
|
158
|
+
PROVIDER_FIELD_NUMBER: _builtins.int
|
|
159
|
+
CODE_FIELD_NUMBER: _builtins.int
|
|
160
|
+
STATE_FIELD_NUMBER: _builtins.int
|
|
161
|
+
CODE_VERIFIER_FIELD_NUMBER: _builtins.int
|
|
162
|
+
ERROR_FIELD_NUMBER: _builtins.int
|
|
163
|
+
ERROR_DESCRIPTION_FIELD_NUMBER: _builtins.int
|
|
164
|
+
provider: _builtins.str
|
|
139
165
|
"""github, google, microsoft, gitlab"""
|
|
140
|
-
code:
|
|
166
|
+
code: _builtins.str
|
|
141
167
|
"""OAuth authorization code"""
|
|
142
|
-
state:
|
|
168
|
+
state: _builtins.str
|
|
143
169
|
"""CSRF state parameter"""
|
|
144
|
-
code_verifier:
|
|
170
|
+
code_verifier: _builtins.str
|
|
145
171
|
"""For PKCE flow (if supported)"""
|
|
146
|
-
error:
|
|
172
|
+
error: _builtins.str
|
|
147
173
|
"""OAuth error if any"""
|
|
148
|
-
error_description:
|
|
174
|
+
error_description: _builtins.str
|
|
149
175
|
"""Error details"""
|
|
150
176
|
def __init__(
|
|
151
177
|
self,
|
|
152
178
|
*,
|
|
153
|
-
provider:
|
|
154
|
-
code:
|
|
155
|
-
state:
|
|
156
|
-
code_verifier:
|
|
157
|
-
error:
|
|
158
|
-
error_description:
|
|
159
|
-
) -> None: ...
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
179
|
+
provider: _builtins.str | None = ...,
|
|
180
|
+
code: _builtins.str | None = ...,
|
|
181
|
+
state: _builtins.str | None = ...,
|
|
182
|
+
code_verifier: _builtins.str | None = ...,
|
|
183
|
+
error: _builtins.str | None = ...,
|
|
184
|
+
error_description: _builtins.str | None = ...,
|
|
185
|
+
) -> None: ...
|
|
186
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
187
|
+
"code",
|
|
188
|
+
b"code",
|
|
189
|
+
"code_verifier",
|
|
190
|
+
b"code_verifier",
|
|
191
|
+
"error",
|
|
192
|
+
b"error",
|
|
193
|
+
"error_description",
|
|
194
|
+
b"error_description",
|
|
195
|
+
"provider",
|
|
196
|
+
b"provider",
|
|
197
|
+
"state",
|
|
198
|
+
b"state",
|
|
199
|
+
] # noqa: Y015
|
|
200
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
201
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
202
|
+
"code",
|
|
203
|
+
b"code",
|
|
204
|
+
"code_verifier",
|
|
205
|
+
b"code_verifier",
|
|
206
|
+
"error",
|
|
207
|
+
b"error",
|
|
208
|
+
"error_description",
|
|
209
|
+
b"error_description",
|
|
210
|
+
"provider",
|
|
211
|
+
b"provider",
|
|
212
|
+
"state",
|
|
213
|
+
b"state",
|
|
214
|
+
] # noqa: Y015
|
|
215
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
216
|
+
|
|
217
|
+
Global___HandleOAuthCallbackRequest: _TypeAlias = HandleOAuthCallbackRequest # noqa: Y015
|
|
218
|
+
|
|
219
|
+
@_typing.final
|
|
220
|
+
class HandleOAuthCallbackResponse(_message.Message):
|
|
221
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
222
|
+
|
|
223
|
+
ACCESS_TOKEN_FIELD_NUMBER: _builtins.int
|
|
224
|
+
REFRESH_TOKEN_FIELD_NUMBER: _builtins.int
|
|
225
|
+
EXPIRES_IN_FIELD_NUMBER: _builtins.int
|
|
226
|
+
USER_FIELD_NUMBER: _builtins.int
|
|
227
|
+
IS_NEW_USER_FIELD_NUMBER: _builtins.int
|
|
228
|
+
REDIRECT_URL_FIELD_NUMBER: _builtins.int
|
|
229
|
+
LINKED_PROVIDER_FIELD_NUMBER: _builtins.int
|
|
230
|
+
ACCOUNT_LINKED_FIELD_NUMBER: _builtins.int
|
|
231
|
+
access_token: _builtins.str
|
|
193
232
|
"""JWT access token"""
|
|
194
|
-
refresh_token:
|
|
233
|
+
refresh_token: _builtins.str
|
|
195
234
|
"""JWT refresh token"""
|
|
196
|
-
expires_in:
|
|
235
|
+
expires_in: _builtins.int
|
|
197
236
|
"""Seconds until access token expires"""
|
|
198
|
-
is_new_user:
|
|
237
|
+
is_new_user: _builtins.bool
|
|
199
238
|
"""True if user was just created"""
|
|
200
|
-
redirect_url:
|
|
239
|
+
redirect_url: _builtins.str
|
|
201
240
|
"""Where to redirect in the UI"""
|
|
202
|
-
linked_provider:
|
|
241
|
+
linked_provider: _builtins.str
|
|
203
242
|
"""Which provider was used"""
|
|
204
|
-
account_linked:
|
|
243
|
+
account_linked: _builtins.bool
|
|
205
244
|
"""True if linked to existing account"""
|
|
206
|
-
@property
|
|
207
|
-
def user(self) ->
|
|
208
|
-
"""User profile"""
|
|
209
|
-
|
|
245
|
+
@_builtins.property
|
|
246
|
+
def user(self) -> _user_pb2.User: ...
|
|
210
247
|
def __init__(
|
|
211
248
|
self,
|
|
212
249
|
*,
|
|
213
|
-
access_token:
|
|
214
|
-
refresh_token:
|
|
215
|
-
expires_in:
|
|
216
|
-
user:
|
|
217
|
-
is_new_user:
|
|
218
|
-
redirect_url:
|
|
219
|
-
linked_provider:
|
|
220
|
-
account_linked:
|
|
221
|
-
) -> None: ...
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
250
|
+
access_token: _builtins.str | None = ...,
|
|
251
|
+
refresh_token: _builtins.str | None = ...,
|
|
252
|
+
expires_in: _builtins.int | None = ...,
|
|
253
|
+
user: _user_pb2.User | None = ...,
|
|
254
|
+
is_new_user: _builtins.bool | None = ...,
|
|
255
|
+
redirect_url: _builtins.str | None = ...,
|
|
256
|
+
linked_provider: _builtins.str | None = ...,
|
|
257
|
+
account_linked: _builtins.bool | None = ...,
|
|
258
|
+
) -> None: ...
|
|
259
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
260
|
+
"access_token",
|
|
261
|
+
b"access_token",
|
|
262
|
+
"account_linked",
|
|
263
|
+
b"account_linked",
|
|
264
|
+
"expires_in",
|
|
265
|
+
b"expires_in",
|
|
266
|
+
"is_new_user",
|
|
267
|
+
b"is_new_user",
|
|
268
|
+
"linked_provider",
|
|
269
|
+
b"linked_provider",
|
|
270
|
+
"redirect_url",
|
|
271
|
+
b"redirect_url",
|
|
272
|
+
"refresh_token",
|
|
273
|
+
b"refresh_token",
|
|
274
|
+
"user",
|
|
275
|
+
b"user",
|
|
276
|
+
] # noqa: Y015
|
|
277
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
278
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
279
|
+
"access_token",
|
|
280
|
+
b"access_token",
|
|
281
|
+
"account_linked",
|
|
282
|
+
b"account_linked",
|
|
283
|
+
"expires_in",
|
|
284
|
+
b"expires_in",
|
|
285
|
+
"is_new_user",
|
|
286
|
+
b"is_new_user",
|
|
287
|
+
"linked_provider",
|
|
288
|
+
b"linked_provider",
|
|
289
|
+
"redirect_url",
|
|
290
|
+
b"redirect_url",
|
|
291
|
+
"refresh_token",
|
|
292
|
+
b"refresh_token",
|
|
293
|
+
"user",
|
|
294
|
+
b"user",
|
|
295
|
+
] # noqa: Y015
|
|
296
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
297
|
+
|
|
298
|
+
Global___HandleOAuthCallbackResponse: _TypeAlias = HandleOAuthCallbackResponse # noqa: Y015
|
|
299
|
+
|
|
300
|
+
@_typing.final
|
|
301
|
+
class GetOAuthProvidersRequest(_message.Message):
|
|
302
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
303
|
+
|
|
304
|
+
ENABLED_ONLY_FIELD_NUMBER: _builtins.int
|
|
305
|
+
enabled_only: _builtins.bool
|
|
255
306
|
"""Only return enabled providers"""
|
|
256
307
|
def __init__(
|
|
257
308
|
self,
|
|
258
309
|
*,
|
|
259
|
-
enabled_only:
|
|
260
|
-
) -> None: ...
|
|
261
|
-
def ClearField(
|
|
262
|
-
self, field_name: typing.Literal["enabled_only", b"enabled_only"]
|
|
310
|
+
enabled_only: _builtins.bool | None = ...,
|
|
263
311
|
) -> None: ...
|
|
312
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["enabled_only", b"enabled_only"] # noqa: Y015
|
|
313
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
314
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["enabled_only", b"enabled_only"] # noqa: Y015
|
|
315
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
264
316
|
|
|
265
|
-
|
|
317
|
+
Global___GetOAuthProvidersRequest: _TypeAlias = GetOAuthProvidersRequest # noqa: Y015
|
|
266
318
|
|
|
267
|
-
@
|
|
268
|
-
class GetOAuthProvidersResponse(
|
|
269
|
-
DESCRIPTOR:
|
|
319
|
+
@_typing.final
|
|
320
|
+
class GetOAuthProvidersResponse(_message.Message):
|
|
321
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
270
322
|
|
|
271
|
-
PROVIDERS_FIELD_NUMBER:
|
|
272
|
-
PRIMARY_PROVIDER_FIELD_NUMBER:
|
|
273
|
-
primary_provider:
|
|
323
|
+
PROVIDERS_FIELD_NUMBER: _builtins.int
|
|
324
|
+
PRIMARY_PROVIDER_FIELD_NUMBER: _builtins.int
|
|
325
|
+
primary_provider: _builtins.str
|
|
274
326
|
"""Recommended provider"""
|
|
275
|
-
@property
|
|
327
|
+
@_builtins.property
|
|
276
328
|
def providers(
|
|
277
329
|
self,
|
|
278
|
-
) ->
|
|
279
|
-
weaveapi.auth.v1.user_pb2.OAuthProvider
|
|
280
|
-
]: ...
|
|
330
|
+
) -> _containers.RepeatedCompositeFieldContainer[_user_pb2.OAuthProvider]: ...
|
|
281
331
|
def __init__(
|
|
282
332
|
self,
|
|
283
333
|
*,
|
|
284
|
-
providers:
|
|
285
|
-
| None = ...,
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
334
|
+
providers: _abc.Iterable[_user_pb2.OAuthProvider] | None = ...,
|
|
335
|
+
primary_provider: _builtins.str | None = ...,
|
|
336
|
+
) -> None: ...
|
|
337
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
338
|
+
"primary_provider", b"primary_provider", "providers", b"providers"
|
|
339
|
+
] # noqa: Y015
|
|
340
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
341
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
342
|
+
"primary_provider", b"primary_provider", "providers", b"providers"
|
|
343
|
+
] # noqa: Y015
|
|
344
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
345
|
+
|
|
346
|
+
Global___GetOAuthProvidersResponse: _TypeAlias = GetOAuthProvidersResponse # noqa: Y015
|
|
347
|
+
|
|
348
|
+
@_typing.final
|
|
349
|
+
class LinkOAuthProviderRequest(_message.Message):
|
|
350
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
351
|
+
|
|
352
|
+
PROVIDER_FIELD_NUMBER: _builtins.int
|
|
353
|
+
REDIRECT_URI_FIELD_NUMBER: _builtins.int
|
|
354
|
+
provider: _builtins.str
|
|
304
355
|
"""Provider to link"""
|
|
305
|
-
redirect_uri:
|
|
356
|
+
redirect_uri: _builtins.str
|
|
306
357
|
"""Where to redirect after linking"""
|
|
307
358
|
def __init__(
|
|
308
359
|
self,
|
|
309
360
|
*,
|
|
310
|
-
provider:
|
|
311
|
-
redirect_uri:
|
|
312
|
-
) -> None: ...
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
361
|
+
provider: _builtins.str | None = ...,
|
|
362
|
+
redirect_uri: _builtins.str | None = ...,
|
|
363
|
+
) -> None: ...
|
|
364
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
365
|
+
"provider", b"provider", "redirect_uri", b"redirect_uri"
|
|
366
|
+
] # noqa: Y015
|
|
367
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
368
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
369
|
+
"provider", b"provider", "redirect_uri", b"redirect_uri"
|
|
370
|
+
] # noqa: Y015
|
|
371
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
372
|
+
|
|
373
|
+
Global___LinkOAuthProviderRequest: _TypeAlias = LinkOAuthProviderRequest # noqa: Y015
|
|
374
|
+
|
|
375
|
+
@_typing.final
|
|
376
|
+
class LinkOAuthProviderResponse(_message.Message):
|
|
377
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
378
|
+
|
|
379
|
+
AUTH_URL_FIELD_NUMBER: _builtins.int
|
|
380
|
+
STATE_FIELD_NUMBER: _builtins.int
|
|
381
|
+
auth_url: _builtins.str
|
|
329
382
|
"""OAuth URL to start linking flow"""
|
|
330
|
-
state:
|
|
383
|
+
state: _builtins.str
|
|
331
384
|
"""CSRF state"""
|
|
332
385
|
def __init__(
|
|
333
386
|
self,
|
|
334
387
|
*,
|
|
335
|
-
auth_url:
|
|
336
|
-
state:
|
|
337
|
-
) -> None: ...
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
388
|
+
auth_url: _builtins.str | None = ...,
|
|
389
|
+
state: _builtins.str | None = ...,
|
|
390
|
+
) -> None: ...
|
|
391
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
392
|
+
"auth_url", b"auth_url", "state", b"state"
|
|
393
|
+
] # noqa: Y015
|
|
394
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
395
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
396
|
+
"auth_url", b"auth_url", "state", b"state"
|
|
397
|
+
] # noqa: Y015
|
|
398
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
399
|
+
|
|
400
|
+
Global___LinkOAuthProviderResponse: _TypeAlias = LinkOAuthProviderResponse # noqa: Y015
|
|
401
|
+
|
|
402
|
+
@_typing.final
|
|
403
|
+
class UnlinkOAuthProviderRequest(_message.Message):
|
|
404
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
405
|
+
|
|
406
|
+
PROVIDER_FIELD_NUMBER: _builtins.int
|
|
407
|
+
provider: _builtins.str
|
|
350
408
|
"""Provider to unlink"""
|
|
351
409
|
def __init__(
|
|
352
410
|
self,
|
|
353
411
|
*,
|
|
354
|
-
provider:
|
|
355
|
-
) -> None: ...
|
|
356
|
-
def ClearField(
|
|
357
|
-
self, field_name: typing.Literal["provider", b"provider"]
|
|
412
|
+
provider: _builtins.str | None = ...,
|
|
358
413
|
) -> None: ...
|
|
414
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["provider", b"provider"] # noqa: Y015
|
|
415
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
416
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["provider", b"provider"] # noqa: Y015
|
|
417
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
359
418
|
|
|
360
|
-
|
|
419
|
+
Global___UnlinkOAuthProviderRequest: _TypeAlias = UnlinkOAuthProviderRequest # noqa: Y015
|
|
361
420
|
|
|
362
|
-
@
|
|
363
|
-
class UnlinkOAuthProviderResponse(
|
|
364
|
-
DESCRIPTOR:
|
|
421
|
+
@_typing.final
|
|
422
|
+
class UnlinkOAuthProviderResponse(_message.Message):
|
|
423
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
365
424
|
|
|
366
|
-
SUCCESS_FIELD_NUMBER:
|
|
367
|
-
MESSAGE_FIELD_NUMBER:
|
|
368
|
-
REMAINING_PROVIDERS_FIELD_NUMBER:
|
|
369
|
-
success:
|
|
370
|
-
message:
|
|
371
|
-
remaining_providers:
|
|
425
|
+
SUCCESS_FIELD_NUMBER: _builtins.int
|
|
426
|
+
MESSAGE_FIELD_NUMBER: _builtins.int
|
|
427
|
+
REMAINING_PROVIDERS_FIELD_NUMBER: _builtins.int
|
|
428
|
+
success: _builtins.bool
|
|
429
|
+
message: _builtins.str
|
|
430
|
+
remaining_providers: _builtins.int
|
|
372
431
|
"""Number of providers still linked"""
|
|
373
432
|
def __init__(
|
|
374
433
|
self,
|
|
375
434
|
*,
|
|
376
|
-
success:
|
|
377
|
-
message:
|
|
378
|
-
remaining_providers:
|
|
379
|
-
) -> None: ...
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
435
|
+
success: _builtins.bool | None = ...,
|
|
436
|
+
message: _builtins.str | None = ...,
|
|
437
|
+
remaining_providers: _builtins.int | None = ...,
|
|
438
|
+
) -> None: ...
|
|
439
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
440
|
+
"message",
|
|
441
|
+
b"message",
|
|
442
|
+
"remaining_providers",
|
|
443
|
+
b"remaining_providers",
|
|
444
|
+
"success",
|
|
445
|
+
b"success",
|
|
446
|
+
] # noqa: Y015
|
|
447
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
448
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
449
|
+
"message",
|
|
450
|
+
b"message",
|
|
451
|
+
"remaining_providers",
|
|
452
|
+
b"remaining_providers",
|
|
453
|
+
"success",
|
|
454
|
+
b"success",
|
|
455
|
+
] # noqa: Y015
|
|
456
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
457
|
+
|
|
458
|
+
Global___UnlinkOAuthProviderResponse: _TypeAlias = UnlinkOAuthProviderResponse # noqa: Y015
|
|
459
|
+
|
|
460
|
+
@_typing.final
|
|
461
|
+
class RefreshTokenRequest(_message.Message):
|
|
462
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
463
|
+
|
|
464
|
+
REFRESH_TOKEN_FIELD_NUMBER: _builtins.int
|
|
465
|
+
refresh_token: _builtins.str
|
|
400
466
|
def __init__(
|
|
401
467
|
self,
|
|
402
468
|
*,
|
|
403
|
-
refresh_token:
|
|
404
|
-
) -> None: ...
|
|
405
|
-
def ClearField(
|
|
406
|
-
self, field_name: typing.Literal["refresh_token", b"refresh_token"]
|
|
469
|
+
refresh_token: _builtins.str | None = ...,
|
|
407
470
|
) -> None: ...
|
|
471
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["refresh_token", b"refresh_token"] # noqa: Y015
|
|
472
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
473
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["refresh_token", b"refresh_token"] # noqa: Y015
|
|
474
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
408
475
|
|
|
409
|
-
|
|
476
|
+
Global___RefreshTokenRequest: _TypeAlias = RefreshTokenRequest # noqa: Y015
|
|
410
477
|
|
|
411
|
-
@
|
|
412
|
-
class RefreshTokenResponse(
|
|
413
|
-
DESCRIPTOR:
|
|
478
|
+
@_typing.final
|
|
479
|
+
class RefreshTokenResponse(_message.Message):
|
|
480
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
414
481
|
|
|
415
|
-
ACCESS_TOKEN_FIELD_NUMBER:
|
|
416
|
-
REFRESH_TOKEN_FIELD_NUMBER:
|
|
417
|
-
EXPIRES_IN_FIELD_NUMBER:
|
|
418
|
-
access_token:
|
|
419
|
-
refresh_token:
|
|
482
|
+
ACCESS_TOKEN_FIELD_NUMBER: _builtins.int
|
|
483
|
+
REFRESH_TOKEN_FIELD_NUMBER: _builtins.int
|
|
484
|
+
EXPIRES_IN_FIELD_NUMBER: _builtins.int
|
|
485
|
+
access_token: _builtins.str
|
|
486
|
+
refresh_token: _builtins.str
|
|
420
487
|
"""New refresh token"""
|
|
421
|
-
expires_in:
|
|
488
|
+
expires_in: _builtins.int
|
|
422
489
|
def __init__(
|
|
423
490
|
self,
|
|
424
491
|
*,
|
|
425
|
-
access_token:
|
|
426
|
-
refresh_token:
|
|
427
|
-
expires_in:
|
|
428
|
-
) -> None: ...
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
492
|
+
access_token: _builtins.str | None = ...,
|
|
493
|
+
refresh_token: _builtins.str | None = ...,
|
|
494
|
+
expires_in: _builtins.int | None = ...,
|
|
495
|
+
) -> None: ...
|
|
496
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
497
|
+
"access_token",
|
|
498
|
+
b"access_token",
|
|
499
|
+
"expires_in",
|
|
500
|
+
b"expires_in",
|
|
501
|
+
"refresh_token",
|
|
502
|
+
b"refresh_token",
|
|
503
|
+
] # noqa: Y015
|
|
504
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
505
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
506
|
+
"access_token",
|
|
507
|
+
b"access_token",
|
|
508
|
+
"expires_in",
|
|
509
|
+
b"expires_in",
|
|
510
|
+
"refresh_token",
|
|
511
|
+
b"refresh_token",
|
|
512
|
+
] # noqa: Y015
|
|
513
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
514
|
+
|
|
515
|
+
Global___RefreshTokenResponse: _TypeAlias = RefreshTokenResponse # noqa: Y015
|
|
516
|
+
|
|
517
|
+
@_typing.final
|
|
518
|
+
class RevokeTokenRequest(_message.Message):
|
|
519
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
520
|
+
|
|
521
|
+
REFRESH_TOKEN_FIELD_NUMBER: _builtins.int
|
|
522
|
+
refresh_token: _builtins.str
|
|
449
523
|
def __init__(
|
|
450
524
|
self,
|
|
451
525
|
*,
|
|
452
|
-
refresh_token:
|
|
453
|
-
) -> None: ...
|
|
454
|
-
def ClearField(
|
|
455
|
-
self, field_name: typing.Literal["refresh_token", b"refresh_token"]
|
|
526
|
+
refresh_token: _builtins.str | None = ...,
|
|
456
527
|
) -> None: ...
|
|
528
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["refresh_token", b"refresh_token"] # noqa: Y015
|
|
529
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
530
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["refresh_token", b"refresh_token"] # noqa: Y015
|
|
531
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
457
532
|
|
|
458
|
-
|
|
533
|
+
Global___RevokeTokenRequest: _TypeAlias = RevokeTokenRequest # noqa: Y015
|
|
459
534
|
|
|
460
|
-
@
|
|
461
|
-
class RevokeTokenResponse(
|
|
462
|
-
DESCRIPTOR:
|
|
535
|
+
@_typing.final
|
|
536
|
+
class RevokeTokenResponse(_message.Message):
|
|
537
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
463
538
|
|
|
464
|
-
SUCCESS_FIELD_NUMBER:
|
|
465
|
-
MESSAGE_FIELD_NUMBER:
|
|
466
|
-
success:
|
|
467
|
-
message:
|
|
539
|
+
SUCCESS_FIELD_NUMBER: _builtins.int
|
|
540
|
+
MESSAGE_FIELD_NUMBER: _builtins.int
|
|
541
|
+
success: _builtins.bool
|
|
542
|
+
message: _builtins.str
|
|
468
543
|
def __init__(
|
|
469
544
|
self,
|
|
470
545
|
*,
|
|
471
|
-
success:
|
|
472
|
-
message:
|
|
473
|
-
) -> None: ...
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
546
|
+
success: _builtins.bool | None = ...,
|
|
547
|
+
message: _builtins.str | None = ...,
|
|
548
|
+
) -> None: ...
|
|
549
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
550
|
+
"message", b"message", "success", b"success"
|
|
551
|
+
] # noqa: Y015
|
|
552
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
553
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
554
|
+
"message", b"message", "success", b"success"
|
|
555
|
+
] # noqa: Y015
|
|
556
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
557
|
+
|
|
558
|
+
Global___RevokeTokenResponse: _TypeAlias = RevokeTokenResponse # noqa: Y015
|
|
559
|
+
|
|
560
|
+
@_typing.final
|
|
561
|
+
class ValidateTokenRequest(_message.Message):
|
|
562
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
563
|
+
|
|
564
|
+
ACCESS_TOKEN_FIELD_NUMBER: _builtins.int
|
|
565
|
+
access_token: _builtins.str
|
|
486
566
|
def __init__(
|
|
487
567
|
self,
|
|
488
568
|
*,
|
|
489
|
-
access_token:
|
|
490
|
-
) -> None: ...
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
569
|
+
access_token: _builtins.str | None = ...,
|
|
570
|
+
) -> None: ...
|
|
571
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["access_token", b"access_token"] # noqa: Y015
|
|
572
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
573
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["access_token", b"access_token"] # noqa: Y015
|
|
574
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
575
|
+
|
|
576
|
+
Global___ValidateTokenRequest: _TypeAlias = ValidateTokenRequest # noqa: Y015
|
|
577
|
+
|
|
578
|
+
@_typing.final
|
|
579
|
+
class ValidateTokenResponse(_message.Message):
|
|
580
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
581
|
+
|
|
582
|
+
VALID_FIELD_NUMBER: _builtins.int
|
|
583
|
+
USER_ID_FIELD_NUMBER: _builtins.int
|
|
584
|
+
SCOPES_FIELD_NUMBER: _builtins.int
|
|
585
|
+
EXPIRES_AT_FIELD_NUMBER: _builtins.int
|
|
586
|
+
TIER_FIELD_NUMBER: _builtins.int
|
|
587
|
+
valid: _builtins.bool
|
|
588
|
+
user_id: _builtins.str
|
|
589
|
+
tier: _builtins.str
|
|
509
590
|
"""free, pro"""
|
|
510
|
-
@property
|
|
511
|
-
def scopes(
|
|
512
|
-
|
|
513
|
-
) ->
|
|
514
|
-
builtins.str
|
|
515
|
-
]: ...
|
|
516
|
-
@property
|
|
517
|
-
def expires_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
591
|
+
@_builtins.property
|
|
592
|
+
def scopes(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ...
|
|
593
|
+
@_builtins.property
|
|
594
|
+
def expires_at(self) -> _timestamp_pb2.Timestamp: ...
|
|
518
595
|
def __init__(
|
|
519
596
|
self,
|
|
520
597
|
*,
|
|
521
|
-
valid:
|
|
522
|
-
user_id:
|
|
523
|
-
scopes:
|
|
524
|
-
expires_at:
|
|
525
|
-
tier:
|
|
526
|
-
) -> None: ...
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
598
|
+
valid: _builtins.bool | None = ...,
|
|
599
|
+
user_id: _builtins.str | None = ...,
|
|
600
|
+
scopes: _abc.Iterable[_builtins.str] | None = ...,
|
|
601
|
+
expires_at: _timestamp_pb2.Timestamp | None = ...,
|
|
602
|
+
tier: _builtins.str | None = ...,
|
|
603
|
+
) -> None: ...
|
|
604
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
605
|
+
"expires_at",
|
|
606
|
+
b"expires_at",
|
|
607
|
+
"scopes",
|
|
608
|
+
b"scopes",
|
|
609
|
+
"tier",
|
|
610
|
+
b"tier",
|
|
611
|
+
"user_id",
|
|
612
|
+
b"user_id",
|
|
613
|
+
"valid",
|
|
614
|
+
b"valid",
|
|
615
|
+
] # noqa: Y015
|
|
616
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
617
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
618
|
+
"expires_at",
|
|
619
|
+
b"expires_at",
|
|
620
|
+
"scopes",
|
|
621
|
+
b"scopes",
|
|
622
|
+
"tier",
|
|
623
|
+
b"tier",
|
|
624
|
+
"user_id",
|
|
625
|
+
b"user_id",
|
|
626
|
+
"valid",
|
|
627
|
+
b"valid",
|
|
628
|
+
] # noqa: Y015
|
|
629
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
630
|
+
|
|
631
|
+
Global___ValidateTokenResponse: _TypeAlias = ValidateTokenResponse # noqa: Y015
|
|
632
|
+
|
|
633
|
+
@_typing.final
|
|
634
|
+
class GetCurrentUserRequest(_message.Message):
|
|
550
635
|
"""Uses JWT from Authorization header"""
|
|
551
636
|
|
|
552
|
-
DESCRIPTOR:
|
|
637
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
553
638
|
|
|
554
639
|
def __init__(
|
|
555
640
|
self,
|
|
556
641
|
) -> None: ...
|
|
557
642
|
|
|
558
|
-
|
|
643
|
+
Global___GetCurrentUserRequest: _TypeAlias = GetCurrentUserRequest # noqa: Y015
|
|
559
644
|
|
|
560
|
-
@
|
|
561
|
-
class GetCurrentUserResponse(
|
|
562
|
-
DESCRIPTOR:
|
|
645
|
+
@_typing.final
|
|
646
|
+
class GetCurrentUserResponse(_message.Message):
|
|
647
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
563
648
|
|
|
564
|
-
USER_FIELD_NUMBER:
|
|
565
|
-
@property
|
|
566
|
-
def user(self) ->
|
|
649
|
+
USER_FIELD_NUMBER: _builtins.int
|
|
650
|
+
@_builtins.property
|
|
651
|
+
def user(self) -> _user_pb2.User: ...
|
|
567
652
|
def __init__(
|
|
568
653
|
self,
|
|
569
654
|
*,
|
|
570
|
-
user:
|
|
571
|
-
) -> None: ...
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
def ClearField(self, field_name:
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
@
|
|
580
|
-
class UpdateUserRequest(
|
|
581
|
-
DESCRIPTOR:
|
|
582
|
-
|
|
583
|
-
FULL_NAME_FIELD_NUMBER:
|
|
584
|
-
EMAIL_FIELD_NUMBER:
|
|
585
|
-
PREFERENCES_FIELD_NUMBER:
|
|
586
|
-
full_name:
|
|
587
|
-
email:
|
|
588
|
-
@property
|
|
589
|
-
def preferences(self) ->
|
|
655
|
+
user: _user_pb2.User | None = ...,
|
|
656
|
+
) -> None: ...
|
|
657
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["user", b"user"] # noqa: Y015
|
|
658
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
659
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["user", b"user"] # noqa: Y015
|
|
660
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
661
|
+
|
|
662
|
+
Global___GetCurrentUserResponse: _TypeAlias = GetCurrentUserResponse # noqa: Y015
|
|
663
|
+
|
|
664
|
+
@_typing.final
|
|
665
|
+
class UpdateUserRequest(_message.Message):
|
|
666
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
667
|
+
|
|
668
|
+
FULL_NAME_FIELD_NUMBER: _builtins.int
|
|
669
|
+
EMAIL_FIELD_NUMBER: _builtins.int
|
|
670
|
+
PREFERENCES_FIELD_NUMBER: _builtins.int
|
|
671
|
+
full_name: _builtins.str
|
|
672
|
+
email: _builtins.str
|
|
673
|
+
@_builtins.property
|
|
674
|
+
def preferences(self) -> _user_pb2.UserPreferences: ...
|
|
590
675
|
def __init__(
|
|
591
676
|
self,
|
|
592
677
|
*,
|
|
593
|
-
full_name:
|
|
594
|
-
email:
|
|
595
|
-
preferences:
|
|
596
|
-
) -> None: ...
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
def
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
def user(self) -> weaveapi.auth.v1.user_pb2.User: ...
|
|
678
|
+
full_name: _builtins.str | None = ...,
|
|
679
|
+
email: _builtins.str | None = ...,
|
|
680
|
+
preferences: _user_pb2.UserPreferences | None = ...,
|
|
681
|
+
) -> None: ...
|
|
682
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
683
|
+
"email", b"email", "full_name", b"full_name", "preferences", b"preferences"
|
|
684
|
+
] # noqa: Y015
|
|
685
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
686
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
687
|
+
"email", b"email", "full_name", b"full_name", "preferences", b"preferences"
|
|
688
|
+
] # noqa: Y015
|
|
689
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
690
|
+
|
|
691
|
+
Global___UpdateUserRequest: _TypeAlias = UpdateUserRequest # noqa: Y015
|
|
692
|
+
|
|
693
|
+
@_typing.final
|
|
694
|
+
class UpdateUserResponse(_message.Message):
|
|
695
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
696
|
+
|
|
697
|
+
USER_FIELD_NUMBER: _builtins.int
|
|
698
|
+
@_builtins.property
|
|
699
|
+
def user(self) -> _user_pb2.User: ...
|
|
616
700
|
def __init__(
|
|
617
701
|
self,
|
|
618
702
|
*,
|
|
619
|
-
user:
|
|
703
|
+
user: _user_pb2.User | None = ...,
|
|
620
704
|
) -> None: ...
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
def ClearField(self, field_name:
|
|
705
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["user", b"user"] # noqa: Y015
|
|
706
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
707
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["user", b"user"] # noqa: Y015
|
|
708
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
625
709
|
|
|
626
|
-
|
|
710
|
+
Global___UpdateUserResponse: _TypeAlias = UpdateUserResponse # noqa: Y015
|
|
627
711
|
|
|
628
|
-
@
|
|
629
|
-
class DeleteUserRequest(
|
|
630
|
-
DESCRIPTOR:
|
|
712
|
+
@_typing.final
|
|
713
|
+
class DeleteUserRequest(_message.Message):
|
|
714
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
631
715
|
|
|
632
|
-
CONFIRMATION_FIELD_NUMBER:
|
|
633
|
-
PASSWORD_FIELD_NUMBER:
|
|
634
|
-
confirmation:
|
|
716
|
+
CONFIRMATION_FIELD_NUMBER: _builtins.int
|
|
717
|
+
PASSWORD_FIELD_NUMBER: _builtins.int
|
|
718
|
+
confirmation: _builtins.str
|
|
635
719
|
"""Must be "DELETE" """
|
|
636
|
-
password:
|
|
720
|
+
password: _builtins.str
|
|
637
721
|
"""For extra security"""
|
|
638
722
|
def __init__(
|
|
639
723
|
self,
|
|
640
724
|
*,
|
|
641
|
-
confirmation:
|
|
642
|
-
password:
|
|
643
|
-
) -> None: ...
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
725
|
+
confirmation: _builtins.str | None = ...,
|
|
726
|
+
password: _builtins.str | None = ...,
|
|
727
|
+
) -> None: ...
|
|
728
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
729
|
+
"confirmation", b"confirmation", "password", b"password"
|
|
730
|
+
] # noqa: Y015
|
|
731
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
732
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
733
|
+
"confirmation", b"confirmation", "password", b"password"
|
|
734
|
+
] # noqa: Y015
|
|
735
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
736
|
+
|
|
737
|
+
Global___DeleteUserRequest: _TypeAlias = DeleteUserRequest # noqa: Y015
|
|
738
|
+
|
|
739
|
+
@_typing.final
|
|
740
|
+
class DeleteUserResponse(_message.Message):
|
|
741
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
742
|
+
|
|
743
|
+
SUCCESS_FIELD_NUMBER: _builtins.int
|
|
744
|
+
MESSAGE_FIELD_NUMBER: _builtins.int
|
|
745
|
+
SCHEDULED_DELETION_AT_FIELD_NUMBER: _builtins.int
|
|
746
|
+
success: _builtins.bool
|
|
747
|
+
message: _builtins.str
|
|
748
|
+
@_builtins.property
|
|
749
|
+
def scheduled_deletion_at(self) -> _timestamp_pb2.Timestamp: ...
|
|
666
750
|
def __init__(
|
|
667
751
|
self,
|
|
668
752
|
*,
|
|
669
|
-
success:
|
|
670
|
-
message:
|
|
671
|
-
scheduled_deletion_at:
|
|
672
|
-
) -> None: ...
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
753
|
+
success: _builtins.bool | None = ...,
|
|
754
|
+
message: _builtins.str | None = ...,
|
|
755
|
+
scheduled_deletion_at: _timestamp_pb2.Timestamp | None = ...,
|
|
756
|
+
) -> None: ...
|
|
757
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
758
|
+
"message",
|
|
759
|
+
b"message",
|
|
760
|
+
"scheduled_deletion_at",
|
|
761
|
+
b"scheduled_deletion_at",
|
|
762
|
+
"success",
|
|
763
|
+
b"success",
|
|
764
|
+
] # noqa: Y015
|
|
765
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
766
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
767
|
+
"message",
|
|
768
|
+
b"message",
|
|
769
|
+
"scheduled_deletion_at",
|
|
770
|
+
b"scheduled_deletion_at",
|
|
771
|
+
"success",
|
|
772
|
+
b"success",
|
|
773
|
+
] # noqa: Y015
|
|
774
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
775
|
+
|
|
776
|
+
Global___DeleteUserResponse: _TypeAlias = DeleteUserResponse # noqa: Y015
|
|
777
|
+
|
|
778
|
+
@_typing.final
|
|
779
|
+
class ListAPIKeysRequest(_message.Message):
|
|
693
780
|
"""API Key management messages"""
|
|
694
781
|
|
|
695
|
-
DESCRIPTOR:
|
|
782
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
696
783
|
|
|
697
|
-
PAGE_SIZE_FIELD_NUMBER:
|
|
698
|
-
PAGE_TOKEN_FIELD_NUMBER:
|
|
699
|
-
ACTIVE_ONLY_FIELD_NUMBER:
|
|
700
|
-
page_size:
|
|
701
|
-
page_token:
|
|
702
|
-
active_only:
|
|
784
|
+
PAGE_SIZE_FIELD_NUMBER: _builtins.int
|
|
785
|
+
PAGE_TOKEN_FIELD_NUMBER: _builtins.int
|
|
786
|
+
ACTIVE_ONLY_FIELD_NUMBER: _builtins.int
|
|
787
|
+
page_size: _builtins.int
|
|
788
|
+
page_token: _builtins.str
|
|
789
|
+
active_only: _builtins.bool
|
|
703
790
|
def __init__(
|
|
704
791
|
self,
|
|
705
792
|
*,
|
|
706
|
-
page_size:
|
|
707
|
-
page_token:
|
|
708
|
-
active_only:
|
|
709
|
-
) -> None: ...
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
793
|
+
page_size: _builtins.int | None = ...,
|
|
794
|
+
page_token: _builtins.str | None = ...,
|
|
795
|
+
active_only: _builtins.bool | None = ...,
|
|
796
|
+
) -> None: ...
|
|
797
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
798
|
+
"active_only",
|
|
799
|
+
b"active_only",
|
|
800
|
+
"page_size",
|
|
801
|
+
b"page_size",
|
|
802
|
+
"page_token",
|
|
803
|
+
b"page_token",
|
|
804
|
+
] # noqa: Y015
|
|
805
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
806
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
807
|
+
"active_only",
|
|
808
|
+
b"active_only",
|
|
809
|
+
"page_size",
|
|
810
|
+
b"page_size",
|
|
811
|
+
"page_token",
|
|
812
|
+
b"page_token",
|
|
813
|
+
] # noqa: Y015
|
|
814
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
815
|
+
|
|
816
|
+
Global___ListAPIKeysRequest: _TypeAlias = ListAPIKeysRequest # noqa: Y015
|
|
817
|
+
|
|
818
|
+
@_typing.final
|
|
819
|
+
class ListAPIKeysResponse(_message.Message):
|
|
820
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
821
|
+
|
|
822
|
+
API_KEYS_FIELD_NUMBER: _builtins.int
|
|
823
|
+
NEXT_PAGE_TOKEN_FIELD_NUMBER: _builtins.int
|
|
824
|
+
TOTAL_COUNT_FIELD_NUMBER: _builtins.int
|
|
825
|
+
next_page_token: _builtins.str
|
|
826
|
+
total_count: _builtins.int
|
|
827
|
+
@_builtins.property
|
|
734
828
|
def api_keys(
|
|
735
829
|
self,
|
|
736
|
-
) ->
|
|
737
|
-
weaveapi.auth.v1.user_pb2.APIKey
|
|
738
|
-
]: ...
|
|
830
|
+
) -> _containers.RepeatedCompositeFieldContainer[_user_pb2.APIKey]: ...
|
|
739
831
|
def __init__(
|
|
740
832
|
self,
|
|
741
833
|
*,
|
|
742
|
-
api_keys:
|
|
743
|
-
| None = ...,
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
834
|
+
api_keys: _abc.Iterable[_user_pb2.APIKey] | None = ...,
|
|
835
|
+
next_page_token: _builtins.str | None = ...,
|
|
836
|
+
total_count: _builtins.int | None = ...,
|
|
837
|
+
) -> None: ...
|
|
838
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
839
|
+
"api_keys",
|
|
840
|
+
b"api_keys",
|
|
841
|
+
"next_page_token",
|
|
842
|
+
b"next_page_token",
|
|
843
|
+
"total_count",
|
|
844
|
+
b"total_count",
|
|
845
|
+
] # noqa: Y015
|
|
846
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
847
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
848
|
+
"api_keys",
|
|
849
|
+
b"api_keys",
|
|
850
|
+
"next_page_token",
|
|
851
|
+
b"next_page_token",
|
|
852
|
+
"total_count",
|
|
853
|
+
b"total_count",
|
|
854
|
+
] # noqa: Y015
|
|
855
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
856
|
+
|
|
857
|
+
Global___ListAPIKeysResponse: _TypeAlias = ListAPIKeysResponse # noqa: Y015
|
|
858
|
+
|
|
859
|
+
@_typing.final
|
|
860
|
+
class CreateAPIKeyRequest(_message.Message):
|
|
861
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
862
|
+
|
|
863
|
+
NAME_FIELD_NUMBER: _builtins.int
|
|
864
|
+
DESCRIPTION_FIELD_NUMBER: _builtins.int
|
|
865
|
+
SCOPES_FIELD_NUMBER: _builtins.int
|
|
866
|
+
ALLOWED_ENDPOINTS_FIELD_NUMBER: _builtins.int
|
|
867
|
+
ALLOWED_IPS_FIELD_NUMBER: _builtins.int
|
|
868
|
+
EXPIRES_AT_FIELD_NUMBER: _builtins.int
|
|
869
|
+
name: _builtins.str
|
|
870
|
+
description: _builtins.str
|
|
871
|
+
@_builtins.property
|
|
872
|
+
def scopes(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]:
|
|
777
873
|
"""read, write"""
|
|
778
874
|
|
|
779
|
-
@property
|
|
875
|
+
@_builtins.property
|
|
780
876
|
def allowed_endpoints(
|
|
781
877
|
self,
|
|
782
|
-
) ->
|
|
878
|
+
) -> _containers.RepeatedScalarFieldContainer[_builtins.str]:
|
|
783
879
|
"""Optional endpoint restrictions"""
|
|
784
880
|
|
|
785
|
-
@property
|
|
786
|
-
def allowed_ips(
|
|
787
|
-
self,
|
|
788
|
-
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
881
|
+
@_builtins.property
|
|
882
|
+
def allowed_ips(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]:
|
|
789
883
|
"""Optional IP whitelist"""
|
|
790
884
|
|
|
791
|
-
@property
|
|
792
|
-
def expires_at(self) ->
|
|
793
|
-
"""Optional expiration"""
|
|
794
|
-
|
|
885
|
+
@_builtins.property
|
|
886
|
+
def expires_at(self) -> _timestamp_pb2.Timestamp: ...
|
|
795
887
|
def __init__(
|
|
796
888
|
self,
|
|
797
889
|
*,
|
|
798
|
-
name:
|
|
799
|
-
description:
|
|
800
|
-
scopes:
|
|
801
|
-
allowed_endpoints:
|
|
802
|
-
allowed_ips:
|
|
803
|
-
expires_at:
|
|
804
|
-
) -> None: ...
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
890
|
+
name: _builtins.str | None = ...,
|
|
891
|
+
description: _builtins.str | None = ...,
|
|
892
|
+
scopes: _abc.Iterable[_builtins.str] | None = ...,
|
|
893
|
+
allowed_endpoints: _abc.Iterable[_builtins.str] | None = ...,
|
|
894
|
+
allowed_ips: _abc.Iterable[_builtins.str] | None = ...,
|
|
895
|
+
expires_at: _timestamp_pb2.Timestamp | None = ...,
|
|
896
|
+
) -> None: ...
|
|
897
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
898
|
+
"allowed_endpoints",
|
|
899
|
+
b"allowed_endpoints",
|
|
900
|
+
"allowed_ips",
|
|
901
|
+
b"allowed_ips",
|
|
902
|
+
"description",
|
|
903
|
+
b"description",
|
|
904
|
+
"expires_at",
|
|
905
|
+
b"expires_at",
|
|
906
|
+
"name",
|
|
907
|
+
b"name",
|
|
908
|
+
"scopes",
|
|
909
|
+
b"scopes",
|
|
910
|
+
] # noqa: Y015
|
|
911
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
912
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
913
|
+
"allowed_endpoints",
|
|
914
|
+
b"allowed_endpoints",
|
|
915
|
+
"allowed_ips",
|
|
916
|
+
b"allowed_ips",
|
|
917
|
+
"description",
|
|
918
|
+
b"description",
|
|
919
|
+
"expires_at",
|
|
920
|
+
b"expires_at",
|
|
921
|
+
"name",
|
|
922
|
+
b"name",
|
|
923
|
+
"scopes",
|
|
924
|
+
b"scopes",
|
|
925
|
+
] # noqa: Y015
|
|
926
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
927
|
+
|
|
928
|
+
Global___CreateAPIKeyRequest: _TypeAlias = CreateAPIKeyRequest # noqa: Y015
|
|
929
|
+
|
|
930
|
+
@_typing.final
|
|
931
|
+
class CreateAPIKeyResponse(_message.Message):
|
|
932
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
933
|
+
|
|
934
|
+
API_KEY_FIELD_NUMBER: _builtins.int
|
|
935
|
+
SECRET_KEY_FIELD_NUMBER: _builtins.int
|
|
936
|
+
WARNING_FIELD_NUMBER: _builtins.int
|
|
937
|
+
secret_key: _builtins.str
|
|
836
938
|
"""Full key, only shown once"""
|
|
837
|
-
warning:
|
|
939
|
+
warning: _builtins.str
|
|
838
940
|
""""Store this key securely, it won't be shown again" """
|
|
839
|
-
@property
|
|
840
|
-
def api_key(self) ->
|
|
941
|
+
@_builtins.property
|
|
942
|
+
def api_key(self) -> _user_pb2.APIKey: ...
|
|
841
943
|
def __init__(
|
|
842
944
|
self,
|
|
843
945
|
*,
|
|
844
|
-
api_key:
|
|
845
|
-
secret_key:
|
|
846
|
-
warning:
|
|
847
|
-
) -> None: ...
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
def
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
key_id: builtins.str
|
|
946
|
+
api_key: _user_pb2.APIKey | None = ...,
|
|
947
|
+
secret_key: _builtins.str | None = ...,
|
|
948
|
+
warning: _builtins.str | None = ...,
|
|
949
|
+
) -> None: ...
|
|
950
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
951
|
+
"api_key", b"api_key", "secret_key", b"secret_key", "warning", b"warning"
|
|
952
|
+
] # noqa: Y015
|
|
953
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
954
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
955
|
+
"api_key", b"api_key", "secret_key", b"secret_key", "warning", b"warning"
|
|
956
|
+
] # noqa: Y015
|
|
957
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
958
|
+
|
|
959
|
+
Global___CreateAPIKeyResponse: _TypeAlias = CreateAPIKeyResponse # noqa: Y015
|
|
960
|
+
|
|
961
|
+
@_typing.final
|
|
962
|
+
class GetAPIKeyRequest(_message.Message):
|
|
963
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
964
|
+
|
|
965
|
+
KEY_ID_FIELD_NUMBER: _builtins.int
|
|
966
|
+
key_id: _builtins.str
|
|
866
967
|
def __init__(
|
|
867
968
|
self,
|
|
868
969
|
*,
|
|
869
|
-
key_id:
|
|
970
|
+
key_id: _builtins.str | None = ...,
|
|
870
971
|
) -> None: ...
|
|
871
|
-
|
|
972
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["key_id", b"key_id"] # noqa: Y015
|
|
973
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
974
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["key_id", b"key_id"] # noqa: Y015
|
|
975
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
872
976
|
|
|
873
|
-
|
|
977
|
+
Global___GetAPIKeyRequest: _TypeAlias = GetAPIKeyRequest # noqa: Y015
|
|
874
978
|
|
|
875
|
-
@
|
|
876
|
-
class GetAPIKeyResponse(
|
|
877
|
-
DESCRIPTOR:
|
|
979
|
+
@_typing.final
|
|
980
|
+
class GetAPIKeyResponse(_message.Message):
|
|
981
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
878
982
|
|
|
879
|
-
API_KEY_FIELD_NUMBER:
|
|
880
|
-
@property
|
|
881
|
-
def api_key(self) ->
|
|
983
|
+
API_KEY_FIELD_NUMBER: _builtins.int
|
|
984
|
+
@_builtins.property
|
|
985
|
+
def api_key(self) -> _user_pb2.APIKey: ...
|
|
882
986
|
def __init__(
|
|
883
987
|
self,
|
|
884
988
|
*,
|
|
885
|
-
api_key:
|
|
886
|
-
) -> None: ...
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
def ClearField(self, field_name:
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
@
|
|
895
|
-
class UpdateAPIKeyRequest(
|
|
896
|
-
DESCRIPTOR:
|
|
897
|
-
|
|
898
|
-
KEY_ID_FIELD_NUMBER:
|
|
899
|
-
NAME_FIELD_NUMBER:
|
|
900
|
-
DESCRIPTION_FIELD_NUMBER:
|
|
901
|
-
ALLOWED_ENDPOINTS_FIELD_NUMBER:
|
|
902
|
-
ALLOWED_IPS_FIELD_NUMBER:
|
|
903
|
-
IS_ACTIVE_FIELD_NUMBER:
|
|
904
|
-
key_id:
|
|
905
|
-
name:
|
|
906
|
-
description:
|
|
907
|
-
is_active:
|
|
908
|
-
@property
|
|
989
|
+
api_key: _user_pb2.APIKey | None = ...,
|
|
990
|
+
) -> None: ...
|
|
991
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["api_key", b"api_key"] # noqa: Y015
|
|
992
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
993
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["api_key", b"api_key"] # noqa: Y015
|
|
994
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
995
|
+
|
|
996
|
+
Global___GetAPIKeyResponse: _TypeAlias = GetAPIKeyResponse # noqa: Y015
|
|
997
|
+
|
|
998
|
+
@_typing.final
|
|
999
|
+
class UpdateAPIKeyRequest(_message.Message):
|
|
1000
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
1001
|
+
|
|
1002
|
+
KEY_ID_FIELD_NUMBER: _builtins.int
|
|
1003
|
+
NAME_FIELD_NUMBER: _builtins.int
|
|
1004
|
+
DESCRIPTION_FIELD_NUMBER: _builtins.int
|
|
1005
|
+
ALLOWED_ENDPOINTS_FIELD_NUMBER: _builtins.int
|
|
1006
|
+
ALLOWED_IPS_FIELD_NUMBER: _builtins.int
|
|
1007
|
+
IS_ACTIVE_FIELD_NUMBER: _builtins.int
|
|
1008
|
+
key_id: _builtins.str
|
|
1009
|
+
name: _builtins.str
|
|
1010
|
+
description: _builtins.str
|
|
1011
|
+
is_active: _builtins.bool
|
|
1012
|
+
@_builtins.property
|
|
909
1013
|
def allowed_endpoints(
|
|
910
1014
|
self,
|
|
911
|
-
) ->
|
|
912
|
-
|
|
913
|
-
]: ...
|
|
914
|
-
@property
|
|
1015
|
+
) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ...
|
|
1016
|
+
@_builtins.property
|
|
915
1017
|
def allowed_ips(
|
|
916
1018
|
self,
|
|
917
|
-
) ->
|
|
918
|
-
builtins.str
|
|
919
|
-
]: ...
|
|
1019
|
+
) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ...
|
|
920
1020
|
def __init__(
|
|
921
1021
|
self,
|
|
922
1022
|
*,
|
|
923
|
-
key_id:
|
|
924
|
-
name:
|
|
925
|
-
description:
|
|
926
|
-
allowed_endpoints:
|
|
927
|
-
allowed_ips:
|
|
928
|
-
is_active:
|
|
929
|
-
) -> None: ...
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
1023
|
+
key_id: _builtins.str | None = ...,
|
|
1024
|
+
name: _builtins.str | None = ...,
|
|
1025
|
+
description: _builtins.str | None = ...,
|
|
1026
|
+
allowed_endpoints: _abc.Iterable[_builtins.str] | None = ...,
|
|
1027
|
+
allowed_ips: _abc.Iterable[_builtins.str] | None = ...,
|
|
1028
|
+
is_active: _builtins.bool | None = ...,
|
|
1029
|
+
) -> None: ...
|
|
1030
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
1031
|
+
"allowed_endpoints",
|
|
1032
|
+
b"allowed_endpoints",
|
|
1033
|
+
"allowed_ips",
|
|
1034
|
+
b"allowed_ips",
|
|
1035
|
+
"description",
|
|
1036
|
+
b"description",
|
|
1037
|
+
"is_active",
|
|
1038
|
+
b"is_active",
|
|
1039
|
+
"key_id",
|
|
1040
|
+
b"key_id",
|
|
1041
|
+
"name",
|
|
1042
|
+
b"name",
|
|
1043
|
+
] # noqa: Y015
|
|
1044
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1045
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
1046
|
+
"allowed_endpoints",
|
|
1047
|
+
b"allowed_endpoints",
|
|
1048
|
+
"allowed_ips",
|
|
1049
|
+
b"allowed_ips",
|
|
1050
|
+
"description",
|
|
1051
|
+
b"description",
|
|
1052
|
+
"is_active",
|
|
1053
|
+
b"is_active",
|
|
1054
|
+
"key_id",
|
|
1055
|
+
b"key_id",
|
|
1056
|
+
"name",
|
|
1057
|
+
b"name",
|
|
1058
|
+
] # noqa: Y015
|
|
1059
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
1060
|
+
|
|
1061
|
+
Global___UpdateAPIKeyRequest: _TypeAlias = UpdateAPIKeyRequest # noqa: Y015
|
|
1062
|
+
|
|
1063
|
+
@_typing.final
|
|
1064
|
+
class UpdateAPIKeyResponse(_message.Message):
|
|
1065
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
1066
|
+
|
|
1067
|
+
API_KEY_FIELD_NUMBER: _builtins.int
|
|
1068
|
+
@_builtins.property
|
|
1069
|
+
def api_key(self) -> _user_pb2.APIKey: ...
|
|
957
1070
|
def __init__(
|
|
958
1071
|
self,
|
|
959
1072
|
*,
|
|
960
|
-
api_key:
|
|
1073
|
+
api_key: _user_pb2.APIKey | None = ...,
|
|
961
1074
|
) -> None: ...
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
def ClearField(self, field_name:
|
|
1075
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["api_key", b"api_key"] # noqa: Y015
|
|
1076
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1077
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["api_key", b"api_key"] # noqa: Y015
|
|
1078
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
966
1079
|
|
|
967
|
-
|
|
1080
|
+
Global___UpdateAPIKeyResponse: _TypeAlias = UpdateAPIKeyResponse # noqa: Y015
|
|
968
1081
|
|
|
969
|
-
@
|
|
970
|
-
class RevokeAPIKeyRequest(
|
|
971
|
-
DESCRIPTOR:
|
|
1082
|
+
@_typing.final
|
|
1083
|
+
class RevokeAPIKeyRequest(_message.Message):
|
|
1084
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
972
1085
|
|
|
973
|
-
KEY_ID_FIELD_NUMBER:
|
|
974
|
-
key_id:
|
|
1086
|
+
KEY_ID_FIELD_NUMBER: _builtins.int
|
|
1087
|
+
key_id: _builtins.str
|
|
975
1088
|
def __init__(
|
|
976
1089
|
self,
|
|
977
1090
|
*,
|
|
978
|
-
key_id:
|
|
1091
|
+
key_id: _builtins.str | None = ...,
|
|
979
1092
|
) -> None: ...
|
|
980
|
-
|
|
1093
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["key_id", b"key_id"] # noqa: Y015
|
|
1094
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1095
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["key_id", b"key_id"] # noqa: Y015
|
|
1096
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
981
1097
|
|
|
982
|
-
|
|
1098
|
+
Global___RevokeAPIKeyRequest: _TypeAlias = RevokeAPIKeyRequest # noqa: Y015
|
|
983
1099
|
|
|
984
|
-
@
|
|
985
|
-
class RevokeAPIKeyResponse(
|
|
986
|
-
DESCRIPTOR:
|
|
1100
|
+
@_typing.final
|
|
1101
|
+
class RevokeAPIKeyResponse(_message.Message):
|
|
1102
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
987
1103
|
|
|
988
|
-
SUCCESS_FIELD_NUMBER:
|
|
989
|
-
MESSAGE_FIELD_NUMBER:
|
|
990
|
-
success:
|
|
991
|
-
message:
|
|
1104
|
+
SUCCESS_FIELD_NUMBER: _builtins.int
|
|
1105
|
+
MESSAGE_FIELD_NUMBER: _builtins.int
|
|
1106
|
+
success: _builtins.bool
|
|
1107
|
+
message: _builtins.str
|
|
992
1108
|
def __init__(
|
|
993
1109
|
self,
|
|
994
1110
|
*,
|
|
995
|
-
success:
|
|
996
|
-
message:
|
|
997
|
-
) -> None: ...
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1111
|
+
success: _builtins.bool | None = ...,
|
|
1112
|
+
message: _builtins.str | None = ...,
|
|
1113
|
+
) -> None: ...
|
|
1114
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
1115
|
+
"message", b"message", "success", b"success"
|
|
1116
|
+
] # noqa: Y015
|
|
1117
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1118
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
1119
|
+
"message", b"message", "success", b"success"
|
|
1120
|
+
] # noqa: Y015
|
|
1121
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
1122
|
+
|
|
1123
|
+
Global___RevokeAPIKeyResponse: _TypeAlias = RevokeAPIKeyResponse # noqa: Y015
|
|
1124
|
+
|
|
1125
|
+
@_typing.final
|
|
1126
|
+
class ValidateAPIKeyRequest(_message.Message):
|
|
1127
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
1128
|
+
|
|
1129
|
+
API_KEY_FIELD_NUMBER: _builtins.int
|
|
1130
|
+
ENDPOINT_FIELD_NUMBER: _builtins.int
|
|
1131
|
+
IP_ADDRESS_FIELD_NUMBER: _builtins.int
|
|
1132
|
+
api_key: _builtins.str
|
|
1012
1133
|
"""Full API key"""
|
|
1013
|
-
endpoint:
|
|
1134
|
+
endpoint: _builtins.str
|
|
1014
1135
|
"""Endpoint being accessed"""
|
|
1015
|
-
ip_address:
|
|
1136
|
+
ip_address: _builtins.str
|
|
1016
1137
|
"""Request IP"""
|
|
1017
1138
|
def __init__(
|
|
1018
1139
|
self,
|
|
1019
1140
|
*,
|
|
1020
|
-
api_key:
|
|
1021
|
-
endpoint:
|
|
1022
|
-
ip_address:
|
|
1023
|
-
) -> None: ...
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1141
|
+
api_key: _builtins.str | None = ...,
|
|
1142
|
+
endpoint: _builtins.str | None = ...,
|
|
1143
|
+
ip_address: _builtins.str | None = ...,
|
|
1144
|
+
) -> None: ...
|
|
1145
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
1146
|
+
"api_key", b"api_key", "endpoint", b"endpoint", "ip_address", b"ip_address"
|
|
1147
|
+
] # noqa: Y015
|
|
1148
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1149
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
1150
|
+
"api_key", b"api_key", "endpoint", b"endpoint", "ip_address", b"ip_address"
|
|
1151
|
+
] # noqa: Y015
|
|
1152
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
1153
|
+
|
|
1154
|
+
Global___ValidateAPIKeyRequest: _TypeAlias = ValidateAPIKeyRequest # noqa: Y015
|
|
1155
|
+
|
|
1156
|
+
@_typing.final
|
|
1157
|
+
class ValidateAPIKeyResponse(_message.Message):
|
|
1158
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
1159
|
+
|
|
1160
|
+
VALID_FIELD_NUMBER: _builtins.int
|
|
1161
|
+
USER_ID_FIELD_NUMBER: _builtins.int
|
|
1162
|
+
TIER_FIELD_NUMBER: _builtins.int
|
|
1163
|
+
SCOPES_FIELD_NUMBER: _builtins.int
|
|
1164
|
+
RATE_LIMIT_FIELD_NUMBER: _builtins.int
|
|
1165
|
+
REJECTION_REASON_FIELD_NUMBER: _builtins.int
|
|
1166
|
+
valid: _builtins.bool
|
|
1167
|
+
user_id: _builtins.str
|
|
1168
|
+
tier: _builtins.str
|
|
1046
1169
|
"""free, pro"""
|
|
1047
|
-
rejection_reason:
|
|
1170
|
+
rejection_reason: _builtins.str
|
|
1048
1171
|
"""If invalid"""
|
|
1049
|
-
@property
|
|
1050
|
-
def scopes(
|
|
1051
|
-
|
|
1052
|
-
) ->
|
|
1053
|
-
builtins.str
|
|
1054
|
-
]: ...
|
|
1055
|
-
@property
|
|
1056
|
-
def rate_limit(self) -> global___RateLimitInfo: ...
|
|
1172
|
+
@_builtins.property
|
|
1173
|
+
def scopes(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ...
|
|
1174
|
+
@_builtins.property
|
|
1175
|
+
def rate_limit(self) -> Global___RateLimitInfo: ...
|
|
1057
1176
|
def __init__(
|
|
1058
1177
|
self,
|
|
1059
1178
|
*,
|
|
1060
|
-
valid:
|
|
1061
|
-
user_id:
|
|
1062
|
-
tier:
|
|
1063
|
-
scopes:
|
|
1064
|
-
rate_limit:
|
|
1065
|
-
rejection_reason:
|
|
1066
|
-
) -> None: ...
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1179
|
+
valid: _builtins.bool | None = ...,
|
|
1180
|
+
user_id: _builtins.str | None = ...,
|
|
1181
|
+
tier: _builtins.str | None = ...,
|
|
1182
|
+
scopes: _abc.Iterable[_builtins.str] | None = ...,
|
|
1183
|
+
rate_limit: Global___RateLimitInfo | None = ...,
|
|
1184
|
+
rejection_reason: _builtins.str | None = ...,
|
|
1185
|
+
) -> None: ...
|
|
1186
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
1187
|
+
"rate_limit",
|
|
1188
|
+
b"rate_limit",
|
|
1189
|
+
"rejection_reason",
|
|
1190
|
+
b"rejection_reason",
|
|
1191
|
+
"scopes",
|
|
1192
|
+
b"scopes",
|
|
1193
|
+
"tier",
|
|
1194
|
+
b"tier",
|
|
1195
|
+
"user_id",
|
|
1196
|
+
b"user_id",
|
|
1197
|
+
"valid",
|
|
1198
|
+
b"valid",
|
|
1199
|
+
] # noqa: Y015
|
|
1200
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1201
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
1202
|
+
"rate_limit",
|
|
1203
|
+
b"rate_limit",
|
|
1204
|
+
"rejection_reason",
|
|
1205
|
+
b"rejection_reason",
|
|
1206
|
+
"scopes",
|
|
1207
|
+
b"scopes",
|
|
1208
|
+
"tier",
|
|
1209
|
+
b"tier",
|
|
1210
|
+
"user_id",
|
|
1211
|
+
b"user_id",
|
|
1212
|
+
"valid",
|
|
1213
|
+
b"valid",
|
|
1214
|
+
] # noqa: Y015
|
|
1215
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
1216
|
+
|
|
1217
|
+
Global___ValidateAPIKeyResponse: _TypeAlias = ValidateAPIKeyResponse # noqa: Y015
|
|
1218
|
+
|
|
1219
|
+
@_typing.final
|
|
1220
|
+
class GetUsageStatsRequest(_message.Message):
|
|
1092
1221
|
"""Usage messages"""
|
|
1093
1222
|
|
|
1094
|
-
DESCRIPTOR:
|
|
1223
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
1095
1224
|
|
|
1096
|
-
PERIOD_FIELD_NUMBER:
|
|
1097
|
-
API_KEY_ID_FIELD_NUMBER:
|
|
1098
|
-
period:
|
|
1225
|
+
PERIOD_FIELD_NUMBER: _builtins.int
|
|
1226
|
+
API_KEY_ID_FIELD_NUMBER: _builtins.int
|
|
1227
|
+
period: _builtins.str
|
|
1099
1228
|
"""today, week, month, all"""
|
|
1100
|
-
api_key_id:
|
|
1229
|
+
api_key_id: _builtins.str
|
|
1101
1230
|
"""Optional: filter by specific key"""
|
|
1102
1231
|
def __init__(
|
|
1103
1232
|
self,
|
|
1104
1233
|
*,
|
|
1105
|
-
period:
|
|
1106
|
-
api_key_id:
|
|
1107
|
-
) -> None: ...
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
) ->
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1234
|
+
period: _builtins.str | None = ...,
|
|
1235
|
+
api_key_id: _builtins.str | None = ...,
|
|
1236
|
+
) -> None: ...
|
|
1237
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
1238
|
+
"api_key_id", b"api_key_id", "period", b"period"
|
|
1239
|
+
] # noqa: Y015
|
|
1240
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1241
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
1242
|
+
"api_key_id", b"api_key_id", "period", b"period"
|
|
1243
|
+
] # noqa: Y015
|
|
1244
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
1245
|
+
|
|
1246
|
+
Global___GetUsageStatsRequest: _TypeAlias = GetUsageStatsRequest # noqa: Y015
|
|
1247
|
+
|
|
1248
|
+
@_typing.final
|
|
1249
|
+
class GetUsageStatsResponse(_message.Message):
|
|
1250
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
1251
|
+
|
|
1252
|
+
CURRENT_PERIOD_FIELD_NUMBER: _builtins.int
|
|
1253
|
+
HISTORICAL_FIELD_NUMBER: _builtins.int
|
|
1254
|
+
LIMITS_FIELD_NUMBER: _builtins.int
|
|
1255
|
+
@_builtins.property
|
|
1256
|
+
def current_period(self) -> _usage_pb2.UsageStats: ...
|
|
1257
|
+
@_builtins.property
|
|
1125
1258
|
def historical(
|
|
1126
1259
|
self,
|
|
1127
|
-
) ->
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
"""Past periods"""
|
|
1131
|
-
|
|
1132
|
-
@property
|
|
1133
|
-
def limits(self) -> weaveapi.auth.v1.usage_pb2.UsageLimits: ...
|
|
1260
|
+
) -> _containers.RepeatedCompositeFieldContainer[_usage_pb2.UsageStats]: ...
|
|
1261
|
+
@_builtins.property
|
|
1262
|
+
def limits(self) -> _usage_pb2.UsageLimits: ...
|
|
1134
1263
|
def __init__(
|
|
1135
1264
|
self,
|
|
1136
1265
|
*,
|
|
1137
|
-
current_period:
|
|
1138
|
-
historical:
|
|
1139
|
-
| None = ...,
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
) -> None: ...
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
@
|
|
1163
|
-
class GetRateLimitStatusRequest(
|
|
1164
|
-
DESCRIPTOR:
|
|
1165
|
-
|
|
1166
|
-
API_KEY_ID_FIELD_NUMBER:
|
|
1167
|
-
api_key_id:
|
|
1266
|
+
current_period: _usage_pb2.UsageStats | None = ...,
|
|
1267
|
+
historical: _abc.Iterable[_usage_pb2.UsageStats] | None = ...,
|
|
1268
|
+
limits: _usage_pb2.UsageLimits | None = ...,
|
|
1269
|
+
) -> None: ...
|
|
1270
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
1271
|
+
"current_period",
|
|
1272
|
+
b"current_period",
|
|
1273
|
+
"historical",
|
|
1274
|
+
b"historical",
|
|
1275
|
+
"limits",
|
|
1276
|
+
b"limits",
|
|
1277
|
+
] # noqa: Y015
|
|
1278
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1279
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
1280
|
+
"current_period",
|
|
1281
|
+
b"current_period",
|
|
1282
|
+
"historical",
|
|
1283
|
+
b"historical",
|
|
1284
|
+
"limits",
|
|
1285
|
+
b"limits",
|
|
1286
|
+
] # noqa: Y015
|
|
1287
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
1288
|
+
|
|
1289
|
+
Global___GetUsageStatsResponse: _TypeAlias = GetUsageStatsResponse # noqa: Y015
|
|
1290
|
+
|
|
1291
|
+
@_typing.final
|
|
1292
|
+
class GetRateLimitStatusRequest(_message.Message):
|
|
1293
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
1294
|
+
|
|
1295
|
+
API_KEY_ID_FIELD_NUMBER: _builtins.int
|
|
1296
|
+
api_key_id: _builtins.str
|
|
1168
1297
|
"""Optional: check specific key"""
|
|
1169
1298
|
def __init__(
|
|
1170
1299
|
self,
|
|
1171
1300
|
*,
|
|
1172
|
-
api_key_id:
|
|
1173
|
-
) -> None: ...
|
|
1174
|
-
def ClearField(
|
|
1175
|
-
self, field_name: typing.Literal["api_key_id", b"api_key_id"]
|
|
1301
|
+
api_key_id: _builtins.str | None = ...,
|
|
1176
1302
|
) -> None: ...
|
|
1303
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["api_key_id", b"api_key_id"] # noqa: Y015
|
|
1304
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1305
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["api_key_id", b"api_key_id"] # noqa: Y015
|
|
1306
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
1177
1307
|
|
|
1178
|
-
|
|
1308
|
+
Global___GetRateLimitStatusRequest: _TypeAlias = GetRateLimitStatusRequest # noqa: Y015
|
|
1179
1309
|
|
|
1180
|
-
@
|
|
1181
|
-
class GetRateLimitStatusResponse(
|
|
1182
|
-
DESCRIPTOR:
|
|
1310
|
+
@_typing.final
|
|
1311
|
+
class GetRateLimitStatusResponse(_message.Message):
|
|
1312
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
1183
1313
|
|
|
1184
|
-
CURRENT_FIELD_NUMBER:
|
|
1185
|
-
BY_ENDPOINT_FIELD_NUMBER:
|
|
1186
|
-
@property
|
|
1187
|
-
def current(self) ->
|
|
1188
|
-
@property
|
|
1314
|
+
CURRENT_FIELD_NUMBER: _builtins.int
|
|
1315
|
+
BY_ENDPOINT_FIELD_NUMBER: _builtins.int
|
|
1316
|
+
@_builtins.property
|
|
1317
|
+
def current(self) -> Global___RateLimitInfo: ...
|
|
1318
|
+
@_builtins.property
|
|
1189
1319
|
def by_endpoint(
|
|
1190
1320
|
self,
|
|
1191
|
-
) ->
|
|
1192
|
-
global___RateLimitInfo
|
|
1193
|
-
]: ...
|
|
1321
|
+
) -> _containers.RepeatedCompositeFieldContainer[Global___RateLimitInfo]: ...
|
|
1194
1322
|
def __init__(
|
|
1195
1323
|
self,
|
|
1196
1324
|
*,
|
|
1197
|
-
current:
|
|
1198
|
-
by_endpoint:
|
|
1199
|
-
) -> None: ...
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
def
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
window: builtins.str
|
|
1325
|
+
current: Global___RateLimitInfo | None = ...,
|
|
1326
|
+
by_endpoint: _abc.Iterable[Global___RateLimitInfo] | None = ...,
|
|
1327
|
+
) -> None: ...
|
|
1328
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
1329
|
+
"by_endpoint", b"by_endpoint", "current", b"current"
|
|
1330
|
+
] # noqa: Y015
|
|
1331
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1332
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
1333
|
+
"by_endpoint", b"by_endpoint", "current", b"current"
|
|
1334
|
+
] # noqa: Y015
|
|
1335
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
1336
|
+
|
|
1337
|
+
Global___GetRateLimitStatusResponse: _TypeAlias = GetRateLimitStatusResponse # noqa: Y015
|
|
1338
|
+
|
|
1339
|
+
@_typing.final
|
|
1340
|
+
class RateLimitInfo(_message.Message):
|
|
1341
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
1342
|
+
|
|
1343
|
+
TIER_FIELD_NUMBER: _builtins.int
|
|
1344
|
+
WINDOW_FIELD_NUMBER: _builtins.int
|
|
1345
|
+
LIMIT_FIELD_NUMBER: _builtins.int
|
|
1346
|
+
REMAINING_FIELD_NUMBER: _builtins.int
|
|
1347
|
+
RESET_AT_FIELD_NUMBER: _builtins.int
|
|
1348
|
+
IS_LIMITED_FIELD_NUMBER: _builtins.int
|
|
1349
|
+
tier: _builtins.str
|
|
1350
|
+
window: _builtins.str
|
|
1224
1351
|
"""hour, minute"""
|
|
1225
|
-
limit:
|
|
1226
|
-
remaining:
|
|
1227
|
-
is_limited:
|
|
1228
|
-
@property
|
|
1229
|
-
def reset_at(self) ->
|
|
1352
|
+
limit: _builtins.int
|
|
1353
|
+
remaining: _builtins.int
|
|
1354
|
+
is_limited: _builtins.bool
|
|
1355
|
+
@_builtins.property
|
|
1356
|
+
def reset_at(self) -> _timestamp_pb2.Timestamp: ...
|
|
1230
1357
|
def __init__(
|
|
1231
1358
|
self,
|
|
1232
1359
|
*,
|
|
1233
|
-
tier:
|
|
1234
|
-
window:
|
|
1235
|
-
limit:
|
|
1236
|
-
remaining:
|
|
1237
|
-
reset_at:
|
|
1238
|
-
is_limited:
|
|
1239
|
-
) -> None: ...
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1360
|
+
tier: _builtins.str | None = ...,
|
|
1361
|
+
window: _builtins.str | None = ...,
|
|
1362
|
+
limit: _builtins.int | None = ...,
|
|
1363
|
+
remaining: _builtins.int | None = ...,
|
|
1364
|
+
reset_at: _timestamp_pb2.Timestamp | None = ...,
|
|
1365
|
+
is_limited: _builtins.bool | None = ...,
|
|
1366
|
+
) -> None: ...
|
|
1367
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
1368
|
+
"is_limited",
|
|
1369
|
+
b"is_limited",
|
|
1370
|
+
"limit",
|
|
1371
|
+
b"limit",
|
|
1372
|
+
"remaining",
|
|
1373
|
+
b"remaining",
|
|
1374
|
+
"reset_at",
|
|
1375
|
+
b"reset_at",
|
|
1376
|
+
"tier",
|
|
1377
|
+
b"tier",
|
|
1378
|
+
"window",
|
|
1379
|
+
b"window",
|
|
1380
|
+
] # noqa: Y015
|
|
1381
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1382
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
1383
|
+
"is_limited",
|
|
1384
|
+
b"is_limited",
|
|
1385
|
+
"limit",
|
|
1386
|
+
b"limit",
|
|
1387
|
+
"remaining",
|
|
1388
|
+
b"remaining",
|
|
1389
|
+
"reset_at",
|
|
1390
|
+
b"reset_at",
|
|
1391
|
+
"tier",
|
|
1392
|
+
b"tier",
|
|
1393
|
+
"window",
|
|
1394
|
+
b"window",
|
|
1395
|
+
] # noqa: Y015
|
|
1396
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
1397
|
+
|
|
1398
|
+
Global___RateLimitInfo: _TypeAlias = RateLimitInfo # noqa: Y015
|
|
1399
|
+
|
|
1400
|
+
@_typing.final
|
|
1401
|
+
class ListSessionsRequest(_message.Message):
|
|
1265
1402
|
"""Session management messages"""
|
|
1266
1403
|
|
|
1267
|
-
DESCRIPTOR:
|
|
1404
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
1268
1405
|
|
|
1269
|
-
PAGE_SIZE_FIELD_NUMBER:
|
|
1270
|
-
PAGE_TOKEN_FIELD_NUMBER:
|
|
1271
|
-
page_size:
|
|
1272
|
-
page_token:
|
|
1406
|
+
PAGE_SIZE_FIELD_NUMBER: _builtins.int
|
|
1407
|
+
PAGE_TOKEN_FIELD_NUMBER: _builtins.int
|
|
1408
|
+
page_size: _builtins.int
|
|
1409
|
+
page_token: _builtins.str
|
|
1273
1410
|
def __init__(
|
|
1274
1411
|
self,
|
|
1275
1412
|
*,
|
|
1276
|
-
page_size:
|
|
1277
|
-
page_token:
|
|
1278
|
-
) -> None: ...
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1413
|
+
page_size: _builtins.int | None = ...,
|
|
1414
|
+
page_token: _builtins.str | None = ...,
|
|
1415
|
+
) -> None: ...
|
|
1416
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
1417
|
+
"page_size", b"page_size", "page_token", b"page_token"
|
|
1418
|
+
] # noqa: Y015
|
|
1419
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1420
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
1421
|
+
"page_size", b"page_size", "page_token", b"page_token"
|
|
1422
|
+
] # noqa: Y015
|
|
1423
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
1424
|
+
|
|
1425
|
+
Global___ListSessionsRequest: _TypeAlias = ListSessionsRequest # noqa: Y015
|
|
1426
|
+
|
|
1427
|
+
@_typing.final
|
|
1428
|
+
class ListSessionsResponse(_message.Message):
|
|
1429
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
1430
|
+
|
|
1431
|
+
SESSIONS_FIELD_NUMBER: _builtins.int
|
|
1432
|
+
NEXT_PAGE_TOKEN_FIELD_NUMBER: _builtins.int
|
|
1433
|
+
TOTAL_COUNT_FIELD_NUMBER: _builtins.int
|
|
1434
|
+
CURRENT_SESSION_ID_FIELD_NUMBER: _builtins.int
|
|
1435
|
+
next_page_token: _builtins.str
|
|
1436
|
+
total_count: _builtins.int
|
|
1437
|
+
current_session_id: _builtins.str
|
|
1438
|
+
@_builtins.property
|
|
1300
1439
|
def sessions(
|
|
1301
1440
|
self,
|
|
1302
|
-
) ->
|
|
1303
|
-
weaveapi.auth.v1.session_pb2.Session
|
|
1304
|
-
]: ...
|
|
1441
|
+
) -> _containers.RepeatedCompositeFieldContainer[_session_pb2.Session]: ...
|
|
1305
1442
|
def __init__(
|
|
1306
1443
|
self,
|
|
1307
1444
|
*,
|
|
1308
|
-
sessions:
|
|
1309
|
-
| None = ...,
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1445
|
+
sessions: _abc.Iterable[_session_pb2.Session] | None = ...,
|
|
1446
|
+
next_page_token: _builtins.str | None = ...,
|
|
1447
|
+
total_count: _builtins.int | None = ...,
|
|
1448
|
+
current_session_id: _builtins.str | None = ...,
|
|
1449
|
+
) -> None: ...
|
|
1450
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
1451
|
+
"current_session_id",
|
|
1452
|
+
b"current_session_id",
|
|
1453
|
+
"next_page_token",
|
|
1454
|
+
b"next_page_token",
|
|
1455
|
+
"sessions",
|
|
1456
|
+
b"sessions",
|
|
1457
|
+
"total_count",
|
|
1458
|
+
b"total_count",
|
|
1459
|
+
] # noqa: Y015
|
|
1460
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1461
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
1462
|
+
"current_session_id",
|
|
1463
|
+
b"current_session_id",
|
|
1464
|
+
"next_page_token",
|
|
1465
|
+
b"next_page_token",
|
|
1466
|
+
"sessions",
|
|
1467
|
+
b"sessions",
|
|
1468
|
+
"total_count",
|
|
1469
|
+
b"total_count",
|
|
1470
|
+
] # noqa: Y015
|
|
1471
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
1472
|
+
|
|
1473
|
+
Global___ListSessionsResponse: _TypeAlias = ListSessionsResponse # noqa: Y015
|
|
1474
|
+
|
|
1475
|
+
@_typing.final
|
|
1476
|
+
class RevokeSessionRequest(_message.Message):
|
|
1477
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
1478
|
+
|
|
1479
|
+
SESSION_ID_FIELD_NUMBER: _builtins.int
|
|
1480
|
+
session_id: _builtins.str
|
|
1336
1481
|
def __init__(
|
|
1337
1482
|
self,
|
|
1338
1483
|
*,
|
|
1339
|
-
session_id:
|
|
1340
|
-
) -> None: ...
|
|
1341
|
-
def ClearField(
|
|
1342
|
-
self, field_name: typing.Literal["session_id", b"session_id"]
|
|
1484
|
+
session_id: _builtins.str | None = ...,
|
|
1343
1485
|
) -> None: ...
|
|
1486
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["session_id", b"session_id"] # noqa: Y015
|
|
1487
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1488
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["session_id", b"session_id"] # noqa: Y015
|
|
1489
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
1344
1490
|
|
|
1345
|
-
|
|
1491
|
+
Global___RevokeSessionRequest: _TypeAlias = RevokeSessionRequest # noqa: Y015
|
|
1346
1492
|
|
|
1347
|
-
@
|
|
1348
|
-
class RevokeSessionResponse(
|
|
1349
|
-
DESCRIPTOR:
|
|
1493
|
+
@_typing.final
|
|
1494
|
+
class RevokeSessionResponse(_message.Message):
|
|
1495
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
1350
1496
|
|
|
1351
|
-
SUCCESS_FIELD_NUMBER:
|
|
1352
|
-
MESSAGE_FIELD_NUMBER:
|
|
1353
|
-
success:
|
|
1354
|
-
message:
|
|
1497
|
+
SUCCESS_FIELD_NUMBER: _builtins.int
|
|
1498
|
+
MESSAGE_FIELD_NUMBER: _builtins.int
|
|
1499
|
+
success: _builtins.bool
|
|
1500
|
+
message: _builtins.str
|
|
1355
1501
|
def __init__(
|
|
1356
1502
|
self,
|
|
1357
1503
|
*,
|
|
1358
|
-
success:
|
|
1359
|
-
message:
|
|
1360
|
-
) -> None: ...
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1504
|
+
success: _builtins.bool | None = ...,
|
|
1505
|
+
message: _builtins.str | None = ...,
|
|
1506
|
+
) -> None: ...
|
|
1507
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
1508
|
+
"message", b"message", "success", b"success"
|
|
1509
|
+
] # noqa: Y015
|
|
1510
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1511
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
1512
|
+
"message", b"message", "success", b"success"
|
|
1513
|
+
] # noqa: Y015
|
|
1514
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
1515
|
+
|
|
1516
|
+
Global___RevokeSessionResponse: _TypeAlias = RevokeSessionResponse # noqa: Y015
|
|
1517
|
+
|
|
1518
|
+
@_typing.final
|
|
1519
|
+
class RevokeAllSessionsRequest(_message.Message):
|
|
1520
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
1521
|
+
|
|
1522
|
+
KEEP_CURRENT_FIELD_NUMBER: _builtins.int
|
|
1523
|
+
keep_current: _builtins.bool
|
|
1373
1524
|
"""Keep the session making this request"""
|
|
1374
1525
|
def __init__(
|
|
1375
1526
|
self,
|
|
1376
1527
|
*,
|
|
1377
|
-
keep_current:
|
|
1378
|
-
) -> None: ...
|
|
1379
|
-
def ClearField(
|
|
1380
|
-
self, field_name: typing.Literal["keep_current", b"keep_current"]
|
|
1528
|
+
keep_current: _builtins.bool | None = ...,
|
|
1381
1529
|
) -> None: ...
|
|
1530
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["keep_current", b"keep_current"] # noqa: Y015
|
|
1531
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1532
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["keep_current", b"keep_current"] # noqa: Y015
|
|
1533
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
1382
1534
|
|
|
1383
|
-
|
|
1535
|
+
Global___RevokeAllSessionsRequest: _TypeAlias = RevokeAllSessionsRequest # noqa: Y015
|
|
1384
1536
|
|
|
1385
|
-
@
|
|
1386
|
-
class RevokeAllSessionsResponse(
|
|
1387
|
-
DESCRIPTOR:
|
|
1537
|
+
@_typing.final
|
|
1538
|
+
class RevokeAllSessionsResponse(_message.Message):
|
|
1539
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
1388
1540
|
|
|
1389
|
-
REVOKED_COUNT_FIELD_NUMBER:
|
|
1390
|
-
MESSAGE_FIELD_NUMBER:
|
|
1391
|
-
revoked_count:
|
|
1392
|
-
message:
|
|
1541
|
+
REVOKED_COUNT_FIELD_NUMBER: _builtins.int
|
|
1542
|
+
MESSAGE_FIELD_NUMBER: _builtins.int
|
|
1543
|
+
revoked_count: _builtins.int
|
|
1544
|
+
message: _builtins.str
|
|
1393
1545
|
def __init__(
|
|
1394
1546
|
self,
|
|
1395
1547
|
*,
|
|
1396
|
-
revoked_count:
|
|
1397
|
-
message:
|
|
1398
|
-
) -> None: ...
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1548
|
+
revoked_count: _builtins.int | None = ...,
|
|
1549
|
+
message: _builtins.str | None = ...,
|
|
1550
|
+
) -> None: ...
|
|
1551
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
1552
|
+
"message", b"message", "revoked_count", b"revoked_count"
|
|
1553
|
+
] # noqa: Y015
|
|
1554
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1555
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
1556
|
+
"message", b"message", "revoked_count", b"revoked_count"
|
|
1557
|
+
] # noqa: Y015
|
|
1558
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
1559
|
+
|
|
1560
|
+
Global___RevokeAllSessionsResponse: _TypeAlias = RevokeAllSessionsResponse # noqa: Y015
|