weave-python 0.28.2__py3-none-any.whl → 0.30.4__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.
Files changed (104) hide show
  1. weave/weaveapi/auth/v1/service_pb2.py +184 -88
  2. weave/weaveapi/auth/v1/service_pb2.pyi +1288 -1134
  3. weave/weaveapi/auth/v1/service_pb2_grpc.pyi +248 -335
  4. weave/weaveapi/auth/v1/session_pb2.py +12 -4
  5. weave/weaveapi/auth/v1/session_pb2.pyi +109 -89
  6. weave/weaveapi/auth/v1/session_pb2_grpc.pyi +11 -10
  7. weave/weaveapi/auth/v1/usage_pb2.py +16 -12
  8. weave/weaveapi/auth/v1/usage_pb2.pyi +251 -197
  9. weave/weaveapi/auth/v1/usage_pb2_grpc.pyi +11 -10
  10. weave/weaveapi/auth/v1/user_pb2.py +58 -16
  11. weave/weaveapi/auth/v1/user_pb2.pyi +588 -505
  12. weave/weaveapi/auth/v1/user_pb2_grpc.pyi +11 -10
  13. weave/weaveapi/generate/v1/configuration_pb2.py +29 -17
  14. weave/weaveapi/generate/v1/configuration_pb2.pyi +277 -241
  15. weave/weaveapi/generate/v1/configuration_pb2_grpc.pyi +11 -10
  16. weave/weaveapi/generate/v1/generate_pb2.py +30 -4
  17. weave/weaveapi/generate/v1/generate_pb2.pyi +138 -40
  18. weave/weaveapi/generate/v1/generate_pb2_grpc.pyi +11 -10
  19. weave/weaveapi/generate/v1/service_pb2.py +50 -20
  20. weave/weaveapi/generate/v1/service_pb2.pyi +264 -135
  21. weave/weaveapi/generate/v1/service_pb2_grpc.py +47 -0
  22. weave/weaveapi/generate/v1/service_pb2_grpc.pyi +89 -78
  23. weave/weaveapi/llmx/v1/architecture_pb2.py +3 -3
  24. weave/weaveapi/llmx/v1/architecture_pb2.pyi +664 -555
  25. weave/weaveapi/llmx/v1/architecture_pb2_grpc.pyi +11 -10
  26. weave/weaveapi/llmx/v1/capabilities_pb2.py +86 -54
  27. weave/weaveapi/llmx/v1/capabilities_pb2.pyi +967 -852
  28. weave/weaveapi/llmx/v1/capabilities_pb2_grpc.pyi +11 -10
  29. weave/weaveapi/llmx/v1/model_pb2.py +54 -18
  30. weave/weaveapi/llmx/v1/model_pb2.pyi +533 -455
  31. weave/weaveapi/llmx/v1/model_pb2_grpc.pyi +11 -10
  32. weave/weaveapi/llmx/v1/pricing_pb2.py +22 -18
  33. weave/weaveapi/llmx/v1/pricing_pb2.pyi +194 -172
  34. weave/weaveapi/llmx/v1/pricing_pb2_grpc.pyi +11 -10
  35. weave/weaveapi/llmx/v1/provider_pb2.py +3 -3
  36. weave/weaveapi/llmx/v1/provider_pb2.pyi +84 -59
  37. weave/weaveapi/llmx/v1/provider_pb2_grpc.pyi +11 -10
  38. weave/weaveapi/llmx/v1/service_pb2.py +224 -86
  39. weave/weaveapi/llmx/v1/service_pb2.pyi +1651 -1403
  40. weave/weaveapi/llmx/v1/service_pb2_grpc.pyi +160 -203
  41. weave/weaveapi/mcpregistry/v1/server_pb2.py +14 -8
  42. weave/weaveapi/mcpregistry/v1/server_pb2.pyi +143 -121
  43. weave/weaveapi/mcpregistry/v1/server_pb2_grpc.pyi +11 -10
  44. weave/weaveapi/mcpregistry/v1/service_pb2.py +47 -27
  45. weave/weaveapi/mcpregistry/v1/service_pb2.pyi +132 -122
  46. weave/weaveapi/mcpregistry/v1/service_pb2_grpc.pyi +87 -112
  47. weave/weaveapi/payment/v1/invoice_pb2.py +36 -10
  48. weave/weaveapi/payment/v1/invoice_pb2.pyi +352 -291
  49. weave/weaveapi/payment/v1/invoice_pb2_grpc.pyi +11 -10
  50. weave/weaveapi/payment/v1/service_pb2.py +256 -90
  51. weave/weaveapi/payment/v1/service_pb2.pyi +1381 -1242
  52. weave/weaveapi/payment/v1/service_pb2_grpc.pyi +229 -319
  53. weave/weaveapi/payment/v1/subscription_pb2.py +97 -21
  54. weave/weaveapi/payment/v1/subscription_pb2.pyi +727 -611
  55. weave/weaveapi/payment/v1/subscription_pb2_grpc.pyi +11 -10
  56. weave/weaveapi/storage/v1/auth_pb2.py +3 -3
  57. weave/weaveapi/storage/v1/auth_pb2.pyi +42 -29
  58. weave/weaveapi/storage/v1/auth_pb2_grpc.pyi +11 -10
  59. weave/weaveapi/storage/v1/nosql_database_pb2.py +45 -21
  60. weave/weaveapi/storage/v1/nosql_database_pb2.pyi +438 -372
  61. weave/weaveapi/storage/v1/nosql_database_pb2_grpc.pyi +11 -10
  62. weave/weaveapi/storage/v1/object_store_pb2.py +25 -11
  63. weave/weaveapi/storage/v1/object_store_pb2.pyi +203 -187
  64. weave/weaveapi/storage/v1/object_store_pb2_grpc.pyi +11 -10
  65. weave/weaveapi/storage/v1/service_pb2.py +94 -34
  66. weave/weaveapi/storage/v1/service_pb2.pyi +414 -357
  67. weave/weaveapi/storage/v1/service_pb2_grpc.pyi +88 -107
  68. weave/weaveapi/storage/v1/sql_database_pb2.py +37 -21
  69. weave/weaveapi/storage/v1/sql_database_pb2.pyi +481 -400
  70. weave/weaveapi/storage/v1/sql_database_pb2_grpc.pyi +11 -10
  71. weave/weaveapi/storage/v1/storage_pb2.py +18 -4
  72. weave/weaveapi/storage/v1/storage_pb2.pyi +79 -70
  73. weave/weaveapi/storage/v1/storage_pb2_grpc.pyi +11 -10
  74. weave/weaveapi/synthesize/v1/dataset_pb2.py +10 -8
  75. weave/weaveapi/synthesize/v1/dataset_pb2.pyi +158 -128
  76. weave/weaveapi/synthesize/v1/dataset_pb2_grpc.pyi +11 -10
  77. weave/weaveapi/synthesize/v1/inline_data_pb2.py +4 -4
  78. weave/weaveapi/synthesize/v1/inline_data_pb2.pyi +31 -27
  79. weave/weaveapi/synthesize/v1/inline_data_pb2_grpc.pyi +11 -10
  80. weave/weaveapi/synthesize/v1/relationship_pb2.py +17 -9
  81. weave/weaveapi/synthesize/v1/relationship_pb2.pyi +67 -64
  82. weave/weaveapi/synthesize/v1/relationship_pb2_grpc.pyi +11 -10
  83. weave/weaveapi/synthesize/v1/service_pb2.py +40 -22
  84. weave/weaveapi/synthesize/v1/service_pb2.pyi +202 -168
  85. weave/weaveapi/synthesize/v1/service_pb2_grpc.pyi +67 -79
  86. weave/weaveapi/synthesize/v1/training_pb2.py +17 -11
  87. weave/weaveapi/synthesize/v1/training_pb2.pyi +119 -106
  88. weave/weaveapi/synthesize/v1/training_pb2_grpc.pyi +11 -10
  89. weave/weavesql/llmxdb/capabilities.py +487 -0
  90. weave/weavesql/llmxdb/changes.py +297 -0
  91. weave/weavesql/llmxdb/models.py +594 -0
  92. weave/weavesql/llmxdb/providers.py +348 -0
  93. weave/weavesql/llmxdb/scraper_runs.py +287 -0
  94. weave/weavesql/llmxdb/search.py +721 -0
  95. weave/weavesql/weavedb/dataset.py +75 -0
  96. weave/weavesql/weavedb/models.py +135 -0
  97. weave/weavesql/weavedb/relationships.py +72 -0
  98. weave/weavesql/weavedb/storage.py +113 -0
  99. weave/weavesql/weavedb/synthesizer.py +107 -0
  100. {weave_python-0.28.2.dist-info → weave_python-0.30.4.dist-info}/METADATA +3 -3
  101. weave_python-0.30.4.dist-info/RECORD +131 -0
  102. {weave_python-0.28.2.dist-info → weave_python-0.30.4.dist-info}/WHEEL +1 -1
  103. weave_python-0.28.2.dist-info/RECORD +0 -120
  104. {weave_python-0.28.2.dist-info → weave_python-0.30.4.dist-info}/licenses/LICENSE +0 -0
