weave-python 0.28.1__py3-none-any.whl → 0.30.3__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 (105) hide show
  1. weave/weaveapi/auth/v1/service_pb2.py +194 -98
  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 +14 -6
  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 +18 -14
  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 +60 -18
  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 +31 -19
  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 +32 -6
  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 +52 -22
  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 +42 -42
  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 +88 -56
  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 +56 -20
  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 +24 -20
  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 +6 -6
  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 +228 -90
  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 +16 -10
  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 +51 -31
  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 +38 -12
  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 +264 -98
  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 +99 -23
  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 +6 -6
  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 +47 -23
  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 +27 -13
  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 +96 -36
  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 +39 -23
  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 +20 -6
  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 +14 -12
  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 +9 -9
  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 +19 -11
  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 +42 -24
  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 +19 -13
  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.30.3.dist-info/METADATA +52 -0
  101. weave_python-0.30.3.dist-info/RECORD +131 -0
  102. {weave_python-0.28.1.dist-info → weave_python-0.30.3.dist-info}/WHEEL +1 -1
  103. weave_python-0.30.3.dist-info/licenses/LICENSE +120 -0
  104. weave_python-0.28.1.dist-info/METADATA +0 -6
  105. weave_python-0.28.1.dist-info/RECORD +0 -119
@@ -3,693 +3,809 @@
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 SubscriptionStatus(google.protobuf.message.Message):
18
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
19
-
20
- ID_FIELD_NUMBER: builtins.int
21
- STATUS_FIELD_NUMBER: builtins.int
22
- TIER_FIELD_NUMBER: builtins.int
23
- PLAN_FIELD_NUMBER: builtins.int
24
- CURRENT_PERIOD_START_FIELD_NUMBER: builtins.int
25
- CURRENT_PERIOD_END_FIELD_NUMBER: builtins.int
26
- CANCEL_AT_FIELD_NUMBER: builtins.int
27
- CANCELED_AT_FIELD_NUMBER: builtins.int
28
- CANCEL_AT_PERIOD_END_FIELD_NUMBER: builtins.int
29
- DEFAULT_PAYMENT_METHOD_FIELD_NUMBER: builtins.int
30
- CURRENCY_FIELD_NUMBER: builtins.int
31
- AMOUNT_CENTS_FIELD_NUMBER: builtins.int
32
- IS_TRIAL_FIELD_NUMBER: builtins.int
33
- TRIAL_START_FIELD_NUMBER: builtins.int
34
- TRIAL_END_FIELD_NUMBER: builtins.int
35
- ACTIVE_DISCOUNT_FIELD_NUMBER: builtins.int
36
- CREATED_AT_FIELD_NUMBER: builtins.int
37
- UPDATED_AT_FIELD_NUMBER: builtins.int
38
- FEATURES_FIELD_NUMBER: builtins.int
39
- id: builtins.str
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 SubscriptionStatus(_message.Message):
24
+ DESCRIPTOR: _descriptor.Descriptor
25
+
26
+ ID_FIELD_NUMBER: _builtins.int
27
+ STATUS_FIELD_NUMBER: _builtins.int
28
+ TIER_FIELD_NUMBER: _builtins.int
29
+ PLAN_FIELD_NUMBER: _builtins.int
30
+ CURRENT_PERIOD_START_FIELD_NUMBER: _builtins.int
31
+ CURRENT_PERIOD_END_FIELD_NUMBER: _builtins.int
32
+ CANCEL_AT_FIELD_NUMBER: _builtins.int
33
+ CANCELED_AT_FIELD_NUMBER: _builtins.int
34
+ CANCEL_AT_PERIOD_END_FIELD_NUMBER: _builtins.int
35
+ DEFAULT_PAYMENT_METHOD_FIELD_NUMBER: _builtins.int
36
+ CURRENCY_FIELD_NUMBER: _builtins.int
37
+ AMOUNT_CENTS_FIELD_NUMBER: _builtins.int
38
+ IS_TRIAL_FIELD_NUMBER: _builtins.int
39
+ TRIAL_START_FIELD_NUMBER: _builtins.int
40
+ TRIAL_END_FIELD_NUMBER: _builtins.int
41
+ ACTIVE_DISCOUNT_FIELD_NUMBER: _builtins.int
42
+ CREATED_AT_FIELD_NUMBER: _builtins.int
43
+ UPDATED_AT_FIELD_NUMBER: _builtins.int
44
+ FEATURES_FIELD_NUMBER: _builtins.int
45
+ id: _builtins.str
40
46
  """Stripe subscription ID"""
41
- status: builtins.str
47
+ status: _builtins.str
42
48
  """active, past_due, canceled, trialing, incomplete"""
43
- tier: builtins.str
49
+ tier: _builtins.str
44
50
  """free, pro"""
45
- cancel_at_period_end: builtins.bool
46
- currency: builtins.str
47
- amount_cents: builtins.int
51
+ cancel_at_period_end: _builtins.bool
52
+ currency: _builtins.str
53
+ amount_cents: _builtins.int
48
54
  """Amount in cents"""
49
- is_trial: builtins.bool
55
+ is_trial: _builtins.bool
50
56
  """Trial"""
51
- @property
52
- def plan(self) -> global___PricingPlan:
57
+ @_builtins.property
58
+ def plan(self) -> Global___PricingPlan:
53
59
  """Billing details"""
54
60
 
