payi 0.1.0a105__py3-none-any.whl → 0.1.0a107__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.
payi/_base_client.py CHANGED
@@ -532,7 +532,10 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
532
532
  is_body_allowed = options.method.lower() != "get"
533
533
 
534
534
  if is_body_allowed:
535
- kwargs["json"] = json_data if is_given(json_data) else None
535
+ if isinstance(json_data, bytes):
536
+ kwargs["content"] = json_data
537
+ else:
538
+ kwargs["json"] = json_data if is_given(json_data) else None
536
539
  kwargs["files"] = files
537
540
  else:
538
541
  headers.pop("Content-Type", None)
payi/_files.py CHANGED
@@ -69,12 +69,12 @@ def _transform_file(file: FileTypes) -> HttpxFileTypes:
69
69
  return file
70
70
 
71
71
  if is_tuple_t(file):
72
- return (file[0], _read_file_content(file[1]), *file[2:])
72
+ return (file[0], read_file_content(file[1]), *file[2:])
73
73
 
74
74
  raise TypeError(f"Expected file types input to be a FileContent type or to be a tuple")
75
75
 
76
76
 
77
- def _read_file_content(file: FileContent) -> HttpxFileContent:
77
+ def read_file_content(file: FileContent) -> HttpxFileContent:
78
78
  if isinstance(file, os.PathLike):
79
79
  return pathlib.Path(file).read_bytes()
80
80
  return file
@@ -111,12 +111,12 @@ async def _async_transform_file(file: FileTypes) -> HttpxFileTypes:
111
111
  return file
112
112
 
113
113
  if is_tuple_t(file):
114
- return (file[0], await _async_read_file_content(file[1]), *file[2:])
114
+ return (file[0], await async_read_file_content(file[1]), *file[2:])
115
115
 
116
116
  raise TypeError(f"Expected file types input to be a FileContent type or to be a tuple")
117
117
 
118
118
 
119
- async def _async_read_file_content(file: FileContent) -> HttpxFileContent:
119
+ async def async_read_file_content(file: FileContent) -> HttpxFileContent:
120
120
  if isinstance(file, os.PathLike):
121
121
  return await anyio.Path(file).read_bytes()
122
122
 
payi/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "payi"
4
- __version__ = "0.1.0-alpha.105" # x-release-please-version
4
+ __version__ = "0.1.0-alpha.107" # x-release-please-version
payi/resources/ingest.py CHANGED
@@ -86,7 +86,6 @@ class IngestResource(SyncAPIResource):
86
86
  self,
87
87
  *,
88
88
  category: str,
89
- resource: str,
90
89
  units: Dict[str, IngestUnits],
91
90
  end_to_end_latency_ms: Optional[int] | NotGiven = NOT_GIVEN,
92
91
  event_timestamp: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
@@ -101,6 +100,7 @@ class IngestResource(SyncAPIResource):
101
100
  provider_response_id: Optional[str] | NotGiven = NOT_GIVEN,
102
101
  provider_response_json: Union[str, List[str], None] | NotGiven = NOT_GIVEN,
103
102
  provider_uri: Optional[str] | NotGiven = NOT_GIVEN,
103
+ resource: Optional[str] | NotGiven = NOT_GIVEN,
104
104
  time_to_first_completion_token_ms: Optional[int] | NotGiven = NOT_GIVEN,
105
105
  time_to_first_token_ms: Optional[int] | NotGiven = NOT_GIVEN,
106
106
  use_case_properties: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
@@ -165,7 +165,7 @@ class IngestResource(SyncAPIResource):
165
165
  timeout (Union[float, None], optional): The timeout for the request in seconds. Defaults to None.
166
166
  """
167
167
  valid_ids_str: str | NotGiven = NOT_GIVEN
168
- valid_tags_str: str | NotGiven = NOT_GIVEN
168
+ _valid_tags_str: str | NotGiven = NOT_GIVEN
169
169
  use_case_version_str: str | NotGiven = NOT_GIVEN
170
170
 
171
171
  if limit_ids is None or isinstance(limit_ids, NotGiven):
@@ -178,13 +178,13 @@ class IngestResource(SyncAPIResource):
178
178
  valid_ids_str = ",".join(valid_ids) if valid_ids else NOT_GIVEN
179
179
 
180
180
  if request_tags is None or isinstance(request_tags, NotGiven):
181
- valid_tags_str = NOT_GIVEN
181
+ _valid_tags_str = NOT_GIVEN
182
182
  elif not isinstance(request_tags, list): # type: ignore
183
183
  raise TypeError("request_tags must be a list")
184
184
  else:
185
185
  # Proceed with the list comprehension if request_tags is not NotGiven
186
186
  valid_tags = [tag.strip() for tag in request_tags if tag.strip()]
187
- valid_tags_str = ",".join(valid_tags) if valid_tags else NOT_GIVEN
187
+ _valid_tags_str = ",".join(valid_tags) if valid_tags else NOT_GIVEN
188
188
 
189
189
  if use_case_name is None or isinstance(use_case_name, NotGiven):
190
190
  use_case_name = NOT_GIVEN
@@ -213,7 +213,7 @@ class IngestResource(SyncAPIResource):
213
213
  **strip_not_given(
214
214
  {
215
215
  "xProxy-Limit-IDs": valid_ids_str,
216
- "xProxy-Request-Tags": valid_tags_str,
216
+ "xProxy-Request-Tags": NOT_GIVEN, # _valid_tags_str
217
217
  "xProxy-UseCase-ID": use_case_id,
218
218
  "xProxy-UseCase-Name": use_case_name,
219
219
  "xProxy-UseCase-Step": use_case_step,
@@ -233,7 +233,6 @@ class IngestResource(SyncAPIResource):
233
233
  body=maybe_transform(
234
234
  {
235
235
  "category": category,
236
- "resource": resource,
237
236
  "units": units,
238
237
  "end_to_end_latency_ms": end_to_end_latency_ms,
239
238
  "event_timestamp": event_timestamp,
@@ -247,6 +246,7 @@ class IngestResource(SyncAPIResource):
247
246
  "provider_response_id": provider_response_id,
248
247
  "provider_response_json": provider_response_json,
249
248
  "provider_uri": provider_uri,
249
+ "resource": resource,
250
250
  "time_to_first_completion_token_ms": time_to_first_completion_token_ms,
251
251
  "time_to_first_token_ms": time_to_first_token_ms,
252
252
  "use_case_properties": use_case_properties,
@@ -316,7 +316,6 @@ class AsyncIngestResource(AsyncAPIResource):
316
316
  self,
317
317
  *,
318
318
  category: str,
319
- resource: str,
320
319
  units: Dict[str, IngestUnits],
321
320
  end_to_end_latency_ms: Optional[int] | NotGiven = NOT_GIVEN,
322
321
  event_timestamp: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
@@ -331,6 +330,7 @@ class AsyncIngestResource(AsyncAPIResource):
331
330
  provider_response_id: Optional[str] | NotGiven = NOT_GIVEN,
332
331
  provider_response_json: Union[str, List[str], None] | NotGiven = NOT_GIVEN,
333
332
  provider_uri: Optional[str] | NotGiven = NOT_GIVEN,
333
+ resource: Optional[str] | NotGiven = NOT_GIVEN,
334
334
  time_to_first_completion_token_ms: Optional[int] | NotGiven = NOT_GIVEN,
335
335
  time_to_first_token_ms: Optional[int] | NotGiven = NOT_GIVEN,
336
336
  use_case_properties: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
@@ -394,7 +394,7 @@ class AsyncIngestResource(AsyncAPIResource):
394
394
  timeout (Union[float, None], optional): The timeout for the request in seconds. Defaults to None.
395
395
  """
