@northstake/northstakeapi 1.0.23 → 1.0.25
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.
- package/.openapi-generator/FILES +3 -37
- package/api/{managedUsersLinkedWalletsApi.ts → accountApiKeysApi.ts} +32 -55
- package/api/apis.ts +3 -23
- package/api.ts +6 -70
- package/dist/api/{depositAddressesApi.d.ts → accountApiKeysApi.d.ts} +25 -12
- package/dist/api/{managedUsersLinkedWalletsApi.js → accountApiKeysApi.js} +32 -56
- package/dist/api/apis.d.ts +3 -23
- package/dist/api/apis.js +3 -23
- package/dist/api.d.ts +4 -48
- package/dist/api.js +5 -59
- package/dist/model/apiKey.d.ts +54 -0
- package/dist/model/apiKey.js +53 -0
- package/dist/model/{transactionsforUser.d.ts → generateApiKeyRequest.d.ts} +14 -9
- package/dist/model/generateApiKeyRequest.js +43 -0
- package/dist/model/models.d.ts +2 -26
- package/dist/model/models.js +8 -70
- package/dist/model/validatorWithdrawal.d.ts +1 -0
- package/dist/model/validatorWithdrawal.js +5 -0
- package/dist/model/webhookPayloadData.d.ts +2 -10
- package/dist/model/webhookPayloadData.js +2 -12
- package/model/apiKey.ts +88 -0
- package/model/generateApiKeyRequest.ts +66 -0
- package/model/models.ts +9 -124
- package/model/validatorWithdrawal.ts +6 -0
- package/model/webhookPayloadData.ts +4 -23
- package/package.json +2 -2
- package/api/depositAddressesApi.ts +0 -267
- package/api/managedUsersApi.ts +0 -448
- package/api/managedUsersDepositAddressesApi.ts +0 -186
- package/api/managedUsersOrdersApi.ts +0 -462
- package/api/managedUsersPortfolioApi.ts +0 -186
- package/api/managedUsersTransactionsApi.ts +0 -222
- package/api/managedUsersValidatorsApi.ts +0 -302
- package/api/ordersApi.ts +0 -432
- package/api/portfolioApi.ts +0 -180
- package/api/transactionsApi.ts +0 -215
- package/dist/api/depositAddressesApi.js +0 -207
- package/dist/api/managedUsersApi.d.ts +0 -94
- package/dist/api/managedUsersApi.js +0 -348
- package/dist/api/managedUsersDepositAddressesApi.d.ts +0 -51
- package/dist/api/managedUsersDepositAddressesApi.js +0 -146
- package/dist/api/managedUsersLinkedWalletsApi.d.ts +0 -80
- package/dist/api/managedUsersOrdersApi.d.ts +0 -94
- package/dist/api/managedUsersOrdersApi.js +0 -364
- package/dist/api/managedUsersPortfolioApi.d.ts +0 -51
- package/dist/api/managedUsersPortfolioApi.js +0 -146
- package/dist/api/managedUsersTransactionsApi.d.ts +0 -68
- package/dist/api/managedUsersTransactionsApi.js +0 -170
- package/dist/api/managedUsersValidatorsApi.d.ts +0 -78
- package/dist/api/managedUsersValidatorsApi.js +0 -233
- package/dist/api/ordersApi.d.ts +0 -90
- package/dist/api/ordersApi.js +0 -333
- package/dist/api/portfolioApi.d.ts +0 -50
- package/dist/api/portfolioApi.js +0 -140
- package/dist/api/transactionsApi.d.ts +0 -66
- package/dist/api/transactionsApi.js +0 -164
- package/dist/model/addLinkedWalletForUserRequest.d.ts +0 -29
- package/dist/model/addLinkedWalletForUserRequest.js +0 -33
- package/dist/model/allManagedUsersResponse.d.ts +0 -38
- package/dist/model/allManagedUsersResponse.js +0 -43
- package/dist/model/createManagedUserRequest.d.ts +0 -25
- package/dist/model/createManagedUserRequest.js +0 -28
- package/dist/model/depositAddress.d.ts +0 -35
- package/dist/model/depositAddress.js +0 -36
- package/dist/model/depositAddressesForUserResponse.d.ts +0 -27
- package/dist/model/depositAddressesForUserResponse.js +0 -33
- package/dist/model/getTransactionsResponse.d.ts +0 -38
- package/dist/model/getTransactionsResponse.js +0 -43
- package/dist/model/managedUser.d.ts +0 -29
- package/dist/model/managedUser.js +0 -36
- package/dist/model/managedUserDetails.d.ts +0 -31
- package/dist/model/managedUserDetails.js +0 -41
- package/dist/model/order.d.ts +0 -42
- package/dist/model/order.js +0 -48
- package/dist/model/orderDocument.d.ts +0 -50
- package/dist/model/orderDocument.js +0 -71
- package/dist/model/orderDocumentSteps.d.ts +0 -30
- package/dist/model/orderDocumentSteps.js +0 -33
- package/dist/model/orderType.d.ts +0 -15
- package/dist/model/orderType.js +0 -13
- package/dist/model/orderUpdatePayload.d.ts +0 -36
- package/dist/model/orderUpdatePayload.js +0 -38
- package/dist/model/portfolioEntity.d.ts +0 -33
- package/dist/model/portfolioEntity.js +0 -41
- package/dist/model/stakeStep.d.ts +0 -32
- package/dist/model/stakeStep.js +0 -33
- package/dist/model/stakeStepElement.d.ts +0 -30
- package/dist/model/stakeStepElement.js +0 -33
- package/dist/model/stepStatus.d.ts +0 -15
- package/dist/model/stepStatus.js +0 -13
- package/dist/model/transaction.d.ts +0 -49
- package/dist/model/transaction.js +0 -56
- package/dist/model/transactionEventType.d.ts +0 -15
- package/dist/model/transactionEventType.js +0 -13
- package/dist/model/transactionsforUser.js +0 -43
- package/dist/model/unstakeStep.d.ts +0 -32
- package/dist/model/unstakeStep.js +0 -33
- package/dist/model/unstakeStepElement.d.ts +0 -30
- package/dist/model/unstakeStepElement.js +0 -33
- package/dist/model/unstakeStepType.d.ts +0 -15
- package/dist/model/unstakeStepType.js +0 -13
- package/dist/model/withdrawalStep.d.ts +0 -32
- package/dist/model/withdrawalStep.js +0 -33
- package/dist/model/withdrawalStepElement.d.ts +0 -30
- package/dist/model/withdrawalStepElement.js +0 -33
- package/dist/model/withdrawalStepType.d.ts +0 -15
- package/dist/model/withdrawalStepType.js +0 -13
- package/model/addLinkedWalletForUserRequest.ts +0 -40
- package/model/allManagedUsersResponse.ts +0 -59
- package/model/createManagedUserRequest.ts +0 -31
- package/model/depositAddress.ts +0 -46
- package/model/depositAddressesForUserResponse.ts +0 -38
- package/model/getTransactionsResponse.ts +0 -59
- package/model/managedUser.ts +0 -40
- package/model/managedUserDetails.ts +0 -47
- package/model/order.ts +0 -68
- package/model/orderDocument.ts +0 -106
- package/model/orderDocumentSteps.ts +0 -44
- package/model/orderType.ts +0 -21
- package/model/orderUpdatePayload.ts +0 -52
- package/model/portfolioEntity.ts +0 -49
- package/model/stakeStep.ts +0 -43
- package/model/stakeStepElement.ts +0 -41
- package/model/stepStatus.ts +0 -21
- package/model/transaction.ts +0 -80
- package/model/transactionEventType.ts +0 -23
- package/model/transactionsforUser.ts +0 -59
- package/model/unstakeStep.ts +0 -43
- package/model/unstakeStepElement.ts +0 -41
- package/model/unstakeStepType.ts +0 -32
- package/model/withdrawalStep.ts +0 -43
- package/model/withdrawalStepElement.ts +0 -41
- package/model/withdrawalStepType.ts +0 -24
package/model/models.ts
CHANGED
|
@@ -4,14 +4,10 @@ import * as jwt from 'jsonwebtoken';
|
|
|
4
4
|
|
|
5
5
|
export * from './acceptedQuote';
|
|
6
6
|
export * from './accountEntity';
|
|
7
|
-
export * from './addLinkedWalletForUserRequest';
|
|
8
7
|
export * from './addLinkedWalletRequest';
|
|
9
|
-
export * from './
|
|
8
|
+
export * from './apiKey';
|
|
10
9
|
export * from './asset';
|
|
11
|
-
export * from './createManagedUserRequest';
|
|
12
10
|
export * from './createRFQRequest';
|
|
13
|
-
export * from './depositAddress';
|
|
14
|
-
export * from './depositAddressesForUserResponse';
|
|
15
11
|
export * from './errorResponse';
|
|
16
12
|
export * from './escrowPayment';
|
|
17
13
|
export * from './escrowReleased';
|
|
@@ -26,18 +22,10 @@ export * from './ethereumValidatorKeyKeystoreCryptoKdfParams';
|
|
|
26
22
|
export * from './exitEstimateBase';
|
|
27
23
|
export * from './exitEstimateSeller';
|
|
28
24
|
export * from './exitProposal';
|
|
25
|
+
export * from './generateApiKeyRequest';
|
|
29
26
|
export * from './getMarketplaceMetadata200Response';
|
|
30
|
-
export * from './getTransactionsResponse';
|
|
31
27
|
export * from './getWithdrawalsResponse';
|
|
32
28
|
export * from './listAllRFQsForFacilitator200Response';
|
|
33
|
-
export * from './managedUser';
|
|
34
|
-
export * from './managedUserDetails';
|
|
35
|
-
export * from './order';
|
|
36
|
-
export * from './orderDocument';
|
|
37
|
-
export * from './orderDocumentSteps';
|
|
38
|
-
export * from './orderType';
|
|
39
|
-
export * from './orderUpdatePayload';
|
|
40
|
-
export * from './portfolioEntity';
|
|
41
29
|
export * from './provideEscrowHashForRFQDocumentRequest';
|
|
42
30
|
export * from './quote';
|
|
43
31
|
export * from './rFQBidFacilitator';
|
|
@@ -60,16 +48,7 @@ export * from './rFQWebhookEventType';
|
|
|
60
48
|
export * from './registerWithdrawalRecipientSettlementRequest';
|
|
61
49
|
export * from './settlementSteps';
|
|
62
50
|
export * from './smartContract';
|
|
63
|
-
export * from './stakeStep';
|
|
64
|
-
export * from './stakeStepElement';
|
|
65
|
-
export * from './stepStatus';
|
|
66
51
|
export * from './submittedQuote';
|
|
67
|
-
export * from './transaction';
|
|
68
|
-
export * from './transactionEventType';
|
|
69
|
-
export * from './transactionsforUser';
|
|
70
|
-
export * from './unstakeStep';
|
|
71
|
-
export * from './unstakeStepElement';
|
|
72
|
-
export * from './unstakeStepType';
|
|
73
52
|
export * from './validatorInfo';
|
|
74
53
|
export * from './validatorKeyHolder';
|
|
75
54
|
export * from './validatorType';
|
|
@@ -98,9 +77,6 @@ export * from './webhookPayloadRFQWithdrawalClaimableDetails';
|
|
|
98
77
|
export * from './webhookRegistration';
|
|
99
78
|
export * from './webhookRegistrationDetails';
|
|
100
79
|
export * from './withdrawalRecipientSettlement';
|
|
101
|
-
export * from './withdrawalStep';
|
|
102
|
-
export * from './withdrawalStepElement';
|
|
103
|
-
export * from './withdrawalStepType';
|
|
104
80
|
|
|
105
81
|
import * as fs from 'fs';
|
|
106
82
|
|
|
@@ -121,30 +97,18 @@ import { AcceptedQuote } from './acceptedQuote';
|
|
|
121
97
|
import { AccountEntity } from './accountEntity';
|
|
122
98
|
|
|
123
99
|
|
|
124
|
-
import { AddLinkedWalletForUserRequest } from './addLinkedWalletForUserRequest';
|
|
125
|
-
|
|
126
|
-
|
|
127
100
|
import { AddLinkedWalletRequest } from './addLinkedWalletRequest';
|
|
128
101
|
|
|
129
102
|
|
|
130
|
-
import {
|
|
103
|
+
import { ApiKey } from './apiKey';
|
|
131
104
|
|
|
132
105
|
|
|
133
106
|
import { Asset } from './asset';
|
|
134
107
|
|
|
135
108
|
|
|
136
|
-
import { CreateManagedUserRequest } from './createManagedUserRequest';
|
|
137
|
-
|
|
138
|
-
|
|
139
109
|
import { CreateRFQRequest } from './createRFQRequest';
|
|
140
110
|
|
|
141
111
|
|
|
142
|
-
import { DepositAddress } from './depositAddress';
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
import { DepositAddressesForUserResponse } from './depositAddressesForUserResponse';
|
|
146
|
-
|
|
147
|
-
|
|
148
112
|
import { ErrorResponse } from './errorResponse';
|
|
149
113
|
|
|
150
114
|
|
|
@@ -187,10 +151,10 @@ import { ExitEstimateSeller } from './exitEstimateSeller';
|
|
|
187
151
|
import { ExitProposal } from './exitProposal';
|
|
188
152
|
|
|
189
153
|
|
|
190
|
-
import {
|
|
154
|
+
import { GenerateApiKeyRequest } from './generateApiKeyRequest';
|
|
191
155
|
|
|
192
156
|
|
|
193
|
-
import {
|
|
157
|
+
import { GetMarketplaceMetadata200Response } from './getMarketplaceMetadata200Response';
|
|
194
158
|
|
|
195
159
|
|
|
196
160
|
import { GetWithdrawalsResponse } from './getWithdrawalsResponse';
|
|
@@ -199,30 +163,6 @@ import { GetWithdrawalsResponse } from './getWithdrawalsResponse';
|
|
|
199
163
|
import { ListAllRFQsForFacilitator200Response } from './listAllRFQsForFacilitator200Response';
|
|
200
164
|
|
|
201
165
|
|
|
202
|
-
import { ManagedUser } from './managedUser';
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
import { ManagedUserDetails } from './managedUserDetails';
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
import { Order } from './order';
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
import { OrderDocument } from './orderDocument';
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
import { OrderDocumentSteps } from './orderDocumentSteps';
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
import { OrderType } from './orderType';
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
import { OrderUpdatePayload } from './orderUpdatePayload';
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
import { PortfolioEntity } from './portfolioEntity';
|
|
224
|
-
|
|
225
|
-
|
|
226
166
|
import { ProvideEscrowHashForRFQDocumentRequest } from './provideEscrowHashForRFQDocumentRequest';
|
|
227
167
|
|
|
228
168
|
|
|
@@ -289,36 +229,9 @@ import { SettlementSteps } from './settlementSteps';
|
|
|
289
229
|
import { SmartContract } from './smartContract';
|
|
290
230
|
|
|
291
231
|
|
|
292
|
-
import { StakeStep } from './stakeStep';
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
import { StakeStepElement } from './stakeStepElement';
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
import { StepStatus } from './stepStatus';
|
|
299
|
-
|
|
300
|
-
|
|
301
232
|
import { SubmittedQuote } from './submittedQuote';
|
|
302
233
|
|
|
303
234
|
|
|
304
|
-
import { Transaction } from './transaction';
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
import { TransactionEventType } from './transactionEventType';
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
import { TransactionsforUser } from './transactionsforUser';
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
import { UnstakeStep } from './unstakeStep';
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
import { UnstakeStepElement } from './unstakeStepElement';
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
import { UnstakeStepType } from './unstakeStepType';
|
|
320
|
-
|
|
321
|
-
|
|
322
235
|
import { ValidatorInfo } from './validatorInfo';
|
|
323
236
|
|
|
324
237
|
|
|
@@ -403,15 +316,6 @@ import { WebhookRegistrationDetails } from './webhookRegistrationDetails';
|
|
|
403
316
|
import { WithdrawalRecipientSettlement } from './withdrawalRecipientSettlement';
|
|
404
317
|
|
|
405
318
|
|
|
406
|
-
import { WithdrawalStep } from './withdrawalStep';
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
import { WithdrawalStepElement } from './withdrawalStepElement';
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
import { WithdrawalStepType } from './withdrawalStepType';
|
|
413
|
-
|
|
414
|
-
|
|
415
319
|
|
|
416
320
|
/* tslint:disable:no-unused-variable */
|
|
417
321
|
let primitives = [
|
|
@@ -425,8 +329,8 @@ let primitives = [
|
|
|
425
329
|
"any"
|
|
426
330
|
];
|
|
427
331
|
let enumsMap: {[index: string]: any} = {
|
|
428
|
-
"
|
|
429
|
-
"
|
|
332
|
+
"ApiKey.roles": ApiKey,
|
|
333
|
+
"GenerateApiKeyRequest.keyRights": GenerateApiKeyRequest,
|
|
430
334
|
"RFQDocumentFacilitator.status": RFQDocumentFacilitator,
|
|
431
335
|
"ValidatorInfo.asset": ValidatorInfo,
|
|
432
336
|
"ValidatorInfo.status": ValidatorInfo,
|
|
@@ -435,13 +339,9 @@ let enumsMap: {[index: string]: any} = {
|
|
|
435
339
|
let typeMap: {[index: string]: any} = {
|
|
436
340
|
"AcceptedQuote": AcceptedQuote,
|
|
437
341
|
"AccountEntity": AccountEntity,
|
|
438
|
-
"AddLinkedWalletForUserRequest": AddLinkedWalletForUserRequest,
|
|
439
342
|
"AddLinkedWalletRequest": AddLinkedWalletRequest,
|
|
440
|
-
"
|
|
441
|
-
"CreateManagedUserRequest": CreateManagedUserRequest,
|
|
343
|
+
"ApiKey": ApiKey,
|
|
442
344
|
"CreateRFQRequest": CreateRFQRequest,
|
|
443
|
-
"DepositAddress": DepositAddress,
|
|
444
|
-
"DepositAddressesForUserResponse": DepositAddressesForUserResponse,
|
|
445
345
|
"ErrorResponse": ErrorResponse,
|
|
446
346
|
"EscrowPayment": EscrowPayment,
|
|
447
347
|
"EscrowReleased": EscrowReleased,
|
|
@@ -456,17 +356,10 @@ let typeMap: {[index: string]: any} = {
|
|
|
456
356
|
"ExitEstimateBase": ExitEstimateBase,
|
|
457
357
|
"ExitEstimateSeller": ExitEstimateSeller,
|
|
458
358
|
"ExitProposal": ExitProposal,
|
|
359
|
+
"GenerateApiKeyRequest": GenerateApiKeyRequest,
|
|
459
360
|
"GetMarketplaceMetadata200Response": GetMarketplaceMetadata200Response,
|
|
460
|
-
"GetTransactionsResponse": GetTransactionsResponse,
|
|
461
361
|
"GetWithdrawalsResponse": GetWithdrawalsResponse,
|
|
462
362
|
"ListAllRFQsForFacilitator200Response": ListAllRFQsForFacilitator200Response,
|
|
463
|
-
"ManagedUser": ManagedUser,
|
|
464
|
-
"ManagedUserDetails": ManagedUserDetails,
|
|
465
|
-
"Order": Order,
|
|
466
|
-
"OrderDocument": OrderDocument,
|
|
467
|
-
"OrderDocumentSteps": OrderDocumentSteps,
|
|
468
|
-
"OrderUpdatePayload": OrderUpdatePayload,
|
|
469
|
-
"PortfolioEntity": PortfolioEntity,
|
|
470
363
|
"ProvideEscrowHashForRFQDocumentRequest": ProvideEscrowHashForRFQDocumentRequest,
|
|
471
364
|
"Quote": Quote,
|
|
472
365
|
"RFQBidFacilitator": RFQBidFacilitator,
|
|
@@ -484,13 +377,7 @@ let typeMap: {[index: string]: any} = {
|
|
|
484
377
|
"RegisterWithdrawalRecipientSettlementRequest": RegisterWithdrawalRecipientSettlementRequest,
|
|
485
378
|
"SettlementSteps": SettlementSteps,
|
|
486
379
|
"SmartContract": SmartContract,
|
|
487
|
-
"StakeStep": StakeStep,
|
|
488
|
-
"StakeStepElement": StakeStepElement,
|
|
489
380
|
"SubmittedQuote": SubmittedQuote,
|
|
490
|
-
"Transaction": Transaction,
|
|
491
|
-
"TransactionsforUser": TransactionsforUser,
|
|
492
|
-
"UnstakeStep": UnstakeStep,
|
|
493
|
-
"UnstakeStepElement": UnstakeStepElement,
|
|
494
381
|
"ValidatorInfo": ValidatorInfo,
|
|
495
382
|
"ValidatorWithdrawal": ValidatorWithdrawal,
|
|
496
383
|
"Wallet": Wallet,
|
|
@@ -517,8 +404,6 @@ let typeMap: {[index: string]: any} = {
|
|
|
517
404
|
"WebhookRegistration": WebhookRegistration,
|
|
518
405
|
"WebhookRegistrationDetails": WebhookRegistrationDetails,
|
|
519
406
|
"WithdrawalRecipientSettlement": WithdrawalRecipientSettlement,
|
|
520
|
-
"WithdrawalStep": WithdrawalStep,
|
|
521
|
-
"WithdrawalStepElement": WithdrawalStepElement,
|
|
522
407
|
}
|
|
523
408
|
|
|
524
409
|
export class ObjectSerializer {
|
|
@@ -20,6 +20,7 @@ export class ValidatorWithdrawal {
|
|
|
20
20
|
'withdrawal_time': Date;
|
|
21
21
|
'withdrawal_index': number;
|
|
22
22
|
'withdrawal_address': string;
|
|
23
|
+
'amount': string;
|
|
23
24
|
|
|
24
25
|
static discriminator: string | undefined = undefined;
|
|
25
26
|
|
|
@@ -63,6 +64,11 @@ export class ValidatorWithdrawal {
|
|
|
63
64
|
"name": "withdrawal_address",
|
|
64
65
|
"baseName": "withdrawal_address",
|
|
65
66
|
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "amount",
|
|
70
|
+
"baseName": "amount",
|
|
71
|
+
"type": "string"
|
|
66
72
|
} ];
|
|
67
73
|
|
|
68
74
|
static getAttributeTypeMap() {
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import { OrderUpdatePayload } from './orderUpdatePayload';
|
|
14
13
|
import { RFQUpdatePayload } from './rFQUpdatePayload';
|
|
15
14
|
|
|
16
15
|
/**
|
|
@@ -18,21 +17,13 @@ import { RFQUpdatePayload } from './rFQUpdatePayload';
|
|
|
18
17
|
*/
|
|
19
18
|
export class WebhookPayloadData {
|
|
20
19
|
/**
|
|
21
|
-
* Unique identifier for the
|
|
20
|
+
* Unique identifier for the RFQ.
|
|
22
21
|
*/
|
|
23
|
-
'
|
|
22
|
+
'rfqId'?: string;
|
|
24
23
|
/**
|
|
25
24
|
* New status of the RFQ.
|
|
26
25
|
*/
|
|
27
26
|
'status'?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Additional details regarding the order update.
|
|
30
|
-
*/
|
|
31
|
-
'details'?: object;
|
|
32
|
-
/**
|
|
33
|
-
* Unique identifier for the RFQ.
|
|
34
|
-
*/
|
|
35
|
-
'rfqId'?: string;
|
|
36
27
|
/**
|
|
37
28
|
* The best quote for the RFQ, if available.
|
|
38
29
|
*/
|
|
@@ -42,8 +33,8 @@ export class WebhookPayloadData {
|
|
|
42
33
|
|
|
43
34
|
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
44
35
|
{
|
|
45
|
-
"name": "
|
|
46
|
-
"baseName": "
|
|
36
|
+
"name": "rfqId",
|
|
37
|
+
"baseName": "rfqId",
|
|
47
38
|
"type": "string"
|
|
48
39
|
},
|
|
49
40
|
{
|
|
@@ -51,16 +42,6 @@ export class WebhookPayloadData {
|
|
|
51
42
|
"baseName": "status",
|
|
52
43
|
"type": "string"
|
|
53
44
|
},
|
|
54
|
-
{
|
|
55
|
-
"name": "details",
|
|
56
|
-
"baseName": "details",
|
|
57
|
-
"type": "object"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"name": "rfqId",
|
|
61
|
-
"baseName": "rfqId",
|
|
62
|
-
"type": "string"
|
|
63
|
-
},
|
|
64
45
|
{
|
|
65
46
|
"name": "bestQuote",
|
|
66
47
|
"baseName": "bestQuote",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@northstake/northstakeapi",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.25",
|
|
4
4
|
"description": "Northstake SDK",
|
|
5
5
|
"main": "dist/api.js",
|
|
6
6
|
"types": "dist/api.d.ts",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"author": "Northstake build process <buildadmin@northstake.dk>",
|
|
22
22
|
"license": "ISC",
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@types/node": "^22.
|
|
24
|
+
"@types/node": "^22.9.0",
|
|
25
25
|
"typescript": "^5.6.3"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Northstake
|
|
3
|
-
* Northstake api
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import localVarRequest from 'request';
|
|
15
|
-
import http from 'http';
|
|
16
|
-
|
|
17
|
-
/* tslint:disable:no-unused-locals */
|
|
18
|
-
import { Asset } from '../model/asset';
|
|
19
|
-
import { DepositAddress } from '../model/depositAddress';
|
|
20
|
-
import { ErrorResponse } from '../model/errorResponse';
|
|
21
|
-
|
|
22
|
-
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
23
|
-
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth, JWTAuth } from '../model/models';
|
|
24
|
-
|
|
25
|
-
import { HttpError, RequestFile } from './apis';
|
|
26
|
-
|
|
27
|
-
let defaultBasePath = 'https://api.northstake.dk/v1';
|
|
28
|
-
|
|
29
|
-
// ===============================================
|
|
30
|
-
// This file is autogenerated - Please do not edit
|
|
31
|
-
// ===============================================
|
|
32
|
-
|
|
33
|
-
export enum DepositAddressesApiApiKeys {
|
|
34
|
-
ApiKeyAuth,
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
export class DepositAddressesApi {
|
|
40
|
-
protected _basePath = defaultBasePath;
|
|
41
|
-
protected _defaultHeaders : any = {};
|
|
42
|
-
protected _useQuerystring : boolean = false;
|
|
43
|
-
|
|
44
|
-
protected authentications = {
|
|
45
|
-
'default': <Authentication>new JWTAuth('your_api_key', 'your_private_key'),
|
|
46
|
-
'bearerTokenAuth': new HttpBearerAuth(),
|
|
47
|
-
'ApiKeyAuth': new ApiKeyAuth('header', 'x-api-key'),
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
protected interceptors: Interceptor[] = [];
|
|
51
|
-
|
|
52
|
-
constructor(basePath?: string);
|
|
53
|
-
constructor(basePathOrUsername: string, password?: string, basePath?: string) {
|
|
54
|
-
if (password) {
|
|
55
|
-
if (basePath) {
|
|
56
|
-
this.basePath = basePath;
|
|
57
|
-
}
|
|
58
|
-
} else {
|
|
59
|
-
if (basePathOrUsername) {
|
|
60
|
-
this.basePath = basePathOrUsername
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
set useQuerystring(value: boolean) {
|
|
66
|
-
this._useQuerystring = value;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
set basePath(basePath: string) {
|
|
70
|
-
this._basePath = basePath;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
set defaultHeaders(defaultHeaders: any) {
|
|
74
|
-
this._defaultHeaders = defaultHeaders;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
get defaultHeaders() {
|
|
78
|
-
return this._defaultHeaders;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
get basePath() {
|
|
82
|
-
return this._basePath;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
public setDefaultAuthentication(auth: Authentication) {
|
|
86
|
-
this.authentications.default = auth;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
public setApiKey(key: DepositAddressesApiApiKeys, value: string) {
|
|
90
|
-
(this.authentications as any)[DepositAddressesApiApiKeys[key]].apiKey = value;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
set accessToken(accessToken: string | (() => string)) {
|
|
94
|
-
this.authentications.bearerTokenAuth.accessToken = accessToken;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
public addInterceptor(interceptor: Interceptor) {
|
|
98
|
-
this.interceptors.push(interceptor);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
*
|
|
103
|
-
* @summary Get deposit address by asset
|
|
104
|
-
* @param asset Asset to fetch the deposit address for
|
|
105
|
-
*/
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
public async getDepositAddressByAsset (asset: Asset, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: DepositAddress, status: number }> {
|
|
112
|
-
|
|
113
|
-
const localVarPath = this.basePath + '/depositAddresses/{asset}'
|
|
114
|
-
.replace('{' + 'asset' + '}', encodeURIComponent(String(asset)));
|
|
115
|
-
|
|
116
|
-
let localVarQueryParameters: any = {};
|
|
117
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
118
|
-
const produces = ['application/json'];
|
|
119
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
120
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
121
|
-
} else {
|
|
122
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
123
|
-
}
|
|
124
|
-
let localVarFormParams: any = {};
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
// Verify required parameter 'asset' is not null or undefined
|
|
128
|
-
if (asset === null || asset === undefined) {
|
|
129
|
-
throw new Error('Required parameter "asset" was null or undefined when calling getDepositAddressByAsset.');
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
139
|
-
|
|
140
|
-
let localVarUseFormData = false;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
145
|
-
method: 'GET',
|
|
146
|
-
qs: localVarQueryParameters,
|
|
147
|
-
headers: localVarHeaderParams,
|
|
148
|
-
uri: localVarPath,
|
|
149
|
-
useQuerystring: this._useQuerystring,
|
|
150
|
-
json: true,
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
let authenticationPromise = Promise.resolve();
|
|
154
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
155
|
-
|
|
156
|
-
let interceptorPromise = authenticationPromise;
|
|
157
|
-
for (const interceptor of this.interceptors) {
|
|
158
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
return interceptorPromise.then(() => {
|
|
162
|
-
if (Object.keys(localVarFormParams).length) {
|
|
163
|
-
if (localVarUseFormData) {
|
|
164
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
165
|
-
} else {
|
|
166
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
return new Promise<{ body: DepositAddress, status: number }>((resolve, reject) => {
|
|
170
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
171
|
-
if (error) {
|
|
172
|
-
console.error('API call error:', error);
|
|
173
|
-
reject(error);
|
|
174
|
-
} else {
|
|
175
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
176
|
-
body = ObjectSerializer.deserialize(body, "DepositAddress");
|
|
177
|
-
resolve({ body: body, status: response.statusCode });
|
|
178
|
-
} else {
|
|
179
|
-
console.error('API response error:', response.statusCode);
|
|
180
|
-
resolve({ body: body, status: response.statusCode });
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
});
|
|
184
|
-
});
|
|
185
|
-
} )
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
*
|
|
189
|
-
* @summary List deposit addresses assigned to the account
|
|
190
|
-
*/
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
public async listDepositAddresses (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: Array<DepositAddress>, status: number }> {
|
|
197
|
-
|
|
198
|
-
const localVarPath = this.basePath + '/depositAddresses';
|
|
199
|
-
|
|
200
|
-
let localVarQueryParameters: any = {};
|
|
201
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
202
|
-
const produces = ['application/json'];
|
|
203
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
204
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
205
|
-
} else {
|
|
206
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
207
|
-
}
|
|
208
|
-
let localVarFormParams: any = {};
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
219
|
-
|
|
220
|
-
let localVarUseFormData = false;
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
225
|
-
method: 'GET',
|
|
226
|
-
qs: localVarQueryParameters,
|
|
227
|
-
headers: localVarHeaderParams,
|
|
228
|
-
uri: localVarPath,
|
|
229
|
-
useQuerystring: this._useQuerystring,
|
|
230
|
-
json: true,
|
|
231
|
-
};
|
|
232
|
-
|
|
233
|
-
let authenticationPromise = Promise.resolve();
|
|
234
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
235
|
-
|
|
236
|
-
let interceptorPromise = authenticationPromise;
|
|
237
|
-
for (const interceptor of this.interceptors) {
|
|
238
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
return interceptorPromise.then(() => {
|
|
242
|
-
if (Object.keys(localVarFormParams).length) {
|
|
243
|
-
if (localVarUseFormData) {
|
|
244
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
245
|
-
} else {
|
|
246
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
return new Promise<{ body: Array<DepositAddress>, status: number }>((resolve, reject) => {
|
|
250
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
251
|
-
if (error) {
|
|
252
|
-
console.error('API call error:', error);
|
|
253
|
-
reject(error);
|
|
254
|
-
} else {
|
|
255
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
256
|
-
body = ObjectSerializer.deserialize(body, "Array<DepositAddress>");
|
|
257
|
-
resolve({ body: body, status: response.statusCode });
|
|
258
|
-
} else {
|
|
259
|
-
console.error('API response error:', response.statusCode);
|
|
260
|
-
resolve({ body: body, status: response.statusCode });
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
});
|
|
264
|
-
});
|
|
265
|
-
} )
|
|
266
|
-
}
|
|
267
|
-
}
|