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,570 +3,480 @@
3
3
  isort:skip_file
4
4
  """
5
5
 
6
- import abc
7
- import collections.abc
8
- import grpc
9
- import grpc.aio
10
- import typing
11
- import weaveapi.payment.v1.service_pb2
6
+ from collections import abc as _abc
7
+ from grpc import aio as _aio
8
+ from weaveapi.payment.v1 import service_pb2 as _service_pb2
9
+ import abc as _abc_1
10
+ import grpc as _grpc
11
+ import sys
12
+ import typing as _typing
12
13
 
13
- _T = typing.TypeVar("_T")
14
+ if sys.version_info >= (3, 11):
15
+ from typing import Self as _Self
16
+ else:
17
+ from typing_extensions import Self as _Self
18
+
19
+ _T = _typing.TypeVar("_T")
14
20
 
15
21
  class _MaybeAsyncIterator(
16
- collections.abc.AsyncIterator[_T],
17
- collections.abc.Iterator[_T],
18
- metaclass=abc.ABCMeta,
22
+ _abc.AsyncIterator[_T], _abc.Iterator[_T], metaclass=_abc_1.ABCMeta
19
23
  ): ...
20
- class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
24
+ class _ServicerContext(_grpc.ServicerContext, _aio.ServicerContext): # type: ignore[misc, type-arg]
21
25
  ...
22
26
 
27
+ GRPC_GENERATED_VERSION: str
28
+ GRPC_VERSION: str
29
+
23
30
  class PaymentStub:
24
31
  """PaymentService handles subscription management and payment processing
25
32
  Subscription management
26
33
  """
27
34
 
28
- def __init__(
29
- self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]
30
- ) -> None: ...
31
- CreateCheckoutSession: grpc.UnaryUnaryMultiCallable[
32
- weaveapi.payment.v1.service_pb2.CreateCheckoutSessionRequest,
33
- weaveapi.payment.v1.service_pb2.CreateCheckoutSessionResponse,
35
+ @_typing.overload
36
+ def __new__(cls, channel: _grpc.Channel) -> _Self: ...
37
+ @_typing.overload
38
+ def __new__(cls, channel: _aio.Channel) -> PaymentAsyncStub: ...
39
+ CreateCheckoutSession: _grpc.UnaryUnaryMultiCallable[
40
+ _service_pb2.CreateCheckoutSessionRequest,
41
+ _service_pb2.CreateCheckoutSessionResponse,
34
42
  ]
35
43
  """Create a Stripe checkout session for subscription"""
36
-
37
- GetSubscriptionStatus: grpc.UnaryUnaryMultiCallable[
38
- weaveapi.payment.v1.service_pb2.GetSubscriptionStatusRequest,
39
- weaveapi.payment.v1.service_pb2.GetSubscriptionStatusResponse,
44
+ GetSubscriptionStatus: _grpc.UnaryUnaryMultiCallable[
45
+ _service_pb2.GetSubscriptionStatusRequest,
46
+ _service_pb2.GetSubscriptionStatusResponse,
40
47
  ]
41
48
  """Get current subscription status"""
42
-
43
- UpdateSubscription: grpc.UnaryUnaryMultiCallable[
44
- weaveapi.payment.v1.service_pb2.UpdateSubscriptionRequest,
45
- weaveapi.payment.v1.service_pb2.UpdateSubscriptionResponse,
49
+ UpdateSubscription: _grpc.UnaryUnaryMultiCallable[
50
+ _service_pb2.UpdateSubscriptionRequest, _service_pb2.UpdateSubscriptionResponse
46
51
  ]
47
52
  """Update subscription (change payment method, etc)"""
48
-
49
- CancelSubscription: grpc.UnaryUnaryMultiCallable[
50
- weaveapi.payment.v1.service_pb2.CancelSubscriptionRequest,
51
- weaveapi.payment.v1.service_pb2.CancelSubscriptionResponse,
53
+ CancelSubscription: _grpc.UnaryUnaryMultiCallable[
54
+ _service_pb2.CancelSubscriptionRequest, _service_pb2.CancelSubscriptionResponse
52
55
  ]
53
56
  """Cancel subscription"""
54
-
55
- ResumeSubscription: grpc.UnaryUnaryMultiCallable[
56
- weaveapi.payment.v1.service_pb2.ResumeSubscriptionRequest,
57
- weaveapi.payment.v1.service_pb2.ResumeSubscriptionResponse,
57
+ ResumeSubscription: _grpc.UnaryUnaryMultiCallable[
58
+ _service_pb2.ResumeSubscriptionRequest, _service_pb2.ResumeSubscriptionResponse
58
59
  ]
59
60
  """Resume cancelled subscription"""
60
-
61
- GetBillingHistory: grpc.UnaryUnaryMultiCallable[
62
- weaveapi.payment.v1.service_pb2.GetBillingHistoryRequest,
63
- weaveapi.payment.v1.service_pb2.GetBillingHistoryResponse,
61
+ GetBillingHistory: _grpc.UnaryUnaryMultiCallable[
62
+ _service_pb2.GetBillingHistoryRequest, _service_pb2.GetBillingHistoryResponse
64
63
  ]
65
64
  """Billing & Payment Methods
66
65
 
67
66
  Get billing history