396
396
  valid_ids_str: str | NotGiven = NOT_GIVEN
397
- valid_tags_str: str | NotGiven = NOT_GIVEN
397
+ _valid_tags_str: str | NotGiven = NOT_GIVEN
398
398
  use_case_version_str: str | NotGiven = NOT_GIVEN
399
399
 
400
400
  if limit_ids is None or isinstance(limit_ids, NotGiven):
@@ -407,13 +407,13 @@ class AsyncIngestResource(AsyncAPIResource):
407
407
  valid_ids_str = ",".join(valid_ids) if valid_ids else NOT_GIVEN
408
408
 
409
409
  if request_tags is None or isinstance(request_tags, NotGiven):
410
- valid_tags_str = NOT_GIVEN
410
+ _valid_tags_str = NOT_GIVEN
411
411
  elif not isinstance(request_tags, list): # type: ignore
412
412
  raise TypeError("request_tags must be a list")
413
413
  else:
414
414
  # Proceed with the list comprehension if request_tags is not NotGiven
415
415
  valid_tags = [tag.strip() for tag in request_tags if tag.strip()]
416
- valid_tags_str = ",".join(valid_tags) if valid_tags else NOT_GIVEN
416
+ _valid_tags_str = ",".join(valid_tags) if valid_tags else NOT_GIVEN
417
417
 
418
418
  if use_case_name is None or isinstance(use_case_name, NotGiven):
419
419
  use_case_name = NOT_GIVEN