@@ -3,604 +3,517 @@
3
3
  isort:skip_file
4
4
  """
5
5
 
6
- import abc
7
- import collections.abc
8
- import grpc
9
- import grpc.aio
10
- import typing
11
- import weaveapi.auth.v1.service_pb2
6
+ from collections import abc as _abc
7
+ from grpc import aio as _aio
8
+ from weaveapi.auth.v1 import service_pb2 as _service_pb2
9
+ import abc as _abc_1
10
+ import grpc as _grpc
11
+ import sys
12
+ import typing as _typing
12
13
 
13
- _T = typing.TypeVar("_T")
14
+ if sys.version_info >= (3, 11):
15
+ from typing import Self as _Self
16
+ else:
17
+ from typing_extensions import Self as _Self
18
+
19
+ _T = _typing.TypeVar("_T")
14
20
 
15
21
  class _MaybeAsyncIterator(
16
- collections.abc.AsyncIterator[_T],
17
- collections.abc.Iterator[_T],
18
- metaclass=abc.ABCMeta,
22
+ _abc.AsyncIterator[_T], _abc.Iterator[_T], metaclass=_abc_1.ABCMeta
19
23
  ): ...
20
- class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
24
+ class _ServicerContext(_grpc.ServicerContext, _aio.ServicerContext): # type: ignore[misc, type-arg]
21
25
  ...
22
26
 
27
+ GRPC_GENERATED_VERSION: str
28
+ GRPC_VERSION: str
29
+
23
30
  class AuthStub:
24
31
  """Auth handles authentication and user management
25
32
  OAuth endpoints (provider-agnostic)
26
33
  """
27
34
 
28
- def __init__(
29
- self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]
30
- ) -> None: ...
31
- InitiateOAuth: grpc.UnaryUnaryMultiCallable[
32
- weaveapi.auth.v1.service_pb2.InitiateOAuthRequest,
33
- weaveapi.auth.v1.service_pb2.InitiateOAuthResponse,
35
+ @_typing.overload
36
+ def __new__(cls, channel: _grpc.Channel) -> _Self: ...
37
+ @_typing.overload
38
+ def __new__(cls, channel: _aio.Channel) -> AuthAsyncStub: ...
39
+ InitiateOAuth: _grpc.UnaryUnaryMultiCallable[
40
+ _service_pb2.InitiateOAuthRequest, _service_pb2.InitiateOAuthResponse
34
41
  ]
35
42
  """Initiate OAuth flow for any supported provider"""
36
-
37
- HandleOAuthCallback: grpc.UnaryUnaryMultiCallable[
38
- weaveapi.auth.v1.service_pb2.HandleOAuthCallbackRequest,
39
- weaveapi.auth.v1.service_pb2.HandleOAuthCallbackResponse,
43
+ HandleOAuthCallback: _grpc.UnaryUnaryMultiCallable[
44
+ _service_pb2.HandleOAuthCallbackRequest,
45
+ _service_pb2.HandleOAuthCallbackResponse,
40
46
  ]
41
47
  """Handle OAuth callback from any provider"""
42
-
43
- GetOAuthProviders: grpc.UnaryUnaryMultiCallable[
44
- weaveapi.auth.v1.service_pb2.GetOAuthProvidersRequest,
45
- weaveapi.auth.v1.service_pb2.GetOAuthProvidersResponse,
48
+ GetOAuthProviders: _grpc.UnaryUnaryMultiCallable[
49
+ _service_pb2.GetOAuthProvidersRequest, _service_pb2.GetOAuthProvidersResponse
46
50
  ]
47
51
  """Get list of supported OAuth providers"""
48
-
49
- LinkOAuthProvider: grpc.UnaryUnaryMultiCallable[
50
- weaveapi.auth.v1.service_pb2.LinkOAuthProviderRequest,
51
- weaveapi.auth.v1.service_pb2.LinkOAuthProviderResponse,
52
+ LinkOAuthProvider: _grpc.UnaryUnaryMultiCallable[
53
+ _service_pb2.LinkOAuthProviderRequest, _service_pb2.LinkOAuthProviderResponse
52
54
  ]
53
55
  """Link additional OAuth provider to existing account"""
54
-
55
- UnlinkOAuthProvider: grpc.UnaryUnaryMultiCallable[
56
- weaveapi.auth.v1.service_pb2.UnlinkOAuthProviderRequest,
57
- weaveapi.auth.v1.service_pb2.UnlinkOAuthProviderResponse,
56
+ UnlinkOAuthProvider: _grpc.UnaryUnaryMultiCallable[
57
+ _service_pb2.UnlinkOAuthProviderRequest,
58
+ _service_pb2.UnlinkOAuthProviderResponse,
58
59
  ]
59
60
  """Unlink OAuth provider from account"""
60
-
61
- RefreshToken: grpc.UnaryUnaryMultiCallable[
62
- weaveapi.auth.v1.service_pb2.RefreshTokenRequest,
63
- weaveapi.auth.v1.service_pb2.RefreshTokenResponse,
61
+ RefreshToken: _grpc.UnaryUnaryMultiCallable[
62
+ _service_pb2.RefreshTokenRequest, _service_pb2.RefreshTokenResponse
64
63
  ]
65
64
  """Token management