68
67
  """
69
-
70
- GetUpcomingInvoice: grpc.UnaryUnaryMultiCallable[
71
- weaveapi.payment.v1.service_pb2.GetUpcomingInvoiceRequest,
72
- weaveapi.payment.v1.service_pb2.GetUpcomingInvoiceResponse,
68
+ GetUpcomingInvoice: _grpc.UnaryUnaryMultiCallable[
69
+ _service_pb2.GetUpcomingInvoiceRequest, _service_pb2.GetUpcomingInvoiceResponse
73
70
  ]
74
71
  """Get upcoming invoice preview"""
75
-
76
- ListPaymentMethods: grpc.UnaryUnaryMultiCallable[
77
- weaveapi.payment.v1.service_pb2.ListPaymentMethodsRequest,
78
- weaveapi.payment.v1.service_pb2.ListPaymentMethodsResponse,
72
+ ListPaymentMethods: _grpc.UnaryUnaryMultiCallable[
73
+ _service_pb2.ListPaymentMethodsRequest, _service_pb2.ListPaymentMethodsResponse
79
74
  ]
80
75
  """List payment methods"""
81
-
82
- AddPaymentMethod: grpc.UnaryUnaryMultiCallable[
83
- weaveapi.payment.v1.service_pb2.AddPaymentMethodRequest,
84
- weaveapi.payment.v1.service_pb2.AddPaymentMethodResponse,
76
+ AddPaymentMethod: _grpc.UnaryUnaryMultiCallable[
77
+ _service_pb2.AddPaymentMethodRequest, _service_pb2.AddPaymentMethodResponse
85
78
  ]
86
79
  """Add payment method"""
87
-
88
- SetDefaultPaymentMethod: grpc.UnaryUnaryMultiCallable[
89
- weaveapi.payment.v1.service_pb2.SetDefaultPaymentMethodRequest,
90
- weaveapi.payment.v1.service_pb2.SetDefaultPaymentMethodResponse,
80
+ SetDefaultPaymentMethod: _grpc.UnaryUnaryMultiCallable[
81
+ _service_pb2.SetDefaultPaymentMethodRequest,
82
+ _service_pb2.SetDefaultPaymentMethodResponse,
91
83
  ]
92
84
  """Set default payment method"""
93
-
94
- RemovePaymentMethod: grpc.UnaryUnaryMultiCallable[
95
- weaveapi.payment.v1.service_pb2.RemovePaymentMethodRequest,
96
- weaveapi.payment.v1.service_pb2.RemovePaymentMethodResponse,
85
+ RemovePaymentMethod: _grpc.UnaryUnaryMultiCallable[
86
+ _service_pb2.RemovePaymentMethodRequest,
87
+ _service_pb2.RemovePaymentMethodResponse,
97
88
  ]
98
89
  """Remove payment method"""
99
-
100
- CreatePortalSession: grpc.UnaryUnaryMultiCallable[
101
- weaveapi.payment.v1.service_pb2.CreatePortalSessionRequest,
102
- weaveapi.payment.v1.service_pb2.CreatePortalSessionResponse,
90
+ CreatePortalSession: _grpc.UnaryUnaryMultiCallable[
91
+ _service_pb2.CreatePortalSessionRequest,
92
+ _service_pb2.CreatePortalSessionResponse,
103
93
  ]
104
94
  """Customer Portal
105
95
 
106
96
  Create Stripe customer portal session
107
97
  """
108
-
109
- GetPricingPlans: grpc.UnaryUnaryMultiCallable[
110
- weaveapi.payment.v1.service_pb2.GetPricingPlansRequest,
111
- weaveapi.payment.v1.service_pb2.GetPricingPlansResponse,
98
+ GetPricingPlans: _grpc.UnaryUnaryMultiCallable[
99
+ _service_pb2.GetPricingPlansRequest, _service_pb2.GetPricingPlansResponse
112
100
  ]
113
101
  """Pricing & Plans
114
102
 
115
103
  Get available pricing plans
116
104
  """
117
-
118
- ApplyPromoCode: grpc.UnaryUnaryMultiCallable[
119
- weaveapi.payment.v1.service_pb2.ApplyPromoCodeRequest,
120
- weaveapi.payment.v1.service_pb2.ApplyPromoCodeResponse,
105
+ ApplyPromoCode: _grpc.UnaryUnaryMultiCallable[
106
+ _service_pb2.ApplyPromoCodeRequest, _service_pb2.ApplyPromoCodeResponse
121
107
  ]
122
108
  """Apply promo code"""
123
-
124
- HandleStripeWebhook: grpc.UnaryUnaryMultiCallable[
125
- weaveapi.payment.v1.service_pb2.HandleStripeWebhookRequest,
126
- weaveapi.payment.v1.service_pb2.HandleStripeWebhookResponse,
109
+ HandleStripeWebhook: _grpc.UnaryUnaryMultiCallable[
110
+ _service_pb2.HandleStripeWebhookRequest,
111
+ _service_pb2.HandleStripeWebhookResponse,
127
112
  ]
128
113
  """Webhooks
129
114
 
130
115
  Handle Stripe webhook events
