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,592 +3,675 @@
3
3
  isort:skip_file
4
4
  """
5
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):
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: 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
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: builtins.str
41
- avatar_url: builtins.str
42
- primary_provider: builtins.str
46
+ full_name: _builtins.str
47
+ avatar_url: _builtins.str
48
+ primary_provider: _builtins.str
43
49
  """github, google, microsoft, etc."""
44
- account_status: builtins.str
50
+ account_status: _builtins.str
45
51
  """Account status
46
52
  active, suspended, deleted
47
53
  """
48
- email_verified: builtins.bool
49
- @property
54
+ email_verified: _builtins.bool
55
+ @_builtins.property
50
56
  def oauth_accounts(
51
57
  self,
52
- ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
53
- global___OAuthAccount
54
- ]:
58
+ ) -> _containers.RepeatedCompositeFieldContainer[Global___OAuthAccount]:
55
59
  """OAuth provider accounts"""
56
60
 
57
- @property
58
- def subscription(self) -> global___SubscriptionInfo:
61
+ @_builtins.property
62
+ def subscription(self) -> Global___SubscriptionInfo:
59
63
  """Subscription info"""
60
64
 
61
- @property
62
- def last_login_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
65
+ @_builtins.property
66
+ def last_login_at(self) -> _timestamp_pb2.Timestamp:
63
67
  """Metadata"""
64
68
 
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:
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: 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 = ...,
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
- 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
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: builtins.str = ...,
158
- value: builtins.str = ...,
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
- 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
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: builtins.str
197
+ provider_user_id: _builtins.str
177
198
  """ID from the OAuth provider"""
178
- provider_username: builtins.str
199
+ provider_username: _builtins.str
179
200
  """Username from the OAuth provider"""
180
- provider_email: builtins.str
201
+ provider_email: _builtins.str
181
202
  """Email from the OAuth provider"""
182
- access_token: builtins.str
203
+ access_token: _builtins.str
183
204
  """Encrypted OAuth access token"""
184
- refresh_token: builtins.str
205
+ refresh_token: _builtins.str
185
206
  """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]:
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: 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
- ],
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
- 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
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: builtins.str
294
+ display_name: _builtins.str
266
295
  """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
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
- ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[
277
- builtins.str
278
- ]: ...
305
+ ) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ...
279
306
  def __init__(
280
307
  self,
281
308
  *,
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
- ],
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
- 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
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: builtins.str
375
+ tier: _builtins.str
332
376
  """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: ...
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: 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
- ],
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
- 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]:
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
- ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
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: 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
- ],
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
- global___UserPreferences = UserPreferences
462
-
463
- @typing.final
464
- class APIKey(google.protobuf.message.Message):
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: 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
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: builtins.str
489
- description: builtins.str
490
- request_count: builtins.int
491
- total_tokens: builtins.int
492
- is_active: builtins.bool
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
- ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
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) -> google.protobuf.timestamp_pb2.Timestamp:
579
+ @_builtins.property
580
+ def last_used_at(self) -> _timestamp_pb2.Timestamp:
516
581
  """Usage"""
517
582
 
518
- @property
519
- def expires_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
520
- @property
521
- def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
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) -> google.protobuf.timestamp_pb2.Timestamp: ...
589
+ @_builtins.property
590
+ def updated_at(self) -> _timestamp_pb2.Timestamp: ...
526
591
  def __init__(
527
592
  self,
528
593
  *,
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 = ...,
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
- 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
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