lark-billing 0.0.9__py3-none-any.whl → 0.1.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.

Potentially problematic release.


This version of lark-billing might be problematic. Click here for more details.

Files changed (34) hide show
  1. lark/__init__.py +39 -16
  2. lark/core/client_wrapper.py +2 -2
  3. lark/pricing_metrics/__init__.py +19 -2
  4. lark/pricing_metrics/client.py +148 -22
  5. lark/pricing_metrics/raw_client.py +159 -20
  6. lark/pricing_metrics/types/__init__.py +14 -1
  7. lark/pricing_metrics/types/pricing_metric_aggregation.py +69 -1
  8. lark/rate_cards/client.py +58 -2
  9. lark/rate_cards/raw_client.py +4 -0
  10. lark/subjects/client.py +12 -2
  11. lark/types/__init__.py +23 -13
  12. lark/types/aggregation.py +45 -1
  13. lark/types/billing_state_response.py +9 -2
  14. lark/types/count_aggregation_pricing_metric_interface.py +4 -0
  15. lark/types/custom_aggregation_pricing_metric_interface.py +26 -0
  16. lark/types/last_aggregation_pricing_metric_interface.py +26 -0
  17. lark/types/{get_pricing_metric_response.py → last_aggregation_pricing_metric_resource.py} +5 -7
  18. lark/types/{create_usage_event_summary_response.py → max_aggregation_pricing_metric_interface.py} +9 -6
  19. lark/types/{create_pricing_metric_response.py → max_aggregation_pricing_metric_resource.py} +5 -7
  20. lark/types/period.py +3 -2
  21. lark/types/pricing_metric_resource.py +24 -5
  22. lark/types/pricing_metric_summary_resource.py +43 -0
  23. lark/types/sum_aggregation_pricing_metric_interface.py +4 -0
  24. lark/types/sum_aggregation_pricing_metric_resource.py +4 -1
  25. lark/usage_events/__init__.py +3 -6
  26. lark/usage_events/client.py +25 -127
  27. lark/usage_events/raw_client.py +0 -141
  28. lark/usage_events/types/__init__.py +2 -6
  29. lark/usage_events/types/create_usage_event_request_data_value.py +1 -1
  30. {lark_billing-0.0.9.dist-info → lark_billing-0.1.0.dist-info}/METADATA +1 -1
  31. {lark_billing-0.0.9.dist-info → lark_billing-0.1.0.dist-info}/RECORD +32 -31
  32. lark/types/value.py +0 -5
  33. lark/usage_events/types/create_usage_event_summary_request_aggregation_type.py +0 -5
  34. {lark_billing-0.0.9.dist-info → lark_billing-0.1.0.dist-info}/WHEEL +0 -0
@@ -5,11 +5,8 @@ import typing
5
5
 
6
6
  from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
7
7
  from ..core.request_options import RequestOptions
8
- from ..types.create_usage_event_summary_response import CreateUsageEventSummaryResponse
9
- from ..types.period import Period
10
8
  from .raw_client import AsyncRawUsageEventsClient, RawUsageEventsClient
11
9
  from .types.create_usage_event_request_data_value import CreateUsageEventRequestDataValue
12
- from .types.create_usage_event_summary_request_aggregation_type import CreateUsageEventSummaryRequestAggregationType
13
10
 
14
11
  # this is used as the default value for optional parameters
15
12
  OMIT = typing.cast(typing.Any, ...)
@@ -68,16 +65,25 @@ class UsageEventsClient:
68
65
 
69
66
  Examples
70
67
  --------
68
+ import datetime
69
+
71
70
  from lark import Lark
72
71
 
73
72
  client = Lark(
74
73
  api_key="YOUR_API_KEY",
75
74
  )
76
75
  client.usage_events.create_usage_event(
77
- idempotency_key="idempotency_key",
78
- event_name="event_name",
79
- subject_id="subject_id",
80
- data={"key": "value"},
76
+ idempotency_key="6b4ef298-4566-427d-b2ca-cd8fbe38ec60",
77
+ event_name="compute_hours",
78
+ subject_id="subj_VyX6Q96h5avMho8O7QWlKeXE",
79
+ timestamp=datetime.datetime.fromisoformat(
80
+ "2025-10-31 20:29:47+00:00",
81
+ ),
82
+ data={
83
+ "compute_hours": 100,
84
+ "instance_type": "t2.micro",
85
+ "region": "us-east-1",
86
+ },
81
87
  )
