UNPKG

libaskexperts

Version:

A TypeScript library to create experts based on NIP-174

19 lines (18 loc) 980 B
"use strict"; /** * Nostr event kinds as defined in NIP-174 */ Object.defineProperty(exports, "__esModule", { value: true }); exports.FOLLOWUP_INVOICE_EXPIRY = exports.NOSTR_EVENT_KIND_ANSWER = exports.NOSTR_EVENT_KIND_QUESTION = exports.NOSTR_EVENT_KIND_BID_PAYLOAD = exports.NOSTR_EVENT_KIND_BID = exports.NOSTR_EVENT_KIND_ASK = void 0; // Ask event (client publishes a summary of their question with hashtags) exports.NOSTR_EVENT_KIND_ASK = 20174; // Bid event (expert responds to an ask with an encrypted offer) exports.NOSTR_EVENT_KIND_BID = 20175; // Bid payload event (the content of the bid, encrypted in the bid event) exports.NOSTR_EVENT_KIND_BID_PAYLOAD = 20176; // Question event (client sends an encrypted question to an expert) exports.NOSTR_EVENT_KIND_QUESTION = 20177; // Answer event (expert sends an encrypted answer to a client) exports.NOSTR_EVENT_KIND_ANSWER = 20178; // How long do we wait for the followup exports.FOLLOWUP_INVOICE_EXPIRY = 600; // 10 min