weave-python 0.28.2__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 (104) 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.28.2.dist-info → weave_python-0.30.3.dist-info}/METADATA +3 -3
  101. weave_python-0.30.3.dist-info/RECORD +131 -0
  102. {weave_python-0.28.2.dist-info → weave_python-0.30.3.dist-info}/WHEEL +1 -1
  103. weave_python-0.28.2.dist-info/RECORD +0 -120
  104. {weave_python-0.28.2.dist-info → weave_python-0.30.3.dist-info}/licenses/LICENSE +0 -0
@@ -3,347 +3,408 @@
3
3
  isort:skip_file
4
4
  """
5
5
 
6
- import builtins
7
- import collections.abc
8
- import google.protobuf.descriptor
9
- import google.protobuf.internal.containers
10
- import google.protobuf.message
11
- import google.protobuf.timestamp_pb2
12
- import typing
13
- import weaveapi.payment.v1.subscription_pb2
6
+ from collections import abc as _abc
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import message as _message
9
+ from google.protobuf import timestamp_pb2 as _timestamp_pb2
10
+ from google.protobuf.internal import containers as _containers
11
+ from weaveapi.payment.v1 import subscription_pb2 as _subscription_pb2
12
+ import builtins as _builtins
13
+ import sys
14
+ import typing as _typing
14
15
 
15
- DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
16
+ if sys.version_info >= (3, 10):
17
+ from typing import TypeAlias as _TypeAlias
18
+ else:
19
+ from typing_extensions import TypeAlias as _TypeAlias
16
20
 
17
- @typing.final
18
- class Invoice(google.protobuf.message.Message):
19
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
21
+ DESCRIPTOR: _descriptor.FileDescriptor
20
22
 
21
- @typing.final
22
- class MetadataEntry(google.protobuf.message.Message):
23
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
23
+ @_typing.final
24
+ class Invoice(_message.Message):
25
+ DESCRIPTOR: _descriptor.Descriptor
24
26
 
25
- KEY_FIELD_NUMBER: builtins.int
26
- VALUE_FIELD_NUMBER: builtins.int
27
- key: builtins.str
28
- value: builtins.str
27
+ @_typing.final
28
+ class MetadataEntry(_message.Message):
29
+ DESCRIPTOR: _descriptor.Descriptor
30
+
31
+ KEY_FIELD_NUMBER: _builtins.int
32
+ VALUE_FIELD_NUMBER: _builtins.int
33
+ key: _builtins.str
34
+ value: _builtins.str
29
35
  def __init__(
30
36
  self,
31
37
  *,
32
- key: builtins.str = ...,
33
- value: builtins.str = ...,
34
- ) -> None: ...
35
- def ClearField(
36
- self, field_name: typing.Literal["key", b"key", "value", b"value"]
38
+ key: _builtins.str | None = ...,
39
+ value: _builtins.str | None = ...,
37
40
  ) -> None: ...
41
+ _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015
42
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
43
+ _ClearFieldArgType: _TypeAlias = _typing.Literal[
44
+ "key", b"key", "value", b"value"
45
+ ] # noqa: Y015
46
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
38
47
 
39
- ID_FIELD_NUMBER: builtins.int
40
- NUMBER_FIELD_NUMBER: builtins.int
41
- STATUS_FIELD_NUMBER: builtins.int
42
- SUBTOTAL_CENTS_FIELD_NUMBER: builtins.int
43
- TAX_CENTS_FIELD_NUMBER: builtins.int
44
- TOTAL_CENTS_FIELD_NUMBER: builtins.int
45
- AMOUNT_PAID_CENTS_FIELD_NUMBER: builtins.int
46
- AMOUNT_DUE_CENTS_FIELD_NUMBER: builtins.int
47
- CURRENCY_FIELD_NUMBER: builtins.int
48
- CREATED_AT_FIELD_NUMBER: builtins.int
49
- PERIOD_START_FIELD_NUMBER: builtins.int
50
- PERIOD_END_FIELD_NUMBER: builtins.int
51
- DUE_DATE_FIELD_NUMBER: builtins.int
52
- PAID_AT_FIELD_NUMBER: builtins.int
53
- LINE_ITEMS_FIELD_NUMBER: builtins.int
54
- PAYMENT_METHOD_FIELD_NUMBER: builtins.int
55
- PAYMENT_INTENT_ID_FIELD_NUMBER: builtins.int
56
- PDF_URL_FIELD_NUMBER: builtins.int
57
- HOSTED_INVOICE_URL_FIELD_NUMBER: builtins.int
58
- DISCOUNT_FIELD_NUMBER: builtins.int
59
- TAX_RATES_FIELD_NUMBER: builtins.int
60
- TAX_ID_FIELD_NUMBER: builtins.int
61
- METADATA_FIELD_NUMBER: builtins.int
62
- id: builtins.str
48
+ ID_FIELD_NUMBER: _builtins.int
49
+ NUMBER_FIELD_NUMBER: _builtins.int
50
+ STATUS_FIELD_NUMBER: _builtins.int
51
+ SUBTOTAL_CENTS_FIELD_NUMBER: _builtins.int
52
+ TAX_CENTS_FIELD_NUMBER: _builtins.int
53
+ TOTAL_CENTS_FIELD_NUMBER: _builtins.int
54
+ AMOUNT_PAID_CENTS_FIELD_NUMBER: _builtins.int
55
+ AMOUNT_DUE_CENTS_FIELD_NUMBER: _builtins.int
56
+ CURRENCY_FIELD_NUMBER: _builtins.int
57
+ CREATED_AT_FIELD_NUMBER: _builtins.int
58
+ PERIOD_START_FIELD_NUMBER: _builtins.int
59
+ PERIOD_END_FIELD_NUMBER: _builtins.int
60
+ DUE_DATE_FIELD_NUMBER: _builtins.int
61
+ PAID_AT_FIELD_NUMBER: _builtins.int
62
+ LINE_ITEMS_FIELD_NUMBER: _builtins.int
63
+ PAYMENT_METHOD_FIELD_NUMBER: _builtins.int
64
+ PAYMENT_INTENT_ID_FIELD_NUMBER: _builtins.int
65
+ PDF_URL_FIELD_NUMBER: _builtins.int
66
+ HOSTED_INVOICE_URL_FIELD_NUMBER: _builtins.int
67
+ DISCOUNT_FIELD_NUMBER: _builtins.int
68
+ TAX_RATES_FIELD_NUMBER: _builtins.int
69
+ TAX_ID_FIELD_NUMBER: _builtins.int
70
+ METADATA_FIELD_NUMBER: _builtins.int
71
+ id: _builtins.str
63
72
  """Stripe invoice ID"""
64
- number: builtins.str
73
+ number: _builtins.str
65
74
  """Invoice number"""
66
- status: builtins.str
75
+ status: _builtins.str
67
76
  """draft, open, paid, void, uncollectible"""
68
- subtotal_cents: builtins.int
77
+ subtotal_cents: _builtins.int
69
78
  """Amounts"""
70
- tax_cents: builtins.int
71
- total_cents: builtins.int
72
- amount_paid_cents: builtins.int
73
- amount_due_cents: builtins.int
74
- currency: builtins.str
75
- payment_intent_id: builtins.str
76
- pdf_url: builtins.str
79
+ tax_cents: _builtins.int
80
+ total_cents: _builtins.int
81
+ amount_paid_cents: _builtins.int
82
+ amount_due_cents: _builtins.int
83
+ currency: _builtins.str
84
+ payment_intent_id: _builtins.str
85
+ pdf_url: _builtins.str
77
86
  """Files"""
78
- hosted_invoice_url: builtins.str
79
- tax_id: builtins.str
80
- @property
81
- def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
87
+ hosted_invoice_url: _builtins.str
88
+ tax_id: _builtins.str
89
+ @_builtins.property
90
+ def created_at(self) -> _timestamp_pb2.Timestamp:
82
91
  """Dates"""
83
92
 
84
- @property
85
- def period_start(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
86
- @property
87
- def period_end(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
88
- @property
89
- def due_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
90
- @property
91
- def paid_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
92
- @property
93
+ @_builtins.property
94
+ def period_start(self) -> _timestamp_pb2.Timestamp: ...
95
+ @_builtins.property
96
+ def period_end(self) -> _timestamp_pb2.Timestamp: ...
97
+ @_builtins.property
98
+ def due_date(self) -> _timestamp_pb2.Timestamp: ...
99
+ @_builtins.property
100
+ def paid_at(self) -> _timestamp_pb2.Timestamp: ...
101
+ @_builtins.property
93
102
  def line_items(
94
103
  self,
95
- ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
96
- global___InvoiceLineItem
97
- ]:
104
+ ) -> _containers.RepeatedCompositeFieldContainer[Global___InvoiceLineItem]:
98
105
  """Line items"""
99
106
 
100
- @property
101
- def payment_method(self) -> weaveapi.payment.v1.subscription_pb2.PaymentMethod:
107
+ @_builtins.property
108
+ def payment_method(self) -> _subscription_pb2.PaymentMethod:
102
109
  """Payment"""
103
110
 
104
- @property
105
- def discount(self) -> weaveapi.payment.v1.subscription_pb2.Discount:
111
+ @_builtins.property
112
+ def discount(self) -> _subscription_pb2.Discount:
106
113
  """Discount"""
107
114
 
108
- @property
115
+ @_builtins.property
109
116
  def tax_rates(
110
117
  self,
111
- ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
112
- global___TaxRate
113
- ]:
118
+ ) -> _containers.RepeatedCompositeFieldContainer[Global___TaxRate]:
114
119
  """Tax"""
115
120
 
116
- @property
117
- def metadata(
118
- self,
119
- ) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
121
+ @_builtins.property
122
+ def metadata(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]:
120
123
  """Metadata"""
121
124
 
122
125
  def __init__(
123
126
  self,
124
127
  *,
125
- id: builtins.str = ...,
126
- number: builtins.str = ...,
127
- status: builtins.str = ...,
128
- subtotal_cents: builtins.int = ...,
129
- tax_cents: builtins.int = ...,
130
- total_cents: builtins.int = ...,
131
- amount_paid_cents: builtins.int = ...,
132
- amount_due_cents: builtins.int = ...,
133
- currency: builtins.str = ...,
134
- created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
135
- period_start: google.protobuf.timestamp_pb2.Timestamp | None = ...,
136
- period_end: google.protobuf.timestamp_pb2.Timestamp | None = ...,
137
- due_date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
138
- paid_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
139
- line_items: collections.abc.Iterable[global___InvoiceLineItem] | None = ...,
140
- payment_method: weaveapi.payment.v1.subscription_pb2.PaymentMethod | None = ...,
141
- payment_intent_id: builtins.str = ...,
142
- pdf_url: builtins.str = ...,
143
- hosted_invoice_url: builtins.str = ...,
144
- discount: weaveapi.payment.v1.subscription_pb2.Discount | None = ...,
145
- tax_rates: collections.abc.Iterable[global___TaxRate] | None = ...,
146
- tax_id: builtins.str = ...,
147
- metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
148
- ) -> None: ...
149
- def HasField(
150
- self,
151
- field_name: typing.Literal[
152
- "created_at",
153
- b"created_at",
154
- "discount",
155
- b"discount",
156
- "due_date",
157
- b"due_date",
158
- "paid_at",
159
- b"paid_at",
160
- "payment_method",
161
- b"payment_method",
162
- "period_end",
163
- b"period_end",
164
- "period_start",
165
- b"period_start",
166
- ],
167
- ) -> builtins.bool: ...
168
- def ClearField(
169
- self,
170
- field_name: typing.Literal[
171
- "amount_due_cents",
172
- b"amount_due_cents",
173
- "amount_paid_cents",
174
- b"amount_paid_cents",
175
- "created_at",
176
- b"created_at",
177
- "currency",
178
- b"currency",
179
- "discount",
180
- b"discount",
181
- "due_date",
182
- b"due_date",
183
- "hosted_invoice_url",
184
- b"hosted_invoice_url",
185
- "id",
186
- b"id",
187
- "line_items",
188
- b"line_items",
189
- "metadata",
190
- b"metadata",
191
- "number",
192
- b"number",
193
- "paid_at",
194
- b"paid_at",
195
- "payment_intent_id",
196
- b"payment_intent_id",
197
- "payment_method",
198
- b"payment_method",
199
- "pdf_url",
200
- b"pdf_url",
201
- "period_end",
202
- b"period_end",
203
- "period_start",
204
- b"period_start",
205
- "status",
206
- b"status",
207
- "subtotal_cents",
208
- b"subtotal_cents",
209
- "tax_cents",
210
- b"tax_cents",
211
- "tax_id",
212
- b"tax_id",
213
- "tax_rates",
214
- b"tax_rates",
215
- "total_cents",
216
- b"total_cents",
217
- ],
128
+ id: _builtins.str | None = ...,
129
+ number: _builtins.str | None = ...,
130
+ status: _builtins.str | None = ...,
131
+ subtotal_cents: _builtins.int | None = ...,
132
+ tax_cents: _builtins.int | None = ...,
133
+ total_cents: _builtins.int | None = ...,
134
+ amount_paid_cents: _builtins.int | None = ...,
135
+ amount_due_cents: _builtins.int | None = ...,
136
+ currency: _builtins.str | None = ...,
137
+ created_at: _timestamp_pb2.Timestamp | None = ...,
138
+ period_start: _timestamp_pb2.Timestamp | None = ...,
139
+ period_end: _timestamp_pb2.Timestamp | None = ...,
140
+ due_date: _timestamp_pb2.Timestamp | None = ...,
141
+ paid_at: _timestamp_pb2.Timestamp | None = ...,
142
+ line_items: _abc.Iterable[Global___InvoiceLineItem] | None = ...,
143
+ payment_method: _subscription_pb2.PaymentMethod | None = ...,
144
+ payment_intent_id: _builtins.str | None = ...,
145
+ pdf_url: _builtins.str | None = ...,
146
+ hosted_invoice_url: _builtins.str | None = ...,
147
+ discount: _subscription_pb2.Discount | None = ...,
148
+ tax_rates: _abc.Iterable[Global___TaxRate] | None = ...,
149
+ tax_id: _builtins.str | None = ...,
150
+ metadata: _abc.Mapping[_builtins.str, _builtins.str] | None = ...,
218
151
  ) -> None: ...
152
+ _HasFieldArgType: _TypeAlias = _typing.Literal[
153
+ "amount_due_cents",
154
+ b"amount_due_cents",
155
+ "amount_paid_cents",
156
+ b"amount_paid_cents",
157
+ "created_at",
158
+ b"created_at",
159
+ "currency",
160
+ b"currency",
161
+ "discount",
162
+ b"discount",
163
+ "due_date",
164
+ b"due_date",
165
+ "hosted_invoice_url",
166
+ b"hosted_invoice_url",
167
+ "id",
168
+ b"id",
169
+ "line_items",
170
+ b"line_items",
171
+ "metadata",
172
+ b"metadata",
173
+ "number",
174
+ b"number",
175
+ "paid_at",
176
+ b"paid_at",
177
+ "payment_intent_id",
178
+ b"payment_intent_id",
179
+ "payment_method",
180
+ b"payment_method",
181
+ "pdf_url",
182
+ b"pdf_url",
183
+ "period_end",
184
+ b"period_end",
185
+ "period_start",
186
+ b"period_start",
187
+ "status",
188
+ b"status",
189
+ "subtotal_cents",
190
+ b"subtotal_cents",
191
+ "tax_cents",
192
+ b"tax_cents",
193
+ "tax_id",
194
+ b"tax_id",
195
+ "tax_rates",
196
+ b"tax_rates",
197
+ "total_cents",
198
+ b"total_cents",
199
+ ] # noqa: Y015
200
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
201
+ _ClearFieldArgType: _TypeAlias = _typing.Literal[
202
+ "amount_due_cents",
203
+ b"amount_due_cents",
204
+ "amount_paid_cents",
205
+ b"amount_paid_cents",
206
+ "created_at",
207
+ b"created_at",
208
+ "currency",
209
+ b"currency",
210
+ "discount",
211
+ b"discount",
212
+ "due_date",
213
+ b"due_date",
214
+ "hosted_invoice_url",
215
+ b"hosted_invoice_url",
216
+ "id",
217
+ b"id",
218
+ "line_items",
219
+ b"line_items",
220
+ "metadata",
221
+ b"metadata",
222
+ "number",
223
+ b"number",
224
+ "paid_at",
225
+ b"paid_at",
226
+ "payment_intent_id",
227
+ b"payment_intent_id",
228
+ "payment_method",
229
+ b"payment_method",
230
+ "pdf_url",
231
+ b"pdf_url",
232
+ "period_end",
233
+ b"period_end",
234
+ "period_start",
235
+ b"period_start",
236
+ "status",
237
+ b"status",
238
+ "subtotal_cents",
239
+ b"subtotal_cents",
240
+ "tax_cents",
241
+ b"tax_cents",
242
+ "tax_id",
243
+ b"tax_id",
244
+ "tax_rates",
245
+ b"tax_rates",
246
+ "total_cents",
247
+ b"total_cents",
248
+ ] # noqa: Y015
249
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
219
250
 
220
- global___Invoice = Invoice
251
+ Global___Invoice: _TypeAlias = Invoice # noqa: Y015
221
252
 
222
- @typing.final
223
- class InvoiceLineItem(google.protobuf.message.Message):
224
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
253
+ @_typing.final
254
+ class InvoiceLineItem(_message.Message):
255
+ DESCRIPTOR: _descriptor.Descriptor
225
256
 
226
- ID_FIELD_NUMBER: builtins.int
227
- DESCRIPTION_FIELD_NUMBER: builtins.int
228
- AMOUNT_CENTS_FIELD_NUMBER: builtins.int
229
- CURRENCY_FIELD_NUMBER: builtins.int
230
- QUANTITY_FIELD_NUMBER: builtins.int
231
- UNIT_AMOUNT_CENTS_FIELD_NUMBER: builtins.int
232
- PERIOD_START_FIELD_NUMBER: builtins.int
233
- PERIOD_END_FIELD_NUMBER: builtins.int
234
- PRODUCT_ID_FIELD_NUMBER: builtins.int
235
- PRICE_ID_FIELD_NUMBER: builtins.int
236
- PRORATION_FIELD_NUMBER: builtins.int
237
- PRORATION_DETAILS_FIELD_NUMBER: builtins.int
238
- id: builtins.str
239
- description: builtins.str
240
- amount_cents: builtins.int
241
- currency: builtins.str
242
- quantity: builtins.int
243
- unit_amount_cents: builtins.int
244
- product_id: builtins.str
257
+ ID_FIELD_NUMBER: _builtins.int
258
+ DESCRIPTION_FIELD_NUMBER: _builtins.int
259
+ AMOUNT_CENTS_FIELD_NUMBER: _builtins.int
260
+ CURRENCY_FIELD_NUMBER: _builtins.int
261
+ QUANTITY_FIELD_NUMBER: _builtins.int
262
+ UNIT_AMOUNT_CENTS_FIELD_NUMBER: _builtins.int
263
+ PERIOD_START_FIELD_NUMBER: _builtins.int
264
+ PERIOD_END_FIELD_NUMBER: _builtins.int
265
+ PRODUCT_ID_FIELD_NUMBER: _builtins.int
266
+ PRICE_ID_FIELD_NUMBER: _builtins.int
267
+ PRORATION_FIELD_NUMBER: _builtins.int
268
+ PRORATION_DETAILS_FIELD_NUMBER: _builtins.int
269
+ id: _builtins.str
270
+ description: _builtins.str
271
+ amount_cents: _builtins.int
272
+ currency: _builtins.str
273
+ quantity: _builtins.int
274
+ unit_amount_cents: _builtins.int
275
+ product_id: _builtins.str
245
276
  """Product/Price info"""
246
- price_id: builtins.str
247
- proration: builtins.bool
277
+ price_id: _builtins.str
278
+ proration: _builtins.bool
248
279
  """Proration"""
249
- proration_details: builtins.str
250
- @property
251
- def period_start(self) -> google.protobuf.timestamp_pb2.Timestamp:
280
+ proration_details: _builtins.str
281
+ @_builtins.property
282
+ def period_start(self) -> _timestamp_pb2.Timestamp:
252
283
  """Period for subscription items"""
253
284
 
254
- @property
255
- def period_end(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
285
+ @_builtins.property
286
+ def period_end(self) -> _timestamp_pb2.Timestamp: ...
256
287
  def __init__(
257
288
  self,
258
289
  *,
259
- id: builtins.str = ...,
260
- description: builtins.str = ...,
261
- amount_cents: builtins.int = ...,
262
- currency: builtins.str = ...,
263
- quantity: builtins.int = ...,
264
- unit_amount_cents: builtins.int = ...,
265
- period_start: google.protobuf.timestamp_pb2.Timestamp | None = ...,
266
- period_end: google.protobuf.timestamp_pb2.Timestamp | None = ...,
267
- product_id: builtins.str = ...,
268
- price_id: builtins.str = ...,
269
- proration: builtins.bool = ...,
270
- proration_details: builtins.str = ...,
271
- ) -> None: ...
272
- def HasField(
273
- self,
274
- field_name: typing.Literal[
275
- "period_end", b"period_end", "period_start", b"period_start"
276
- ],
277
- ) -> builtins.bool: ...
278
- def ClearField(
279
- self,
280
- field_name: typing.Literal[
281
- "amount_cents",
282
- b"amount_cents",
283
- "currency",
284
- b"currency",
285
- "description",
286
- b"description",
287
- "id",
288
- b"id",
289
- "period_end",
290
- b"period_end",
291
- "period_start",
292
- b"period_start",
293
- "price_id",
294
- b"price_id",
295
- "product_id",
296
- b"product_id",
297
- "proration",
298
- b"proration",
299
- "proration_details",
300
- b"proration_details",
301
- "quantity",
302
- b"quantity",
303
- "unit_amount_cents",
304
- b"unit_amount_cents",
305
- ],
290
+ id: _builtins.str | None = ...,
291
+ description: _builtins.str | None = ...,
292
+ amount_cents: _builtins.int | None = ...,
293
+ currency: _builtins.str | None = ...,
294
+ quantity: _builtins.int | None = ...,
295
+ unit_amount_cents: _builtins.int | None = ...,
296
+ period_start: _timestamp_pb2.Timestamp | None = ...,
297
+ period_end: _timestamp_pb2.Timestamp | None = ...,
298
+ product_id: _builtins.str | None = ...,
299
+ price_id: _builtins.str | None = ...,
300
+ proration: _builtins.bool | None = ...,
301
+ proration_details: _builtins.str | None = ...,
306
302
  ) -> None: ...
303
+ _HasFieldArgType: _TypeAlias = _typing.Literal[
304
+ "amount_cents",
305
+ b"amount_cents",
306
+ "currency",
307
+ b"currency",
308
+ "description",
309
+ b"description",
310
+ "id",
311
+ b"id",
312
+ "period_end",
313
+ b"period_end",
314
+ "period_start",
315
+ b"period_start",
316
+ "price_id",
317
+ b"price_id",
318
+ "product_id",
319
+ b"product_id",
320
+ "proration",
321
+ b"proration",
322
+ "proration_details",
323
+ b"proration_details",
324
+ "quantity",
325
+ b"quantity",
326
+ "unit_amount_cents",
327
+ b"unit_amount_cents",
328
+ ] # noqa: Y015
329
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
330
+ _ClearFieldArgType: _TypeAlias = _typing.Literal[
331
+ "amount_cents",
332
+ b"amount_cents",
333
+ "currency",
334
+ b"currency",
335
+ "description",
336
+ b"description",
337
+ "id",
338
+ b"id",
339
+ "period_end",
340
+ b"period_end",
341
+ "period_start",
342
+ b"period_start",
343
+ "price_id",
344
+ b"price_id",
345
+ "product_id",
346
+ b"product_id",
347
+ "proration",
348
+ b"proration",
349
+ "proration_details",
350
+ b"proration_details",
351
+ "quantity",
352
+ b"quantity",
353
+ "unit_amount_cents",
354
+ b"unit_amount_cents",
355
+ ] # noqa: Y015
356
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
307
357
 
308
- global___InvoiceLineItem = InvoiceLineItem
358
+ Global___InvoiceLineItem: _TypeAlias = InvoiceLineItem # noqa: Y015
309
359
 
310
- @typing.final
311
- class TaxRate(google.protobuf.message.Message):
312
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
360
+ @_typing.final
361
+ class TaxRate(_message.Message):
362
+ DESCRIPTOR: _descriptor.Descriptor
313
363
 
314
- ID_FIELD_NUMBER: builtins.int
315
- DISPLAY_NAME_FIELD_NUMBER: builtins.int
316
- JURISDICTION_FIELD_NUMBER: builtins.int
317
- PERCENTAGE_FIELD_NUMBER: builtins.int
318
- INCLUSIVE_FIELD_NUMBER: builtins.int
319
- id: builtins.str
320
- display_name: builtins.str
321
- jurisdiction: builtins.str
322
- percentage: builtins.float
323
- inclusive: builtins.bool
364
+ ID_FIELD_NUMBER: _builtins.int
365
+ DISPLAY_NAME_FIELD_NUMBER: _builtins.int
366
+ JURISDICTION_FIELD_NUMBER: _builtins.int
367
+ PERCENTAGE_FIELD_NUMBER: _builtins.int
368
+ INCLUSIVE_FIELD_NUMBER: _builtins.int
369
+ id: _builtins.str
370
+ display_name: _builtins.str
371
+ jurisdiction: _builtins.str
372
+ percentage: _builtins.float
373
+ inclusive: _builtins.bool
324
374
  def __init__(
325
375
  self,
326
376
  *,
327
- id: builtins.str = ...,
328
- display_name: builtins.str = ...,
329
- jurisdiction: builtins.str = ...,
330
- percentage: builtins.float = ...,
331
- inclusive: builtins.bool = ...,
332
- ) -> None: ...
333
- def ClearField(
334
- self,
335
- field_name: typing.Literal[
336
- "display_name",
337
- b"display_name",
338
- "id",
339
- b"id",
340
- "inclusive",
341
- b"inclusive",
342
- "jurisdiction",
343
- b"jurisdiction",
344
- "percentage",
345
- b"percentage",
346
- ],
377
+ id: _builtins.str | None = ...,
378
+ display_name: _builtins.str | None = ...,
379
+ jurisdiction: _builtins.str | None = ...,
380
+ percentage: _builtins.float | None = ...,
381
+ inclusive: _builtins.bool | None = ...,
347
382
  ) -> None: ...
383
+ _HasFieldArgType: _TypeAlias = _typing.Literal[
384
+ "display_name",
385
+ b"display_name",
386
+ "id",
387
+ b"id",
388
+ "inclusive",
389
+ b"inclusive",
390
+ "jurisdiction",
391
+ b"jurisdiction",
392
+ "percentage",
393
+ b"percentage",
394
+ ] # noqa: Y015
395
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
396
+ _ClearFieldArgType: _TypeAlias = _typing.Literal[
397
+ "display_name",
398
+ b"display_name",
399
+ "id",
400
+ b"id",
401
+ "inclusive",
402
+ b"inclusive",
403
+ "jurisdiction",
404
+ b"jurisdiction",
405
+ "percentage",
406
+ b"percentage",
407
+ ] # noqa: Y015
408
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
348
409
 
349
- global___TaxRate = TaxRate
410
+ Global___TaxRate: _TypeAlias = TaxRate # noqa: Y015