weave-python 0.26.1__py3-none-any.whl → 0.27.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. weave/weaveapi/auth/v1/service_pb2.py +228 -0
  2. weave/weaveapi/auth/v1/service_pb2.pyi +1406 -0
  3. weave/weaveapi/auth/v1/service_pb2_grpc.py +1091 -0
  4. weave/weaveapi/auth/v1/service_pb2_grpc.pyi +606 -0
  5. weave/weaveapi/auth/v1/session_pb2.py +38 -0
  6. weave/weaveapi/auth/v1/session_pb2.pyi +111 -0
  7. weave/weaveapi/auth/v1/session_pb2_grpc.py +2 -0
  8. weave/weaveapi/auth/v1/session_pb2_grpc.pyi +20 -0
  9. weave/weaveapi/auth/v1/usage_pb2.py +52 -0
  10. weave/weaveapi/auth/v1/usage_pb2.pyi +241 -0
  11. weave/weaveapi/auth/v1/usage_pb2_grpc.py +2 -0
  12. weave/weaveapi/auth/v1/usage_pb2_grpc.pyi +20 -0
  13. weave/weaveapi/auth/v1/user_pb2.py +52 -0
  14. weave/weaveapi/auth/v1/user_pb2.pyi +594 -0
  15. weave/weaveapi/auth/v1/user_pb2_grpc.py +2 -0
  16. weave/weaveapi/auth/v1/user_pb2_grpc.pyi +20 -0
  17. weave/weaveapi/generate/v1/configuration_pb2.py +3 -3
  18. weave/weaveapi/generate/v1/generate_pb2.py +2 -2
  19. weave/weaveapi/generate/v1/service_pb2.py +2 -2
  20. weave/weaveapi/mcpregistry/v1/server_pb2.py +2 -2
  21. weave/weaveapi/mcpregistry/v1/service_pb2.py +3 -3
  22. weave/weaveapi/modex/v1/model_pb2.py +58 -0
  23. weave/weaveapi/modex/v1/model_pb2.pyi +642 -0
  24. weave/weaveapi/modex/v1/model_pb2_grpc.py +2 -0
  25. weave/weaveapi/modex/v1/model_pb2_grpc.pyi +20 -0
  26. weave/weaveapi/modex/v1/provider_pb2.py +38 -0
  27. weave/weaveapi/modex/v1/provider_pb2.pyi +91 -0
  28. weave/weaveapi/modex/v1/provider_pb2_grpc.py +2 -0
  29. weave/weaveapi/modex/v1/provider_pb2_grpc.pyi +20 -0
  30. weave/weaveapi/modex/v1/service_pb2.py +180 -0
  31. weave/weaveapi/modex/v1/service_pb2.pyi +1641 -0
  32. weave/weaveapi/modex/v1/service_pb2_grpc.py +602 -0
  33. weave/weaveapi/modex/v1/service_pb2_grpc.pyi +268 -0
  34. weave/weaveapi/payment/v1/invoice_pb2.py +46 -0
  35. weave/weaveapi/payment/v1/invoice_pb2.pyi +349 -0
  36. weave/weaveapi/payment/v1/invoice_pb2_grpc.py +2 -0
  37. weave/weaveapi/payment/v1/invoice_pb2_grpc.pyi +20 -0
  38. weave/weaveapi/payment/v1/service_pb2.py +244 -0
  39. weave/weaveapi/payment/v1/service_pb2.pyi +1492 -0
  40. weave/weaveapi/payment/v1/service_pb2_grpc.py +957 -0
  41. weave/weaveapi/payment/v1/service_pb2_grpc.pyi +572 -0
  42. weave/weaveapi/payment/v1/subscription_pb2.py +59 -0
  43. weave/weaveapi/payment/v1/subscription_pb2.pyi +695 -0
  44. weave/weaveapi/payment/v1/subscription_pb2_grpc.py +2 -0
  45. weave/weaveapi/payment/v1/subscription_pb2_grpc.pyi +20 -0
  46. weave/weaveapi/storage/v1/auth_pb2.py +2 -2
  47. weave/weaveapi/storage/v1/nosql_database_pb2.py +3 -3
  48. weave/weaveapi/storage/v1/object_store_pb2.py +3 -3
  49. weave/weaveapi/storage/v1/service_pb2.py +2 -2
  50. weave/weaveapi/storage/v1/sql_database_pb2.py +3 -3
  51. weave/weaveapi/storage/v1/storage_pb2.py +2 -2
  52. weave/weaveapi/synthesize/v1/dataset_pb2.py +2 -2
  53. weave/weaveapi/synthesize/v1/inline_data_pb2.py +3 -3
  54. weave/weaveapi/synthesize/v1/relationship_pb2.py +3 -3
  55. weave/weaveapi/synthesize/v1/service_pb2.py +2 -2
  56. weave/weaveapi/synthesize/v1/training_pb2.py +3 -3
  57. weave/weavesql/{db → weavedb}/queries.py +1 -1
  58. {weave_python-0.26.1.dist-info → weave_python-0.27.0.dist-info}/METADATA +1 -1
  59. weave_python-0.27.0.dist-info/RECORD +109 -0
  60. weave_python-0.26.1.dist-info/RECORD +0 -69
  61. /weave/weavesql/{db → weavedb}/models.py +0 -0
  62. {weave_python-0.26.1.dist-info → weave_python-0.27.0.dist-info}/WHEEL +0 -0
