compass_api_sdk 0.9.41__py3-none-any.whl → 0.9.42__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 compass_api_sdk might be problematic. Click here for more details.

@@ -3,10 +3,10 @@
3
3
  import importlib.metadata
4
4
 
5
5
  __title__: str = "compass_api_sdk"
6
- __version__: str = "0.9.41"
6
+ __version__: str = "0.9.42"
7
7
  __openapi_doc_version__: str = "0.0.1"
8
- __gen_version__: str = "2.648.7"
9
- __user_agent__: str = "speakeasy-sdk/python 0.9.41 2.648.7 0.0.1 compass_api_sdk"
8
+ __gen_version__: str = "2.654.2"
9
+ __user_agent__: str = "speakeasy-sdk/python 0.9.42 2.654.2 0.0.1 compass_api_sdk"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
@@ -4,6 +4,7 @@ from .basesdk import BaseSDK
4
4
  from compass_api_sdk import errors, models, utils
5
5
  from compass_api_sdk._hooks import HookContext
6
6
  from compass_api_sdk.types import OptionalNullable, UNSET
7
+ from compass_api_sdk.utils.unmarshal_json_response import unmarshal_json_response
7
8
  from typing import Any, Mapping, Optional, Union
8
9
 
9
10
 
@@ -99,9 +100,9 @@ class AaveV3(BaseSDK):
99
100
 
100
101
  response_data: Any = None
101
102
  if utils.match_response(http_res, "200", "application/json"):
102
- return utils.unmarshal_json_response(models.AaveRateResponse, http_res)
103
+ return unmarshal_json_response(models.AaveRateResponse, http_res)
103
104
  if utils.match_response(http_res, "422", "application/json"):