@@ -443,7 +443,7 @@ class AsyncIngestResource(AsyncAPIResource):
443
443
  {
444
444
  "xProxy-Account-Name": account_name,
445
445
  "xProxy-Limit-IDs": valid_ids_str,
446
- "xProxy-Request-Tags": valid_tags_str,
446
+ "xProxy-Request-Tags": NOT_GIVEN, # _valid_tags_str,
447
447
  "xProxy-UseCase-ID": use_case_id,
448
448
  "xProxy-UseCase-Name": use_case_name,
449
449
  "xProxy-UseCase-Step": use_case_step,
@@ -461,7 +461,6 @@ class AsyncIngestResource(AsyncAPIResource):
461
461
  body=await async_maybe_transform(
462
462
  {
463
463
  "category": category,
464
- "resource": resource,
465
464
  "units": units,
466
465
  "end_to_end_latency_ms": end_to_end_latency_ms,
467
466
  "event_timestamp": event_timestamp,
@@ -475,6 +474,7 @@ class AsyncIngestResource(AsyncAPIResource):
475
474
  "provider_response_id": provider_response_id,
476
475
  "provider_response_json": provider_response_json,
477
476
  "provider_uri": provider_uri,
477
+ "resource": resource,
478
478
  "time_to_first_completion_token_ms": time_to_first_completion_token_ms,
479
479
  "time_to_first_token_ms": time_to_first_token_ms,
480
480
  "use_case_properties": use_case_properties,
@@ -66,8 +66,6 @@ class LimitsResource(SyncAPIResource):
66
66
  *,
67
67
  limit_name: str,
68
68
  max: float,
69
- billing_model_id: Optional[str] | NotGiven = NOT_GIVEN,
70
- limit_basis: Literal["base", "billed"] | NotGiven = NOT_GIVEN,
71
69
  limit_id: Optional[str] | NotGiven = NOT_GIVEN,
72
70
  limit_tags: Optional[List[str]] | NotGiven = NOT_GIVEN,
73
71
  limit_type: Literal["block", "allow"] | NotGiven = NOT_GIVEN,
@@ -97,8 +95,6 @@ class LimitsResource(SyncAPIResource):
97
95
  {
98
96
  "limit_name": limit_name,
99
97
  "max": max,
100
- "billing_model_id": billing_model_id,
101
- "limit_basis": limit_basis,
102
98
  "limit_id": limit_id,
103
99
  "limit_tags": limit_tags,
104
100
  "limit_type": limit_type,
@@ -337,8 +333,6 @@ class AsyncLimitsResource(AsyncAPIResource):
337
333
  *,
338
334
  limit_name: str,
339
335
  max: float,
340
- billing_model_id: Optional[str] | NotGiven = NOT_GIVEN,
341
- limit_basis: Literal["base", "billed"] | NotGiven = NOT_GIVEN,
342
336
  limit_id: Optional[str] | NotGiven = NOT_GIVEN,
343
337
  limit_tags: Optional[List[str]] | NotGiven = NOT_GIVEN,
344
338
  limit_type: Literal["block", "allow"] | NotGiven = NOT_GIVEN,
@@ -368,8 +362,6 @@ class AsyncLimitsResource(AsyncAPIResource):
368
362
  {
369
363
  "limit_name": limit_name,
370
364
  "max": max,
371
- "billing_model_id": billing_model_id,
372
- "limit_basis": limit_basis,
373
365
  "limit_id": limit_id,
374
366
  "limit_tags": limit_tags,
375
367
  "limit_type": limit_type,
@@ -54,9 +54,9 @@ class KpisResource(SyncAPIResource):
54
54
  use_case_name: str,
55
55
  *,
56
56
  description: str,
57
+ goal: float,
58
+ kpi_type: Literal["boolean", "number", "percentage", "likert5", "likert7", "likert10"],
57
59
  name: str,
58
- goal: float | NotGiven = NOT_GIVEN,
59
- kpi_type: Literal["boolean", "number", "percentage", "likert5", "likert7", "likert10"] | NotGiven = NOT_GIVEN,
60
60
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
61
61
  # The extra values given here take precedence over values defined on the client or passed to this method.
62
62
  extra_headers: Headers | None = None,
@@ -65,7 +65,7 @@ class KpisResource(SyncAPIResource):
65
65
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
66
66
  ) -> KpiCreateResponse:
67
67
  """
68
- Create a new Use Case KPI definition
68
+ Create a new KPI definition for a Use Case
69
69
 
70
70
  Args:
71
71
  extra_headers: Send extra headers
@@ -83,9 +83,9 @@ class KpisResource(SyncAPIResource):
83
83
  body=maybe_transform(
84
84
  {
85
85
  "description": description,
86
- "name": name,
87
86
  "goal": goal,
88
87
  "kpi_type": kpi_type,
88
+ "name": name,
89
89
  },
90
90
  kpi_create_params.KpiCreateParams,
91
91
  ),
@@ -146,7 +146,7 @@ class KpisResource(SyncAPIResource):
146
146
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
147
147
  ) -> KpiUpdateResponse:
148
148
  """
149
- Update a Use Case KPI definition
149
+ Update a KPI definition for a Use Case
150
150
 
151
151
  Args:
152
152
  extra_headers: Send extra headers
@@ -239,7 +239,7 @@ class KpisResource(SyncAPIResource):
239
239
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
240
240
  ) -> KpiDeleteResponse:
241
241
  """
242
- Delete a Use Case KPI definition
242
+ Delete a KPI definition for a Use Case
243
243
 
244
244
  Args:
245
245
  extra_headers: Send extra headers
@@ -288,9 +288,9 @@ class AsyncKpisResource(AsyncAPIResource):
288
288
  use_case_name: str,
289
289
  *,
290
290
  description: str,
291
+ goal: float,
292
+ kpi_type: Literal["boolean", "number", "percentage", "likert5", "likert7", "likert10"],
291
293
  name: str,
292
- goal: float | NotGiven = NOT_GIVEN,
293
- kpi_type: Literal["boolean", "number", "percentage", "likert5", "likert7", "likert10"] | NotGiven = NOT_GIVEN,
294
294
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
295
295
  # The extra values given here take precedence over values defined on the client or passed to this method.
296
296
  extra_headers: Headers | None = None,
@@ -299,7 +299,7 @@ class AsyncKpisResource(AsyncAPIResource):
299
299
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
300
300
  ) -> KpiCreateResponse:
301
301
  """
302
- Create a new Use Case KPI definition
302
+ Create a new KPI definition for a Use Case
303
303
 
304
304
  Args:
305
305
  extra_headers: Send extra headers
@@ -317,9 +317,9 @@ class AsyncKpisResource(AsyncAPIResource):
317
317
  body=await async_maybe_transform(
318
318
  {
319
319
  "description": description,
320
- "name": name,
321
320
  "goal": goal,
322
321
  "kpi_type": kpi_type,
322
+ "name": name,
323
323
  },
324
324
  kpi_create_params.KpiCreateParams,
325
325
  ),
@@ -380,7 +380,7 @@ class AsyncKpisResource(AsyncAPIResource):
380
380
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
381
381
  ) -> KpiUpdateResponse:
382
382
  """
383
- Update a Use Case KPI definition
383
+ Update a KPI definition for a Use Case
384
384
 
385
385
  Args:
386
386
  extra_headers: Send extra headers
@@ -473,7 +473,7 @@ class AsyncKpisResource(AsyncAPIResource):
473
473
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
474
474
  ) -> KpiDeleteResponse:
475
475
  """
476
- Delete a Use Case KPI definition
476
+ Delete a KPI definition for a Use Case
477
477
 
478
478
  Args:
479
479
  extra_headers: Send extra headers
@@ -2,6 +2,8 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ from typing import Union
6
+
5
7
  import httpx
6
8
 
7
9
  from ..._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven
@@ -47,7 +49,7 @@ class KpisResource(SyncAPIResource):
47
49
  kpi_name: str,
48
50
  *,
49
51
  use_case_id: str,
50
- score: float | NotGiven = NOT_GIVEN,
52
+ score: Union[bool, float, None] | NotGiven = NOT_GIVEN,
51
53
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
52
54
  # The extra values given here take precedence over values defined on the client or passed to this method.
53
55
  extra_headers: Headers | None = None,
@@ -157,7 +159,7 @@ class AsyncKpisResource(AsyncAPIResource):
157
159
  kpi_name: str,
158
160
  *,
159
161
  use_case_id: str,
160
- score: float | NotGiven = NOT_GIVEN,
162
+ score: Union[bool, float, None] | NotGiven = NOT_GIVEN,
161
163
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
162
164
  # The extra values given here take precedence over values defined on the client or passed to this method.
163
165
  extra_headers: Headers | None = None,
@@ -18,7 +18,7 @@ from ..._response import (
18
18
  )
19
19
  from ..._base_client import make_request_options
20
20
  from ...types.use_cases import property_update_params
21
- from ...types.use_cases.property_create_response import PropertyCreateResponse
21
+ from ...types.use_case_instance_response import UseCaseInstanceResponse
22
22
 
23
23
  __all__ = ["PropertiesResource", "AsyncPropertiesResource"]
24
24
 
@@ -54,7 +54,7 @@ class PropertiesResource(SyncAPIResource):
54
54
  extra_query: Query | None = None,
55
55
  extra_body: Body | None = None,
56
56
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
57
- ) -> PropertyCreateResponse:
57
+ ) -> UseCaseInstanceResponse:
58
58
  """
59
59
  Update a Use Case instance properties
60
60
 
@@ -75,7 +75,7 @@ class PropertiesResource(SyncAPIResource):
75
75
  options=make_request_options(
76
76
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
77
77
  ),
78
- cast_to=PropertyCreateResponse,
78
+ cast_to=UseCaseInstanceResponse,
79
79
  )
80
80
 
81
81
 
@@ -110,7 +110,7 @@ class AsyncPropertiesResource(AsyncAPIResource):
110
110
  extra_query: Query | None = None,
111
111
  extra_body: Body | None = None,
112
112
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
113
- ) -> PropertyCreateResponse:
113
+ ) -> UseCaseInstanceResponse:
114
114
  """
115
115
  Update a Use Case instance properties
116
116
 
@@ -131,7 +131,7 @@ class AsyncPropertiesResource(AsyncAPIResource):
131
131
  options=make_request_options(
132
132
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
133
133
  ),
134
- cast_to=PropertyCreateResponse,
134
+ cast_to=UseCaseInstanceResponse,
135
135
  )
136
136
 
137
137
 
@@ -38,9 +38,7 @@ from .definitions.definitions import (
38
38
  DefinitionsResourceWithStreamingResponse,
39
39
  AsyncDefinitionsResourceWithStreamingResponse,
40
40
  )
41
- from ...types.use_case_create_response import UseCaseCreateResponse
42
- from ...types.use_case_delete_response import UseCaseDeleteResponse
43
- from ...types.use_case_retrieve_response import UseCaseRetrieveResponse
41
+ from ...types.use_case_instance_response import UseCaseInstanceResponse
44
42
 
