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,1492 @@
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
+ import weaveapi.payment.v1.invoice_pb2
14
+ import weaveapi.payment.v1.subscription_pb2
15
+
16
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
17
+
18
+ @typing.final
19
+ class CreateCheckoutSessionRequest(google.protobuf.message.Message):
20
+ """Request/Response messages"""
21
+
22
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
23
+
24
+ @typing.final
25
+ class MetadataEntry(google.protobuf.message.Message):
26
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
27
+
28
+ KEY_FIELD_NUMBER: builtins.int
29
+ VALUE_FIELD_NUMBER: builtins.int
30
+ key: builtins.str
31
+ value: builtins.str
32
+ def __init__(
33
+ self,
34
+ *,
35
+ key: builtins.str = ...,
36
+ value: builtins.str = ...,
37
+ ) -> None: ...
38
+ def ClearField(
39
+ self, field_name: typing.Literal["key", b"key", "value", b"value"]
40
+ ) -> None: ...
41
+
42
+ PRICE_ID_FIELD_NUMBER: builtins.int
43
+ SUCCESS_URL_FIELD_NUMBER: builtins.int
44
+ CANCEL_URL_FIELD_NUMBER: builtins.int
45
+ PROMO_CODE_FIELD_NUMBER: builtins.int
46
+ ALLOW_PROMOTION_CODES_FIELD_NUMBER: builtins.int
47
+ TRIAL_DAYS_FIELD_NUMBER: builtins.int
48
+ METADATA_FIELD_NUMBER: builtins.int
49
+ CUSTOMER_EMAIL_FIELD_NUMBER: builtins.int
50
+ AUTOMATIC_TAX_FIELD_NUMBER: builtins.int
51
+ TAX_ID_COLLECTION_FIELD_NUMBER: builtins.int
52
+ price_id: builtins.str
53
+ """Stripe price ID for the plan"""
54
+ success_url: builtins.str
55
+ """Where to redirect on success"""
56
+ cancel_url: builtins.str
57
+ """Where to redirect on cancel"""
58
+ promo_code: builtins.str
59
+ """Optional parameters"""
60
+ allow_promotion_codes: builtins.bool
61
+ trial_days: builtins.int
62
+ customer_email: builtins.str
63
+ """Customer info (if not logged in)"""
64
+ automatic_tax: builtins.bool
65
+ """Tax"""
66
+ @property
67
+ def metadata(
68
+ self,
69
+ ) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
70
+ @property
71
+ def tax_id_collection(
72
+ self,
73
+ ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
74
+ """Types of tax IDs to collect"""
75
+
76
+ def __init__(
77
+ self,
78
+ *,
79
+ price_id: builtins.str = ...,
80
+ success_url: builtins.str = ...,
81
+ cancel_url: builtins.str = ...,
82
+ promo_code: builtins.str = ...,
83
+ allow_promotion_codes: builtins.bool = ...,
84
+ trial_days: builtins.int = ...,
85
+ metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
86
+ customer_email: builtins.str = ...,
87
+ automatic_tax: builtins.bool = ...,
88
+ tax_id_collection: collections.abc.Iterable[builtins.str] | None = ...,
89
+ ) -> None: ...
90
+ def ClearField(
91
+ self,
92
+ field_name: typing.Literal[
93
+ "allow_promotion_codes",
94
+ b"allow_promotion_codes",
95
+ "automatic_tax",
96
+ b"automatic_tax",
97
+ "cancel_url",
98
+ b"cancel_url",
99
+ "customer_email",
100
+ b"customer_email",
101
+ "metadata",
102
+ b"metadata",
103
+ "price_id",
104
+ b"price_id",
105
+ "promo_code",
106
+ b"promo_code",
107
+ "success_url",
108
+ b"success_url",
109
+ "tax_id_collection",
110
+ b"tax_id_collection",
111
+ "trial_days",
112
+ b"trial_days",
113
+ ],
114
+ ) -> None: ...
115
+
116
+ global___CreateCheckoutSessionRequest = CreateCheckoutSessionRequest
117
+
118
+ @typing.final
119
+ class CreateCheckoutSessionResponse(google.protobuf.message.Message):
120
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
121
+
122
+ SESSION_ID_FIELD_NUMBER: builtins.int
123
+ CHECKOUT_URL_FIELD_NUMBER: builtins.int
124
+ EXPIRES_AT_FIELD_NUMBER: builtins.int
125
+ session_id: builtins.str
126
+ checkout_url: builtins.str
127
+ """Stripe hosted checkout URL"""
128
+ @property
129
+ def expires_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
130
+ def __init__(
131
+ self,
132
+ *,
133
+ session_id: builtins.str = ...,
134
+ checkout_url: builtins.str = ...,
135
+ expires_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
136
+ ) -> None: ...
137
+ def HasField(
138
+ self, field_name: typing.Literal["expires_at", b"expires_at"]
139
+ ) -> builtins.bool: ...
140
+ def ClearField(
141
+ self,
142
+ field_name: typing.Literal[
143
+ "checkout_url",
144
+ b"checkout_url",
145
+ "expires_at",
146
+ b"expires_at",
147
+ "session_id",
148
+ b"session_id",
149
+ ],
150
+ ) -> None: ...
151
+
152
+ global___CreateCheckoutSessionResponse = CreateCheckoutSessionResponse
153
+
154
+ @typing.final
155
+ class GetSubscriptionStatusRequest(google.protobuf.message.Message):
156
+ """Uses JWT from Authorization header"""
157
+
158
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
159
+
160
+ def __init__(
161
+ self,
162
+ ) -> None: ...
163
+
164
+ global___GetSubscriptionStatusRequest = GetSubscriptionStatusRequest
165
+
166
+ @typing.final
167
+ class GetSubscriptionStatusResponse(google.protobuf.message.Message):
168
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
169
+
170
+ SUBSCRIPTION_FIELD_NUMBER: builtins.int
171
+ @property
172
+ def subscription(
173
+ self,
174
+ ) -> weaveapi.payment.v1.subscription_pb2.SubscriptionStatus: ...
175
+ def __init__(
176
+ self,
177
+ *,
178
+ subscription: weaveapi.payment.v1.subscription_pb2.SubscriptionStatus
179
+ | None = ...,
180
+ ) -> None: ...
181
+ def HasField(
182
+ self, field_name: typing.Literal["subscription", b"subscription"]
183
+ ) -> builtins.bool: ...
184
+ def ClearField(
185
+ self, field_name: typing.Literal["subscription", b"subscription"]
186
+ ) -> None: ...
187
+
188
+ global___GetSubscriptionStatusResponse = GetSubscriptionStatusResponse
189
+
190
+ @typing.final
191
+ class UpdateSubscriptionRequest(google.protobuf.message.Message):
192
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
193
+
194
+ @typing.final
195
+ class MetadataEntry(google.protobuf.message.Message):
196
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
197
+
198
+ KEY_FIELD_NUMBER: builtins.int
199
+ VALUE_FIELD_NUMBER: builtins.int
200
+ key: builtins.str
201
+ value: builtins.str
202
+ def __init__(
203
+ self,
204
+ *,
205
+ key: builtins.str = ...,
206
+ value: builtins.str = ...,
207
+ ) -> None: ...
208
+ def ClearField(
209
+ self, field_name: typing.Literal["key", b"key", "value", b"value"]
210
+ ) -> None: ...
211
+
212
+ PAYMENT_METHOD_ID_FIELD_NUMBER: builtins.int
213
+ PROMO_CODE_FIELD_NUMBER: builtins.int
214
+ CANCEL_AT_PERIOD_END_FIELD_NUMBER: builtins.int
215
+ METADATA_FIELD_NUMBER: builtins.int
216
+ payment_method_id: builtins.str
217
+ promo_code: builtins.str
218
+ cancel_at_period_end: builtins.bool
219
+ @property
220
+ def metadata(
221
+ self,
222
+ ) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
223
+ def __init__(
224
+ self,
225
+ *,
226
+ payment_method_id: builtins.str = ...,
227
+ promo_code: builtins.str = ...,
228
+ cancel_at_period_end: builtins.bool = ...,
229
+ metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
230
+ ) -> None: ...
231
+ def ClearField(
232
+ self,
233
+ field_name: typing.Literal[
234
+ "cancel_at_period_end",
235
+ b"cancel_at_period_end",
236
+ "metadata",
237
+ b"metadata",
238
+ "payment_method_id",
239
+ b"payment_method_id",
240
+ "promo_code",
241
+ b"promo_code",
242
+ ],
243
+ ) -> None: ...
244
+
245
+ global___UpdateSubscriptionRequest = UpdateSubscriptionRequest
246
+
247
+ @typing.final
248
+ class UpdateSubscriptionResponse(google.protobuf.message.Message):
249
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
250
+
251
+ SUBSCRIPTION_FIELD_NUMBER: builtins.int
252
+ MESSAGE_FIELD_NUMBER: builtins.int
253
+ message: builtins.str
254
+ @property
255
+ def subscription(
256
+ self,
257
+ ) -> weaveapi.payment.v1.subscription_pb2.SubscriptionStatus: ...
258
+ def __init__(
259
+ self,
260
+ *,
261
+ subscription: weaveapi.payment.v1.subscription_pb2.SubscriptionStatus
262
+ | None = ...,
263
+ message: builtins.str = ...,
264
+ ) -> None: ...
265
+ def HasField(
266
+ self, field_name: typing.Literal["subscription", b"subscription"]
267
+ ) -> builtins.bool: ...
268
+ def ClearField(
269
+ self,
270
+ field_name: typing.Literal[
271
+ "message", b"message", "subscription", b"subscription"
272
+ ],
273
+ ) -> None: ...
274
+
275
+ global___UpdateSubscriptionResponse = UpdateSubscriptionResponse
276
+
277
+ @typing.final
278
+ class CancelSubscriptionRequest(google.protobuf.message.Message):
279
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
280
+
281
+ IMMEDIATELY_FIELD_NUMBER: builtins.int
282
+ REASON_FIELD_NUMBER: builtins.int
283
+ FEEDBACK_FIELD_NUMBER: builtins.int
284
+ immediately: builtins.bool
285
+ """If true, cancel immediately; otherwise at period end"""
286
+ reason: builtins.str
287
+ """Optional cancellation reason"""
288
+ feedback: builtins.str
289
+ """Optional user feedback"""
290
+ def __init__(
291
+ self,
292
+ *,
293
+ immediately: builtins.bool = ...,
294
+ reason: builtins.str = ...,
295
+ feedback: builtins.str = ...,
296
+ ) -> None: ...
297
+ def ClearField(
298
+ self,
299
+ field_name: typing.Literal[
300
+ "feedback", b"feedback", "immediately", b"immediately", "reason", b"reason"
301
+ ],
302
+ ) -> None: ...
303
+
304
+ global___CancelSubscriptionRequest = CancelSubscriptionRequest
305
+
306
+ @typing.final
307
+ class CancelSubscriptionResponse(google.protobuf.message.Message):
308
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
309
+
310
+ SUBSCRIPTION_FIELD_NUMBER: builtins.int
311
+ EFFECTIVE_DATE_FIELD_NUMBER: builtins.int
312
+ CONFIRMATION_FIELD_NUMBER: builtins.int
313
+ confirmation: builtins.str
314
+ @property
315
+ def subscription(
316
+ self,
317
+ ) -> weaveapi.payment.v1.subscription_pb2.SubscriptionStatus: ...
318
+ @property
319
+ def effective_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
320
+ def __init__(
321
+ self,
322
+ *,
323
+ subscription: weaveapi.payment.v1.subscription_pb2.SubscriptionStatus
324
+ | None = ...,
325
+ effective_date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
326
+ confirmation: builtins.str = ...,
327
+ ) -> None: ...
328
+ def HasField(
329
+ self,
330
+ field_name: typing.Literal[
331
+ "effective_date", b"effective_date", "subscription", b"subscription"
332
+ ],
333
+ ) -> builtins.bool: ...
334
+ def ClearField(
335
+ self,
336
+ field_name: typing.Literal[
337
+ "confirmation",
338
+ b"confirmation",
339
+ "effective_date",
340
+ b"effective_date",
341
+ "subscription",
342
+ b"subscription",
343
+ ],
344
+ ) -> None: ...
345
+
346
+ global___CancelSubscriptionResponse = CancelSubscriptionResponse
347
+
348
+ @typing.final
349
+ class ResumeSubscriptionRequest(google.protobuf.message.Message):
350
+ """Resume a subscription that was set to cancel at period end"""
351
+
352
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
353
+
354
+ def __init__(
355
+ self,
356
+ ) -> None: ...
357
+
358
+ global___ResumeSubscriptionRequest = ResumeSubscriptionRequest
359
+
360
+ @typing.final
361
+ class ResumeSubscriptionResponse(google.protobuf.message.Message):
362
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
363
+
364
+ SUBSCRIPTION_FIELD_NUMBER: builtins.int
365
+ MESSAGE_FIELD_NUMBER: builtins.int
366
+ message: builtins.str
367
+ @property
368
+ def subscription(
369
+ self,
370
+ ) -> weaveapi.payment.v1.subscription_pb2.SubscriptionStatus: ...
371
+ def __init__(
372
+ self,
373
+ *,
374
+ subscription: weaveapi.payment.v1.subscription_pb2.SubscriptionStatus
375
+ | None = ...,
376
+ message: builtins.str = ...,
377
+ ) -> None: ...
378
+ def HasField(
379
+ self, field_name: typing.Literal["subscription", b"subscription"]
380
+ ) -> builtins.bool: ...
381
+ def ClearField(
382
+ self,
383
+ field_name: typing.Literal[
384
+ "message", b"message", "subscription", b"subscription"
385
+ ],
386
+ ) -> None: ...
387
+
388
+ global___ResumeSubscriptionResponse = ResumeSubscriptionResponse
389
+
390
+ @typing.final
391
+ class GetBillingHistoryRequest(google.protobuf.message.Message):
392
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
393
+
394
+ LIMIT_FIELD_NUMBER: builtins.int
395
+ STARTING_AFTER_FIELD_NUMBER: builtins.int
396
+ ENDING_BEFORE_FIELD_NUMBER: builtins.int
397
+ STATUS_FIELD_NUMBER: builtins.int
398
+ CREATED_AFTER_FIELD_NUMBER: builtins.int
399
+ CREATED_BEFORE_FIELD_NUMBER: builtins.int
400
+ limit: builtins.int
401
+ """Default 10"""
402
+ starting_after: builtins.str
403
+ """Pagination cursor"""
404
+ ending_before: builtins.str
405
+ """Pagination cursor"""
406
+ status: builtins.str
407
+ """Filters
408
+ paid, open, void
409
+ """
410
+ @property
411
+ def created_after(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
412
+ @property
413
+ def created_before(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
414
+ def __init__(
415
+ self,
416
+ *,
417
+ limit: builtins.int = ...,
418
+ starting_after: builtins.str = ...,
419
+ ending_before: builtins.str = ...,
420
+ status: builtins.str = ...,
421
+ created_after: google.protobuf.timestamp_pb2.Timestamp | None = ...,
422
+ created_before: google.protobuf.timestamp_pb2.Timestamp | None = ...,
423
+ ) -> None: ...
424
+ def HasField(
425
+ self,
426
+ field_name: typing.Literal[
427
+ "created_after", b"created_after", "created_before", b"created_before"
428
+ ],
429
+ ) -> builtins.bool: ...
430
+ def ClearField(
431
+ self,
432
+ field_name: typing.Literal[
433
+ "created_after",
434
+ b"created_after",
435
+ "created_before",
436
+ b"created_before",
437
+ "ending_before",
438
+ b"ending_before",
439
+ "limit",
440
+ b"limit",
441
+ "starting_after",
442
+ b"starting_after",
443
+ "status",
444
+ b"status",
445
+ ],
446
+ ) -> None: ...
447
+
448
+ global___GetBillingHistoryRequest = GetBillingHistoryRequest
449
+
450
+ @typing.final
451
+ class GetBillingHistoryResponse(google.protobuf.message.Message):
452
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
453
+
454
+ INVOICES_FIELD_NUMBER: builtins.int
455
+ HAS_MORE_FIELD_NUMBER: builtins.int
456
+ NEXT_CURSOR_FIELD_NUMBER: builtins.int
457
+ PREVIOUS_CURSOR_FIELD_NUMBER: builtins.int
458
+ has_more: builtins.bool
459
+ next_cursor: builtins.str
460
+ previous_cursor: builtins.str
461
+ @property
462
+ def invoices(
463
+ self,
464
+ ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
465
+ weaveapi.payment.v1.invoice_pb2.Invoice
466
+ ]: ...
467
+ def __init__(
468
+ self,
469
+ *,
470
+ invoices: collections.abc.Iterable[weaveapi.payment.v1.invoice_pb2.Invoice]
471
+ | None = ...,
472
+ has_more: builtins.bool = ...,
473
+ next_cursor: builtins.str = ...,
474
+ previous_cursor: builtins.str = ...,
475
+ ) -> None: ...
476
+ def ClearField(
477
+ self,
478
+ field_name: typing.Literal[
479
+ "has_more",
480
+ b"has_more",
481
+ "invoices",
482
+ b"invoices",
483
+ "next_cursor",
484
+ b"next_cursor",
485
+ "previous_cursor",
486
+ b"previous_cursor",
487
+ ],
488
+ ) -> None: ...
489
+
490
+ global___GetBillingHistoryResponse = GetBillingHistoryResponse
491
+
492
+ @typing.final
493
+ class GetUpcomingInvoiceRequest(google.protobuf.message.Message):
494
+ """Preview next invoice"""
495
+
496
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
497
+
498
+ def __init__(
499
+ self,
500
+ ) -> None: ...
501
+
502
+ global___GetUpcomingInvoiceRequest = GetUpcomingInvoiceRequest
503
+
504
+ @typing.final
505
+ class GetUpcomingInvoiceResponse(google.protobuf.message.Message):
506
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
507
+
508
+ INVOICE_FIELD_NUMBER: builtins.int
509
+ @property
510
+ def invoice(self) -> weaveapi.payment.v1.invoice_pb2.Invoice: ...
511
+ def __init__(
512
+ self,
513
+ *,
514
+ invoice: weaveapi.payment.v1.invoice_pb2.Invoice | None = ...,
515
+ ) -> None: ...
516
+ def HasField(
517
+ self, field_name: typing.Literal["invoice", b"invoice"]
518
+ ) -> builtins.bool: ...
519
+ def ClearField(self, field_name: typing.Literal["invoice", b"invoice"]) -> None: ...
520
+
521
+ global___GetUpcomingInvoiceResponse = GetUpcomingInvoiceResponse
522
+
523
+ @typing.final
524
+ class ListPaymentMethodsRequest(google.protobuf.message.Message):
525
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
526
+
527
+ TYPE_FIELD_NUMBER: builtins.int
528
+ type: builtins.str
529
+ """card, bank_account, or empty for all"""
530
+ def __init__(
531
+ self,
532
+ *,
533
+ type: builtins.str = ...,
534
+ ) -> None: ...
535
+ def ClearField(self, field_name: typing.Literal["type", b"type"]) -> None: ...
536
+
537
+ global___ListPaymentMethodsRequest = ListPaymentMethodsRequest
538
+
539
+ @typing.final
540
+ class ListPaymentMethodsResponse(google.protobuf.message.Message):
541
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
542
+
543
+ PAYMENT_METHODS_FIELD_NUMBER: builtins.int
544
+ DEFAULT_PAYMENT_METHOD_ID_FIELD_NUMBER: builtins.int
545
+ default_payment_method_id: builtins.str
546
+ @property
547
+ def payment_methods(
548
+ self,
549
+ ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
550
+ weaveapi.payment.v1.subscription_pb2.PaymentMethod
551
+ ]: ...
552
+ def __init__(
553
+ self,
554
+ *,
555
+ payment_methods: collections.abc.Iterable[
556
+ weaveapi.payment.v1.subscription_pb2.PaymentMethod
557
+ ]
558
+ | None = ...,
559
+ default_payment_method_id: builtins.str = ...,
560
+ ) -> None: ...
561
+ def ClearField(
562
+ self,
563
+ field_name: typing.Literal[
564
+ "default_payment_method_id",
565
+ b"default_payment_method_id",
566
+ "payment_methods",
567
+ b"payment_methods",
568
+ ],
569
+ ) -> None: ...
570
+
571
+ global___ListPaymentMethodsResponse = ListPaymentMethodsResponse
572
+
573
+ @typing.final
574
+ class AddPaymentMethodRequest(google.protobuf.message.Message):
575
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
576
+
577
+ PAYMENT_METHOD_ID_FIELD_NUMBER: builtins.int
578
+ SET_AS_DEFAULT_FIELD_NUMBER: builtins.int
579
+ payment_method_id: builtins.str
580
+ """Stripe payment method ID from frontend"""
581
+ set_as_default: builtins.bool
582
+ def __init__(
583
+ self,
584
+ *,
585
+ payment_method_id: builtins.str = ...,
586
+ set_as_default: builtins.bool = ...,
587
+ ) -> None: ...
588
+ def ClearField(
589
+ self,
590
+ field_name: typing.Literal[
591
+ "payment_method_id",
592
+ b"payment_method_id",
593
+ "set_as_default",
594
+ b"set_as_default",
595
+ ],
596
+ ) -> None: ...
597
+
598
+ global___AddPaymentMethodRequest = AddPaymentMethodRequest
599
+
600
+ @typing.final
601
+ class AddPaymentMethodResponse(google.protobuf.message.Message):
602
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
603
+
604
+ PAYMENT_METHOD_FIELD_NUMBER: builtins.int
605
+ IS_DEFAULT_FIELD_NUMBER: builtins.int
606
+ is_default: builtins.bool
607
+ @property
608
+ def payment_method(self) -> weaveapi.payment.v1.subscription_pb2.PaymentMethod: ...
609
+ def __init__(
610
+ self,
611
+ *,
612
+ payment_method: weaveapi.payment.v1.subscription_pb2.PaymentMethod | None = ...,
613
+ is_default: builtins.bool = ...,
614
+ ) -> None: ...
615
+ def HasField(
616
+ self, field_name: typing.Literal["payment_method", b"payment_method"]
617
+ ) -> builtins.bool: ...
618
+ def ClearField(
619
+ self,
620
+ field_name: typing.Literal[
621
+ "is_default", b"is_default", "payment_method", b"payment_method"
622
+ ],
623
+ ) -> None: ...
624
+
625
+ global___AddPaymentMethodResponse = AddPaymentMethodResponse
626
+
627
+ @typing.final
628
+ class SetDefaultPaymentMethodRequest(google.protobuf.message.Message):
629
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
630
+
631
+ PAYMENT_METHOD_ID_FIELD_NUMBER: builtins.int
632
+ payment_method_id: builtins.str
633
+ def __init__(
634
+ self,
635
+ *,
636
+ payment_method_id: builtins.str = ...,
637
+ ) -> None: ...
638
+ def ClearField(
639
+ self, field_name: typing.Literal["payment_method_id", b"payment_method_id"]
640
+ ) -> None: ...
641
+
642
+ global___SetDefaultPaymentMethodRequest = SetDefaultPaymentMethodRequest
643
+
644
+ @typing.final
645
+ class SetDefaultPaymentMethodResponse(google.protobuf.message.Message):
646
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
647
+
648
+ SUCCESS_FIELD_NUMBER: builtins.int
649
+ MESSAGE_FIELD_NUMBER: builtins.int
650
+ success: builtins.bool
651
+ message: builtins.str
652
+ def __init__(
653
+ self,
654
+ *,
655
+ success: builtins.bool = ...,
656
+ message: builtins.str = ...,
657
+ ) -> None: ...
658
+ def ClearField(
659
+ self, field_name: typing.Literal["message", b"message", "success", b"success"]
660
+ ) -> None: ...
661
+
662
+ global___SetDefaultPaymentMethodResponse = SetDefaultPaymentMethodResponse
663
+
664
+ @typing.final
665
+ class RemovePaymentMethodRequest(google.protobuf.message.Message):
666
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
667
+
668
+ PAYMENT_METHOD_ID_FIELD_NUMBER: builtins.int
669
+ payment_method_id: builtins.str
670
+ def __init__(
671
+ self,
672
+ *,
673
+ payment_method_id: builtins.str = ...,
674
+ ) -> None: ...
675
+ def ClearField(
676
+ self, field_name: typing.Literal["payment_method_id", b"payment_method_id"]
677
+ ) -> None: ...
678
+
679
+ global___RemovePaymentMethodRequest = RemovePaymentMethodRequest
680
+
681
+ @typing.final
682
+ class RemovePaymentMethodResponse(google.protobuf.message.Message):
683
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
684
+
685
+ SUCCESS_FIELD_NUMBER: builtins.int
686
+ MESSAGE_FIELD_NUMBER: builtins.int
687
+ REMAINING_METHODS_FIELD_NUMBER: builtins.int
688
+ success: builtins.bool
689
+ message: builtins.str
690
+ remaining_methods: builtins.int
691
+ def __init__(
692
+ self,
693
+ *,
694
+ success: builtins.bool = ...,
695
+ message: builtins.str = ...,
696
+ remaining_methods: builtins.int = ...,
697
+ ) -> None: ...
698
+ def ClearField(
699
+ self,
700
+ field_name: typing.Literal[
701
+ "message",
702
+ b"message",
703
+ "remaining_methods",
704
+ b"remaining_methods",
705
+ "success",
706
+ b"success",
707
+ ],
708
+ ) -> None: ...
709
+
710
+ global___RemovePaymentMethodResponse = RemovePaymentMethodResponse
711
+
712
+ @typing.final
713
+ class CreatePortalSessionRequest(google.protobuf.message.Message):
714
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
715
+
716
+ RETURN_URL_FIELD_NUMBER: builtins.int
717
+ return_url: builtins.str
718
+ """Where to return after portal session"""
719
+ def __init__(
720
+ self,
721
+ *,
722
+ return_url: builtins.str = ...,
723
+ ) -> None: ...
724
+ def ClearField(
725
+ self, field_name: typing.Literal["return_url", b"return_url"]
726
+ ) -> None: ...
727
+
728
+ global___CreatePortalSessionRequest = CreatePortalSessionRequest
729
+
730
+ @typing.final
731
+ class CreatePortalSessionResponse(google.protobuf.message.Message):
732
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
733
+
734
+ PORTAL_URL_FIELD_NUMBER: builtins.int
735
+ EXPIRES_AT_FIELD_NUMBER: builtins.int
736
+ portal_url: builtins.str
737
+ """Stripe customer portal URL"""
738
+ @property
739
+ def expires_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
740
+ def __init__(
741
+ self,
742
+ *,
743
+ portal_url: builtins.str = ...,
744
+ expires_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
745
+ ) -> None: ...
746
+ def HasField(
747
+ self, field_name: typing.Literal["expires_at", b"expires_at"]
748
+ ) -> builtins.bool: ...
749
+ def ClearField(
750
+ self,
751
+ field_name: typing.Literal[
752
+ "expires_at", b"expires_at", "portal_url", b"portal_url"
753
+ ],
754
+ ) -> None: ...
755
+
756
+ global___CreatePortalSessionResponse = CreatePortalSessionResponse
757
+
758
+ @typing.final
759
+ class GetPricingPlansRequest(google.protobuf.message.Message):
760
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
761
+
762
+ CURRENCY_FIELD_NUMBER: builtins.int
763
+ ACTIVE_ONLY_FIELD_NUMBER: builtins.int
764
+ currency: builtins.str
765
+ """Optional: filter by currency"""
766
+ active_only: builtins.bool
767
+ """Only show active plans"""
768
+ def __init__(
769
+ self,
770
+ *,
771
+ currency: builtins.str = ...,
772
+ active_only: builtins.bool = ...,
773
+ ) -> None: ...
774
+ def ClearField(
775
+ self,
776
+ field_name: typing.Literal[
777
+ "active_only", b"active_only", "currency", b"currency"
778
+ ],
779
+ ) -> None: ...
780
+
781
+ global___GetPricingPlansRequest = GetPricingPlansRequest
782
+
783
+ @typing.final
784
+ class GetPricingPlansResponse(google.protobuf.message.Message):
785
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
786
+
787
+ PLANS_FIELD_NUMBER: builtins.int
788
+ RECOMMENDED_PLAN_ID_FIELD_NUMBER: builtins.int
789
+ CURRENT_PLAN_FIELD_NUMBER: builtins.int
790
+ recommended_plan_id: builtins.str
791
+ @property
792
+ def plans(
793
+ self,
794
+ ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
795
+ weaveapi.payment.v1.subscription_pb2.PricingPlan
796
+ ]: ...
797
+ @property
798
+ def current_plan(self) -> weaveapi.payment.v1.subscription_pb2.PricingPlan:
799
+ """User's current plan if logged in"""
800
+
801
+ def __init__(
802
+ self,
803
+ *,
804
+ plans: collections.abc.Iterable[
805
+ weaveapi.payment.v1.subscription_pb2.PricingPlan
806
+ ]
807
+ | None = ...,
808
+ recommended_plan_id: builtins.str = ...,
809
+ current_plan: weaveapi.payment.v1.subscription_pb2.PricingPlan | None = ...,
810
+ ) -> None: ...
811
+ def HasField(
812
+ self, field_name: typing.Literal["current_plan", b"current_plan"]
813
+ ) -> builtins.bool: ...
814
+ def ClearField(
815
+ self,
816
+ field_name: typing.Literal[
817
+ "current_plan",
818
+ b"current_plan",
819
+ "plans",
820
+ b"plans",
821
+ "recommended_plan_id",
822
+ b"recommended_plan_id",
823
+ ],
824
+ ) -> None: ...
825
+
826
+ global___GetPricingPlansResponse = GetPricingPlansResponse
827
+
828
+ @typing.final
829
+ class ApplyPromoCodeRequest(google.protobuf.message.Message):
830
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
831
+
832
+ PROMO_CODE_FIELD_NUMBER: builtins.int
833
+ promo_code: builtins.str
834
+ def __init__(
835
+ self,
836
+ *,
837
+ promo_code: builtins.str = ...,
838
+ ) -> None: ...
839
+ def ClearField(
840
+ self, field_name: typing.Literal["promo_code", b"promo_code"]
841
+ ) -> None: ...
842
+
843
+ global___ApplyPromoCodeRequest = ApplyPromoCodeRequest
844
+
845
+ @typing.final
846
+ class ApplyPromoCodeResponse(google.protobuf.message.Message):
847
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
848
+
849
+ VALID_FIELD_NUMBER: builtins.int
850
+ DISCOUNT_FIELD_NUMBER: builtins.int
851
+ MESSAGE_FIELD_NUMBER: builtins.int
852
+ EXPIRES_AT_FIELD_NUMBER: builtins.int
853
+ valid: builtins.bool
854
+ message: builtins.str
855
+ @property
856
+ def discount(self) -> weaveapi.payment.v1.subscription_pb2.Discount: ...
857
+ @property
858
+ def expires_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
859
+ def __init__(
860
+ self,
861
+ *,
862
+ valid: builtins.bool = ...,
863
+ discount: weaveapi.payment.v1.subscription_pb2.Discount | None = ...,
864
+ message: builtins.str = ...,
865
+ expires_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
866
+ ) -> None: ...
867
+ def HasField(
868
+ self,
869
+ field_name: typing.Literal[
870
+ "discount", b"discount", "expires_at", b"expires_at"
871
+ ],
872
+ ) -> builtins.bool: ...
873
+ def ClearField(
874
+ self,
875
+ field_name: typing.Literal[
876
+ "discount",
877
+ b"discount",
878
+ "expires_at",
879
+ b"expires_at",
880
+ "message",
881
+ b"message",
882
+ "valid",
883
+ b"valid",
884
+ ],
885
+ ) -> None: ...
886
+
887
+ global___ApplyPromoCodeResponse = ApplyPromoCodeResponse
888
+
889
+ @typing.final
890
+ class HandleStripeWebhookRequest(google.protobuf.message.Message):
891
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
892
+
893
+ PAYLOAD_FIELD_NUMBER: builtins.int
894
+ SIGNATURE_FIELD_NUMBER: builtins.int
895
+ payload: builtins.bytes
896
+ """Raw webhook payload"""
897
+ signature: builtins.str
898
+ """Stripe-Signature header"""
899
+ def __init__(
900
+ self,
901
+ *,
902
+ payload: builtins.bytes = ...,
903
+ signature: builtins.str = ...,
904
+ ) -> None: ...
905
+ def ClearField(
906
+ self,
907
+ field_name: typing.Literal["payload", b"payload", "signature", b"signature"],
908
+ ) -> None: ...
909
+
910
+ global___HandleStripeWebhookRequest = HandleStripeWebhookRequest
911
+
912
+ @typing.final
913
+ class HandleStripeWebhookResponse(google.protobuf.message.Message):
914
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
915
+
916
+ SUCCESS_FIELD_NUMBER: builtins.int
917
+ EVENT_ID_FIELD_NUMBER: builtins.int
918
+ EVENT_TYPE_FIELD_NUMBER: builtins.int
919
+ MESSAGE_FIELD_NUMBER: builtins.int
920
+ success: builtins.bool
921
+ event_id: builtins.str
922
+ event_type: builtins.str
923
+ message: builtins.str
924
+ def __init__(
925
+ self,
926
+ *,
927
+ success: builtins.bool = ...,
928
+ event_id: builtins.str = ...,
929
+ event_type: builtins.str = ...,
930
+ message: builtins.str = ...,
931
+ ) -> None: ...
932
+ def ClearField(
933
+ self,
934
+ field_name: typing.Literal[
935
+ "event_id",
936
+ b"event_id",
937
+ "event_type",
938
+ b"event_type",
939
+ "message",
940
+ b"message",
941
+ "success",
942
+ b"success",
943
+ ],
944
+ ) -> None: ...
945
+
946
+ global___HandleStripeWebhookResponse = HandleStripeWebhookResponse
947
+
948
+ @typing.final
949
+ class GetUsageSummaryRequest(google.protobuf.message.Message):
950
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
951
+
952
+ PERIOD_FIELD_NUMBER: builtins.int
953
+ START_DATE_FIELD_NUMBER: builtins.int
954
+ END_DATE_FIELD_NUMBER: builtins.int
955
+ period: builtins.str
956
+ """current, previous, custom"""
957
+ @property
958
+ def start_date(self) -> google.protobuf.timestamp_pb2.Timestamp:
959
+ """For custom period"""
960
+
961
+ @property
962
+ def end_date(self) -> google.protobuf.timestamp_pb2.Timestamp:
963
+ """For custom period"""
964
+
965
+ def __init__(
966
+ self,
967
+ *,
968
+ period: builtins.str = ...,
969
+ start_date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
970
+ end_date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
971
+ ) -> None: ...
972
+ def HasField(
973
+ self,
974
+ field_name: typing.Literal[
975
+ "end_date", b"end_date", "start_date", b"start_date"
976
+ ],
977
+ ) -> builtins.bool: ...
978
+ def ClearField(
979
+ self,
980
+ field_name: typing.Literal[
981
+ "end_date", b"end_date", "period", b"period", "start_date", b"start_date"
982
+ ],
983
+ ) -> None: ...
984
+
985
+ global___GetUsageSummaryRequest = GetUsageSummaryRequest
986
+
987
+ @typing.final
988
+ class GetUsageSummaryResponse(google.protobuf.message.Message):
989
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
990
+
991
+ CURRENT_PERIOD_FIELD_NUMBER: builtins.int
992
+ PREVIOUS_PERIODS_FIELD_NUMBER: builtins.int
993
+ LIMITS_FIELD_NUMBER: builtins.int
994
+ @property
995
+ def current_period(self) -> global___UsagePeriod: ...
996
+ @property
997
+ def previous_periods(
998
+ self,
999
+ ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
1000
+ global___UsagePeriod
1001
+ ]: ...
1002
+ @property
1003
+ def limits(self) -> global___UsageLimits: ...
1004
+ def __init__(
1005
+ self,
1006
+ *,
1007
+ current_period: global___UsagePeriod | None = ...,
1008
+ previous_periods: collections.abc.Iterable[global___UsagePeriod] | None = ...,
1009
+ limits: global___UsageLimits | None = ...,
1010
+ ) -> None: ...
1011
+ def HasField(
1012
+ self,
1013
+ field_name: typing.Literal[
1014
+ "current_period", b"current_period", "limits", b"limits"
1015
+ ],
1016
+ ) -> builtins.bool: ...
1017
+ def ClearField(
1018
+ self,
1019
+ field_name: typing.Literal[
1020
+ "current_period",
1021
+ b"current_period",
1022
+ "limits",
1023
+ b"limits",
1024
+ "previous_periods",
1025
+ b"previous_periods",
1026
+ ],
1027
+ ) -> None: ...
1028
+
1029
+ global___GetUsageSummaryResponse = GetUsageSummaryResponse
1030
+
1031
+ @typing.final
1032
+ class UsagePeriod(google.protobuf.message.Message):
1033
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1034
+
1035
+ @typing.final
1036
+ class RequestsByEndpointEntry(google.protobuf.message.Message):
1037
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1038
+
1039
+ KEY_FIELD_NUMBER: builtins.int
1040
+ VALUE_FIELD_NUMBER: builtins.int
1041
+ key: builtins.str
1042
+ value: builtins.int
1043
+ def __init__(
1044
+ self,
1045
+ *,
1046
+ key: builtins.str = ...,
1047
+ value: builtins.int = ...,
1048
+ ) -> None: ...
1049
+ def ClearField(
1050
+ self, field_name: typing.Literal["key", b"key", "value", b"value"]
1051
+ ) -> None: ...
1052
+
1053
+ @typing.final
1054
+ class RequestsByApiKeyEntry(google.protobuf.message.Message):
1055
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1056
+
1057
+ KEY_FIELD_NUMBER: builtins.int
1058
+ VALUE_FIELD_NUMBER: builtins.int
1059
+ key: builtins.str
1060
+ value: builtins.int
1061
+ def __init__(
1062
+ self,
1063
+ *,
1064
+ key: builtins.str = ...,
1065
+ value: builtins.int = ...,
1066
+ ) -> None: ...
1067
+ def ClearField(
1068
+ self, field_name: typing.Literal["key", b"key", "value", b"value"]
1069
+ ) -> None: ...
1070
+
1071
+ START_DATE_FIELD_NUMBER: builtins.int
1072
+ END_DATE_FIELD_NUMBER: builtins.int
1073
+ API_REQUESTS_FIELD_NUMBER: builtins.int
1074
+ API_REQUESTS_LIMIT_FIELD_NUMBER: builtins.int
1075
+ USAGE_PERCENTAGE_FIELD_NUMBER: builtins.int
1076
+ REQUESTS_BY_ENDPOINT_FIELD_NUMBER: builtins.int
1077
+ REQUESTS_BY_API_KEY_FIELD_NUMBER: builtins.int
1078
+ BILLABLE_REQUESTS_FIELD_NUMBER: builtins.int
1079
+ OVERAGE_REQUESTS_FIELD_NUMBER: builtins.int
1080
+ OVERAGE_COST_CENTS_FIELD_NUMBER: builtins.int
1081
+ api_requests: builtins.int
1082
+ """API usage"""
1083
+ api_requests_limit: builtins.int
1084
+ usage_percentage: builtins.float
1085
+ billable_requests: builtins.int
1086
+ """Billing"""
1087
+ overage_requests: builtins.int
1088
+ overage_cost_cents: builtins.int
1089
+ @property
1090
+ def start_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
1091
+ @property
1092
+ def end_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
1093
+ @property
1094
+ def requests_by_endpoint(
1095
+ self,
1096
+ ) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.int]:
1097
+ """Breakdown"""
1098
+
1099
+ @property
1100
+ def requests_by_api_key(
1101
+ self,
1102
+ ) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.int]: ...
1103
+ def __init__(
1104
+ self,
1105
+ *,
1106
+ start_date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
1107
+ end_date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
1108
+ api_requests: builtins.int = ...,
1109
+ api_requests_limit: builtins.int = ...,
1110
+ usage_percentage: builtins.float = ...,
1111
+ requests_by_endpoint: collections.abc.Mapping[builtins.str, builtins.int]
1112
+ | None = ...,
1113
+ requests_by_api_key: collections.abc.Mapping[builtins.str, builtins.int]
1114
+ | None = ...,
1115
+ billable_requests: builtins.int = ...,
1116
+ overage_requests: builtins.int = ...,
1117
+ overage_cost_cents: builtins.int = ...,
1118
+ ) -> None: ...
1119
+ def HasField(
1120
+ self,
1121
+ field_name: typing.Literal[
1122
+ "end_date", b"end_date", "start_date", b"start_date"
1123
+ ],
1124
+ ) -> builtins.bool: ...
1125
+ def ClearField(
1126
+ self,
1127
+ field_name: typing.Literal[
1128
+ "api_requests",
1129
+ b"api_requests",
1130
+ "api_requests_limit",
1131
+ b"api_requests_limit",
1132
+ "billable_requests",
1133
+ b"billable_requests",
1134
+ "end_date",
1135
+ b"end_date",
1136
+ "overage_cost_cents",
1137
+ b"overage_cost_cents",
1138
+ "overage_requests",
1139
+ b"overage_requests",
1140
+ "requests_by_api_key",
1141
+ b"requests_by_api_key",
1142
+ "requests_by_endpoint",
1143
+ b"requests_by_endpoint",
1144
+ "start_date",
1145
+ b"start_date",
1146
+ "usage_percentage",
1147
+ b"usage_percentage",
1148
+ ],
1149
+ ) -> None: ...
1150
+
1151
+ global___UsagePeriod = UsagePeriod
1152
+
1153
+ @typing.final
1154
+ class UsageLimits(google.protobuf.message.Message):
1155
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1156
+
1157
+ TIER_FIELD_NUMBER: builtins.int
1158
+ REQUESTS_PER_HOUR_FIELD_NUMBER: builtins.int
1159
+ REQUESTS_PER_DAY_FIELD_NUMBER: builtins.int
1160
+ REQUESTS_PER_MONTH_FIELD_NUMBER: builtins.int
1161
+ UNLIMITED_FIELD_NUMBER: builtins.int
1162
+ OVERAGE_RATE_CENTS_FIELD_NUMBER: builtins.int
1163
+ tier: builtins.str
1164
+ requests_per_hour: builtins.int
1165
+ requests_per_day: builtins.int
1166
+ requests_per_month: builtins.int
1167
+ unlimited: builtins.bool
1168
+ overage_rate_cents: builtins.int
1169
+ """Cost per 1000 requests over limit"""
1170
+ def __init__(
1171
+ self,
1172
+ *,
1173
+ tier: builtins.str = ...,
1174
+ requests_per_hour: builtins.int = ...,
1175
+ requests_per_day: builtins.int = ...,
1176
+ requests_per_month: builtins.int = ...,
1177
+ unlimited: builtins.bool = ...,
1178
+ overage_rate_cents: builtins.int = ...,
1179
+ ) -> None: ...
1180
+ def ClearField(
1181
+ self,
1182
+ field_name: typing.Literal[
1183
+ "overage_rate_cents",
1184
+ b"overage_rate_cents",
1185
+ "requests_per_day",
1186
+ b"requests_per_day",
1187
+ "requests_per_hour",
1188
+ b"requests_per_hour",
1189
+ "requests_per_month",
1190
+ b"requests_per_month",
1191
+ "tier",
1192
+ b"tier",
1193
+ "unlimited",
1194
+ b"unlimited",
1195
+ ],
1196
+ ) -> None: ...
1197
+
1198
+ global___UsageLimits = UsageLimits
1199
+
1200
+ @typing.final
1201
+ class GetCreditBalanceRequest(google.protobuf.message.Message):
1202
+ """Get credit balance if using credit system"""
1203
+
1204
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1205
+
1206
+ def __init__(
1207
+ self,
1208
+ ) -> None: ...
1209
+
1210
+ global___GetCreditBalanceRequest = GetCreditBalanceRequest
1211
+
1212
+ @typing.final
1213
+ class GetCreditBalanceResponse(google.protobuf.message.Message):
1214
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1215
+
1216
+ CREDITS_FIELD_NUMBER: builtins.int
1217
+ PENDING_CREDITS_FIELD_NUMBER: builtins.int
1218
+ EXPIRES_AT_FIELD_NUMBER: builtins.int
1219
+ RECENT_TRANSACTIONS_FIELD_NUMBER: builtins.int
1220
+ credits: builtins.int
1221
+ pending_credits: builtins.int
1222
+ @property
1223
+ def expires_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
1224
+ @property
1225
+ def recent_transactions(
1226
+ self,
1227
+ ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
1228
+ global___CreditTransaction
1229
+ ]: ...
1230
+ def __init__(
1231
+ self,
1232
+ *,
1233
+ credits: builtins.int = ...,
1234
+ pending_credits: builtins.int = ...,
1235
+ expires_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
1236
+ recent_transactions: collections.abc.Iterable[global___CreditTransaction]
1237
+ | None = ...,
1238
+ ) -> None: ...
1239
+ def HasField(
1240
+ self, field_name: typing.Literal["expires_at", b"expires_at"]
1241
+ ) -> builtins.bool: ...
1242
+ def ClearField(
1243
+ self,
1244
+ field_name: typing.Literal[
1245
+ "credits",
1246
+ b"credits",
1247
+ "expires_at",
1248
+ b"expires_at",
1249
+ "pending_credits",
1250
+ b"pending_credits",
1251
+ "recent_transactions",
1252
+ b"recent_transactions",
1253
+ ],
1254
+ ) -> None: ...
1255
+
1256
+ global___GetCreditBalanceResponse = GetCreditBalanceResponse
1257
+
1258
+ @typing.final
1259
+ class CreditTransaction(google.protobuf.message.Message):
1260
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1261
+
1262
+ ID_FIELD_NUMBER: builtins.int
1263
+ TYPE_FIELD_NUMBER: builtins.int
1264
+ AMOUNT_FIELD_NUMBER: builtins.int
1265
+ DESCRIPTION_FIELD_NUMBER: builtins.int
1266
+ CREATED_AT_FIELD_NUMBER: builtins.int
1267
+ id: builtins.str
1268
+ type: builtins.str
1269
+ """purchase, usage, refund, bonus"""
1270
+ amount: builtins.int
1271
+ """Positive for credits, negative for usage"""
1272
+ description: builtins.str
1273
+ @property
1274
+ def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
1275
+ def __init__(
1276
+ self,
1277
+ *,
1278
+ id: builtins.str = ...,
1279
+ type: builtins.str = ...,
1280
+ amount: builtins.int = ...,
1281
+ description: builtins.str = ...,
1282
+ created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
1283
+ ) -> None: ...
1284
+ def HasField(
1285
+ self, field_name: typing.Literal["created_at", b"created_at"]
1286
+ ) -> builtins.bool: ...
1287
+ def ClearField(
1288
+ self,
1289
+ field_name: typing.Literal[
1290
+ "amount",
1291
+ b"amount",
1292
+ "created_at",
1293
+ b"created_at",
1294
+ "description",
1295
+ b"description",
1296
+ "id",
1297
+ b"id",
1298
+ "type",
1299
+ b"type",
1300
+ ],
1301
+ ) -> None: ...
1302
+
1303
+ global___CreditTransaction = CreditTransaction
1304
+
1305
+ @typing.final
1306
+ class UpdateTaxInfoRequest(google.protobuf.message.Message):
1307
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1308
+
1309
+ TAX_ID_FIELD_NUMBER: builtins.int
1310
+ TAX_ID_TYPE_FIELD_NUMBER: builtins.int
1311
+ BILLING_ADDRESS_FIELD_NUMBER: builtins.int
1312
+ BUSINESS_NAME_FIELD_NUMBER: builtins.int
1313
+ TAX_EXEMPT_FIELD_NUMBER: builtins.int
1314
+ tax_id: builtins.str
1315
+ """VAT number, GST, etc"""
1316
+ tax_id_type: builtins.str
1317
+ """eu_vat, gb_vat, us_ein, etc"""
1318
+ business_name: builtins.str
1319
+ tax_exempt: builtins.bool
1320
+ @property
1321
+ def billing_address(self) -> weaveapi.payment.v1.subscription_pb2.Address: ...
1322
+ def __init__(
1323
+ self,
1324
+ *,
1325
+ tax_id: builtins.str = ...,
1326
+ tax_id_type: builtins.str = ...,
1327
+ billing_address: weaveapi.payment.v1.subscription_pb2.Address | None = ...,
1328
+ business_name: builtins.str = ...,
1329
+ tax_exempt: builtins.bool = ...,
1330
+ ) -> None: ...
1331
+ def HasField(
1332
+ self, field_name: typing.Literal["billing_address", b"billing_address"]
1333
+ ) -> builtins.bool: ...
1334
+ def ClearField(
1335
+ self,
1336
+ field_name: typing.Literal[
1337
+ "billing_address",
1338
+ b"billing_address",
1339
+ "business_name",
1340
+ b"business_name",
1341
+ "tax_exempt",
1342
+ b"tax_exempt",
1343
+ "tax_id",
1344
+ b"tax_id",
1345
+ "tax_id_type",
1346
+ b"tax_id_type",
1347
+ ],
1348
+ ) -> None: ...
1349
+
1350
+ global___UpdateTaxInfoRequest = UpdateTaxInfoRequest
1351
+
1352
+ @typing.final
1353
+ class UpdateTaxInfoResponse(google.protobuf.message.Message):
1354
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1355
+
1356
+ SUCCESS_FIELD_NUMBER: builtins.int
1357
+ MESSAGE_FIELD_NUMBER: builtins.int
1358
+ TAX_INFO_FIELD_NUMBER: builtins.int
1359
+ success: builtins.bool
1360
+ message: builtins.str
1361
+ @property
1362
+ def tax_info(self) -> global___TaxInfo: ...
1363
+ def __init__(
1364
+ self,
1365
+ *,
1366
+ success: builtins.bool = ...,
1367
+ message: builtins.str = ...,
1368
+ tax_info: global___TaxInfo | None = ...,
1369
+ ) -> None: ...
1370
+ def HasField(
1371
+ self, field_name: typing.Literal["tax_info", b"tax_info"]
1372
+ ) -> builtins.bool: ...
1373
+ def ClearField(
1374
+ self,
1375
+ field_name: typing.Literal[
1376
+ "message", b"message", "success", b"success", "tax_info", b"tax_info"
1377
+ ],
1378
+ ) -> None: ...
1379
+
1380
+ global___UpdateTaxInfoResponse = UpdateTaxInfoResponse
1381
+
1382
+ @typing.final
1383
+ class TaxInfo(google.protobuf.message.Message):
1384
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1385
+
1386
+ TAX_ID_FIELD_NUMBER: builtins.int
1387
+ TAX_ID_TYPE_FIELD_NUMBER: builtins.int
1388
+ VERIFICATION_STATUS_FIELD_NUMBER: builtins.int
1389
+ BILLING_ADDRESS_FIELD_NUMBER: builtins.int
1390
+ BUSINESS_NAME_FIELD_NUMBER: builtins.int
1391
+ TAX_EXEMPT_FIELD_NUMBER: builtins.int
1392
+ APPLICABLE_RATES_FIELD_NUMBER: builtins.int
1393
+ tax_id: builtins.str
1394
+ tax_id_type: builtins.str
1395
+ verification_status: builtins.str
1396
+ """pending, verified, unverified"""
1397
+ business_name: builtins.str
1398
+ tax_exempt: builtins.bool
1399
+ @property
1400
+ def billing_address(self) -> weaveapi.payment.v1.subscription_pb2.Address: ...
1401
+ @property
1402
+ def applicable_rates(
1403
+ self,
1404
+ ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
1405
+ weaveapi.payment.v1.invoice_pb2.TaxRate
1406
+ ]: ...
1407
+ def __init__(
1408
+ self,
1409
+ *,
1410
+ tax_id: builtins.str = ...,
1411
+ tax_id_type: builtins.str = ...,
1412
+ verification_status: builtins.str = ...,
1413
+ billing_address: weaveapi.payment.v1.subscription_pb2.Address | None = ...,
1414
+ business_name: builtins.str = ...,
1415
+ tax_exempt: builtins.bool = ...,
1416
+ applicable_rates: collections.abc.Iterable[
1417
+ weaveapi.payment.v1.invoice_pb2.TaxRate
1418
+ ]
1419
+ | None = ...,
1420
+ ) -> None: ...
1421
+ def HasField(
1422
+ self, field_name: typing.Literal["billing_address", b"billing_address"]
1423
+ ) -> builtins.bool: ...
1424
+ def ClearField(
1425
+ self,
1426
+ field_name: typing.Literal[
1427
+ "applicable_rates",
1428
+ b"applicable_rates",
1429
+ "billing_address",
1430
+ b"billing_address",
1431
+ "business_name",
1432
+ b"business_name",
1433
+ "tax_exempt",
1434
+ b"tax_exempt",
1435
+ "tax_id",
1436
+ b"tax_id",
1437
+ "tax_id_type",
1438
+ b"tax_id_type",
1439
+ "verification_status",
1440
+ b"verification_status",
1441
+ ],
1442
+ ) -> None: ...
1443
+
1444
+ global___TaxInfo = TaxInfo
1445
+
1446
+ @typing.final
1447
+ class DownloadInvoiceRequest(google.protobuf.message.Message):
1448
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1449
+
1450
+ INVOICE_ID_FIELD_NUMBER: builtins.int
1451
+ invoice_id: builtins.str
1452
+ def __init__(
1453
+ self,
1454
+ *,
1455
+ invoice_id: builtins.str = ...,
1456
+ ) -> None: ...
1457
+ def ClearField(
1458
+ self, field_name: typing.Literal["invoice_id", b"invoice_id"]
1459
+ ) -> None: ...
1460
+
1461
+ global___DownloadInvoiceRequest = DownloadInvoiceRequest
1462
+
1463
+ @typing.final
1464
+ class DownloadInvoiceResponse(google.protobuf.message.Message):
1465
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1466
+
1467
+ PDF_DATA_FIELD_NUMBER: builtins.int
1468
+ FILENAME_FIELD_NUMBER: builtins.int
1469
+ CONTENT_TYPE_FIELD_NUMBER: builtins.int
1470
+ pdf_data: builtins.bytes
1471
+ filename: builtins.str
1472
+ content_type: builtins.str
1473
+ def __init__(
1474
+ self,
1475
+ *,
1476
+ pdf_data: builtins.bytes = ...,
1477
+ filename: builtins.str = ...,
1478
+ content_type: builtins.str = ...,
1479
+ ) -> None: ...
1480
+ def ClearField(
1481
+ self,
1482
+ field_name: typing.Literal[
1483
+ "content_type",
1484
+ b"content_type",
1485
+ "filename",
1486
+ b"filename",
1487
+ "pdf_data",
1488
+ b"pdf_data",
1489
+ ],
1490
+ ) -> None: ...
1491
+
1492
+ global___DownloadInvoiceResponse = DownloadInvoiceResponse