@imtbl/sdk 0.4.0-alpha.3 → 0.4.1-alpha

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.
@@ -1,6 +1,6 @@
1
1
  import { OrderbookOverrides } from 'config/config';
2
- import { ListingResult, ListListingsResult } from 'openapi/sdk';
3
- import { ListListingsParams, PrepareListingParams, PrepareListingResponse, CreateListingParams, FulfillOrderResponse, CancelOrderResponse } from 'types';
2
+ import { ListingResult, ListListingsResult, OrdersService } from 'openapi/sdk';
3
+ import { ListListingsParams as ListListingsParams$1, PrepareListingParams as PrepareListingParams$1, PrepareListingResponse as PrepareListingResponse$1, CreateListingParams as CreateListingParams$1, FulfillOrderResponse as FulfillOrderResponse$1, CancelOrderResponse as CancelOrderResponse$1 } from 'types';
4
4
 
5
5
  declare enum Environment {
6
6
  PRODUCTION = "production",
@@ -41,7 +41,7 @@ declare class Orderbook {
41
41
  * @param {ListOrderParams} listOrderParams - Filtering, ordering and page parameters.
42
42
  * @return {Orders} The paged orders.
43
43
  */
44
- listListings(listOrderParams: ListListingsParams): Promise<ListListingsResult>;
44
+ listListings(listOrderParams: ListListingsParams$1): Promise<ListListingsResult>;
45
45
  /**
46
46
  * Get required transactions and messages for signing prior to creating a listing
47
47
  * through the createListing method
@@ -50,13 +50,13 @@ declare class Orderbook {
50
50
  * the unsigned approval transaction, the typed order message for signing and
51
51
  * the order components that can be submitted to `createListing` with a signature.
52
52
  */
53
- prepareListing({ makerAddress, sell, buy, orderExpiry, }: PrepareListingParams): Promise<PrepareListingResponse>;
53
+ prepareListing({ makerAddress, sell, buy, orderExpiry, }: PrepareListingParams$1): Promise<PrepareListingResponse$1>;
54
54
  /**
55
55
  * Create an order
56
56
  * @param {CreateListingParams} createListingParams - create an order with the given params.
57
57
  * @return {ListingResult} The result of the order created in the Immutable services.
58
58
  */
59
- createListing(createListingParams: CreateListingParams): Promise<ListingResult>;
59
+ createListing(createListingParams: CreateListingParams$1): Promise<ListingResult>;
60
60
  /**
61
61
  * Get unsigned transactions that can be submitted to fulfil an open order. If the approval
62
62
  * transaction exists it must be signed and submitted to the chain before the fulfilment
@@ -65,7 +65,7 @@ declare class Orderbook {
65
65
  * @param {string} fulfillerAddress - The address of the account fulfilling the order.
66
66
  * @return {FulfillOrderResponse} Approval and fulfilment transactions.
67
67
  */
68
- fulfillOrder(listingId: string, takerAddress: string): Promise<FulfillOrderResponse>;
68
+ fulfillOrder(listingId: string, takerAddress: string): Promise<FulfillOrderResponse$1>;
69
69
  /**
70
70
  * Get an unsigned cancel order transaction. Orders can only be cancelled by
71
71
  * the account that created them.
@@ -73,9 +73,180 @@ declare class Orderbook {
73
73
  * @param {string} accountAddress - The address of the account cancelling the order.
74
74
  * @return {CancelOrderResponse} The unsigned cancel order transaction
75
75
  */
76
- cancelOrder(listingId: string, accountAddress: string): Promise<CancelOrderResponse>;
76
+ cancelOrder(listingId: string, accountAddress: string): Promise<CancelOrderResponse$1>;
77
+ }
78
+
79
+ declare type Bytes = ArrayLike<number>;
80
+ declare type BytesLike = Bytes | string;
81
+ interface Hexable {
82
+ toHexString(): string;
83
+ }
84
+
85
+ declare type BigNumberish = BigNumber | Bytes | bigint | string | number;
86
+ declare class BigNumber implements Hexable {
87
+ readonly _hex: string;
88
+ readonly _isBigNumber: boolean;
89
+ constructor(constructorGuard: any, hex: string);
90
+ fromTwos(value: number): BigNumber;
91
+ toTwos(value: number): BigNumber;
92
+ abs(): BigNumber;
93
+ add(other: BigNumberish): BigNumber;
94
+ sub(other: BigNumberish): BigNumber;
95
+ div(other: BigNumberish): BigNumber;
96
+ mul(other: BigNumberish): BigNumber;
97
+ mod(other: BigNumberish): BigNumber;
98
+ pow(other: BigNumberish): BigNumber;
99
+ and(other: BigNumberish): BigNumber;
100
+ or(other: BigNumberish): BigNumber;
101
+ xor(other: BigNumberish): BigNumber;
102
+ mask(value: number): BigNumber;
103
+ shl(value: number): BigNumber;
104
+ shr(value: number): BigNumber;
105
+ eq(other: BigNumberish): boolean;
106
+ lt(other: BigNumberish): boolean;
107
+ lte(other: BigNumberish): boolean;
108
+ gt(other: BigNumberish): boolean;
109
+ gte(other: BigNumberish): boolean;
110
+ isNegative(): boolean;
111
+ isZero(): boolean;
112
+ toNumber(): number;
113
+ toBigInt(): bigint;
114
+ toString(): string;
115
+ toHexString(): string;
116
+ toJSON(key?: string): any;
117
+ static from(value: any): BigNumber;
118
+ static isBigNumber(value: any): value is BigNumber;
119
+ }
120
+
121
+ declare type AccessList = Array<{
122
+ address: string;
123
+ storageKeys: Array<string>;
124
+ }>;
125
+
126
+ interface TypedDataDomain {
127
+ name?: string;
128
+ version?: string;
129
+ chainId?: BigNumberish;
130
+ verifyingContract?: string;
131
+ salt?: BytesLike;
132
+ }
133
+ interface TypedDataField {
134
+ name: string;
135
+ type: string;
136
+ }
137
+
138
+ interface PopulatedTransaction {
139
+ to?: string;
140
+ from?: string;
141
+ nonce?: number;
142
+ gasLimit?: BigNumber;
143
+ gasPrice?: BigNumber;
144
+ data?: string;
145
+ value?: BigNumber;
146
+ chainId?: number;
147
+ type?: number;
148
+ accessList?: AccessList;
149
+ maxFeePerGas?: BigNumber;
150
+ maxPriorityFeePerGas?: BigNumber;
151
+ customData?: Record<string, any>;
152
+ ccipReadEnabled?: boolean;
153
+ }
154
+
155
+ declare enum OrderType {
156
+ FULL_OPEN = 0,
157
+ PARTIAL_OPEN = 1,
158
+ FULL_RESTRICTED = 2,
159
+ PARTIAL_RESTRICTED = 3
160
+ }
161
+ declare enum ItemType {
162
+ NATIVE = 0,
163
+ ERC20 = 1,
164
+ ERC721 = 2,
165
+ ERC1155 = 3,
166
+ ERC721_WITH_CRITERIA = 4,
167
+ ERC1155_WITH_CRITERIA = 5
168
+ }
169
+
170
+ type OfferItem = {
171
+ itemType: ItemType;
172
+ token: string;
173
+ identifierOrCriteria: string;
174
+ startAmount: string;
175
+ endAmount: string;
176
+ };
177
+ type ConsiderationItem = {
178
+ itemType: ItemType;
179
+ token: string;
180
+ identifierOrCriteria: string;
181
+ startAmount: string;
182
+ endAmount: string;
183
+ recipient: string;
184
+ };
185
+ type OrderParameters = {
186
+ offerer: string;
187
+ zone: string;
188
+ orderType: OrderType;
189
+ startTime: BigNumberish;
190
+ endTime: BigNumberish;
191
+ zoneHash: string;
192
+ salt: string;
193
+ offer: OfferItem[];
194
+ consideration: ConsiderationItem[];
195
+ totalOriginalConsiderationItems: BigNumberish;
196
+ conduitKey: string;
197
+ };
198
+ type OrderComponents = OrderParameters & {
199
+ counter: BigNumberish;
200
+ };
201
+
202
+ interface ERC721Item {
203
+ type: 'ERC721';
204
+ contractAddress: string;
205
+ tokenId: string;
206
+ }
207
+ interface ERC20Item {
208
+ type: 'ERC20';
209
+ contractAddress: string;
210
+ amount: string;
211
+ }
212
+ interface NativeItem {
213
+ type: 'NATIVE';
214
+ amount: string;
215
+ }
216
+ interface RoyaltyInfo {
217
+ recipient: string;
218
+ amountRequired: string;
219
+ }
220
+ interface PrepareListingParams {
221
+ makerAddress: string;
222
+ sell: ERC721Item;
223
+ buy: ERC20Item | NativeItem;
224
+ orderExpiry?: Date;
225
+ }
226
+ interface PrepareListingResponse {
227
+ unsignedApprovalTransaction?: PopulatedTransaction;
228
+ typedOrderMessageForSigning: {
229
+ domain: TypedDataDomain;
230
+ types: Record<string, TypedDataField[]>;
231
+ value: Record<string, any>;
232
+ };
233
+ orderComponents: OrderComponents;
234
+ orderHash: string;
235
+ }
236
+ interface CreateListingParams {
237
+ orderComponents: OrderComponents;
238
+ orderHash: string;
239
+ orderSignature: string;
240
+ }
241
+ type ListListingsParams = Omit<Parameters<typeof OrdersService.prototype.listListings>[0], 'chainName'>;
242
+ interface FulfillOrderResponse {
243
+ unsignedApprovalTransaction?: PopulatedTransaction;
244
+ unsignedFulfillmentTransaction: PopulatedTransaction;
245
+ }
246
+ interface CancelOrderResponse {
247
+ unsignedCancelOrderTransaction: PopulatedTransaction;
77
248
  }
78
249
 
79
250
  declare const module = "orderbook";
80
251
 
81
- export { Orderbook, module };
252
+ export { CancelOrderResponse, CreateListingParams, ERC20Item, ERC721Item, FulfillOrderResponse, ListListingsParams, NativeItem, Orderbook, PrepareListingParams, PrepareListingResponse, RoyaltyInfo, module };
@@ -856,7 +856,7 @@ interface TokenData {
856
856
  */
857
857
  'quantity': string;
858
858
  /**
859
- * Quantity of this asset with the sum of all fees applied to the asset
859
+ * [DEPRECATED for v3 endpoints] Quantity of this asset with the sum of all fees applied to the asset. Replaced by quantity_with_fees in maker_fees / taker_fees depending on the type of order. Refer https://docs.x.immutable.com/docs/maker-taker-fees/#new-maker-taker-fields-and-the-deprecation-of-quantity_with_fees-in-buy-and-sell.
860
860
  * @type {string}
861
861
  * @memberof TokenData
862
862
  */
@@ -3719,7 +3719,7 @@ interface GetSignableOrderRequestV3 {
3719
3719
  */
3720
3720
  'amount_sell': string;
3721
3721
  /**
3722
- * ExpirationTimestamp in Unix time. Note: will be rounded down to the nearest hour
3722
+ * ExpirationTimestamp in Unix time in hours. Note: will be rounded down to the nearest hour
3723
3723
  * @type {number}
3724
3724
  * @memberof GetSignableOrderRequestV3
3725
3725
  */
@@ -3818,7 +3818,7 @@ interface GetSignableOrderResponse {
3818
3818
  */
3819
3819
  'asset_id_sell': string;
3820
3820
  /**
3821
- * Expiration timestamp for this order
3821
+ * ExpirationTimestamp in Unix time in hours. Note: will be rounded down to the nearest hour
3822
3822
  * @type {number}
3823
3823
  * @memberof GetSignableOrderResponse
3824
3824
  */
@@ -3979,7 +3979,7 @@ interface GetSignableRegistrationResponse {
3979
3979
  */
3980
3980
  interface GetSignableTradeRequest {
3981
3981
  /**
3982
- * ExpirationTimestamp in Unix time. Note: will be rounded down to the nearest hour
3982
+ * ExpirationTimestamp in Unix time in hours. Note: will be rounded down to the nearest hour
3983
3983
  * @type {number}
3984
3984
  * @memberof GetSignableTradeRequest
3985
3985
  */
@@ -4066,7 +4066,7 @@ interface GetSignableTradeResponse {
4066
4066
  */
4067
4067
  'asset_id_sell': string;
4068
4068
  /**
4069
- * Expiration timestamp for this order
4069
+ * ExpirationTimestamp in Unix time in hours. Note: will be rounded down to the nearest hour
4070
4070
  * @type {number}
4071
4071
  * @memberof GetSignableTradeResponse
4072
4072
  */
@@ -5153,7 +5153,7 @@ interface OrderV3 {
5153
5153
  */
5154
5154
  'expiration_timestamp': string | null;
5155
5155
  /**
5156
- * Fee information for the order
5156
+ * [DEPRECATED] Fee information for the order. Replaced by maker_fees / taker_fees depending on the type of order. Refer https://docs.x.immutable.com/docs/maker-taker-fees/#new-maker-taker-fields-and-the-deprecation-of-quantity_with_fees-in-buy-and-sell.
5157
5157
  * @type {Array<OrderFeeInfo>}
5158
5158
  * @memberof OrderV3
5159
5159
  */
@@ -8707,10 +8707,11 @@ interface OrdersApiListOrdersV3Request {
8707
8707
  */
8708
8708
  declare class OrdersApi extends BaseAPI {
8709
8709
  /**
8710
- * Cancel an order. Use https://docs.x.immutable.com/reference#/operations/getSignableCancelOrder to get request body params.
8710
+ * Cancel an order. Use https://docs.x.immutable.com/reference#/operations/getSignableCancelOrder to get request body params. This version of the endpoint is deprecated, the latest version can be found at https://docs.x.immutable.com/reference/#/operations/cancelOrderV3. Deprecation date - Mon, 01 May 2023 Sunset date - Fri, 01 Sept 2023
8711
8711
  * @summary Cancel an order
8712
8712
  * @param {OrdersApiCancelOrderRequest} requestParameters Request parameters.
8713
8713
  * @param {*} [options] Override http request option.
8714
+ * @deprecated
8714
8715
  * @throws {RequiredError}
8715
8716
  * @memberof OrdersApi
8716
8717
  */
@@ -8725,10 +8726,11 @@ declare class OrdersApi extends BaseAPI {
8725
8726
  */
8726
8727
  cancelOrderV3(requestParameters: OrdersApiCancelOrderV3Request, options?: AxiosRequestConfig): Promise<AxiosResponse<CancelOrderResponse, any>>;
8727
8728
  /**
8728
- * Create an order. Use https://docs.x.immutable.com/reference#/operations/getSignableOrder to get request body params.
8729
+ * Create an order. Use https://docs.x.immutable.com/reference#/operations/getSignableOrder to get request body params. This version of the endpoint is deprecated, the latest version can be found at https://docs.x.immutable.com/reference/#/operations/createOrderV3. Deprecation date - Mon, 01 May 2023 Sunset date - Fri, 01 Sept 2023
8729
8730
  * @summary Create an order
8730
8731
  * @param {OrdersApiCreateOrderRequest} requestParameters Request parameters.
8731
8732
  * @param {*} [options] Override http request option.
8733
+ * @deprecated
8732
8734
  * @throws {RequiredError}
8733
8735
  * @memberof OrdersApi
8734
8736
  */
@@ -8743,10 +8745,11 @@ declare class OrdersApi extends BaseAPI {
8743
8745
  */
8744
8746
  createOrderV3(requestParameters: OrdersApiCreateOrderV3Request, options?: AxiosRequestConfig): Promise<AxiosResponse<CreateOrderResponse, any>>;
8745
8747
  /**
8746
- * Get an order
8748
+ * Get an order. This version of the endpoint is deprecated, the latest version can be found at https://docs.x.immutable.com/reference/#/operations/getOrderV3. Deprecation date - Mon, 01 May 2023 Sunset date - Fri, 01 Sept 2023
8747
8749
  * @summary Get an order
8748
8750
  * @param {OrdersApiGetOrderRequest} requestParameters Request parameters.
8749
8751
  * @param {*} [options] Override http request option.
8752
+ * @deprecated
8750
8753
  * @throws {RequiredError}
8751
8754
  * @memberof OrdersApi
8752
8755
  */
@@ -8761,17 +8764,18 @@ declare class OrdersApi extends BaseAPI {
8761
8764
  */
8762
8765
  getOrderV3(requestParameters: OrdersApiGetOrderV3Request, options?: AxiosRequestConfig): Promise<AxiosResponse<OrderV3, any>>;
8763
8766
  /**
8764
- * Get a signable cancel order message
8765
- * @summary Get a signable cancel order message
8767
+ * Sign cancel order message. This version of the endpoint is deprecated, the latest version can be found at https://docs.x.immutable.com/reference/#/operations/getSignableCancelOrderV3. Deprecation date - Mon, 01 May 2023 Sunset date - Fri, 01 Sept 2023
8768
+ * @summary Sign cancel order message
8766
8769
  * @param {OrdersApiGetSignableCancelOrderRequest} requestParameters Request parameters.
8767
8770
  * @param {*} [options] Override http request option.
8771
+ * @deprecated
8768
8772
  * @throws {RequiredError}
8769
8773
  * @memberof OrdersApi
8770
8774
  */
8771
8775
  getSignableCancelOrder(requestParameters: OrdersApiGetSignableCancelOrderRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<GetSignableCancelOrderResponse, any>>;
8772
8776
  /**
8773
- * Get a signable cancel order message (V3)
8774
- * @summary Get a signable cancel order message (V3)
8777
+ * Generate a signable cancel order message (V3)
8778
+ * @summary Generate a signable cancel order message (V3)
8775
8779
  * @param {OrdersApiGetSignableCancelOrderV3Request} requestParameters Request parameters.
8776
8780
  * @param {*} [options] Override http request option.
8777
8781
  * @throws {RequiredError}
@@ -8779,8 +8783,8 @@ declare class OrdersApi extends BaseAPI {
8779
8783
  */
8780
8784
  getSignableCancelOrderV3(requestParameters: OrdersApiGetSignableCancelOrderV3Request, options?: AxiosRequestConfig): Promise<AxiosResponse<GetSignableCancelOrderResponse, any>>;
8781
8785
  /**
8782
- * Get a signable order request (V3)
8783
- * @summary Get a signable order request (V3)
8786
+ * Generate a signable order request (V3)
8787
+ * @summary Generate a signable order request (V3)
8784
8788
  * @param {OrdersApiGetSignableOrderRequest} requestParameters Request parameters.
8785
8789
  * @param {*} [options] Override http request option.
8786
8790
  * @throws {RequiredError}
@@ -8788,10 +8792,11 @@ declare class OrdersApi extends BaseAPI {
8788
8792
  */
8789
8793
  getSignableOrder(requestParameters: OrdersApiGetSignableOrderRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<GetSignableOrderResponse, any>>;
8790
8794
  /**
8791
- * Get a list of orders
8792
- * @summary Get a list of orders
8795
+ * Get a list of orders This version of the endpoint is deprecated, the latest version can be found at https://docs.x.immutable.com/reference/#/operations/listOrdersV3. Deprecation date - Mon, 01 May 2023 Sunset date - Fri, 01 Sept 2023
8796
+ * @summary Get a list of orders.
8793
8797
  * @param {OrdersApiListOrdersRequest} requestParameters Request parameters.
8794
8798
  * @param {*} [options] Override http request option.
8799
+ * @deprecated
8795
8800
  * @throws {RequiredError}
8796
8801
  * @memberof OrdersApi
8797
8802
  */
@@ -9154,10 +9159,10 @@ interface TradesApiListTradesRequest {
9154
9159
  readonly cursor?: string;
9155
9160
  /**
9156
9161
  * Property to sort by
9157
- * @type {'created_at' | 'updated_at' | 'transaction_id' | 'party_a_sold_quantity' | 'party_b_sold_quantity'}
9162
+ * @type {'created_at' | 'transaction_id' | 'party_a_sold_quantity' | 'party_b_sold_quantity'}
9158
9163
  * @memberof TradesApiListTrades
9159
9164
  */
9160
- readonly orderBy?: 'created_at' | 'updated_at' | 'transaction_id' | 'party_a_sold_quantity' | 'party_b_sold_quantity';
9165
+ readonly orderBy?: 'created_at' | 'transaction_id' | 'party_a_sold_quantity' | 'party_b_sold_quantity';
9161
9166
  /**
9162
9167
  * Direction to sort (asc/desc)
9163
9168
  * @type {string}
@@ -9227,10 +9232,10 @@ interface TradesApiListTradesV3Request {
9227
9232
  readonly cursor?: string;
9228
9233
  /**
9229
9234
  * Property to sort by
9230
- * @type {'created_at' | 'updated_at' | 'transaction_id' | 'party_a_sold_quantity' | 'party_b_sold_quantity' | 'timestamp' | 'updated_timestamp'}
9235
+ * @type {'created_at' | 'transaction_id' | 'party_a_sold_quantity' | 'party_b_sold_quantity' | 'timestamp' | 'updated_timestamp'}
9231
9236
  * @memberof TradesApiListTradesV3
9232
9237
  */
9233
- readonly orderBy?: 'created_at' | 'updated_at' | 'transaction_id' | 'party_a_sold_quantity' | 'party_b_sold_quantity' | 'timestamp' | 'updated_timestamp';
9238
+ readonly orderBy?: 'created_at' | 'transaction_id' | 'party_a_sold_quantity' | 'party_b_sold_quantity' | 'timestamp' | 'updated_timestamp';
9234
9239
  /**
9235
9240
  * Direction to sort (asc/desc)
9236
9241
  * @type {string}
@@ -9258,10 +9263,11 @@ interface TradesApiListTradesV3Request {
9258
9263
  */
9259
9264
  declare class TradesApi extends BaseAPI {
9260
9265
  /**
9261
- * Create a trade. Use https://docs.x.immutable.com/reference#/operations/getSignableTrade to get request body params.
9266
+ * Create a trade. Use https://docs.x.immutable.com/reference#/operations/getSignableTrade to get request body params. This version of the endpoint is deprecated, the latest version can be found at https://docs.x.immutable.com/reference/#/operations/createTradeV3. Deprecation date - Mon, 01 May 2023 Sunset date - Fri, 01 Sept 2023
9262
9267
  * @summary Create a Trade between two parties
9263
9268
  * @param {TradesApiCreateTradeRequest} requestParameters Request parameters.
9264
9269
  * @param {*} [options] Override http request option.
9270
+ * @deprecated
9265
9271
  * @throws {RequiredError}
9266
9272
  * @memberof TradesApi
9267
9273
  */
@@ -9276,8 +9282,8 @@ declare class TradesApi extends BaseAPI {
9276
9282
  */
9277
9283
  createTradeV3(requestParameters: TradesApiCreateTradeV3Request, options?: AxiosRequestConfig): Promise<AxiosResponse<CreateTradeResponse, any>>;
9278
9284
  /**
9279
- * Get a signable trade V3 message
9280
- * @summary Get a signable trade V3 message
9285
+ * Generate a signable trade message (V3)
9286
+ * @summary Generate a signable trade message (V3)
9281
9287
  * @param {TradesApiGetSignableTradeRequest} requestParameters Request parameters.
9282
9288
  * @param {*} [options] Override http request option.
9283
9289
  * @throws {RequiredError}
@@ -9294,10 +9300,11 @@ declare class TradesApi extends BaseAPI {
9294
9300
  */
9295
9301
  getTrade(requestParameters: TradesApiGetTradeRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<Trade, any>>;
9296
9302
  /**
9297
- * Get a list of trades
9303
+ * Get a list of trades. This version of the endpoint is deprecated, the latest version can be found at https://docs.x.immutable.com/reference/#/operations/listTradesV3. Deprecation date - Mon, 01 May 2023 Sunset date - Fri, 01 Sept 2023
9298
9304
  * @summary Get a list of trades
9299
9305
  * @param {TradesApiListTradesRequest} requestParameters Request parameters.
9300
9306
  * @param {*} [options] Override http request option.
9307
+ * @deprecated
9301
9308
  * @throws {RequiredError}
9302
9309
  * @memberof TradesApi
9303
9310
  */
@@ -9530,7 +9537,7 @@ interface TransfersApiListTransfersRequest {
9530
9537
  */
9531
9538
  declare class TransfersApi extends BaseAPI {
9532
9539
  /**
9533
- * Create a new transfer request.
9540
+ * Create a new transfer request. Use https://docs.x.immutable.com/reference#/operations/getSignableTransfer to get request body params.
9534
9541
  * @summary Creates a transfer of multiple tokens between two parties
9535
9542
  * @param {TransfersApiCreateTransferRequest} requestParameters Request parameters.
9536
9543
  * @param {*} [options] Override http request option.
@@ -9539,7 +9546,7 @@ declare class TransfersApi extends BaseAPI {
9539
9546
  */
9540
9547
  createTransfer(requestParameters: TransfersApiCreateTransferRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<CreateTransferResponse, any>>;
9541
9548
  /**
9542
- * Create a new transfer request.
9549
+ * Create a new transfer request. Use https://docs.x.immutable.com/reference#/operations/getSignableTransferV1 to get request body params.
9543
9550
  * @summary Creates a transfer of tokens between two parties
9544
9551
  * @param {TransfersApiCreateTransferV1Request} requestParameters Request parameters.
9545
9552
  * @param {*} [options] Override http request option.
@@ -10524,7 +10531,8 @@ declare enum RpcErrorCode {
10524
10531
  METHOD_NOT_FOUND = -32601,
10525
10532
  INVALID_PARAMS = -32602,
10526
10533
  INTERNAL_ERROR = -32603,
10527
- PARSE_ERROR = -32700
10534
+ PARSE_ERROR = -32700,
10535
+ USER_REJECTED_REQUEST = -32003
10528
10536
  }
10529
10537
  declare class JsonRpcError extends Error {
10530
10538
  readonly message: string;
@@ -10574,6 +10582,8 @@ declare class Passport {
10574
10582
  connectImx(): Promise<IMXProvider>;
10575
10583
  loginWithDeviceFlow(): Promise<DeviceConnectResponse>;
10576
10584
  connectImxDeviceFlow(deviceCode: string, interval: number, timeoutMs?: number): Promise<IMXProvider | null>;
10585
+ getPKCEAuthorizationUrl(): string;
10586
+ connectImxPKCEFlow(authorizationCode: string, state: string): Promise<IMXProvider | null>;
10577
10587
  /**
10578
10588
  * @returns {boolean} the stored device flow credentials if they exist
10579
10589
  */