131
116
  """
132
-
133
- GetUsageSummary: grpc.UnaryUnaryMultiCallable[
134
- weaveapi.payment.v1.service_pb2.GetUsageSummaryRequest,
135
- weaveapi.payment.v1.service_pb2.GetUsageSummaryResponse,
117
+ GetUsageSummary: _grpc.UnaryUnaryMultiCallable[
118
+ _service_pb2.GetUsageSummaryRequest, _service_pb2.GetUsageSummaryResponse
136
119
  ]
137
120
  """Usage & Credits
138
121
 
139
122
  Get usage summary for billing period
140
123
  """
141
-
142
- GetCreditBalance: grpc.UnaryUnaryMultiCallable[
143
- weaveapi.payment.v1.service_pb2.GetCreditBalanceRequest,
144
- weaveapi.payment.v1.service_pb2.GetCreditBalanceResponse,
124
+ GetCreditBalance: _grpc.UnaryUnaryMultiCallable[
125
+ _service_pb2.GetCreditBalanceRequest, _service_pb2.GetCreditBalanceResponse
145
126
  ]
146
127
  """Get credit balance (if applicable)"""
147
-
148
- UpdateTaxInfo: grpc.UnaryUnaryMultiCallable[
149
- weaveapi.payment.v1.service_pb2.UpdateTaxInfoRequest,
150
- weaveapi.payment.v1.service_pb2.UpdateTaxInfoResponse,
128
+ UpdateTaxInfo: _grpc.UnaryUnaryMultiCallable[
129
+ _service_pb2.UpdateTaxInfoRequest, _service_pb2.UpdateTaxInfoResponse
151
130
  ]
152
131
  """Tax & Compliance
153
132
 
154
133
  Update tax information
155
134
  """
156
-
157
- DownloadInvoice: grpc.UnaryUnaryMultiCallable[
158
- weaveapi.payment.v1.service_pb2.DownloadInvoiceRequest,
159
- weaveapi.payment.v1.service_pb2.DownloadInvoiceResponse,
135
+ DownloadInvoice: _grpc.UnaryUnaryMultiCallable[
136
+ _service_pb2.DownloadInvoiceRequest, _service_pb2.DownloadInvoiceResponse
160
137
  ]
161
138
  """Download invoice PDF"""
162
139
 
163
- class PaymentAsyncStub:
140
+ @_typing.type_check_only
141
+ class PaymentAsyncStub(PaymentStub):
164
142
  """PaymentService handles subscription management and payment processing
165
143
  Subscription management
166
144
  """
167
145
 
168
- CreateCheckoutSession: grpc.aio.UnaryUnaryMultiCallable[
169
- weaveapi.payment.v1.service_pb2.CreateCheckoutSessionRequest,
170
- weaveapi.payment.v1.service_pb2.CreateCheckoutSessionResponse,
171
- ]
146
+ def __init__(self, channel: _aio.Channel) -> None: ...
147
+ CreateCheckoutSession: _aio.UnaryUnaryMultiCallable[
148
+ _service_pb2.CreateCheckoutSessionRequest,
149
+ _service_pb2.CreateCheckoutSessionResponse,
150
+ ] # type: ignore[assignment]
172
151
  """Create a Stripe checkout session for subscription"""
173
-
174
- GetSubscriptionStatus: grpc.aio.UnaryUnaryMultiCallable[
175
- weaveapi.payment.v1.service_pb2.GetSubscriptionStatusRequest,
176
- weaveapi.payment.v1.service_pb2.GetSubscriptionStatusResponse,
177
- ]
152
+ GetSubscriptionStatus: _aio.UnaryUnaryMultiCallable[
153
+ _service_pb2.GetSubscriptionStatusRequest,
154
+ _service_pb2.GetSubscriptionStatusResponse,
155
+ ] # type: ignore[assignment]
178
156
  """Get current subscription status"""
179
-
180
- UpdateSubscription: grpc.aio.UnaryUnaryMultiCallable[
181
- weaveapi.payment.v1.service_pb2.UpdateSubscriptionRequest,
182
- weaveapi.payment.v1.service_pb2.UpdateSubscriptionResponse,
183
- ]
157
+ UpdateSubscription: _aio.UnaryUnaryMultiCallable[
158
+ _service_pb2.UpdateSubscriptionRequest, _service_pb2.UpdateSubscriptionResponse
159
+ ] # type: ignore[assignment]
184
160
  """Update subscription (change payment method, etc)"""
185
-
186
- CancelSubscription: grpc.aio.UnaryUnaryMultiCallable[
187
- weaveapi.payment.v1.service_pb2.CancelSubscriptionRequest,
188
- weaveapi.payment.v1.service_pb2.CancelSubscriptionResponse,
189
- ]
161
+ CancelSubscription: _aio.UnaryUnaryMultiCallable[
162
+ _service_pb2.CancelSubscriptionRequest, _service_pb2.CancelSubscriptionResponse
163
+ ] # type: ignore[assignment]
190
164
  """Cancel subscription"""
191
-
192
- ResumeSubscription: grpc.aio.UnaryUnaryMultiCallable[
193
- weaveapi.payment.v1.service_pb2.ResumeSubscriptionRequest,
194
- weaveapi.payment.v1.service_pb2.ResumeSubscriptionResponse,
195
- ]
165
+ ResumeSubscription: _aio.UnaryUnaryMultiCallable[
166
+ _service_pb2.ResumeSubscriptionRequest, _service_pb2.ResumeSubscriptionResponse
167
+ ] # type: ignore[assignment]
196
168
  """Resume cancelled subscription"""
197
-
198
- GetBillingHistory: grpc.aio.UnaryUnaryMultiCallable[
199
- weaveapi.payment.v1.service_pb2.GetBillingHistoryRequest,
200
- weaveapi.payment.v1.service_pb2.GetBillingHistoryResponse,
201
- ]
169
+ GetBillingHistory: _aio.UnaryUnaryMultiCallable[
170
+ _service_pb2.GetBillingHistoryRequest, _service_pb2.GetBillingHistoryResponse
171
+ ] # type: ignore[assignment]
202
172
  """Billing & Payment Methods