@@ -0,0 +1,695 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ import builtins
7
+ import collections.abc
8
+ import google.protobuf.descriptor
9
+ import google.protobuf.internal.containers
10
+ import google.protobuf.message
11
+ import google.protobuf.timestamp_pb2
12
+ import typing
13
+
14
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
15
+
16
+ @typing.final
17
+ class 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
40
+ """Stripe subscription ID"""
41
+ status: builtins.str
42
+ """active, past_due, canceled, trialing, incomplete"""
43
+ tier: builtins.str
44
+ """free, pro"""
45
+ cancel_at_period_end: builtins.bool
46
+ currency: builtins.str
47
+ amount_cents: builtins.int
48
+ """Amount in cents"""
49
+ is_trial: builtins.bool
50
+ """Trial"""
51
+ @property
52
+ def plan(self) -> global___PricingPlan:
53
+ """Billing details"""
54
+
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:
69
+ """Payment"""
70
+
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:
77
+ """Discount"""
78
+
79
+ @property
80
+ def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
81
+ """Metadata"""
82
+
83
+ @property
84
+ def updated_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
85
+ @property
86
+ def features(self) -> global___SubscriptionFeatures:
87
+ """Additional features"""
88
+
89
+ def __init__(
90
+ self,
91
+ *,
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
+ ],
183
+ ) -> 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
204
+ """Stripe price ID"""
205
+ product_id: builtins.str
206
+ """Stripe product ID"""
207
+ name: builtins.str
208
+ """"Free", "Pro" """
209
+ description: builtins.str
210
+ amount_cents: builtins.int
211
+ """Monthly price in cents"""
212
+ currency: builtins.str
213
+ interval: builtins.str
214
+ """month, year"""
215
+ interval_count: builtins.int
216
+ """1 for monthly, 12 for yearly"""
217
+ is_default: builtins.bool
218
+ """Metadata"""
219
+ is_popular: builtins.bool
220
+ @property
221
+ def features(self) -> global___SubscriptionFeatures:
222
+ """Features"""
223
+
224
+ @property
225
+ def highlights(
226
+ self,
227
+ ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
228
+ """Key selling points"""
229
+
230
+ def __init__(
231
+ self,
232
+ *,
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 = ...,
245
+ ) -> 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
311
+ """Advanced features"""
312
+ team_members_limit: builtins.int
313
+ sso_access: builtins.bool
314
+ audit_logs: builtins.bool
315
+ sla_guarantee: builtins.bool
316
+ def __init__(
317
+ self,
318
+ *,
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 = ...,
334
+ ) -> 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
385
+ """Stripe payment method ID"""
386
+ type: builtins.str
387
+ """card, bank_account"""
388
+ is_default: builtins.bool
389
+ @property
390
+ def card(self) -> global___CardDetails:
391
+ """Card details (if type == "card")"""
392
+
393
+ @property
394
+ def bank(self) -> global___BankDetails:
395
+ """Bank details (if type == "bank_account")"""
396
+
397
+ @property
398
+ def billing_details(self) -> global___BillingDetails:
399
+ """Billing details"""
400
+
401
+ @property
402
+ def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
403
+ def __init__(
404
+ self,
405
+ *,
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 = ...,
413
+ ) -> 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
461
+ """visa, mastercard, amex, etc"""
462
+ last4: builtins.str
463
+ exp_month: builtins.int
464
+ exp_year: builtins.int
465
+ funding: builtins.str
466
+ """credit, debit, prepaid"""
467
+ country: builtins.str
468
+ fingerprint: builtins.str
469
+ """Unique card identifier"""
470
+ def __init__(
471
+ self,
472
+ *,
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 = ...,
480
+ ) -> 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
517
+ def __init__(
518
+ self,
519
+ *,
520
+ bank_name: builtins.str = ...,
521
+ last4: builtins.str = ...,
522
+ account_type: builtins.str = ...,
523
+ country: builtins.str = ...,
524
+ currency: builtins.str = ...,
525
+ ) -> 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: ...
557
+ def __init__(
558
+ self,
559
+ *,
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
+ ],
573
+ ) -> 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
593
+ """ISO country code"""
594
+ def __init__(
595
+ self,
596
+ *,
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 = ...,
603
+ ) -> 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
638
+ """Stripe coupon ID"""
639
+ name: builtins.str
640
+ type: builtins.str
641
+ """percentage, fixed_amount"""
642
+ percent_off: builtins.float
643
+ amount_off_cents: builtins.int
644
+ duration: builtins.str
645
+ """forever, once, repeating"""
646
+ duration_in_months: builtins.int
647
+ """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: ...
652
+ def __init__(
653
+ self,
654
+ *,
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 = ...,
664
+ ) -> 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
@@ -0,0 +1,2 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""