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.
- weave/weaveapi/auth/v1/service_pb2.py +184 -88
- weave/weaveapi/auth/v1/service_pb2.pyi +1288 -1134
- weave/weaveapi/auth/v1/service_pb2_grpc.pyi +248 -335
- weave/weaveapi/auth/v1/session_pb2.py +12 -4
- weave/weaveapi/auth/v1/session_pb2.pyi +109 -89
- weave/weaveapi/auth/v1/session_pb2_grpc.pyi +11 -10
- weave/weaveapi/auth/v1/usage_pb2.py +16 -12
- weave/weaveapi/auth/v1/usage_pb2.pyi +251 -197
- weave/weaveapi/auth/v1/usage_pb2_grpc.pyi +11 -10
- weave/weaveapi/auth/v1/user_pb2.py +58 -16
- weave/weaveapi/auth/v1/user_pb2.pyi +588 -505
- weave/weaveapi/auth/v1/user_pb2_grpc.pyi +11 -10
- weave/weaveapi/generate/v1/configuration_pb2.py +29 -17
- weave/weaveapi/generate/v1/configuration_pb2.pyi +277 -241
- weave/weaveapi/generate/v1/configuration_pb2_grpc.pyi +11 -10
- weave/weaveapi/generate/v1/generate_pb2.py +30 -4
- weave/weaveapi/generate/v1/generate_pb2.pyi +138 -40
- weave/weaveapi/generate/v1/generate_pb2_grpc.pyi +11 -10
- weave/weaveapi/generate/v1/service_pb2.py +50 -20
- weave/weaveapi/generate/v1/service_pb2.pyi +264 -135
- weave/weaveapi/generate/v1/service_pb2_grpc.py +47 -0
- weave/weaveapi/generate/v1/service_pb2_grpc.pyi +89 -78
- weave/weaveapi/llmx/v1/architecture_pb2.py +3 -3
- weave/weaveapi/llmx/v1/architecture_pb2.pyi +664 -555
- weave/weaveapi/llmx/v1/architecture_pb2_grpc.pyi +11 -10
- weave/weaveapi/llmx/v1/capabilities_pb2.py +86 -54
- weave/weaveapi/llmx/v1/capabilities_pb2.pyi +967 -852
- weave/weaveapi/llmx/v1/capabilities_pb2_grpc.pyi +11 -10
- weave/weaveapi/llmx/v1/model_pb2.py +54 -18
- weave/weaveapi/llmx/v1/model_pb2.pyi +533 -455
- weave/weaveapi/llmx/v1/model_pb2_grpc.pyi +11 -10
- weave/weaveapi/llmx/v1/pricing_pb2.py +22 -18
- weave/weaveapi/llmx/v1/pricing_pb2.pyi +194 -172
- weave/weaveapi/llmx/v1/pricing_pb2_grpc.pyi +11 -10
- weave/weaveapi/llmx/v1/provider_pb2.py +3 -3
- weave/weaveapi/llmx/v1/provider_pb2.pyi +84 -59
- weave/weaveapi/llmx/v1/provider_pb2_grpc.pyi +11 -10
- weave/weaveapi/llmx/v1/service_pb2.py +224 -86
- weave/weaveapi/llmx/v1/service_pb2.pyi +1651 -1403
- weave/weaveapi/llmx/v1/service_pb2_grpc.pyi +160 -203
- weave/weaveapi/mcpregistry/v1/server_pb2.py +14 -8
- weave/weaveapi/mcpregistry/v1/server_pb2.pyi +143 -121
- weave/weaveapi/mcpregistry/v1/server_pb2_grpc.pyi +11 -10
- weave/weaveapi/mcpregistry/v1/service_pb2.py +47 -27
- weave/weaveapi/mcpregistry/v1/service_pb2.pyi +132 -122
- weave/weaveapi/mcpregistry/v1/service_pb2_grpc.pyi +87 -112
- weave/weaveapi/payment/v1/invoice_pb2.py +36 -10
- weave/weaveapi/payment/v1/invoice_pb2.pyi +352 -291
- weave/weaveapi/payment/v1/invoice_pb2_grpc.pyi +11 -10
- weave/weaveapi/payment/v1/service_pb2.py +256 -90
- weave/weaveapi/payment/v1/service_pb2.pyi +1381 -1242
- weave/weaveapi/payment/v1/service_pb2_grpc.pyi +229 -319
- weave/weaveapi/payment/v1/subscription_pb2.py +97 -21
- weave/weaveapi/payment/v1/subscription_pb2.pyi +727 -611
- weave/weaveapi/payment/v1/subscription_pb2_grpc.pyi +11 -10
- weave/weaveapi/storage/v1/auth_pb2.py +3 -3
- weave/weaveapi/storage/v1/auth_pb2.pyi +42 -29
- weave/weaveapi/storage/v1/auth_pb2_grpc.pyi +11 -10
- weave/weaveapi/storage/v1/nosql_database_pb2.py +45 -21
- weave/weaveapi/storage/v1/nosql_database_pb2.pyi +438 -372
- weave/weaveapi/storage/v1/nosql_database_pb2_grpc.pyi +11 -10
- weave/weaveapi/storage/v1/object_store_pb2.py +25 -11
- weave/weaveapi/storage/v1/object_store_pb2.pyi +203 -187
- weave/weaveapi/storage/v1/object_store_pb2_grpc.pyi +11 -10
- weave/weaveapi/storage/v1/service_pb2.py +94 -34
- weave/weaveapi/storage/v1/service_pb2.pyi +414 -357
- weave/weaveapi/storage/v1/service_pb2_grpc.pyi +88 -107
- weave/weaveapi/storage/v1/sql_database_pb2.py +37 -21
- weave/weaveapi/storage/v1/sql_database_pb2.pyi +481 -400
- weave/weaveapi/storage/v1/sql_database_pb2_grpc.pyi +11 -10
- weave/weaveapi/storage/v1/storage_pb2.py +18 -4
- weave/weaveapi/storage/v1/storage_pb2.pyi +79 -70
- weave/weaveapi/storage/v1/storage_pb2_grpc.pyi +11 -10
- weave/weaveapi/synthesize/v1/dataset_pb2.py +10 -8
- weave/weaveapi/synthesize/v1/dataset_pb2.pyi +158 -128
- weave/weaveapi/synthesize/v1/dataset_pb2_grpc.pyi +11 -10
- weave/weaveapi/synthesize/v1/inline_data_pb2.py +4 -4
- weave/weaveapi/synthesize/v1/inline_data_pb2.pyi +31 -27
- weave/weaveapi/synthesize/v1/inline_data_pb2_grpc.pyi +11 -10
- weave/weaveapi/synthesize/v1/relationship_pb2.py +17 -9
- weave/weaveapi/synthesize/v1/relationship_pb2.pyi +67 -64
- weave/weaveapi/synthesize/v1/relationship_pb2_grpc.pyi +11 -10
- weave/weaveapi/synthesize/v1/service_pb2.py +40 -22
- weave/weaveapi/synthesize/v1/service_pb2.pyi +202 -168
- weave/weaveapi/synthesize/v1/service_pb2_grpc.pyi +67 -79
- weave/weaveapi/synthesize/v1/training_pb2.py +17 -11
- weave/weaveapi/synthesize/v1/training_pb2.pyi +119 -106
- weave/weaveapi/synthesize/v1/training_pb2_grpc.pyi +11 -10
- weave/weavesql/llmxdb/capabilities.py +487 -0
- weave/weavesql/llmxdb/changes.py +297 -0
- weave/weavesql/llmxdb/models.py +594 -0
- weave/weavesql/llmxdb/providers.py +348 -0
- weave/weavesql/llmxdb/scraper_runs.py +287 -0
- weave/weavesql/llmxdb/search.py +721 -0
- weave/weavesql/weavedb/dataset.py +75 -0
- weave/weavesql/weavedb/models.py +135 -0
- weave/weavesql/weavedb/relationships.py +72 -0
- weave/weavesql/weavedb/storage.py +113 -0
- weave/weavesql/weavedb/synthesizer.py +107 -0
- {weave_python-0.28.2.dist-info → weave_python-0.30.4.dist-info}/METADATA +3 -3
- weave_python-0.30.4.dist-info/RECORD +131 -0
- {weave_python-0.28.2.dist-info → weave_python-0.30.4.dist-info}/WHEEL +1 -1
- weave_python-0.28.2.dist-info/RECORD +0 -120
- {weave_python-0.28.2.dist-info → weave_python-0.30.4.dist-info}/licenses/LICENSE +0 -0
|
@@ -3,592 +3,675 @@
|
|
|
3
3
|
isort:skip_file
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
6
|
+
from collections import abc as _abc
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import message as _message
|
|
9
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
10
|
+
from google.protobuf.internal import containers as _containers
|
|
11
|
+
import builtins as _builtins
|
|
12
|
+
import sys
|
|
13
|
+
import typing as _typing
|
|
14
|
+
|
|
15
|
+
if sys.version_info >= (3, 10):
|
|
16
|
+
from typing import TypeAlias as _TypeAlias
|
|
17
|
+
else:
|
|
18
|
+
from typing_extensions import TypeAlias as _TypeAlias
|
|
19
|
+
|
|
20
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
21
|
+
|
|
22
|
+
@_typing.final
|
|
23
|
+
class User(_message.Message):
|
|
18
24
|
"""User model"""
|
|
19
25
|
|
|
20
|
-
DESCRIPTOR:
|
|
21
|
-
|
|
22
|
-
ID_FIELD_NUMBER:
|
|
23
|
-
EMAIL_FIELD_NUMBER:
|
|
24
|
-
USERNAME_FIELD_NUMBER:
|
|
25
|
-
FULL_NAME_FIELD_NUMBER:
|
|
26
|
-
AVATAR_URL_FIELD_NUMBER:
|
|
27
|
-
OAUTH_ACCOUNTS_FIELD_NUMBER:
|
|
28
|
-
PRIMARY_PROVIDER_FIELD_NUMBER:
|
|
29
|
-
SUBSCRIPTION_FIELD_NUMBER:
|
|
30
|
-
ACCOUNT_STATUS_FIELD_NUMBER:
|
|
31
|
-
EMAIL_VERIFIED_FIELD_NUMBER:
|
|
32
|
-
LAST_LOGIN_AT_FIELD_NUMBER:
|
|
33
|
-
CREATED_AT_FIELD_NUMBER:
|
|
34
|
-
UPDATED_AT_FIELD_NUMBER:
|
|
35
|
-
PREFERENCES_FIELD_NUMBER:
|
|
36
|
-
id:
|
|
37
|
-
email:
|
|
38
|
-
username:
|
|
26
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
27
|
+
|
|
28
|
+
ID_FIELD_NUMBER: _builtins.int
|
|
29
|
+
EMAIL_FIELD_NUMBER: _builtins.int
|
|
30
|
+
USERNAME_FIELD_NUMBER: _builtins.int
|
|
31
|
+
FULL_NAME_FIELD_NUMBER: _builtins.int
|
|
32
|
+
AVATAR_URL_FIELD_NUMBER: _builtins.int
|
|
33
|
+
OAUTH_ACCOUNTS_FIELD_NUMBER: _builtins.int
|
|
34
|
+
PRIMARY_PROVIDER_FIELD_NUMBER: _builtins.int
|
|
35
|
+
SUBSCRIPTION_FIELD_NUMBER: _builtins.int
|
|
36
|
+
ACCOUNT_STATUS_FIELD_NUMBER: _builtins.int
|
|
37
|
+
EMAIL_VERIFIED_FIELD_NUMBER: _builtins.int
|
|
38
|
+
LAST_LOGIN_AT_FIELD_NUMBER: _builtins.int
|
|
39
|
+
CREATED_AT_FIELD_NUMBER: _builtins.int
|
|
40
|
+
UPDATED_AT_FIELD_NUMBER: _builtins.int
|
|
41
|
+
PREFERENCES_FIELD_NUMBER: _builtins.int
|
|
42
|
+
id: _builtins.str
|
|
43
|
+
email: _builtins.str
|
|
44
|
+
username: _builtins.str
|
|
39
45
|
"""Primary username (from primary provider)"""
|
|
40
|
-
full_name:
|
|
41
|
-
avatar_url:
|
|
42
|
-
primary_provider:
|
|
46
|
+
full_name: _builtins.str
|
|
47
|
+
avatar_url: _builtins.str
|
|
48
|
+
primary_provider: _builtins.str
|
|
43
49
|
"""github, google, microsoft, etc."""
|
|
44
|
-
account_status:
|
|
50
|
+
account_status: _builtins.str
|
|
45
51
|
"""Account status
|
|
46
52
|
active, suspended, deleted
|
|
47
53
|
"""
|
|
48
|
-
email_verified:
|
|
49
|
-
@property
|
|
54
|
+
email_verified: _builtins.bool
|
|
55
|
+
@_builtins.property
|
|
50
56
|
def oauth_accounts(
|
|
51
57
|
self,
|
|
52
|
-
) ->
|
|
53
|
-
global___OAuthAccount
|
|
54
|
-
]:
|
|
58
|
+
) -> _containers.RepeatedCompositeFieldContainer[Global___OAuthAccount]:
|
|
55
59
|
"""OAuth provider accounts"""
|
|
56
60
|
|
|
57
|
-
@property
|
|
58
|
-
def subscription(self) ->
|
|
61
|
+
@_builtins.property
|
|
62
|
+
def subscription(self) -> Global___SubscriptionInfo:
|
|
59
63
|
"""Subscription info"""
|
|
60
64
|
|
|
61
|
-
@property
|
|
62
|
-
def last_login_at(self) ->
|
|
65
|
+
@_builtins.property
|
|
66
|
+
def last_login_at(self) -> _timestamp_pb2.Timestamp:
|
|
63
67
|
"""Metadata"""
|
|
64
68
|
|
|
65
|
-
@property
|
|
66
|
-
def created_at(self) ->
|
|
67
|
-
@property
|
|
68
|
-
def updated_at(self) ->
|
|
69
|
-
@property
|
|
70
|
-
def preferences(self) ->
|
|
69
|
+
@_builtins.property
|
|
70
|
+
def created_at(self) -> _timestamp_pb2.Timestamp: ...
|
|
71
|
+
@_builtins.property
|
|
72
|
+
def updated_at(self) -> _timestamp_pb2.Timestamp: ...
|
|
73
|
+
@_builtins.property
|
|
74
|
+
def preferences(self) -> Global___UserPreferences:
|
|
71
75
|
"""Preferences"""
|
|
72
76
|
|
|
73
77
|
def __init__(
|
|
74
78
|
self,
|
|
75
79
|
*,
|
|
76
|
-
id:
|
|
77
|
-
email:
|
|
78
|
-
username:
|
|
79
|
-
full_name:
|
|
80
|
-
avatar_url:
|
|
81
|
-
oauth_accounts:
|
|
82
|
-
primary_provider:
|
|
83
|
-
subscription:
|
|
84
|
-
account_status:
|
|
85
|
-
email_verified:
|
|
86
|
-
last_login_at:
|
|
87
|
-
created_at:
|
|
88
|
-
updated_at:
|
|
89
|
-
preferences:
|
|
80
|
+
id: _builtins.str | None = ...,
|
|
81
|
+
email: _builtins.str | None = ...,
|
|
82
|
+
username: _builtins.str | None = ...,
|
|
83
|
+
full_name: _builtins.str | None = ...,
|
|
84
|
+
avatar_url: _builtins.str | None = ...,
|
|
85
|
+
oauth_accounts: _abc.Iterable[Global___OAuthAccount] | None = ...,
|
|
86
|
+
primary_provider: _builtins.str | None = ...,
|
|
87
|
+
subscription: Global___SubscriptionInfo | None = ...,
|
|
88
|
+
account_status: _builtins.str | None = ...,
|
|
89
|
+
email_verified: _builtins.bool | None = ...,
|
|
90
|
+
last_login_at: _timestamp_pb2.Timestamp | None = ...,
|
|
91
|
+
created_at: _timestamp_pb2.Timestamp | None = ...,
|
|
92
|
+
updated_at: _timestamp_pb2.Timestamp | None = ...,
|
|
93
|
+
preferences: Global___UserPreferences | None = ...,
|
|
90
94
|
) -> None: ...
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
95
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
96
|
+
"account_status",
|
|
97
|
+
b"account_status",
|
|
98
|
+
"avatar_url",
|
|
99
|
+
b"avatar_url",
|
|
100
|
+
"created_at",
|
|
101
|
+
b"created_at",
|
|
102
|
+
"email",
|
|
103
|
+
b"email",
|
|
104
|
+
"email_verified",
|
|
105
|
+
b"email_verified",
|
|
106
|
+
"full_name",
|
|
107
|
+
b"full_name",
|
|
108
|
+
"id",
|
|
109
|
+
b"id",
|
|
110
|
+
"last_login_at",
|
|
111
|
+
b"last_login_at",
|
|
112
|
+
"oauth_accounts",
|
|
113
|
+
b"oauth_accounts",
|
|
114
|
+
"preferences",
|
|
115
|
+
b"preferences",
|
|
116
|
+
"primary_provider",
|
|
117
|
+
b"primary_provider",
|
|
118
|
+
"subscription",
|
|
119
|
+
b"subscription",
|
|
120
|
+
"updated_at",
|
|
121
|
+
b"updated_at",
|
|
122
|
+
"username",
|
|
123
|
+
b"username",
|
|
124
|
+
] # noqa: Y015
|
|
125
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
126
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
127
|
+
"account_status",
|
|
128
|
+
b"account_status",
|
|
129
|
+
"avatar_url",
|
|
130
|
+
b"avatar_url",
|
|
131
|
+
"created_at",
|
|
132
|
+
b"created_at",
|
|
133
|
+
"email",
|
|
134
|
+
b"email",
|
|
135
|
+
"email_verified",
|
|
136
|
+
b"email_verified",
|
|
137
|
+
"full_name",
|
|
138
|
+
b"full_name",
|
|
139
|
+
"id",
|
|
140
|
+
b"id",
|
|
141
|
+
"last_login_at",
|
|
142
|
+
b"last_login_at",
|
|
143
|
+
"oauth_accounts",
|
|
144
|
+
b"oauth_accounts",
|
|
145
|
+
"preferences",
|
|
146
|
+
b"preferences",
|
|
147
|
+
"primary_provider",
|
|
148
|
+
b"primary_provider",
|
|
149
|
+
"subscription",
|
|
150
|
+
b"subscription",
|
|
151
|
+
"updated_at",
|
|
152
|
+
b"updated_at",
|
|
153
|
+
"username",
|
|
154
|
+
b"username",
|
|
155
|
+
] # noqa: Y015
|
|
156
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
157
|
+
|
|
158
|
+
Global___User: _TypeAlias = User # noqa: Y015
|
|
159
|
+
|
|
160
|
+
@_typing.final
|
|
161
|
+
class OAuthAccount(_message.Message):
|
|
162
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
163
|
+
|
|
164
|
+
@_typing.final
|
|
165
|
+
class MetadataEntry(_message.Message):
|
|
166
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
167
|
+
|
|
168
|
+
KEY_FIELD_NUMBER: _builtins.int
|
|
169
|
+
VALUE_FIELD_NUMBER: _builtins.int
|
|
170
|
+
key: _builtins.str
|
|
171
|
+
value: _builtins.str
|
|
154
172
|
def __init__(
|
|
155
173
|
self,
|
|
156
174
|
*,
|
|
157
|
-
key:
|
|
158
|
-
value:
|
|
159
|
-
) -> None: ...
|
|
160
|
-
def ClearField(
|
|
161
|
-
self, field_name: typing.Literal["key", b"key", "value", b"value"]
|
|
175
|
+
key: _builtins.str | None = ...,
|
|
176
|
+
value: _builtins.str | None = ...,
|
|
162
177
|
) -> None: ...
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
178
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015
|
|
179
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
180
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
181
|
+
"key", b"key", "value", b"value"
|
|
182
|
+
] # noqa: Y015
|
|
183
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
184
|
+
|
|
185
|
+
PROVIDER_FIELD_NUMBER: _builtins.int
|
|
186
|
+
PROVIDER_USER_ID_FIELD_NUMBER: _builtins.int
|
|
187
|
+
PROVIDER_USERNAME_FIELD_NUMBER: _builtins.int
|
|
188
|
+
PROVIDER_EMAIL_FIELD_NUMBER: _builtins.int
|
|
189
|
+
ACCESS_TOKEN_FIELD_NUMBER: _builtins.int
|
|
190
|
+
REFRESH_TOKEN_FIELD_NUMBER: _builtins.int
|
|
191
|
+
TOKEN_EXPIRES_AT_FIELD_NUMBER: _builtins.int
|
|
192
|
+
LINKED_AT_FIELD_NUMBER: _builtins.int
|
|
193
|
+
LAST_USED_AT_FIELD_NUMBER: _builtins.int
|
|
194
|
+
METADATA_FIELD_NUMBER: _builtins.int
|
|
195
|
+
provider: _builtins.str
|
|
175
196
|
"""github, google, microsoft, gitlab"""
|
|
176
|
-
provider_user_id:
|
|
197
|
+
provider_user_id: _builtins.str
|
|
177
198
|
"""ID from the OAuth provider"""
|
|
178
|
-
provider_username:
|
|
199
|
+
provider_username: _builtins.str
|
|
179
200
|
"""Username from the OAuth provider"""
|
|
180
|
-
provider_email:
|
|
201
|
+
provider_email: _builtins.str
|
|
181
202
|
"""Email from the OAuth provider"""
|
|
182
|
-
access_token:
|
|
203
|
+
access_token: _builtins.str
|
|
183
204
|
"""Encrypted OAuth access token"""
|
|
184
|
-
refresh_token:
|
|
205
|
+
refresh_token: _builtins.str
|
|
185
206
|
"""Encrypted OAuth refresh token"""
|
|
186
|
-
@property
|
|
187
|
-
def token_expires_at(self) ->
|
|
188
|
-
@property
|
|
189
|
-
def linked_at(self) ->
|
|
190
|
-
@property
|
|
191
|
-
def last_used_at(self) ->
|
|
192
|
-
@property
|
|
193
|
-
def metadata(
|
|
194
|
-
self,
|
|
195
|
-
) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
207
|
+
@_builtins.property
|
|
208
|
+
def token_expires_at(self) -> _timestamp_pb2.Timestamp: ...
|
|
209
|
+
@_builtins.property
|
|
210
|
+
def linked_at(self) -> _timestamp_pb2.Timestamp: ...
|
|
211
|
+
@_builtins.property
|
|
212
|
+
def last_used_at(self) -> _timestamp_pb2.Timestamp: ...
|
|
213
|
+
@_builtins.property
|
|
214
|
+
def metadata(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]:
|
|
196
215
|
"""Provider-specific data"""
|
|
197
216
|
|
|
198
217
|
def __init__(
|
|
199
218
|
self,
|
|
200
219
|
*,
|
|
201
|
-
provider:
|
|
202
|
-
provider_user_id:
|
|
203
|
-
provider_username:
|
|
204
|
-
provider_email:
|
|
205
|
-
access_token:
|
|
206
|
-
refresh_token:
|
|
207
|
-
token_expires_at:
|
|
208
|
-
linked_at:
|
|
209
|
-
last_used_at:
|
|
210
|
-
metadata:
|
|
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
|
-
],
|
|
220
|
+
provider: _builtins.str | None = ...,
|
|
221
|
+
provider_user_id: _builtins.str | None = ...,
|
|
222
|
+
provider_username: _builtins.str | None = ...,
|
|
223
|
+
provider_email: _builtins.str | None = ...,
|
|
224
|
+
access_token: _builtins.str | None = ...,
|
|
225
|
+
refresh_token: _builtins.str | None = ...,
|
|
226
|
+
token_expires_at: _timestamp_pb2.Timestamp | None = ...,
|
|
227
|
+
linked_at: _timestamp_pb2.Timestamp | None = ...,
|
|
228
|
+
last_used_at: _timestamp_pb2.Timestamp | None = ...,
|
|
229
|
+
metadata: _abc.Mapping[_builtins.str, _builtins.str] | None = ...,
|
|
247
230
|
) -> None: ...
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
231
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
232
|
+
"access_token",
|
|
233
|
+
b"access_token",
|
|
234
|
+
"last_used_at",
|
|
235
|
+
b"last_used_at",
|
|
236
|
+
"linked_at",
|
|
237
|
+
b"linked_at",
|
|
238
|
+
"metadata",
|
|
239
|
+
b"metadata",
|
|
240
|
+
"provider",
|
|
241
|
+
b"provider",
|
|
242
|
+
"provider_email",
|
|
243
|
+
b"provider_email",
|
|
244
|
+
"provider_user_id",
|
|
245
|
+
b"provider_user_id",
|
|
246
|
+
"provider_username",
|
|
247
|
+
b"provider_username",
|
|
248
|
+
"refresh_token",
|
|
249
|
+
b"refresh_token",
|
|
250
|
+
"token_expires_at",
|
|
251
|
+
b"token_expires_at",
|
|
252
|
+
] # noqa: Y015
|
|
253
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
254
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
255
|
+
"access_token",
|
|
256
|
+
b"access_token",
|
|
257
|
+
"last_used_at",
|
|
258
|
+
b"last_used_at",
|
|
259
|
+
"linked_at",
|
|
260
|
+
b"linked_at",
|
|
261
|
+
"metadata",
|
|
262
|
+
b"metadata",
|
|
263
|
+
"provider",
|
|
264
|
+
b"provider",
|
|
265
|
+
"provider_email",
|
|
266
|
+
b"provider_email",
|
|
267
|
+
"provider_user_id",
|
|
268
|
+
b"provider_user_id",
|
|
269
|
+
"provider_username",
|
|
270
|
+
b"provider_username",
|
|
271
|
+
"refresh_token",
|
|
272
|
+
b"refresh_token",
|
|
273
|
+
"token_expires_at",
|
|
274
|
+
b"token_expires_at",
|
|
275
|
+
] # noqa: Y015
|
|
276
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
277
|
+
|
|
278
|
+
Global___OAuthAccount: _TypeAlias = OAuthAccount # noqa: Y015
|
|
279
|
+
|
|
280
|
+
@_typing.final
|
|
281
|
+
class OAuthProvider(_message.Message):
|
|
282
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
283
|
+
|
|
284
|
+
NAME_FIELD_NUMBER: _builtins.int
|
|
285
|
+
DISPLAY_NAME_FIELD_NUMBER: _builtins.int
|
|
286
|
+
ICON_URL_FIELD_NUMBER: _builtins.int
|
|
287
|
+
ENABLED_FIELD_NUMBER: _builtins.int
|
|
288
|
+
SUPPORTED_SCOPES_FIELD_NUMBER: _builtins.int
|
|
289
|
+
DEFAULT_SCOPE_FIELD_NUMBER: _builtins.int
|
|
290
|
+
SUPPORTS_REFRESH_FIELD_NUMBER: _builtins.int
|
|
291
|
+
SUPPORTS_PKCE_FIELD_NUMBER: _builtins.int
|
|
292
|
+
name: _builtins.str
|
|
264
293
|
"""github, google, microsoft, gitlab"""
|
|
265
|
-
display_name:
|
|
294
|
+
display_name: _builtins.str
|
|
266
295
|
"""GitHub, Google, Microsoft, GitLab"""
|
|
267
|
-
icon_url:
|
|
268
|
-
enabled:
|
|
269
|
-
default_scope:
|
|
270
|
-
supports_refresh:
|
|
271
|
-
supports_pkce:
|
|
296
|
+
icon_url: _builtins.str
|
|
297
|
+
enabled: _builtins.bool
|
|
298
|
+
default_scope: _builtins.str
|
|
299
|
+
supports_refresh: _builtins.bool
|
|
300
|
+
supports_pkce: _builtins.bool
|
|
272
301
|
"""Proof Key for Code Exchange"""
|
|
273
|
-
@property
|
|
302
|
+
@_builtins.property
|
|
274
303
|
def supported_scopes(
|
|
275
304
|
self,
|
|
276
|
-
) ->
|
|
277
|
-
builtins.str
|
|
278
|
-
]: ...
|
|
305
|
+
) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ...
|
|
279
306
|
def __init__(
|
|
280
307
|
self,
|
|
281
308
|
*,
|
|
282
|
-
name:
|
|
283
|
-
display_name:
|
|
284
|
-
icon_url:
|
|
285
|
-
enabled:
|
|
286
|
-
supported_scopes:
|
|
287
|
-
default_scope:
|
|
288
|
-
supports_refresh:
|
|
289
|
-
supports_pkce:
|
|
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
|
-
],
|
|
309
|
+
name: _builtins.str | None = ...,
|
|
310
|
+
display_name: _builtins.str | None = ...,
|
|
311
|
+
icon_url: _builtins.str | None = ...,
|
|
312
|
+
enabled: _builtins.bool | None = ...,
|
|
313
|
+
supported_scopes: _abc.Iterable[_builtins.str] | None = ...,
|
|
314
|
+
default_scope: _builtins.str | None = ...,
|
|
315
|
+
supports_refresh: _builtins.bool | None = ...,
|
|
316
|
+
supports_pkce: _builtins.bool | None = ...,
|
|
311
317
|
) -> None: ...
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
318
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
319
|
+
"default_scope",
|
|
320
|
+
b"default_scope",
|
|
321
|
+
"display_name",
|
|
322
|
+
b"display_name",
|
|
323
|
+
"enabled",
|
|
324
|
+
b"enabled",
|
|
325
|
+
"icon_url",
|
|
326
|
+
b"icon_url",
|
|
327
|
+
"name",
|
|
328
|
+
b"name",
|
|
329
|
+
"supported_scopes",
|
|
330
|
+
b"supported_scopes",
|
|
331
|
+
"supports_pkce",
|
|
332
|
+
b"supports_pkce",
|
|
333
|
+
"supports_refresh",
|
|
334
|
+
b"supports_refresh",
|
|
335
|
+
] # noqa: Y015
|
|
336
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
337
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
338
|
+
"default_scope",
|
|
339
|
+
b"default_scope",
|
|
340
|
+
"display_name",
|
|
341
|
+
b"display_name",
|
|
342
|
+
"enabled",
|
|
343
|
+
b"enabled",
|
|
344
|
+
"icon_url",
|
|
345
|
+
b"icon_url",
|
|
346
|
+
"name",
|
|
347
|
+
b"name",
|
|
348
|
+
"supported_scopes",
|
|
349
|
+
b"supported_scopes",
|
|
350
|
+
"supports_pkce",
|
|
351
|
+
b"supports_pkce",
|
|
352
|
+
"supports_refresh",
|
|
353
|
+
b"supports_refresh",
|
|
354
|
+
] # noqa: Y015
|
|
355
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
356
|
+
|
|
357
|
+
Global___OAuthProvider: _TypeAlias = OAuthProvider # noqa: Y015
|
|
358
|
+
|
|
359
|
+
@_typing.final
|
|
360
|
+
class SubscriptionInfo(_message.Message):
|
|
361
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
362
|
+
|
|
363
|
+
STATUS_FIELD_NUMBER: _builtins.int
|
|
364
|
+
TIER_FIELD_NUMBER: _builtins.int
|
|
365
|
+
STRIPE_CUSTOMER_ID_FIELD_NUMBER: _builtins.int
|
|
366
|
+
STRIPE_SUBSCRIPTION_ID_FIELD_NUMBER: _builtins.int
|
|
367
|
+
STARTED_AT_FIELD_NUMBER: _builtins.int
|
|
368
|
+
ENDS_AT_FIELD_NUMBER: _builtins.int
|
|
369
|
+
CANCELLED_AT_FIELD_NUMBER: _builtins.int
|
|
370
|
+
AUTO_RENEW_FIELD_NUMBER: _builtins.int
|
|
371
|
+
PAYMENT_METHOD_LAST4_FIELD_NUMBER: _builtins.int
|
|
372
|
+
PAYMENT_METHOD_BRAND_FIELD_NUMBER: _builtins.int
|
|
373
|
+
status: _builtins.str
|
|
330
374
|
"""free, active, cancelled, past_due"""
|
|
331
|
-
tier:
|
|
375
|
+
tier: _builtins.str
|
|
332
376
|
"""free, pro"""
|
|
333
|
-
stripe_customer_id:
|
|
334
|
-
stripe_subscription_id:
|
|
335
|
-
auto_renew:
|
|
336
|
-
payment_method_last4:
|
|
337
|
-
payment_method_brand:
|
|
338
|
-
@property
|
|
339
|
-
def started_at(self) ->
|
|
340
|
-
@property
|
|
341
|
-
def ends_at(self) ->
|
|
342
|
-
@property
|
|
343
|
-
def cancelled_at(self) ->
|
|
377
|
+
stripe_customer_id: _builtins.str
|
|
378
|
+
stripe_subscription_id: _builtins.str
|
|
379
|
+
auto_renew: _builtins.bool
|
|
380
|
+
payment_method_last4: _builtins.str
|
|
381
|
+
payment_method_brand: _builtins.str
|
|
382
|
+
@_builtins.property
|
|
383
|
+
def started_at(self) -> _timestamp_pb2.Timestamp: ...
|
|
384
|
+
@_builtins.property
|
|
385
|
+
def ends_at(self) -> _timestamp_pb2.Timestamp: ...
|
|
386
|
+
@_builtins.property
|
|
387
|
+
def cancelled_at(self) -> _timestamp_pb2.Timestamp: ...
|
|
344
388
|
def __init__(
|
|
345
389
|
self,
|
|
346
390
|
*,
|
|
347
|
-
status:
|
|
348
|
-
tier:
|
|
349
|
-
stripe_customer_id:
|
|
350
|
-
stripe_subscription_id:
|
|
351
|
-
started_at:
|
|
352
|
-
ends_at:
|
|
353
|
-
cancelled_at:
|
|
354
|
-
auto_renew:
|
|
355
|
-
payment_method_last4:
|
|
356
|
-
payment_method_brand:
|
|
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
|
-
],
|
|
391
|
+
status: _builtins.str | None = ...,
|
|
392
|
+
tier: _builtins.str | None = ...,
|
|
393
|
+
stripe_customer_id: _builtins.str | None = ...,
|
|
394
|
+
stripe_subscription_id: _builtins.str | None = ...,
|
|
395
|
+
started_at: _timestamp_pb2.Timestamp | None = ...,
|
|
396
|
+
ends_at: _timestamp_pb2.Timestamp | None = ...,
|
|
397
|
+
cancelled_at: _timestamp_pb2.Timestamp | None = ...,
|
|
398
|
+
auto_renew: _builtins.bool | None = ...,
|
|
399
|
+
payment_method_last4: _builtins.str | None = ...,
|
|
400
|
+
payment_method_brand: _builtins.str | None = ...,
|
|
393
401
|
) -> None: ...
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
def
|
|
417
|
-
|
|
418
|
-
|
|
402
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
403
|
+
"auto_renew",
|
|
404
|
+
b"auto_renew",
|
|
405
|
+
"cancelled_at",
|
|
406
|
+
b"cancelled_at",
|
|
407
|
+
"ends_at",
|
|
408
|
+
b"ends_at",
|
|
409
|
+
"payment_method_brand",
|
|
410
|
+
b"payment_method_brand",
|
|
411
|
+
"payment_method_last4",
|
|
412
|
+
b"payment_method_last4",
|
|
413
|
+
"started_at",
|
|
414
|
+
b"started_at",
|
|
415
|
+
"status",
|
|
416
|
+
b"status",
|
|
417
|
+
"stripe_customer_id",
|
|
418
|
+
b"stripe_customer_id",
|
|
419
|
+
"stripe_subscription_id",
|
|
420
|
+
b"stripe_subscription_id",
|
|
421
|
+
"tier",
|
|
422
|
+
b"tier",
|
|
423
|
+
] # noqa: Y015
|
|
424
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
425
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
426
|
+
"auto_renew",
|
|
427
|
+
b"auto_renew",
|
|
428
|
+
"cancelled_at",
|
|
429
|
+
b"cancelled_at",
|
|
430
|
+
"ends_at",
|
|
431
|
+
b"ends_at",
|
|
432
|
+
"payment_method_brand",
|
|
433
|
+
b"payment_method_brand",
|
|
434
|
+
"payment_method_last4",
|
|
435
|
+
b"payment_method_last4",
|
|
436
|
+
"started_at",
|
|
437
|
+
b"started_at",
|
|
438
|
+
"status",
|
|
439
|
+
b"status",
|
|
440
|
+
"stripe_customer_id",
|
|
441
|
+
b"stripe_customer_id",
|
|
442
|
+
"stripe_subscription_id",
|
|
443
|
+
b"stripe_subscription_id",
|
|
444
|
+
"tier",
|
|
445
|
+
b"tier",
|
|
446
|
+
] # noqa: Y015
|
|
447
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
448
|
+
|
|
449
|
+
Global___SubscriptionInfo: _TypeAlias = SubscriptionInfo # noqa: Y015
|
|
450
|
+
|
|
451
|
+
@_typing.final
|
|
452
|
+
class UserPreferences(_message.Message):
|
|
453
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
454
|
+
|
|
455
|
+
EMAIL_NOTIFICATIONS_FIELD_NUMBER: _builtins.int
|
|
456
|
+
WEBHOOK_NOTIFICATIONS_FIELD_NUMBER: _builtins.int
|
|
457
|
+
WEBHOOK_URL_FIELD_NUMBER: _builtins.int
|
|
458
|
+
WEBHOOK_SECRET_FIELD_NUMBER: _builtins.int
|
|
459
|
+
WATCHED_MODELS_FIELD_NUMBER: _builtins.int
|
|
460
|
+
WATCHED_PROVIDERS_FIELD_NUMBER: _builtins.int
|
|
461
|
+
TIMEZONE_FIELD_NUMBER: _builtins.int
|
|
462
|
+
DATE_FORMAT_FIELD_NUMBER: _builtins.int
|
|
463
|
+
email_notifications: _builtins.bool
|
|
464
|
+
webhook_notifications: _builtins.bool
|
|
465
|
+
webhook_url: _builtins.str
|
|
466
|
+
webhook_secret: _builtins.str
|
|
467
|
+
timezone: _builtins.str
|
|
468
|
+
date_format: _builtins.str
|
|
469
|
+
@_builtins.property
|
|
470
|
+
def watched_models(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]:
|
|
419
471
|
"""Model slugs to watch for updates"""
|
|
420
472
|
|
|
421
|
-
@property
|
|
473
|
+
@_builtins.property
|
|
422
474
|
def watched_providers(
|
|
423
475
|
self,
|
|
424
|
-
) ->
|
|
476
|
+
) -> _containers.RepeatedScalarFieldContainer[_builtins.str]:
|
|
425
477
|
"""Provider slugs to watch"""
|
|
426
478
|
|
|
427
479
|
def __init__(
|
|
428
480
|
self,
|
|
429
481
|
*,
|
|
430
|
-
email_notifications:
|
|
431
|
-
webhook_notifications:
|
|
432
|
-
webhook_url:
|
|
433
|
-
webhook_secret:
|
|
434
|
-
watched_models:
|
|
435
|
-
watched_providers:
|
|
436
|
-
timezone:
|
|
437
|
-
date_format:
|
|
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
|
-
],
|
|
482
|
+
email_notifications: _builtins.bool | None = ...,
|
|
483
|
+
webhook_notifications: _builtins.bool | None = ...,
|
|
484
|
+
webhook_url: _builtins.str | None = ...,
|
|
485
|
+
webhook_secret: _builtins.str | None = ...,
|
|
486
|
+
watched_models: _abc.Iterable[_builtins.str] | None = ...,
|
|
487
|
+
watched_providers: _abc.Iterable[_builtins.str] | None = ...,
|
|
488
|
+
timezone: _builtins.str | None = ...,
|
|
489
|
+
date_format: _builtins.str | None = ...,
|
|
459
490
|
) -> None: ...
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
491
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
492
|
+
"date_format",
|
|
493
|
+
b"date_format",
|
|
494
|
+
"email_notifications",
|
|
495
|
+
b"email_notifications",
|
|
496
|
+
"timezone",
|
|
497
|
+
b"timezone",
|
|
498
|
+
"watched_models",
|
|
499
|
+
b"watched_models",
|
|
500
|
+
"watched_providers",
|
|
501
|
+
b"watched_providers",
|
|
502
|
+
"webhook_notifications",
|
|
503
|
+
b"webhook_notifications",
|
|
504
|
+
"webhook_secret",
|
|
505
|
+
b"webhook_secret",
|
|
506
|
+
"webhook_url",
|
|
507
|
+
b"webhook_url",
|
|
508
|
+
] # noqa: Y015
|
|
509
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
510
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
511
|
+
"date_format",
|
|
512
|
+
b"date_format",
|
|
513
|
+
"email_notifications",
|
|
514
|
+
b"email_notifications",
|
|
515
|
+
"timezone",
|
|
516
|
+
b"timezone",
|
|
517
|
+
"watched_models",
|
|
518
|
+
b"watched_models",
|
|
519
|
+
"watched_providers",
|
|
520
|
+
b"watched_providers",
|
|
521
|
+
"webhook_notifications",
|
|
522
|
+
b"webhook_notifications",
|
|
523
|
+
"webhook_secret",
|
|
524
|
+
b"webhook_secret",
|
|
525
|
+
"webhook_url",
|
|
526
|
+
b"webhook_url",
|
|
527
|
+
] # noqa: Y015
|
|
528
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
529
|
+
|
|
530
|
+
Global___UserPreferences: _TypeAlias = UserPreferences # noqa: Y015
|
|
531
|
+
|
|
532
|
+
@_typing.final
|
|
533
|
+
class APIKey(_message.Message):
|
|
465
534
|
"""API Key model"""
|
|
466
535
|
|
|
467
|
-
DESCRIPTOR:
|
|
468
|
-
|
|
469
|
-
ID_FIELD_NUMBER:
|
|
470
|
-
USER_ID_FIELD_NUMBER:
|
|
471
|
-
KEY_PREFIX_FIELD_NUMBER:
|
|
472
|
-
NAME_FIELD_NUMBER:
|
|
473
|
-
DESCRIPTION_FIELD_NUMBER:
|
|
474
|
-
SCOPES_FIELD_NUMBER:
|
|
475
|
-
ALLOWED_ENDPOINTS_FIELD_NUMBER:
|
|
476
|
-
ALLOWED_IPS_FIELD_NUMBER:
|
|
477
|
-
LAST_USED_AT_FIELD_NUMBER:
|
|
478
|
-
REQUEST_COUNT_FIELD_NUMBER:
|
|
479
|
-
TOTAL_TOKENS_FIELD_NUMBER:
|
|
480
|
-
IS_ACTIVE_FIELD_NUMBER:
|
|
481
|
-
EXPIRES_AT_FIELD_NUMBER:
|
|
482
|
-
CREATED_AT_FIELD_NUMBER:
|
|
483
|
-
UPDATED_AT_FIELD_NUMBER:
|
|
484
|
-
id:
|
|
485
|
-
user_id:
|
|
486
|
-
key_prefix:
|
|
536
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
537
|
+
|
|
538
|
+
ID_FIELD_NUMBER: _builtins.int
|
|
539
|
+
USER_ID_FIELD_NUMBER: _builtins.int
|
|
540
|
+
KEY_PREFIX_FIELD_NUMBER: _builtins.int
|
|
541
|
+
NAME_FIELD_NUMBER: _builtins.int
|
|
542
|
+
DESCRIPTION_FIELD_NUMBER: _builtins.int
|
|
543
|
+
SCOPES_FIELD_NUMBER: _builtins.int
|
|
544
|
+
ALLOWED_ENDPOINTS_FIELD_NUMBER: _builtins.int
|
|
545
|
+
ALLOWED_IPS_FIELD_NUMBER: _builtins.int
|
|
546
|
+
LAST_USED_AT_FIELD_NUMBER: _builtins.int
|
|
547
|
+
REQUEST_COUNT_FIELD_NUMBER: _builtins.int
|
|
548
|
+
TOTAL_TOKENS_FIELD_NUMBER: _builtins.int
|
|
549
|
+
IS_ACTIVE_FIELD_NUMBER: _builtins.int
|
|
550
|
+
EXPIRES_AT_FIELD_NUMBER: _builtins.int
|
|
551
|
+
CREATED_AT_FIELD_NUMBER: _builtins.int
|
|
552
|
+
UPDATED_AT_FIELD_NUMBER: _builtins.int
|
|
553
|
+
id: _builtins.str
|
|
554
|
+
user_id: _builtins.str
|
|
555
|
+
key_prefix: _builtins.str
|
|
487
556
|
"""First 10 chars for identification"""
|
|
488
|
-
name:
|
|
489
|
-
description:
|
|
490
|
-
request_count:
|
|
491
|
-
total_tokens:
|
|
492
|
-
is_active:
|
|
557
|
+
name: _builtins.str
|
|
558
|
+
description: _builtins.str
|
|
559
|
+
request_count: _builtins.int
|
|
560
|
+
total_tokens: _builtins.int
|
|
561
|
+
is_active: _builtins.bool
|
|
493
562
|
"""Status"""
|
|
494
|
-
@property
|
|
495
|
-
def scopes(
|
|
496
|
-
self,
|
|
497
|
-
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
563
|
+
@_builtins.property
|
|
564
|
+
def scopes(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]:
|
|
498
565
|
"""Permissions
|
|
499
566
|
read, write, admin
|
|
500
567
|
"""
|
|
501
568
|
|
|
502
|
-
@property
|
|
569
|
+
@_builtins.property
|
|
503
570
|
def allowed_endpoints(
|
|
504
571
|
self,
|
|
505
|
-
) ->
|
|
572
|
+
) -> _containers.RepeatedScalarFieldContainer[_builtins.str]:
|
|
506
573
|
"""Specific endpoints if restricted"""
|
|
507
574
|
|
|
508
|
-
@property
|
|
509
|
-
def allowed_ips(
|
|
510
|
-
self,
|
|
511
|
-
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
575
|
+
@_builtins.property
|
|
576
|
+
def allowed_ips(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]:
|
|
512
577
|
"""IP whitelist"""
|
|
513
578
|
|
|
514
|
-
@property
|
|
515
|
-
def last_used_at(self) ->
|
|
579
|
+
@_builtins.property
|
|
580
|
+
def last_used_at(self) -> _timestamp_pb2.Timestamp:
|
|
516
581
|
"""Usage"""
|
|
517
582
|
|
|
518
|
-
@property
|
|
519
|
-
def expires_at(self) ->
|
|
520
|
-
@property
|
|
521
|
-
def created_at(self) ->
|
|
583
|
+
@_builtins.property
|
|
584
|
+
def expires_at(self) -> _timestamp_pb2.Timestamp: ...
|
|
585
|
+
@_builtins.property
|
|
586
|
+
def created_at(self) -> _timestamp_pb2.Timestamp:
|
|
522
587
|
"""Metadata"""
|
|
523
588
|
|
|
524
|
-
@property
|
|
525
|
-
def updated_at(self) ->
|
|
589
|
+
@_builtins.property
|
|
590
|
+
def updated_at(self) -> _timestamp_pb2.Timestamp: ...
|
|
526
591
|
def __init__(
|
|
527
592
|
self,
|
|
528
593
|
*,
|
|
529
|
-
id:
|
|
530
|
-
user_id:
|
|
531
|
-
key_prefix:
|
|
532
|
-
name:
|
|
533
|
-
description:
|
|
534
|
-
scopes:
|
|
535
|
-
allowed_endpoints:
|
|
536
|
-
allowed_ips:
|
|
537
|
-
last_used_at:
|
|
538
|
-
request_count:
|
|
539
|
-
total_tokens:
|
|
540
|
-
is_active:
|
|
541
|
-
expires_at:
|
|
542
|
-
created_at:
|
|
543
|
-
updated_at:
|
|
594
|
+
id: _builtins.str | None = ...,
|
|
595
|
+
user_id: _builtins.str | None = ...,
|
|
596
|
+
key_prefix: _builtins.str | None = ...,
|
|
597
|
+
name: _builtins.str | None = ...,
|
|
598
|
+
description: _builtins.str | None = ...,
|
|
599
|
+
scopes: _abc.Iterable[_builtins.str] | None = ...,
|
|
600
|
+
allowed_endpoints: _abc.Iterable[_builtins.str] | None = ...,
|
|
601
|
+
allowed_ips: _abc.Iterable[_builtins.str] | None = ...,
|
|
602
|
+
last_used_at: _timestamp_pb2.Timestamp | None = ...,
|
|
603
|
+
request_count: _builtins.int | None = ...,
|
|
604
|
+
total_tokens: _builtins.int | None = ...,
|
|
605
|
+
is_active: _builtins.bool | None = ...,
|
|
606
|
+
expires_at: _timestamp_pb2.Timestamp | None = ...,
|
|
607
|
+
created_at: _timestamp_pb2.Timestamp | None = ...,
|
|
608
|
+
updated_at: _timestamp_pb2.Timestamp | None = ...,
|
|
544
609
|
) -> None: ...
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
610
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
611
|
+
"allowed_endpoints",
|
|
612
|
+
b"allowed_endpoints",
|
|
613
|
+
"allowed_ips",
|
|
614
|
+
b"allowed_ips",
|
|
615
|
+
"created_at",
|
|
616
|
+
b"created_at",
|
|
617
|
+
"description",
|
|
618
|
+
b"description",
|
|
619
|
+
"expires_at",
|
|
620
|
+
b"expires_at",
|
|
621
|
+
"id",
|
|
622
|
+
b"id",
|
|
623
|
+
"is_active",
|
|
624
|
+
b"is_active",
|
|
625
|
+
"key_prefix",
|
|
626
|
+
b"key_prefix",
|
|
627
|
+
"last_used_at",
|
|
628
|
+
b"last_used_at",
|
|
629
|
+
"name",
|
|
630
|
+
b"name",
|
|
631
|
+
"request_count",
|
|
632
|
+
b"request_count",
|
|
633
|
+
"scopes",
|
|
634
|
+
b"scopes",
|
|
635
|
+
"total_tokens",
|
|
636
|
+
b"total_tokens",
|
|
637
|
+
"updated_at",
|
|
638
|
+
b"updated_at",
|
|
639
|
+
"user_id",
|
|
640
|
+
b"user_id",
|
|
641
|
+
] # noqa: Y015
|
|
642
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
643
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
644
|
+
"allowed_endpoints",
|
|
645
|
+
b"allowed_endpoints",
|
|
646
|
+
"allowed_ips",
|
|
647
|
+
b"allowed_ips",
|
|
648
|
+
"created_at",
|
|
649
|
+
b"created_at",
|
|
650
|
+
"description",
|
|
651
|
+
b"description",
|
|
652
|
+
"expires_at",
|
|
653
|
+
b"expires_at",
|
|
654
|
+
"id",
|
|
655
|
+
b"id",
|
|
656
|
+
"is_active",
|
|
657
|
+
b"is_active",
|
|
658
|
+
"key_prefix",
|
|
659
|
+
b"key_prefix",
|
|
660
|
+
"last_used_at",
|
|
661
|
+
b"last_used_at",
|
|
662
|
+
"name",
|
|
663
|
+
b"name",
|
|
664
|
+
"request_count",
|
|
665
|
+
b"request_count",
|
|
666
|
+
"scopes",
|
|
667
|
+
b"scopes",
|
|
668
|
+
"total_tokens",
|
|
669
|
+
b"total_tokens",
|
|
670
|
+
"updated_at",
|
|
671
|
+
b"updated_at",
|
|
672
|
+
"user_id",
|
|
673
|
+
b"user_id",
|
|
674
|
+
] # noqa: Y015
|
|
675
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
676
|
+
|
|
677
|
+
Global___APIKey: _TypeAlias = APIKey # noqa: Y015
|