203
173
 
204
174
  Get billing history
205
175
  """
206
-
207
- GetUpcomingInvoice: grpc.aio.UnaryUnaryMultiCallable[
208
- weaveapi.payment.v1.service_pb2.GetUpcomingInvoiceRequest,
209
- weaveapi.payment.v1.service_pb2.GetUpcomingInvoiceResponse,
210
- ]
176
+ GetUpcomingInvoice: _aio.UnaryUnaryMultiCallable[
177
+ _service_pb2.GetUpcomingInvoiceRequest, _service_pb2.GetUpcomingInvoiceResponse
178
+ ] # type: ignore[assignment]
211
179
  """Get upcoming invoice preview"""
212
-
213
- ListPaymentMethods: grpc.aio.UnaryUnaryMultiCallable[
214
- weaveapi.payment.v1.service_pb2.ListPaymentMethodsRequest,
215
- weaveapi.payment.v1.service_pb2.ListPaymentMethodsResponse,
216
- ]
180
+ ListPaymentMethods: _aio.UnaryUnaryMultiCallable[
181
+ _service_pb2.ListPaymentMethodsRequest, _service_pb2.ListPaymentMethodsResponse
182
+ ] # type: ignore[assignment]
217
183
  """List payment methods"""
218
-
219
- AddPaymentMethod: grpc.aio.UnaryUnaryMultiCallable[
220
- weaveapi.payment.v1.service_pb2.AddPaymentMethodRequest,
221
- weaveapi.payment.v1.service_pb2.AddPaymentMethodResponse,
222
- ]
184
+ AddPaymentMethod: _aio.UnaryUnaryMultiCallable[
185
+ _service_pb2.AddPaymentMethodRequest, _service_pb2.AddPaymentMethodResponse
186
+ ] # type: ignore[assignment]
223
187
  """Add payment method"""
224
-
225
- SetDefaultPaymentMethod: grpc.aio.UnaryUnaryMultiCallable[
226
- weaveapi.payment.v1.service_pb2.SetDefaultPaymentMethodRequest,
227
- weaveapi.payment.v1.service_pb2.SetDefaultPaymentMethodResponse,
228
- ]
188
+ SetDefaultPaymentMethod: _aio.UnaryUnaryMultiCallable[
189
+ _service_pb2.SetDefaultPaymentMethodRequest,
190
+ _service_pb2.SetDefaultPaymentMethodResponse,
191
+ ] # type: ignore[assignment]
229
192
  """Set default payment method"""
230
-
231
- RemovePaymentMethod: grpc.aio.UnaryUnaryMultiCallable[
232
- weaveapi.payment.v1.service_pb2.RemovePaymentMethodRequest,
233
- weaveapi.payment.v1.service_pb2.RemovePaymentMethodResponse,
234
- ]
193
+ RemovePaymentMethod: _aio.UnaryUnaryMultiCallable[
194
+ _service_pb2.RemovePaymentMethodRequest,
195
+ _service_pb2.RemovePaymentMethodResponse,
196
+ ] # type: ignore[assignment]
235
197
  """Remove payment method"""
236
-
237
- CreatePortalSession: grpc.aio.UnaryUnaryMultiCallable[
238
- weaveapi.payment.v1.service_pb2.CreatePortalSessionRequest,
239
- weaveapi.payment.v1.service_pb2.CreatePortalSessionResponse,
240
- ]
198
+ CreatePortalSession: _aio.UnaryUnaryMultiCallable[
199
+ _service_pb2.CreatePortalSessionRequest,
200
+ _service_pb2.CreatePortalSessionResponse,
201
+ ] # type: ignore[assignment]
241
202
  """Customer Portal
242
203
 
243
204
  Create Stripe customer portal session
244
205
  """
245
-
246
- GetPricingPlans: grpc.aio.UnaryUnaryMultiCallable[
247
- weaveapi.payment.v1.service_pb2.GetPricingPlansRequest,
248
- weaveapi.payment.v1.service_pb2.GetPricingPlansResponse,
249
- ]
206
+ GetPricingPlans: _aio.UnaryUnaryMultiCallable[
207
+ _service_pb2.GetPricingPlansRequest, _service_pb2.GetPricingPlansResponse
208
+ ] # type: ignore[assignment]
250
209
  """Pricing & Plans
251
210
 
252
211
  Get available pricing plans