45
43
  __all__ = ["UseCasesResource", "AsyncUseCasesResource"]
46
44
 
@@ -87,7 +85,7 @@ class UseCasesResource(SyncAPIResource):
87
85
  extra_query: Query | None = None,
88
86
  extra_body: Body | None = None,
89
87
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
90
- ) -> UseCaseCreateResponse:
88
+ ) -> UseCaseInstanceResponse:
91
89
  """
92
90
  Create a Use Case instance
93
91
 
@@ -107,7 +105,7 @@ class UseCasesResource(SyncAPIResource):
107
105
  options=make_request_options(
108
106
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
109
107
  ),
110
- cast_to=UseCaseCreateResponse,
108
+ cast_to=UseCaseInstanceResponse,
111
109
  )
112
110
 
113
111
  def retrieve(
@@ -120,7 +118,7 @@ class UseCasesResource(SyncAPIResource):
120
118
  extra_query: Query | None = None,
121
119
  extra_body: Body | None = None,
122
120
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
123
- ) -> UseCaseRetrieveResponse:
121
+ ) -> UseCaseInstanceResponse:
124
122
  """
125
123
  Get a Use Case instance details
126
124
 
@@ -140,7 +138,7 @@ class UseCasesResource(SyncAPIResource):
140
138
  options=make_request_options(
141
139
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
142
140
  ),
143
- cast_to=UseCaseRetrieveResponse,
141
+ cast_to=UseCaseInstanceResponse,
144
142
  )
145
143
 
146
144
  def delete(
@@ -153,7 +151,7 @@ class UseCasesResource(SyncAPIResource):
153
151
  extra_query: Query | None = None,
154
152
  extra_body: Body | None = None,
155
153
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
156
- ) -> UseCaseDeleteResponse:
154
+ ) -> UseCaseInstanceResponse:
157
155
  """
158
156
  Delete a Use Case instance
159
157
 
@@ -173,7 +171,7 @@ class UseCasesResource(SyncAPIResource):
173
171
  options=make_request_options(
174
172
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
175
173
  ),
176
- cast_to=UseCaseDeleteResponse,
174
+ cast_to=UseCaseInstanceResponse,
177
175
  )
178
176
 
179
177
 
@@ -219,7 +217,7 @@ class AsyncUseCasesResource(AsyncAPIResource):
219
217
  extra_query: Query | None = None,
220
218
  extra_body: Body | None = None,
221
219
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
222
- ) -> UseCaseCreateResponse:
220
+ ) -> UseCaseInstanceResponse:
223
221
  """
224
222
  Create a Use Case instance
225
223
 
@@ -239,7 +237,7 @@ class AsyncUseCasesResource(AsyncAPIResource):
239
237
  options=make_request_options(
240
238
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
241
239
  ),
242
- cast_to=UseCaseCreateResponse,
240
+ cast_to=UseCaseInstanceResponse,
243
241
  )
244
242
 
245
243
  async def retrieve(
@@ -252,7 +250,7 @@ class AsyncUseCasesResource(AsyncAPIResource):
252
250
  extra_query: Query | None = None,
253
251
  extra_body: Body | None = None,
254
252
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
255
- ) -> UseCaseRetrieveResponse:
253
+ ) -> UseCaseInstanceResponse:
256
254
  """
257
255
  Get a Use Case instance details
258
256
 
@@ -272,7 +270,7 @@ class AsyncUseCasesResource(AsyncAPIResource):
272
270
  options=make_request_options(
273
271
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
274
272
  ),
275
- cast_to=UseCaseRetrieveResponse,
273
+ cast_to=UseCaseInstanceResponse,
276
274
  )
277
275
 
278
276
  async def delete(
@@ -285,7 +283,7 @@ class AsyncUseCasesResource(AsyncAPIResource):
285
283
  extra_query: Query | None = None,
286
284
  extra_body: Body | None = None,
287
285
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
288
- ) -> UseCaseDeleteResponse:
286
+ ) -> UseCaseInstanceResponse:
289
287
  """
290
288
  Delete a Use Case instance
291
289
 
@@ -305,7 +303,7 @@ class AsyncUseCasesResource(AsyncAPIResource):
305
303
  options=make_request_options(
306
304
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
307
305
  ),
308
- cast_to=UseCaseDeleteResponse,
306
+ cast_to=UseCaseInstanceResponse,
309
307
  )
310
308
 
311
309
 
payi/types/__init__.py CHANGED
@@ -31,10 +31,8 @@ from .bulk_ingest_response import BulkIngestResponse as BulkIngestResponse
31
31
  from .category_list_params import CategoryListParams as CategoryListParams
32
32
  from .limit_history_response import LimitHistoryResponse as LimitHistoryResponse
33
33
  from .category_delete_response import CategoryDeleteResponse as CategoryDeleteResponse
34
- from .use_case_create_response import UseCaseCreateResponse as UseCaseCreateResponse
35
- from .use_case_delete_response import UseCaseDeleteResponse as UseCaseDeleteResponse
36
34
  from .category_resource_response import CategoryResourceResponse as CategoryResourceResponse
37
- from .use_case_retrieve_response import UseCaseRetrieveResponse as UseCaseRetrieveResponse
35
+ from .use_case_instance_response import UseCaseInstanceResponse as UseCaseInstanceResponse
38
36
  from .category_list_resources_params import CategoryListResourcesParams as CategoryListResourcesParams
39
37
  from .category_delete_resource_response import CategoryDeleteResourceResponse as CategoryDeleteResourceResponse
