@northstake/northstakeapi 1.0.7 → 1.0.8

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.
Files changed (149) hide show
  1. package/.openapi-generator/FILES +23 -15
  2. package/api/apis.ts +17 -9
  3. package/api/northstake.ts +47 -23
  4. package/api/portfolioApi.ts +4 -4
  5. package/api/stakingPartnerManagedUsersApi.ts +0 -279
  6. package/api/stakingPartnerManagedUsersDepositAddressesApi.ts +167 -0
  7. package/api/stakingPartnerManagedUsersPortfolioApi.ts +167 -0
  8. package/api/stakingPartnerManagedUsersStatsApi.ts +167 -0
  9. package/api/stakingPartnerManagedUsersValidatorsApi.ts +167 -0
  10. package/api/statsApi.ts +0 -73
  11. package/api/{rfqMarketPlaceBuyersApi.ts → validatorMarketplaceBuyersApi.ts} +31 -21
  12. package/api/{rfqMarketPlaceSellersApi.ts → validatorMarketplaceSellersApi.ts} +68 -60
  13. package/api/{rfqMarketPlaceWebhooksApi.ts → validatorMarketplaceWebhooksApi.ts} +7 -7
  14. package/api/validatorsApi.ts +172 -0
  15. package/dist/api/apis.d.ts +17 -9
  16. package/dist/api/apis.js +17 -9
  17. package/dist/api/northstake.d.ts +16 -8
  18. package/dist/api/northstake.js +32 -16
  19. package/dist/api/portfolioApi.d.ts +2 -2
  20. package/dist/api/portfolioApi.js +1 -1
  21. package/dist/api/stakingPartnerManagedUsersApi.d.ts +0 -55
  22. package/dist/api/stakingPartnerManagedUsersApi.js +0 -264
  23. package/dist/api/stakingPartnerManagedUsersDepositAddressesApi.d.ts +53 -0
  24. package/dist/api/stakingPartnerManagedUsersDepositAddressesApi.js +146 -0
  25. package/dist/api/stakingPartnerManagedUsersPortfolioApi.d.ts +53 -0
  26. package/dist/api/stakingPartnerManagedUsersPortfolioApi.js +146 -0
  27. package/dist/api/stakingPartnerManagedUsersStatsApi.d.ts +53 -0
  28. package/dist/api/stakingPartnerManagedUsersStatsApi.js +146 -0
  29. package/dist/api/{stakingPartnerValidatorKeysApi.d.ts → stakingPartnerManagedUsersValidatorsApi.d.ts} +5 -31
  30. package/dist/api/stakingPartnerManagedUsersValidatorsApi.js +146 -0
  31. package/dist/api/statsApi.d.ts +0 -15
  32. package/dist/api/statsApi.js +0 -68
  33. package/dist/api/{rfqMarketPlaceBuyersApi.d.ts → validatorMarketplaceBuyersApi.d.ts} +11 -10
  34. package/dist/api/{rfqMarketPlaceBuyersApi.js → validatorMarketplaceBuyersApi.js} +32 -24
  35. package/dist/api/{rfqMarketPlaceSellersApi.d.ts → validatorMarketplaceSellersApi.d.ts} +27 -26
  36. package/dist/api/{rfqMarketPlaceSellersApi.js → validatorMarketplaceSellersApi.js} +64 -57
  37. package/dist/api/{rfqMarketPlaceWebhooksApi.d.ts → validatorMarketplaceWebhooksApi.d.ts} +2 -2
  38. package/dist/api/{rfqMarketPlaceWebhooksApi.js → validatorMarketplaceWebhooksApi.js} +11 -11
  39. package/dist/api/validatorsApi.d.ts +56 -0
  40. package/dist/api/validatorsApi.js +148 -0
  41. package/dist/model/{createRFQDocumentForSellerRequest.d.ts → createRFQDocumentRequest.d.ts} +1 -1
  42. package/dist/model/{createRFQDocumentForSellerRequest.js → createRFQDocumentRequest.js} +6 -6
  43. package/dist/model/{registerRewardRecipientSettlementRequestInner.d.ts → exitEstimateBase.d.ts} +3 -3
  44. package/dist/model/exitEstimateBase.js +33 -0
  45. package/dist/model/{exitEstimate.d.ts → exitEstimateSeller.d.ts} +2 -2
  46. package/dist/model/{exitEstimate.js → exitEstimateSeller.js} +10 -10
  47. package/dist/model/models.d.ts +15 -11
  48. package/dist/model/models.js +45 -33
  49. package/dist/model/{getRewardsStatistics200ResponseInner.d.ts → portfolioEntity.d.ts} +7 -6
  50. package/dist/model/portfolioEntity.js +38 -0
  51. package/dist/model/rFQDocumentBase.d.ts +4 -3
  52. package/dist/model/rFQDocumentBase.js +3 -8
  53. package/dist/model/rFQDocumentBuyer.d.ts +7 -4
  54. package/dist/model/rFQDocumentBuyer.js +8 -8
  55. package/dist/model/{rFQDocumentBaseValidatorsInner.d.ts → rFQDocumentBuyerAllOfValidators.d.ts} +3 -3
  56. package/dist/model/{rFQDocumentBaseValidatorsInner.js → rFQDocumentBuyerAllOfValidators.js} +9 -9
  57. package/dist/model/rFQDocumentSeller.d.ts +8 -4
  58. package/dist/model/rFQDocumentSeller.js +16 -11
  59. package/dist/model/rFQDocumentSellerAllOfValidators.d.ts +28 -0
  60. package/dist/model/rFQDocumentSellerAllOfValidators.js +38 -0
  61. package/dist/model/rFQDocumentStatusEnum.d.ts +17 -0
  62. package/dist/model/rFQDocumentStatusEnum.js +21 -0
  63. package/dist/model/{acceptBidForRFQDocumentRequest.d.ts → rejectQuoteForRFQDocumentRequest.d.ts} +1 -1
  64. package/dist/model/{acceptBidForRFQDocumentRequest.js → rejectQuoteForRFQDocumentRequest.js} +6 -6
  65. package/dist/model/settlementStepEscrowPayment.d.ts +1 -0
  66. package/dist/model/settlementStepEscrowPayment.js +5 -0
  67. package/dist/model/settlementStepEscrowReleased.d.ts +2 -0
  68. package/dist/model/settlementStepEscrowReleased.js +10 -0
  69. package/dist/model/{settlementStepRewardRecipientSettlementInner.d.ts → settlementStepWithdrawalRecipientSettlementInner.d.ts} +1 -1
  70. package/dist/model/{settlementStepRewardRecipientSettlementInner.js → settlementStepWithdrawalRecipientSettlementInner.js} +6 -6
  71. package/dist/model/settlementSteps.d.ts +2 -2
  72. package/dist/model/settlementSteps.js +3 -3
  73. package/dist/model/stakeStep.d.ts +1 -1
  74. package/dist/model/stepStatus.d.ts +1 -1
  75. package/dist/model/stepStatus.js +1 -1
  76. package/dist/model/submitQuoteForRFQDocumentRequest.d.ts +25 -0
  77. package/dist/model/submitQuoteForRFQDocumentRequest.js +28 -0
  78. package/dist/model/tokenEnum.d.ts +1 -3
  79. package/dist/model/tokenEnum.js +1 -3
  80. package/dist/model/unstakeStep.d.ts +1 -1
  81. package/dist/model/unstakeStepType.d.ts +1 -1
  82. package/dist/model/unstakeStepType.js +1 -1
  83. package/dist/model/validatorContractTypeEnum.d.ts +15 -0
  84. package/dist/model/validatorContractTypeEnum.js +19 -0
  85. package/dist/model/validatorInfo.d.ts +6 -1
  86. package/dist/model/validatorInfo.js +17 -2
  87. package/dist/model/{portfolioTableRow.d.ts → validatorInfoValidatorType.d.ts} +6 -10
  88. package/dist/model/validatorInfoValidatorType.js +33 -0
  89. package/dist/model/validatorInfoValidatorTypeContract.d.ts +29 -0
  90. package/dist/model/validatorInfoValidatorTypeContract.js +33 -0
  91. package/dist/model/validatorKeyHolderEnum.d.ts +15 -0
  92. package/dist/model/validatorKeyHolderEnum.js +19 -0
  93. package/dist/model/webhookPayloadRFQAvailable.d.ts +2 -2
  94. package/dist/model/webhookPayloadRFQAvailable.js +1 -1
  95. package/dist/model/webhookPayloadRFQEscrowReleasedDetails.d.ts +1 -0
  96. package/dist/model/webhookPayloadRFQEscrowReleasedDetails.js +5 -0
  97. package/dist/model/webhookPayloadRFQValidatorWithdrawalChange.d.ts +2 -2
  98. package/dist/model/webhookPayloadRFQValidatorWithdrawalChange.js +1 -1
  99. package/dist/model/{webhookPayloadRFQValidatorWithdrawalChangeDetailsInner.d.ts → webhookPayloadRFQValidatorWithdrawalChangeDetails.d.ts} +1 -2
  100. package/dist/model/{webhookPayloadRFQValidatorWithdrawalChangeDetailsInner.js → webhookPayloadRFQValidatorWithdrawalChangeDetails.js} +6 -11
  101. package/dist/model/withdrawalStep.d.ts +1 -1
  102. package/dist/model/withdrawalStepType.d.ts +1 -1
  103. package/dist/model/withdrawalStepType.js +1 -1
  104. package/model/{createRFQDocumentForSellerRequest.ts → createRFQDocumentRequest.ts} +2 -2
  105. package/model/exitEstimateBase.ts +37 -0
  106. package/model/{exitEstimate.ts → exitEstimateSeller.ts} +7 -7
  107. package/model/models.ts +45 -33
  108. package/model/portfolioEntity.ts +46 -0
  109. package/model/rFQDocumentBase.ts +7 -11
  110. package/model/rFQDocumentBuyer.ts +15 -12
  111. package/model/{rFQDocumentBaseValidatorsInner.ts → rFQDocumentBuyerAllOfValidators.ts} +7 -7
  112. package/model/rFQDocumentSeller.ts +24 -15
  113. package/model/{registerRewardRecipientSettlementRequestInner.ts → rFQDocumentSellerAllOfValidators.ts} +15 -8
  114. package/model/rFQDocumentStatusEnum.ts +20 -0
  115. package/model/{acceptBidForRFQDocumentRequest.ts → rejectQuoteForRFQDocumentRequest.ts} +2 -2
  116. package/model/settlementStepEscrowPayment.ts +6 -0
  117. package/model/settlementStepEscrowReleased.ts +12 -0
  118. package/model/{settlementStepRewardRecipientSettlementInner.ts → settlementStepWithdrawalRecipientSettlementInner.ts} +2 -2
  119. package/model/settlementSteps.ts +5 -5
  120. package/model/stakeStep.ts +1 -1
  121. package/model/stepStatus.ts +1 -1
  122. package/model/{rFQMarketPlaceMetadata.ts → submitQuoteForRFQDocumentRequest.ts} +5 -17
  123. package/model/tokenEnum.ts +1 -3
  124. package/model/unstakeStep.ts +1 -1
  125. package/model/unstakeStepType.ts +1 -1
  126. package/model/validatorContractTypeEnum.ts +18 -0
  127. package/model/validatorInfo.ts +23 -3
  128. package/model/validatorInfoValidatorType.ts +41 -0
  129. package/model/validatorInfoValidatorTypeContract.ts +40 -0
  130. package/model/validatorKeyHolderEnum.ts +18 -0
  131. package/model/webhookPayloadRFQAvailable.ts +3 -3
  132. package/model/webhookPayloadRFQEscrowReleasedDetails.ts +6 -0
  133. package/model/webhookPayloadRFQValidatorWithdrawalChange.ts +3 -3
  134. package/model/{webhookPayloadRFQValidatorWithdrawalChangeDetailsInner.ts → webhookPayloadRFQValidatorWithdrawalChangeDetails.ts} +2 -8
  135. package/model/withdrawalStep.ts +1 -1
  136. package/model/withdrawalStepType.ts +1 -1
  137. package/package.json +1 -1
  138. package/api/stakingPartnerValidatorKeysApi.ts +0 -292
  139. package/dist/api/stakingPartnerValidatorKeysApi.js +0 -265
  140. package/dist/model/getRewardsStatistics200ResponseInner.js +0 -48
  141. package/dist/model/getValidatorKeys200ResponseInner.d.ts +0 -40
  142. package/dist/model/getValidatorKeys200ResponseInner.js +0 -43
  143. package/dist/model/portfolioTableRow.js +0 -58
  144. package/dist/model/rFQMarketPlaceMetadata.d.ts +0 -32
  145. package/dist/model/rFQMarketPlaceMetadata.js +0 -33
  146. package/dist/model/registerRewardRecipientSettlementRequestInner.js +0 -33
  147. package/model/getRewardsStatistics200ResponseInner.ts +0 -55
  148. package/model/getValidatorKeys200ResponseInner.ts +0 -61
  149. package/model/portfolioTableRow.ts +0 -70