66
65
 
67
66
  Refresh access token
68
67
  """
69
-
70
- RevokeToken: grpc.UnaryUnaryMultiCallable[
71
- weaveapi.auth.v1.service_pb2.RevokeTokenRequest,
72
- weaveapi.auth.v1.service_pb2.RevokeTokenResponse,
68
+ RevokeToken: _grpc.UnaryUnaryMultiCallable[
69
+ _service_pb2.RevokeTokenRequest, _service_pb2.RevokeTokenResponse
73
70
  ]
74
71
  """Revoke refresh token (logout)"""
75
-
76
- ValidateToken: grpc.UnaryUnaryMultiCallable[
77
- weaveapi.auth.v1.service_pb2.ValidateTokenRequest,
78
- weaveapi.auth.v1.service_pb2.ValidateTokenResponse,
72
+ ValidateToken: _grpc.UnaryUnaryMultiCallable[
73
+ _service_pb2.ValidateTokenRequest, _service_pb2.ValidateTokenResponse
79
74
  ]
80
75
  """Validate access token"""
81
-
82
- GetCurrentUser: grpc.UnaryUnaryMultiCallable[
83
- weaveapi.auth.v1.service_pb2.GetCurrentUserRequest,
84
- weaveapi.auth.v1.service_pb2.GetCurrentUserResponse,
76
+ GetCurrentUser: _grpc.UnaryUnaryMultiCallable[
77
+ _service_pb2.GetCurrentUserRequest, _service_pb2.GetCurrentUserResponse
85
78
  ]
86
79
  """User management
87
80
 
88
81
  Get current user profile
89
82
  """
90
-
91
- UpdateUser: grpc.UnaryUnaryMultiCallable[
92
- weaveapi.auth.v1.service_pb2.UpdateUserRequest,
93
- weaveapi.auth.v1.service_pb2.UpdateUserResponse,
83
+ UpdateUser: _grpc.UnaryUnaryMultiCallable[
84
+ _service_pb2.UpdateUserRequest, _service_pb2.UpdateUserResponse
94
85
  ]
95
86
  """Update user profile"""
96
-
97
- DeleteUser: grpc.UnaryUnaryMultiCallable[
98
- weaveapi.auth.v1.service_pb2.DeleteUserRequest,
99
- weaveapi.auth.v1.service_pb2.DeleteUserResponse,
87
+ DeleteUser: _grpc.UnaryUnaryMultiCallable[
88
+ _service_pb2.DeleteUserRequest, _service_pb2.DeleteUserResponse
100
89
  ]
101
90
  """Delete user account"""
102
-
103
- ListAPIKeys: grpc.UnaryUnaryMultiCallable[
104
- weaveapi.auth.v1.service_pb2.ListAPIKeysRequest,
105
- weaveapi.auth.v1.service_pb2.ListAPIKeysResponse,
91
+ ListAPIKeys: _grpc.UnaryUnaryMultiCallable[
92
+ _service_pb2.ListAPIKeysRequest, _service_pb2.ListAPIKeysResponse
106
93
  ]
107
94
  """API Key management
108
95
 
109
96
  List user's API keys
110
97
  """
111
-
112
- CreateAPIKey: grpc.UnaryUnaryMultiCallable[
113
- weaveapi.auth.v1.service_pb2.CreateAPIKeyRequest,
114
- weaveapi.auth.v1.service_pb2.CreateAPIKeyResponse,
98
+ CreateAPIKey: _grpc.UnaryUnaryMultiCallable[
99
+ _service_pb2.CreateAPIKeyRequest, _service_pb2.CreateAPIKeyResponse
115
100
  ]
116
101
  """Create new API key"""
117
-
118
- GetAPIKey: grpc.UnaryUnaryMultiCallable[
119
- weaveapi.auth.v1.service_pb2.GetAPIKeyRequest,
120
- weaveapi.auth.v1.service_pb2.GetAPIKeyResponse,
102
+ GetAPIKey: _grpc.UnaryUnaryMultiCallable[
103
+ _service_pb2.GetAPIKeyRequest, _service_pb2.GetAPIKeyResponse
121
104
  ]
122
105
  """Get API key details"""
123
-
124
- UpdateAPIKey: grpc.UnaryUnaryMultiCallable[
125
- weaveapi.auth.v1.service_pb2.UpdateAPIKeyRequest,
126
- weaveapi.auth.v1.service_pb2.UpdateAPIKeyResponse,
106
+ UpdateAPIKey: _grpc.UnaryUnaryMultiCallable[
107
+ _service_pb2.UpdateAPIKeyRequest, _service_pb2.UpdateAPIKeyResponse
127
108
  ]
128
109
  """Update API key (rename, etc)"""
129
-
130
- RevokeAPIKey: grpc.UnaryUnaryMultiCallable[
131
- weaveapi.auth.v1.service_pb2.RevokeAPIKeyRequest,
132
- weaveapi.auth.v1.service_pb2.RevokeAPIKeyResponse,
110
+ RevokeAPIKey: _grpc.UnaryUnaryMultiCallable[
111
+ _service_pb2.RevokeAPIKeyRequest, _service_pb2.RevokeAPIKeyResponse
133
112
  ]
134
113
  """Revoke API key"""
135
-
136
- ValidateAPIKey: grpc.UnaryUnaryMultiCallable[
137
- weaveapi.auth.v1.service_pb2.ValidateAPIKeyRequest,
138
- weaveapi.auth.v1.service_pb2.ValidateAPIKeyResponse,
114
+ ValidateAPIKey: _grpc.UnaryUnaryMultiCallable[
115
+ _service_pb2.ValidateAPIKeyRequest, _service_pb2.ValidateAPIKeyResponse
139
116
  ]
140
117
  """Validate API key (for internal use)"""
141
-
142
- GetUsageStats: grpc.UnaryUnaryMultiCallable[
143
- weaveapi.auth.v1.service_pb2.GetUsageStatsRequest,
144
- weaveapi.auth.v1.service_pb2.GetUsageStatsResponse,
118
+ GetUsageStats: _grpc.UnaryUnaryMultiCallable[
119
+ _service_pb2.GetUsageStatsRequest, _service_pb2.GetUsageStatsResponse
145
120
  ]
146
121
  """Usage and limits
147
122
 
148
123
  Get user's API usage statistics