40
38
  from .pay_i_common_models_api_router_header_info_param import (
@@ -27,10 +27,14 @@ class CategoryResourceResponse(BaseModel):
27
27
 
28
28
  units: Dict[str, Units]
29
29
 
30
+ character_billing: Optional[bool] = None
31
+
30
32
  cost_per_hour: Optional[float] = None
31
33
 
32
34
  deprecated_timestamp: Optional[datetime] = None
33
35
 
36
+ large_context_threshold: Optional[int] = None
37
+
34
38
  max_input_units: Optional[int] = None
35
39
 
36
40
  max_output_units: Optional[int] = None
@@ -10,6 +10,4 @@ __all__ = ["CostDetails"]
10
10
  class CostDetails(BaseModel):
11
11
  base: float
12
12
 
13
- overage_base: Optional[float] = None
14
-
15
13
  overrun_base: Optional[float] = None
@@ -22,22 +22,14 @@ class ProviderResponseFunctionCall(TypedDict, total=False):
22
22
  class IngestEventParam(TypedDict, total=False):
23
23
  category: Required[str]
24
24
 
25
- resource: Required[str]
26
-
27
25
  units: Required[Dict[str, IngestUnits]]
28
26
 
27
+ account_name: Optional[str]
28
+
29
29
  end_to_end_latency_ms: Optional[int]
30
30
 
31
31
  event_timestamp: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")]
32
32
 
33
- experience_id: Optional[str]
34
-
35
- experience_name: Optional[str]
36
-
37
- experience_properties: Optional[Dict[str, str]]
38
-
39
- experience_version: Optional[int]
40
-
41
33
  http_status_code: Optional[int]
42
34
 
43
35
  limit_ids: Optional[List[str]]
@@ -62,6 +54,8 @@ class IngestEventParam(TypedDict, total=False):
62
54
 
63
55
  request_tags: Optional[List[str]]
64
56
 
57
+ resource: Optional[str]
58
+
65
59
  time_to_first_completion_token_ms: Optional[int]
66
60
 
67
61
  time_to_first_token_ms: Optional[int]
@@ -16,8 +16,6 @@ __all__ = ["IngestUnitsParams", "ProviderResponseFunctionCall"]
16
16
  class IngestUnitsParams(TypedDict, total=False):
17
17
  category: Required[str]
18
18
 
19
- resource: Required[str]
20
-
21
19
  units: Required[Dict[str, IngestUnits]]
22
20
 
23
21
  end_to_end_latency_ms: Optional[int]
@@ -44,6 +42,8 @@ class IngestUnitsParams(TypedDict, total=False):
44
42
 
45
43
  provider_uri: Optional[str]
46
44
 
45
+ resource: Optional[str]
46
+
47
47
  time_to_first_completion_token_ms: Optional[int]
48
48
 
49
49
  time_to_first_token_ms: Optional[int]
@@ -13,10 +13,6 @@ class LimitCreateParams(TypedDict, total=False):
13
13
 
14
14
  max: Required[float]
15
15
 
16
- billing_model_id: Optional[str]
17
-
18
- limit_basis: Literal["base", "billed"]
19
-
20
16
  limit_id: Optional[str]
21
17
 
22
18
  limit_tags: Optional[List[str]]
@@ -26,12 +26,12 @@ class Limits(BaseModel):
26
26
 
27
27
 
28
28
  class XproxyResult(BaseModel):
29
+ account_name: Optional[str] = None
30
+
29
31
  blocked_limit_ids: Optional[List[str]] = None
30
32
 
31
33
  cost: Optional[Cost] = None
32
34
 
33
- experience_id: Optional[str] = None
34
-
35
35
  limits: Optional[Dict[str, Limits]] = None
36
36
 
37
37
  request_id: Optional[str] = None
@@ -4,10 +4,10 @@ from typing import Optional
4
4
 
5
5
  from .._models import BaseModel
6
6
 
7
- __all__ = ["UseCaseCreateResponse"]
7
+ __all__ = ["UseCaseInstanceResponse"]
8
8
 
9
9
 
10
- class UseCaseCreateResponse(BaseModel):
10
+ class UseCaseInstanceResponse(BaseModel):
11
11
  use_case_id: str
12
12
 
13
13
  limit_id: Optional[str] = None
@@ -10,4 +10,3 @@ from .definition_list_params import DefinitionListParams as DefinitionListParams
10
10
  from .property_update_params import PropertyUpdateParams as PropertyUpdateParams
11
11
  from .definition_create_params import DefinitionCreateParams as DefinitionCreateParams
12
12
  from .definition_update_params import DefinitionUpdateParams as DefinitionUpdateParams
13
- from .property_create_response import PropertyCreateResponse as PropertyCreateResponse
@@ -10,8 +10,8 @@ __all__ = ["KpiCreateParams"]
10
10
  class KpiCreateParams(TypedDict, total=False):
11
11
  description: Required[str]
12
12
 
13
- name: Required[str]
13
+ goal: Required[float]
14
14
 
15
- goal: float
15
+ kpi_type: Required[Literal["boolean", "number", "percentage", "likert5", "likert7", "likert10"]]
16
16
 
17
- kpi_type: Literal["boolean", "number", "percentage", "likert5", "likert7", "likert10"]
17
+ name: Required[str]
@@ -2,6 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ from typing import Union
5
6
  from typing_extensions import Required, TypedDict
6
7
 
7
8
  __all__ = ["KpiUpdateParams"]
@@ -10,4 +11,4 @@ __all__ = ["KpiUpdateParams"]
10
11
  class KpiUpdateParams(TypedDict, total=False):
11
12
  use_case_id: Required[str]
12
13
 
13
- score: float
14
+ score: Union[bool, float, None]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: payi
3
- Version: 0.1.0a105
3
+ Version: 0.1.0a107
4
4
  Summary: The official Python library for the payi API
5
5
  Project-URL: Homepage, https://github.com/Pay-i/pay-i-python
6
6
  Project-URL: Repository, https://github.com/Pay-i/pay-i-python
@@ -1,17 +1,17 @@
1
1
  payi/__init__.py,sha256=D0Hb0f0CuE6t648U7C0qOOKez56wyNcIndIYcNuamlU,2560
2
- payi/_base_client.py,sha256=eehCdtbXc28VdCSMlJWF9uYg1jtWNpmm8KcEL5BSYVU,66920
2
+ payi/_base_client.py,sha256=bbDglAL7W_pbfvcDSMy07UIGWJj9FJddyTCcpKdYJ-4,67033
3
3
  payi/_client.py,sha256=tKKTYVdI7BWHLNUzYDI9t1zqu2OQrDjm0Blm9lkqTUw,17199
4
4
  payi/_compat.py,sha256=VWemUKbj6DDkQ-O4baSpHVLJafotzeXmCQGJugfVTIw,6580
5
5
  payi/_constants.py,sha256=S14PFzyN9-I31wiV7SmIlL5Ga0MLHxdvegInGdXH7tM,462
6
6
  payi/_exceptions.py,sha256=ItygKNrNXIVY0H6LsGVZvFuAHB3Vtm_VZXmWzCnpHy0,3216
7
- payi/_files.py,sha256=mf4dOgL4b0ryyZlbqLhggD3GVgDf6XxdGFAgce01ugE,3549
7
+ payi/_files.py,sha256=KnEzGi_O756MvKyJ4fOCW_u3JhOeWPQ4RsmDvqihDQU,3545
8
8
  payi/_models.py,sha256=KvjsMfb88XZlFUKVoOxr8OyDj47MhoH2OKqWNEbBhk4,30010
9
9
  payi/_qs.py,sha256=AOkSz4rHtK4YI3ZU_kzea-zpwBUgEY8WniGmTPyEimc,4846
10
10
  payi/_resource.py,sha256=j2jIkTr8OIC8sU6-05nxSaCyj4MaFlbZrwlyg4_xJos,1088
11
11
  payi/_response.py,sha256=rh9oJAvCKcPwQFm4iqH_iVrmK8bNx--YP_A2a4kN1OU,28776
12
12
  payi/_streaming.py,sha256=Z_wIyo206T6Jqh2rolFg2VXZgX24PahLmpURp0-NssU,10092
13
13
  payi/_types.py,sha256=7jE5MoQQFVoVxw5vVzvZ2Ao0kcjfNOGsBgyJfLBEnMo,6195
14
- payi/_version.py,sha256=jCnfIMAFAEGjT-j0ZOBe1fSw4Tz4IIVI8e5fje9JVDs,166
14
+ payi/_version.py,sha256=4EnnZFKGbMawNi1BBG_mrCerxqu6JXYAZUiXRB-7g0o,166
15
15
  payi/pagination.py,sha256=k2356QGPOUSjRF2vHpwLBdF6P-2vnQzFfRIJQAHGQ7A,1258
16
16
  payi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  payi/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
@@ -36,13 +36,13 @@ payi/lib/helpers.py,sha256=FPzNSSHGf9bgD6CanB7yVx_U8t4lm2c0jlZKrsziYlc,4242
36
36
  payi/lib/instrument.py,sha256=TR4RBx5tlmTkerD4A4QN1Cr9dH_vQ-OZ_NjI5bz-cV0,73551
37
37
  payi/lib/version_helper.py,sha256=v0lC3kuaXn6PBDolE3mkmwJiA8Ot3z4RkVR7wlBuZCs,540
38
38
  payi/resources/__init__.py,sha256=B2bn1ZfCf6TbHlzZvy5TpFPtALnFcBRPYVKQH3S5qfQ,2457
39
- payi/resources/ingest.py,sha256=Ti7JkuHvdGSSyMiyI6PHBRlM1fKRkKdR5sQhs5t9v04,22980
39
+ payi/resources/ingest.py,sha256=7HeaAnIhPmAYdom8tAPPTa1WlbKL8pFCuQdZ2QSFuyE,23079
40
40
  payi/resources/categories/__init__.py,sha256=WeotN_d-0Ri8ohsrNPbve7RyViD9_N0NA9DrV3WYg3w,1701
41
41
  payi/resources/categories/categories.py,sha256=yYCkCxaYPWees9I9cx9CPy_H9wZK2X7jq8tRh-G__v8,20653
42
42
  payi/resources/categories/fixed_cost_resources.py,sha256=tLJlZ06KDIOHpVF4iq8S9IPocGohbOYh9LO0cWGznUA,7824
43
43
  payi/resources/categories/resources.py,sha256=nY5mKJPEy7-6J_UsyXZebNmUs6WK5ONx_qON9z6DwUg,19979
44
44
  payi/resources/limits/__init__.py,sha256=URXh9vglDH-dqbVGk-XcrDa8H5Bg2pgFuVQQecgEtaA,976
45
- payi/resources/limits/limits.py,sha256=ANZvONr9C9IdMKExrghKyHA1fCSfJzxl1cz4eTYkSV4,25678
45
+ payi/resources/limits/limits.py,sha256=kyzyLrgjrK3qgMvSjzHAJGyFTNTFWUnAr7uw4bRpBp4,25196
46
46
  payi/resources/limits/tags.py,sha256=gPW2ds6Zh7-BV7_SwtbRGcMMgj94NciGzcui6FRRQ-o,18964
47
47
  payi/resources/requests/__init__.py,sha256=L86SkNRyb9oySva7oQu6rMwBRUnctb4grtDSRN3T9_g,1571
48
48
  payi/resources/requests/requests.py,sha256=Mkyy-Iv7dZ-uKLMBm4eZdwHwm4ZKdF6O7W9QY53YcTo,4972
@@ -55,30 +55,30 @@ payi/resources/requests/response_id/properties.py,sha256=ei7Z64f1rr1IXJ0WNkZK4MI
55
55
  payi/resources/requests/response_id/response_id.py,sha256=PR2bLNJdMlgt3qjLBtnpyXrydZVd8dFUvRLC3W5WcJk,4942
56
56
  payi/resources/requests/response_id/result.py,sha256=TZadukcmGAVIA1VcCgPMu1fhOc6gJKO-GHsOJKc-rH8,6336
57
57
  payi/resources/use_cases/__init__.py,sha256=ckXPaVoPQmGESfgQF_ySP_eGskI6T4bJjPKoEGyo2gI,2020
58
- payi/resources/use_cases/kpis.py,sha256=y_L-FZdEISqX7cUhyy16oLyL8kyCGFvzzxxptAPd2JE,11057
59
- payi/resources/use_cases/properties.py,sha256=OhX3-w-V5gQpBNtfd6w8z44FZJB2PNqOQqEIe0iES7w,6531
60
- payi/resources/use_cases/use_cases.py,sha256=jv-iJik46W8WQR2q-ejxGwvmZugJ10bp52zPNXztsLE,15702
58
+ payi/resources/use_cases/kpis.py,sha256=d154_8Fdu0JcsVZKAbuQd6ZEqo4_RzemPnkUmOa15FE,11121
59
+ payi/resources/use_cases/properties.py,sha256=sCf0MM-VdxO6uGuyuSma6Ydjf-ghWKwqnS_35DQrxzo,6528
60
+ payi/resources/use_cases/use_cases.py,sha256=rTwgr7EL7UTsot61JsTLvs8hGykxFxjVflwZ99VjE_w,15582
61
61
  payi/resources/use_cases/definitions/__init__.py,sha256=pImtiVUbgsm6PkMJ0NPkrhQj8kEi36db-LF5rJukmMY,2020
62
62
  payi/resources/use_cases/definitions/definitions.py,sha256=aEnHvpULs0oRbDl_Fvr32Dr5Pd_ySX7kmtC5uiqcBKM,24542
63
- payi/resources/use_cases/definitions/kpis.py,sha256=UDvubQ8p1XUnP0nRr7UsdHUKsWpIU7szLsE7v42ATE8,22642
63
+ payi/resources/use_cases/definitions/kpis.py,sha256=3c25hms6laX_9q3an47RcsBJUnS7lcoPpQKsSLbiWmg,22586
64
64
  payi/resources/use_cases/definitions/limit_config.py,sha256=ojUg3Hhc5tGk5qE2Oxf9OlgcvvxY0A7HN3Q0uq1fsVo,10583
65
65
  payi/resources/use_cases/definitions/version.py,sha256=I1mrP_OEyEytMaQJeb06SS5GCJ6JO9K58nVIVdOgZiY,6013
66
- payi/types/__init__.py,sha256=_EBiVCFKocPjC3HgboqUeWJcb3_ZcQVWSl5Dwd6zwZo,2629
66
+ payi/types/__init__.py,sha256=16tyUhSSlJzmqKVog8WuMdJzRQn8U5oZ3u2hK-K9GoI,2459
67
67
  payi/types/bulk_ingest_response.py,sha256=BN6UUzNqICkSzbT0ucu2swznLpErmEN_kgWORCb2rwE,1211
68
68
  payi/types/category_delete_resource_response.py,sha256=PLz4wZA1XMpS9SUYB_j4hEw5EoZ0VVE9Ll-MQ26SAfc,339
69
69
  payi/types/category_delete_response.py,sha256=exq8rNDGoq2-YN528V8osdcmuptJ-k63rmCvPMm6hLA,323
70
70
  payi/types/category_list_params.py,sha256=hHe6LRxl8CGykRj4F4-eW_z5d5PxP3YzY0m7qtiM5jY,307
71
71
  payi/types/category_list_resources_params.py,sha256=Od65gihJCHdJWti1jdjUMp5l0vOvZb1PR50v9IQ4Mkk,325
72
- payi/types/category_resource_response.py,sha256=Kw5wlKG_VLUs_HJ3oLUeMu4rfJ_Ndm73flkXgAfQ-E4,756
72
+ payi/types/category_resource_response.py,sha256=izvwIS0w21PAmxIF5CcOZst1S3JZ9ghvDIbD-NLRT5I,853
73
73
  payi/types/category_response.py,sha256=dlvHaKJlcGm936aduRIMxJXHapPGo4Rfs9ObIYkP4Yc,206
74
74
  payi/types/cost_data.py,sha256=KXGLnqOKxS0q8yT9eRhdQHyGMSAcuukCHWcWZC1A6Fk,487
75
- payi/types/cost_details.py,sha256=w9p79opEG3kcsjkRRP7niaMcUswdfB4Y7HCkVTcQ1zQ,307
75
+ payi/types/cost_details.py,sha256=3ldvnYILAG6Sz9wGWMs1SZvIfdGEbn5i4-CauWEXMPA,265
76
76
  payi/types/default_response.py,sha256=o617LpRsCIZHCZxAc5nVI2JQ3HPGZo4gCDvSDkxkIJ8,270
77
77
  payi/types/ingest_bulk_params.py,sha256=A-IRb39d2tmVzEQqrvhlF_3si-9ufHBKYLlvdXupAHU,362
78
- payi/types/ingest_event_param.py,sha256=Nxf-sRKlks8gXaSM_52s_3TkvG0SJICxsvgkRch_Yxk,2054
78
+ payi/types/ingest_event_param.py,sha256=sPZX3Pdl4zCprCT_B4q3IrzMBrGind5AVy7VYUCOm4U,1925
79
79
  payi/types/ingest_response.py,sha256=JwcZ6OL793uXTuDmZAzkzhGcdtDsSXfSy_ERjzc7MZY,378
80
- payi/types/ingest_units_params.py,sha256=Zj0PcVPbjRAz3lwqJqJ2QS8FXxdRwCMlVD5frEshtbk,2526
81
- payi/types/limit_create_params.py,sha256=NHQHY1eeetGS6lU8aMIcibvVPzYE04mzLcf4Sz06gBs,578
80
+ payi/types/ingest_units_params.py,sha256=UgOVXsSerkVYwbAgDZ5xFZ_p2DcZsESNPF7Kc5RIhDo,2526
81
+ payi/types/limit_create_params.py,sha256=cPUTDLtUqJxCv7xvoB3e3kefN6iZTvnjaw01Y5tHEIo,497
82
82
  payi/types/limit_history_response.py,sha256=vJnVVa5BROfYHRPvpfymcOabjDhcJtFowQF-L-apNgw,770
83
83
  payi/types/limit_list_params.py,sha256=OYlK0anDA5G71FfwrMDzhEX4S5AlASLRiR0tmyD9tTU,322
84
84
  payi/types/limit_list_response.py,sha256=8UMtHrO38HqOkn8qAC9R90N902VVRZrZYp0C7fPEX1g,622
@@ -89,9 +89,7 @@ payi/types/pay_i_common_models_api_router_header_info_param.py,sha256=91djoPLmoa
89
89
  payi/types/request_result.py,sha256=mD0akFmhrAqCFZwo-ampDuBH7cK5Y6GOmQm7vT-WIwE,261
90
90
  payi/types/requests_data.py,sha256=coHpXgOIQv8oKaX354G-uYoJMzbJcjIW1oX1wuQppts,307
91
91
  payi/types/total_cost_data.py,sha256=1xoiInVI0UaKup_8poAHNgcpK8gu09RQnMrdorQtFgQ,301
92
- payi/types/use_case_create_response.py,sha256=Tuq4mzkshfw1bAjo0UsVfj3NeJ6XsS9WOWAiy2acwJU,324
93
- payi/types/use_case_delete_response.py,sha256=eHhHVEDtsWY48CAXmN6sdgbCEaeUWM4sB7pikDkWu9s,324
94
- payi/types/use_case_retrieve_response.py,sha256=yYCTV0CLGUdQTM_yccsedUf8Ia7J6KGXGY88S-53OyA,328
92
+ payi/types/use_case_instance_response.py,sha256=khdcmoU1L8djNVYLu4rSmWkaceZmGwkE9eHLedN1ePU,328
95
93
  payi/types/categories/__init__.py,sha256=mpdvOCRgkzQgIqgcb30nvunzZFqMrDOAoa_N0MJZouE,389
96
94
  payi/types/categories/fixed_cost_resource_create_params.py,sha256=7aCIr-qIGTRkDtYwcnnFgt_iSOIrVbelw23rYYP1IgI,567
97
95
  payi/types/categories/resource_create_params.py,sha256=HVzUWhvmUhVu9h70DmUrBPUcO-g2VUIc5cg0sxbG3fs,745
@@ -118,22 +116,21 @@ payi/types/shared/pay_i_common_models_budget_management_cost_details_base.py,sha
118
116
  payi/types/shared/pay_i_common_models_budget_management_create_limit_base.py,sha256=FDFCOvxG7Dep7oELqQATc_YWrRZ-Uh9WOpL2ZKPDQ6Q,482
119
117
  payi/types/shared/properties_response.py,sha256=HpFNtxl_OjoMCs24xPVZLKe3FwCVcNkcRs0LsQKLrHM,259
120
118
  payi/types/shared/xproxy_error.py,sha256=I8dsEHZF_0dM-1YvZ6_mysRJuNlWJrQIHacs9yRaZCM,274
121
- payi/types/shared/xproxy_result.py,sha256=v3P4gGJrnT6W49nJ88ikvxnQfWOaiwqRRLn91veE1sU,1383
119
+ payi/types/shared/xproxy_result.py,sha256=Q9DfH8vfZ7NU0d9nUKDTFeLWorZ83oICbbdJsKgTsBM,1382
122
120
  payi/types/shared_params/__init__.py,sha256=dRGuNTZWLagRlbQfl5tKc0JMEYNRVXUad5oyl7IFeIU,317
123
121
  payi/types/shared_params/ingest_units.py,sha256=ueGIq14EQRGIDQlIHCCParrDxh1TZ_Hjfx2GP3_19yA,267
124
122
  payi/types/shared_params/pay_i_common_models_budget_management_create_limit_base.py,sha256=8UXPHFrNDZfF5tgEeV0mIqevksNGEWayv2NJV5DY_Rg,497
125
- payi/types/use_cases/__init__.py,sha256=qFS310pxzDjeMzB2r2vMU56090Dnt8DIyc_ekWuwl34,810
123
+ payi/types/use_cases/__init__.py,sha256=etITqrdbGF_cdY2CSF0xq1Be9LFdUeQtZXNg_uJEfeM,723
126
124
  payi/types/use_cases/definition_create_params.py,sha256=8Z48UFbJq0nohT0rG64-3Js9nadWNDMoeVUTXn4PLp4,597
127
125
  payi/types/use_cases/definition_list_params.py,sha256=8lVZQPafxHSAULib1RcjRJh82POL9zKKHMHn2r_l31I,335
128
126
  payi/types/use_cases/definition_update_params.py,sha256=nRhHHVUvEFYr_dtAESZcyxZNU7qpKLF7VajgNZ9FIx8,353
129
127
  payi/types/use_cases/kpi_list_params.py,sha256=lx8rGm1Ri9Qn7EsIhwb07-HLHbV1BWc904sJkmPhodI,316
130
128
  payi/types/use_cases/kpi_list_response.py,sha256=6REE5-V5j2dxAOX6ShDpXTGvYAT6xIl4X1WBAx0apSY,561
131
- payi/types/use_cases/kpi_update_params.py,sha256=c9La5HaxdtQAYt228ZutuXUJ0UbTp8cxVGIQgx_o8Os,302
132
- payi/types/use_cases/property_create_response.py,sha256=4NjhkvCHwX9uh0370NN_J06lrW8VlHmtVkuMdR5Xbkc,327
129
+ payi/types/use_cases/kpi_update_params.py,sha256=TZvwDtS5VtngTnAR0bPPVoy8UD3YxjCVl5CEthPoYqc,346
133
130
  payi/types/use_cases/property_update_params.py,sha256=Um7m9FvIFJXkqIBH3ZMqMLSRnZZkNqA9AUHL8S3Pmo8,328
134
131
  payi/types/use_cases/use_case_definition.py,sha256=R2DMV9t1EZ4pStQhZSul8SFCyfqqQuAUoevlkFOg2Mc,579
135
132
  payi/types/use_cases/definitions/__init__.py,sha256=xro0oPNhbIPOYx-6fvAINvaHL0kaCUMbALzrZmLeuwA,766
136
- payi/types/use_cases/definitions/kpi_create_params.py,sha256=Hvs8nGLXHmAAZLy5RDKstGWX7UTr2WrfcQB-8cqv45M,427
133
+ payi/types/use_cases/definitions/kpi_create_params.py,sha256=09jkxFxXJzguEJ3MxCwaa8X5_WcsUCjnWk3al6OJ_vM,447
137
134
  payi/types/use_cases/definitions/kpi_create_response.py,sha256=ykszUJzVkINzHpVUEJCB7rzVKGZN5P3pb9DeHSus2TU,459
138
135
  payi/types/use_cases/definitions/kpi_delete_response.py,sha256=Oy5rTPavC0rwHyEZKp-XyD_WDWZJkHlT-9-KkDLpjAI,459
139
136
  payi/types/use_cases/definitions/kpi_list_params.py,sha256=lx8rGm1Ri9Qn7EsIhwb07-HLHbV1BWc904sJkmPhodI,316
@@ -142,7 +139,7 @@ payi/types/use_cases/definitions/kpi_retrieve_response.py,sha256=uQXliSvS3k-yDYw
142
139
  payi/types/use_cases/definitions/kpi_update_params.py,sha256=jbawdWAdMnsTWVH0qfQGb8W7_TXe3lq4zjSRu44d8p8,373
143
140
  payi/types/use_cases/definitions/kpi_update_response.py,sha256=zLyEoT0S8d7XHsnXZYT8tM7yDw0Aze0Mk-_Z6QeMtc8,459
144
141
  payi/types/use_cases/definitions/limit_config_create_params.py,sha256=pzQza_16N3z8cFNEKr6gPbFvuGFrwNuGxAYb--Kbo2M,449
145
- payi-0.1.0a105.dist-info/METADATA,sha256=ebm7gZa_0r4Ty7cTmel8Wk6pTesLYdzCHno1pcSh5kI,16290
146
- payi-0.1.0a105.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
147
- payi-0.1.0a105.dist-info/licenses/LICENSE,sha256=CQt03aM-P4a3Yg5qBg3JSLVoQS3smMyvx7tYg_6V7Gk,11334
148
- payi-0.1.0a105.dist-info/RECORD,,
142
+ payi-0.1.0a107.dist-info/METADATA,sha256=yUupytAMfCUgC1RWrS4WOyl66Pdm3xnGRWQFm_rwwfA,16290
143
+ payi-0.1.0a107.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
144
+ payi-0.1.0a107.dist-info/licenses/LICENSE,sha256=CQt03aM-P4a3Yg5qBg3JSLVoQS3smMyvx7tYg_6V7Gk,11334
145
+ payi-0.1.0a107.dist-info/RECORD,,
@@ -1,15 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import Optional
4
-
5
- from .._models import BaseModel
6
-
7
- __all__ = ["UseCaseDeleteResponse"]
8
-
9
-
10
- class UseCaseDeleteResponse(BaseModel):
11
- use_case_id: str
12
-
13
- limit_id: Optional[str] = None
14
-
15
- type_version: Optional[int] = None
@@ -1,15 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import Optional
4
-
5
- from .._models import BaseModel
6
-
7
- __all__ = ["UseCaseRetrieveResponse"]
8
-
9
-
10
- class UseCaseRetrieveResponse(BaseModel):
11
- use_case_id: str
12
-
13
- limit_id: Optional[str] = None
14
-
15
- type_version: Optional[int] = None
@@ -1,15 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import Optional
4
-
5
- from ..._models import BaseModel
6
-
7
- __all__ = ["PropertyCreateResponse"]
8
-
9
-
10
- class PropertyCreateResponse(BaseModel):
11
- use_case_id: str
12
-
13
- limit_id: Optional[str] = None
14
-
15
- type_version: Optional[int] = None