253
212
  """
254
-
255
- ApplyPromoCode: grpc.aio.UnaryUnaryMultiCallable[
256
- weaveapi.payment.v1.service_pb2.ApplyPromoCodeRequest,
257
- weaveapi.payment.v1.service_pb2.ApplyPromoCodeResponse,
258
- ]
213
+ ApplyPromoCode: _aio.UnaryUnaryMultiCallable[
214
+ _service_pb2.ApplyPromoCodeRequest, _service_pb2.ApplyPromoCodeResponse
215
+ ] # type: ignore[assignment]
259
216
  """Apply promo code"""
260
-
261
- HandleStripeWebhook: grpc.aio.UnaryUnaryMultiCallable[
262
- weaveapi.payment.v1.service_pb2.HandleStripeWebhookRequest,
263
- weaveapi.payment.v1.service_pb2.HandleStripeWebhookResponse,
264
- ]
217
+ HandleStripeWebhook: _aio.UnaryUnaryMultiCallable[
218
+ _service_pb2.HandleStripeWebhookRequest,
219
+ _service_pb2.HandleStripeWebhookResponse,
220
+ ] # type: ignore[assignment]
265
221
  """Webhooks
266
222
 
267
223
  Handle Stripe webhook events
268
224
  """
269
-
270
- GetUsageSummary: grpc.aio.UnaryUnaryMultiCallable[
271
- weaveapi.payment.v1.service_pb2.GetUsageSummaryRequest,
272
- weaveapi.payment.v1.service_pb2.GetUsageSummaryResponse,
273
- ]
225
+ GetUsageSummary: _aio.UnaryUnaryMultiCallable[
226
+ _service_pb2.GetUsageSummaryRequest, _service_pb2.GetUsageSummaryResponse
227
+ ] # type: ignore[assignment]
274
228
  """Usage & Credits
275
229
 
276
230
  Get usage summary for billing period
277
231
  """
278
-
279
- GetCreditBalance: grpc.aio.UnaryUnaryMultiCallable[
280
- weaveapi.payment.v1.service_pb2.GetCreditBalanceRequest,
281
- weaveapi.payment.v1.service_pb2.GetCreditBalanceResponse,
282
- ]
232
+ GetCreditBalance: _aio.UnaryUnaryMultiCallable[
233
+ _service_pb2.GetCreditBalanceRequest, _service_pb2.GetCreditBalanceResponse
234
+ ] # type: ignore[assignment]
283
235
  """Get credit balance (if applicable)"""
284
-
285
- UpdateTaxInfo: grpc.aio.UnaryUnaryMultiCallable[
286
- weaveapi.payment.v1.service_pb2.UpdateTaxInfoRequest,
287
- weaveapi.payment.v1.service_pb2.UpdateTaxInfoResponse,
288
- ]
236
+ UpdateTaxInfo: _aio.UnaryUnaryMultiCallable[
237
+ _service_pb2.UpdateTaxInfoRequest, _service_pb2.UpdateTaxInfoResponse
238
+ ] # type: ignore[assignment]
289
239
  """Tax & Compliance
290
240
 
291
241
  Update tax information
292
242
  """
293
-
294
- DownloadInvoice: grpc.aio.UnaryUnaryMultiCallable[
295
- weaveapi.payment.v1.service_pb2.DownloadInvoiceRequest,
296
- weaveapi.payment.v1.service_pb2.DownloadInvoiceResponse,
297
- ]
243
+ DownloadInvoice: _aio.UnaryUnaryMultiCallable[
244
+ _service_pb2.DownloadInvoiceRequest, _service_pb2.DownloadInvoiceResponse
245
+ ] # type: ignore[assignment]
298
246
  """Download invoice PDF"""
299
247
 
300
- class PaymentServicer(metaclass=abc.ABCMeta):
248
+ class PaymentServicer(metaclass=_abc_1.ABCMeta):
301
249
  """PaymentService handles subscription management and payment processing
302
250
  Subscription management
