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,594 @@
|
|
|
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
|
+
|
|
14
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
15
|
+
|
|
16
|
+
@typing.final
|
|
17
|
+
class User(google.protobuf.message.Message):
|
|
18
|
+
"""User model"""
|
|
19
|
+
|
|
20
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
21
|
+
|
|
22
|
+
ID_FIELD_NUMBER: builtins.int
|
|
23
|
+
EMAIL_FIELD_NUMBER: builtins.int
|
|
24
|
+
USERNAME_FIELD_NUMBER: builtins.int
|
|
25
|
+
FULL_NAME_FIELD_NUMBER: builtins.int
|
|
26
|
+
AVATAR_URL_FIELD_NUMBER: builtins.int
|
|
27
|
+
OAUTH_ACCOUNTS_FIELD_NUMBER: builtins.int
|
|
28
|
+
PRIMARY_PROVIDER_FIELD_NUMBER: builtins.int
|
|
29
|
+
SUBSCRIPTION_FIELD_NUMBER: builtins.int
|
|
30
|
+
ACCOUNT_STATUS_FIELD_NUMBER: builtins.int
|
|
31
|
+
EMAIL_VERIFIED_FIELD_NUMBER: builtins.int
|
|
32
|
+
LAST_LOGIN_AT_FIELD_NUMBER: builtins.int
|
|
33
|
+
CREATED_AT_FIELD_NUMBER: builtins.int
|
|
34
|
+
UPDATED_AT_FIELD_NUMBER: builtins.int
|
|
35
|
+
PREFERENCES_FIELD_NUMBER: builtins.int
|
|
36
|
+
id: builtins.str
|
|
37
|
+
email: builtins.str
|
|
38
|
+
username: builtins.str
|
|
39
|
+
"""Primary username (from primary provider)"""
|
|
40
|
+
full_name: builtins.str
|
|
41
|
+
avatar_url: builtins.str
|
|
42
|
+
primary_provider: builtins.str
|
|
43
|
+
"""github, google, microsoft, etc."""
|
|
44
|
+
account_status: builtins.str
|
|
45
|
+
"""Account status
|
|
46
|
+
active, suspended, deleted
|
|
47
|
+
"""
|
|
48
|
+
email_verified: builtins.bool
|
|
49
|
+
@property
|
|
50
|
+
def oauth_accounts(
|
|
51
|
+
self,
|
|
52
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
|
|
53
|
+
global___OAuthAccount
|
|
54
|
+
]:
|
|
55
|
+
"""OAuth provider accounts"""
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
def subscription(self) -> global___SubscriptionInfo:
|
|
59
|
+
"""Subscription info"""
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
def last_login_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
63
|
+
"""Metadata"""
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
67
|
+
@property
|
|
68
|
+
def updated_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
69
|
+
@property
|
|
70
|
+
def preferences(self) -> global___UserPreferences:
|
|
71
|
+
"""Preferences"""
|
|
72
|
+
|
|
73
|
+
def __init__(
|
|
74
|
+
self,
|
|
75
|
+
*,
|
|
76
|
+
id: builtins.str = ...,
|
|
77
|
+
email: builtins.str = ...,
|
|
78
|
+
username: builtins.str = ...,
|
|
79
|
+
full_name: builtins.str = ...,
|
|
80
|
+
avatar_url: builtins.str = ...,
|
|
81
|
+
oauth_accounts: collections.abc.Iterable[global___OAuthAccount] | None = ...,
|
|
82
|
+
primary_provider: builtins.str = ...,
|
|
83
|
+
subscription: global___SubscriptionInfo | None = ...,
|
|
84
|
+
account_status: builtins.str = ...,
|
|
85
|
+
email_verified: builtins.bool = ...,
|
|
86
|
+
last_login_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
87
|
+
created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
88
|
+
updated_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
89
|
+
preferences: global___UserPreferences | None = ...,
|
|
90
|
+
) -> None: ...
|
|
91
|
+
def HasField(
|
|
92
|
+
self,
|
|
93
|
+
field_name: typing.Literal[
|
|
94
|
+
"created_at",
|
|
95
|
+
b"created_at",
|
|
96
|
+
"last_login_at",
|
|
97
|
+
b"last_login_at",
|
|
98
|
+
"preferences",
|
|
99
|
+
b"preferences",
|
|
100
|
+
"subscription",
|
|
101
|
+
b"subscription",
|
|
102
|
+
"updated_at",
|
|
103
|
+
b"updated_at",
|
|
104
|
+
],
|
|
105
|
+
) -> builtins.bool: ...
|
|
106
|
+
def ClearField(
|
|
107
|
+
self,
|
|
108
|
+
field_name: typing.Literal[
|
|
109
|
+
"account_status",
|
|
110
|
+
b"account_status",
|
|
111
|
+
"avatar_url",
|
|
112
|
+
b"avatar_url",
|
|
113
|
+
"created_at",
|
|
114
|
+
b"created_at",
|
|
115
|
+
"email",
|
|
116
|
+
b"email",
|
|
117
|
+
"email_verified",
|
|
118
|
+
b"email_verified",
|
|
119
|
+
"full_name",
|
|
120
|
+
b"full_name",
|
|
121
|
+
"id",
|
|
122
|
+
b"id",
|
|
123
|
+
"last_login_at",
|
|
124
|
+
b"last_login_at",
|
|
125
|
+
"oauth_accounts",
|
|
126
|
+
b"oauth_accounts",
|
|
127
|
+
"preferences",
|
|
128
|
+
b"preferences",
|
|
129
|
+
"primary_provider",
|
|
130
|
+
b"primary_provider",
|
|
131
|
+
"subscription",
|
|
132
|
+
b"subscription",
|
|
133
|
+
"updated_at",
|
|
134
|
+
b"updated_at",
|
|
135
|
+
"username",
|
|
136
|
+
b"username",
|
|
137
|
+
],
|
|
138
|
+
) -> None: ...
|
|
139
|
+
|
|
140
|
+
global___User = User
|
|
141
|
+
|
|
142
|
+
@typing.final
|
|
143
|
+
class OAuthAccount(google.protobuf.message.Message):
|
|
144
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
145
|
+
|
|
146
|
+
@typing.final
|
|
147
|
+
class MetadataEntry(google.protobuf.message.Message):
|
|
148
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
149
|
+
|
|
150
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
151
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
152
|
+
key: builtins.str
|
|
153
|
+
value: builtins.str
|
|
154
|
+
def __init__(
|
|
155
|
+
self,
|
|
156
|
+
*,
|
|
157
|
+
key: builtins.str = ...,
|
|
158
|
+
value: builtins.str = ...,
|
|
159
|
+
) -> None: ...
|
|
160
|
+
def ClearField(
|
|
161
|
+
self, field_name: typing.Literal["key", b"key", "value", b"value"]
|
|
162
|
+
) -> None: ...
|
|
163
|
+
|
|
164
|
+
PROVIDER_FIELD_NUMBER: builtins.int
|
|
165
|
+
PROVIDER_USER_ID_FIELD_NUMBER: builtins.int
|
|
166
|
+
PROVIDER_USERNAME_FIELD_NUMBER: builtins.int
|
|
167
|
+
PROVIDER_EMAIL_FIELD_NUMBER: builtins.int
|
|
168
|
+
ACCESS_TOKEN_FIELD_NUMBER: builtins.int
|
|
169
|
+
REFRESH_TOKEN_FIELD_NUMBER: builtins.int
|
|
170
|
+
TOKEN_EXPIRES_AT_FIELD_NUMBER: builtins.int
|
|
171
|
+
LINKED_AT_FIELD_NUMBER: builtins.int
|
|
172
|
+
LAST_USED_AT_FIELD_NUMBER: builtins.int
|
|
173
|
+
METADATA_FIELD_NUMBER: builtins.int
|
|
174
|
+
provider: builtins.str
|
|
175
|
+
"""github, google, microsoft, gitlab"""
|
|
176
|
+
provider_user_id: builtins.str
|
|
177
|
+
"""ID from the OAuth provider"""
|
|
178
|
+
provider_username: builtins.str
|
|
179
|
+
"""Username from the OAuth provider"""
|
|
180
|
+
provider_email: builtins.str
|
|
181
|
+
"""Email from the OAuth provider"""
|
|
182
|
+
access_token: builtins.str
|
|
183
|
+
"""Encrypted OAuth access token"""
|
|
184
|
+
refresh_token: builtins.str
|
|
185
|
+
"""Encrypted OAuth refresh token"""
|
|
186
|
+
@property
|
|
187
|
+
def token_expires_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
188
|
+
@property
|
|
189
|
+
def linked_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
190
|
+
@property
|
|
191
|
+
def last_used_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
192
|
+
@property
|
|
193
|
+
def metadata(
|
|
194
|
+
self,
|
|
195
|
+
) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
196
|
+
"""Provider-specific data"""
|
|
197
|
+
|
|
198
|
+
def __init__(
|
|
199
|
+
self,
|
|
200
|
+
*,
|
|
201
|
+
provider: builtins.str = ...,
|
|
202
|
+
provider_user_id: builtins.str = ...,
|
|
203
|
+
provider_username: builtins.str = ...,
|
|
204
|
+
provider_email: builtins.str = ...,
|
|
205
|
+
access_token: builtins.str = ...,
|
|
206
|
+
refresh_token: builtins.str = ...,
|
|
207
|
+
token_expires_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
208
|
+
linked_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
209
|
+
last_used_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
210
|
+
metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
|
|
211
|
+
) -> None: ...
|
|
212
|
+
def HasField(
|
|
213
|
+
self,
|
|
214
|
+
field_name: typing.Literal[
|
|
215
|
+
"last_used_at",
|
|
216
|
+
b"last_used_at",
|
|
217
|
+
"linked_at",
|
|
218
|
+
b"linked_at",
|
|
219
|
+
"token_expires_at",
|
|
220
|
+
b"token_expires_at",
|
|
221
|
+
],
|
|
222
|
+
) -> builtins.bool: ...
|
|
223
|
+
def ClearField(
|
|
224
|
+
self,
|
|
225
|
+
field_name: typing.Literal[
|
|
226
|
+
"access_token",
|
|
227
|
+
b"access_token",
|
|
228
|
+
"last_used_at",
|
|
229
|
+
b"last_used_at",
|
|
230
|
+
"linked_at",
|
|
231
|
+
b"linked_at",
|
|
232
|
+
"metadata",
|
|
233
|
+
b"metadata",
|
|
234
|
+
"provider",
|
|
235
|
+
b"provider",
|
|
236
|
+
"provider_email",
|
|
237
|
+
b"provider_email",
|
|
238
|
+
"provider_user_id",
|
|
239
|
+
b"provider_user_id",
|
|
240
|
+
"provider_username",
|
|
241
|
+
b"provider_username",
|
|
242
|
+
"refresh_token",
|
|
243
|
+
b"refresh_token",
|
|
244
|
+
"token_expires_at",
|
|
245
|
+
b"token_expires_at",
|
|
246
|
+
],
|
|
247
|
+
) -> None: ...
|
|
248
|
+
|
|
249
|
+
global___OAuthAccount = OAuthAccount
|
|
250
|
+
|
|
251
|
+
@typing.final
|
|
252
|
+
class OAuthProvider(google.protobuf.message.Message):
|
|
253
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
254
|
+
|
|
255
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
256
|
+
DISPLAY_NAME_FIELD_NUMBER: builtins.int
|
|
257
|
+
ICON_URL_FIELD_NUMBER: builtins.int
|
|
258
|
+
ENABLED_FIELD_NUMBER: builtins.int
|
|
259
|
+
SUPPORTED_SCOPES_FIELD_NUMBER: builtins.int
|
|
260
|
+
DEFAULT_SCOPE_FIELD_NUMBER: builtins.int
|
|
261
|
+
SUPPORTS_REFRESH_FIELD_NUMBER: builtins.int
|
|
262
|
+
SUPPORTS_PKCE_FIELD_NUMBER: builtins.int
|
|
263
|
+
name: builtins.str
|
|
264
|
+
"""github, google, microsoft, gitlab"""
|
|
265
|
+
display_name: builtins.str
|
|
266
|
+
"""GitHub, Google, Microsoft, GitLab"""
|
|
267
|
+
icon_url: builtins.str
|
|
268
|
+
enabled: builtins.bool
|
|
269
|
+
default_scope: builtins.str
|
|
270
|
+
supports_refresh: builtins.bool
|
|
271
|
+
supports_pkce: builtins.bool
|
|
272
|
+
"""Proof Key for Code Exchange"""
|
|
273
|
+
@property
|
|
274
|
+
def supported_scopes(
|
|
275
|
+
self,
|
|
276
|
+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[
|
|
277
|
+
builtins.str
|
|
278
|
+
]: ...
|
|
279
|
+
def __init__(
|
|
280
|
+
self,
|
|
281
|
+
*,
|
|
282
|
+
name: builtins.str = ...,
|
|
283
|
+
display_name: builtins.str = ...,
|
|
284
|
+
icon_url: builtins.str = ...,
|
|
285
|
+
enabled: builtins.bool = ...,
|
|
286
|
+
supported_scopes: collections.abc.Iterable[builtins.str] | None = ...,
|
|
287
|
+
default_scope: builtins.str = ...,
|
|
288
|
+
supports_refresh: builtins.bool = ...,
|
|
289
|
+
supports_pkce: builtins.bool = ...,
|
|
290
|
+
) -> None: ...
|
|
291
|
+
def ClearField(
|
|
292
|
+
self,
|
|
293
|
+
field_name: typing.Literal[
|
|
294
|
+
"default_scope",
|
|
295
|
+
b"default_scope",
|
|
296
|
+
"display_name",
|
|
297
|
+
b"display_name",
|
|
298
|
+
"enabled",
|
|
299
|
+
b"enabled",
|
|
300
|
+
"icon_url",
|
|
301
|
+
b"icon_url",
|
|
302
|
+
"name",
|
|
303
|
+
b"name",
|
|
304
|
+
"supported_scopes",
|
|
305
|
+
b"supported_scopes",
|
|
306
|
+
"supports_pkce",
|
|
307
|
+
b"supports_pkce",
|
|
308
|
+
"supports_refresh",
|
|
309
|
+
b"supports_refresh",
|
|
310
|
+
],
|
|
311
|
+
) -> None: ...
|
|
312
|
+
|
|
313
|
+
global___OAuthProvider = OAuthProvider
|
|
314
|
+
|
|
315
|
+
@typing.final
|
|
316
|
+
class SubscriptionInfo(google.protobuf.message.Message):
|
|
317
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
318
|
+
|
|
319
|
+
STATUS_FIELD_NUMBER: builtins.int
|
|
320
|
+
TIER_FIELD_NUMBER: builtins.int
|
|
321
|
+
STRIPE_CUSTOMER_ID_FIELD_NUMBER: builtins.int
|
|
322
|
+
STRIPE_SUBSCRIPTION_ID_FIELD_NUMBER: builtins.int
|
|
323
|
+
STARTED_AT_FIELD_NUMBER: builtins.int
|
|
324
|
+
ENDS_AT_FIELD_NUMBER: builtins.int
|
|
325
|
+
CANCELLED_AT_FIELD_NUMBER: builtins.int
|
|
326
|
+
AUTO_RENEW_FIELD_NUMBER: builtins.int
|
|
327
|
+
PAYMENT_METHOD_LAST4_FIELD_NUMBER: builtins.int
|
|
328
|
+
PAYMENT_METHOD_BRAND_FIELD_NUMBER: builtins.int
|
|
329
|
+
status: builtins.str
|
|
330
|
+
"""free, active, cancelled, past_due"""
|
|
331
|
+
tier: builtins.str
|
|
332
|
+
"""free, pro"""
|
|
333
|
+
stripe_customer_id: builtins.str
|
|
334
|
+
stripe_subscription_id: builtins.str
|
|
335
|
+
auto_renew: builtins.bool
|
|
336
|
+
payment_method_last4: builtins.str
|
|
337
|
+
payment_method_brand: builtins.str
|
|
338
|
+
@property
|
|
339
|
+
def started_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
340
|
+
@property
|
|
341
|
+
def ends_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
342
|
+
@property
|
|
343
|
+
def cancelled_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
344
|
+
def __init__(
|
|
345
|
+
self,
|
|
346
|
+
*,
|
|
347
|
+
status: builtins.str = ...,
|
|
348
|
+
tier: builtins.str = ...,
|
|
349
|
+
stripe_customer_id: builtins.str = ...,
|
|
350
|
+
stripe_subscription_id: builtins.str = ...,
|
|
351
|
+
started_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
352
|
+
ends_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
353
|
+
cancelled_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
354
|
+
auto_renew: builtins.bool = ...,
|
|
355
|
+
payment_method_last4: builtins.str = ...,
|
|
356
|
+
payment_method_brand: builtins.str = ...,
|
|
357
|
+
) -> None: ...
|
|
358
|
+
def HasField(
|
|
359
|
+
self,
|
|
360
|
+
field_name: typing.Literal[
|
|
361
|
+
"cancelled_at",
|
|
362
|
+
b"cancelled_at",
|
|
363
|
+
"ends_at",
|
|
364
|
+
b"ends_at",
|
|
365
|
+
"started_at",
|
|
366
|
+
b"started_at",
|
|
367
|
+
],
|
|
368
|
+
) -> builtins.bool: ...
|
|
369
|
+
def ClearField(
|
|
370
|
+
self,
|
|
371
|
+
field_name: typing.Literal[
|
|
372
|
+
"auto_renew",
|
|
373
|
+
b"auto_renew",
|
|
374
|
+
"cancelled_at",
|
|
375
|
+
b"cancelled_at",
|
|
376
|
+
"ends_at",
|
|
377
|
+
b"ends_at",
|
|
378
|
+
"payment_method_brand",
|
|
379
|
+
b"payment_method_brand",
|
|
380
|
+
"payment_method_last4",
|
|
381
|
+
b"payment_method_last4",
|
|
382
|
+
"started_at",
|
|
383
|
+
b"started_at",
|
|
384
|
+
"status",
|
|
385
|
+
b"status",
|
|
386
|
+
"stripe_customer_id",
|
|
387
|
+
b"stripe_customer_id",
|
|
388
|
+
"stripe_subscription_id",
|
|
389
|
+
b"stripe_subscription_id",
|
|
390
|
+
"tier",
|
|
391
|
+
b"tier",
|
|
392
|
+
],
|
|
393
|
+
) -> None: ...
|
|
394
|
+
|
|
395
|
+
global___SubscriptionInfo = SubscriptionInfo
|
|
396
|
+
|
|
397
|
+
@typing.final
|
|
398
|
+
class UserPreferences(google.protobuf.message.Message):
|
|
399
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
400
|
+
|
|
401
|
+
EMAIL_NOTIFICATIONS_FIELD_NUMBER: builtins.int
|
|
402
|
+
WEBHOOK_NOTIFICATIONS_FIELD_NUMBER: builtins.int
|
|
403
|
+
WEBHOOK_URL_FIELD_NUMBER: builtins.int
|
|
404
|
+
WEBHOOK_SECRET_FIELD_NUMBER: builtins.int
|
|
405
|
+
WATCHED_MODELS_FIELD_NUMBER: builtins.int
|
|
406
|
+
WATCHED_PROVIDERS_FIELD_NUMBER: builtins.int
|
|
407
|
+
TIMEZONE_FIELD_NUMBER: builtins.int
|
|
408
|
+
DATE_FORMAT_FIELD_NUMBER: builtins.int
|
|
409
|
+
email_notifications: builtins.bool
|
|
410
|
+
webhook_notifications: builtins.bool
|
|
411
|
+
webhook_url: builtins.str
|
|
412
|
+
webhook_secret: builtins.str
|
|
413
|
+
timezone: builtins.str
|
|
414
|
+
date_format: builtins.str
|
|
415
|
+
@property
|
|
416
|
+
def watched_models(
|
|
417
|
+
self,
|
|
418
|
+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
419
|
+
"""Model slugs to watch for updates"""
|
|
420
|
+
|
|
421
|
+
@property
|
|
422
|
+
def watched_providers(
|
|
423
|
+
self,
|
|
424
|
+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
425
|
+
"""Provider slugs to watch"""
|
|
426
|
+
|
|
427
|
+
def __init__(
|
|
428
|
+
self,
|
|
429
|
+
*,
|
|
430
|
+
email_notifications: builtins.bool = ...,
|
|
431
|
+
webhook_notifications: builtins.bool = ...,
|
|
432
|
+
webhook_url: builtins.str = ...,
|
|
433
|
+
webhook_secret: builtins.str = ...,
|
|
434
|
+
watched_models: collections.abc.Iterable[builtins.str] | None = ...,
|
|
435
|
+
watched_providers: collections.abc.Iterable[builtins.str] | None = ...,
|
|
436
|
+
timezone: builtins.str = ...,
|
|
437
|
+
date_format: builtins.str = ...,
|
|
438
|
+
) -> None: ...
|
|
439
|
+
def ClearField(
|
|
440
|
+
self,
|
|
441
|
+
field_name: typing.Literal[
|
|
442
|
+
"date_format",
|
|
443
|
+
b"date_format",
|
|
444
|
+
"email_notifications",
|
|
445
|
+
b"email_notifications",
|
|
446
|
+
"timezone",
|
|
447
|
+
b"timezone",
|
|
448
|
+
"watched_models",
|
|
449
|
+
b"watched_models",
|
|
450
|
+
"watched_providers",
|
|
451
|
+
b"watched_providers",
|
|
452
|
+
"webhook_notifications",
|
|
453
|
+
b"webhook_notifications",
|
|
454
|
+
"webhook_secret",
|
|
455
|
+
b"webhook_secret",
|
|
456
|
+
"webhook_url",
|
|
457
|
+
b"webhook_url",
|
|
458
|
+
],
|
|
459
|
+
) -> None: ...
|
|
460
|
+
|
|
461
|
+
global___UserPreferences = UserPreferences
|
|
462
|
+
|
|
463
|
+
@typing.final
|
|
464
|
+
class APIKey(google.protobuf.message.Message):
|
|
465
|
+
"""API Key model"""
|
|
466
|
+
|
|
467
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
468
|
+
|
|
469
|
+
ID_FIELD_NUMBER: builtins.int
|
|
470
|
+
USER_ID_FIELD_NUMBER: builtins.int
|
|
471
|
+
KEY_PREFIX_FIELD_NUMBER: builtins.int
|
|
472
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
473
|
+
DESCRIPTION_FIELD_NUMBER: builtins.int
|
|
474
|
+
SCOPES_FIELD_NUMBER: builtins.int
|
|
475
|
+
ALLOWED_ENDPOINTS_FIELD_NUMBER: builtins.int
|
|
476
|
+
ALLOWED_IPS_FIELD_NUMBER: builtins.int
|
|
477
|
+
LAST_USED_AT_FIELD_NUMBER: builtins.int
|
|
478
|
+
REQUEST_COUNT_FIELD_NUMBER: builtins.int
|
|
479
|
+
TOTAL_TOKENS_FIELD_NUMBER: builtins.int
|
|
480
|
+
IS_ACTIVE_FIELD_NUMBER: builtins.int
|
|
481
|
+
EXPIRES_AT_FIELD_NUMBER: builtins.int
|
|
482
|
+
CREATED_AT_FIELD_NUMBER: builtins.int
|
|
483
|
+
UPDATED_AT_FIELD_NUMBER: builtins.int
|
|
484
|
+
id: builtins.str
|
|
485
|
+
user_id: builtins.str
|
|
486
|
+
key_prefix: builtins.str
|
|
487
|
+
"""First 10 chars for identification"""
|
|
488
|
+
name: builtins.str
|
|
489
|
+
description: builtins.str
|
|
490
|
+
request_count: builtins.int
|
|
491
|
+
total_tokens: builtins.int
|
|
492
|
+
is_active: builtins.bool
|
|
493
|
+
"""Status"""
|
|
494
|
+
@property
|
|
495
|
+
def scopes(
|
|
496
|
+
self,
|
|
497
|
+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
498
|
+
"""Permissions
|
|
499
|
+
read, write, admin
|
|
500
|
+
"""
|
|
501
|
+
|
|
502
|
+
@property
|
|
503
|
+
def allowed_endpoints(
|
|
504
|
+
self,
|
|
505
|
+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
506
|
+
"""Specific endpoints if restricted"""
|
|
507
|
+
|
|
508
|
+
@property
|
|
509
|
+
def allowed_ips(
|
|
510
|
+
self,
|
|
511
|
+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
512
|
+
"""IP whitelist"""
|
|
513
|
+
|
|
514
|
+
@property
|
|
515
|
+
def last_used_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
516
|
+
"""Usage"""
|
|
517
|
+
|
|
518
|
+
@property
|
|
519
|
+
def expires_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
520
|
+
@property
|
|
521
|
+
def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
522
|
+
"""Metadata"""
|
|
523
|
+
|
|
524
|
+
@property
|
|
525
|
+
def updated_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
526
|
+
def __init__(
|
|
527
|
+
self,
|
|
528
|
+
*,
|
|
529
|
+
id: builtins.str = ...,
|
|
530
|
+
user_id: builtins.str = ...,
|
|
531
|
+
key_prefix: builtins.str = ...,
|
|
532
|
+
name: builtins.str = ...,
|
|
533
|
+
description: builtins.str = ...,
|
|
534
|
+
scopes: collections.abc.Iterable[builtins.str] | None = ...,
|
|
535
|
+
allowed_endpoints: collections.abc.Iterable[builtins.str] | None = ...,
|
|
536
|
+
allowed_ips: collections.abc.Iterable[builtins.str] | None = ...,
|
|
537
|
+
last_used_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
538
|
+
request_count: builtins.int = ...,
|
|
539
|
+
total_tokens: builtins.int = ...,
|
|
540
|
+
is_active: builtins.bool = ...,
|
|
541
|
+
expires_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
542
|
+
created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
543
|
+
updated_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
544
|
+
) -> None: ...
|
|
545
|
+
def HasField(
|
|
546
|
+
self,
|
|
547
|
+
field_name: typing.Literal[
|
|
548
|
+
"created_at",
|
|
549
|
+
b"created_at",
|
|
550
|
+
"expires_at",
|
|
551
|
+
b"expires_at",
|
|
552
|
+
"last_used_at",
|
|
553
|
+
b"last_used_at",
|
|
554
|
+
"updated_at",
|
|
555
|
+
b"updated_at",
|
|
556
|
+
],
|
|
557
|
+
) -> builtins.bool: ...
|
|
558
|
+
def ClearField(
|
|
559
|
+
self,
|
|
560
|
+
field_name: typing.Literal[
|
|
561
|
+
"allowed_endpoints",
|
|
562
|
+
b"allowed_endpoints",
|
|
563
|
+
"allowed_ips",
|
|
564
|
+
b"allowed_ips",
|
|
565
|
+
"created_at",
|
|
566
|
+
b"created_at",
|
|
567
|
+
"description",
|
|
568
|
+
b"description",
|
|
569
|
+
"expires_at",
|
|
570
|
+
b"expires_at",
|
|
571
|
+
"id",
|
|
572
|
+
b"id",
|
|
573
|
+
"is_active",
|
|
574
|
+
b"is_active",
|
|
575
|
+
"key_prefix",
|
|
576
|
+
b"key_prefix",
|
|
577
|
+
"last_used_at",
|
|
578
|
+
b"last_used_at",
|
|
579
|
+
"name",
|
|
580
|
+
b"name",
|
|
581
|
+
"request_count",
|
|
582
|
+
b"request_count",
|
|
583
|
+
"scopes",
|
|
584
|
+
b"scopes",
|
|
585
|
+
"total_tokens",
|
|
586
|
+
b"total_tokens",
|
|
587
|
+
"updated_at",
|
|
588
|
+
b"updated_at",
|
|
589
|
+
"user_id",
|
|
590
|
+
b"user_id",
|
|
591
|
+
],
|
|
592
|
+
) -> None: ...
|
|
593
|
+
|
|
594
|
+
global___APIKey = APIKey
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import abc
|
|
7
|
+
import collections.abc
|
|
8
|
+
import grpc
|
|
9
|
+
import grpc.aio
|
|
10
|
+
import typing
|
|
11
|
+
|
|
12
|
+
_T = typing.TypeVar("_T")
|
|
13
|
+
|
|
14
|
+
class _MaybeAsyncIterator(
|
|
15
|
+
collections.abc.AsyncIterator[_T],
|
|
16
|
+
collections.abc.Iterator[_T],
|
|
17
|
+
metaclass=abc.ABCMeta,
|
|
18
|
+
): ...
|
|
19
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
20
|
+
...
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: weaveapi/generate/v1/configuration.proto
|
|
5
|
-
# Protobuf Python Version: 6.
|
|
5
|
+
# Protobuf Python Version: 6.32.0
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
|
|
8
8
|
from google.protobuf import descriptor as _descriptor
|
|
@@ -14,8 +14,8 @@ from google.protobuf.internal import builder as _builder
|
|
|
14
14
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
15
15
|
_runtime_version.Domain.PUBLIC,
|
|
16
16
|
6,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
32,
|
|
18
|
+
0,
|
|
19
19
|
"",
|
|
20
20
|
"weaveapi/generate/v1/configuration.proto",
|
|
21
21
|
)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: weaveapi/generate/v1/generate.proto
|
|
5
|
-
# Protobuf Python Version: 6.
|
|
5
|
+
# Protobuf Python Version: 6.32.0
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
|
|
8
8
|
from google.protobuf import descriptor as _descriptor
|
|
@@ -12,7 +12,7 @@ from google.protobuf import symbol_database as _symbol_database
|
|
|
12
12
|
from google.protobuf.internal import builder as _builder
|
|
13
13
|
|
|
14
14
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
15
|
-
_runtime_version.Domain.PUBLIC, 6,
|
|
15
|
+
_runtime_version.Domain.PUBLIC, 6, 32, 0, "", "weaveapi/generate/v1/generate.proto"
|
|
16
16
|
)
|
|
17
17
|
# @@protoc_insertion_point(imports)
|
|
18
18
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: weaveapi/generate/v1/service.proto
|
|
5
|
-
# Protobuf Python Version: 6.
|
|
5
|
+
# Protobuf Python Version: 6.32.0
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
|
|
8
8
|
from google.protobuf import descriptor as _descriptor
|
|
@@ -12,7 +12,7 @@ from google.protobuf import symbol_database as _symbol_database
|
|
|
12
12
|
from google.protobuf.internal import builder as _builder
|
|
13
13
|
|
|
14
14
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
15
|
-
_runtime_version.Domain.PUBLIC, 6,
|
|
15
|
+
_runtime_version.Domain.PUBLIC, 6, 32, 0, "", "weaveapi/generate/v1/service.proto"
|
|
16
16
|
)
|
|
17
17
|
# @@protoc_insertion_point(imports)
|
|
18
18
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: weaveapi/mcpregistry/v1/server.proto
|
|
5
|
-
# Protobuf Python Version: 6.
|
|
5
|
+
# Protobuf Python Version: 6.32.0
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
|
|
8
8
|
from google.protobuf import descriptor as _descriptor
|
|
@@ -12,7 +12,7 @@ from google.protobuf import symbol_database as _symbol_database
|
|
|
12
12
|
from google.protobuf.internal import builder as _builder
|
|
13
13
|
|
|
14
14
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
15
|
-
_runtime_version.Domain.PUBLIC, 6,
|
|
15
|
+
_runtime_version.Domain.PUBLIC, 6, 32, 0, "", "weaveapi/mcpregistry/v1/server.proto"
|
|
16
16
|
)
|
|
17
17
|
# @@protoc_insertion_point(imports)
|
|
18
18
|
|