graphlit-client 1.0.20250622003__py3-none-any.whl → 1.0.20250622004__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.
graphlit_api/client.py CHANGED
@@ -4933,8 +4933,18 @@ class Client(AsyncBaseClient):
4933
4933
  data = self.get_data(response)
4934
4934
  return GetProject.model_validate(data)
4935
4935
 
4936
- async def lookup_credits(self, correlation_id: str, **kwargs: Any) -> LookupCredits:
4937
- variables: Dict[str, object] = {"correlationId": correlation_id}
4936
+ async def lookup_credits(
4937
+ self,
4938
+ correlation_id: str,
4939
+ start_date: Union[Optional[Any], UnsetType] = UNSET,
4940
+ duration: Union[Optional[Any], UnsetType] = UNSET,
4941
+ **kwargs: Any
4942
+ ) -> LookupCredits:
4943
+ variables: Dict[str, object] = {
4944
+ "correlationId": correlation_id,
4945
+ "startDate": start_date,
4946
+ "duration": duration,
4947
+ }
4938
4948
  response = await self.execute(
4939
4949
  query=LOOKUP_CREDITS_GQL,
4940
4950
  operation_name="LookupCredits",
@@ -4944,8 +4954,18 @@ class Client(AsyncBaseClient):
4944
4954
  data = self.get_data(response)
4945
4955
  return LookupCredits.model_validate(data)
4946
4956
 
4947
- async def lookup_usage(self, correlation_id: str, **kwargs: Any) -> LookupUsage:
4948
- variables: Dict[str, object] = {"correlationId": correlation_id}
4957
+ async def lookup_usage(
4958
+ self,
4959
+ correlation_id: str,
4960
+ start_date: Union[Optional[Any], UnsetType] = UNSET,
4961
+ duration: Union[Optional[Any], UnsetType] = UNSET,
4962
+ **kwargs: Any
4963
+ ) -> LookupUsage:
4964
+ variables: Dict[str, object] = {
4965
+ "correlationId": correlation_id,
4966
+ "startDate": start_date,
4967
+ "duration": duration,
4968
+ }
4949
4969
  response = await self.execute(
4950
4970
  query=LOOKUP_USAGE_GQL,
4951
4971
  operation_name="LookupUsage",
@@ -8671,8 +8671,12 @@ query GetProject {
8671
8671
  """
8672
8672
 
8673
8673
  LOOKUP_CREDITS_GQL = """
8674
- query LookupCredits($correlationId: String!) {
8675
- lookupCredits(correlationId: $correlationId) {
8674
+ query LookupCredits($correlationId: String!, $startDate: DateTime, $duration: TimeSpan) {
8675
+ lookupCredits(
8676
+ correlationId: $correlationId
8677
+ startDate: $startDate
8678
+ duration: $duration
8679
+ ) {
8676
8680
  correlationId
8677
8681
  ownerId
8678
8682
  credits
@@ -8695,8 +8699,12 @@ query LookupCredits($correlationId: String!) {
8695
8699
  """
8696
8700
 
8697
8701
  LOOKUP_USAGE_GQL = """
8698
- query LookupUsage($correlationId: String!) {
8699
- lookupUsage(correlationId: $correlationId) {
8702
+ query LookupUsage($correlationId: String!, $startDate: DateTime, $duration: TimeSpan) {
8703
+ lookupUsage(
8704
+ correlationId: $correlationId
8705
+ startDate: $startDate
8706
+ duration: $duration
8707
+ ) {
8700
8708
  id
8701
8709
  correlationId
8702
8710
  date
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: graphlit-client
3
- Version: 1.0.20250622003
3
+ Version: 1.0.20250622004
4
4
  Summary: Graphlit API Python Client
5
5
  Home-page: https://github.com/graphlit/graphlit-client-python
6
6
  Author: Unstruk Data Inc.
@@ -7,7 +7,7 @@ graphlit_api/async_base_client.py,sha256=v0KUVwe2_RIQa8Mn7l_yD5McUe7B03vhclJ9SP4
7
7
  graphlit_api/base_model.py,sha256=o2d-DixASFCGztr3rTiGX0AwgFu7Awr7EgD70FI8a-I,620
8
8
  graphlit_api/branch_conversation.py,sha256=iU3IsoM526AHUHjX0ODAyOPTpyS9N5RqSdytoAOmKbU,539
9
9
  graphlit_api/clear_conversation.py,sha256=5GOmc2wfupV-7EHWyi3v6LA0pSVLtFNCzxPJm42Dp6Y,531
10
- graphlit_api/client.py,sha256=D-JSeinL9PlMfF1Ku1GcFxLzLqTnL35sEhq6Rg-yV4Y,206254
10
+ graphlit_api/client.py,sha256=3wvl88Z2qJ-dhIArsJTkYQHgvvT1eaDAPXRRB2vbVPE,206742
11
11
  graphlit_api/close_conversation.py,sha256=HcIUUiNf7hnuLZ7Fy6IcgfuHMSyWyJ7uOEy1EEETy_4,531
12
12
  graphlit_api/complete_conversation.py,sha256=39v86YLrm9IGQVcsRHUyxoTkiT1sNoVPQZzim5FxSZo,16844
13
13
  graphlit_api/continue_conversation.py,sha256=Ba_ufN-4Ji6ZjznlilvS85xxkdV5JGpnuEQUU-qGXBk,16844
@@ -209,7 +209,7 @@ graphlit_api/lookup_contents.py,sha256=avxMUE3lBigZdBn_M9Ybz3RpmyLYiIOk4GGx50ijH
209
209
  graphlit_api/lookup_credits.py,sha256=WsV7fGbg29WWOjPRIaL2bnhISGsb0SqUlQxL7rBfNTo,1464
210
210
  graphlit_api/lookup_usage.py,sha256=D_cbO0KmXDqRYqQIhNwWXNFGjwNLEy2_5aVa-SYgRzw,1711
211
211
  graphlit_api/map_web.py,sha256=2rp4jFD1vDqcQ98mCVTeC0RzPqQxmmcRvHNRl8HJfFA,346
212
- graphlit_api/operations.py,sha256=Lk3uZhB7WGSSVGxgSrCar8FG1reuJx0hwbX6g2zjk98,201041
212
+ graphlit_api/operations.py,sha256=cIaCZxUm0Fjh80rkzz06J6J3xJWlnAnlbI765dm9vgM,201243
213
213
  graphlit_api/prompt.py,sha256=jBlM3ywGnbVPYSBHMDPAy5ZlDDtndRsHnV7twcwLX1g,6203
214
214
  graphlit_api/prompt_conversation.py,sha256=JMiDfxFaixz63wXcT-h948c5x2Uc6PgB3D7wORltkhU,16458
215
215
  graphlit_api/prompt_specifications.py,sha256=GFLRlyp5pISfB0PVMw3RPCwGvqkA3qI5M2NiXXu2aT0,7090
@@ -308,8 +308,8 @@ graphlit_api/upsert_label.py,sha256=_bVWrISvyt4G4IcjAKqu8c5P6FDgaODdIGtSToJfNOY,
308
308
  graphlit_api/upsert_specification.py,sha256=23eLTL8OLAYE-j_nhjT5NgaCrSUs9Q40rGW_VhDrDoM,643
309
309
  graphlit_api/upsert_workflow.py,sha256=8oAjaG884YBRsfXDhoSeWxJL0oktMQomqU7xCoXso-M,16588
310
310
  graphlit_api/workflow_exists.py,sha256=1XVcqCW_KZ3BwUFx08lwqQdf1ZpJ6Vmi8jBqcrMqYRI,397
311
- graphlit_client-1.0.20250622003.dist-info/licenses/LICENSE,sha256=ivF8XnUYrNZFQ1wZFMrxWshDb1h7TdSK6Qk8_3WPkhM,1095
312
- graphlit_client-1.0.20250622003.dist-info/METADATA,sha256=Hyemplu8Wi3g13l7fW6NRhNbvyM1HCfvpwAndvoYKwI,3408
313
- graphlit_client-1.0.20250622003.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
314
- graphlit_client-1.0.20250622003.dist-info/top_level.txt,sha256=HUVfNzJrxWuHS-4M5I7XjLa8-mxYQwfx01A4YKJZSYM,22
315
- graphlit_client-1.0.20250622003.dist-info/RECORD,,
311
+ graphlit_client-1.0.20250622004.dist-info/licenses/LICENSE,sha256=ivF8XnUYrNZFQ1wZFMrxWshDb1h7TdSK6Qk8_3WPkhM,1095
312
+ graphlit_client-1.0.20250622004.dist-info/METADATA,sha256=MJUaHYZATS70BICzVLaVYfQgFNWSEMAcOq1E6xiviEw,3408
313
+ graphlit_client-1.0.20250622004.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
314
+ graphlit_client-1.0.20250622004.dist-info/top_level.txt,sha256=HUVfNzJrxWuHS-4M5I7XjLa8-mxYQwfx01A4YKJZSYM,22
315
+ graphlit_client-1.0.20250622004.dist-info/RECORD,,