303
251
  """
304
252
 
305
- @abc.abstractmethod
253
+ @_abc_1.abstractmethod
306
254
  def CreateCheckoutSession(
307
255
  self,
308
- request: weaveapi.payment.v1.service_pb2.CreateCheckoutSessionRequest,
256
+ request: _service_pb2.CreateCheckoutSessionRequest,
309
257
  context: _ServicerContext,
310
- ) -> typing.Union[
311
- weaveapi.payment.v1.service_pb2.CreateCheckoutSessionResponse,
312
- collections.abc.Awaitable[
313
- weaveapi.payment.v1.service_pb2.CreateCheckoutSessionResponse
314
- ],
258
+ ) -> _typing.Union[
259
+ _service_pb2.CreateCheckoutSessionResponse,
260
+ _abc.Awaitable[_service_pb2.CreateCheckoutSessionResponse],
315
261
  ]:
316
262
  """Create a Stripe checkout session for subscription"""
317
263
 
318
- @abc.abstractmethod
264
+ @_abc_1.abstractmethod
319
265
  def GetSubscriptionStatus(
320
266
  self,
321
- request: weaveapi.payment.v1.service_pb2.GetSubscriptionStatusRequest,
267
+ request: _service_pb2.GetSubscriptionStatusRequest,
322
268
  context: _ServicerContext,
323
- ) -> typing.Union[
324
- weaveapi.payment.v1.service_pb2.GetSubscriptionStatusResponse,
325
- collections.abc.Awaitable[
326
- weaveapi.payment.v1.service_pb2.GetSubscriptionStatusResponse
327
- ],
269
+ ) -> _typing.Union[
270
+ _service_pb2.GetSubscriptionStatusResponse,
271
+ _abc.Awaitable[_service_pb2.GetSubscriptionStatusResponse],
328
272
  ]:
329
273
  """Get current subscription status"""
330
274
 
331
- @abc.abstractmethod
275
+ @_abc_1.abstractmethod
332
276
  def UpdateSubscription(
333
277
  self,
334
- request: weaveapi.payment.v1.service_pb2.UpdateSubscriptionRequest,
278
+ request: _service_pb2.UpdateSubscriptionRequest,
335
279
  context: _ServicerContext,
336
- ) -> typing.Union[
337
- weaveapi.payment.v1.service_pb2.UpdateSubscriptionResponse,
338
- collections.abc.Awaitable[
339
- weaveapi.payment.v1.service_pb2.UpdateSubscriptionResponse
340
- ],
280
+ ) -> _typing.Union[
281
+ _service_pb2.UpdateSubscriptionResponse,
282
+ _abc.Awaitable[_service_pb2.UpdateSubscriptionResponse],
341
283
  ]:
342
284
  """Update subscription (change payment method, etc)"""
343
285
 
344
- @abc.abstractmethod
286
+ @_abc_1.abstractmethod
345
287
  def CancelSubscription(
346
288
  self,
347
- request: weaveapi.payment.v1.service_pb2.CancelSubscriptionRequest,
289
+ request: _service_pb2.CancelSubscriptionRequest,
348
290
  context: _ServicerContext,
349
- ) -> typing.Union[
350
- weaveapi.payment.v1.service_pb2.CancelSubscriptionResponse,
351
- collections.abc.Awaitable[
352
- weaveapi.payment.v1.service_pb2.CancelSubscriptionResponse
353
- ],
291
+ ) -> _typing.Union[
292
+ _service_pb2.CancelSubscriptionResponse,
293
+ _abc.Awaitable[_service_pb2.CancelSubscriptionResponse],
354
294
  ]:
355
295
  """Cancel subscription"""
356
296
 
357
- @abc.abstractmethod
297
+ @_abc_1.abstractmethod
358
298
  def ResumeSubscription(
359
299
  self,
360
- request: weaveapi.payment.v1.service_pb2.ResumeSubscriptionRequest,
300
+ request: _service_pb2.ResumeSubscriptionRequest,
361
301
  context: _ServicerContext,
362
- ) -> typing.Union[
363
- weaveapi.payment.v1.service_pb2.ResumeSubscriptionResponse,
364
- collections.abc.Awaitable[
365
- weaveapi.payment.v1.service_pb2.ResumeSubscriptionResponse
366
- ],
302
+ ) -> _typing.Union[
303
+ _service_pb2.ResumeSubscriptionResponse,
304
+ _abc.Awaitable[_service_pb2.ResumeSubscriptionResponse],
367
305
  ]:
368
306
  """Resume cancelled subscription"""
369
307
 
370
- @abc.abstractmethod
308
+ @_abc_1.abstractmethod
371
309
  def GetBillingHistory(
372
310
  self,
373
- request: weaveapi.payment.v1.service_pb2.GetBillingHistoryRequest,
311
+ request: _service_pb2.GetBillingHistoryRequest,
374
312
  context: _ServicerContext,
375
- ) -> typing.Union[
376
- weaveapi.payment.v1.service_pb2.GetBillingHistoryResponse,
377
- collections.abc.Awaitable[
378
- weaveapi.payment.v1.service_pb2.GetBillingHistoryResponse
379
- ],
313
+ ) -> _typing.Union[
314
+ _service_pb2.GetBillingHistoryResponse,
315
+ _abc.Awaitable[_service_pb2.GetBillingHistoryResponse],
380
316
  ]:
381
317
  """Billing & Payment Methods
382
318
 
383
319
  Get billing history