82
88
  """
83
89
  _response = self._raw_client.create_usage_event(
@@ -90,60 +96,6 @@ class UsageEventsClient:
90
96
  )
91
97
  return _response.data
92
98
 
93
- def create_usage_event_summary(
94
- self,
95
- *,
96
- event_name: str,
97
- subject_id: str,
98
- period: Period,
99
- aggregation_type: CreateUsageEventSummaryRequestAggregationType,
100
- request_options: typing.Optional[RequestOptions] = None,
101
- ) -> CreateUsageEventSummaryResponse:
102
- """
103
- Parameters
104
- ----------
105
- event_name : str
106
-
107
- subject_id : str
108
-
109
- period : Period
110
-
111
- aggregation_type : CreateUsageEventSummaryRequestAggregationType
112
-
113
- request_options : typing.Optional[RequestOptions]
114
- Request-specific configuration.
115
-
116
- Returns
117
- -------
118
- CreateUsageEventSummaryResponse
119
- Successful Response
120
-
121
- Examples
122
- --------
123
- from lark import Lark, Period
124
-
125
- client = Lark(
126
- api_key="YOUR_API_KEY",
127
- )
128
- client.usage_events.create_usage_event_summary(
129
- event_name="event_name",
130
- subject_id="subject_id",
131
- period=Period(
132
- start="2024-01-15T09:30:00Z",
133
- end="2024-01-15T09:30:00Z",
134
- ),
135
- aggregation_type="sum",
136
- )
137
- """
138
- _response = self._raw_client.create_usage_event_summary(
139
- event_name=event_name,
140
- subject_id=subject_id,
141
- period=period,
142
- aggregation_type=aggregation_type,
143
- request_options=request_options,
144
- )
145
- return _response.data
146
-
147
99
 
148
100
  class AsyncUsageEventsClient:
149
101
  def __init__(self, *, client_wrapper: AsyncClientWrapper):
@@ -199,6 +151,7 @@ class AsyncUsageEventsClient:
199
151
  Examples
200
152
  --------
201
153
  import asyncio
154
+ import datetime
202
155
 
203
156
  from lark import AsyncLark
204
157
 
@@ -209,10 +162,17 @@ class AsyncUsageEventsClient:
209
162
 
210
163
  async def main() -> None:
211
164
  await client.usage_events.create_usage_event(
212
- idempotency_key="idempotency_key",
213
- event_name="event_name",
214
- subject_id="subject_id",
215
- data={"key": "value"},
165
+ idempotency_key="6b4ef298-4566-427d-b2ca-cd8fbe38ec60",
166
+ event_name="compute_hours",
167
+ subject_id="subj_VyX6Q96h5avMho8O7QWlKeXE",
168
+ timestamp=datetime.datetime.fromisoformat(
169
+ "2025-10-31 20:29:47+00:00",
170
+ ),
171
+ data={
172
+ "compute_hours": 100,
173
+ "instance_type": "t2.micro",
174
+ "region": "us-east-1",
175
+ },
216
176
  )
217
177
 
218
178
 
@@ -227,65 +187,3 @@ class AsyncUsageEventsClient:
227
187
  request_options=request_options,
228
188
  )
229
189
  return _response.data
230
-
231
- async def create_usage_event_summary(
232
- self,
233
- *,
234
- event_name: str,
235
- subject_id: str,
236
- period: Period,
237
- aggregation_type: CreateUsageEventSummaryRequestAggregationType,
238
- request_options: typing.Optional[RequestOptions] = None,
239
- ) -> CreateUsageEventSummaryResponse:
240
- """
241
- Parameters
242
- ----------
243
- event_name : str
244
-
245
- subject_id : str
246
-
247
- period : Period
248
-
249
- aggregation_type : CreateUsageEventSummaryRequestAggregationType
250
-
251
- request_options : typing.Optional[RequestOptions]
252
- Request-specific configuration.
253
-
254
- Returns
255
- -------
256
- CreateUsageEventSummaryResponse
257
- Successful Response
258
-
259
- Examples
260
- --------
261
- import asyncio
262
-
263
- from lark import AsyncLark, Period
264
-
265
- client = AsyncLark(
266
- api_key="YOUR_API_KEY",
267
- )
268
-
269
-
270
- async def main() -> None:
271
- await client.usage_events.create_usage_event_summary(
272
- event_name="event_name",
273
- subject_id="subject_id",
274
- period=Period(
275
- start="2024-01-15T09:30:00Z",
276
- end="2024-01-15T09:30:00Z",
277
- ),
278
- aggregation_type="sum",
279
- )
280
-
281
-
282
- asyncio.run(main())
283
- """
284
- _response = await self._raw_client.create_usage_event_summary(
285
- event_name=event_name,
286
- subject_id=subject_id,
287
- period=period,
288
- aggregation_type=aggregation_type,
289
- request_options=request_options,
290
- )
291
- return _response.data
@@ -11,11 +11,8 @@ from ..core.pydantic_utilities import parse_obj_as
11
11
  from ..core.request_options import RequestOptions
12
12
  from ..core.serialization import convert_and_respect_annotation_metadata
13
13
  from ..errors.unprocessable_entity_error import UnprocessableEntityError
14
- from ..types.create_usage_event_summary_response import CreateUsageEventSummaryResponse
15
14
  from ..types.http_validation_error import HttpValidationError
16
- from ..types.period import Period
17
15
  from .types.create_usage_event_request_data_value import CreateUsageEventRequestDataValue
18
- from .types.create_usage_event_summary_request_aggregation_type import CreateUsageEventSummaryRequestAggregationType
19
16
 
20
17
  # this is used as the default value for optional parameters
21
18
  OMIT = typing.cast(typing.Any, ...)
@@ -107,75 +104,6 @@ class RawUsageEventsClient:
107
104
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
108
105
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
109
106
 
110
- def create_usage_event_summary(
111
- self,
112
- *,
113
- event_name: str,
114
- subject_id: str,
115
- period: Period,
116
- aggregation_type: CreateUsageEventSummaryRequestAggregationType,
117
- request_options: typing.Optional[RequestOptions] = None,
118
- ) -> HttpResponse[CreateUsageEventSummaryResponse]:
119
- """
120
- Parameters
121
- ----------
122
- event_name : str
123
-
124
- subject_id : str
125
-
126
- period : Period
127
-
128
- aggregation_type : CreateUsageEventSummaryRequestAggregationType
129
-
130
- request_options : typing.Optional[RequestOptions]
131
- Request-specific configuration.
132
-
133
- Returns
134
- -------
135
- HttpResponse[CreateUsageEventSummaryResponse]
136
- Successful Response
137
- """
138
- _response = self._client_wrapper.httpx_client.request(
139
- "usage-events/summary",
140
- method="POST",
141
- json={
142
- "event_name": event_name,
143
- "subject_id": subject_id,
144
- "period": convert_and_respect_annotation_metadata(object_=period, annotation=Period, direction="write"),
145
- "aggregation_type": aggregation_type,
146
- },
147
- headers={
148
- "content-type": "application/json",
149
- },
150
- request_options=request_options,
151
- omit=OMIT,
152
- )
153
- try:
154
- if 200 <= _response.status_code < 300:
155
- _data = typing.cast(
156
- CreateUsageEventSummaryResponse,
157
- parse_obj_as(
158
- type_=CreateUsageEventSummaryResponse, # type: ignore
159
- object_=_response.json(),
160
- ),
161
- )
162
- return HttpResponse(response=_response, data=_data)
163
- if _response.status_code == 422:
164
- raise UnprocessableEntityError(
165
- headers=dict(_response.headers),
166
- body=typing.cast(
167
- HttpValidationError,
168
- parse_obj_as(
169
- type_=HttpValidationError, # type: ignore
170
- object_=_response.json(),
171
- ),
172
- ),
173
- )
174
- _response_json = _response.json()
175
- except JSONDecodeError:
176
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
177
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
178
-
179
107
 
180
108
  class AsyncRawUsageEventsClient:
181
109
  def __init__(self, *, client_wrapper: AsyncClientWrapper):
@@ -262,72 +190,3 @@ class AsyncRawUsageEventsClient:
262
190
  except JSONDecodeError:
263
191
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
264
192
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
265
-
266
- async def create_usage_event_summary(
267
- self,
268
- *,
269
- event_name: str,
270
- subject_id: str,
271
- period: Period,
272
- aggregation_type: CreateUsageEventSummaryRequestAggregationType,
273
- request_options: typing.Optional[RequestOptions] = None,
274
- ) -> AsyncHttpResponse[CreateUsageEventSummaryResponse]:
275
- """
276
- Parameters
277
- ----------
278
- event_name : str
279
-
280
- subject_id : str
281
-
282
- period : Period
283
-
284
- aggregation_type : CreateUsageEventSummaryRequestAggregationType
285
-
286
- request_options : typing.Optional[RequestOptions]
287
- Request-specific configuration.
288
-
289
- Returns
290
- -------
291
- AsyncHttpResponse[CreateUsageEventSummaryResponse]
292
- Successful Response
293
- """
294
- _response = await self._client_wrapper.httpx_client.request(
295
- "usage-events/summary",
296
- method="POST",
297
- json={
298
- "event_name": event_name,
299
- "subject_id": subject_id,
300
- "period": convert_and_respect_annotation_metadata(object_=period, annotation=Period, direction="write"),
301
- "aggregation_type": aggregation_type,
302
- },
303
- headers={
304
- "content-type": "application/json",
305
- },
306
- request_options=request_options,
307
- omit=OMIT,
308
- )
309
- try:
310
- if 200 <= _response.status_code < 300:
311
- _data = typing.cast(
312
- CreateUsageEventSummaryResponse,
313
- parse_obj_as(
314
- type_=CreateUsageEventSummaryResponse, # type: ignore
315
- object_=_response.json(),
316
- ),
317
- )
318
- return AsyncHttpResponse(response=_response, data=_data)
319
- if _response.status_code == 422:
320
- raise UnprocessableEntityError(
321
- headers=dict(_response.headers),
322
- body=typing.cast(
323
- HttpValidationError,
324
- parse_obj_as(
325
- type_=HttpValidationError, # type: ignore
326
- object_=_response.json(),
327
- ),
328
- ),
329
- )
330
- _response_json = _response.json()
331
- except JSONDecodeError:
332
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
333
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
@@ -7,11 +7,7 @@ from importlib import import_module
7
7
 
8
8
  if typing.TYPE_CHECKING:
9
9
  from .create_usage_event_request_data_value import CreateUsageEventRequestDataValue
10
- from .create_usage_event_summary_request_aggregation_type import CreateUsageEventSummaryRequestAggregationType
11
- _dynamic_imports: typing.Dict[str, str] = {
12
- "CreateUsageEventRequestDataValue": ".create_usage_event_request_data_value",
13
- "CreateUsageEventSummaryRequestAggregationType": ".create_usage_event_summary_request_aggregation_type",
14
- }
10
+ _dynamic_imports: typing.Dict[str, str] = {"CreateUsageEventRequestDataValue": ".create_usage_event_request_data_value"}
15
11
 
16
12
 
17
13
  def __getattr__(attr_name: str) -> typing.Any:
@@ -35,4 +31,4 @@ def __dir__():
35
31
  return sorted(lazy_attrs)
36
32
 
37
33
 
38
- __all__ = ["CreateUsageEventRequestDataValue", "CreateUsageEventSummaryRequestAggregationType"]
34
+ __all__ = ["CreateUsageEventRequestDataValue"]
@@ -2,4 +2,4 @@
2
2
 
3
3
  import typing
4
4
 
5
- CreateUsageEventRequestDataValue = typing.Union[str, int, float, bool]
5
+ CreateUsageEventRequestDataValue = typing.Union[str, int]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lark-billing
3
- Version: 0.0.9
3
+ Version: 0.1.0
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -1,11 +1,11 @@
1
- lark/__init__.py,sha256=s_EmHpLbMpKBNFoKPo-nYHvQ7PpbhueS4xGAyZJihlI,8314
1
+ lark/__init__.py,sha256=9qhAMiVX06Gu5UKncErYqK0MVFqOsYH3ch2jhTy1Yp8,9188
2
2
  lark/checkout/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
3
3
  lark/checkout/client.py,sha256=LjSKK7GhZMHyUcsQG4oWZCAsjnYgQmmuHlF_PA4x2UU,4882
4
4
  lark/checkout/raw_client.py,sha256=oRoXAuZzZn-eCCPcB34QzGmAu8NBFVprA-14krIPQSM,6512
5
5
  lark/client.py,sha256=cpy-iyLMnTnHLsHRNyRCaKFPyPCQwY425SRGG-B3kI4,12650
6
6
  lark/core/__init__.py,sha256=GkNNgA0CeqvpCzo2vVtAafE8YcnGV-VGtbU5op93lbc,3624
7
7
  lark/core/api_error.py,sha256=44vPoTyWN59gonCIZMdzw7M1uspygiLnr3GNFOoVL2Q,614
8
- lark/core/client_wrapper.py,sha256=6OhBJ7ltCATBaS2Fo3vYJHoYdIks7743qu11aTDjjZs,2374
8
+ lark/core/client_wrapper.py,sha256=fE2DQe9YbmT9ga369IkisL4s9gJjAg4OeMfJF3erBP8,2374
9
9
  lark/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
10
10
  lark/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
11
11
  lark/core/force_multipart.py,sha256=cH981xLy0kZVKiZZkFoeUjgJ2Zuq7KXB2aRAnmHzRDc,477
@@ -34,56 +34,59 @@ lark/errors/unprocessable_entity_error.py,sha256=aDgvUf-6k1fSUL-OxI3MgOIFQNssTUN
34
34
  lark/invoices/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
35
35
  lark/invoices/client.py,sha256=-DDd4gEQz8HZFIiUjqK_sOoevK8I7vyRwHvnm1iZn_k,3601
36
36
  lark/invoices/raw_client.py,sha256=VWdX-6-VNdC51sgorAtbYPpppga7dogWRDprErF80I4,5271
37
- lark/pricing_metrics/__init__.py,sha256=GjKCI2AEhDsAXGdUMkyZlGRyNzIj6HRWPRZEcScwVEU,1321
38
- lark/pricing_metrics/client.py,sha256=onk8W05UQyOjKdt5dMwEzUquf9zCiUns-JlBaaVZhHU,8018
39
- lark/pricing_metrics/raw_client.py,sha256=a4jTR0mDCjUcUAvOKdU6-H-bQfCNyXvgdh-SO_1CHwk,14094
40
- lark/pricing_metrics/types/__init__.py,sha256=DaWe3hOaIKUlI4nWjNOmEtjks5ges3BFq4jujJDDX2M,1438
41
- lark/pricing_metrics/types/pricing_metric_aggregation.py,sha256=NkO1F-g7n1UfUVVaYmcmeBnOP-lcu1lhs5_TQytj_b0,1145
37
+ lark/pricing_metrics/__init__.py,sha256=ruJDEPAGWLKjSlm0kGK4FOeHf3tdhCexU9N7oS1Lu6U,1741
38
+ lark/pricing_metrics/client.py,sha256=OaXVx1eKkNg7uzTAoFKIiL6cAmUOmG8ATCC1FQkC7lI,11888
39
+ lark/pricing_metrics/raw_client.py,sha256=MG8DeH3b7m3PTeEtYWP3g2VnRk990eZD2VW3l84ggH0,19460
40
+ lark/pricing_metrics/types/__init__.py,sha256=MUBQR3hpX7rm8P3TqHcZC1yzlzZtj5P2Phq8tHPDcRE,1888
41
+ lark/pricing_metrics/types/pricing_metric_aggregation.py,sha256=I0a5AE6FFSFPaKJR_dcE4fSOm1zGk_nuZJvWg9dqCzo,3030
42
42
  lark/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
43
43
  lark/rate_cards/__init__.py,sha256=3LWPsE39Ghmz_TbuxHsRnf7yySPt9iZ2YV3okPtQY78,1492
44
- lark/rate_cards/client.py,sha256=EX_0E2vKYYKJx03_sTXo-vb09eARRWCZVNjWgRd3UzM,9194
45
- lark/rate_cards/raw_client.py,sha256=L5hixIrIAicH0Q-ebN6gpOSPsp-m4Nt0CaLolyqo9_M,15992
44
+ lark/rate_cards/client.py,sha256=dfWjnBtOT4G0SiNFMJwyR8vxqgpgCyPx7t11t7JF6os,11774
45
+ lark/rate_cards/raw_client.py,sha256=_eY7agnGfXi9GI4yGarv_xQ7pMogNVlGL2t9RpYkGqI,16396
46
46
  lark/rate_cards/types/__init__.py,sha256=-5y0ZgXL6PifZrZJGGa3mOQZS7iD20Ui-sLmNKY5kRM,1704
47
47
  lark/rate_cards/types/create_rate_card_request_billing_interval.py,sha256=k-FOfMuwtBOTn0ZIGkWuJcFBbqbsPkUO4_DvIcBXLRc,181
48
48
  lark/rate_cards/types/create_rate_card_request_usage_based_rates_item.py,sha256=DW9qJ6ntDrzf9Z3b2RlyndGtIuNQ6nuxWNrCkHWMXqA,917
49
49
  lark/subjects/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
50
- lark/subjects/client.py,sha256=eBvTNKJxMXSSthIhRAaD0770yhrL3r1iFmfPVZtL2cM,13033
50
+ lark/subjects/client.py,sha256=bzVWBTnS9o-SKNQtqLCjMZ9bxsnYxg2tXl_ESra1Ftg,13377
51
51
  lark/subjects/raw_client.py,sha256=WTDK-HZT-P9AU2WvT_l3PprR2DM63soG4p4bv4o0Quo,23921
52
52
  lark/subscriptions/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
53
53
  lark/subscriptions/client.py,sha256=sHFGqklJPQZYK7EqltplXAjrTcwQLhcMeMKST0T2d6c,14025
54
54
  lark/subscriptions/raw_client.py,sha256=MB44QSJB5yREoPR8VIXGenhdE9ltF4bkuqAKxuLpB88,24124
55
- lark/types/__init__.py,sha256=3PAjZAUxKQGJVjyq0ynltWkF_QrUImQf9QTfvTOrtJE,8199
56
- lark/types/aggregation.py,sha256=JTY5X_dJn0Nv7W-KvdcsavKgqMGQ6Yv1AD2qREl9BBw,1079
55
+ lark/types/__init__.py,sha256=lqSTUvUtmjiwGyv_Kjka6JZ6ivP07cF4IjBf8tUohOo,9086
56
+ lark/types/aggregation.py,sha256=WUZEh44LANUSg0dtO2tulQRATFLMXexJduEcIb1id6I,2321
57
57
  lark/types/amount.py,sha256=iVq6zpS5qreE_l7NU5fAZMs7WjtAzj4RgmSJyoYaIes,711
58
- lark/types/billing_state_response.py,sha256=PwsR7EjjKal_GHaxsfPUztyDuunAevjwL85KFKvSShk,579
59
- lark/types/count_aggregation_pricing_metric_interface.py,sha256=4RnOiOWtUUCkqT-rc0HHetar8DmI72lX0_yaZR1ZTTc,530
58
+ lark/types/billing_state_response.py,sha256=ue8x4nkScB24N8s3NtIhzwqOUgJS-jYR_1SpxsMKdlU,813
59
+ lark/types/count_aggregation_pricing_metric_interface.py,sha256=lfnas_w-9m702PAO7HbFyop_MP_qhB4QB1xksbRk6qg,620
60
60
  lark/types/count_aggregation_pricing_metric_resource.py,sha256=RNCjrE6zT_Aw8gQWZNNzbAAKmRqISQI3df9em-d4tyk,529
61
61
  lark/types/create_customer_portal_session_response.py,sha256=tlxssxzJ5O-FFNR4guvZWcjpX4BOwm8M-pY8XlWKKyM,747
62
62
  lark/types/create_fixed_rate_request.py,sha256=kpBMbKRoll7m0JOc1WCAH_Iygm2le8qToDdvizqycIo,804
63
- lark/types/create_pricing_metric_response.py,sha256=4qzlMDVkAhRMrUCPt9IDS8h6r0EagIJuZOgpTNBwq8g,646
64
63
  lark/types/create_simple_usage_based_rate_request.py,sha256=5KkTMHWL1kAACLYoSXQ1EBLqqPNXyCujewalXEKo8GU,1095
65
64
  lark/types/create_subject_response.py,sha256=vq0cjT7OE7LMBkFxz1Cbs2bVTAw8vmr4C-LgeksZJ3A,1333
66
65
  lark/types/create_subscription_checkout_session_response.py,sha256=fAra37vkSc4N_at4vU9cx3Q0o2p3pNx3vfkTK2PuxpA,837
67
- lark/types/create_usage_event_summary_response.py,sha256=9GWy3RxD02CDt3qHpsTSlouwzaztWlRqfkRAGNHpEgU,649
66
+ lark/types/custom_aggregation_pricing_metric_interface.py,sha256=hO5clPaVYskCwn1utUaNYVx80hZZPsfc1-7t6LJ2emQ,853
68
67
  lark/types/fixed_rate_interface.py,sha256=r6fifBNcZowmC799zNeUzxQXGLvSuWTCiYw3GwWCzBw,624
69
68
  lark/types/flat_price.py,sha256=JPhR3x686VtDTvMfToATj3mwTKNE4W4wcj3nCmm-A5g,631
70
- lark/types/get_pricing_metric_response.py,sha256=tojAOAuufWaFOEwcLGmnrOrguCP_FbzW_otJPXnZ_P8,643
71
69
  lark/types/http_validation_error.py,sha256=NNTK9AbbHXm0n9m1YcsG5zEaSn1n6RghohUX5R8LGzw,623
72
70
  lark/types/invoice_line_item_resource.py,sha256=KW3tkZ9yyS2PJ5p_EvgjJo5YCmtEU2oGc6QJ6VjIgBo,634
73
71
  lark/types/invoice_resource.py,sha256=bN7TuFRI1PYAWs3c5gUyKtThkO7ZY_M_SlMvuH7vqfs,1382
74
72
  lark/types/invoice_status.py,sha256=iCLPcMrXWWPQHsitPT9x0Fj_GjTlbG0KVv6F0f4E5g4,187
73
+ lark/types/last_aggregation_pricing_metric_interface.py,sha256=bzzJD_t0YRbxDzaOIGCjp7rZJdhQR4ZWTD5Q4a5cwrI,743
74
+ lark/types/last_aggregation_pricing_metric_resource.py,sha256=KvUtGLg2JVYrs-jUgQTdglnChdfKahjlFSVRk8LUx54,625
75
75
  lark/types/list_invoices_response.py,sha256=GaE8TwfDdEaQcd74xv8JBA1qfS8OnO9CI1vS3VaRIQg,621
76
76
  lark/types/list_pricing_metrics_response.py,sha256=Ioj7eZ3NwEz92v0dVI4RL_mm9mrHqAwora04iZ5x-h8,653
77
77
  lark/types/list_rate_cards_response.py,sha256=IRm3aSOF5zMqS2nxADruN4988Wi4UAT3WYE_fKJrtHU,628
78
78
  lark/types/list_subjects_response.py,sha256=k7QbDj-q8oWe15QoEUv4AbixXj5crsBC7CJH6XQuPZM,621
79
79
  lark/types/list_subscriptions_response.py,sha256=4LmecLcE6NmMsNe6wyV7CSzaen9HAamKQLfJf8ZDhwI,646
80
+ lark/types/max_aggregation_pricing_metric_interface.py,sha256=ZXUDuWctjbvwxjKlgWaTWJtcNuJeUlhHGBC4Ofs4vXI,740
81
+ lark/types/max_aggregation_pricing_metric_resource.py,sha256=4Y_vZI8WIxvMrGcPYfGxUw2Kkkn6-LexZyGkiqfHObE,623
80
82
  lark/types/package_price.py,sha256=pigTnTKFK_b7kG6gNGJnYEDcYZAr3J60q1jRZxkUFZU,938
81
83
  lark/types/package_price_input_rounding_behavior.py,sha256=i2_tUvyiFR1Z4s--m4GeTGt5EhSPyu32JpQrI0cdzMA,183
82
84
  lark/types/package_price_output_rounding_behavior.py,sha256=3suJHfO9lGMWOb2kRn199FdTpcYdMtOKFlIUWq_xeQU,184
83
- lark/types/period.py,sha256=rjptqL1APWiYEMxIluE5vL1vuAXKXwnIzl0AsnWBKCA,625
85
+ lark/types/period.py,sha256=xJPEbVTsxAqoEopMfKHc0F_1-v0eFsBSSOpEAEM5cgQ,663
84
86
  lark/types/period_resource.py,sha256=TpKNhaxn-G5ufDH35MQ6DTxnUDEhDPe7jx_eq6j0BUs,671
85
87
  lark/types/price.py,sha256=1Cn5GRNmqs6yPw5Ajemx7Uxlozz3yBzcAUCkXKFFqw4,1261
86
- lark/types/pricing_metric_resource.py,sha256=kTiAIzXlt-PGAWhipTtbPd7KBBy56-yFhsCHZTmhXBU,640
88
+ lark/types/pricing_metric_resource.py,sha256=xIKsTEZjxdgNjctHCiMAilnTQNw_PBIKZ6w0Z_KNX9U,1084
89
+ lark/types/pricing_metric_summary_resource.py,sha256=BCiG-ixteWsnHanl2I_T0DAV6aku-0TEsbadcQExJLg,1201
87
90
  lark/types/rate_card_resource.py,sha256=crx6hsqgPdWE0IXyY3OV-ya44rK4covAFGlC2_d19-A,1634
88
91
  lark/types/rate_card_resource_billing_interval.py,sha256=OT3PxH3tQBXo7TvxcRLcTsXd8dBZo8po1T_k4OWQY7g,176
89
92
  lark/types/rate_card_resource_usage_based_rates_item.py,sha256=7iABgvL3UkBVjVKCBKUFghFJbOysHeSPBQiFyn6hnfg,881
@@ -91,18 +94,16 @@ lark/types/simple_usage_based_rate_interface.py,sha256=a6Hlc2IA-RVk76tFn28WSQAhB
91
94
  lark/types/subject_resource.py,sha256=oacQXkEfmSjMN6muasjU0hQ10OoNYIxdsIMklS9fqiQ,1327
92
95
  lark/types/subscription_resource.py,sha256=UEmtA1Ias7BQawC_DDqO_dmVH9uzzPU_lGXV0phqbkk,1667
93
96
  lark/types/subscription_status.py,sha256=CapkxBTKLbKr6gDn3rnsXXUCqp59F839uWkvrtdVc9M,175
94
- lark/types/sum_aggregation_pricing_metric_interface.py,sha256=R_sDNeB5RaZ9o4-O1_ceC7Ium_NKn5m6egj9AykjEN4,608
95
- lark/types/sum_aggregation_pricing_metric_resource.py,sha256=PeF2LCNjjILU5OneNMCluIqW0CTM1SPW6VRX6-H7P9E,549
97
+ lark/types/sum_aggregation_pricing_metric_interface.py,sha256=dkeVK-86PgvmWlOAK5tZ6oNTKnrnsAtBY_Mj6ciXMPI,722
98
+ lark/types/sum_aggregation_pricing_metric_resource.py,sha256=1qgOOsjW8xOEy9WKmyRT4FZ1nEZzHctqGcAaSHCDRD4,611
96
99
  lark/types/validation_error.py,sha256=Ou-GSQTdmDFWIFlP_y9ka_EUAavqFEFLonU9srAkJdc,642
97
100
  lark/types/validation_error_loc_item.py,sha256=LAtjCHIllWRBFXvAZ5QZpp7CPXjdtN9EB7HrLVo6EP0,128
98
- lark/types/value.py,sha256=s8eOsCXi5_1G0uGPyW2QUaJFzJcCCqN-FMYJnA9UR9s,113
99
- lark/usage_events/__init__.py,sha256=WdBlMaKZ2oUYEeT7TDESrFmeZD-SKprjn2nNvBnruR4,1282
100
- lark/usage_events/client.py,sha256=oIFFE51E6lwOcP6B_lLGVu2p4-OUdkHBM8V67EQIm48,8931
101
- lark/usage_events/raw_client.py,sha256=JQnDQthlD8UDl_zK2i0dskPOCgNoiW7fUDIFYMnIKzE,13278
102
- lark/usage_events/types/__init__.py,sha256=AvuB8iRcBiI3Gg4mF-HSJA-iwZgO_LopLh806SNDoq4,1460
103
- lark/usage_events/types/create_usage_event_request_data_value.py,sha256=gj_U2ENl4Y2XxUMZUNwWFU6jjy0PXwzD7q9CiIWu1Ls,151
104
- lark/usage_events/types/create_usage_event_summary_request_aggregation_type.py,sha256=0jg9JuFlG2TmTeQvPY4yHV_9Ec2MpPe_zqKffvBpCvw,192
101
+ lark/usage_events/__init__.py,sha256=wOjciu7VOr1sCjItzZbmxkvAryliHfsEoMRvcGJ7aVM,1116
102
+ lark/usage_events/client.py,sha256=hR1ncs14hiCTGJ4UzmEeqXEzP7f1FPfwYZda0Ulgp-0,6211
103
+ lark/usage_events/raw_client.py,sha256=uoCAcgrA-DFtkY80oQEESxsbM1XnKgTQT4_m1cgarqM,7928
104
+ lark/usage_events/types/__init__.py,sha256=fSMs1e864FcnI16TuvvUkzyO20D5lxThY2taDR1E1j0,1180
105
+ lark/usage_events/types/create_usage_event_request_data_value.py,sha256=eJwLIF47GuslEvseihODk9VoH4spHGC5buPlViJCK84,138
105
106
  lark/version.py,sha256=maFXg-cBsqCfydHwhGdh6kzQElFbriuo8a2yvidAV1c,79
106
- lark_billing-0.0.9.dist-info/METADATA,sha256=ssBMelXc3b-Oc2N0eGBblOVtpajaRRigxk82yf6PgEk,5680
107
- lark_billing-0.0.9.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
108
- lark_billing-0.0.9.dist-info/RECORD,,
107
+ lark_billing-0.1.0.dist-info/METADATA,sha256=bFcelyPI-FgMsUOmVl9UJKFSng3GMjHgoRx0b-r52xg,5680
108
+ lark_billing-0.1.0.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
109
+ lark_billing-0.1.0.dist-info/RECORD,,
lark/types/value.py DELETED
@@ -1,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- Value = typing.Union[float, str]
@@ -1,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- CreateUsageEventSummaryRequestAggregationType = typing.Union[typing.Literal["sum", "count", "max"], typing.Any]