55
- @property
56
- def current_period_start(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
57
- @property
58
- def current_period_end(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
59
- @property
60
- def cancel_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
61
- """Set if cancellation scheduled"""
62
-
63
- @property
64
- def canceled_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
65
- """When it was canceled"""
66
-
67
- @property
68
- def default_payment_method(self) -> global___PaymentMethod:
61
+ @_builtins.property
62
+ def current_period_start(self) -> _timestamp_pb2.Timestamp: ...
63
+ @_builtins.property
64
+ def current_period_end(self) -> _timestamp_pb2.Timestamp: ...
65
+ @_builtins.property
66
+ def cancel_at(self) -> _timestamp_pb2.Timestamp: ...
67
+ @_builtins.property
68
+ def canceled_at(self) -> _timestamp_pb2.Timestamp: ...
69
+ @_builtins.property
70
+ def default_payment_method(self) -> Global___PaymentMethod:
69
71
  """Payment"""
70
72
 
71
- @property
72
- def trial_start(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
73
- @property
74
- def trial_end(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
75
- @property
76
- def active_discount(self) -> global___Discount:
73
+ @_builtins.property
74
+ def trial_start(self) -> _timestamp_pb2.Timestamp: ...
75
+ @_builtins.property
76
+ def trial_end(self) -> _timestamp_pb2.Timestamp: ...
77
+ @_builtins.property
78
+ def active_discount(self) -> Global___Discount:
77
79
  """Discount"""
78
80
 
79
- @property
80
- def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
81
+ @_builtins.property
82
+ def created_at(self) -> _timestamp_pb2.Timestamp:
81
83
  """Metadata"""
82
84
 
83
- @property
84
- def updated_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
85
- @property
86
- def features(self) -> global___SubscriptionFeatures:
85
+ @_builtins.property
86
+ def updated_at(self) -> _timestamp_pb2.Timestamp: ...
87
+ @_builtins.property
88
+ def features(self) -> Global___SubscriptionFeatures:
87
89
  """Additional features"""
88
90
 
89
91
  def __init__(
90
92
  self,
91
93
  *,
92
- id: builtins.str = ...,
93
- status: builtins.str = ...,
94
- tier: builtins.str = ...,
95
- plan: global___PricingPlan | None = ...,
96
- current_period_start: google.protobuf.timestamp_pb2.Timestamp | None = ...,
97
- current_period_end: google.protobuf.timestamp_pb2.Timestamp | None = ...,
98
- cancel_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
99
- canceled_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
100
- cancel_at_period_end: builtins.bool = ...,
101
- default_payment_method: global___PaymentMethod | None = ...,
102
- currency: builtins.str = ...,
103
- amount_cents: builtins.int = ...,
104
- is_trial: builtins.bool = ...,
105
- trial_start: google.protobuf.timestamp_pb2.Timestamp | None = ...,
106
- trial_end: google.protobuf.timestamp_pb2.Timestamp | None = ...,
107
- active_discount: global___Discount | None = ...,
108
- created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
109
- updated_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
110
- features: global___SubscriptionFeatures | None = ...,
111
- ) -> None: ...
112
- def HasField(
113
- self,
114
- field_name: typing.Literal[
115
- "active_discount",
116
- b"active_discount",
117
- "cancel_at",
118
- b"cancel_at",
119
- "canceled_at",
120
- b"canceled_at",
121
- "created_at",
122
- b"created_at",
123
- "current_period_end",
124
- b"current_period_end",
125
- "current_period_start",
126
- b"current_period_start",
127
- "default_payment_method",
128
- b"default_payment_method",
129
- "features",
130
- b"features",
131
- "plan",
132
- b"plan",
133
- "trial_end",
134
- b"trial_end",
135
- "trial_start",
136
- b"trial_start",
137
- "updated_at",
138
- b"updated_at",
139
- ],
140
- ) -> builtins.bool: ...
141
- def ClearField(
142
- self,
143
- field_name: typing.Literal[
144
- "active_discount",
145
- b"active_discount",
146
- "amount_cents",
147
- b"amount_cents",
148
- "cancel_at",
149
- b"cancel_at",
150
- "cancel_at_period_end",
151
- b"cancel_at_period_end",
152
- "canceled_at",
153
- b"canceled_at",
154
- "created_at",
155
- b"created_at",
156
- "currency",
157
- b"currency",
158
- "current_period_end",
159
- b"current_period_end",
160
- "current_period_start",
161
- b"current_period_start",
162
- "default_payment_method",
163
- b"default_payment_method",
164
- "features",
165
- b"features",
166
- "id",
167
- b"id",
168
- "is_trial",
169
- b"is_trial",
170
- "plan",
171
- b"plan",
172
- "status",
173
- b"status",
174
- "tier",
175
- b"tier",
176
- "trial_end",
177
- b"trial_end",
178
- "trial_start",
179
- b"trial_start",
180
- "updated_at",
181
- b"updated_at",
182
- ],
94
+ id: _builtins.str | None = ...,
95
+ status: _builtins.str | None = ...,
96
+ tier: _builtins.str | None = ...,
97
+ plan: Global___PricingPlan | None = ...,
98
+ current_period_start: _timestamp_pb2.Timestamp | None = ...,
99
+ current_period_end: _timestamp_pb2.Timestamp | None = ...,
100
+ cancel_at: _timestamp_pb2.Timestamp | None = ...,
101
+ canceled_at: _timestamp_pb2.Timestamp | None = ...,
102
+ cancel_at_period_end: _builtins.bool | None = ...,
103
+ default_payment_method: Global___PaymentMethod | None = ...,
104
+ currency: _builtins.str | None = ...,
105
+ amount_cents: _builtins.int | None = ...,
106
+ is_trial: _builtins.bool | None = ...,
107
+ trial_start: _timestamp_pb2.Timestamp | None = ...,
108
+ trial_end: _timestamp_pb2.Timestamp | None = ...,
109
+ active_discount: Global___Discount | None = ...,
110
+ created_at: _timestamp_pb2.Timestamp | None = ...,
111
+ updated_at: _timestamp_pb2.Timestamp | None = ...,
112
+ features: Global___SubscriptionFeatures | None = ...,
183
113
  ) -> None: ...
184
-
185
- global___SubscriptionStatus = SubscriptionStatus
186
-
187
- @typing.final
188
- class PricingPlan(google.protobuf.message.Message):
189
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
190
-
191
- ID_FIELD_NUMBER: builtins.int
192
- PRODUCT_ID_FIELD_NUMBER: builtins.int
193
- NAME_FIELD_NUMBER: builtins.int
194
- DESCRIPTION_FIELD_NUMBER: builtins.int
195
- AMOUNT_CENTS_FIELD_NUMBER: builtins.int
196
- CURRENCY_FIELD_NUMBER: builtins.int
197
- INTERVAL_FIELD_NUMBER: builtins.int
198
- INTERVAL_COUNT_FIELD_NUMBER: builtins.int
199
- FEATURES_FIELD_NUMBER: builtins.int
200
- IS_DEFAULT_FIELD_NUMBER: builtins.int
201
- IS_POPULAR_FIELD_NUMBER: builtins.int
202
- HIGHLIGHTS_FIELD_NUMBER: builtins.int
203
- id: builtins.str
114
+ _HasFieldArgType: _TypeAlias = _typing.Literal[
115
+ "active_discount",
116
+ b"active_discount",
117
+ "amount_cents",
118
+ b"amount_cents",
119
+ "cancel_at",
120
+ b"cancel_at",
121
+ "cancel_at_period_end",
122
+ b"cancel_at_period_end",
123
+ "canceled_at",
124
+ b"canceled_at",
125
+ "created_at",
126
+ b"created_at",
127
+ "currency",
128
+ b"currency",
129
+ "current_period_end",
130
+ b"current_period_end",
131
+ "current_period_start",
132
+ b"current_period_start",
133
+ "default_payment_method",
134
+ b"default_payment_method",
135
+ "features",
136
+ b"features",
137
+ "id",
138
+ b"id",
139
+ "is_trial",
140
+ b"is_trial",
141
+ "plan",
142
+ b"plan",
143
+ "status",
144
+ b"status",
145
+ "tier",
146
+ b"tier",
147
+ "trial_end",
148
+ b"trial_end",
149
+ "trial_start",
150
+ b"trial_start",
151
+ "updated_at",
152
+ b"updated_at",
153
+ ] # noqa: Y015
154
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
155
+ _ClearFieldArgType: _TypeAlias = _typing.Literal[
156
+ "active_discount",
157
+ b"active_discount",
158
+ "amount_cents",
159
+ b"amount_cents",
160
+ "cancel_at",
161
+ b"cancel_at",
162
+ "cancel_at_period_end",
163
+ b"cancel_at_period_end",
164
+ "canceled_at",
165
+ b"canceled_at",
166
+ "created_at",
167
+ b"created_at",
168
+ "currency",
169
+ b"currency",
170
+ "current_period_end",
171
+ b"current_period_end",
172
+ "current_period_start",
173
+ b"current_period_start",
174
+ "default_payment_method",
175
+ b"default_payment_method",
176
+ "features",
177
+ b"features",
178
+ "id",
179
+ b"id",
180
+ "is_trial",
181
+ b"is_trial",
182
+ "plan",
183
+ b"plan",
184
+ "status",
185
+ b"status",
186
+ "tier",
187
+ b"tier",
188
+ "trial_end",
189
+ b"trial_end",
190
+ "trial_start",
191
+ b"trial_start",
192
+ "updated_at",
193
+ b"updated_at",
194
+ ] # noqa: Y015
195
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
196
+
197
+ Global___SubscriptionStatus: _TypeAlias = SubscriptionStatus # noqa: Y015
198
+
199
+ @_typing.final
200
+ class PricingPlan(_message.Message):
201
+ DESCRIPTOR: _descriptor.Descriptor
202
+
203
+ ID_FIELD_NUMBER: _builtins.int
204
+ PRODUCT_ID_FIELD_NUMBER: _builtins.int
205
+ NAME_FIELD_NUMBER: _builtins.int
206
+ DESCRIPTION_FIELD_NUMBER: _builtins.int
207
+ AMOUNT_CENTS_FIELD_NUMBER: _builtins.int
208
+ CURRENCY_FIELD_NUMBER: _builtins.int
209
+ INTERVAL_FIELD_NUMBER: _builtins.int
210
+ INTERVAL_COUNT_FIELD_NUMBER: _builtins.int
211
+ FEATURES_FIELD_NUMBER: _builtins.int
212
+ IS_DEFAULT_FIELD_NUMBER: _builtins.int
213
+ IS_POPULAR_FIELD_NUMBER: _builtins.int
214
+ HIGHLIGHTS_FIELD_NUMBER: _builtins.int
215
+ id: _builtins.str
204
216
  """Stripe price ID"""
205
- product_id: builtins.str
217
+ product_id: _builtins.str
206
218
  """Stripe product ID"""
207
- name: builtins.str
219
+ name: _builtins.str
208
220
  """"Free", "Pro" """
209
- description: builtins.str
210
- amount_cents: builtins.int
221
+ description: _builtins.str
222
+ amount_cents: _builtins.int
211
223
  """Monthly price in cents"""
212
- currency: builtins.str
213
- interval: builtins.str
224
+ currency: _builtins.str
225
+ interval: _builtins.str
214
226
  """month, year"""
215
- interval_count: builtins.int
227
+ interval_count: _builtins.int
216
228
  """1 for monthly, 12 for yearly"""
217
- is_default: builtins.bool
229
+ is_default: _builtins.bool
218
230
  """Metadata"""
219
- is_popular: builtins.bool
220
- @property
221
- def features(self) -> global___SubscriptionFeatures:
231
+ is_popular: _builtins.bool
232
+ @_builtins.property
233
+ def features(self) -> Global___SubscriptionFeatures:
222
234
  """Features"""
223
235
 
224
- @property
225
- def highlights(
226
- self,
227
- ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
236
+ @_builtins.property
237
+ def highlights(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]:
228
238
  """Key selling points"""
229
239
 
230
240
  def __init__(
231
241
  self,
232
242
  *,
233
- id: builtins.str = ...,
234
- product_id: builtins.str = ...,
235
- name: builtins.str = ...,
236
- description: builtins.str = ...,
237
- amount_cents: builtins.int = ...,
238
- currency: builtins.str = ...,
239
- interval: builtins.str = ...,
240
- interval_count: builtins.int = ...,
241
- features: global___SubscriptionFeatures | None = ...,
242
- is_default: builtins.bool = ...,
243
- is_popular: builtins.bool = ...,
244
- highlights: collections.abc.Iterable[builtins.str] | None = ...,
243
+ id: _builtins.str | None = ...,
244
+ product_id: _builtins.str | None = ...,
245
+ name: _builtins.str | None = ...,
246
+ description: _builtins.str | None = ...,
247
+ amount_cents: _builtins.int | None = ...,
248
+ currency: _builtins.str | None = ...,
249
+ interval: _builtins.str | None = ...,
250
+ interval_count: _builtins.int | None = ...,
251
+ features: Global___SubscriptionFeatures | None = ...,
252
+ is_default: _builtins.bool | None = ...,
253
+ is_popular: _builtins.bool | None = ...,
254
+ highlights: _abc.Iterable[_builtins.str] | None = ...,
245
255
  ) -> None: ...
246
- def HasField(
247
- self, field_name: typing.Literal["features", b"features"]
248
- ) -> builtins.bool: ...
249
- def ClearField(
250
- self,
251
- field_name: typing.Literal[
252
- "amount_cents",
253
- b"amount_cents",
254
- "currency",
255
- b"currency",
256
- "description",
257
- b"description",
258
- "features",
259
- b"features",
260
- "highlights",
261
- b"highlights",
262
- "id",
263
- b"id",
264
- "interval",
265
- b"interval",
266
- "interval_count",
267
- b"interval_count",
268
- "is_default",
269
- b"is_default",
270
- "is_popular",
271
- b"is_popular",
272
- "name",
273
- b"name",
274
- "product_id",
275
- b"product_id",
276
- ],
277
- ) -> None: ...
278
-
279
- global___PricingPlan = PricingPlan
280
-
281
- @typing.final
282
- class SubscriptionFeatures(google.protobuf.message.Message):
283
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
284
-
285
- API_REQUESTS_PER_HOUR_FIELD_NUMBER: builtins.int
286
- API_REQUESTS_PER_DAY_FIELD_NUMBER: builtins.int
287
- API_REQUESTS_PER_MONTH_FIELD_NUMBER: builtins.int
288
- UNLIMITED_REQUESTS_FIELD_NUMBER: builtins.int
289
- API_KEYS_LIMIT_FIELD_NUMBER: builtins.int
290
- UNLIMITED_API_KEYS_FIELD_NUMBER: builtins.int
291
- WEBHOOK_ACCESS_FIELD_NUMBER: builtins.int
292
- EXPORT_ACCESS_FIELD_NUMBER: builtins.int
293
- PRIORITY_SUPPORT_FIELD_NUMBER: builtins.int
294
- CUSTOM_LIMITS_FIELD_NUMBER: builtins.int
295
- TEAM_ACCESS_FIELD_NUMBER: builtins.int
296
- TEAM_MEMBERS_LIMIT_FIELD_NUMBER: builtins.int
297
- SSO_ACCESS_FIELD_NUMBER: builtins.int
298
- AUDIT_LOGS_FIELD_NUMBER: builtins.int
299
- SLA_GUARANTEE_FIELD_NUMBER: builtins.int
300
- api_requests_per_hour: builtins.int
301
- api_requests_per_day: builtins.int
302
- api_requests_per_month: builtins.int
303
- unlimited_requests: builtins.bool
304
- api_keys_limit: builtins.int
305
- unlimited_api_keys: builtins.bool
306
- webhook_access: builtins.bool
307
- export_access: builtins.bool
308
- priority_support: builtins.bool
309
- custom_limits: builtins.bool
310
- team_access: builtins.bool
256
+ _HasFieldArgType: _TypeAlias = _typing.Literal[
257
+ "amount_cents",
258
+ b"amount_cents",
259
+ "currency",
260
+ b"currency",
261
+ "description",
262
+ b"description",
263
+ "features",
264
+ b"features",
265
+ "highlights",
266
+ b"highlights",
267
+ "id",
268
+ b"id",
269
+ "interval",
270
+ b"interval",
271
+ "interval_count",
272
+ b"interval_count",
273
+ "is_default",
274
+ b"is_default",
275
+ "is_popular",
276
+ b"is_popular",
277
+ "name",
278
+ b"name",
279
+ "product_id",
280
+ b"product_id",
281
+ ] # noqa: Y015
282
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
283
+ _ClearFieldArgType: _TypeAlias = _typing.Literal[
284
+ "amount_cents",
285
+ b"amount_cents",
286
+ "currency",
287
+ b"currency",
288
+ "description",
289
+ b"description",
290
+ "features",
291
+ b"features",
292
+ "highlights",
293
+ b"highlights",
294
+ "id",
295
+ b"id",
296
+ "interval",
297
+ b"interval",
298
+ "interval_count",
299
+ b"interval_count",
300
+ "is_default",
301
+ b"is_default",
302
+ "is_popular",
303
+ b"is_popular",
304
+ "name",
305
+ b"name",
306
+ "product_id",
307
+ b"product_id",
308
+ ] # noqa: Y015
309
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
310
+
311
+ Global___PricingPlan: _TypeAlias = PricingPlan # noqa: Y015
312
+
313
+ @_typing.final
314
+ class SubscriptionFeatures(_message.Message):
315
+ DESCRIPTOR: _descriptor.Descriptor
316
+
317
+ API_REQUESTS_PER_HOUR_FIELD_NUMBER: _builtins.int
318
+ API_REQUESTS_PER_DAY_FIELD_NUMBER: _builtins.int
319
+ API_REQUESTS_PER_MONTH_FIELD_NUMBER: _builtins.int
320
+ UNLIMITED_REQUESTS_FIELD_NUMBER: _builtins.int
321
+ API_KEYS_LIMIT_FIELD_NUMBER: _builtins.int
322
+ UNLIMITED_API_KEYS_FIELD_NUMBER: _builtins.int
323
+ WEBHOOK_ACCESS_FIELD_NUMBER: _builtins.int
324
+ EXPORT_ACCESS_FIELD_NUMBER: _builtins.int
325
+ PRIORITY_SUPPORT_FIELD_NUMBER: _builtins.int
326
+ CUSTOM_LIMITS_FIELD_NUMBER: _builtins.int
327
+ TEAM_ACCESS_FIELD_NUMBER: _builtins.int
328
+ TEAM_MEMBERS_LIMIT_FIELD_NUMBER: _builtins.int
329
+ SSO_ACCESS_FIELD_NUMBER: _builtins.int
330
+ AUDIT_LOGS_FIELD_NUMBER: _builtins.int
331
+ SLA_GUARANTEE_FIELD_NUMBER: _builtins.int
332
+ api_requests_per_hour: _builtins.int
333
+ api_requests_per_day: _builtins.int
334
+ api_requests_per_month: _builtins.int
335
+ unlimited_requests: _builtins.bool
336
+ api_keys_limit: _builtins.int
337
+ unlimited_api_keys: _builtins.bool
338
+ webhook_access: _builtins.bool
339
+ export_access: _builtins.bool
340
+ priority_support: _builtins.bool
341
+ custom_limits: _builtins.bool
342
+ team_access: _builtins.bool
311
343
  """Advanced features"""
312
- team_members_limit: builtins.int
313
- sso_access: builtins.bool
314
- audit_logs: builtins.bool
315
- sla_guarantee: builtins.bool
344
+ team_members_limit: _builtins.int
345
+ sso_access: _builtins.bool
346
+ audit_logs: _builtins.bool
347
+ sla_guarantee: _builtins.bool
316
348
  def __init__(
317
349
  self,
318
350
  *,
319
- api_requests_per_hour: builtins.int = ...,
320
- api_requests_per_day: builtins.int = ...,
321
- api_requests_per_month: builtins.int = ...,
322
- unlimited_requests: builtins.bool = ...,
323
- api_keys_limit: builtins.int = ...,
324
- unlimited_api_keys: builtins.bool = ...,
325
- webhook_access: builtins.bool = ...,
326
- export_access: builtins.bool = ...,
327
- priority_support: builtins.bool = ...,
328
- custom_limits: builtins.bool = ...,
329
- team_access: builtins.bool = ...,
330
- team_members_limit: builtins.int = ...,
331
- sso_access: builtins.bool = ...,
332
- audit_logs: builtins.bool = ...,
333
- sla_guarantee: builtins.bool = ...,
351
+ api_requests_per_hour: _builtins.int | None = ...,
352
+ api_requests_per_day: _builtins.int | None = ...,
353
+ api_requests_per_month: _builtins.int | None = ...,
354
+ unlimited_requests: _builtins.bool | None = ...,
355
+ api_keys_limit: _builtins.int | None = ...,
356
+ unlimited_api_keys: _builtins.bool | None = ...,
357
+ webhook_access: _builtins.bool | None = ...,
358
+ export_access: _builtins.bool | None = ...,
359
+ priority_support: _builtins.bool | None = ...,
360
+ custom_limits: _builtins.bool | None = ...,
361
+ team_access: _builtins.bool | None = ...,
362
+ team_members_limit: _builtins.int | None = ...,
363
+ sso_access: _builtins.bool | None = ...,
364
+ audit_logs: _builtins.bool | None = ...,
365
+ sla_guarantee: _builtins.bool | None = ...,
334
366
  ) -> None: ...
335
- def ClearField(
336
- self,
337
- field_name: typing.Literal[
338
- "api_keys_limit",
339
- b"api_keys_limit",
340
- "api_requests_per_day",
341
- b"api_requests_per_day",
342
- "api_requests_per_hour",
343
- b"api_requests_per_hour",
344
- "api_requests_per_month",
345
- b"api_requests_per_month",
346
- "audit_logs",
347
- b"audit_logs",
348
- "custom_limits",
349
- b"custom_limits",
350
- "export_access",
351
- b"export_access",
352
- "priority_support",
353
- b"priority_support",
354
- "sla_guarantee",
355
- b"sla_guarantee",
356
- "sso_access",
357
- b"sso_access",
358
- "team_access",
359
- b"team_access",
360
- "team_members_limit",
361
- b"team_members_limit",
362
- "unlimited_api_keys",
363
- b"unlimited_api_keys",
364
- "unlimited_requests",
365
- b"unlimited_requests",
366
- "webhook_access",
367
- b"webhook_access",
368
- ],
369
- ) -> None: ...
370
-
371
- global___SubscriptionFeatures = SubscriptionFeatures
372
-
373
- @typing.final
374
- class PaymentMethod(google.protobuf.message.Message):
375
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
376
-
377
- ID_FIELD_NUMBER: builtins.int
378
- TYPE_FIELD_NUMBER: builtins.int
379
- IS_DEFAULT_FIELD_NUMBER: builtins.int
380
- CARD_FIELD_NUMBER: builtins.int
381
- BANK_FIELD_NUMBER: builtins.int
382
- BILLING_DETAILS_FIELD_NUMBER: builtins.int
383
- CREATED_AT_FIELD_NUMBER: builtins.int
384
- id: builtins.str
367
+ _HasFieldArgType: _TypeAlias = _typing.Literal[
368
+ "api_keys_limit",
369
+ b"api_keys_limit",
370
+ "api_requests_per_day",
371
+ b"api_requests_per_day",
372
+ "api_requests_per_hour",
373
+ b"api_requests_per_hour",
374
+ "api_requests_per_month",
375
+ b"api_requests_per_month",
376
+ "audit_logs",
377
+ b"audit_logs",
378
+ "custom_limits",
379
+ b"custom_limits",
380
+ "export_access",
381
+ b"export_access",
382
+ "priority_support",
383
+ b"priority_support",
384
+ "sla_guarantee",
385
+ b"sla_guarantee",
386
+ "sso_access",
387
+ b"sso_access",
388
+ "team_access",
389
+ b"team_access",
390
+ "team_members_limit",
391
+ b"team_members_limit",
392
+ "unlimited_api_keys",
393
+ b"unlimited_api_keys",
394
+ "unlimited_requests",
395
+ b"unlimited_requests",
396
+ "webhook_access",
397
+ b"webhook_access",
398
+ ] # noqa: Y015
399
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
400
+ _ClearFieldArgType: _TypeAlias = _typing.Literal[
401
+ "api_keys_limit",
402
+ b"api_keys_limit",
403
+ "api_requests_per_day",
404
+ b"api_requests_per_day",
405
+ "api_requests_per_hour",
406
+ b"api_requests_per_hour",
407
+ "api_requests_per_month",
408
+ b"api_requests_per_month",
409
+ "audit_logs",
410
+ b"audit_logs",
411
+ "custom_limits",
412
+ b"custom_limits",
413
+ "export_access",
414
+ b"export_access",
415
+ "priority_support",
416
+ b"priority_support",
417
+ "sla_guarantee",
418
+ b"sla_guarantee",
419
+ "sso_access",
420
+ b"sso_access",
421
+ "team_access",
422
+ b"team_access",
423
+ "team_members_limit",
424
+ b"team_members_limit",
425
+ "unlimited_api_keys",
426
+ b"unlimited_api_keys",
427
+ "unlimited_requests",
428
+ b"unlimited_requests",
429
+ "webhook_access",
430
+ b"webhook_access",
431
+ ] # noqa: Y015
432
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
433
+
434
+ Global___SubscriptionFeatures: _TypeAlias = SubscriptionFeatures # noqa: Y015
435
+
436
+ @_typing.final
437
+ class PaymentMethod(_message.Message):
438
+ DESCRIPTOR: _descriptor.Descriptor
439
+
440
+ ID_FIELD_NUMBER: _builtins.int
441
+ TYPE_FIELD_NUMBER: _builtins.int
442
+ IS_DEFAULT_FIELD_NUMBER: _builtins.int
443
+ CARD_FIELD_NUMBER: _builtins.int
444
+ BANK_FIELD_NUMBER: _builtins.int
445
+ BILLING_DETAILS_FIELD_NUMBER: _builtins.int
446
+ CREATED_AT_FIELD_NUMBER: _builtins.int
447
+ id: _builtins.str
385
448
  """Stripe payment method ID"""
386
- type: builtins.str
449
+ type: _builtins.str
387
450
  """card, bank_account"""
388
- is_default: builtins.bool
389
- @property
390
- def card(self) -> global___CardDetails:
451
+ is_default: _builtins.bool
452
+ @_builtins.property
453
+ def card(self) -> Global___CardDetails:
391
454
  """Card details (if type == "card")"""
392
455
 
393
- @property
394
- def bank(self) -> global___BankDetails:
456
+ @_builtins.property
457
+ def bank(self) -> Global___BankDetails:
395
458
  """Bank details (if type == "bank_account")"""
396
459
 
397
- @property
398
- def billing_details(self) -> global___BillingDetails:
460
+ @_builtins.property
461
+ def billing_details(self) -> Global___BillingDetails:
399
462
  """Billing details"""
400
463
 
401
- @property
402
- def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
464
+ @_builtins.property
465
+ def created_at(self) -> _timestamp_pb2.Timestamp: ...
403
466
  def __init__(
404
467
  self,
405
468
  *,
406
- id: builtins.str = ...,
407
- type: builtins.str = ...,
408
- is_default: builtins.bool = ...,
409
- card: global___CardDetails | None = ...,
410
- bank: global___BankDetails | None = ...,
411
- billing_details: global___BillingDetails | None = ...,
412
- created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
469
+ id: _builtins.str | None = ...,
470
+ type: _builtins.str | None = ...,
471
+ is_default: _builtins.bool | None = ...,
472
+ card: Global___CardDetails | None = ...,
473
+ bank: Global___BankDetails | None = ...,
474
+ billing_details: Global___BillingDetails | None = ...,
475
+ created_at: _timestamp_pb2.Timestamp | None = ...,
413
476
  ) -> None: ...
414
- def HasField(
415
- self,
416
- field_name: typing.Literal[
417
- "bank",
418
- b"bank",
419
- "billing_details",
420
- b"billing_details",
421
- "card",
422
- b"card",
423
- "created_at",
424
- b"created_at",
425
- ],
426
- ) -> builtins.bool: ...
427
- def ClearField(
428
- self,
429
- field_name: typing.Literal[
430
- "bank",
431
- b"bank",
432
- "billing_details",
433
- b"billing_details",
434
- "card",
435
- b"card",
436
- "created_at",
437
- b"created_at",
438
- "id",
439
- b"id",
440
- "is_default",
441
- b"is_default",
442
- "type",
443
- b"type",
444
- ],
445
- ) -> None: ...
446
-
447
- global___PaymentMethod = PaymentMethod
448
-
449
- @typing.final
450
- class CardDetails(google.protobuf.message.Message):
451
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
452
-
453
- BRAND_FIELD_NUMBER: builtins.int
454
- LAST4_FIELD_NUMBER: builtins.int
455
- EXP_MONTH_FIELD_NUMBER: builtins.int
456
- EXP_YEAR_FIELD_NUMBER: builtins.int
457
- FUNDING_FIELD_NUMBER: builtins.int
458
- COUNTRY_FIELD_NUMBER: builtins.int
459
- FINGERPRINT_FIELD_NUMBER: builtins.int
460
- brand: builtins.str
477
+ _HasFieldArgType: _TypeAlias = _typing.Literal[
478
+ "bank",
479
+ b"bank",
480
+ "billing_details",
481
+ b"billing_details",
482
+ "card",
483
+ b"card",
484
+ "created_at",
485
+ b"created_at",
486
+ "id",
487
+ b"id",
488
+ "is_default",
489
+ b"is_default",
490
+ "type",
491
+ b"type",
492
+ ] # noqa: Y015
493
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
494
+ _ClearFieldArgType: _TypeAlias = _typing.Literal[
495
+ "bank",
496
+ b"bank",
497
+ "billing_details",
498
+ b"billing_details",
499
+ "card",
500
+ b"card",
501
+ "created_at",
502
+ b"created_at",
503
+ "id",
504
+ b"id",
505
+ "is_default",
506
+ b"is_default",
507
+ "type",
508
+ b"type",
509
+ ] # noqa: Y015
510
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
511
+
512
+ Global___PaymentMethod: _TypeAlias = PaymentMethod # noqa: Y015
513
+
514
+ @_typing.final
515
+ class CardDetails(_message.Message):
516
+ DESCRIPTOR: _descriptor.Descriptor
517
+
518
+ BRAND_FIELD_NUMBER: _builtins.int
519
+ LAST4_FIELD_NUMBER: _builtins.int
520
+ EXP_MONTH_FIELD_NUMBER: _builtins.int
521
+ EXP_YEAR_FIELD_NUMBER: _builtins.int
522
+ FUNDING_FIELD_NUMBER: _builtins.int
523
+ COUNTRY_FIELD_NUMBER: _builtins.int
524
+ FINGERPRINT_FIELD_NUMBER: _builtins.int
525
+ brand: _builtins.str
461
526
  """visa, mastercard, amex, etc"""
462
- last4: builtins.str
463
- exp_month: builtins.int
464
- exp_year: builtins.int
465
- funding: builtins.str
527
+ last4: _builtins.str
528
+ exp_month: _builtins.int
529
+ exp_year: _builtins.int
530
+ funding: _builtins.str
466
531
  """credit, debit, prepaid"""
467
- country: builtins.str
468
- fingerprint: builtins.str
532
+ country: _builtins.str
533
+ fingerprint: _builtins.str
469
534
  """Unique card identifier"""
470
535
  def __init__(
471
536
  self,
472
537
  *,
473
- brand: builtins.str = ...,
474
- last4: builtins.str = ...,
475
- exp_month: builtins.int = ...,
476
- exp_year: builtins.int = ...,
477
- funding: builtins.str = ...,
478
- country: builtins.str = ...,
479
- fingerprint: builtins.str = ...,
538
+ brand: _builtins.str | None = ...,
539
+ last4: _builtins.str | None = ...,
540
+ exp_month: _builtins.int | None = ...,
541
+ exp_year: _builtins.int | None = ...,
542
+ funding: _builtins.str | None = ...,
543
+ country: _builtins.str | None = ...,
544
+ fingerprint: _builtins.str | None = ...,
480
545
  ) -> None: ...
481
- def ClearField(
482
- self,
483
- field_name: typing.Literal[
484
- "brand",
485
- b"brand",
486
- "country",
487
- b"country",
488
- "exp_month",
489
- b"exp_month",
490
- "exp_year",
491
- b"exp_year",
492
- "fingerprint",
493
- b"fingerprint",
494
- "funding",
495
- b"funding",
496
- "last4",
497
- b"last4",
498
- ],
499
- ) -> None: ...
500
-
501
- global___CardDetails = CardDetails
502
-
503
- @typing.final
504
- class BankDetails(google.protobuf.message.Message):
505
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
506
-
507
- BANK_NAME_FIELD_NUMBER: builtins.int
508
- LAST4_FIELD_NUMBER: builtins.int
509
- ACCOUNT_TYPE_FIELD_NUMBER: builtins.int
510
- COUNTRY_FIELD_NUMBER: builtins.int
511
- CURRENCY_FIELD_NUMBER: builtins.int
512
- bank_name: builtins.str
513
- last4: builtins.str
514
- account_type: builtins.str
515
- country: builtins.str
516
- currency: builtins.str
546
+ _HasFieldArgType: _TypeAlias = _typing.Literal[
547
+ "brand",
548
+ b"brand",
549
+ "country",
550
+ b"country",
551
+ "exp_month",
552
+ b"exp_month",
553
+ "exp_year",
554
+ b"exp_year",
555
+ "fingerprint",
556
+ b"fingerprint",
557
+ "funding",
558
+ b"funding",
559
+ "last4",
560
+ b"last4",
561
+ ] # noqa: Y015
562
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
563
+ _ClearFieldArgType: _TypeAlias = _typing.Literal[
564
+ "brand",
565
+ b"brand",
566
+ "country",
567
+ b"country",
568
+ "exp_month",
569
+ b"exp_month",
570
+ "exp_year",
571
+ b"exp_year",
572
+ "fingerprint",
573
+ b"fingerprint",
574
+ "funding",
575
+ b"funding",
576
+ "last4",
577
+ b"last4",
578
+ ] # noqa: Y015
579
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
580
+
581
+ Global___CardDetails: _TypeAlias = CardDetails # noqa: Y015
582
+
583
+ @_typing.final
584
+ class BankDetails(_message.Message):
585
+ DESCRIPTOR: _descriptor.Descriptor
586
+
587
+ BANK_NAME_FIELD_NUMBER: _builtins.int
588
+ LAST4_FIELD_NUMBER: _builtins.int
589
+ ACCOUNT_TYPE_FIELD_NUMBER: _builtins.int
590
+ COUNTRY_FIELD_NUMBER: _builtins.int
591
+ CURRENCY_FIELD_NUMBER: _builtins.int
592
+ bank_name: _builtins.str
593
+ last4: _builtins.str
594
+ account_type: _builtins.str
595
+ country: _builtins.str
596
+ currency: _builtins.str
517
597
  def __init__(
518
598
  self,
519
599
  *,
520
- bank_name: builtins.str = ...,
521
- last4: builtins.str = ...,
522
- account_type: builtins.str = ...,
523
- country: builtins.str = ...,
524
- currency: builtins.str = ...,
600
+ bank_name: _builtins.str | None = ...,
601
+ last4: _builtins.str | None = ...,
602
+ account_type: _builtins.str | None = ...,
603
+ country: _builtins.str | None = ...,
604
+ currency: _builtins.str | None = ...,
525
605
  ) -> None: ...
526
- def ClearField(
527
- self,
528
- field_name: typing.Literal[
529
- "account_type",
530
- b"account_type",
531
- "bank_name",
532
- b"bank_name",
533
- "country",
534
- b"country",
535
- "currency",
536
- b"currency",
537
- "last4",
538
- b"last4",
539
- ],
540
- ) -> None: ...
541
-
542
- global___BankDetails = BankDetails
543
-
544
- @typing.final
545
- class BillingDetails(google.protobuf.message.Message):
546
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
547
-
548
- NAME_FIELD_NUMBER: builtins.int
549
- EMAIL_FIELD_NUMBER: builtins.int
550
- PHONE_FIELD_NUMBER: builtins.int
551
- ADDRESS_FIELD_NUMBER: builtins.int
552
- name: builtins.str
553
- email: builtins.str
554
- phone: builtins.str
555
- @property
556
- def address(self) -> global___Address: ...
606
+ _HasFieldArgType: _TypeAlias = _typing.Literal[
607
+ "account_type",
608
+ b"account_type",
609
+ "bank_name",
610
+ b"bank_name",
611
+ "country",
612
+ b"country",
613
+ "currency",
614
+ b"currency",
615
+ "last4",
616
+ b"last4",
617
+ ] # noqa: Y015
618
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
619
+ _ClearFieldArgType: _TypeAlias = _typing.Literal[
620
+ "account_type",
621
+ b"account_type",
622
+ "bank_name",
623
+ b"bank_name",
624
+ "country",
625
+ b"country",
626
+ "currency",
627
+ b"currency",
628
+ "last4",
629
+ b"last4",
630
+ ] # noqa: Y015
631
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
632
+
633
+ Global___BankDetails: _TypeAlias = BankDetails # noqa: Y015
634
+
635
+ @_typing.final
636
+ class BillingDetails(_message.Message):
637
+ DESCRIPTOR: _descriptor.Descriptor
638
+
639
+ NAME_FIELD_NUMBER: _builtins.int
640
+ EMAIL_FIELD_NUMBER: _builtins.int
641
+ PHONE_FIELD_NUMBER: _builtins.int
642
+ ADDRESS_FIELD_NUMBER: _builtins.int
643
+ name: _builtins.str
644
+ email: _builtins.str
645
+ phone: _builtins.str
646
+ @_builtins.property
647
+ def address(self) -> Global___Address: ...
557
648
  def __init__(
558
649
  self,
559
650
  *,
560
- name: builtins.str = ...,
561
- email: builtins.str = ...,
562
- phone: builtins.str = ...,
563
- address: global___Address | None = ...,
564
- ) -> None: ...
565
- def HasField(
566
- self, field_name: typing.Literal["address", b"address"]
567
- ) -> builtins.bool: ...
568
- def ClearField(
569
- self,
570
- field_name: typing.Literal[
571
- "address", b"address", "email", b"email", "name", b"name", "phone", b"phone"
572
- ],
651
+ name: _builtins.str | None = ...,
652
+ email: _builtins.str | None = ...,
653
+ phone: _builtins.str | None = ...,
654
+ address: Global___Address | None = ...,
573
655
  ) -> None: ...
574
-
575
- global___BillingDetails = BillingDetails
576
-
577
- @typing.final
578
- class Address(google.protobuf.message.Message):
579
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
580
-
581
- LINE1_FIELD_NUMBER: builtins.int
582
- LINE2_FIELD_NUMBER: builtins.int
583
- CITY_FIELD_NUMBER: builtins.int
584
- STATE_FIELD_NUMBER: builtins.int
585
- POSTAL_CODE_FIELD_NUMBER: builtins.int
586
- COUNTRY_FIELD_NUMBER: builtins.int
587
- line1: builtins.str
588
- line2: builtins.str
589
- city: builtins.str
590
- state: builtins.str
591
- postal_code: builtins.str
592
- country: builtins.str
656
+ _HasFieldArgType: _TypeAlias = _typing.Literal[
657
+ "address", b"address", "email", b"email", "name", b"name", "phone", b"phone"
658
+ ] # noqa: Y015
659
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
660
+ _ClearFieldArgType: _TypeAlias = _typing.Literal[
661
+ "address", b"address", "email", b"email", "name", b"name", "phone", b"phone"
662
+ ] # noqa: Y015
663
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
664
+
665
+ Global___BillingDetails: _TypeAlias = BillingDetails # noqa: Y015
666
+
667
+ @_typing.final
668
+ class Address(_message.Message):
669
+ DESCRIPTOR: _descriptor.Descriptor
670
+
671
+ LINE1_FIELD_NUMBER: _builtins.int
672
+ LINE2_FIELD_NUMBER: _builtins.int
673
+ CITY_FIELD_NUMBER: _builtins.int
674
+ STATE_FIELD_NUMBER: _builtins.int
675
+ POSTAL_CODE_FIELD_NUMBER: _builtins.int
676
+ COUNTRY_FIELD_NUMBER: _builtins.int
677
+ line1: _builtins.str
678
+ line2: _builtins.str
679
+ city: _builtins.str
680
+ state: _builtins.str
681
+ postal_code: _builtins.str
682
+ country: _builtins.str
593
683
  """ISO country code"""
594
684
  def __init__(
595
685
  self,
596
686
  *,
597
- line1: builtins.str = ...,
598
- line2: builtins.str = ...,
599
- city: builtins.str = ...,
600
- state: builtins.str = ...,
601
- postal_code: builtins.str = ...,
602
- country: builtins.str = ...,
687
+ line1: _builtins.str | None = ...,
688
+ line2: _builtins.str | None = ...,
689
+ city: _builtins.str | None = ...,
690
+ state: _builtins.str | None = ...,
691
+ postal_code: _builtins.str | None = ...,
692
+ country: _builtins.str | None = ...,
603
693
  ) -> None: ...
604
- def ClearField(
605
- self,
606
- field_name: typing.Literal[
607
- "city",
608
- b"city",
609
- "country",
610
- b"country",
611
- "line1",
612
- b"line1",
613
- "line2",
614
- b"line2",
615
- "postal_code",
616
- b"postal_code",
617
- "state",
618
- b"state",
619
- ],
620
- ) -> None: ...
621
-
622
- global___Address = Address
623
-
624
- @typing.final
625
- class Discount(google.protobuf.message.Message):
626
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
627
-
628
- ID_FIELD_NUMBER: builtins.int
629
- NAME_FIELD_NUMBER: builtins.int
630
- TYPE_FIELD_NUMBER: builtins.int
631
- PERCENT_OFF_FIELD_NUMBER: builtins.int
632
- AMOUNT_OFF_CENTS_FIELD_NUMBER: builtins.int
633
- DURATION_FIELD_NUMBER: builtins.int
634
- DURATION_IN_MONTHS_FIELD_NUMBER: builtins.int
635
- VALID_UNTIL_FIELD_NUMBER: builtins.int
636
- APPLIED_AT_FIELD_NUMBER: builtins.int
637
- id: builtins.str
694
+ _HasFieldArgType: _TypeAlias = _typing.Literal[
695
+ "city",
696
+ b"city",
697
+ "country",
698
+ b"country",
699
+ "line1",
700
+ b"line1",
701
+ "line2",
702
+ b"line2",
703
+ "postal_code",
704
+ b"postal_code",
705
+ "state",
706
+ b"state",
707
+ ] # noqa: Y015
708
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
709
+ _ClearFieldArgType: _TypeAlias = _typing.Literal[
710
+ "city",
711
+ b"city",
712
+ "country",
713
+ b"country",
714
+ "line1",
715
+ b"line1",
716
+ "line2",
717
+ b"line2",
718
+ "postal_code",
719
+ b"postal_code",
720
+ "state",
721
+ b"state",
722
+ ] # noqa: Y015
723
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
724
+
725
+ Global___Address: _TypeAlias = Address # noqa: Y015
726
+
727
+ @_typing.final
728
+ class Discount(_message.Message):
729
+ DESCRIPTOR: _descriptor.Descriptor
730
+
731
+ ID_FIELD_NUMBER: _builtins.int
732
+ NAME_FIELD_NUMBER: _builtins.int
733
+ TYPE_FIELD_NUMBER: _builtins.int
734
+ PERCENT_OFF_FIELD_NUMBER: _builtins.int
735
+ AMOUNT_OFF_CENTS_FIELD_NUMBER: _builtins.int
736
+ DURATION_FIELD_NUMBER: _builtins.int
737
+ DURATION_IN_MONTHS_FIELD_NUMBER: _builtins.int
738
+ VALID_UNTIL_FIELD_NUMBER: _builtins.int
739
+ APPLIED_AT_FIELD_NUMBER: _builtins.int
740
+ id: _builtins.str
638
741
  """Stripe coupon ID"""
639
- name: builtins.str
640
- type: builtins.str
742
+ name: _builtins.str
743
+ type: _builtins.str
641
744
  """percentage, fixed_amount"""
642
- percent_off: builtins.float
643
- amount_off_cents: builtins.int
644
- duration: builtins.str
745
+ percent_off: _builtins.float
746
+ amount_off_cents: _builtins.int
747
+ duration: _builtins.str
645
748
  """forever, once, repeating"""
646
- duration_in_months: builtins.int
749
+ duration_in_months: _builtins.int
647
750
  """If duration is "repeating" """
648
- @property
649
- def valid_until(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
650
- @property
651
- def applied_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
751
+ @_builtins.property
752
+ def valid_until(self) -> _timestamp_pb2.Timestamp: ...
753
+ @_builtins.property
754
+ def applied_at(self) -> _timestamp_pb2.Timestamp: ...
652
755
  def __init__(
653
756
  self,
654
757
  *,
655
- id: builtins.str = ...,
656
- name: builtins.str = ...,
657
- type: builtins.str = ...,
658
- percent_off: builtins.float = ...,
659
- amount_off_cents: builtins.int = ...,
660
- duration: builtins.str = ...,
661
- duration_in_months: builtins.int = ...,
662
- valid_until: google.protobuf.timestamp_pb2.Timestamp | None = ...,
663
- applied_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
758
+ id: _builtins.str | None = ...,
759
+ name: _builtins.str | None = ...,
760
+ type: _builtins.str | None = ...,
761
+ percent_off: _builtins.float | None = ...,
762
+ amount_off_cents: _builtins.int | None = ...,
763
+ duration: _builtins.str | None = ...,
764
+ duration_in_months: _builtins.int | None = ...,
765
+ valid_until: _timestamp_pb2.Timestamp | None = ...,
766
+ applied_at: _timestamp_pb2.Timestamp | None = ...,
664
767
  ) -> None: ...
665
- def HasField(
666
- self,
667
- field_name: typing.Literal[
668
- "applied_at", b"applied_at", "valid_until", b"valid_until"
669
- ],
670
- ) -> builtins.bool: ...
671
- def ClearField(
672
- self,
673
- field_name: typing.Literal[
674
- "amount_off_cents",
675
- b"amount_off_cents",
676
- "applied_at",
677
- b"applied_at",
678
- "duration",
679
- b"duration",
680
- "duration_in_months",
681
- b"duration_in_months",
682
- "id",
683
- b"id",
684
- "name",
685
- b"name",
686
- "percent_off",
687
- b"percent_off",
688
- "type",
689
- b"type",
690
- "valid_until",
691
- b"valid_until",
692
- ],
693
- ) -> None: ...
694
-
695
- global___Discount = Discount
768
+ _HasFieldArgType: _TypeAlias = _typing.Literal[
769
+ "amount_off_cents",
770
+ b"amount_off_cents",
771
+ "applied_at",
772
+ b"applied_at",
773
+ "duration",
774
+ b"duration",
775
+ "duration_in_months",
776
+ b"duration_in_months",
777
+ "id",
778
+ b"id",
779
+ "name",
780
+ b"name",
781
+ "percent_off",
782
+ b"percent_off",
783
+ "type",
784
+ b"type",
785
+ "valid_until",
786
+ b"valid_until",
787
+ ] # noqa: Y015
788
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
789
+ _ClearFieldArgType: _TypeAlias = _typing.Literal[
790
+ "amount_off_cents",
791
+ b"amount_off_cents",
792
+ "applied_at",
793
+ b"applied_at",
794
+ "duration",
795
+ b"duration",
796
+ "duration_in_months",
797
+ b"duration_in_months",
798
+ "id",
799
+ b"id",
800
+ "name",
801
+ b"name",
802
+ "percent_off",
803
+ b"percent_off",
804
+ "type",
805
+ b"type",
806
+ "valid_until",
807
+ b"valid_until",
808
+ ] # noqa: Y015
809
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
810
+
811
+ Global___Discount: _TypeAlias = Discount # noqa: Y015