384
320
  """
385
321
 
386
- @abc.abstractmethod
322
+ @_abc_1.abstractmethod
387
323
  def GetUpcomingInvoice(
388
324
  self,
389
- request: weaveapi.payment.v1.service_pb2.GetUpcomingInvoiceRequest,
325
+ request: _service_pb2.GetUpcomingInvoiceRequest,
390
326
  context: _ServicerContext,
391
- ) -> typing.Union[
392
- weaveapi.payment.v1.service_pb2.GetUpcomingInvoiceResponse,
393
- collections.abc.Awaitable[
394
- weaveapi.payment.v1.service_pb2.GetUpcomingInvoiceResponse
395
- ],
327
+ ) -> _typing.Union[
328
+ _service_pb2.GetUpcomingInvoiceResponse,
329
+ _abc.Awaitable[_service_pb2.GetUpcomingInvoiceResponse],
396
330
  ]:
397
331
  """Get upcoming invoice preview"""
398
332
 
399
- @abc.abstractmethod
333
+ @_abc_1.abstractmethod
400
334
  def ListPaymentMethods(
401
335
  self,
402
- request: weaveapi.payment.v1.service_pb2.ListPaymentMethodsRequest,
336
+ request: _service_pb2.ListPaymentMethodsRequest,
403
337
  context: _ServicerContext,
404
- ) -> typing.Union[
405
- weaveapi.payment.v1.service_pb2.ListPaymentMethodsResponse,
406
- collections.abc.Awaitable[
407
- weaveapi.payment.v1.service_pb2.ListPaymentMethodsResponse
408
- ],
338
+ ) -> _typing.Union[
339
+ _service_pb2.ListPaymentMethodsResponse,
340
+ _abc.Awaitable[_service_pb2.ListPaymentMethodsResponse],
409
341
  ]:
410
342
  """List payment methods"""
411
343
 
412
- @abc.abstractmethod
344
+ @_abc_1.abstractmethod
413
345
  def AddPaymentMethod(
414
346
  self,
415
- request: weaveapi.payment.v1.service_pb2.AddPaymentMethodRequest,
347
+ request: _service_pb2.AddPaymentMethodRequest,
416
348
  context: _ServicerContext,
417
- ) -> typing.Union[
418
- weaveapi.payment.v1.service_pb2.AddPaymentMethodResponse,
419
- collections.abc.Awaitable[
420
- weaveapi.payment.v1.service_pb2.AddPaymentMethodResponse
421
- ],
349
+ ) -> _typing.Union[
350
+ _service_pb2.AddPaymentMethodResponse,
351
+ _abc.Awaitable[_service_pb2.AddPaymentMethodResponse],
422
352
  ]:
423
353
  """Add payment method"""
424
354
 
425
- @abc.abstractmethod
355
+ @_abc_1.abstractmethod
426
356
  def SetDefaultPaymentMethod(
427
357
  self,
428
- request: weaveapi.payment.v1.service_pb2.SetDefaultPaymentMethodRequest,
358
+ request: _service_pb2.SetDefaultPaymentMethodRequest,
429
359
  context: _ServicerContext,
430
- ) -> typing.Union[
431
- weaveapi.payment.v1.service_pb2.SetDefaultPaymentMethodResponse,
432
- collections.abc.Awaitable[
433
- weaveapi.payment.v1.service_pb2.SetDefaultPaymentMethodResponse
434
- ],
360
+ ) -> _typing.Union[
361
+ _service_pb2.SetDefaultPaymentMethodResponse,
362
+ _abc.Awaitable[_service_pb2.SetDefaultPaymentMethodResponse],
435
363
  ]:
436
364
  """Set default payment method"""
437
365
 
438
- @abc.abstractmethod
366
+ @_abc_1.abstractmethod
439
367
  def RemovePaymentMethod(
440
368
  self,
441
- request: weaveapi.payment.v1.service_pb2.RemovePaymentMethodRequest,
369
+ request: _service_pb2.RemovePaymentMethodRequest,
442
370
  context: _ServicerContext,
443
- ) -> typing.Union[
444
- weaveapi.payment.v1.service_pb2.RemovePaymentMethodResponse,
445
- collections.abc.Awaitable[
446
- weaveapi.payment.v1.service_pb2.RemovePaymentMethodResponse
447
- ],
371
+ ) -> _typing.Union[
372
+ _service_pb2.RemovePaymentMethodResponse,
373
+ _abc.Awaitable[_service_pb2.RemovePaymentMethodResponse],
448
374
  ]:
449
375
  """Remove payment method"""
450
376
 
451
- @abc.abstractmethod
377
+ @_abc_1.abstractmethod
452
378
  def CreatePortalSession(
453
379
  self,
454
- request: weaveapi.payment.v1.service_pb2.CreatePortalSessionRequest,
380
+ request: _service_pb2.CreatePortalSessionRequest,
455
381
  context: _ServicerContext,
456
- ) -> typing.Union[
457
- weaveapi.payment.v1.service_pb2.CreatePortalSessionResponse,
458
- collections.abc.Awaitable[
459
- weaveapi.payment.v1.service_pb2.CreatePortalSessionResponse
460
- ],
382
+ ) -> _typing.Union[
383
+ _service_pb2.CreatePortalSessionResponse,
384
+ _abc.Awaitable[_service_pb2.CreatePortalSessionResponse],
461
385
  ]:
462
386
  """Customer Portal
463
387
 
464
388
  Create Stripe customer portal session
465
389
  """
466
390
 
467
- @abc.abstractmethod
391
+ @_abc_1.abstractmethod
468
392
  def GetPricingPlans(
469
393
  self,
470
- request: weaveapi.payment.v1.service_pb2.GetPricingPlansRequest,
394
+ request: _service_pb2.GetPricingPlansRequest,
471
395
  context: _ServicerContext,
472
- ) -> typing.Union[
473
- weaveapi.payment.v1.service_pb2.GetPricingPlansResponse,
474
- collections.abc.Awaitable[
475
- weaveapi.payment.v1.service_pb2.GetPricingPlansResponse
476
- ],
396
+ ) -> _typing.Union[
397
+ _service_pb2.GetPricingPlansResponse,
398
+ _abc.Awaitable[_service_pb2.GetPricingPlansResponse],
477
399
  ]:
478
400
  """Pricing & Plans
479
401
 
480
402
  Get available pricing plans