149
124
  """
150
-
151
- GetRateLimitStatus: grpc.UnaryUnaryMultiCallable[
152
- weaveapi.auth.v1.service_pb2.GetRateLimitStatusRequest,
153
- weaveapi.auth.v1.service_pb2.GetRateLimitStatusResponse,
125
+ GetRateLimitStatus: _grpc.UnaryUnaryMultiCallable[
126
+ _service_pb2.GetRateLimitStatusRequest, _service_pb2.GetRateLimitStatusResponse
154
127
  ]
155
128
  """Get rate limit status"""
156
-
157
- ListSessions: grpc.UnaryUnaryMultiCallable[
158
- weaveapi.auth.v1.service_pb2.ListSessionsRequest,
159
- weaveapi.auth.v1.service_pb2.ListSessionsResponse,
129
+ ListSessions: _grpc.UnaryUnaryMultiCallable[
130
+ _service_pb2.ListSessionsRequest, _service_pb2.ListSessionsResponse
160
131
  ]
161
132
  """Session management
162
133
 
163
134
  List active sessions
164
135
  """
165
-
166
- RevokeSession: grpc.UnaryUnaryMultiCallable[
167
- weaveapi.auth.v1.service_pb2.RevokeSessionRequest,
168
- weaveapi.auth.v1.service_pb2.RevokeSessionResponse,
136
+ RevokeSession: _grpc.UnaryUnaryMultiCallable[
137
+ _service_pb2.RevokeSessionRequest, _service_pb2.RevokeSessionResponse
169
138
  ]
170
139
  """Revoke a specific session"""
171
-
172
- RevokeAllSessions: grpc.UnaryUnaryMultiCallable[
173
- weaveapi.auth.v1.service_pb2.RevokeAllSessionsRequest,
174
- weaveapi.auth.v1.service_pb2.RevokeAllSessionsResponse,
140
+ RevokeAllSessions: _grpc.UnaryUnaryMultiCallable[
141
+ _service_pb2.RevokeAllSessionsRequest, _service_pb2.RevokeAllSessionsResponse
175
142
  ]
176
143
  """Revoke all sessions except current"""
177
144
 
178
- class AuthAsyncStub:
145
+ @_typing.type_check_only
146
+ class AuthAsyncStub(AuthStub):
179
147
  """Auth handles authentication and user management
180
148
  OAuth endpoints (provider-agnostic)
181
149
  """
182
150
 
183
- InitiateOAuth: grpc.aio.UnaryUnaryMultiCallable[
184
- weaveapi.auth.v1.service_pb2.InitiateOAuthRequest,
185
- weaveapi.auth.v1.service_pb2.InitiateOAuthResponse,
186
- ]
151
+ def __init__(self, channel: _aio.Channel) -> None: ...
152
+ InitiateOAuth: _aio.UnaryUnaryMultiCallable[
153
+ _service_pb2.InitiateOAuthRequest, _service_pb2.InitiateOAuthResponse
154
+ ] # type: ignore[assignment]
187
155
  """Initiate OAuth flow for any supported provider"""
188
-
189
- HandleOAuthCallback: grpc.aio.UnaryUnaryMultiCallable[
190
- weaveapi.auth.v1.service_pb2.HandleOAuthCallbackRequest,
191
- weaveapi.auth.v1.service_pb2.HandleOAuthCallbackResponse,
192
- ]
156
+ HandleOAuthCallback: _aio.UnaryUnaryMultiCallable[
157
+ _service_pb2.HandleOAuthCallbackRequest,
158
+ _service_pb2.HandleOAuthCallbackResponse,
159
+ ] # type: ignore[assignment]
193
160
  """Handle OAuth callback from any provider"""
194
-
195
- GetOAuthProviders: grpc.aio.UnaryUnaryMultiCallable[
196
- weaveapi.auth.v1.service_pb2.GetOAuthProvidersRequest,
197
- weaveapi.auth.v1.service_pb2.GetOAuthProvidersResponse,
198
- ]
161
+ GetOAuthProviders: _aio.UnaryUnaryMultiCallable[
162
+ _service_pb2.GetOAuthProvidersRequest, _service_pb2.GetOAuthProvidersResponse
163
+ ] # type: ignore[assignment]
199
164
  """Get list of supported OAuth providers"""
200
-
201
- LinkOAuthProvider: grpc.aio.UnaryUnaryMultiCallable[
202
- weaveapi.auth.v1.service_pb2.LinkOAuthProviderRequest,
203
- weaveapi.auth.v1.service_pb2.LinkOAuthProviderResponse,
204
- ]
165
+ LinkOAuthProvider: _aio.UnaryUnaryMultiCallable[
166
+ _service_pb2.LinkOAuthProviderRequest, _service_pb2.LinkOAuthProviderResponse
167
+ ] # type: ignore[assignment]
205
168
  """Link additional OAuth provider to existing account"""
206
-
207
- UnlinkOAuthProvider: grpc.aio.UnaryUnaryMultiCallable[
208
- weaveapi.auth.v1.service_pb2.UnlinkOAuthProviderRequest,
209
- weaveapi.auth.v1.service_pb2.UnlinkOAuthProviderResponse,
210
- ]
169
+ UnlinkOAuthProvider: _aio.UnaryUnaryMultiCallable[
170
+ _service_pb2.UnlinkOAuthProviderRequest,
171
+ _service_pb2.UnlinkOAuthProviderResponse,
172
+ ] # type: ignore[assignment]
211
173
  """Unlink OAuth provider from account"""
212
-
213
- RefreshToken: grpc.aio.UnaryUnaryMultiCallable[
214
- weaveapi.auth.v1.service_pb2.RefreshTokenRequest,
215
- weaveapi.auth.v1.service_pb2.RefreshTokenResponse,
216
- ]
174
+ RefreshToken: _aio.UnaryUnaryMultiCallable[
175
+ _service_pb2.RefreshTokenRequest, _service_pb2.RefreshTokenResponse
176
+ ] # type: ignore[assignment]
217
177
  """Token management
218
178
 
219
179
  Refresh access token
220
180
  """
221
-
222
- RevokeToken: grpc.aio.UnaryUnaryMultiCallable[
223
- weaveapi.auth.v1.service_pb2.RevokeTokenRequest,
224
- weaveapi.auth.v1.service_pb2.RevokeTokenResponse,
225
- ]
181
+ RevokeToken: _aio.UnaryUnaryMultiCallable[
182
+ _service_pb2.RevokeTokenRequest, _service_pb2.RevokeTokenResponse
183
+ ] # type: ignore[assignment]
226
184
  """Revoke refresh token (logout)"""
227
-
228
- ValidateToken: grpc.aio.UnaryUnaryMultiCallable[
229
- weaveapi.auth.v1.service_pb2.ValidateTokenRequest,
230
- weaveapi.auth.v1.service_pb2.ValidateTokenResponse,
231
- ]
185
+ ValidateToken: _aio.UnaryUnaryMultiCallable[
186
+ _service_pb2.ValidateTokenRequest, _service_pb2.ValidateTokenResponse
187
+ ] # type: ignore[assignment]
232
188
  """Validate access token"""
233
-
234
- GetCurrentUser: grpc.aio.UnaryUnaryMultiCallable[
235
- weaveapi.auth.v1.service_pb2.GetCurrentUserRequest,
236
- weaveapi.auth.v1.service_pb2.GetCurrentUserResponse,
237
- ]
189
+ GetCurrentUser: _aio.UnaryUnaryMultiCallable[
190
+ _service_pb2.GetCurrentUserRequest, _service_pb2.GetCurrentUserResponse
191
+ ] # type: ignore[assignment]
238
192
  """User management
