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