@@ -14,7 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  return (mod && mod.__esModule) ? mod : { "default": mod };
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.RfqMarketPlaceBuyersApi = exports.RfqMarketPlaceBuyersApiApiKeys = void 0;
17
+ exports.ValidatorMarketplaceBuyersApi = exports.ValidatorMarketplaceBuyersApiApiKeys = void 0;
18
18
  const request_1 = __importDefault(require("request"));
19
19
  const models_1 = require("../model/models");
20
20
  const models_2 = require("../model/models");
@@ -23,11 +23,11 @@ let defaultBasePath = '/v1';
23
23
  // ===============================================
24
24
  // This file is autogenerated - Please do not edit
25
25
  // ===============================================
26
- var RfqMarketPlaceBuyersApiApiKeys;
27
- (function (RfqMarketPlaceBuyersApiApiKeys) {
28
- RfqMarketPlaceBuyersApiApiKeys[RfqMarketPlaceBuyersApiApiKeys["ApiKeyAuth"] = 0] = "ApiKeyAuth";
29
- })(RfqMarketPlaceBuyersApiApiKeys || (exports.RfqMarketPlaceBuyersApiApiKeys = RfqMarketPlaceBuyersApiApiKeys = {}));
30
- class RfqMarketPlaceBuyersApi {
26
+ var ValidatorMarketplaceBuyersApiApiKeys;
27
+ (function (ValidatorMarketplaceBuyersApiApiKeys) {
28
+ ValidatorMarketplaceBuyersApiApiKeys[ValidatorMarketplaceBuyersApiApiKeys["ApiKeyAuth"] = 0] = "ApiKeyAuth";
29
+ })(ValidatorMarketplaceBuyersApiApiKeys || (exports.ValidatorMarketplaceBuyersApiApiKeys = ValidatorMarketplaceBuyersApiApiKeys = {}));
30
+ class ValidatorMarketplaceBuyersApi {
31
31
  constructor(basePathOrUsername, password, basePath) {
32
32
  this._basePath = defaultBasePath;
33
33
  this._defaultHeaders = {};
@@ -68,7 +68,7 @@ class RfqMarketPlaceBuyersApi {
68
68
  this.authentications.default = auth;
69
69
  }
70
70
  setApiKey(key, value) {
71
- this.authentications[RfqMarketPlaceBuyersApiApiKeys[key]].apiKey = value;
71
+ this.authentications[ValidatorMarketplaceBuyersApiApiKeys[key]].apiKey = value;
72
72
  }
73
73
  set accessToken(accessToken) {
74
74
  this.authentications.bearerTokenAuth.accessToken = accessToken;
@@ -78,11 +78,11 @@ class RfqMarketPlaceBuyersApi {
78
78
  }
79
79
  /**
80
80
  *
81
- * @summary Retrieve a specific RFQ document for bidding
81
+ * @summary Retrieve a specific RFQ
82
82
  * @param rfqId
83
83
  */
84
84
  async getRFQDocumentForBuyer(rfqId, options = { headers: {} }) {
85
- const localVarPath = this.basePath + '/rfqMarketPlace/buyers/documents/{rfqId}'
85
+ const localVarPath = this.basePath + '/validatorMarketplace/buyers/documents/{rfqId}'
86
86
  .replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
87
87
  let localVarQueryParameters = {};
88
88
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
@@ -144,10 +144,11 @@ class RfqMarketPlaceBuyersApi {
144
144
  }
145
145
  /**
146
146
  *
147
- * @summary List all available RFQ documents for bidding
147
+ * @summary List RFQs
148
+ * @param status Filter by RFQ status
148
149
  */
149
- async listAvailableRFQDocumentsForBuyer(options = { headers: {} }) {
150
- const localVarPath = this.basePath + '/rfqMarketPlace/buyers/documents';
150
+ async listRFQDocumentsForBuyer(status, options = { headers: {} }) {
151
+ const localVarPath = this.basePath + '/validatorMarketplace/buyers/documents';
151
152
  let localVarQueryParameters = {};
152
153
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
153
154
  const produces = ['application/json'];
@@ -159,6 +160,13 @@ class RfqMarketPlaceBuyersApi {
159
160
  localVarHeaderParams.Accept = produces.join(',');
160
161
  }
161
162
  let localVarFormParams = {};
163
+ // verify required parameter 'status' is not null or undefined
164
+ if (status === null || status === undefined) {
165
+ throw new Error('Required parameter status was null or undefined when calling listRFQDocumentsForBuyer.');
166
+ }
167
+ if (status !== undefined) {
168
+ localVarQueryParameters['status'] = models_1.ObjectSerializer.serialize(status, "'open' | 'submitted' | 'accepted' | 'outbid' | 'rejected' | 'expired'");
169
+ }
162
170
  Object.assign(localVarHeaderParams, options.headers);
163
171
  let localVarUseFormData = false;
164
172
  let localVarRequestOptions = {
@@ -204,12 +212,12 @@ class RfqMarketPlaceBuyersApi {
204
212
  }
205
213
  /**
206
214
  *
207
- * @summary Provide an escrow hash for an RFQ document
215
+ * @summary Provide a transaction hash for an escrow deposit as part of settlement
208
216
  * @param rfqId
209
217
  * @param provideEscrowHashForRFQDocumentRequest
210
218
  */
211
219
  async provideEscrowHashForRFQDocument(rfqId, provideEscrowHashForRFQDocumentRequest, options = { headers: {} }) {
212
- const localVarPath = this.basePath + '/rfqMarketPlace/buyers/documents/{rfqId}/provideEscrowHash'
220
+ const localVarPath = this.basePath + '/validatorMarketplace/buyers/documents/{rfqId}/provideEscrowHash'
213
221
  .replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
214
222
  let localVarQueryParameters = {};
215
223
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
@@ -275,12 +283,12 @@ class RfqMarketPlaceBuyersApi {
275
283
  }
276
284
  /**
277
285
  *
278
- * @summary Submit a quote for an RFQ document
286
+ * @summary Submit a quote for an RFQ in ETH
279
287
  * @param rfqId
280
- * @param quote
288
+ * @param submitQuoteForRFQDocumentRequest
281
289
  */
282
- async submitQuoteForRFQDocument(rfqId, quote, options = { headers: {} }) {
283
- const localVarPath = this.basePath + '/rfqMarketPlace/buyers/documents/{rfqId}/submitQuote'
290
+ async submitQuoteForRFQDocument(rfqId, submitQuoteForRFQDocumentRequest, options = { headers: {} }) {
291
+ const localVarPath = this.basePath + '/validatorMarketplace/buyers/quotes/{rfqId}/submitQuote'
284
292
  .replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
285
293
  let localVarQueryParameters = {};
286
294
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
@@ -289,20 +297,20 @@ class RfqMarketPlaceBuyersApi {
289
297
  if (rfqId === null || rfqId === undefined) {
290
298
  throw new Error('Required parameter rfqId was null or undefined when calling submitQuoteForRFQDocument.');
291
299
  }
292
- // verify required parameter 'quote' is not null or undefined
293
- if (quote === null || quote === undefined) {
294
- throw new Error('Required parameter quote was null or undefined when calling submitQuoteForRFQDocument.');
300
+ // verify required parameter 'submitQuoteForRFQDocumentRequest' is not null or undefined
301
+ if (submitQuoteForRFQDocumentRequest === null || submitQuoteForRFQDocumentRequest === undefined) {
302
+ throw new Error('Required parameter submitQuoteForRFQDocumentRequest was null or undefined when calling submitQuoteForRFQDocument.');
295
303
  }
296
304
  Object.assign(localVarHeaderParams, options.headers);
297
305
  let localVarUseFormData = false;
298
306
  let localVarRequestOptions = {
299
- method: 'POST',
307
+ method: 'PATCH',
300
308
  qs: localVarQueryParameters,
301
309
  headers: localVarHeaderParams,
302
310
  uri: localVarPath,
303
311
  useQuerystring: this._useQuerystring,
304
312
  json: true,
305
- body: models_1.ObjectSerializer.serialize(quote, "Quote")
313
+ body: models_1.ObjectSerializer.serialize(submitQuoteForRFQDocumentRequest, "SubmitQuoteForRFQDocumentRequest")
306
314
  };
307
315
  let authenticationPromise = Promise.resolve();
308
316
  authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
@@ -337,4 +345,4 @@ class RfqMarketPlaceBuyersApi {
337
345
  });
338
346
  }
339
347
  }
340
- exports.RfqMarketPlaceBuyersApi = RfqMarketPlaceBuyersApi;
348
+ exports.ValidatorMarketplaceBuyersApi = ValidatorMarketplaceBuyersApi;
@@ -11,16 +11,16 @@
11
11
  */
12
12
  /// <reference types="node" />
13
13
  import http from 'http';
14
- import { AcceptBidForRFQDocumentRequest } from '../model/acceptBidForRFQDocumentRequest';
15
- import { CreateRFQDocumentForSellerRequest } from '../model/createRFQDocumentForSellerRequest';
14
+ import { CreateRFQDocumentRequest } from '../model/createRFQDocumentRequest';
15
+ import { ProvideEscrowHashForRFQDocumentRequest } from '../model/provideEscrowHashForRFQDocumentRequest';
16
16
  import { RFQDocumentSeller } from '../model/rFQDocumentSeller';
17
- import { RegisterRewardRecipientSettlementRequestInner } from '../model/registerRewardRecipientSettlementRequestInner';
17
+ import { RejectQuoteForRFQDocumentRequest } from '../model/rejectQuoteForRFQDocumentRequest';
18
18
  import { Interceptor } from '../model/models';
19
19
  import { HttpBearerAuth, ApiKeyAuth, JWTAuth } from '../model/models';
20
- export declare enum RfqMarketPlaceSellersApiApiKeys {
20
+ export declare enum ValidatorMarketplaceSellersApiApiKeys {
21
21
  ApiKeyAuth = 0
22
22
  }
23
- export declare class RfqMarketPlaceSellersApi {
23
+ export declare class ValidatorMarketplaceSellersApi {
24
24
  protected _basePath: string;
25
25
  protected _defaultHeaders: any;
26
26
  protected _useQuerystring: boolean;
@@ -42,11 +42,11 @@ export declare class RfqMarketPlaceSellersApi {
42
42
  private addInterceptor;
43
43
  /**
44
44
  *
45
- * @summary Accept a bid on an RFQ document by the seller
45
+ * @summary Accept quote
46
46
  * @param rfqId
47
- * @param acceptBidForRFQDocumentRequest
47
+ * @param rejectQuoteForRFQDocumentRequest
48
48
  */
49
- acceptBidForRFQDocument(rfqId: string, acceptBidForRFQDocumentRequest: AcceptBidForRFQDocumentRequest, options?: {
49
+ acceptQuoteForRFQDocument(rfqId: string, rejectQuoteForRFQDocumentRequest: RejectQuoteForRFQDocumentRequest, options?: {
50
50
  headers: {
51
51
  [name: string]: string;
52
52
  };
@@ -56,63 +56,64 @@ export declare class RfqMarketPlaceSellersApi {
56
56
  }>;
57
57
  /**
58
58
  *
59
- * @summary Create a new RFQ document for bidding
60
- * @param createRFQDocumentForSellerRequest
59
+ * @summary Create a new RFQ
60
+ * @param createRFQDocumentRequest
61
61
  */
62
- createRFQDocumentForSeller(createRFQDocumentForSellerRequest: CreateRFQDocumentForSellerRequest, options?: {
62
+ createRFQDocument(createRFQDocumentRequest: CreateRFQDocumentRequest, options?: {
63
63
  headers: {
64
64
  [name: string]: string;
65
65
  };
66
66
  }): Promise<{
67
67
  response: http.IncomingMessage;
68
- body?: any;
68
+ body: RFQDocumentSeller;
69
69
  }>;
70
70
  /**
71
71
  *
72
- * @summary Delete an RFQ document
72
+ * @summary Retrieve a specific RFQ by ID for the seller
73
73
  * @param rfqId
74
74
  */
75
- deleteRFQDocumentForSeller(rfqId: string, options?: {
75
+ getRFQDocument(rfqId: string, options?: {
76
76
  headers: {
77
77
  [name: string]: string;
78
78
  };
79
79
  }): Promise<{
80
80
  response: http.IncomingMessage;
81
- body?: any;
81
+ body: RFQDocumentSeller;
82
82
  }>;
83
83
  /**
84
84
  *
85
- * @summary Retrieve a specific RFQ document by ID for the seller
86
- * @param rfqId
85
+ * @summary List all RFQs posted by the seller with optional status filter
86
+ * @param status Filter by RFQ status
87
87
  */
88
- getRFQDocumentForSeller(rfqId: string, options?: {
88
+ listRFQDocuments(status?: 'open' | 'accepted' | 'escrow_paid' | 'reward_recipient_settling' | 'reward_recipient_settled' | 'escrow_released', options?: {
89
89
  headers: {
90
90
  [name: string]: string;
91
91
  };
92
92
  }): Promise<{
93
93
  response: http.IncomingMessage;
94
- body: RFQDocumentSeller;
94
+ body: Array<RFQDocumentSeller>;
95
95
  }>;
96
96
  /**
97
97
  *
98
- * @summary List all RFQ documents posted by the seller with optional status filter
99
- * @param status Filter by document status
98
+ * @summary Register withdrawal recipient settlement hash for an RFQ
99
+ * @param rfqId
100
+ * @param provideEscrowHashForRFQDocumentRequest
100
101
  */
101
- listRFQDocumentsForSeller(status?: 'open' | 'accepted' | 'escrow_paid' | 'reward_recipient_settling' | 'reward_recipient_settled' | 'escrow_released', options?: {
102
+ registerWithdrawalRecipientSettlement(rfqId: string, provideEscrowHashForRFQDocumentRequest: ProvideEscrowHashForRFQDocumentRequest, options?: {
102
103
  headers: {
103
104
  [name: string]: string;
104
105
  };
105
106
  }): Promise<{
106
107
  response: http.IncomingMessage;
107
- body: Array<RFQDocumentSeller>;
108
+ body?: any;
108
109
  }>;
109
110
  /**
110
111
  *
111
- * @summary Register reward recipient settlement hashes for an RFQ document
112
+ * @summary Reject Quote
112
113
  * @param rfqId
113
- * @param registerRewardRecipientSettlementRequestInner
114
+ * @param rejectQuoteForRFQDocumentRequest
114
115
  */
115
- registerRewardRecipientSettlement(rfqId: string, registerRewardRecipientSettlementRequestInner: Array<RegisterRewardRecipientSettlementRequestInner>, options?: {
116
+ rejectQuoteForRFQDocument(rfqId: string, rejectQuoteForRFQDocumentRequest: RejectQuoteForRFQDocumentRequest, options?: {
116
117
  headers: {
117
118
  [name: string]: string;
118
119
  };
@@ -14,7 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  return (mod && mod.__esModule) ? mod : { "default": mod };
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.RfqMarketPlaceSellersApi = exports.RfqMarketPlaceSellersApiApiKeys = void 0;
17
+ exports.ValidatorMarketplaceSellersApi = exports.ValidatorMarketplaceSellersApiApiKeys = void 0;
18
18
  const request_1 = __importDefault(require("request"));
19
19
  const models_1 = require("../model/models");
20
20
  const models_2 = require("../model/models");
@@ -23,11 +23,11 @@ let defaultBasePath = '/v1';
23
23
  // ===============================================
24
24
  // This file is autogenerated - Please do not edit
25
25
  // ===============================================
26
- var RfqMarketPlaceSellersApiApiKeys;
27
- (function (RfqMarketPlaceSellersApiApiKeys) {
28
- RfqMarketPlaceSellersApiApiKeys[RfqMarketPlaceSellersApiApiKeys["ApiKeyAuth"] = 0] = "ApiKeyAuth";
29
- })(RfqMarketPlaceSellersApiApiKeys || (exports.RfqMarketPlaceSellersApiApiKeys = RfqMarketPlaceSellersApiApiKeys = {}));
30
- class RfqMarketPlaceSellersApi {
26
+ var ValidatorMarketplaceSellersApiApiKeys;
27
+ (function (ValidatorMarketplaceSellersApiApiKeys) {
28
+ ValidatorMarketplaceSellersApiApiKeys[ValidatorMarketplaceSellersApiApiKeys["ApiKeyAuth"] = 0] = "ApiKeyAuth";
29
+ })(ValidatorMarketplaceSellersApiApiKeys || (exports.ValidatorMarketplaceSellersApiApiKeys = ValidatorMarketplaceSellersApiApiKeys = {}));
30
+ class ValidatorMarketplaceSellersApi {
31
31
  constructor(basePathOrUsername, password, basePath) {
32
32
  this._basePath = defaultBasePath;
33
33
  this._defaultHeaders = {};
@@ -68,7 +68,7 @@ class RfqMarketPlaceSellersApi {
68
68
  this.authentications.default = auth;
69
69
  }
70
70
  setApiKey(key, value) {
71
- this.authentications[RfqMarketPlaceSellersApiApiKeys[key]].apiKey = value;
71
+ this.authentications[ValidatorMarketplaceSellersApiApiKeys[key]].apiKey = value;
72
72
  }
73
73
  set accessToken(accessToken) {
74
74
  this.authentications.bearerTokenAuth.accessToken = accessToken;
@@ -78,12 +78,12 @@ class RfqMarketPlaceSellersApi {
78
78
  }
79
79
  /**
80
80
  *
81
- * @summary Accept a bid on an RFQ document by the seller
81
+ * @summary Accept quote
82
82
  * @param rfqId
83
- * @param acceptBidForRFQDocumentRequest
83
+ * @param rejectQuoteForRFQDocumentRequest
84
84
  */
85
- async acceptBidForRFQDocument(rfqId, acceptBidForRFQDocumentRequest, options = { headers: {} }) {
86
- const localVarPath = this.basePath + '/rfqMarketPlace/sellers/documents/{rfqId}/acceptBid'
85
+ async acceptQuoteForRFQDocument(rfqId, rejectQuoteForRFQDocumentRequest, options = { headers: {} }) {
86
+ const localVarPath = this.basePath + '/validatorMarketplace/sellers/documents/{rfqId}/acceptQuote'
87
87
  .replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
88
88
  let localVarQueryParameters = {};
89
89
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
@@ -98,22 +98,22 @@ class RfqMarketPlaceSellersApi {
98
98
  let localVarFormParams = {};
99
99
  // verify required parameter 'rfqId' is not null or undefined
100
100
  if (rfqId === null || rfqId === undefined) {
101
- throw new Error('Required parameter rfqId was null or undefined when calling acceptBidForRFQDocument.');
101
+ throw new Error('Required parameter rfqId was null or undefined when calling acceptQuoteForRFQDocument.');
102
102
  }
103
- // verify required parameter 'acceptBidForRFQDocumentRequest' is not null or undefined
104
- if (acceptBidForRFQDocumentRequest === null || acceptBidForRFQDocumentRequest === undefined) {
105
- throw new Error('Required parameter acceptBidForRFQDocumentRequest was null or undefined when calling acceptBidForRFQDocument.');
103
+ // verify required parameter 'rejectQuoteForRFQDocumentRequest' is not null or undefined
104
+ if (rejectQuoteForRFQDocumentRequest === null || rejectQuoteForRFQDocumentRequest === undefined) {
105
+ throw new Error('Required parameter rejectQuoteForRFQDocumentRequest was null or undefined when calling acceptQuoteForRFQDocument.');
106
106
  }
107
107
  Object.assign(localVarHeaderParams, options.headers);
108
108
  let localVarUseFormData = false;
109
109
  let localVarRequestOptions = {
110
- method: 'POST',
110
+ method: 'PATCH',
111
111
  qs: localVarQueryParameters,
112
112
  headers: localVarHeaderParams,
113
113
  uri: localVarPath,
114
114
  useQuerystring: this._useQuerystring,
115
115
  json: true,
116
- body: models_1.ObjectSerializer.serialize(acceptBidForRFQDocumentRequest, "AcceptBidForRFQDocumentRequest")
116
+ body: models_1.ObjectSerializer.serialize(rejectQuoteForRFQDocumentRequest, "RejectQuoteForRFQDocumentRequest")
117
117
  };
118
118
  let authenticationPromise = Promise.resolve();
119
119
  authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
@@ -149,11 +149,11 @@ class RfqMarketPlaceSellersApi {
149
149
  }
150
150
  /**
151
151
  *
152
- * @summary Create a new RFQ document for bidding
153
- * @param createRFQDocumentForSellerRequest
152
+ * @summary Create a new RFQ
153
+ * @param createRFQDocumentRequest
154
154
  */
155
- async createRFQDocumentForSeller(createRFQDocumentForSellerRequest, options = { headers: {} }) {
156
- const localVarPath = this.basePath + '/rfqMarketPlace/sellers/documents';
155
+ async createRFQDocument(createRFQDocumentRequest, options = { headers: {} }) {
156
+ const localVarPath = this.basePath + '/validatorMarketplace/sellers/documents';
157
157
  let localVarQueryParameters = {};
158
158
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
159
159
  const produces = ['application/json'];
@@ -165,9 +165,9 @@ class RfqMarketPlaceSellersApi {
165
165
  localVarHeaderParams.Accept = produces.join(',');
166
166
  }
167
167
  let localVarFormParams = {};
168
- // verify required parameter 'createRFQDocumentForSellerRequest' is not null or undefined
169
- if (createRFQDocumentForSellerRequest === null || createRFQDocumentForSellerRequest === undefined) {
170
- throw new Error('Required parameter createRFQDocumentForSellerRequest was null or undefined when calling createRFQDocumentForSeller.');
168
+ // verify required parameter 'createRFQDocumentRequest' is not null or undefined
169
+ if (createRFQDocumentRequest === null || createRFQDocumentRequest === undefined) {
170
+ throw new Error('Required parameter createRFQDocumentRequest was null or undefined when calling createRFQDocument.');
171
171
  }
172
172
  Object.assign(localVarHeaderParams, options.headers);
173
173
  let localVarUseFormData = false;
@@ -178,7 +178,7 @@ class RfqMarketPlaceSellersApi {
178
178
  uri: localVarPath,
179
179
  useQuerystring: this._useQuerystring,
180
180
  json: true,
181
- body: models_1.ObjectSerializer.serialize(createRFQDocumentForSellerRequest, "CreateRFQDocumentForSellerRequest")
181
+ body: models_1.ObjectSerializer.serialize(createRFQDocumentRequest, "CreateRFQDocumentRequest")
182
182
  };
183
183
  let authenticationPromise = Promise.resolve();
184
184
  authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
@@ -202,6 +202,7 @@ class RfqMarketPlaceSellersApi {
202
202
  }
203
203
  else {
204
204
  if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
205
+ body = models_1.ObjectSerializer.deserialize(body, "RFQDocumentSeller");
205
206
  resolve({ response: response, body: body });
206
207
  }
207
208
  else {
@@ -214,11 +215,11 @@ class RfqMarketPlaceSellersApi {
214
215
  }
215
216
  /**
216
217
  *
217
- * @summary Delete an RFQ document
218
+ * @summary Retrieve a specific RFQ by ID for the seller
218
219
  * @param rfqId
219
220
  */
220
- async deleteRFQDocumentForSeller(rfqId, options = { headers: {} }) {
221
- const localVarPath = this.basePath + '/rfqMarketPlace/sellers/documents/{rfqId}'
221
+ async getRFQDocument(rfqId, options = { headers: {} }) {
222
+ const localVarPath = this.basePath + '/validatorMarketplace/sellers/documents/{rfqId}'
222
223
  .replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
223
224
  let localVarQueryParameters = {};
224
225
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
@@ -233,12 +234,12 @@ class RfqMarketPlaceSellersApi {
233
234
  let localVarFormParams = {};
234
235
  // verify required parameter 'rfqId' is not null or undefined
235
236
  if (rfqId === null || rfqId === undefined) {
236
- throw new Error('Required parameter rfqId was null or undefined when calling deleteRFQDocumentForSeller.');
237
+ throw new Error('Required parameter rfqId was null or undefined when calling getRFQDocument.');
237
238
  }
238
239
  Object.assign(localVarHeaderParams, options.headers);
239
240
  let localVarUseFormData = false;
240
241
  let localVarRequestOptions = {
241
- method: 'DELETE',
242
+ method: 'GET',
242
243
  qs: localVarQueryParameters,
243
244
  headers: localVarHeaderParams,
244
245
  uri: localVarPath,
@@ -267,6 +268,7 @@ class RfqMarketPlaceSellersApi {
267
268
  }
268
269
  else {
269
270
  if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
271
+ body = models_1.ObjectSerializer.deserialize(body, "RFQDocumentSeller");
270
272
  resolve({ response: response, body: body });
271
273
  }
272
274
  else {
@@ -279,12 +281,11 @@ class RfqMarketPlaceSellersApi {
279
281
  }
280
282
  /**
281
283
  *
282
- * @summary Retrieve a specific RFQ document by ID for the seller
283
- * @param rfqId
284
+ * @summary List all RFQs posted by the seller with optional status filter
285
+ * @param status Filter by RFQ status
284
286
  */
285
- async getRFQDocumentForSeller(rfqId, options = { headers: {} }) {
286
- const localVarPath = this.basePath + '/rfqMarketPlace/sellers/documents/{rfqId}'
287
- .replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
287
+ async listRFQDocuments(status, options = { headers: {} }) {
288
+ const localVarPath = this.basePath + '/validatorMarketplace/sellers/documents';
288
289
  let localVarQueryParameters = {};
289
290
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
290
291
  const produces = ['application/json'];
@@ -296,9 +297,8 @@ class RfqMarketPlaceSellersApi {
296
297
  localVarHeaderParams.Accept = produces.join(',');
297
298
  }
298
299
  let localVarFormParams = {};
299
- // verify required parameter 'rfqId' is not null or undefined
300
- if (rfqId === null || rfqId === undefined) {
301
- throw new Error('Required parameter rfqId was null or undefined when calling getRFQDocumentForSeller.');
300
+ if (status !== undefined) {
301
+ localVarQueryParameters['status'] = models_1.ObjectSerializer.serialize(status, "'open' | 'accepted' | 'escrow_paid' | 'reward_recipient_settling' | 'reward_recipient_settled' | 'escrow_released'");
302
302
  }
303
303
  Object.assign(localVarHeaderParams, options.headers);
304
304
  let localVarUseFormData = false;
@@ -332,7 +332,7 @@ class RfqMarketPlaceSellersApi {
332
332
  }
333
333
  else {
334
334
  if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
335
- body = models_1.ObjectSerializer.deserialize(body, "RFQDocumentSeller");
335
+ body = models_1.ObjectSerializer.deserialize(body, "Array<RFQDocumentSeller>");
336
336
  resolve({ response: response, body: body });
337
337
  }
338
338
  else {
@@ -345,11 +345,13 @@ class RfqMarketPlaceSellersApi {
345
345
  }
346
346
  /**
347
347
  *
348
- * @summary List all RFQ documents posted by the seller with optional status filter
349
- * @param status Filter by document status
348
+ * @summary Register withdrawal recipient settlement hash for an RFQ
349
+ * @param rfqId
350
+ * @param provideEscrowHashForRFQDocumentRequest
350
351
  */
351
- async listRFQDocumentsForSeller(status, options = { headers: {} }) {
352
- const localVarPath = this.basePath + '/rfqMarketPlace/sellers/documents';
352
+ async registerWithdrawalRecipientSettlement(rfqId, provideEscrowHashForRFQDocumentRequest, options = { headers: {} }) {
353
+ const localVarPath = this.basePath + '/validatorMarketplace/sellers/documents/{rfqId}/registerWithdrawalRecipientSettlement'
354
+ .replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
353
355
  let localVarQueryParameters = {};
354
356
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
355
357
  const produces = ['application/json'];
@@ -361,18 +363,24 @@ class RfqMarketPlaceSellersApi {
361
363
  localVarHeaderParams.Accept = produces.join(',');
362
364
  }
363
365
  let localVarFormParams = {};
364
- if (status !== undefined) {
365
- localVarQueryParameters['status'] = models_1.ObjectSerializer.serialize(status, "'open' | 'accepted' | 'escrow_paid' | 'reward_recipient_settling' | 'reward_recipient_settled' | 'escrow_released'");
366
+ // verify required parameter 'rfqId' is not null or undefined
367
+ if (rfqId === null || rfqId === undefined) {
368
+ throw new Error('Required parameter rfqId was null or undefined when calling registerWithdrawalRecipientSettlement.');
369
+ }
370
+ // verify required parameter 'provideEscrowHashForRFQDocumentRequest' is not null or undefined
371
+ if (provideEscrowHashForRFQDocumentRequest === null || provideEscrowHashForRFQDocumentRequest === undefined) {
372
+ throw new Error('Required parameter provideEscrowHashForRFQDocumentRequest was null or undefined when calling registerWithdrawalRecipientSettlement.');
366
373
  }
367
374
  Object.assign(localVarHeaderParams, options.headers);
368
375
  let localVarUseFormData = false;
369
376
  let localVarRequestOptions = {
370
- method: 'GET',
377
+ method: 'PATCH',
371
378
  qs: localVarQueryParameters,
372
379
  headers: localVarHeaderParams,
373
380
  uri: localVarPath,
374
381
  useQuerystring: this._useQuerystring,
375
382
  json: true,
383
+ body: models_1.ObjectSerializer.serialize(provideEscrowHashForRFQDocumentRequest, "ProvideEscrowHashForRFQDocumentRequest")
376
384
  };
377
385
  let authenticationPromise = Promise.resolve();
378
386
  authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
@@ -396,7 +404,6 @@ class RfqMarketPlaceSellersApi {
396
404
  }
397
405
  else {
398
406
  if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
399
- body = models_1.ObjectSerializer.deserialize(body, "Array<RFQDocumentSeller>");
400
407
  resolve({ response: response, body: body });
401
408
  }
402
409
  else {
@@ -409,12 +416,12 @@ class RfqMarketPlaceSellersApi {
409
416
  }
410
417
  /**
411
418
  *
412
- * @summary Register reward recipient settlement hashes for an RFQ document
419
+ * @summary Reject Quote
413
420
  * @param rfqId
414
- * @param registerRewardRecipientSettlementRequestInner
421
+ * @param rejectQuoteForRFQDocumentRequest
415
422
  */
416
- async registerRewardRecipientSettlement(rfqId, registerRewardRecipientSettlementRequestInner, options = { headers: {} }) {
417
- const localVarPath = this.basePath + '/rfqMarketPlace/sellers/documents/{rfqId}/registerRewardRecipientSettlement'
423
+ async rejectQuoteForRFQDocument(rfqId, rejectQuoteForRFQDocumentRequest, options = { headers: {} }) {
424
+ const localVarPath = this.basePath + '/validatorMarketplace/buyers/documents/{rfqId}'
418
425
  .replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
419
426
  let localVarQueryParameters = {};
420
427
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
@@ -429,11 +436,11 @@ class RfqMarketPlaceSellersApi {
429
436
  let localVarFormParams = {};
430
437
  // verify required parameter 'rfqId' is not null or undefined
431
438
  if (rfqId === null || rfqId === undefined) {
432
- throw new Error('Required parameter rfqId was null or undefined when calling registerRewardRecipientSettlement.');
439
+ throw new Error('Required parameter rfqId was null or undefined when calling rejectQuoteForRFQDocument.');
433
440
  }
434
- // verify required parameter 'registerRewardRecipientSettlementRequestInner' is not null or undefined
435
- if (registerRewardRecipientSettlementRequestInner === null || registerRewardRecipientSettlementRequestInner === undefined) {
436
- throw new Error('Required parameter registerRewardRecipientSettlementRequestInner was null or undefined when calling registerRewardRecipientSettlement.');
441
+ // verify required parameter 'rejectQuoteForRFQDocumentRequest' is not null or undefined
442
+ if (rejectQuoteForRFQDocumentRequest === null || rejectQuoteForRFQDocumentRequest === undefined) {
443
+ throw new Error('Required parameter rejectQuoteForRFQDocumentRequest was null or undefined when calling rejectQuoteForRFQDocument.');
437
444
  }
438
445
  Object.assign(localVarHeaderParams, options.headers);
439
446
  let localVarUseFormData = false;
@@ -444,7 +451,7 @@ class RfqMarketPlaceSellersApi {
444
451
  uri: localVarPath,
445
452
  useQuerystring: this._useQuerystring,
446
453
  json: true,
447
- body: models_1.ObjectSerializer.serialize(registerRewardRecipientSettlementRequestInner, "Array<RegisterRewardRecipientSettlementRequestInner>")
454
+ body: models_1.ObjectSerializer.serialize(rejectQuoteForRFQDocumentRequest, "RejectQuoteForRFQDocumentRequest")
448
455
  };
449
456
  let authenticationPromise = Promise.resolve();
450
457
  authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
@@ -479,4 +486,4 @@ class RfqMarketPlaceSellersApi {
479
486
  });
480
487
  }
481
488
  }
482
- exports.RfqMarketPlaceSellersApi = RfqMarketPlaceSellersApi;
489
+ exports.ValidatorMarketplaceSellersApi = ValidatorMarketplaceSellersApi;
@@ -15,10 +15,10 @@ import { WebHookLookupAnswer } from '../model/webHookLookupAnswer';
15
15
  import { WebhookRegistration } from '../model/webhookRegistration';
16
16
  import { Interceptor } from '../model/models';
17
17
  import { HttpBearerAuth, ApiKeyAuth, JWTAuth } from '../model/models';
18
- export declare enum RfqMarketPlaceWebhooksApiApiKeys {
18
+ export declare enum ValidatorMarketplaceWebhooksApiApiKeys {
19
19
  ApiKeyAuth = 0
20
20
  }
21
- export declare class RfqMarketPlaceWebhooksApi {
21
+ export declare class ValidatorMarketplaceWebhooksApi {
22
22
  protected _basePath: string;
23
23
  protected _defaultHeaders: any;
24
24
  protected _useQuerystring: boolean;
@@ -14,7 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  return (mod && mod.__esModule) ? mod : { "default": mod };
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.RfqMarketPlaceWebhooksApi = exports.RfqMarketPlaceWebhooksApiApiKeys = void 0;
17
+ exports.ValidatorMarketplaceWebhooksApi = exports.ValidatorMarketplaceWebhooksApiApiKeys = void 0;
18
18
  const request_1 = __importDefault(require("request"));
19
19
  const models_1 = require("../model/models");
20
20
  const models_2 = require("../model/models");
@@ -23,11 +23,11 @@ let defaultBasePath = '/v1';
23
23
  // ===============================================
24
24
  // This file is autogenerated - Please do not edit
25
25
  // ===============================================
26
- var RfqMarketPlaceWebhooksApiApiKeys;
27
- (function (RfqMarketPlaceWebhooksApiApiKeys) {
28
- RfqMarketPlaceWebhooksApiApiKeys[RfqMarketPlaceWebhooksApiApiKeys["ApiKeyAuth"] = 0] = "ApiKeyAuth";
29
- })(RfqMarketPlaceWebhooksApiApiKeys || (exports.RfqMarketPlaceWebhooksApiApiKeys = RfqMarketPlaceWebhooksApiApiKeys = {}));
30
- class RfqMarketPlaceWebhooksApi {
26
+ var ValidatorMarketplaceWebhooksApiApiKeys;
27
+ (function (ValidatorMarketplaceWebhooksApiApiKeys) {
28
+ ValidatorMarketplaceWebhooksApiApiKeys[ValidatorMarketplaceWebhooksApiApiKeys["ApiKeyAuth"] = 0] = "ApiKeyAuth";
29
+ })(ValidatorMarketplaceWebhooksApiApiKeys || (exports.ValidatorMarketplaceWebhooksApiApiKeys = ValidatorMarketplaceWebhooksApiApiKeys = {}));
30
+ class ValidatorMarketplaceWebhooksApi {
31
31
  constructor(basePathOrUsername, password, basePath) {
32
32
  this._basePath = defaultBasePath;
33
33
  this._defaultHeaders = {};
@@ -68,7 +68,7 @@ class RfqMarketPlaceWebhooksApi {
68
68
  this.authentications.default = auth;
69
69
  }
70
70
  setApiKey(key, value) {
71
- this.authentications[RfqMarketPlaceWebhooksApiApiKeys[key]].apiKey = value;
71
+ this.authentications[ValidatorMarketplaceWebhooksApiApiKeys[key]].apiKey = value;
72
72
  }
73
73
  set accessToken(accessToken) {
74
74
  this.authentications.bearerTokenAuth.accessToken = accessToken;
@@ -82,7 +82,7 @@ class RfqMarketPlaceWebhooksApi {
82
82
  * @param webhookId Unique identifier of the registered webhook
83
83
  */
84
84
  async deleteWebhook(webhookId, options = { headers: {} }) {
85
- const localVarPath = this.basePath + '/rfqMarketPlace/webhooks/{webhookId}'
85
+ const localVarPath = this.basePath + '/validatorMarketplace/webhooks/{webhookId}'
86
86
  .replace('{' + 'webhookId' + '}', encodeURIComponent(String(webhookId)));
87
87
  let localVarQueryParameters = {};
88
88
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
@@ -146,7 +146,7 @@ class RfqMarketPlaceWebhooksApi {
146
146
  * @summary List all registered RFQ marketplace webhooks for the user
147
147
  */
148
148
  async listRegisteredWebhooks(options = { headers: {} }) {
149
- const localVarPath = this.basePath + '/rfqMarketPlace/webhooks';
149
+ const localVarPath = this.basePath + '/validatorMarketplace/webhooks';
150
150
  let localVarQueryParameters = {};
151
151
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
152
152
  const produces = ['application/json'];
@@ -207,7 +207,7 @@ class RfqMarketPlaceWebhooksApi {
207
207
  * @param webhookRegistration
208
208
  */
209
209
  async registerWebhook(webhookRegistration, options = { headers: {} }) {
210
- const localVarPath = this.basePath + '/rfqMarketPlace/webhooks';
210
+ const localVarPath = this.basePath + '/validatorMarketplace/webhooks';
211
211
  let localVarQueryParameters = {};
212
212
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
213
213
  const produces = ['application/json'];
@@ -267,4 +267,4 @@ class RfqMarketPlaceWebhooksApi {
267
267
  });
268
268
  }
269
269
  }
270
- exports.RfqMarketPlaceWebhooksApi = RfqMarketPlaceWebhooksApi;
270
+ exports.ValidatorMarketplaceWebhooksApi = ValidatorMarketplaceWebhooksApi;