239
193
 
240
194
  Get current user profile
241
195
  """
242
-
243
- UpdateUser: grpc.aio.UnaryUnaryMultiCallable[
244
- weaveapi.auth.v1.service_pb2.UpdateUserRequest,
245
- weaveapi.auth.v1.service_pb2.UpdateUserResponse,
246
- ]
196
+ UpdateUser: _aio.UnaryUnaryMultiCallable[
197
+ _service_pb2.UpdateUserRequest, _service_pb2.UpdateUserResponse
198
+ ] # type: ignore[assignment]
247
199
  """Update user profile"""
248
-
249
- DeleteUser: grpc.aio.UnaryUnaryMultiCallable[
250
- weaveapi.auth.v1.service_pb2.DeleteUserRequest,
251
- weaveapi.auth.v1.service_pb2.DeleteUserResponse,
252
- ]
200
+ DeleteUser: _aio.UnaryUnaryMultiCallable[
201
+ _service_pb2.DeleteUserRequest, _service_pb2.DeleteUserResponse
202
+ ] # type: ignore[assignment]
253
203
  """Delete user account"""
254
-
255
- ListAPIKeys: grpc.aio.UnaryUnaryMultiCallable[
256
- weaveapi.auth.v1.service_pb2.ListAPIKeysRequest,
257
- weaveapi.auth.v1.service_pb2.ListAPIKeysResponse,
258
- ]
204
+ ListAPIKeys: _aio.UnaryUnaryMultiCallable[
205
+ _service_pb2.ListAPIKeysRequest, _service_pb2.ListAPIKeysResponse
206
+ ] # type: ignore[assignment]
259
207
  """API Key management
260
208
 
261
209
  List user's API keys
262
210
  """
263
-
264
- CreateAPIKey: grpc.aio.UnaryUnaryMultiCallable[
265
- weaveapi.auth.v1.service_pb2.CreateAPIKeyRequest,
266
- weaveapi.auth.v1.service_pb2.CreateAPIKeyResponse,
267
- ]
211
+ CreateAPIKey: _aio.UnaryUnaryMultiCallable[
212
+ _service_pb2.CreateAPIKeyRequest, _service_pb2.CreateAPIKeyResponse
213
+ ] # type: ignore[assignment]
268
214
  """Create new API key"""
269
-
270
- GetAPIKey: grpc.aio.UnaryUnaryMultiCallable[
271
- weaveapi.auth.v1.service_pb2.GetAPIKeyRequest,
272
- weaveapi.auth.v1.service_pb2.GetAPIKeyResponse,
273
- ]
215
+ GetAPIKey: _aio.UnaryUnaryMultiCallable[
216
+ _service_pb2.GetAPIKeyRequest, _service_pb2.GetAPIKeyResponse
217
+ ] # type: ignore[assignment]
274
218
  """Get API key details"""
275
-
276
- UpdateAPIKey: grpc.aio.UnaryUnaryMultiCallable[
277
- weaveapi.auth.v1.service_pb2.UpdateAPIKeyRequest,
278
- weaveapi.auth.v1.service_pb2.UpdateAPIKeyResponse,
279
- ]
219
+ UpdateAPIKey: _aio.UnaryUnaryMultiCallable[
220
+ _service_pb2.UpdateAPIKeyRequest, _service_pb2.UpdateAPIKeyResponse
221
+ ] # type: ignore[assignment]
280
222
  """Update API key (rename, etc)"""
281
-
282
- RevokeAPIKey: grpc.aio.UnaryUnaryMultiCallable[
283
- weaveapi.auth.v1.service_pb2.RevokeAPIKeyRequest,
284
- weaveapi.auth.v1.service_pb2.RevokeAPIKeyResponse,
285
- ]
223
+ RevokeAPIKey: _aio.UnaryUnaryMultiCallable[
224
+ _service_pb2.RevokeAPIKeyRequest, _service_pb2.RevokeAPIKeyResponse
225
+ ] # type: ignore[assignment]
286
226
  """Revoke API key"""
287
-
288
- ValidateAPIKey: grpc.aio.UnaryUnaryMultiCallable[
289
- weaveapi.auth.v1.service_pb2.ValidateAPIKeyRequest,
290
- weaveapi.auth.v1.service_pb2.ValidateAPIKeyResponse,
291
- ]
227
+ ValidateAPIKey: _aio.UnaryUnaryMultiCallable[
228
+ _service_pb2.ValidateAPIKeyRequest, _service_pb2.ValidateAPIKeyResponse
229
+ ] # type: ignore[assignment]
292
230
  """Validate API key (for internal use)"""
293
-
294
- GetUsageStats: grpc.aio.UnaryUnaryMultiCallable[
295
- weaveapi.auth.v1.service_pb2.GetUsageStatsRequest,
296
- weaveapi.auth.v1.service_pb2.GetUsageStatsResponse,
297
- ]
231
+ GetUsageStats: _aio.UnaryUnaryMultiCallable[
232
+ _service_pb2.GetUsageStatsRequest, _service_pb2.GetUsageStatsResponse
233
+ ] # type: ignore[assignment]
298
234
  """Usage and limits
299
235
 
300
236
  Get user's API usage statistics
301
237
  """
302
-
303
- GetRateLimitStatus: grpc.aio.UnaryUnaryMultiCallable[
304
- weaveapi.auth.v1.service_pb2.GetRateLimitStatusRequest,
305
- weaveapi.auth.v1.service_pb2.GetRateLimitStatusResponse,
306
- ]
238
+ GetRateLimitStatus: _aio.UnaryUnaryMultiCallable[
239
+ _service_pb2.GetRateLimitStatusRequest, _service_pb2.GetRateLimitStatusResponse
240
+ ] # type: ignore[assignment]
307
241
  """Get rate limit status"""
308
-
309
- ListSessions: grpc.aio.UnaryUnaryMultiCallable[
310
- weaveapi.auth.v1.service_pb2.ListSessionsRequest,
311
- weaveapi.auth.v1.service_pb2.ListSessionsResponse,
312
- ]
242
+ ListSessions: _aio.UnaryUnaryMultiCallable[
243
+ _service_pb2.ListSessionsRequest, _service_pb2.ListSessionsResponse
244
+ ] # type: ignore[assignment]
313
245
  """Session management
