circle-developer-controlled-wallets 6.1.0__py3-none-any.whl → 6.2.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 circle-developer-controlled-wallets might be problematic. Click here for more details.

@@ -10,7 +10,7 @@
10
10
  """ # noqa: E501
11
11
 
12
12
 
13
- __version__ = "6.1.0"
13
+ __version__ = "6.2.0"
14
14
 
15
15
  # import apis into sdk package
16
16
  from circle.web3.developer_controlled_wallets.api.signing_api import SigningApi
@@ -16,7 +16,9 @@ import functools
16
16
  from pydantic import validate_arguments, ValidationError
17
17
  from typing_extensions import Annotated
18
18
 
19
- from pydantic import Field
19
+ from pydantic import Field, StrictStr
20
+
21
+ from typing import Optional
20
22
 
21
23
  from circle.web3.developer_controlled_wallets.models.sign_delegate_action_request import SignDelegateActionRequest
22
24
  from circle.web3.developer_controlled_wallets.models.sign_delegate_action_response import SignDelegateActionResponse
@@ -64,18 +66,20 @@ class SigningApi(object):
64
66
 
65
67
  @auto_fill
66
68
  @validate_arguments
67
- def sign_delegate_action(self, sign_delegate_action_request : Annotated[SignDelegateActionRequest, Field(..., description="Schema for the request payload to sign a delegate action.")], **kwargs) -> SignDelegateActionResponse: # noqa: E501
69
+ def sign_delegate_action(self, sign_delegate_action_request : Annotated[SignDelegateActionRequest, Field(..., description="Schema for the request payload to sign a delegate action.")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> SignDelegateActionResponse: # noqa: E501
68
70
  """Sign delegate action # noqa: E501
69
71
 
70
72
  Sign a delegate action from a specific developer-controlled wallet. NOTE: This endpoint is only available for NEAR and NEAR-TESTNET. # noqa: E501
71
73
  This method makes a synchronous HTTP request by default. To make an
72
74
  asynchronous HTTP request, please pass async_req=True
73
75
 
74
- >>> thread = api.sign_delegate_action(sign_delegate_action_request, async_req=True)
76
+ >>> thread = api.sign_delegate_action(sign_delegate_action_request, x_request_id, async_req=True)
75
77
  >>> result = thread.get()
76
78
 
77
79
  :param sign_delegate_action_request: Schema for the request payload to sign a delegate action. (required)
78
80
  :type sign_delegate_action_request: SignDelegateActionRequest
81
+ :param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
82
+ :type x_request_id: str
79
83
  :param async_req: Whether to execute the request asynchronously.
80
84
  :type async_req: bool, optional
81
85
  :param _request_timeout: timeout setting for this request. If one
@@ -90,22 +94,24 @@ class SigningApi(object):
90
94
  kwargs['_return_http_data_only'] = True
91
95
  if '_preload_content' in kwargs:
92
96
  raise ValueError("Error! Please call the sign_delegate_action_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
93
- return self.sign_delegate_action_with_http_info(sign_delegate_action_request, **kwargs) # noqa: E501
97
+ return self.sign_delegate_action_with_http_info(sign_delegate_action_request, x_request_id, **kwargs) # noqa: E501
94
98
 
95
99
  @auto_fill
96
100
  @validate_arguments
97
- def sign_delegate_action_with_http_info(self, sign_delegate_action_request : Annotated[SignDelegateActionRequest, Field(..., description="Schema for the request payload to sign a delegate action.")], **kwargs) -> ApiResponse: # noqa: E501
101
+ def sign_delegate_action_with_http_info(self, sign_delegate_action_request : Annotated[SignDelegateActionRequest, Field(..., description="Schema for the request payload to sign a delegate action.")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> ApiResponse: # noqa: E501
98
102
  """Sign delegate action # noqa: E501
99
103
 
100
104
  Sign a delegate action from a specific developer-controlled wallet. NOTE: This endpoint is only available for NEAR and NEAR-TESTNET. # noqa: E501
101
105
  This method makes a synchronous HTTP request by default. To make an
102
106
  asynchronous HTTP request, please pass async_req=True
103
107
 
104
- >>> thread = api.sign_delegate_action_with_http_info(sign_delegate_action_request, async_req=True)
108
+ >>> thread = api.sign_delegate_action_with_http_info(sign_delegate_action_request, x_request_id, async_req=True)
105
109
  >>> result = thread.get()
106
110
 
107
111
  :param sign_delegate_action_request: Schema for the request payload to sign a delegate action. (required)
108
112
  :type sign_delegate_action_request: SignDelegateActionRequest
113
+ :param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
114
+ :type x_request_id: str
109
115
  :param async_req: Whether to execute the request asynchronously.
110
116
  :type async_req: bool, optional
111
117
  :param _preload_content: if False, the ApiResponse.data will
@@ -134,7 +140,8 @@ class SigningApi(object):
134
140
  _params = locals()
135
141
 
136
142
  _all_params = [
137
- 'sign_delegate_action_request'
143
+ 'sign_delegate_action_request',
144
+ 'x_request_id'
138
145
  ]
139
146
  _all_params.extend(
140
147
  [
@@ -167,6 +174,9 @@ class SigningApi(object):
167
174
  _query_params = []
168
175
  # process the header parameters
169
176
  _header_params = dict(_params.get('_headers', {}))
177
+ if _params['x_request_id']:
178
+ _header_params['X-Request-Id'] = _params['x_request_id']
179
+
170
180
  # process the form parameters
171
181
  _form_params = []
172
182
  _files = {}
@@ -215,18 +225,20 @@ class SigningApi(object):
215
225
 
216
226
  @auto_fill
217
227
  @validate_arguments
218
- def sign_message(self, sign_message_request : Annotated[SignMessageRequest, Field(..., description="Schema for the request payload to sign a message.")], **kwargs) -> SignatureResponse: # noqa: E501
228
+ def sign_message(self, sign_message_request : Annotated[SignMessageRequest, Field(..., description="Schema for the request payload to sign a message.")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> SignatureResponse: # noqa: E501
219
229
  """Sign message # noqa: E501
220
230
 
221
231
  Sign a message from a specified developer-controlled wallet. This endpoint supports message signing for both Ethereum-based blockchains (using EIP-191) and Solana (using Ed25519 signatures). Note that Smart Contract Accounts (SCA) are specific to Ethereum and EVM-compatible chains. The difference between Ethereum's EOA and SCA can be found in the [account types guide](https://developers.circle.com/w3s/docs/programmable-wallets-account-types). You can also check the list of Ethereum Dapps that support SCA: https://eip1271.io/. # noqa: E501
222
232
  This method makes a synchronous HTTP request by default. To make an
223
233
  asynchronous HTTP request, please pass async_req=True
224
234
 
225
- >>> thread = api.sign_message(sign_message_request, async_req=True)
235
+ >>> thread = api.sign_message(sign_message_request, x_request_id, async_req=True)
226
236
  >>> result = thread.get()
227
237
 
228
238
  :param sign_message_request: Schema for the request payload to sign a message. (required)
229
239
  :type sign_message_request: SignMessageRequest
240
+ :param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
241
+ :type x_request_id: str
230
242
  :param async_req: Whether to execute the request asynchronously.
231
243
  :type async_req: bool, optional
232
244
  :param _request_timeout: timeout setting for this request. If one
@@ -241,22 +253,24 @@ class SigningApi(object):
241
253
  kwargs['_return_http_data_only'] = True
242
254
  if '_preload_content' in kwargs:
243
255
  raise ValueError("Error! Please call the sign_message_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
244
- return self.sign_message_with_http_info(sign_message_request, **kwargs) # noqa: E501
256
+ return self.sign_message_with_http_info(sign_message_request, x_request_id, **kwargs) # noqa: E501
245
257
 
246
258
  @auto_fill
247
259
  @validate_arguments
248
- def sign_message_with_http_info(self, sign_message_request : Annotated[SignMessageRequest, Field(..., description="Schema for the request payload to sign a message.")], **kwargs) -> ApiResponse: # noqa: E501
260
+ def sign_message_with_http_info(self, sign_message_request : Annotated[SignMessageRequest, Field(..., description="Schema for the request payload to sign a message.")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> ApiResponse: # noqa: E501
249
261
  """Sign message # noqa: E501
250
262
 
251
263
  Sign a message from a specified developer-controlled wallet. This endpoint supports message signing for both Ethereum-based blockchains (using EIP-191) and Solana (using Ed25519 signatures). Note that Smart Contract Accounts (SCA) are specific to Ethereum and EVM-compatible chains. The difference between Ethereum's EOA and SCA can be found in the [account types guide](https://developers.circle.com/w3s/docs/programmable-wallets-account-types). You can also check the list of Ethereum Dapps that support SCA: https://eip1271.io/. # noqa: E501
252
264
  This method makes a synchronous HTTP request by default. To make an
253
265
  asynchronous HTTP request, please pass async_req=True
254
266
 
255
- >>> thread = api.sign_message_with_http_info(sign_message_request, async_req=True)
267
+ >>> thread = api.sign_message_with_http_info(sign_message_request, x_request_id, async_req=True)
256
268
  >>> result = thread.get()
257
269
 
258
270
  :param sign_message_request: Schema for the request payload to sign a message. (required)
259
271
  :type sign_message_request: SignMessageRequest
272
+ :param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
273
+ :type x_request_id: str
260
274
  :param async_req: Whether to execute the request asynchronously.
261
275
  :type async_req: bool, optional
262
276
  :param _preload_content: if False, the ApiResponse.data will
@@ -285,7 +299,8 @@ class SigningApi(object):
285
299
  _params = locals()
286
300
 
287
301
  _all_params = [
288
- 'sign_message_request'
302
+ 'sign_message_request',
303
+ 'x_request_id'
289
304
  ]
290
305
  _all_params.extend(
291
306
  [
@@ -318,6 +333,9 @@ class SigningApi(object):
318
333
  _query_params = []
319
334
  # process the header parameters
320
335
  _header_params = dict(_params.get('_headers', {}))
336
+ if _params['x_request_id']:
337
+ _header_params['X-Request-Id'] = _params['x_request_id']
338
+
321
339
  # process the form parameters
322
340
  _form_params = []
323
341
  _files = {}
@@ -366,18 +384,20 @@ class SigningApi(object):
366
384
 
367
385
  @auto_fill
368
386
  @validate_arguments
369
- def sign_transaction(self, sign_transaction_request : Annotated[SignTransactionRequest, Field(..., description="Schema for the request payload to sign a transaction.")], **kwargs) -> SignTransactionResponse: # noqa: E501
387
+ def sign_transaction(self, sign_transaction_request : Annotated[SignTransactionRequest, Field(..., description="Schema for the request payload to sign a transaction.")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> SignTransactionResponse: # noqa: E501
370
388
  """Sign transaction # noqa: E501
371
389
 
372
390
  Sign a transaction from a specific developer-controlled wallet. NOTE: This endpoint is only available for the following chains: `SOL`, `SOL-DEVNET`, `NEAR`, `NEAR-TESTNET`, `EVM`, `EVM-TESTNET`. Each chain defines its own standard, please refer to [Signing APIs doc](https://learn.circle.com/w3s/signing-apis). # noqa: E501
373
391
  This method makes a synchronous HTTP request by default. To make an
374
392
  asynchronous HTTP request, please pass async_req=True
375
393
 
376
- >>> thread = api.sign_transaction(sign_transaction_request, async_req=True)
394
+ >>> thread = api.sign_transaction(sign_transaction_request, x_request_id, async_req=True)
377
395
  >>> result = thread.get()
378
396
 
379
397
  :param sign_transaction_request: Schema for the request payload to sign a transaction. (required)
380
398
  :type sign_transaction_request: SignTransactionRequest
399
+ :param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
400
+ :type x_request_id: str
381
401
  :param async_req: Whether to execute the request asynchronously.
382
402
  :type async_req: bool, optional
383
403
  :param _request_timeout: timeout setting for this request. If one
@@ -392,22 +412,24 @@ class SigningApi(object):
392
412
  kwargs['_return_http_data_only'] = True
393
413
  if '_preload_content' in kwargs:
394
414
  raise ValueError("Error! Please call the sign_transaction_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
395
- return self.sign_transaction_with_http_info(sign_transaction_request, **kwargs) # noqa: E501
415
+ return self.sign_transaction_with_http_info(sign_transaction_request, x_request_id, **kwargs) # noqa: E501
396
416
 
397
417
  @auto_fill
398
418
  @validate_arguments
399
- def sign_transaction_with_http_info(self, sign_transaction_request : Annotated[SignTransactionRequest, Field(..., description="Schema for the request payload to sign a transaction.")], **kwargs) -> ApiResponse: # noqa: E501
419
+ def sign_transaction_with_http_info(self, sign_transaction_request : Annotated[SignTransactionRequest, Field(..., description="Schema for the request payload to sign a transaction.")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> ApiResponse: # noqa: E501
400
420
  """Sign transaction # noqa: E501
401
421
 
402
422
  Sign a transaction from a specific developer-controlled wallet. NOTE: This endpoint is only available for the following chains: `SOL`, `SOL-DEVNET`, `NEAR`, `NEAR-TESTNET`, `EVM`, `EVM-TESTNET`. Each chain defines its own standard, please refer to [Signing APIs doc](https://learn.circle.com/w3s/signing-apis). # noqa: E501
403
423
  This method makes a synchronous HTTP request by default. To make an
404
424
  asynchronous HTTP request, please pass async_req=True
405
425
 
406
- >>> thread = api.sign_transaction_with_http_info(sign_transaction_request, async_req=True)
426
+ >>> thread = api.sign_transaction_with_http_info(sign_transaction_request, x_request_id, async_req=True)
407
427
  >>> result = thread.get()
408
428
 
409
429
  :param sign_transaction_request: Schema for the request payload to sign a transaction. (required)
410
430
  :type sign_transaction_request: SignTransactionRequest
431
+ :param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
432
+ :type x_request_id: str
411
433
  :param async_req: Whether to execute the request asynchronously.
412
434
  :type async_req: bool, optional
413
435
  :param _preload_content: if False, the ApiResponse.data will
@@ -436,7 +458,8 @@ class SigningApi(object):
436
458
  _params = locals()
437
459
 
438
460
  _all_params = [
439
- 'sign_transaction_request'
461
+ 'sign_transaction_request',
462
+ 'x_request_id'
440
463
  ]
441
464
  _all_params.extend(
442
465
  [
@@ -469,6 +492,9 @@ class SigningApi(object):
469
492
  _query_params = []
470
493
  # process the header parameters
471
494
  _header_params = dict(_params.get('_headers', {}))
495
+ if _params['x_request_id']:
496
+ _header_params['X-Request-Id'] = _params['x_request_id']
497
+
472
498
  # process the form parameters
473
499
  _form_params = []
474
500
  _files = {}
@@ -517,18 +543,20 @@ class SigningApi(object):
517
543
 
518
544
  @auto_fill
519
545
  @validate_arguments
520
- def sign_typed_data(self, sign_typed_data_request : Annotated[SignTypedDataRequest, Field(..., description="Schema for the request payload to sign typed data.")], **kwargs) -> SignatureResponse: # noqa: E501
546
+ def sign_typed_data(self, sign_typed_data_request : Annotated[SignTypedDataRequest, Field(..., description="Schema for the request payload to sign typed data.")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> SignatureResponse: # noqa: E501
521
547
  """Sign typed data # noqa: E501
522
548
 
523
549
  Sign the EIP-712 typed structured data from a specified developer-controlled wallet. This endpoint only supports Ethereum and EVM-compatible blockchains. Please note that not all Dapps currently support Smart Contract Accounts (SCA); the difference between Ethereum's EOA and SCA can be found in the [account types guide](https://developers.circle.com/w3s/docs/programmable-wallets-account-types). You can also check the list of Ethereum Dapps that support SCA: https://eip1271.io/. # noqa: E501
524
550
  This method makes a synchronous HTTP request by default. To make an
525
551
  asynchronous HTTP request, please pass async_req=True
526
552
 
527
- >>> thread = api.sign_typed_data(sign_typed_data_request, async_req=True)
553
+ >>> thread = api.sign_typed_data(sign_typed_data_request, x_request_id, async_req=True)
528
554
  >>> result = thread.get()
529
555
 
530
556
  :param sign_typed_data_request: Schema for the request payload to sign typed data. (required)
531
557
  :type sign_typed_data_request: SignTypedDataRequest
558
+ :param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
559
+ :type x_request_id: str
532
560
  :param async_req: Whether to execute the request asynchronously.
533
561
  :type async_req: bool, optional
534
562
  :param _request_timeout: timeout setting for this request. If one
@@ -543,22 +571,24 @@ class SigningApi(object):
543
571
  kwargs['_return_http_data_only'] = True
544
572
  if '_preload_content' in kwargs:
545
573
  raise ValueError("Error! Please call the sign_typed_data_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
546
- return self.sign_typed_data_with_http_info(sign_typed_data_request, **kwargs) # noqa: E501
574
+ return self.sign_typed_data_with_http_info(sign_typed_data_request, x_request_id, **kwargs) # noqa: E501
547
575
 
548
576
  @auto_fill
549
577
  @validate_arguments
550
- def sign_typed_data_with_http_info(self, sign_typed_data_request : Annotated[SignTypedDataRequest, Field(..., description="Schema for the request payload to sign typed data.")], **kwargs) -> ApiResponse: # noqa: E501
578
+ def sign_typed_data_with_http_info(self, sign_typed_data_request : Annotated[SignTypedDataRequest, Field(..., description="Schema for the request payload to sign typed data.")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> ApiResponse: # noqa: E501
551
579
  """Sign typed data # noqa: E501
552
580
 
553
581
  Sign the EIP-712 typed structured data from a specified developer-controlled wallet. This endpoint only supports Ethereum and EVM-compatible blockchains. Please note that not all Dapps currently support Smart Contract Accounts (SCA); the difference between Ethereum's EOA and SCA can be found in the [account types guide](https://developers.circle.com/w3s/docs/programmable-wallets-account-types). You can also check the list of Ethereum Dapps that support SCA: https://eip1271.io/. # noqa: E501
554
582
  This method makes a synchronous HTTP request by default. To make an
555
583
  asynchronous HTTP request, please pass async_req=True
556
584
 
557
- >>> thread = api.sign_typed_data_with_http_info(sign_typed_data_request, async_req=True)
585
+ >>> thread = api.sign_typed_data_with_http_info(sign_typed_data_request, x_request_id, async_req=True)
558
586
  >>> result = thread.get()
559
587
 
560
588
  :param sign_typed_data_request: Schema for the request payload to sign typed data. (required)
561
589
  :type sign_typed_data_request: SignTypedDataRequest
590
+ :param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
591
+ :type x_request_id: str
562
592
  :param async_req: Whether to execute the request asynchronously.
563
593
  :type async_req: bool, optional
564
594
  :param _preload_content: if False, the ApiResponse.data will
@@ -587,7 +617,8 @@ class SigningApi(object):
587
617
  _params = locals()
588
618
 
589
619
  _all_params = [
590
- 'sign_typed_data_request'
620
+ 'sign_typed_data_request',
621
+ 'x_request_id'
591
622
  ]
592
623
  _all_params.extend(
593
624
  [
@@ -620,6 +651,9 @@ class SigningApi(object):
620
651
  _query_params = []
621
652
  # process the header parameters
622
653
  _header_params = dict(_params.get('_headers', {}))
654
+ if _params['x_request_id']:
655
+ _header_params['X-Request-Id'] = _params['x_request_id']
656
+
623
657
  # process the form parameters
624
658
  _form_params = []
625
659
  _files = {}