104
- response_data = utils.unmarshal_json_response(
105
+ response_data = unmarshal_json_response(
105
106
  errors.HTTPValidationErrorData, http_res
106
107
  )
107
108
  raise errors.HTTPValidationError(response_data, http_res)
@@ -205,9 +206,9 @@ class AaveV3(BaseSDK):
205
206
 
206
207
  response_data: Any = None
207
208
  if utils.match_response(http_res, "200", "application/json"):
208
- return utils.unmarshal_json_response(models.AaveRateResponse, http_res)
209
+ return unmarshal_json_response(models.AaveRateResponse, http_res)
209
210
  if utils.match_response(http_res, "422", "application/json"):
210
- response_data = utils.unmarshal_json_response(
211
+ response_data = unmarshal_json_response(
211
212
  errors.HTTPValidationErrorData, http_res
212
213
  )
213
214
  raise errors.HTTPValidationError(response_data, http_res)
@@ -301,9 +302,9 @@ class AaveV3(BaseSDK):
301
302
 
302
303
  response_data: Any = None
303
304
  if utils.match_response(http_res, "200", "application/json"):
304
- return utils.unmarshal_json_response(models.AaveAvgRateResponse, http_res)
305
+ return unmarshal_json_response(models.AaveAvgRateResponse, http_res)
305
306
  if utils.match_response(http_res, "422", "application/json"):
306
- response_data = utils.unmarshal_json_response(
307
+ response_data = unmarshal_json_response(
307
308
  errors.HTTPValidationErrorData, http_res
308
309
  )
309
310
  raise errors.HTTPValidationError(response_data, http_res)
@@ -397,9 +398,9 @@ class AaveV3(BaseSDK):
397
398
 
398
399
  response_data: Any = None
399
400
  if utils.match_response(http_res, "200", "application/json"):
400
- return utils.unmarshal_json_response(models.AaveAvgRateResponse, http_res)
401
+ return unmarshal_json_response(models.AaveAvgRateResponse, http_res)
401
402
  if utils.match_response(http_res, "422", "application/json"):
402
- response_data = utils.unmarshal_json_response(
403
+ response_data = unmarshal_json_response(
403
404
  errors.HTTPValidationErrorData, http_res
404
405
  )
405
406
  raise errors.HTTPValidationError(response_data, http_res)
@@ -494,9 +495,9 @@ class AaveV3(BaseSDK):
494
495
 
495
496
  response_data: Any = None
496
497
  if utils.match_response(http_res, "200", "application/json"):
497
- return utils.unmarshal_json_response(models.AaveSTDRateResponse, http_res)
498
+ return unmarshal_json_response(models.AaveSTDRateResponse, http_res)
498
499
  if utils.match_response(http_res, "422", "application/json"):
499
- response_data = utils.unmarshal_json_response(
500
+ response_data = unmarshal_json_response(
500
501
  errors.HTTPValidationErrorData, http_res
501
502
  )
502
503
  raise errors.HTTPValidationError(response_data, http_res)
@@ -591,9 +592,9 @@ class AaveV3(BaseSDK):
591
592
 
592
593
  response_data: Any = None
593
594
  if utils.match_response(http_res, "200", "application/json"):
594
- return utils.unmarshal_json_response(models.AaveSTDRateResponse, http_res)
595
+ return unmarshal_json_response(models.AaveSTDRateResponse, http_res)
595
596
  if utils.match_response(http_res, "422", "application/json"):
596
- response_data = utils.unmarshal_json_response(
597
+ response_data = unmarshal_json_response(
597
598
  errors.HTTPValidationErrorData, http_res
598
599
  )
599
600
  raise errors.HTTPValidationError(response_data, http_res)
@@ -689,11 +690,9 @@ class AaveV3(BaseSDK):
689
690
 
690
691
  response_data: Any = None
691
692
  if utils.match_response(http_res, "200", "application/json"):
692
- return utils.unmarshal_json_response(
693
- models.AaveReserveOverviewResponse, http_res
694
- )
693
+ return unmarshal_json_response(models.AaveReserveOverviewResponse, http_res)
695
694
  if utils.match_response(http_res, "422", "application/json"):
696
- response_data = utils.unmarshal_json_response(
695
+ response_data = unmarshal_json_response(
697
696
  errors.HTTPValidationErrorData, http_res
698
697
  )
699
698
  raise errors.HTTPValidationError(response_data, http_res)
@@ -789,11 +788,9 @@ class AaveV3(BaseSDK):
789
788
 
790
789
  response_data: Any = None
791
790
  if utils.match_response(http_res, "200", "application/json"):
792
- return utils.unmarshal_json_response(
793
- models.AaveReserveOverviewResponse, http_res
794
- )
791
+ return unmarshal_json_response(models.AaveReserveOverviewResponse, http_res)
795
792
  if utils.match_response(http_res, "422", "application/json"):
796
- response_data = utils.unmarshal_json_response(
793
+ response_data = unmarshal_json_response(
797
794
  errors.HTTPValidationErrorData, http_res
798
795
  )
799
796
  raise errors.HTTPValidationError(response_data, http_res)
@@ -891,11 +888,9 @@ class AaveV3(BaseSDK):
891
888
 
892
889
  response_data: Any = None
893
890
  if utils.match_response(http_res, "200", "application/json"):
894
- return utils.unmarshal_json_response(
895
- models.AaveTokenPriceResponse, http_res
896
- )
891
+ return unmarshal_json_response(models.AaveTokenPriceResponse, http_res)
897
892
  if utils.match_response(http_res, "422", "application/json"):
898
- response_data = utils.unmarshal_json_response(
893
+ response_data = unmarshal_json_response(
899
894
  errors.HTTPValidationErrorData, http_res
900
895
  )
901
896
  raise errors.HTTPValidationError(response_data, http_res)
@@ -993,11 +988,9 @@ class AaveV3(BaseSDK):
993
988
 
994
989
  response_data: Any = None
995
990
  if utils.match_response(http_res, "200", "application/json"):
996
- return utils.unmarshal_json_response(
997
- models.AaveTokenPriceResponse, http_res
998
- )
991
+ return unmarshal_json_response(models.AaveTokenPriceResponse, http_res)
999
992
  if utils.match_response(http_res, "422", "application/json"):
1000
- response_data = utils.unmarshal_json_response(
993
+ response_data = unmarshal_json_response(
1001
994
  errors.HTTPValidationErrorData, http_res
1002
995
  )
1003
996
  raise errors.HTTPValidationError(response_data, http_res)
@@ -1101,11 +1094,9 @@ class AaveV3(BaseSDK):
1101
1094
 
1102
1095
  response_data: Any = None
1103
1096
  if utils.match_response(http_res, "200", "application/json"):
1104
- return utils.unmarshal_json_response(
1105
- models.AaveLiquidityChangeResponse, http_res
1106
- )
1097
+ return unmarshal_json_response(models.AaveLiquidityChangeResponse, http_res)
1107
1098
  if utils.match_response(http_res, "422", "application/json"):
1108
- response_data = utils.unmarshal_json_response(
1099
+ response_data = unmarshal_json_response(
1109
1100
  errors.HTTPValidationErrorData, http_res
1110
1101
  )
1111
1102
  raise errors.HTTPValidationError(response_data, http_res)
@@ -1209,11 +1200,9 @@ class AaveV3(BaseSDK):
1209
1200
 
1210
1201
  response_data: Any = None
1211
1202
  if utils.match_response(http_res, "200", "application/json"):
1212
- return utils.unmarshal_json_response(
1213
- models.AaveLiquidityChangeResponse, http_res
1214
- )
1203
+ return unmarshal_json_response(models.AaveLiquidityChangeResponse, http_res)
1215
1204
  if utils.match_response(http_res, "422", "application/json"):
1216
- response_data = utils.unmarshal_json_response(
1205
+ response_data = unmarshal_json_response(
1217
1206
  errors.HTTPValidationErrorData, http_res
1218
1207
  )
1219
1208
  raise errors.HTTPValidationError(response_data, http_res)
@@ -1311,11 +1300,11 @@ class AaveV3(BaseSDK):
1311
1300
 
1312
1301
  response_data: Any = None
1313
1302
  if utils.match_response(http_res, "200", "application/json"):
1314
- return utils.unmarshal_json_response(
1303
+ return unmarshal_json_response(
1315
1304
  models.AaveUserPositionSummaryResponse, http_res
1316
1305
  )
1317
1306
  if utils.match_response(http_res, "422", "application/json"):
1318
- response_data = utils.unmarshal_json_response(
1307
+ response_data = unmarshal_json_response(
1319
1308
  errors.HTTPValidationErrorData, http_res
1320
1309
  )
1321
1310
  raise errors.HTTPValidationError(response_data, http_res)
@@ -1413,11 +1402,11 @@ class AaveV3(BaseSDK):
1413
1402
 
1414
1403
  response_data: Any = None
1415
1404
  if utils.match_response(http_res, "200", "application/json"):
1416
- return utils.unmarshal_json_response(
1405
+ return unmarshal_json_response(
1417
1406
  models.AaveUserPositionSummaryResponse, http_res
1418
1407
  )
1419
1408
  if utils.match_response(http_res, "422", "application/json"):
1420
- response_data = utils.unmarshal_json_response(
1409
+ response_data = unmarshal_json_response(
1421
1410
  errors.HTTPValidationErrorData, http_res
1422
1411
  )
1423
1412
  raise errors.HTTPValidationError(response_data, http_res)
@@ -1519,11 +1508,11 @@ class AaveV3(BaseSDK):
1519
1508
 
1520
1509
  response_data: Any = None
1521
1510
  if utils.match_response(http_res, "200", "application/json"):
1522
- return utils.unmarshal_json_response(
1511
+ return unmarshal_json_response(
1523
1512
  models.AaveUserPositionPerTokenResponse, http_res
1524
1513
  )
1525
1514
  if utils.match_response(http_res, "422", "application/json"):
1526
- response_data = utils.unmarshal_json_response(
1515
+ response_data = unmarshal_json_response(
1527
1516
  errors.HTTPValidationErrorData, http_res
1528
1517
  )
1529
1518
  raise errors.HTTPValidationError(response_data, http_res)
@@ -1625,11 +1614,11 @@ class AaveV3(BaseSDK):
1625
1614
 
1626
1615
  response_data: Any = None
1627
1616
  if utils.match_response(http_res, "200", "application/json"):
1628
- return utils.unmarshal_json_response(
1617
+ return unmarshal_json_response(
1629
1618
  models.AaveUserPositionPerTokenResponse, http_res
1630
1619
  )
1631
1620
  if utils.match_response(http_res, "422", "application/json"):
1632
- response_data = utils.unmarshal_json_response(
1621
+ response_data = unmarshal_json_response(
1633
1622
  errors.HTTPValidationErrorData, http_res
1634
1623
  )
1635
1624
  raise errors.HTTPValidationError(response_data, http_res)
@@ -1728,11 +1717,11 @@ class AaveV3(BaseSDK):
1728
1717
 
1729
1718
  response_data: Any = None
1730
1719
  if utils.match_response(http_res, "200", "application/json"):
1731
- return utils.unmarshal_json_response(
1720
+ return unmarshal_json_response(
1732
1721
  models.AaveHistoricalTransactionsResponse, http_res
1733
1722
  )
1734
1723
  if utils.match_response(http_res, "422", "application/json"):
1735
- response_data = utils.unmarshal_json_response(
1724
+ response_data = unmarshal_json_response(
1736
1725
  errors.HTTPValidationErrorData, http_res
1737
1726
  )
1738
1727
  raise errors.HTTPValidationError(response_data, http_res)
@@ -1831,11 +1820,11 @@ class AaveV3(BaseSDK):
1831
1820
 
1832
1821
  response_data: Any = None
1833
1822
  if utils.match_response(http_res, "200", "application/json"):
1834
- return utils.unmarshal_json_response(
1823
+ return unmarshal_json_response(
1835
1824
  models.AaveHistoricalTransactionsResponse, http_res
1836
1825
  )
1837
1826
  if utils.match_response(http_res, "422", "application/json"):
1838
- response_data = utils.unmarshal_json_response(
1827
+ response_data = unmarshal_json_response(
1839
1828
  errors.HTTPValidationErrorData, http_res
1840
1829
  )
1841
1830
  raise errors.HTTPValidationError(response_data, http_res)
@@ -1945,9 +1934,9 @@ class AaveV3(BaseSDK):
1945
1934
 
1946
1935
  response_data: Any = None
1947
1936
  if utils.match_response(http_res, "200", "application/json"):
1948
- return utils.unmarshal_json_response(models.TxResponse, http_res)
1937
+ return unmarshal_json_response(models.TxResponse, http_res)
1949
1938
  if utils.match_response(http_res, "422", "application/json"):
1950
- response_data = utils.unmarshal_json_response(
1939
+ response_data = unmarshal_json_response(
1951
1940
  errors.HTTPValidationErrorData, http_res
1952
1941
  )
1953
1942
  raise errors.HTTPValidationError(response_data, http_res)
@@ -2057,9 +2046,9 @@ class AaveV3(BaseSDK):
2057
2046
 
2058
2047
  response_data: Any = None
2059
2048
  if utils.match_response(http_res, "200", "application/json"):
2060
- return utils.unmarshal_json_response(models.TxResponse, http_res)
2049
+ return unmarshal_json_response(models.TxResponse, http_res)
2061
2050
  if utils.match_response(http_res, "422", "application/json"):
2062
- response_data = utils.unmarshal_json_response(
2051
+ response_data = unmarshal_json_response(
2063
2052
  errors.HTTPValidationErrorData, http_res
2064
2053
  )
2065
2054
  raise errors.HTTPValidationError(response_data, http_res)
@@ -2167,9 +2156,9 @@ class AaveV3(BaseSDK):
2167
2156
 
2168
2157
  response_data: Any = None
2169
2158
  if utils.match_response(http_res, "200", "application/json"):
2170
- return utils.unmarshal_json_response(models.TxResponse, http_res)
2159
+ return unmarshal_json_response(models.TxResponse, http_res)
2171
2160
  if utils.match_response(http_res, "422", "application/json"):
2172
- response_data = utils.unmarshal_json_response(
2161
+ response_data = unmarshal_json_response(
2173
2162
  errors.HTTPValidationErrorData, http_res
2174
2163
  )
2175
2164
  raise errors.HTTPValidationError(response_data, http_res)
@@ -2277,9 +2266,9 @@ class AaveV3(BaseSDK):
2277
2266
 
2278
2267
  response_data: Any = None
2279
2268
  if utils.match_response(http_res, "200", "application/json"):
2280
- return utils.unmarshal_json_response(models.TxResponse, http_res)
2269
+ return unmarshal_json_response(models.TxResponse, http_res)
2281
2270
  if utils.match_response(http_res, "422", "application/json"):
2282
- response_data = utils.unmarshal_json_response(
2271
+ response_data = unmarshal_json_response(
2283
2272
  errors.HTTPValidationErrorData, http_res
2284
2273
  )
2285
2274
  raise errors.HTTPValidationError(response_data, http_res)
@@ -2391,9 +2380,9 @@ class AaveV3(BaseSDK):
2391
2380
 
2392
2381
  response_data: Any = None
2393
2382
  if utils.match_response(http_res, "200", "application/json"):
2394
- return utils.unmarshal_json_response(models.TxResponse, http_res)
2383
+ return unmarshal_json_response(models.TxResponse, http_res)
2395
2384
  if utils.match_response(http_res, "422", "application/json"):
2396
- response_data = utils.unmarshal_json_response(
2385
+ response_data = unmarshal_json_response(
2397
2386
  errors.HTTPValidationErrorData, http_res
2398
2387
  )
2399
2388
  raise errors.HTTPValidationError(response_data, http_res)
@@ -2505,9 +2494,9 @@ class AaveV3(BaseSDK):
2505
2494
 
2506
2495
  response_data: Any = None
2507
2496
  if utils.match_response(http_res, "200", "application/json"):
2508
- return utils.unmarshal_json_response(models.TxResponse, http_res)
2497
+ return unmarshal_json_response(models.TxResponse, http_res)
2509
2498
  if utils.match_response(http_res, "422", "application/json"):
2510
- response_data = utils.unmarshal_json_response(
2499
+ response_data = unmarshal_json_response(
2511
2500
  errors.HTTPValidationErrorData, http_res
2512
2501
  )
2513
2502
  raise errors.HTTPValidationError(response_data, http_res)
@@ -2617,9 +2606,9 @@ class AaveV3(BaseSDK):
2617
2606
 
2618
2607
  response_data: Any = None
2619
2608
  if utils.match_response(http_res, "200", "application/json"):
2620
- return utils.unmarshal_json_response(models.TxResponse, http_res)
2609
+ return unmarshal_json_response(models.TxResponse, http_res)
2621
2610
  if utils.match_response(http_res, "422", "application/json"):
2622
- response_data = utils.unmarshal_json_response(
2611
+ response_data = unmarshal_json_response(
2623
2612
  errors.HTTPValidationErrorData, http_res
2624
2613
  )
2625
2614
  raise errors.HTTPValidationError(response_data, http_res)
@@ -2729,9 +2718,9 @@ class AaveV3(BaseSDK):
2729
2718
 
2730
2719
  response_data: Any = None
2731
2720
  if utils.match_response(http_res, "200", "application/json"):
2732
- return utils.unmarshal_json_response(models.TxResponse, http_res)
2721
+ return unmarshal_json_response(models.TxResponse, http_res)
2733
2722
  if utils.match_response(http_res, "422", "application/json"):
2734
- response_data = utils.unmarshal_json_response(
2723
+ response_data = unmarshal_json_response(
2735
2724
  errors.HTTPValidationErrorData, http_res
2736
2725
  )
2737
2726
  raise errors.HTTPValidationError(response_data, http_res)
@@ -4,6 +4,7 @@ from .basesdk import BaseSDK
4
4
  from compass_api_sdk import errors, models, utils
5
5
  from compass_api_sdk._hooks import HookContext
6
6
  from compass_api_sdk.types import OptionalNullable, UNSET
7
+ from compass_api_sdk.utils.unmarshal_json_response import unmarshal_json_response
7
8
  from typing import Any, Mapping, Optional, Union
8
9
 
9
10
 
@@ -91,11 +92,11 @@ class AerodromeSlipstream(BaseSDK):
91
92
 
92
93
  response_data: Any = None
93
94
  if utils.match_response(http_res, "200", "application/json"):
94
- return utils.unmarshal_json_response(
95
+ return unmarshal_json_response(
95
96
  models.AerodromeLPPositionsResponse, http_res
96
97
  )
97
98
  if utils.match_response(http_res, "422", "application/json"):
98
- response_data = utils.unmarshal_json_response(
99
+ response_data = unmarshal_json_response(
99
100
  errors.HTTPValidationErrorData, http_res
100
101
  )
101
102
  raise errors.HTTPValidationError(response_data, http_res)
@@ -191,11 +192,11 @@ class AerodromeSlipstream(BaseSDK):
191
192
 
192
193
  response_data: Any = None
193
194
  if utils.match_response(http_res, "200", "application/json"):
194
- return utils.unmarshal_json_response(
195
+ return unmarshal_json_response(
195
196
  models.AerodromeLPPositionsResponse, http_res
196
197
  )
197
198
  if utils.match_response(http_res, "422", "application/json"):
198
- response_data = utils.unmarshal_json_response(
199
+ response_data = unmarshal_json_response(
199
200
  errors.HTTPValidationErrorData, http_res
200
201
  )
201
202
  raise errors.HTTPValidationError(response_data, http_res)
@@ -294,11 +295,11 @@ class AerodromeSlipstream(BaseSDK):
294
295
 
295
296
  response_data: Any = None
296
297
  if utils.match_response(http_res, "200", "application/json"):
297
- return utils.unmarshal_json_response(
298
+ return unmarshal_json_response(
298
299
  models.AerodromeSlipstreamPoolPriceResponse, http_res
299
300
  )
300
301
  if utils.match_response(http_res, "422", "application/json"):
301
- response_data = utils.unmarshal_json_response(
302
+ response_data = unmarshal_json_response(
302
303
  errors.HTTPValidationErrorData, http_res
303
304
  )
304
305
  raise errors.HTTPValidationError(response_data, http_res)
@@ -397,11 +398,11 @@ class AerodromeSlipstream(BaseSDK):
397
398
 
398
399
  response_data: Any = None
399
400
  if utils.match_response(http_res, "200", "application/json"):
400
- return utils.unmarshal_json_response(
401
+ return unmarshal_json_response(
401
402
  models.AerodromeSlipstreamPoolPriceResponse, http_res
402
403
  )
403
404
  if utils.match_response(http_res, "422", "application/json"):
404
- response_data = utils.unmarshal_json_response(
405
+ response_data = unmarshal_json_response(
405
406
  errors.HTTPValidationErrorData, http_res
406
407
  )
407
408
  raise errors.HTTPValidationError(response_data, http_res)
@@ -527,9 +528,9 @@ class AerodromeSlipstream(BaseSDK):
527
528
 
528
529
  response_data: Any = None
529
530
  if utils.match_response(http_res, "200", "application/json"):
530
- return utils.unmarshal_json_response(models.TxResponse, http_res)
531
+ return unmarshal_json_response(models.TxResponse, http_res)
531
532
  if utils.match_response(http_res, "422", "application/json"):
532
- response_data = utils.unmarshal_json_response(
533
+ response_data = unmarshal_json_response(
533
534
  errors.HTTPValidationErrorData, http_res
534
535
  )
535
536
  raise errors.HTTPValidationError(response_data, http_res)
@@ -655,9 +656,9 @@ class AerodromeSlipstream(BaseSDK):
655
656
 
656
657
  response_data: Any = None
657
658
  if utils.match_response(http_res, "200", "application/json"):
658
- return utils.unmarshal_json_response(models.TxResponse, http_res)
659
+ return unmarshal_json_response(models.TxResponse, http_res)
659
660
  if utils.match_response(http_res, "422", "application/json"):
660
- response_data = utils.unmarshal_json_response(
661
+ response_data = unmarshal_json_response(
661
662
  errors.HTTPValidationErrorData, http_res
662
663
  )
663
664
  raise errors.HTTPValidationError(response_data, http_res)
@@ -782,9 +783,9 @@ class AerodromeSlipstream(BaseSDK):
782
783
 
783
784
  response_data: Any = None
784
785
  if utils.match_response(http_res, "200", "application/json"):
785
- return utils.unmarshal_json_response(models.TxResponse, http_res)
786
+ return unmarshal_json_response(models.TxResponse, http_res)
786
787
  if utils.match_response(http_res, "422", "application/json"):
787
- response_data = utils.unmarshal_json_response(
788
+ response_data = unmarshal_json_response(
788
789
  errors.HTTPValidationErrorData, http_res
789
790
  )
790
791
  raise errors.HTTPValidationError(response_data, http_res)
@@ -909,9 +910,9 @@ class AerodromeSlipstream(BaseSDK):
909
910
 
910
911
  response_data: Any = None
911
912
  if utils.match_response(http_res, "200", "application/json"):
912
- return utils.unmarshal_json_response(models.TxResponse, http_res)
913
+ return unmarshal_json_response(models.TxResponse, http_res)
913
914
  if utils.match_response(http_res, "422", "application/json"):
914
- response_data = utils.unmarshal_json_response(
915
+ response_data = unmarshal_json_response(
915
916
  errors.HTTPValidationErrorData, http_res
916
917
  )
917
918
  raise errors.HTTPValidationError(response_data, http_res)
@@ -1056,9 +1057,9 @@ class AerodromeSlipstream(BaseSDK):
1056
1057
 
1057
1058
  response_data: Any = None
1058
1059
  if utils.match_response(http_res, "200", "application/json"):
1059
- return utils.unmarshal_json_response(models.TxResponse, http_res)
1060
+ return unmarshal_json_response(models.TxResponse, http_res)
1060
1061
  if utils.match_response(http_res, "422", "application/json"):
1061
- response_data = utils.unmarshal_json_response(
1062
+ response_data = unmarshal_json_response(
1062
1063
  errors.HTTPValidationErrorData, http_res
1063
1064
  )
1064
1065
  raise errors.HTTPValidationError(response_data, http_res)
@@ -1203,9 +1204,9 @@ class AerodromeSlipstream(BaseSDK):
1203
1204
 
1204
1205
  response_data: Any = None
1205
1206
  if utils.match_response(http_res, "200", "application/json"):
1206
- return utils.unmarshal_json_response(models.TxResponse, http_res)
1207
+ return unmarshal_json_response(models.TxResponse, http_res)
1207
1208
  if utils.match_response(http_res, "422", "application/json"):
1208
- response_data = utils.unmarshal_json_response(
1209
+ response_data = unmarshal_json_response(
1209
1210
  errors.HTTPValidationErrorData, http_res
1210
1211
  )
1211
1212
  raise errors.HTTPValidationError(response_data, http_res)
@@ -1337,9 +1338,9 @@ class AerodromeSlipstream(BaseSDK):
1337
1338
 
1338
1339
  response_data: Any = None
1339
1340
  if utils.match_response(http_res, "200", "application/json"):
1340
- return utils.unmarshal_json_response(models.TxResponse, http_res)
1341
+ return unmarshal_json_response(models.TxResponse, http_res)
1341
1342
  if utils.match_response(http_res, "422", "application/json"):
1342
- response_data = utils.unmarshal_json_response(
1343
+ response_data = unmarshal_json_response(
1343
1344
  errors.HTTPValidationErrorData, http_res
1344
1345
  )
1345
1346
  raise errors.HTTPValidationError(response_data, http_res)
@@ -1471,9 +1472,9 @@ class AerodromeSlipstream(BaseSDK):
1471
1472
 
1472
1473
  response_data: Any = None
1473
1474
  if utils.match_response(http_res, "200", "application/json"):
1474
- return utils.unmarshal_json_response(models.TxResponse, http_res)
1475
+ return unmarshal_json_response(models.TxResponse, http_res)
1475
1476
  if utils.match_response(http_res, "422", "application/json"):
1476
- response_data = utils.unmarshal_json_response(
1477
+ response_data = unmarshal_json_response(
1477
1478
  errors.HTTPValidationErrorData, http_res
1478
1479
  )
1479
1480
  raise errors.HTTPValidationError(response_data, http_res)
@@ -1587,9 +1588,9 @@ class AerodromeSlipstream(BaseSDK):
1587
1588
 
1588
1589
  response_data: Any = None
1589
1590
  if utils.match_response(http_res, "200", "application/json"):
1590
- return utils.unmarshal_json_response(models.TxResponse, http_res)
1591
+ return unmarshal_json_response(models.TxResponse, http_res)
1591
1592
  if utils.match_response(http_res, "422", "application/json"):
1592
- response_data = utils.unmarshal_json_response(
1593
+ response_data = unmarshal_json_response(
1593
1594
  errors.HTTPValidationErrorData, http_res
1594
1595
  )
1595
1596
  raise errors.HTTPValidationError(response_data, http_res)
@@ -1703,9 +1704,9 @@ class AerodromeSlipstream(BaseSDK):
1703
1704
 
1704
1705
  response_data: Any = None
1705
1706
  if utils.match_response(http_res, "200", "application/json"):
1706
- return utils.unmarshal_json_response(models.TxResponse, http_res)
1707
+ return unmarshal_json_response(models.TxResponse, http_res)
1707
1708
  if utils.match_response(http_res, "422", "application/json"):
1708
- response_data = utils.unmarshal_json_response(
1709
+ response_data = unmarshal_json_response(
1709
1710
  errors.HTTPValidationErrorData, http_res
1710
1711
  )
1711
1712
  raise errors.HTTPValidationError(response_data, http_res)
@@ -4,6 +4,7 @@ from .basesdk import BaseSDK
4
4
  from compass_api_sdk import errors, models, utils
5
5
  from compass_api_sdk._hooks import HookContext
6
6
  from compass_api_sdk.types import OptionalNullable, UNSET
7
+ from compass_api_sdk.utils.unmarshal_json_response import unmarshal_json_response
7
8
  from typing import Any, Mapping, Optional, Union
8
9
 
9
10
 
@@ -91,9 +92,9 @@ class ERC4626Vaults(BaseSDK):
91
92
 
92
93
  response_data: Any = None
93
94
  if utils.match_response(http_res, "200", "application/json"):
94
- return utils.unmarshal_json_response(models.VaultGetVaultResponse, http_res)
95
+ return unmarshal_json_response(models.VaultGetVaultResponse, http_res)
95
96
  if utils.match_response(http_res, "422", "application/json"):
96
- response_data = utils.unmarshal_json_response(
97
+ response_data = unmarshal_json_response(
97
98
  errors.HTTPValidationErrorData, http_res
98
99
  )
99
100
  raise errors.HTTPValidationError(response_data, http_res)
@@ -189,9 +190,9 @@ class ERC4626Vaults(BaseSDK):
189
190
 
190
191
  response_data: Any = None
191
192
  if utils.match_response(http_res, "200", "application/json"):
192
- return utils.unmarshal_json_response(models.VaultGetVaultResponse, http_res)
193
+ return unmarshal_json_response(models.VaultGetVaultResponse, http_res)
193
194
  if utils.match_response(http_res, "422", "application/json"):
194
- response_data = utils.unmarshal_json_response(
195
+ response_data = unmarshal_json_response(
195
196
  errors.HTTPValidationErrorData, http_res
196
197
  )
197
198
  raise errors.HTTPValidationError(response_data, http_res)
@@ -295,9 +296,9 @@ class ERC4626Vaults(BaseSDK):
295
296
 
296
297
  response_data: Any = None
297
298
  if utils.match_response(http_res, "200", "application/json"):
298
- return utils.unmarshal_json_response(models.TxResponse, http_res)
299
+ return unmarshal_json_response(models.TxResponse, http_res)
299
300
  if utils.match_response(http_res, "422", "application/json"):
300
- response_data = utils.unmarshal_json_response(
301
+ response_data = unmarshal_json_response(
301
302
  errors.HTTPValidationErrorData, http_res
302
303
  )
303
304
  raise errors.HTTPValidationError(response_data, http_res)
@@ -401,9 +402,9 @@ class ERC4626Vaults(BaseSDK):
401
402
 
402
403
  response_data: Any = None
403
404
  if utils.match_response(http_res, "200", "application/json"):
404
- return utils.unmarshal_json_response(models.TxResponse, http_res)
405
+ return unmarshal_json_response(models.TxResponse, http_res)
405
406
  if utils.match_response(http_res, "422", "application/json"):
406
- response_data = utils.unmarshal_json_response(
407
+ response_data = unmarshal_json_response(
407
408
  errors.HTTPValidationErrorData, http_res
408
409
  )
409
410
  raise errors.HTTPValidationError(response_data, http_res)
@@ -507,9 +508,9 @@ class ERC4626Vaults(BaseSDK):
507
508
 
508
509
  response_data: Any = None
509
510
  if utils.match_response(http_res, "200", "application/json"):
510
- return utils.unmarshal_json_response(models.TxResponse, http_res)
511
+ return unmarshal_json_response(models.TxResponse, http_res)
511
512
  if utils.match_response(http_res, "422", "application/json"):
512
- response_data = utils.unmarshal_json_response(
513
+ response_data = unmarshal_json_response(
513
514
  errors.HTTPValidationErrorData, http_res
514
515
  )
515
516
  raise errors.HTTPValidationError(response_data, http_res)
@@ -613,9 +614,9 @@ class ERC4626Vaults(BaseSDK):
613
614
 
614
615
  response_data: Any = None
615
616
  if utils.match_response(http_res, "200", "application/json"):
616
- return utils.unmarshal_json_response(models.TxResponse, http_res)
617
+ return unmarshal_json_response(models.TxResponse, http_res)
617
618
  if utils.match_response(http_res, "422", "application/json"):
618
- response_data = utils.unmarshal_json_response(
619
+ response_data = unmarshal_json_response(
619
620
  errors.HTTPValidationErrorData, http_res
620
621
  )
621
622
  raise errors.HTTPValidationError(response_data, http_res)