314
246
 
315
247
  List active sessions
316
248
  """
317
-
318
- RevokeSession: grpc.aio.UnaryUnaryMultiCallable[
319
- weaveapi.auth.v1.service_pb2.RevokeSessionRequest,
320
- weaveapi.auth.v1.service_pb2.RevokeSessionResponse,
321
- ]
249
+ RevokeSession: _aio.UnaryUnaryMultiCallable[
250
+ _service_pb2.RevokeSessionRequest, _service_pb2.RevokeSessionResponse
251
+ ] # type: ignore[assignment]
322
252
  """Revoke a specific session"""
323
-
324
- RevokeAllSessions: grpc.aio.UnaryUnaryMultiCallable[
325
- weaveapi.auth.v1.service_pb2.RevokeAllSessionsRequest,
326
- weaveapi.auth.v1.service_pb2.RevokeAllSessionsResponse,
327
- ]
253
+ RevokeAllSessions: _aio.UnaryUnaryMultiCallable[
254
+ _service_pb2.RevokeAllSessionsRequest, _service_pb2.RevokeAllSessionsResponse
255
+ ] # type: ignore[assignment]
328
256
  """Revoke all sessions except current"""
329
257
 
330
- class AuthServicer(metaclass=abc.ABCMeta):
258
+ class AuthServicer(metaclass=_abc_1.ABCMeta):
331
259
  """Auth handles authentication and user management
332
260
  OAuth endpoints (provider-agnostic)
333
261
  """
334
262
 
335
- @abc.abstractmethod
263
+ @_abc_1.abstractmethod
336
264
  def InitiateOAuth(
337
265
  self,
338
- request: weaveapi.auth.v1.service_pb2.InitiateOAuthRequest,
266
+ request: _service_pb2.InitiateOAuthRequest,
339
267
  context: _ServicerContext,
340
- ) -> typing.Union[
341
- weaveapi.auth.v1.service_pb2.InitiateOAuthResponse,
342
- collections.abc.Awaitable[weaveapi.auth.v1.service_pb2.InitiateOAuthResponse],
268
+ ) -> _typing.Union[
269
+ _service_pb2.InitiateOAuthResponse,
270
+ _abc.Awaitable[_service_pb2.InitiateOAuthResponse],
343
271
  ]:
344
272
  """Initiate OAuth flow for any supported provider"""
345
273
 
346
- @abc.abstractmethod
274
+ @_abc_1.abstractmethod
347
275
  def HandleOAuthCallback(
348
276
  self,
349
- request: weaveapi.auth.v1.service_pb2.HandleOAuthCallbackRequest,
277
+ request: _service_pb2.HandleOAuthCallbackRequest,
350
278
  context: _ServicerContext,
351
- ) -> typing.Union[
352
- weaveapi.auth.v1.service_pb2.HandleOAuthCallbackResponse,
353
- collections.abc.Awaitable[
354
- weaveapi.auth.v1.service_pb2.HandleOAuthCallbackResponse
355
- ],
279
+ ) -> _typing.Union[
280
+ _service_pb2.HandleOAuthCallbackResponse,
281
+ _abc.Awaitable[_service_pb2.HandleOAuthCallbackResponse],
356
282
  ]:
357
283
  """Handle OAuth callback from any provider"""
358
284
 
359
- @abc.abstractmethod
285
+ @_abc_1.abstractmethod
360
286
  def GetOAuthProviders(
361
287
  self,
362
- request: weaveapi.auth.v1.service_pb2.GetOAuthProvidersRequest,
288
+ request: _service_pb2.GetOAuthProvidersRequest,
363
289
  context: _ServicerContext,
364
- ) -> typing.Union[
365
- weaveapi.auth.v1.service_pb2.GetOAuthProvidersResponse,
366
- collections.abc.Awaitable[
367
- weaveapi.auth.v1.service_pb2.GetOAuthProvidersResponse
368
- ],
290
+ ) -> _typing.Union[
291
+ _service_pb2.GetOAuthProvidersResponse,
292
+ _abc.Awaitable[_service_pb2.GetOAuthProvidersResponse],
369
293
  ]:
370
294
  """Get list of supported OAuth providers"""
371
295
 
372
- @abc.abstractmethod
296
+ @_abc_1.abstractmethod
373
297
  def LinkOAuthProvider(
374
298
  self,
375
- request: weaveapi.auth.v1.service_pb2.LinkOAuthProviderRequest,
299
+ request: _service_pb2.LinkOAuthProviderRequest,
376
300
  context: _ServicerContext,
377
- ) -> typing.Union[
378
- weaveapi.auth.v1.service_pb2.LinkOAuthProviderResponse,
379
- collections.abc.Awaitable[
380
- weaveapi.auth.v1.service_pb2.LinkOAuthProviderResponse
381
- ],
301
+ ) -> _typing.Union[
302
+ _service_pb2.LinkOAuthProviderResponse,
303
+ _abc.Awaitable[_service_pb2.LinkOAuthProviderResponse],
382
304
  ]:
383
305
  """Link additional OAuth provider to existing account"""
384
306
 
385
- @abc.abstractmethod
307
+ @_abc_1.abstractmethod
386
308
  def UnlinkOAuthProvider(
387
309
  self,
388
- request: weaveapi.auth.v1.service_pb2.UnlinkOAuthProviderRequest,
310
+ request: _service_pb2.UnlinkOAuthProviderRequest,
389
311
  context: _ServicerContext,
390
- ) -> typing.Union[
391
- weaveapi.auth.v1.service_pb2.UnlinkOAuthProviderResponse,
392
- collections.abc.Awaitable[
393
- weaveapi.auth.v1.service_pb2.UnlinkOAuthProviderResponse
394
- ],
312
+ ) -> _typing.Union[
313
+ _service_pb2.UnlinkOAuthProviderResponse,
314
+ _abc.Awaitable[_service_pb2.UnlinkOAuthProviderResponse],
395
315
  ]:
396
316
  """Unlink OAuth provider from account"""
397
317
 
398
- @abc.abstractmethod
318
+ @_abc_1.abstractmethod
399
319
  def RefreshToken(
400
320
  self,
401
- request: weaveapi.auth.v1.service_pb2.RefreshTokenRequest,
321
+ request: _service_pb2.RefreshTokenRequest,
402
322
  context: _ServicerContext,
403
- ) -> typing.Union[
404
- weaveapi.auth.v1.service_pb2.RefreshTokenResponse,
405
- collections.abc.Awaitable[weaveapi.auth.v1.service_pb2.RefreshTokenResponse],
323
+ ) -> _typing.Union[
324
+ _service_pb2.RefreshTokenResponse,
325
+ _abc.Awaitable[_service_pb2.RefreshTokenResponse],
406
326
  ]:
407
327
  """Token management
408
328
 
409
329
  Refresh access token
