@northstake/northstakeapi 1.0.19 → 1.0.20
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 +2 -0
- package/.openapi-generator/VERSION +1 -1
- package/api/validatorMarketplaceWebhooksApi.ts +1 -1
- package/api.ts +2 -0
- package/dist/api/apis.d.ts +0 -1
- package/dist/api/validatorMarketplaceWebhooksApi.d.ts +1 -1
- package/dist/api/validatorMarketplaceWebhooksApi.js +1 -1
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/model/models.d.ts +2 -2
- package/dist/model/models.js +6 -0
- package/dist/model/rFQWebhookEventType.d.ts +1 -1
- package/dist/model/webhookPayloadRFQWithdrawalClaimable.d.ts +31 -0
- package/dist/model/webhookPayloadRFQWithdrawalClaimable.js +38 -0
- package/dist/model/webhookPayloadRFQWithdrawalClaimableDetails.d.ts +29 -0
- package/dist/model/webhookPayloadRFQWithdrawalClaimableDetails.js +48 -0
- package/model/models.ts +10 -0
- package/model/rFQWebhookEventType.ts +2 -1
- package/model/webhookPayloadRFQWithdrawalClaimable.ts +47 -0
- package/model/webhookPayloadRFQWithdrawalClaimableDetails.ts +55 -0
- package/package.json +3 -3
package/.openapi-generator/FILES
CHANGED
|
@@ -103,6 +103,8 @@ model/webhookPayloadRFQValidatorExited.ts
|
|
|
103
103
|
model/webhookPayloadRFQValidatorExitedDetails.ts
|
|
104
104
|
model/webhookPayloadRFQValidatorWithdrawalChange.ts
|
|
105
105
|
model/webhookPayloadRFQValidatorWithdrawalChangeDetails.ts
|
|
106
|
+
model/webhookPayloadRFQWithdrawalClaimable.ts
|
|
107
|
+
model/webhookPayloadRFQWithdrawalClaimableDetails.ts
|
|
106
108
|
model/webhookRegistration.ts
|
|
107
109
|
model/webhookRegistrationDetails.ts
|
|
108
110
|
model/withdrawalRecipientSettlement.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.8.0-SNAPSHOT
|
|
@@ -264,7 +264,7 @@ export class ValidatorMarketplaceWebhooksApi {
|
|
|
264
264
|
} )
|
|
265
265
|
}
|
|
266
266
|
/**
|
|
267
|
-
* Registers a webhook URL for receiving push notifications from Northstake regarding events in the Validator Marketplace. When registered events occur, webhooks are triggered, and JSON payloads are sent as POST requests to the specified URL. A webhook can subscribe to different event types. Here are descriptions and example payloads for each supported event. These payloads are what will be POST\'ed to your Webhook endpoint. (For more details regarding webhook payloads, refer to the schemas for the WebhookPayload_XXXX types in documentation) - `RFQAvailable`: Triggered when a new RFQ document becomes available. The payload includes detailed information about validators, their balances, exit estimates, and other RFQ-specific details. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQAvailable\", \"details\": { \"id\": \"rfq123\", \"validators\": [ { \"validator_index\": 1, \"balance\": 32, \"exit_estimates\": [ { \"estimated_exit_time\": \"2025-03-01T12:00:00Z\", \"estimated_exit_transaction_deadline\": \"2025-03-01T12:00:00Z\", \"timestamp\": \"2024-03-01T12:00:00Z\" } ] } ], \"total_balance\": 32, \"payment_address\": \"0xabcd\", \"estimated_exit_transaction_deadline\": \"2025-03-01T12:00:00Z\", \"estimated_all_validators_exited_at\": \"2025-03-01T12:00:00Z\", \"unique_escrow_vault\": \"vault123\" } } ``` - `RFQBidReceived`: Triggered when a new bid is received on an RFQ. Includes the latest quote ID and the bid amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQBidReceived\", \"details\": { \"quote_id\": \"quote789\", \"amount\": 5000, \"timestamp\": \"2024-03-01T13:00:00Z\" } } ``` - `RFQBidAccepted`: Triggered when a bid is accepted. Includes the quote ID and the accepted amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQBidAccepted\", \"details\": { \"quote_id\": \"quote789\", \"amount\": 5000, \"timestamp\": \"2024-03-02T14:30:00Z\", \"escrow_address\": \"0x12345\" } } ``` - `RFQEscrowEvent`: Triggered when an escrow payment is made. Includes transaction hash and payment amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQEscrowEvent\", \"details\": { \"transaction_hash\": \"0xabc123\", \"amount\": 5000, \"timestamp\": \"2024-03-03T15:45:00Z\" } } ``` - `RFQTransferProposalReceived`: Notifies an RFQ seller of a new transfer proposal on their RFQ ```json { \"document_id\": \"rfq123\", \"event\": \"RFQTransferProposalReceived\", \"details\": { \"transaction_hash\": \"0xabc123\", \"timestamp\": \"2024-03-03T15:45:00Z\" \"proposal_id\": \"0x12345\"\" } } ``` - `RFQValidatorWithdrawalChange`: Triggered when a validator withdrawal status changes. Includes transaction hash and validator index. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQValidatorWithdrawalChange\", \"details\": [{ \"transaction_hash\": \"0xdef456\", \"validator_index\": 1, \"timestamp\": \"2024-03-04T16:50:00Z\" }, { \"transaction_hash\": \"0xdef457\", \"validator_index\": 2, \"timestamp\": \"2024-03-04T16:50:00Z\" }, { \"transaction_hash\": \"0xdef458\", \"validator_index\": 3, \"timestamp\": \"2024-03-04T16:50:00Z\" }, ] } ``` - `RFQEscrowReleased`: Triggered when escrow funds are released. Includes transaction hash and the released amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQEscrowReleased\", \"details\": { \"transaction_hash\": \"0xghi789\", \"amount\": 5000, \"timestamp\": \"2024-03-05T17:55:00Z\" } } ``` - `RFQValidatorExited `: Notifies the owner whenever a validator exits the ethereum network ```json { \"document_id\": \"rfq123\", \"event\": \"RFQValidatorExited\", \"details\": { \"validator_index\": \"0xghi789\", \"timestamp\": \"2024-03-05T17:55:00Z\" } } ``` **Webhook Security Note:** All webhook requests include a `Bearer` token in the `Authorization` header. Recipients must validate this token to ensure the notifications are from a trusted source.
|
|
267
|
+
* Registers a webhook URL for receiving push notifications from Northstake regarding events in the Validator Marketplace. When registered events occur, webhooks are triggered, and JSON payloads are sent as POST requests to the specified URL. A webhook can subscribe to different event types. Here are descriptions and example payloads for each supported event. These payloads are what will be POST\'ed to your Webhook endpoint. (For more details regarding webhook payloads, refer to the schemas for the WebhookPayload_XXXX types in documentation) - `RFQAvailable`: Triggered when a new RFQ document becomes available. The payload includes detailed information about validators, their balances, exit estimates, and other RFQ-specific details. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQAvailable\", \"details\": { \"id\": \"rfq123\", \"validators\": [ { \"validator_index\": 1, \"balance\": 32, \"exit_estimates\": [ { \"estimated_exit_time\": \"2025-03-01T12:00:00Z\", \"estimated_exit_transaction_deadline\": \"2025-03-01T12:00:00Z\", \"timestamp\": \"2024-03-01T12:00:00Z\" } ] } ], \"total_balance\": 32, \"payment_address\": \"0xabcd\", \"estimated_exit_transaction_deadline\": \"2025-03-01T12:00:00Z\", \"estimated_all_validators_exited_at\": \"2025-03-01T12:00:00Z\", \"unique_escrow_vault\": \"vault123\" } } ``` - `RFQBidReceived`: Triggered when a new bid is received on an RFQ. Includes the latest quote ID and the bid amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQBidReceived\", \"details\": { \"quote_id\": \"quote789\", \"amount\": 5000, \"timestamp\": \"2024-03-01T13:00:00Z\" } } ``` - `RFQBidAccepted`: Triggered when a bid is accepted. Includes the quote ID and the accepted amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQBidAccepted\", \"details\": { \"quote_id\": \"quote789\", \"amount\": 5000, \"timestamp\": \"2024-03-02T14:30:00Z\", \"escrow_address\": \"0x12345\" } } ``` - `RFQEscrowEvent`: Triggered when an escrow payment is made. Includes transaction hash and payment amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQEscrowEvent\", \"details\": { \"transaction_hash\": \"0xabc123\", \"amount\": 5000, \"timestamp\": \"2024-03-03T15:45:00Z\" } } ``` - `RFQTransferProposalReceived`: Notifies an RFQ seller of a new transfer proposal on their RFQ ```json { \"document_id\": \"rfq123\", \"event\": \"RFQTransferProposalReceived\", \"details\": { \"transaction_hash\": \"0xabc123\", \"timestamp\": \"2024-03-03T15:45:00Z\", \"proposal_id\": \"0x12345\"\" } } ``` - `RFQValidatorWithdrawalChange`: Triggered when a validator withdrawal status changes. Includes transaction hash and validator index. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQValidatorWithdrawalChange\", \"details\": [{ \"transaction_hash\": \"0xdef456\", \"validator_index\": 1, \"timestamp\": \"2024-03-04T16:50:00Z\" }, { \"transaction_hash\": \"0xdef457\", \"validator_index\": 2, \"timestamp\": \"2024-03-04T16:50:00Z\" }, { \"transaction_hash\": \"0xdef458\", \"validator_index\": 3, \"timestamp\": \"2024-03-04T16:50:00Z\" }, ] } ``` - `RFQEscrowReleased`: Triggered when escrow funds are released. Includes transaction hash and the released amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQEscrowReleased\", \"details\": { \"transaction_hash\": \"0xghi789\", \"amount\": 5000, \"timestamp\": \"2024-03-05T17:55:00Z\" } } ``` - `RFQValidatorExited `: Notifies the owner whenever a validator exits the ethereum network ```json { \"document_id\": \"rfq123\", \"event\": \"RFQValidatorExited\", \"details\": { \"validator_index\": \"0xghi789\", \"timestamp\": \"2024-03-05T17:55:00Z\" } } ``` **Webhook Security Note:** All webhook requests include a `Bearer` token in the `Authorization` header. Recipients must validate this token to ensure the notifications are from a trusted source.
|
|
268
268
|
* @summary Register a webhook to track Northstake validator marketplace events
|
|
269
269
|
* @param webhookRegistration
|
|
270
270
|
*/
|
package/api.ts
CHANGED
|
@@ -99,6 +99,8 @@ export * from './model/./webhookPayloadRFQValidatorExited';
|
|
|
99
99
|
export * from './model/./webhookPayloadRFQValidatorExitedDetails';
|
|
100
100
|
export * from './model/./webhookPayloadRFQValidatorWithdrawalChange';
|
|
101
101
|
export * from './model/./webhookPayloadRFQValidatorWithdrawalChangeDetails';
|
|
102
|
+
export * from './model/./webhookPayloadRFQWithdrawalClaimable';
|
|
103
|
+
export * from './model/./webhookPayloadRFQWithdrawalClaimableDetails';
|
|
102
104
|
export * from './model/./webhookRegistration';
|
|
103
105
|
export * from './model/./webhookRegistrationDetails';
|
|
104
106
|
export * from './model/./withdrawalRecipientSettlement';
|
package/dist/api/apis.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ export declare class ValidatorMarketplaceWebhooksApi {
|
|
|
62
62
|
status: number;
|
|
63
63
|
}>;
|
|
64
64
|
/**
|
|
65
|
-
* Registers a webhook URL for receiving push notifications from Northstake regarding events in the Validator Marketplace. When registered events occur, webhooks are triggered, and JSON payloads are sent as POST requests to the specified URL. A webhook can subscribe to different event types. Here are descriptions and example payloads for each supported event. These payloads are what will be POST\'ed to your Webhook endpoint. (For more details regarding webhook payloads, refer to the schemas for the WebhookPayload_XXXX types in documentation) - `RFQAvailable`: Triggered when a new RFQ document becomes available. The payload includes detailed information about validators, their balances, exit estimates, and other RFQ-specific details. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQAvailable\", \"details\": { \"id\": \"rfq123\", \"validators\": [ { \"validator_index\": 1, \"balance\": 32, \"exit_estimates\": [ { \"estimated_exit_time\": \"2025-03-01T12:00:00Z\", \"estimated_exit_transaction_deadline\": \"2025-03-01T12:00:00Z\", \"timestamp\": \"2024-03-01T12:00:00Z\" } ] } ], \"total_balance\": 32, \"payment_address\": \"0xabcd\", \"estimated_exit_transaction_deadline\": \"2025-03-01T12:00:00Z\", \"estimated_all_validators_exited_at\": \"2025-03-01T12:00:00Z\", \"unique_escrow_vault\": \"vault123\" } } ``` - `RFQBidReceived`: Triggered when a new bid is received on an RFQ. Includes the latest quote ID and the bid amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQBidReceived\", \"details\": { \"quote_id\": \"quote789\", \"amount\": 5000, \"timestamp\": \"2024-03-01T13:00:00Z\" } } ``` - `RFQBidAccepted`: Triggered when a bid is accepted. Includes the quote ID and the accepted amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQBidAccepted\", \"details\": { \"quote_id\": \"quote789\", \"amount\": 5000, \"timestamp\": \"2024-03-02T14:30:00Z\", \"escrow_address\": \"0x12345\" } } ``` - `RFQEscrowEvent`: Triggered when an escrow payment is made. Includes transaction hash and payment amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQEscrowEvent\", \"details\": { \"transaction_hash\": \"0xabc123\", \"amount\": 5000, \"timestamp\": \"2024-03-03T15:45:00Z\" } } ``` - `RFQTransferProposalReceived`: Notifies an RFQ seller of a new transfer proposal on their RFQ ```json { \"document_id\": \"rfq123\", \"event\": \"RFQTransferProposalReceived\", \"details\": { \"transaction_hash\": \"0xabc123\", \"timestamp\": \"2024-03-03T15:45:00Z\" \"proposal_id\": \"0x12345\"\" } } ``` - `RFQValidatorWithdrawalChange`: Triggered when a validator withdrawal status changes. Includes transaction hash and validator index. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQValidatorWithdrawalChange\", \"details\": [{ \"transaction_hash\": \"0xdef456\", \"validator_index\": 1, \"timestamp\": \"2024-03-04T16:50:00Z\" }, { \"transaction_hash\": \"0xdef457\", \"validator_index\": 2, \"timestamp\": \"2024-03-04T16:50:00Z\" }, { \"transaction_hash\": \"0xdef458\", \"validator_index\": 3, \"timestamp\": \"2024-03-04T16:50:00Z\" }, ] } ``` - `RFQEscrowReleased`: Triggered when escrow funds are released. Includes transaction hash and the released amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQEscrowReleased\", \"details\": { \"transaction_hash\": \"0xghi789\", \"amount\": 5000, \"timestamp\": \"2024-03-05T17:55:00Z\" } } ``` - `RFQValidatorExited `: Notifies the owner whenever a validator exits the ethereum network ```json { \"document_id\": \"rfq123\", \"event\": \"RFQValidatorExited\", \"details\": { \"validator_index\": \"0xghi789\", \"timestamp\": \"2024-03-05T17:55:00Z\" } } ``` **Webhook Security Note:** All webhook requests include a `Bearer` token in the `Authorization` header. Recipients must validate this token to ensure the notifications are from a trusted source.
|
|
65
|
+
* Registers a webhook URL for receiving push notifications from Northstake regarding events in the Validator Marketplace. When registered events occur, webhooks are triggered, and JSON payloads are sent as POST requests to the specified URL. A webhook can subscribe to different event types. Here are descriptions and example payloads for each supported event. These payloads are what will be POST\'ed to your Webhook endpoint. (For more details regarding webhook payloads, refer to the schemas for the WebhookPayload_XXXX types in documentation) - `RFQAvailable`: Triggered when a new RFQ document becomes available. The payload includes detailed information about validators, their balances, exit estimates, and other RFQ-specific details. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQAvailable\", \"details\": { \"id\": \"rfq123\", \"validators\": [ { \"validator_index\": 1, \"balance\": 32, \"exit_estimates\": [ { \"estimated_exit_time\": \"2025-03-01T12:00:00Z\", \"estimated_exit_transaction_deadline\": \"2025-03-01T12:00:00Z\", \"timestamp\": \"2024-03-01T12:00:00Z\" } ] } ], \"total_balance\": 32, \"payment_address\": \"0xabcd\", \"estimated_exit_transaction_deadline\": \"2025-03-01T12:00:00Z\", \"estimated_all_validators_exited_at\": \"2025-03-01T12:00:00Z\", \"unique_escrow_vault\": \"vault123\" } } ``` - `RFQBidReceived`: Triggered when a new bid is received on an RFQ. Includes the latest quote ID and the bid amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQBidReceived\", \"details\": { \"quote_id\": \"quote789\", \"amount\": 5000, \"timestamp\": \"2024-03-01T13:00:00Z\" } } ``` - `RFQBidAccepted`: Triggered when a bid is accepted. Includes the quote ID and the accepted amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQBidAccepted\", \"details\": { \"quote_id\": \"quote789\", \"amount\": 5000, \"timestamp\": \"2024-03-02T14:30:00Z\", \"escrow_address\": \"0x12345\" } } ``` - `RFQEscrowEvent`: Triggered when an escrow payment is made. Includes transaction hash and payment amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQEscrowEvent\", \"details\": { \"transaction_hash\": \"0xabc123\", \"amount\": 5000, \"timestamp\": \"2024-03-03T15:45:00Z\" } } ``` - `RFQTransferProposalReceived`: Notifies an RFQ seller of a new transfer proposal on their RFQ ```json { \"document_id\": \"rfq123\", \"event\": \"RFQTransferProposalReceived\", \"details\": { \"transaction_hash\": \"0xabc123\", \"timestamp\": \"2024-03-03T15:45:00Z\", \"proposal_id\": \"0x12345\"\" } } ``` - `RFQValidatorWithdrawalChange`: Triggered when a validator withdrawal status changes. Includes transaction hash and validator index. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQValidatorWithdrawalChange\", \"details\": [{ \"transaction_hash\": \"0xdef456\", \"validator_index\": 1, \"timestamp\": \"2024-03-04T16:50:00Z\" }, { \"transaction_hash\": \"0xdef457\", \"validator_index\": 2, \"timestamp\": \"2024-03-04T16:50:00Z\" }, { \"transaction_hash\": \"0xdef458\", \"validator_index\": 3, \"timestamp\": \"2024-03-04T16:50:00Z\" }, ] } ``` - `RFQEscrowReleased`: Triggered when escrow funds are released. Includes transaction hash and the released amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQEscrowReleased\", \"details\": { \"transaction_hash\": \"0xghi789\", \"amount\": 5000, \"timestamp\": \"2024-03-05T17:55:00Z\" } } ``` - `RFQValidatorExited `: Notifies the owner whenever a validator exits the ethereum network ```json { \"document_id\": \"rfq123\", \"event\": \"RFQValidatorExited\", \"details\": { \"validator_index\": \"0xghi789\", \"timestamp\": \"2024-03-05T17:55:00Z\" } } ``` **Webhook Security Note:** All webhook requests include a `Bearer` token in the `Authorization` header. Recipients must validate this token to ensure the notifications are from a trusted source.
|
|
66
66
|
* @summary Register a webhook to track Northstake validator marketplace events
|
|
67
67
|
* @param webhookRegistration
|
|
68
68
|
*/
|
|
@@ -203,7 +203,7 @@ class ValidatorMarketplaceWebhooksApi {
|
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
205
|
/**
|
|
206
|
-
* Registers a webhook URL for receiving push notifications from Northstake regarding events in the Validator Marketplace. When registered events occur, webhooks are triggered, and JSON payloads are sent as POST requests to the specified URL. A webhook can subscribe to different event types. Here are descriptions and example payloads for each supported event. These payloads are what will be POST\'ed to your Webhook endpoint. (For more details regarding webhook payloads, refer to the schemas for the WebhookPayload_XXXX types in documentation) - `RFQAvailable`: Triggered when a new RFQ document becomes available. The payload includes detailed information about validators, their balances, exit estimates, and other RFQ-specific details. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQAvailable\", \"details\": { \"id\": \"rfq123\", \"validators\": [ { \"validator_index\": 1, \"balance\": 32, \"exit_estimates\": [ { \"estimated_exit_time\": \"2025-03-01T12:00:00Z\", \"estimated_exit_transaction_deadline\": \"2025-03-01T12:00:00Z\", \"timestamp\": \"2024-03-01T12:00:00Z\" } ] } ], \"total_balance\": 32, \"payment_address\": \"0xabcd\", \"estimated_exit_transaction_deadline\": \"2025-03-01T12:00:00Z\", \"estimated_all_validators_exited_at\": \"2025-03-01T12:00:00Z\", \"unique_escrow_vault\": \"vault123\" } } ``` - `RFQBidReceived`: Triggered when a new bid is received on an RFQ. Includes the latest quote ID and the bid amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQBidReceived\", \"details\": { \"quote_id\": \"quote789\", \"amount\": 5000, \"timestamp\": \"2024-03-01T13:00:00Z\" } } ``` - `RFQBidAccepted`: Triggered when a bid is accepted. Includes the quote ID and the accepted amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQBidAccepted\", \"details\": { \"quote_id\": \"quote789\", \"amount\": 5000, \"timestamp\": \"2024-03-02T14:30:00Z\", \"escrow_address\": \"0x12345\" } } ``` - `RFQEscrowEvent`: Triggered when an escrow payment is made. Includes transaction hash and payment amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQEscrowEvent\", \"details\": { \"transaction_hash\": \"0xabc123\", \"amount\": 5000, \"timestamp\": \"2024-03-03T15:45:00Z\" } } ``` - `RFQTransferProposalReceived`: Notifies an RFQ seller of a new transfer proposal on their RFQ ```json { \"document_id\": \"rfq123\", \"event\": \"RFQTransferProposalReceived\", \"details\": { \"transaction_hash\": \"0xabc123\", \"timestamp\": \"2024-03-03T15:45:00Z\" \"proposal_id\": \"0x12345\"\" } } ``` - `RFQValidatorWithdrawalChange`: Triggered when a validator withdrawal status changes. Includes transaction hash and validator index. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQValidatorWithdrawalChange\", \"details\": [{ \"transaction_hash\": \"0xdef456\", \"validator_index\": 1, \"timestamp\": \"2024-03-04T16:50:00Z\" }, { \"transaction_hash\": \"0xdef457\", \"validator_index\": 2, \"timestamp\": \"2024-03-04T16:50:00Z\" }, { \"transaction_hash\": \"0xdef458\", \"validator_index\": 3, \"timestamp\": \"2024-03-04T16:50:00Z\" }, ] } ``` - `RFQEscrowReleased`: Triggered when escrow funds are released. Includes transaction hash and the released amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQEscrowReleased\", \"details\": { \"transaction_hash\": \"0xghi789\", \"amount\": 5000, \"timestamp\": \"2024-03-05T17:55:00Z\" } } ``` - `RFQValidatorExited `: Notifies the owner whenever a validator exits the ethereum network ```json { \"document_id\": \"rfq123\", \"event\": \"RFQValidatorExited\", \"details\": { \"validator_index\": \"0xghi789\", \"timestamp\": \"2024-03-05T17:55:00Z\" } } ``` **Webhook Security Note:** All webhook requests include a `Bearer` token in the `Authorization` header. Recipients must validate this token to ensure the notifications are from a trusted source.
|
|
206
|
+
* Registers a webhook URL for receiving push notifications from Northstake regarding events in the Validator Marketplace. When registered events occur, webhooks are triggered, and JSON payloads are sent as POST requests to the specified URL. A webhook can subscribe to different event types. Here are descriptions and example payloads for each supported event. These payloads are what will be POST\'ed to your Webhook endpoint. (For more details regarding webhook payloads, refer to the schemas for the WebhookPayload_XXXX types in documentation) - `RFQAvailable`: Triggered when a new RFQ document becomes available. The payload includes detailed information about validators, their balances, exit estimates, and other RFQ-specific details. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQAvailable\", \"details\": { \"id\": \"rfq123\", \"validators\": [ { \"validator_index\": 1, \"balance\": 32, \"exit_estimates\": [ { \"estimated_exit_time\": \"2025-03-01T12:00:00Z\", \"estimated_exit_transaction_deadline\": \"2025-03-01T12:00:00Z\", \"timestamp\": \"2024-03-01T12:00:00Z\" } ] } ], \"total_balance\": 32, \"payment_address\": \"0xabcd\", \"estimated_exit_transaction_deadline\": \"2025-03-01T12:00:00Z\", \"estimated_all_validators_exited_at\": \"2025-03-01T12:00:00Z\", \"unique_escrow_vault\": \"vault123\" } } ``` - `RFQBidReceived`: Triggered when a new bid is received on an RFQ. Includes the latest quote ID and the bid amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQBidReceived\", \"details\": { \"quote_id\": \"quote789\", \"amount\": 5000, \"timestamp\": \"2024-03-01T13:00:00Z\" } } ``` - `RFQBidAccepted`: Triggered when a bid is accepted. Includes the quote ID and the accepted amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQBidAccepted\", \"details\": { \"quote_id\": \"quote789\", \"amount\": 5000, \"timestamp\": \"2024-03-02T14:30:00Z\", \"escrow_address\": \"0x12345\" } } ``` - `RFQEscrowEvent`: Triggered when an escrow payment is made. Includes transaction hash and payment amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQEscrowEvent\", \"details\": { \"transaction_hash\": \"0xabc123\", \"amount\": 5000, \"timestamp\": \"2024-03-03T15:45:00Z\" } } ``` - `RFQTransferProposalReceived`: Notifies an RFQ seller of a new transfer proposal on their RFQ ```json { \"document_id\": \"rfq123\", \"event\": \"RFQTransferProposalReceived\", \"details\": { \"transaction_hash\": \"0xabc123\", \"timestamp\": \"2024-03-03T15:45:00Z\", \"proposal_id\": \"0x12345\"\" } } ``` - `RFQValidatorWithdrawalChange`: Triggered when a validator withdrawal status changes. Includes transaction hash and validator index. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQValidatorWithdrawalChange\", \"details\": [{ \"transaction_hash\": \"0xdef456\", \"validator_index\": 1, \"timestamp\": \"2024-03-04T16:50:00Z\" }, { \"transaction_hash\": \"0xdef457\", \"validator_index\": 2, \"timestamp\": \"2024-03-04T16:50:00Z\" }, { \"transaction_hash\": \"0xdef458\", \"validator_index\": 3, \"timestamp\": \"2024-03-04T16:50:00Z\" }, ] } ``` - `RFQEscrowReleased`: Triggered when escrow funds are released. Includes transaction hash and the released amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQEscrowReleased\", \"details\": { \"transaction_hash\": \"0xghi789\", \"amount\": 5000, \"timestamp\": \"2024-03-05T17:55:00Z\" } } ``` - `RFQValidatorExited `: Notifies the owner whenever a validator exits the ethereum network ```json { \"document_id\": \"rfq123\", \"event\": \"RFQValidatorExited\", \"details\": { \"validator_index\": \"0xghi789\", \"timestamp\": \"2024-03-05T17:55:00Z\" } } ``` **Webhook Security Note:** All webhook requests include a `Bearer` token in the `Authorization` header. Recipients must validate this token to ensure the notifications are from a trusted source.
|
|
207
207
|
* @summary Register a webhook to track Northstake validator marketplace events
|
|
208
208
|
* @param webhookRegistration
|
|
209
209
|
*/
|
package/dist/api.d.ts
CHANGED
|
@@ -97,6 +97,8 @@ export * from './model/./webhookPayloadRFQValidatorExited';
|
|
|
97
97
|
export * from './model/./webhookPayloadRFQValidatorExitedDetails';
|
|
98
98
|
export * from './model/./webhookPayloadRFQValidatorWithdrawalChange';
|
|
99
99
|
export * from './model/./webhookPayloadRFQValidatorWithdrawalChangeDetails';
|
|
100
|
+
export * from './model/./webhookPayloadRFQWithdrawalClaimable';
|
|
101
|
+
export * from './model/./webhookPayloadRFQWithdrawalClaimableDetails';
|
|
100
102
|
export * from './model/./webhookRegistration';
|
|
101
103
|
export * from './model/./webhookRegistrationDetails';
|
|
102
104
|
export * from './model/./withdrawalRecipientSettlement';
|
package/dist/api.js
CHANGED
|
@@ -116,6 +116,8 @@ __exportStar(require("./model/./webhookPayloadRFQValidatorExited"), exports);
|
|
|
116
116
|
__exportStar(require("./model/./webhookPayloadRFQValidatorExitedDetails"), exports);
|
|
117
117
|
__exportStar(require("./model/./webhookPayloadRFQValidatorWithdrawalChange"), exports);
|
|
118
118
|
__exportStar(require("./model/./webhookPayloadRFQValidatorWithdrawalChangeDetails"), exports);
|
|
119
|
+
__exportStar(require("./model/./webhookPayloadRFQWithdrawalClaimable"), exports);
|
|
120
|
+
__exportStar(require("./model/./webhookPayloadRFQWithdrawalClaimableDetails"), exports);
|
|
119
121
|
__exportStar(require("./model/./webhookRegistration"), exports);
|
|
120
122
|
__exportStar(require("./model/./webhookRegistrationDetails"), exports);
|
|
121
123
|
__exportStar(require("./model/./withdrawalRecipientSettlement"), exports);
|
package/dist/model/models.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
1
|
import localVarRequest from 'request';
|
|
4
2
|
export * from './acceptedQuote';
|
|
5
3
|
export * from './accountEntity';
|
|
@@ -83,6 +81,8 @@ export * from './webhookPayloadRFQValidatorExited';
|
|
|
83
81
|
export * from './webhookPayloadRFQValidatorExitedDetails';
|
|
84
82
|
export * from './webhookPayloadRFQValidatorWithdrawalChange';
|
|
85
83
|
export * from './webhookPayloadRFQValidatorWithdrawalChangeDetails';
|
|
84
|
+
export * from './webhookPayloadRFQWithdrawalClaimable';
|
|
85
|
+
export * from './webhookPayloadRFQWithdrawalClaimableDetails';
|
|
86
86
|
export * from './webhookRegistration';
|
|
87
87
|
export * from './webhookRegistrationDetails';
|
|
88
88
|
export * from './withdrawalRecipientSettlement';
|
package/dist/model/models.js
CHANGED
|
@@ -110,6 +110,8 @@ __exportStar(require("./webhookPayloadRFQValidatorExited"), exports);
|
|
|
110
110
|
__exportStar(require("./webhookPayloadRFQValidatorExitedDetails"), exports);
|
|
111
111
|
__exportStar(require("./webhookPayloadRFQValidatorWithdrawalChange"), exports);
|
|
112
112
|
__exportStar(require("./webhookPayloadRFQValidatorWithdrawalChangeDetails"), exports);
|
|
113
|
+
__exportStar(require("./webhookPayloadRFQWithdrawalClaimable"), exports);
|
|
114
|
+
__exportStar(require("./webhookPayloadRFQWithdrawalClaimableDetails"), exports);
|
|
113
115
|
__exportStar(require("./webhookRegistration"), exports);
|
|
114
116
|
__exportStar(require("./webhookRegistrationDetails"), exports);
|
|
115
117
|
__exportStar(require("./withdrawalRecipientSettlement"), exports);
|
|
@@ -187,6 +189,8 @@ const webhookPayloadRFQValidatorExited_1 = require("./webhookPayloadRFQValidator
|
|
|
187
189
|
const webhookPayloadRFQValidatorExitedDetails_1 = require("./webhookPayloadRFQValidatorExitedDetails");
|
|
188
190
|
const webhookPayloadRFQValidatorWithdrawalChange_1 = require("./webhookPayloadRFQValidatorWithdrawalChange");
|
|
189
191
|
const webhookPayloadRFQValidatorWithdrawalChangeDetails_1 = require("./webhookPayloadRFQValidatorWithdrawalChangeDetails");
|
|
192
|
+
const webhookPayloadRFQWithdrawalClaimable_1 = require("./webhookPayloadRFQWithdrawalClaimable");
|
|
193
|
+
const webhookPayloadRFQWithdrawalClaimableDetails_1 = require("./webhookPayloadRFQWithdrawalClaimableDetails");
|
|
190
194
|
const webhookRegistration_1 = require("./webhookRegistration");
|
|
191
195
|
const webhookRegistrationDetails_1 = require("./webhookRegistrationDetails");
|
|
192
196
|
const withdrawalRecipientSettlement_1 = require("./withdrawalRecipientSettlement");
|
|
@@ -281,6 +285,8 @@ let typeMap = {
|
|
|
281
285
|
"WebhookPayloadRFQValidatorExitedDetails": webhookPayloadRFQValidatorExitedDetails_1.WebhookPayloadRFQValidatorExitedDetails,
|
|
282
286
|
"WebhookPayloadRFQValidatorWithdrawalChange": webhookPayloadRFQValidatorWithdrawalChange_1.WebhookPayloadRFQValidatorWithdrawalChange,
|
|
283
287
|
"WebhookPayloadRFQValidatorWithdrawalChangeDetails": webhookPayloadRFQValidatorWithdrawalChangeDetails_1.WebhookPayloadRFQValidatorWithdrawalChangeDetails,
|
|
288
|
+
"WebhookPayloadRFQWithdrawalClaimable": webhookPayloadRFQWithdrawalClaimable_1.WebhookPayloadRFQWithdrawalClaimable,
|
|
289
|
+
"WebhookPayloadRFQWithdrawalClaimableDetails": webhookPayloadRFQWithdrawalClaimableDetails_1.WebhookPayloadRFQWithdrawalClaimableDetails,
|
|
284
290
|
"WebhookRegistration": webhookRegistration_1.WebhookRegistration,
|
|
285
291
|
"WebhookRegistrationDetails": webhookRegistrationDetails_1.WebhookRegistrationDetails,
|
|
286
292
|
"WithdrawalRecipientSettlement": withdrawalRecipientSettlement_1.WithdrawalRecipientSettlement,
|
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
/**
|
|
13
13
|
* The types of events a webhook may subscribe to
|
|
14
14
|
*/
|
|
15
|
-
export type RFQWebhookEventType = 'RFQAvailable' | 'RFQBidReceived' | 'RFQBidAccepted' | 'RFQEscrowEvent' | 'RFQTransferProposalReceived' | 'RFQValidatorWithdrawalChange' | 'RFQEscrowReleased' | 'RFQValidatorExited';
|
|
15
|
+
export type RFQWebhookEventType = 'RFQAvailable' | 'RFQBidReceived' | 'RFQBidAccepted' | 'RFQEscrowEvent' | 'RFQTransferProposalReceived' | 'RFQValidatorWithdrawalChange' | 'RFQEscrowReleased' | 'RFQValidatorExited' | 'RFQWithdrawalClaimable';
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
import { RFQWebhookEventType } from './rFQWebhookEventType';
|
|
13
|
+
import { WebhookPayloadRFQWithdrawalClaimableDetails } from './webhookPayloadRFQWithdrawalClaimableDetails';
|
|
14
|
+
export declare class WebhookPayloadRFQWithdrawalClaimable {
|
|
15
|
+
'document_id'?: string;
|
|
16
|
+
'event'?: RFQWebhookEventType;
|
|
17
|
+
'details'?: WebhookPayloadRFQWithdrawalClaimableDetails;
|
|
18
|
+
static discriminator: string | undefined;
|
|
19
|
+
static attributeTypeMap: Array<{
|
|
20
|
+
name: string;
|
|
21
|
+
baseName: string;
|
|
22
|
+
type: string;
|
|
23
|
+
}>;
|
|
24
|
+
static getAttributeTypeMap(): {
|
|
25
|
+
name: string;
|
|
26
|
+
baseName: string;
|
|
27
|
+
type: string;
|
|
28
|
+
}[];
|
|
29
|
+
}
|
|
30
|
+
export declare namespace WebhookPayloadRFQWithdrawalClaimable {
|
|
31
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Northstake
|
|
4
|
+
* Northstake api
|
|
5
|
+
*
|
|
6
|
+
* The version of the OpenAPI document: 1.0
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* https://openapi-generator.tech
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.WebhookPayloadRFQWithdrawalClaimable = void 0;
|
|
15
|
+
class WebhookPayloadRFQWithdrawalClaimable {
|
|
16
|
+
static getAttributeTypeMap() {
|
|
17
|
+
return WebhookPayloadRFQWithdrawalClaimable.attributeTypeMap;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.WebhookPayloadRFQWithdrawalClaimable = WebhookPayloadRFQWithdrawalClaimable;
|
|
21
|
+
WebhookPayloadRFQWithdrawalClaimable.discriminator = undefined;
|
|
22
|
+
WebhookPayloadRFQWithdrawalClaimable.attributeTypeMap = [
|
|
23
|
+
{
|
|
24
|
+
"name": "document_id",
|
|
25
|
+
"baseName": "document_id",
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "event",
|
|
30
|
+
"baseName": "event",
|
|
31
|
+
"type": "RFQWebhookEventType"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "details",
|
|
35
|
+
"baseName": "details",
|
|
36
|
+
"type": "WebhookPayloadRFQWithdrawalClaimableDetails"
|
|
37
|
+
}
|
|
38
|
+
];
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
export declare class WebhookPayloadRFQWithdrawalClaimableDetails {
|
|
13
|
+
'validator_index'?: number;
|
|
14
|
+
'amount'?: number;
|
|
15
|
+
'timestamp'?: Date;
|
|
16
|
+
'beneficiary_address'?: string;
|
|
17
|
+
'block'?: number;
|
|
18
|
+
static discriminator: string | undefined;
|
|
19
|
+
static attributeTypeMap: Array<{
|
|
20
|
+
name: string;
|
|
21
|
+
baseName: string;
|
|
22
|
+
type: string;
|
|
23
|
+
}>;
|
|
24
|
+
static getAttributeTypeMap(): {
|
|
25
|
+
name: string;
|
|
26
|
+
baseName: string;
|
|
27
|
+
type: string;
|
|
28
|
+
}[];
|
|
29
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Northstake
|
|
4
|
+
* Northstake api
|
|
5
|
+
*
|
|
6
|
+
* The version of the OpenAPI document: 1.0
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* https://openapi-generator.tech
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.WebhookPayloadRFQWithdrawalClaimableDetails = void 0;
|
|
15
|
+
class WebhookPayloadRFQWithdrawalClaimableDetails {
|
|
16
|
+
static getAttributeTypeMap() {
|
|
17
|
+
return WebhookPayloadRFQWithdrawalClaimableDetails.attributeTypeMap;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.WebhookPayloadRFQWithdrawalClaimableDetails = WebhookPayloadRFQWithdrawalClaimableDetails;
|
|
21
|
+
WebhookPayloadRFQWithdrawalClaimableDetails.discriminator = undefined;
|
|
22
|
+
WebhookPayloadRFQWithdrawalClaimableDetails.attributeTypeMap = [
|
|
23
|
+
{
|
|
24
|
+
"name": "validator_index",
|
|
25
|
+
"baseName": "validator_index",
|
|
26
|
+
"type": "number"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "amount",
|
|
30
|
+
"baseName": "amount",
|
|
31
|
+
"type": "number"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "timestamp",
|
|
35
|
+
"baseName": "timestamp",
|
|
36
|
+
"type": "Date"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "beneficiary_address",
|
|
40
|
+
"baseName": "beneficiary_address",
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "block",
|
|
45
|
+
"baseName": "block",
|
|
46
|
+
"type": "number"
|
|
47
|
+
}
|
|
48
|
+
];
|
package/model/models.ts
CHANGED
|
@@ -84,6 +84,8 @@ export * from './webhookPayloadRFQValidatorExited';
|
|
|
84
84
|
export * from './webhookPayloadRFQValidatorExitedDetails';
|
|
85
85
|
export * from './webhookPayloadRFQValidatorWithdrawalChange';
|
|
86
86
|
export * from './webhookPayloadRFQValidatorWithdrawalChangeDetails';
|
|
87
|
+
export * from './webhookPayloadRFQWithdrawalClaimable';
|
|
88
|
+
export * from './webhookPayloadRFQWithdrawalClaimableDetails';
|
|
87
89
|
export * from './webhookRegistration';
|
|
88
90
|
export * from './webhookRegistrationDetails';
|
|
89
91
|
export * from './withdrawalRecipientSettlement';
|
|
@@ -350,6 +352,12 @@ import { WebhookPayloadRFQValidatorWithdrawalChange } from './webhookPayloadRFQV
|
|
|
350
352
|
import { WebhookPayloadRFQValidatorWithdrawalChangeDetails } from './webhookPayloadRFQValidatorWithdrawalChangeDetails';
|
|
351
353
|
|
|
352
354
|
|
|
355
|
+
import { WebhookPayloadRFQWithdrawalClaimable } from './webhookPayloadRFQWithdrawalClaimable';
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
import { WebhookPayloadRFQWithdrawalClaimableDetails } from './webhookPayloadRFQWithdrawalClaimableDetails';
|
|
359
|
+
|
|
360
|
+
|
|
353
361
|
import { WebhookRegistration } from './webhookRegistration';
|
|
354
362
|
|
|
355
363
|
|
|
@@ -458,6 +466,8 @@ let typeMap: {[index: string]: any} = {
|
|
|
458
466
|
"WebhookPayloadRFQValidatorExitedDetails": WebhookPayloadRFQValidatorExitedDetails,
|
|
459
467
|
"WebhookPayloadRFQValidatorWithdrawalChange": WebhookPayloadRFQValidatorWithdrawalChange,
|
|
460
468
|
"WebhookPayloadRFQValidatorWithdrawalChangeDetails": WebhookPayloadRFQValidatorWithdrawalChangeDetails,
|
|
469
|
+
"WebhookPayloadRFQWithdrawalClaimable": WebhookPayloadRFQWithdrawalClaimable,
|
|
470
|
+
"WebhookPayloadRFQWithdrawalClaimableDetails": WebhookPayloadRFQWithdrawalClaimableDetails,
|
|
461
471
|
"WebhookRegistration": WebhookRegistration,
|
|
462
472
|
"WebhookRegistrationDetails": WebhookRegistrationDetails,
|
|
463
473
|
"WithdrawalRecipientSettlement": WithdrawalRecipientSettlement,
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
import { RFQWebhookEventType } from './rFQWebhookEventType';
|
|
14
|
+
import { WebhookPayloadRFQWithdrawalClaimableDetails } from './webhookPayloadRFQWithdrawalClaimableDetails';
|
|
15
|
+
|
|
16
|
+
export class WebhookPayloadRFQWithdrawalClaimable {
|
|
17
|
+
'document_id'?: string;
|
|
18
|
+
'event'?: RFQWebhookEventType;
|
|
19
|
+
'details'?: WebhookPayloadRFQWithdrawalClaimableDetails;
|
|
20
|
+
|
|
21
|
+
static discriminator: string | undefined = undefined;
|
|
22
|
+
|
|
23
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
24
|
+
{
|
|
25
|
+
"name": "document_id",
|
|
26
|
+
"baseName": "document_id",
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "event",
|
|
31
|
+
"baseName": "event",
|
|
32
|
+
"type": "RFQWebhookEventType"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "details",
|
|
36
|
+
"baseName": "details",
|
|
37
|
+
"type": "WebhookPayloadRFQWithdrawalClaimableDetails"
|
|
38
|
+
} ];
|
|
39
|
+
|
|
40
|
+
static getAttributeTypeMap() {
|
|
41
|
+
return WebhookPayloadRFQWithdrawalClaimable.attributeTypeMap;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export namespace WebhookPayloadRFQWithdrawalClaimable {
|
|
46
|
+
}
|
|
47
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
export class WebhookPayloadRFQWithdrawalClaimableDetails {
|
|
15
|
+
'validator_index'?: number;
|
|
16
|
+
'amount'?: number;
|
|
17
|
+
'timestamp'?: Date;
|
|
18
|
+
'beneficiary_address'?: string;
|
|
19
|
+
'block'?: number;
|
|
20
|
+
|
|
21
|
+
static discriminator: string | undefined = undefined;
|
|
22
|
+
|
|
23
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
24
|
+
{
|
|
25
|
+
"name": "validator_index",
|
|
26
|
+
"baseName": "validator_index",
|
|
27
|
+
"type": "number"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "amount",
|
|
31
|
+
"baseName": "amount",
|
|
32
|
+
"type": "number"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "timestamp",
|
|
36
|
+
"baseName": "timestamp",
|
|
37
|
+
"type": "Date"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "beneficiary_address",
|
|
41
|
+
"baseName": "beneficiary_address",
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "block",
|
|
46
|
+
"baseName": "block",
|
|
47
|
+
"type": "number"
|
|
48
|
+
} ];
|
|
49
|
+
|
|
50
|
+
static getAttributeTypeMap() {
|
|
51
|
+
return WebhookPayloadRFQWithdrawalClaimableDetails.attributeTypeMap;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@northstake/northstakeapi",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.20",
|
|
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": "^
|
|
25
|
-
"typescript": "^5.4
|
|
24
|
+
"@types/node": "^22.0.2",
|
|
25
|
+
"typescript": "^5.5.4"
|
|
26
26
|
}
|
|
27
27
|
}
|