481
403
  """
482
404
 
483
- @abc.abstractmethod
405
+ @_abc_1.abstractmethod
484
406
  def ApplyPromoCode(
485
407
  self,
486
- request: weaveapi.payment.v1.service_pb2.ApplyPromoCodeRequest,
408
+ request: _service_pb2.ApplyPromoCodeRequest,
487
409
  context: _ServicerContext,
488
- ) -> typing.Union[
489
- weaveapi.payment.v1.service_pb2.ApplyPromoCodeResponse,
490
- collections.abc.Awaitable[
491
- weaveapi.payment.v1.service_pb2.ApplyPromoCodeResponse
492
- ],
410
+ ) -> _typing.Union[
411
+ _service_pb2.ApplyPromoCodeResponse,
412
+ _abc.Awaitable[_service_pb2.ApplyPromoCodeResponse],
493
413
  ]:
494
414
  """Apply promo code"""
495
415
 
496
- @abc.abstractmethod
416
+ @_abc_1.abstractmethod
497
417
  def HandleStripeWebhook(
498
418
  self,
499
- request: weaveapi.payment.v1.service_pb2.HandleStripeWebhookRequest,
419
+ request: _service_pb2.HandleStripeWebhookRequest,
500
420
  context: _ServicerContext,
501
- ) -> typing.Union[
502
- weaveapi.payment.v1.service_pb2.HandleStripeWebhookResponse,
503
- collections.abc.Awaitable[
504
- weaveapi.payment.v1.service_pb2.HandleStripeWebhookResponse
505
- ],
421
+ ) -> _typing.Union[
422
+ _service_pb2.HandleStripeWebhookResponse,
423
+ _abc.Awaitable[_service_pb2.HandleStripeWebhookResponse],
506
424
  ]:
507
425
  """Webhooks
508
426
 
509
427
  Handle Stripe webhook events
510
428
  """
511
429
 
512
- @abc.abstractmethod
430
+ @_abc_1.abstractmethod
513
431
  def GetUsageSummary(
514
432
  self,
515
- request: weaveapi.payment.v1.service_pb2.GetUsageSummaryRequest,
433
+ request: _service_pb2.GetUsageSummaryRequest,
516
434
  context: _ServicerContext,
517
- ) -> typing.Union[
518
- weaveapi.payment.v1.service_pb2.GetUsageSummaryResponse,
519
- collections.abc.Awaitable[
520
- weaveapi.payment.v1.service_pb2.GetUsageSummaryResponse
521
- ],
435
+ ) -> _typing.Union[
436
+ _service_pb2.GetUsageSummaryResponse,
437
+ _abc.Awaitable[_service_pb2.GetUsageSummaryResponse],
522
438
  ]:
523
439
  """Usage & Credits
524
440
 
525
441
  Get usage summary for billing period
526
442
  """
527
443
 
528
- @abc.abstractmethod
444
+ @_abc_1.abstractmethod
529
445
  def GetCreditBalance(
530
446
  self,
531
- request: weaveapi.payment.v1.service_pb2.GetCreditBalanceRequest,
447
+ request: _service_pb2.GetCreditBalanceRequest,
532
448
  context: _ServicerContext,
533
- ) -> typing.Union[
534
- weaveapi.payment.v1.service_pb2.GetCreditBalanceResponse,
535
- collections.abc.Awaitable[
536
- weaveapi.payment.v1.service_pb2.GetCreditBalanceResponse
537
- ],
449
+ ) -> _typing.Union[
450
+ _service_pb2.GetCreditBalanceResponse,
451
+ _abc.Awaitable[_service_pb2.GetCreditBalanceResponse],
538
452
  ]:
539
453
  """Get credit balance (if applicable)"""
540
454
 
541
- @abc.abstractmethod
455
+ @_abc_1.abstractmethod
542
456
  def UpdateTaxInfo(
543
457
  self,
544
- request: weaveapi.payment.v1.service_pb2.UpdateTaxInfoRequest,
458
+ request: _service_pb2.UpdateTaxInfoRequest,
545
459
  context: _ServicerContext,
546
- ) -> typing.Union[
547
- weaveapi.payment.v1.service_pb2.UpdateTaxInfoResponse,
548
- collections.abc.Awaitable[
549
- weaveapi.payment.v1.service_pb2.UpdateTaxInfoResponse
550
- ],
460
+ ) -> _typing.Union[
461
+ _service_pb2.UpdateTaxInfoResponse,
462
+ _abc.Awaitable[_service_pb2.UpdateTaxInfoResponse],
551
463
  ]:
552
464
  """Tax & Compliance
553
465
 
554
466
  Update tax information
555
467
  """
556
468
 
557
- @abc.abstractmethod
469
+ @_abc_1.abstractmethod
558
470
  def DownloadInvoice(
559
471
  self,
560
- request: weaveapi.payment.v1.service_pb2.DownloadInvoiceRequest,
472
+ request: _service_pb2.DownloadInvoiceRequest,
561
473
  context: _ServicerContext,
562
- ) -> typing.Union[
563
- weaveapi.payment.v1.service_pb2.DownloadInvoiceResponse,
564
- collections.abc.Awaitable[
565
- weaveapi.payment.v1.service_pb2.DownloadInvoiceResponse
566
- ],
474
+ ) -> _typing.Union[
475
+ _service_pb2.DownloadInvoiceResponse,
476
+ _abc.Awaitable[_service_pb2.DownloadInvoiceResponse],
567
477
  ]:
568
478
  """Download invoice PDF"""
569
479
 
570
480
  def add_PaymentServicer_to_server(
571
- servicer: PaymentServicer, server: typing.Union[grpc.Server, grpc.aio.Server]
481
+ servicer: PaymentServicer, server: _typing.Union[_grpc.Server, _aio.Server]
572
482
  ) -> None: ...