410
330
  """
411
331
 
412
- @abc.abstractmethod
332
+ @_abc_1.abstractmethod
413
333
  def RevokeToken(
414
334
  self,
415
- request: weaveapi.auth.v1.service_pb2.RevokeTokenRequest,
335
+ request: _service_pb2.RevokeTokenRequest,
416
336
  context: _ServicerContext,
417
- ) -> typing.Union[
418
- weaveapi.auth.v1.service_pb2.RevokeTokenResponse,
419
- collections.abc.Awaitable[weaveapi.auth.v1.service_pb2.RevokeTokenResponse],
337
+ ) -> _typing.Union[
338
+ _service_pb2.RevokeTokenResponse,
339
+ _abc.Awaitable[_service_pb2.RevokeTokenResponse],
420
340
  ]:
421
341
  """Revoke refresh token (logout)"""
422
342
 
423
- @abc.abstractmethod
343
+ @_abc_1.abstractmethod
424
344
  def ValidateToken(
425
345
  self,
426
- request: weaveapi.auth.v1.service_pb2.ValidateTokenRequest,
346
+ request: _service_pb2.ValidateTokenRequest,
427
347
  context: _ServicerContext,
428
- ) -> typing.Union[
429
- weaveapi.auth.v1.service_pb2.ValidateTokenResponse,
430
- collections.abc.Awaitable[weaveapi.auth.v1.service_pb2.ValidateTokenResponse],
348
+ ) -> _typing.Union[
349
+ _service_pb2.ValidateTokenResponse,
350
+ _abc.Awaitable[_service_pb2.ValidateTokenResponse],
431
351
  ]:
432
352
  """Validate access token"""
433
353
 
434
- @abc.abstractmethod
354
+ @_abc_1.abstractmethod
435
355
  def GetCurrentUser(
436
356
  self,
437
- request: weaveapi.auth.v1.service_pb2.GetCurrentUserRequest,
357
+ request: _service_pb2.GetCurrentUserRequest,
438
358
  context: _ServicerContext,
439
- ) -> typing.Union[
440
- weaveapi.auth.v1.service_pb2.GetCurrentUserResponse,
441
- collections.abc.Awaitable[weaveapi.auth.v1.service_pb2.GetCurrentUserResponse],
359
+ ) -> _typing.Union[
360
+ _service_pb2.GetCurrentUserResponse,
361
+ _abc.Awaitable[_service_pb2.GetCurrentUserResponse],
442
362
  ]:
443
363
  """User management
444
364
 
445
365
  Get current user profile
446
366
  """
447
367
 
448
- @abc.abstractmethod
368
+ @_abc_1.abstractmethod
449
369
  def UpdateUser(
450
370
  self,
451
- request: weaveapi.auth.v1.service_pb2.UpdateUserRequest,
371
+ request: _service_pb2.UpdateUserRequest,
452
372
  context: _ServicerContext,
453
- ) -> typing.Union[
454
- weaveapi.auth.v1.service_pb2.UpdateUserResponse,
455
- collections.abc.Awaitable[weaveapi.auth.v1.service_pb2.UpdateUserResponse],
373
+ ) -> _typing.Union[
374
+ _service_pb2.UpdateUserResponse, _abc.Awaitable[_service_pb2.UpdateUserResponse]
456
375
  ]:
457
376
  """Update user profile"""
458
377
 
459
- @abc.abstractmethod
378
+ @_abc_1.abstractmethod
460
379
  def DeleteUser(
461
380
  self,
462
- request: weaveapi.auth.v1.service_pb2.DeleteUserRequest,
381
+ request: _service_pb2.DeleteUserRequest,
463
382
  context: _ServicerContext,
464
- ) -> typing.Union[
465
- weaveapi.auth.v1.service_pb2.DeleteUserResponse,
466
- collections.abc.Awaitable[weaveapi.auth.v1.service_pb2.DeleteUserResponse],
383
+ ) -> _typing.Union[
384
+ _service_pb2.DeleteUserResponse, _abc.Awaitable[_service_pb2.DeleteUserResponse]
467
385
  ]:
468
386
  """Delete user account"""
469
387
 
470
- @abc.abstractmethod
388
+ @_abc_1.abstractmethod
471
389
  def ListAPIKeys(
472
390
  self,
473
- request: weaveapi.auth.v1.service_pb2.ListAPIKeysRequest,
391
+ request: _service_pb2.ListAPIKeysRequest,
474
392
  context: _ServicerContext,
475
- ) -> typing.Union[
476
- weaveapi.auth.v1.service_pb2.ListAPIKeysResponse,
477
- collections.abc.Awaitable[weaveapi.auth.v1.service_pb2.ListAPIKeysResponse],
393
+ ) -> _typing.Union[
394
+ _service_pb2.ListAPIKeysResponse,
395
+ _abc.Awaitable[_service_pb2.ListAPIKeysResponse],
478
396
  ]:
479
397
  """API Key management
480
398
 
481
399
  List user's API keys
482
400
  """
483
401
 
484
- @abc.abstractmethod
402
+ @_abc_1.abstractmethod
485
403
  def CreateAPIKey(
486
404
  self,
487
- request: weaveapi.auth.v1.service_pb2.CreateAPIKeyRequest,
405
+ request: _service_pb2.CreateAPIKeyRequest,
488
406
  context: _ServicerContext,
489
- ) -> typing.Union[
490
- weaveapi.auth.v1.service_pb2.CreateAPIKeyResponse,
491
- collections.abc.Awaitable[weaveapi.auth.v1.service_pb2.CreateAPIKeyResponse],
407
+ ) -> _typing.Union[
408
+ _service_pb2.CreateAPIKeyResponse,
409
+ _abc.Awaitable[_service_pb2.CreateAPIKeyResponse],
492
410
  ]:
493
411
  """Create new API key"""
494
412
 
495
- @abc.abstractmethod
413
+ @_abc_1.abstractmethod
496
414
  def GetAPIKey(
497
415
  self,
498
- request: weaveapi.auth.v1.service_pb2.GetAPIKeyRequest,
416
+ request: _service_pb2.GetAPIKeyRequest,
499
417
  context: _ServicerContext,
500
- ) -> typing.Union[
501
- weaveapi.auth.v1.service_pb2.GetAPIKeyResponse,
502
- collections.abc.Awaitable[weaveapi.auth.v1.service_pb2.GetAPIKeyResponse],
418
+ ) -> _typing.Union[
419
+ _service_pb2.GetAPIKeyResponse, _abc.Awaitable[_service_pb2.GetAPIKeyResponse]
503
420
  ]:
504
421
  """Get API key details"""
505
422
 
506
- @abc.abstractmethod
423
+ @_abc_1.abstractmethod
507
424
  def UpdateAPIKey(
508
425
  self,
509
- request: weaveapi.auth.v1.service_pb2.UpdateAPIKeyRequest,
426
+ request: _service_pb2.UpdateAPIKeyRequest,
510
427
  context: _ServicerContext,
511
- ) -> typing.Union[
512
- weaveapi.auth.v1.service_pb2.UpdateAPIKeyResponse,
513
- collections.abc.Awaitable[weaveapi.auth.v1.service_pb2.UpdateAPIKeyResponse],
428
+ ) -> _typing.Union[
429
+ _service_pb2.UpdateAPIKeyResponse,
430
+ _abc.Awaitable[_service_pb2.UpdateAPIKeyResponse],
514
431
  ]:
515
432
  """Update API key (rename, etc)"""
516
433
 
517
- @abc.abstractmethod
434
+ @_abc_1.abstractmethod
518
435
  def RevokeAPIKey(
519
436
  self,
520
- request: weaveapi.auth.v1.service_pb2.RevokeAPIKeyRequest,
437
+ request: _service_pb2.RevokeAPIKeyRequest,
521
438
  context: _ServicerContext,
522
- ) -> typing.Union[
523
- weaveapi.auth.v1.service_pb2.RevokeAPIKeyResponse,
524
- collections.abc.Awaitable[weaveapi.auth.v1.service_pb2.RevokeAPIKeyResponse],
439
+ ) -> _typing.Union[
440
+ _service_pb2.RevokeAPIKeyResponse,
441
+ _abc.Awaitable[_service_pb2.RevokeAPIKeyResponse],
525
442
  ]:
526
443
  """Revoke API key"""
527
444
 
528
- @abc.abstractmethod
445
+ @_abc_1.abstractmethod
529
446
  def ValidateAPIKey(
530
447
  self,
531
- request: weaveapi.auth.v1.service_pb2.ValidateAPIKeyRequest,
448
+ request: _service_pb2.ValidateAPIKeyRequest,
532
449
  context: _ServicerContext,
533
- ) -> typing.Union[
534
- weaveapi.auth.v1.service_pb2.ValidateAPIKeyResponse,
535
- collections.abc.Awaitable[weaveapi.auth.v1.service_pb2.ValidateAPIKeyResponse],
450
+ ) -> _typing.Union[
451
+ _service_pb2.ValidateAPIKeyResponse,
452
+ _abc.Awaitable[_service_pb2.ValidateAPIKeyResponse],
536
453
  ]:
537
454
  """Validate API key (for internal use)"""
538
455
 
539
- @abc.abstractmethod
456
+ @_abc_1.abstractmethod
540
457
  def GetUsageStats(
541
458
  self,
542
- request: weaveapi.auth.v1.service_pb2.GetUsageStatsRequest,
459
+ request: _service_pb2.GetUsageStatsRequest,
543
460
  context: _ServicerContext,
544
- ) -> typing.Union[
545
- weaveapi.auth.v1.service_pb2.GetUsageStatsResponse,
546
- collections.abc.Awaitable[weaveapi.auth.v1.service_pb2.GetUsageStatsResponse],
461
+ ) -> _typing.Union[
462
+ _service_pb2.GetUsageStatsResponse,
463
+ _abc.Awaitable[_service_pb2.GetUsageStatsResponse],
547
464
  ]:
548
465
  """Usage and limits
549
466
 
550
467
  Get user's API usage statistics
551
468
  """
552
469
 
553
- @abc.abstractmethod
470
+ @_abc_1.abstractmethod
554
471
  def GetRateLimitStatus(
555
472
  self,
556
- request: weaveapi.auth.v1.service_pb2.GetRateLimitStatusRequest,
473
+ request: _service_pb2.GetRateLimitStatusRequest,
557
474
  context: _ServicerContext,
558
- ) -> typing.Union[
559
- weaveapi.auth.v1.service_pb2.GetRateLimitStatusResponse,
560
- collections.abc.Awaitable[
561
- weaveapi.auth.v1.service_pb2.GetRateLimitStatusResponse
562
- ],
475
+ ) -> _typing.Union[
476
+ _service_pb2.GetRateLimitStatusResponse,
477
+ _abc.Awaitable[_service_pb2.GetRateLimitStatusResponse],
563
478
  ]:
564
479
  """Get rate limit status"""
565
480
 
566
- @abc.abstractmethod
481
+ @_abc_1.abstractmethod
567
482
  def ListSessions(
568
483
  self,
569
- request: weaveapi.auth.v1.service_pb2.ListSessionsRequest,
484
+ request: _service_pb2.ListSessionsRequest,
570
485
  context: _ServicerContext,
571
- ) -> typing.Union[
572
- weaveapi.auth.v1.service_pb2.ListSessionsResponse,
573
- collections.abc.Awaitable[weaveapi.auth.v1.service_pb2.ListSessionsResponse],
486
+ ) -> _typing.Union[
487
+ _service_pb2.ListSessionsResponse,
488
+ _abc.Awaitable[_service_pb2.ListSessionsResponse],
574
489
  ]:
575
490
  """Session management
576
491
 
577
492
  List active sessions
578
493
  """
579
494
 
580
- @abc.abstractmethod
495
+ @_abc_1.abstractmethod
581
496
  def RevokeSession(
582
497
  self,
583
- request: weaveapi.auth.v1.service_pb2.RevokeSessionRequest,
498
+ request: _service_pb2.RevokeSessionRequest,
584
499
  context: _ServicerContext,
585
- ) -> typing.Union[
586
- weaveapi.auth.v1.service_pb2.RevokeSessionResponse,
587
- collections.abc.Awaitable[weaveapi.auth.v1.service_pb2.RevokeSessionResponse],
500
+ ) -> _typing.Union[
501
+ _service_pb2.RevokeSessionResponse,
502
+ _abc.Awaitable[_service_pb2.RevokeSessionResponse],
588
503
  ]:
589
504
  """Revoke a specific session"""
590
505
 
591
- @abc.abstractmethod
506
+ @_abc_1.abstractmethod
592
507
  def RevokeAllSessions(
593
508
  self,
594
- request: weaveapi.auth.v1.service_pb2.RevokeAllSessionsRequest,
509
+ request: _service_pb2.RevokeAllSessionsRequest,
595
510
  context: _ServicerContext,
596
- ) -> typing.Union[
597
- weaveapi.auth.v1.service_pb2.RevokeAllSessionsResponse,
598
- collections.abc.Awaitable[
599
- weaveapi.auth.v1.service_pb2.RevokeAllSessionsResponse
600
- ],
511
+ ) -> _typing.Union[
512
+ _service_pb2.RevokeAllSessionsResponse,
513
+ _abc.Awaitable[_service_pb2.RevokeAllSessionsResponse],
601
514
  ]:
602
515
  """Revoke all sessions except current"""
603
516
 
604
517
  def add_AuthServicer_to_server(
605
- servicer: AuthServicer, server: typing.Union[grpc.Server, grpc.aio.Server]
518
+ servicer: AuthServicer, server: _typing.Union[_grpc.Server, _aio.Server]
606
519
  ) -> None: ...