nostr-tools 2.23.8 → 2.23.9

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 (73) hide show
  1. package/lib/cjs/abstract-pool.js +128 -4
  2. package/lib/cjs/abstract-pool.js.map +4 -4
  3. package/lib/cjs/abstract-relay.js +29 -4
  4. package/lib/cjs/abstract-relay.js.map +2 -2
  5. package/lib/cjs/filter.js.map +1 -1
  6. package/lib/cjs/index.js +377 -61
  7. package/lib/cjs/index.js.map +4 -4
  8. package/lib/cjs/kinds.js +196 -4
  9. package/lib/cjs/kinds.js.map +2 -2
  10. package/lib/cjs/nip17.js.map +2 -2
  11. package/lib/cjs/nip18.js.map +2 -2
  12. package/lib/cjs/nip25.js.map +1 -1
  13. package/lib/cjs/nip28.js.map +2 -2
  14. package/lib/cjs/nip42.js.map +2 -2
  15. package/lib/cjs/nip45.js +183 -0
  16. package/lib/cjs/nip45.js.map +7 -0
  17. package/lib/cjs/nip46.js +128 -4
  18. package/lib/cjs/nip46.js.map +4 -4
  19. package/lib/cjs/nip47.js.map +2 -2
  20. package/lib/cjs/nip57.js.map +1 -1
  21. package/lib/cjs/nip58.js.map +2 -2
  22. package/lib/cjs/nip59.js.map +2 -2
  23. package/lib/cjs/nip75.js.map +2 -2
  24. package/lib/cjs/nip94.js.map +2 -2
  25. package/lib/cjs/nip98.js.map +2 -2
  26. package/lib/cjs/nip99.js.map +2 -2
  27. package/lib/cjs/nipb0.js +1064 -0
  28. package/lib/cjs/nipb0.js.map +7 -0
  29. package/lib/cjs/pool.js +128 -4
  30. package/lib/cjs/pool.js.map +4 -4
  31. package/lib/cjs/relay.js +29 -4
  32. package/lib/cjs/relay.js.map +2 -2
  33. package/lib/esm/abstract-pool.js +128 -4
  34. package/lib/esm/abstract-pool.js.map +4 -4
  35. package/lib/esm/abstract-relay.js +29 -4
  36. package/lib/esm/abstract-relay.js.map +2 -2
  37. package/lib/esm/filter.js.map +1 -1
  38. package/lib/esm/index.js +353 -37
  39. package/lib/esm/index.js.map +4 -4
  40. package/lib/esm/kinds.js +196 -4
  41. package/lib/esm/kinds.js.map +2 -2
  42. package/lib/esm/nip17.js.map +2 -2
  43. package/lib/esm/nip18.js.map +2 -2
  44. package/lib/esm/nip25.js.map +1 -1
  45. package/lib/esm/nip28.js.map +2 -2
  46. package/lib/esm/nip42.js.map +2 -2
  47. package/lib/esm/nip45.js +162 -0
  48. package/lib/esm/nip45.js.map +7 -0
  49. package/lib/esm/nip46.js +128 -4
  50. package/lib/esm/nip46.js.map +4 -4
  51. package/lib/esm/nip47.js.map +2 -2
  52. package/lib/esm/nip57.js.map +1 -1
  53. package/lib/esm/nip58.js.map +2 -2
  54. package/lib/esm/nip59.js.map +2 -2
  55. package/lib/esm/nip75.js.map +2 -2
  56. package/lib/esm/nip94.js.map +2 -2
  57. package/lib/esm/nip98.js.map +2 -2
  58. package/lib/esm/nip99.js.map +2 -2
  59. package/lib/esm/nipb0.js +1049 -0
  60. package/lib/esm/nipb0.js.map +7 -0
  61. package/lib/esm/pool.js +128 -4
  62. package/lib/esm/pool.js.map +4 -4
  63. package/lib/esm/relay.js +29 -4
  64. package/lib/esm/relay.js.map +2 -2
  65. package/lib/nostr.bundle.js +326 -12
  66. package/lib/nostr.bundle.js.map +4 -4
  67. package/lib/types/abstract-pool.d.ts +9 -0
  68. package/lib/types/abstract-relay.d.ts +10 -1
  69. package/lib/types/kinds.d.ts +200 -8
  70. package/lib/types/nip45.d.ts +13 -0
  71. package/lib/types/nip45.test.d.ts +1 -0
  72. package/lib/types/nipb0.d.ts +129 -0
  73. package/package.json +13 -1
package/lib/cjs/kinds.js CHANGED
@@ -20,39 +20,61 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // kinds.ts
21
21
  var kinds_exports = {};
22
22
  __export(kinds_exports, {
23
+ AIEmbeddings: () => AIEmbeddings,
24
+ AppCurationSet: () => AppCurationSet,
23
25
  Application: () => Application,
26
+ AuthoredPodcasts: () => AuthoredPodcasts,
24
27
  BadgeAward: () => BadgeAward,
25
28
  BadgeDefinition: () => BadgeDefinition,
29
+ Bid: () => Bid,
30
+ BidConfirmation: () => BidConfirmation,
31
+ BlobsAuth: () => BlobsAuth,
26
32
  BlockedRelaysList: () => BlockedRelaysList,
27
33
  BlossomServerList: () => BlossomServerList,
28
34
  BookmarkList: () => BookmarkList,
29
35
  Bookmarksets: () => Bookmarksets,
30
36
  Calendar: () => Calendar,
31
37
  CalendarEventRSVP: () => CalendarEventRSVP,
38
+ CashuMintAnnouncement: () => CashuMintAnnouncement,
39
+ CashuWalletEvent: () => CashuWalletEvent,
40
+ CashuWalletHistory: () => CashuWalletHistory,
41
+ CashuWalletTokens: () => CashuWalletTokens,
32
42
  ChannelCreation: () => ChannelCreation,
33
43
  ChannelHideMessage: () => ChannelHideMessage,
34
44
  ChannelMessage: () => ChannelMessage,
35
45
  ChannelMetadata: () => ChannelMetadata,
36
46
  ChannelMuteUser: () => ChannelMuteUser,
37
47
  ChatMessage: () => ChatMessage,
48
+ Chess: () => Chess,
38
49
  ClassifiedListing: () => ClassifiedListing,
39
50
  ClientAuth: () => ClientAuth,
51
+ CodeSnippet: () => CodeSnippet,
52
+ CoinjoinPool: () => CoinjoinPool,
40
53
  Comment: () => Comment,
41
54
  CommunitiesList: () => CommunitiesList,
42
55
  CommunityDefinition: () => CommunityDefinition,
43
56
  CommunityPostApproval: () => CommunityPostApproval,
57
+ ConferenceEvent: () => ConferenceEvent,
44
58
  Contacts: () => Contacts,
45
59
  CreateOrUpdateProduct: () => CreateOrUpdateProduct,
46
60
  CreateOrUpdateStall: () => CreateOrUpdateStall,
61
+ CuratedVideoSets: () => CuratedVideoSets,
47
62
  Curationsets: () => Curationsets,
48
63
  Date: () => Date,
64
+ DecoupledEncryptionKeyDistribution: () => DecoupledEncryptionKeyDistribution,
65
+ DecoupledKeyAnnouncement: () => DecoupledKeyAnnouncement,
66
+ DecoupledKeyClientAnnouncement: () => DecoupledKeyClientAnnouncement,
49
67
  DirectMessageRelaysList: () => DirectMessageRelaysList,
50
68
  DraftClassifiedListing: () => DraftClassifiedListing,
69
+ DraftEvent: () => DraftEvent,
51
70
  DraftLong: () => DraftLong,
52
71
  Emojisets: () => Emojisets,
53
72
  EncryptedDirectMessage: () => EncryptedDirectMessage,
54
73
  EventDeletion: () => EventDeletion,
74
+ FavoritePodcasts: () => FavoritePodcasts,
55
75
  FavoriteRelays: () => FavoriteRelays,
76
+ FedimintAnnouncement: () => FedimintAnnouncement,
77
+ Feed: () => Feed,
56
78
  FileMessage: () => FileMessage,
57
79
  FileMetadata: () => FileMetadata,
58
80
  FileServerPreference: () => FileServerPreference,
@@ -60,55 +82,129 @@ __export(kinds_exports, {
60
82
  ForumThread: () => ForumThread,
61
83
  GenericRepost: () => GenericRepost,
62
84
  Genericlists: () => Genericlists,
85
+ GeocacheListing: () => GeocacheListing,
86
+ GeocacheLog: () => GeocacheLog,
87
+ GeocacheLogEntry: () => GeocacheLogEntry,
88
+ GeocacheProofOfFind: () => GeocacheProofOfFind,
63
89
  GiftWrap: () => GiftWrap,
90
+ GitPullRequest: () => GitPullRequest,
91
+ GitPullRequestUpdate: () => GitPullRequestUpdate,
92
+ GoodWikiAuthorList: () => GoodWikiAuthorList,
93
+ GoodWikiRelayList: () => GoodWikiRelayList,
64
94
  GroupMetadata: () => GroupMetadata,
65
95
  HTTPAuth: () => HTTPAuth,
66
96
  Handlerinformation: () => Handlerinformation,
67
97
  Handlerrecommendation: () => Handlerrecommendation,
68
98
  Highlights: () => Highlights,
99
+ InteractiveRoom: () => InteractiveRoom,
69
100
  InterestsList: () => InterestsList,
70
101
  Interestsets: () => Interestsets,
102
+ Issue: () => Issue,
71
103
  JobFeedback: () => JobFeedback,
72
104
  JobRequest: () => JobRequest,
73
105
  JobResult: () => JobResult,
74
106
  Label: () => Label,
107
+ LegacyNsiteFile: () => LegacyNsiteFile,
75
108
  LightningPubRPC: () => LightningPubRPC,
109
+ LinkSet: () => LinkSet,
76
110
  LiveChatMessage: () => LiveChatMessage,
77
111
  LiveEvent: () => LiveEvent,
78
112
  LongFormArticle: () => LongFormArticle,
113
+ MarketplaceUI: () => MarketplaceUI,
114
+ MediaFollows: () => MediaFollows,
115
+ MediaStarterPacks: () => MediaStarterPacks,
116
+ MergeRequests: () => MergeRequests,
79
117
  Metadata: () => Metadata,
118
+ ModularArticleContent: () => ModularArticleContent,
119
+ ModularArticleHeader: () => ModularArticleHeader,
120
+ MuteSets: () => MuteSets,
80
121
  Mutelist: () => Mutelist,
81
122
  NWCWalletInfo: () => NWCWalletInfo,
82
123
  NWCWalletRequest: () => NWCWalletRequest,
83
124
  NWCWalletResponse: () => NWCWalletResponse,
84
125
  NormalVideo: () => NormalVideo,
85
126
  NostrConnect: () => NostrConnect,
127
+ NsiteNamed: () => NsiteNamed,
128
+ NsiteRoot: () => NsiteRoot,
129
+ NutZap: () => NutZap,
130
+ NutZapInfo: () => NutZapInfo,
86
131
  OpenTimestamps: () => OpenTimestamps,
132
+ Patch: () => Patch,
133
+ PeerToPeerOrderEvents: () => PeerToPeerOrderEvents,
87
134
  Photo: () => Photo,
88
135
  Pinlist: () => Pinlist,
136
+ PodcastEpisode: () => PodcastEpisode,
137
+ PodcastMetadata: () => PodcastMetadata,
89
138
  Poll: () => Poll,
90
139
  PollResponse: () => PollResponse,
91
140
  PrivateDirectMessage: () => PrivateDirectMessage,
141
+ PrivateEventRelayList: () => PrivateEventRelayList,
92
142
  ProblemTracker: () => ProblemTracker,
143
+ ProductSoldAsAuction: () => ProductSoldAsAuction,
93
144
  ProfileBadges: () => ProfileBadges,
145
+ ProxyAnnouncement: () => ProxyAnnouncement,
94
146
  PublicChatsList: () => PublicChatsList,
147
+ PublicMessage: () => PublicMessage,
95
148
  Reaction: () => Reaction,
149
+ ReactionToWebsite: () => ReactionToWebsite,
96
150
  RecommendRelay: () => RecommendRelay,
151
+ Redirects: () => Redirects,
152
+ RelayDiscovery: () => RelayDiscovery,
97
153
  RelayList: () => RelayList,
154
+ RelayMonitorAnnouncement: () => RelayMonitorAnnouncement,
98
155
  RelayReview: () => RelayReview,
156
+ RelayReviews: () => RelayReviews,
99
157
  Relaysets: () => Relaysets,
158
+ ReleaseArtifactSets: () => ReleaseArtifactSets,
159
+ Reply: () => Reply,
100
160
  Report: () => Report,
101
161
  Reporting: () => Reporting,
162
+ RepositoryAnnouncement: () => RepositoryAnnouncement,
163
+ RepositoryState: () => RepositoryState,
102
164
  Repost: () => Repost,
165
+ ReservedCashuWalletTokens: () => ReservedCashuWalletTokens,
166
+ RoomPresence: () => RoomPresence,
167
+ Scroll: () => Scroll,
103
168
  Seal: () => Seal,
104
169
  SearchRelaysList: () => SearchRelaysList,
105
170
  ShortTextNote: () => ShortTextNote,
106
171
  ShortVideo: () => ShortVideo,
172
+ SimpleGroupAdmins: () => SimpleGroupAdmins,
173
+ SimpleGroupCreateGroup: () => SimpleGroupCreateGroup,
174
+ SimpleGroupCreateInvite: () => SimpleGroupCreateInvite,
175
+ SimpleGroupDeleteEvent: () => SimpleGroupDeleteEvent,
176
+ SimpleGroupDeleteGroup: () => SimpleGroupDeleteGroup,
177
+ SimpleGroupEditMetadata: () => SimpleGroupEditMetadata,
178
+ SimpleGroupJoinRequest: () => SimpleGroupJoinRequest,
179
+ SimpleGroupLeaveRequest: () => SimpleGroupLeaveRequest,
180
+ SimpleGroupList: () => SimpleGroupList,
181
+ SimpleGroupLiveKitParticipants: () => SimpleGroupLiveKitParticipants,
182
+ SimpleGroupMembers: () => SimpleGroupMembers,
183
+ SimpleGroupPutUser: () => SimpleGroupPutUser,
184
+ SimpleGroupRemoveUser: () => SimpleGroupRemoveUser,
185
+ SimpleGroupReply: () => SimpleGroupReply,
186
+ SimpleGroupRoles: () => SimpleGroupRoles,
187
+ SimpleGroupThreadedReply: () => SimpleGroupThreadedReply,
188
+ SlideSet: () => SlideSet,
189
+ SoftwareApplication: () => SoftwareApplication,
190
+ StarterPacks: () => StarterPacks,
191
+ StatusApplied: () => StatusApplied,
192
+ StatusClosed: () => StatusClosed,
193
+ StatusDraft: () => StatusDraft,
194
+ StatusOpen: () => StatusOpen,
195
+ TidalLogin: () => TidalLogin,
107
196
  Time: () => Time,
197
+ Torrent: () => Torrent,
198
+ TorrentComment: () => TorrentComment,
199
+ TransportMethodAnnouncement: () => TransportMethodAnnouncement,
108
200
  UserEmojiList: () => UserEmojiList,
201
+ UserGraspList: () => UserGraspList,
109
202
  UserStatuses: () => UserStatuses,
203
+ VideoViewEvent: () => VideoViewEvent,
110
204
  Voice: () => Voice,
111
205
  VoiceComment: () => VoiceComment,
206
+ WebBookmarks: () => WebBookmarks,
207
+ WikiArticle: () => WikiArticle,
112
208
  Zap: () => Zap,
113
209
  ZapGoal: () => ZapGoal,
114
210
  ZapRequest: () => ZapRequest,
@@ -189,40 +285,83 @@ var Repost = 6;
189
285
  var Reaction = 7;
190
286
  var BadgeAward = 8;
191
287
  var ChatMessage = 9;
288
+ var SimpleGroupThreadedReply = 10;
192
289
  var ForumThread = 11;
290
+ var SimpleGroupReply = 12;
193
291
  var Seal = 13;
194
292
  var PrivateDirectMessage = 14;
195
293
  var FileMessage = 15;
196
294
  var GenericRepost = 16;
295
+ var ReactionToWebsite = 17;
197
296
  var Photo = 20;
198
297
  var NormalVideo = 21;
199
298
  var ShortVideo = 22;
299
+ var PublicMessage = 24;
200
300
  var ChannelCreation = 40;
201
301
  var ChannelMetadata = 41;
202
302
  var ChannelMessage = 42;
203
303
  var ChannelHideMessage = 43;
204
304
  var ChannelMuteUser = 44;
305
+ var PodcastEpisode = 54;
306
+ var Chess = 64;
307
+ var MergeRequests = 818;
308
+ var PollResponse = 1018;
309
+ var Bid = 1021;
310
+ var BidConfirmation = 1022;
205
311
  var OpenTimestamps = 1040;
206
312
  var GiftWrap = 1059;
207
- var Poll = 1068;
208
313
  var FileMetadata = 1063;
314
+ var Poll = 1068;
209
315
  var Comment = 1111;
210
- var LiveChatMessage = 1311;
211
316
  var Voice = 1222;
317
+ var Scroll = 1227;
212
318
  var VoiceComment = 1244;
319
+ var LiveChatMessage = 1311;
320
+ var CodeSnippet = 1337;
321
+ var Patch = 1617;
322
+ var GitPullRequest = 1618;
323
+ var GitPullRequestUpdate = 1619;
324
+ var Issue = 1621;
325
+ var Reply = 1622;
326
+ var StatusOpen = 1630;
327
+ var StatusApplied = 1631;
328
+ var StatusClosed = 1632;
329
+ var StatusDraft = 1633;
213
330
  var ProblemTracker = 1971;
214
331
  var Report = 1984;
215
332
  var Reporting = 1984;
216
333
  var Label = 1985;
334
+ var RelayReviews = 1986;
335
+ var AIEmbeddings = 1987;
336
+ var Torrent = 2003;
337
+ var TorrentComment = 2004;
338
+ var CoinjoinPool = 2022;
339
+ var DecoupledKeyClientAnnouncement = 4454;
340
+ var DecoupledEncryptionKeyDistribution = 4455;
217
341
  var CommunityPostApproval = 4550;
218
342
  var JobRequest = 5999;
219
343
  var JobResult = 6999;
220
344
  var JobFeedback = 7e3;
345
+ var ReservedCashuWalletTokens = 7374;
346
+ var CashuWalletTokens = 7375;
347
+ var CashuWalletHistory = 7376;
348
+ var GeocacheLog = 7516;
349
+ var GeocacheProofOfFind = 7517;
350
+ var SimpleGroupPutUser = 9e3;
351
+ var SimpleGroupRemoveUser = 9001;
352
+ var SimpleGroupEditMetadata = 9002;
353
+ var SimpleGroupDeleteEvent = 9005;
354
+ var SimpleGroupCreateGroup = 9007;
355
+ var SimpleGroupDeleteGroup = 9008;
356
+ var SimpleGroupCreateInvite = 9009;
357
+ var SimpleGroupJoinRequest = 9021;
358
+ var SimpleGroupLeaveRequest = 9022;
221
359
  var ZapGoal = 9041;
360
+ var NutZap = 9321;
361
+ var TidalLogin = 9467;
222
362
  var ZapRequest = 9734;
223
363
  var Zap = 9735;
224
364
  var Highlights = 9802;
225
- var PollResponse = 1018;
226
365
  var Mutelist = 1e4;
227
366
  var Pinlist = 10001;
228
367
  var RelayList = 10002;
@@ -231,37 +370,74 @@ var CommunitiesList = 10004;
231
370
  var PublicChatsList = 10005;
232
371
  var BlockedRelaysList = 10006;
233
372
  var SearchRelaysList = 10007;
373
+ var SimpleGroupList = 10009;
234
374
  var FavoriteRelays = 10012;
375
+ var PrivateEventRelayList = 10013;
235
376
  var InterestsList = 10015;
377
+ var NutZapInfo = 10019;
378
+ var MediaFollows = 10020;
236
379
  var UserEmojiList = 10030;
380
+ var DecoupledKeyAnnouncement = 10044;
237
381
  var DirectMessageRelaysList = 10050;
238
- var FileServerPreference = 10096;
382
+ var FavoritePodcasts = 10054;
239
383
  var BlossomServerList = 10063;
384
+ var FileServerPreference = 10096;
385
+ var GoodWikiAuthorList = 10101;
386
+ var GoodWikiRelayList = 10102;
387
+ var PodcastMetadata = 10154;
388
+ var AuthoredPodcasts = 10164;
389
+ var RelayMonitorAnnouncement = 10166;
390
+ var RoomPresence = 10312;
391
+ var UserGraspList = 10317;
392
+ var ProxyAnnouncement = 10377;
393
+ var TransportMethodAnnouncement = 11111;
240
394
  var NWCWalletInfo = 13194;
395
+ var NsiteRoot = 15128;
396
+ var CashuWalletEvent = 17375;
241
397
  var LightningPubRPC = 21e3;
242
398
  var ClientAuth = 22242;
243
399
  var NWCWalletRequest = 23194;
244
400
  var NWCWalletResponse = 23195;
245
401
  var NostrConnect = 24133;
402
+ var BlobsAuth = 24242;
246
403
  var HTTPAuth = 27235;
247
404
  var Followsets = 3e4;
248
405
  var Genericlists = 30001;
249
406
  var Relaysets = 30002;
250
407
  var Bookmarksets = 30003;
251
408
  var Curationsets = 30004;
409
+ var CuratedVideoSets = 30005;
410
+ var MuteSets = 30007;
252
411
  var ProfileBadges = 30008;
253
412
  var BadgeDefinition = 30009;
254
413
  var Interestsets = 30015;
255
414
  var CreateOrUpdateStall = 30017;
256
415
  var CreateOrUpdateProduct = 30018;
416
+ var MarketplaceUI = 30019;
417
+ var ProductSoldAsAuction = 30020;
257
418
  var LongFormArticle = 30023;
258
419
  var DraftLong = 30024;
259
420
  var Emojisets = 30030;
421
+ var ModularArticleHeader = 30040;
422
+ var ModularArticleContent = 30041;
423
+ var ReleaseArtifactSets = 30063;
260
424
  var Application = 30078;
425
+ var RelayDiscovery = 30166;
426
+ var AppCurationSet = 30267;
261
427
  var LiveEvent = 30311;
428
+ var InteractiveRoom = 30312;
429
+ var ConferenceEvent = 30313;
262
430
  var UserStatuses = 30315;
431
+ var SlideSet = 30388;
263
432
  var ClassifiedListing = 30402;
264
433
  var DraftClassifiedListing = 30403;
434
+ var RepositoryAnnouncement = 30617;
435
+ var RepositoryState = 30618;
436
+ var WikiArticle = 30818;
437
+ var Redirects = 30819;
438
+ var DraftEvent = 31234;
439
+ var LinkSet = 31388;
440
+ var Feed = 31890;
265
441
  var Date = 31922;
266
442
  var Time = 31923;
267
443
  var Calendar = 31924;
@@ -269,5 +445,21 @@ var CalendarEventRSVP = 31925;
269
445
  var RelayReview = 31987;
270
446
  var Handlerrecommendation = 31989;
271
447
  var Handlerinformation = 31990;
448
+ var SoftwareApplication = 32267;
449
+ var LegacyNsiteFile = 34128;
450
+ var VideoViewEvent = 34237;
272
451
  var CommunityDefinition = 34550;
452
+ var NsiteNamed = 35128;
453
+ var GeocacheListing = 37515;
454
+ var GeocacheLogEntry = 37516;
455
+ var CashuMintAnnouncement = 38172;
456
+ var FedimintAnnouncement = 38173;
457
+ var PeerToPeerOrderEvents = 38383;
273
458
  var GroupMetadata = 39e3;
459
+ var SimpleGroupAdmins = 39001;
460
+ var SimpleGroupMembers = 39002;
461
+ var SimpleGroupRoles = 39003;
462
+ var SimpleGroupLiveKitParticipants = 39004;
463
+ var StarterPacks = 39089;
464
+ var MediaStarterPacks = 39092;
465
+ var WebBookmarks = 39701;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../kinds.ts", "../../core.ts"],
4
- "sourcesContent": ["import { NostrEvent, validateEvent } from './pure.ts'\n\n/** Events are **regular**, which means they're all expected to be stored by relays. */\nexport function isRegularKind(kind: number): boolean {\n return kind < 10000 && kind !== 0 && kind !== 3\n}\n\n/** Events are **replaceable**, which means that, for each combination of `pubkey` and `kind`, only the latest event is expected to (SHOULD) be stored by relays, older versions are expected to be discarded. */\nexport function isReplaceableKind(kind: number): boolean {\n return kind === 0 || kind === 3 || (10000 <= kind && kind < 20000)\n}\n\n/** Events are **ephemeral**, which means they are not expected to be stored by relays. */\nexport function isEphemeralKind(kind: number): boolean {\n return 20000 <= kind && kind < 30000\n}\n\n/** Events are **addressable**, which means that, for each combination of `pubkey`, `kind` and the `d` tag, only the latest event is expected to be stored by relays, older versions are expected to be discarded. */\nexport function isAddressableKind(kind: number): boolean {\n return 30000 <= kind && kind < 40000\n}\n\n/** Classification of the event kind. */\nexport type KindClassification = 'regular' | 'replaceable' | 'ephemeral' | 'parameterized' | 'unknown'\n\n/** Determine the classification of this kind of event if known, or `unknown`. */\nexport function classifyKind(kind: number): KindClassification {\n if (isRegularKind(kind)) return 'regular'\n if (isReplaceableKind(kind)) return 'replaceable'\n if (isEphemeralKind(kind)) return 'ephemeral'\n if (isAddressableKind(kind)) return 'parameterized'\n return 'unknown'\n}\n\nexport function isKind<T extends number>(event: unknown, kind: T | Array<T>): event is NostrEvent & { kind: T } {\n const kindAsArray: number[] = kind instanceof Array ? kind : [kind]\n return (validateEvent(event) && kindAsArray.includes(event.kind)) || false\n}\n\nexport const Metadata = 0\nexport type Metadata = typeof Metadata\nexport const ShortTextNote = 1\nexport type ShortTextNote = typeof ShortTextNote\nexport const RecommendRelay = 2\nexport type RecommendRelay = typeof RecommendRelay\nexport const Contacts = 3\nexport type Contacts = typeof Contacts\nexport const EncryptedDirectMessage = 4\nexport type EncryptedDirectMessage = typeof EncryptedDirectMessage\nexport const EventDeletion = 5\nexport type EventDeletion = typeof EventDeletion\nexport const Repost = 6\nexport type Repost = typeof Repost\nexport const Reaction = 7\nexport type Reaction = typeof Reaction\nexport const BadgeAward = 8\nexport type BadgeAward = typeof BadgeAward\nexport const ChatMessage = 9\nexport type ChatMessage = typeof ChatMessage\nexport const ForumThread = 11\nexport type ForumThread = typeof ForumThread\nexport const Seal = 13\nexport type Seal = typeof Seal\nexport const PrivateDirectMessage = 14\nexport type PrivateDirectMessage = typeof PrivateDirectMessage\nexport const FileMessage = 15\nexport type FileMessage = typeof FileMessage\nexport const GenericRepost = 16\nexport type GenericRepost = typeof GenericRepost\nexport const Photo = 20\nexport type Photo = typeof Photo\nexport const NormalVideo = 21\nexport type NormalVideo = typeof NormalVideo\nexport const ShortVideo = 22\nexport type ShortVideo = typeof ShortVideo\nexport const ChannelCreation = 40\nexport type ChannelCreation = typeof ChannelCreation\nexport const ChannelMetadata = 41\nexport type ChannelMetadata = typeof ChannelMetadata\nexport const ChannelMessage = 42\nexport type ChannelMessage = typeof ChannelMessage\nexport const ChannelHideMessage = 43\nexport type ChannelHideMessage = typeof ChannelHideMessage\nexport const ChannelMuteUser = 44\nexport type ChannelMuteUser = typeof ChannelMuteUser\nexport const OpenTimestamps = 1040\nexport type OpenTimestamps = typeof OpenTimestamps\nexport const GiftWrap = 1059\nexport type GiftWrap = typeof GiftWrap\nexport const Poll = 1068\nexport type Poll = typeof Poll\nexport const FileMetadata = 1063\nexport type FileMetadata = typeof FileMetadata\nexport const Comment = 1111\nexport type Comment = typeof Comment\nexport const LiveChatMessage = 1311\nexport type LiveChatMessage = typeof LiveChatMessage\nexport const Voice = 1222\nexport type Voice = typeof Voice\nexport const VoiceComment = 1244\nexport type VoiceComment = typeof VoiceComment\nexport const ProblemTracker = 1971\nexport type ProblemTracker = typeof ProblemTracker\nexport const Report = 1984\nexport type Report = typeof Report\nexport const Reporting = 1984\nexport type Reporting = typeof Reporting\nexport const Label = 1985\nexport type Label = typeof Label\nexport const CommunityPostApproval = 4550\nexport type CommunityPostApproval = typeof CommunityPostApproval\nexport const JobRequest = 5999\nexport type JobRequest = typeof JobRequest\nexport const JobResult = 6999\nexport type JobResult = typeof JobResult\nexport const JobFeedback = 7000\nexport type JobFeedback = typeof JobFeedback\nexport const ZapGoal = 9041\nexport type ZapGoal = typeof ZapGoal\nexport const ZapRequest = 9734\nexport type ZapRequest = typeof ZapRequest\nexport const Zap = 9735\nexport type Zap = typeof Zap\nexport const Highlights = 9802\nexport type Highlights = typeof Highlights\nexport const PollResponse = 1018\nexport type PollResponse = typeof PollResponse\nexport const Mutelist = 10000\nexport type Mutelist = typeof Mutelist\nexport const Pinlist = 10001\nexport type Pinlist = typeof Pinlist\nexport const RelayList = 10002\nexport type RelayList = typeof RelayList\nexport const BookmarkList = 10003\nexport type BookmarkList = typeof BookmarkList\nexport const CommunitiesList = 10004\nexport type CommunitiesList = typeof CommunitiesList\nexport const PublicChatsList = 10005\nexport type PublicChatsList = typeof PublicChatsList\nexport const BlockedRelaysList = 10006\nexport type BlockedRelaysList = typeof BlockedRelaysList\nexport const SearchRelaysList = 10007\nexport type SearchRelaysList = typeof SearchRelaysList\nexport const FavoriteRelays = 10012\nexport type FavoriteRelays = typeof FavoriteRelays\nexport const InterestsList = 10015\nexport type InterestsList = typeof InterestsList\nexport const UserEmojiList = 10030\nexport type UserEmojiList = typeof UserEmojiList\nexport const DirectMessageRelaysList = 10050\nexport type DirectMessageRelaysList = typeof DirectMessageRelaysList\nexport const FileServerPreference = 10096\nexport type FileServerPreference = typeof FileServerPreference\nexport const BlossomServerList = 10063\nexport type BlossomServerList = typeof BlossomServerList\nexport const NWCWalletInfo = 13194\nexport type NWCWalletInfo = typeof NWCWalletInfo\nexport const LightningPubRPC = 21000\nexport type LightningPubRPC = typeof LightningPubRPC\nexport const ClientAuth = 22242\nexport type ClientAuth = typeof ClientAuth\nexport const NWCWalletRequest = 23194\nexport type NWCWalletRequest = typeof NWCWalletRequest\nexport const NWCWalletResponse = 23195\nexport type NWCWalletResponse = typeof NWCWalletResponse\nexport const NostrConnect = 24133\nexport type NostrConnect = typeof NostrConnect\nexport const HTTPAuth = 27235\nexport type HTTPAuth = typeof HTTPAuth\nexport const Followsets = 30000\nexport type Followsets = typeof Followsets\nexport const Genericlists = 30001\nexport type Genericlists = typeof Genericlists\nexport const Relaysets = 30002\nexport type Relaysets = typeof Relaysets\nexport const Bookmarksets = 30003\nexport type Bookmarksets = typeof Bookmarksets\nexport const Curationsets = 30004\nexport type Curationsets = typeof Curationsets\nexport const ProfileBadges = 30008\nexport type ProfileBadges = typeof ProfileBadges\nexport const BadgeDefinition = 30009\nexport type BadgeDefinition = typeof BadgeDefinition\nexport const Interestsets = 30015\nexport type Interestsets = typeof Interestsets\nexport const CreateOrUpdateStall = 30017\nexport type CreateOrUpdateStall = typeof CreateOrUpdateStall\nexport const CreateOrUpdateProduct = 30018\nexport type CreateOrUpdateProduct = typeof CreateOrUpdateProduct\nexport const LongFormArticle = 30023\nexport type LongFormArticle = typeof LongFormArticle\nexport const DraftLong = 30024\nexport type DraftLong = typeof DraftLong\nexport const Emojisets = 30030\nexport type Emojisets = typeof Emojisets\nexport const Application = 30078\nexport type Application = typeof Application\nexport const LiveEvent = 30311\nexport type LiveEvent = typeof LiveEvent\nexport const UserStatuses = 30315\nexport type UserStatuses = typeof UserStatuses\nexport const ClassifiedListing = 30402\nexport type ClassifiedListing = typeof ClassifiedListing\nexport const DraftClassifiedListing = 30403\nexport type DraftClassifiedListing = typeof DraftClassifiedListing\nexport const Date = 31922\nexport type Date = typeof Date\nexport const Time = 31923\nexport type Time = typeof Time\nexport const Calendar = 31924\nexport type Calendar = typeof Calendar\nexport const CalendarEventRSVP = 31925\nexport type CalendarEventRSVP = typeof CalendarEventRSVP\nexport const RelayReview = 31987\nexport type RelayReview = typeof RelayReview\nexport const Handlerrecommendation = 31989\nexport type Handlerrecommendation = typeof Handlerrecommendation\nexport const Handlerinformation = 31990\nexport type Handlerinformation = typeof Handlerinformation\nexport const CommunityDefinition = 34550\nexport type CommunityDefinition = typeof CommunityDefinition\nexport const GroupMetadata = 39000\nexport type GroupMetadata = typeof GroupMetadata\n", "export interface Nostr {\n generateSecretKey(): Uint8Array\n getPublicKey(secretKey: Uint8Array): string\n finalizeEvent(event: EventTemplate, secretKey: Uint8Array): VerifiedEvent\n verifyEvent(event: Event): event is VerifiedEvent\n}\n\n/** Designates a verified event signature. */\nexport const verifiedSymbol = Symbol('verified')\n\nexport type NostrEvent = {\n kind: number\n tags: string[][]\n content: string\n created_at: number\n pubkey: string\n id: string\n sig: string\n [verifiedSymbol]?: boolean\n}\n\nexport type Event = NostrEvent\nexport type EventTemplate = Pick<Event, 'kind' | 'tags' | 'content' | 'created_at'>\nexport type UnsignedEvent = Pick<Event, 'kind' | 'tags' | 'content' | 'created_at' | 'pubkey'>\n\n/** An event whose signature has been verified. */\nexport interface VerifiedEvent extends Event {\n [verifiedSymbol]: true\n}\n\nconst isRecord = (obj: unknown): obj is Record<string, unknown> => obj instanceof Object\n\nexport function validateEvent<T>(event: T): event is T & UnsignedEvent {\n if (!isRecord(event)) return false\n if (typeof event.kind !== 'number') return false\n if (typeof event.content !== 'string') return false\n if (typeof event.created_at !== 'number') return false\n if (typeof event.pubkey !== 'string') return false\n if (!event.pubkey.match(/^[a-f0-9]{64}$/)) return false\n\n if (!Array.isArray(event.tags)) return false\n for (let i = 0; i < event.tags.length; i++) {\n let tag = event.tags[i]\n if (!Array.isArray(tag)) return false\n for (let j = 0; j < tag.length; j++) {\n if (typeof tag[j] !== 'string') return false\n }\n }\n\n return true\n}\n\n/**\n * Sort events in reverse-chronological order by the `created_at` timestamp,\n * and then by the event `id` (lexicographically) in case of ties.\n * This mutates the array.\n */\nexport function sortEvents(events: Event[]): Event[] {\n return events.sort((a: NostrEvent, b: NostrEvent): number => {\n if (a.created_at !== b.created_at) {\n return b.created_at - a.created_at\n }\n return a.id.localeCompare(b.id)\n })\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA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AAwB;AAE9B,IAAM,aAAa;AAEnB,IAAM,YAAY;AAElB,IAAM,cAAc;AAEpB,IAAM,UAAU;AAEhB,IAAM,aAAa;AAEnB,IAAM,MAAM;AAEZ,IAAM,aAAa;AAEnB,IAAM,eAAe;AAErB,IAAM,WAAW;AAEjB,IAAM,UAAU;AAEhB,IAAM,YAAY;AAElB,IAAM,eAAe;AAErB,IAAM,kBAAkB;AAExB,IAAM,kBAAkB;AAExB,IAAM,oBAAoB;AAE1B,IAAM,mBAAmB;AAEzB,IAAM,iBAAiB;AAEvB,IAAM,gBAAgB;AAEtB,IAAM,gBAAgB;AAEtB,IAAM,0BAA0B;AAEhC,IAAM,uBAAuB;AAE7B,IAAM,oBAAoB;AAE1B,IAAM,gBAAgB;AAEtB,IAAM,kBAAkB;AAExB,IAAM,aAAa;AAEnB,IAAM,mBAAmB;AAEzB,IAAM,oBAAoB;AAE1B,IAAM,eAAe;AAErB,IAAM,WAAW;AAEjB,IAAM,aAAa;AAEnB,IAAM,eAAe;AAErB,IAAM,YAAY;AAElB,IAAM,eAAe;AAErB,IAAM,eAAe;AAErB,IAAM,gBAAgB;AAEtB,IAAM,kBAAkB;AAExB,IAAM,eAAe;AAErB,IAAM,sBAAsB;AAE5B,IAAM,wBAAwB;AAE9B,IAAM,kBAAkB;AAExB,IAAM,YAAY;AAElB,IAAM,YAAY;AAElB,IAAM,cAAc;AAEpB,IAAM,YAAY;AAElB,IAAM,eAAe;AAErB,IAAM,oBAAoB;AAE1B,IAAM,yBAAyB;AAE/B,IAAM,OAAO;AAEb,IAAM,OAAO;AAEb,IAAM,WAAW;AAEjB,IAAM,oBAAoB;AAE1B,IAAM,cAAc;AAEpB,IAAM,wBAAwB;AAE9B,IAAM,qBAAqB;AAE3B,IAAM,sBAAsB;AAE5B,IAAM,gBAAgB;",
4
+ "sourcesContent": ["import { NostrEvent, validateEvent } from './pure.ts'\n\n/** Events are **regular**, which means they're all expected to be stored by relays. */\nexport function isRegularKind(kind: number): boolean {\n return kind < 10000 && kind !== 0 && kind !== 3\n}\n\n/** Events are **replaceable**, which means that, for each combination of `pubkey` and `kind`, only the latest event is expected to (SHOULD) be stored by relays, older versions are expected to be discarded. */\nexport function isReplaceableKind(kind: number): boolean {\n return kind === 0 || kind === 3 || (10000 <= kind && kind < 20000)\n}\n\n/** Events are **ephemeral**, which means they are not expected to be stored by relays. */\nexport function isEphemeralKind(kind: number): boolean {\n return 20000 <= kind && kind < 30000\n}\n\n/** Events are **addressable**, which means that, for each combination of `pubkey`, `kind` and the `d` tag, only the latest event is expected to be stored by relays, older versions are expected to be discarded. */\nexport function isAddressableKind(kind: number): boolean {\n return 30000 <= kind && kind < 40000\n}\n\n/** Classification of the event kind. */\nexport type KindClassification = 'regular' | 'replaceable' | 'ephemeral' | 'parameterized' | 'unknown'\n\n/** Determine the classification of this kind of event if known, or `unknown`. */\nexport function classifyKind(kind: number): KindClassification {\n if (isRegularKind(kind)) return 'regular'\n if (isReplaceableKind(kind)) return 'replaceable'\n if (isEphemeralKind(kind)) return 'ephemeral'\n if (isAddressableKind(kind)) return 'parameterized'\n return 'unknown'\n}\n\nexport function isKind<T extends number>(event: unknown, kind: T | Array<T>): event is NostrEvent & { kind: T } {\n const kindAsArray: number[] = kind instanceof Array ? kind : [kind]\n return (validateEvent(event) && kindAsArray.includes(event.kind)) || false\n}\n\nexport const Metadata = 0\nexport type Metadata = typeof Metadata\nexport const ShortTextNote = 1\nexport type ShortTextNote = typeof ShortTextNote\nexport const RecommendRelay = 2\nexport type RecommendRelay = typeof RecommendRelay\nexport const Contacts = 3\nexport type Contacts = typeof Contacts\nexport const EncryptedDirectMessage = 4\nexport type EncryptedDirectMessage = typeof EncryptedDirectMessage\nexport const EventDeletion = 5\nexport type EventDeletion = typeof EventDeletion\nexport const Repost = 6\nexport type Repost = typeof Repost\nexport const Reaction = 7\nexport type Reaction = typeof Reaction\nexport const BadgeAward = 8\nexport type BadgeAward = typeof BadgeAward\nexport const ChatMessage = 9\nexport type ChatMessage = typeof ChatMessage\nexport const SimpleGroupThreadedReply = 10\nexport type SimpleGroupThreadedReply = typeof SimpleGroupThreadedReply\nexport const ForumThread = 11\nexport type ForumThread = typeof ForumThread\nexport const SimpleGroupReply = 12\nexport type SimpleGroupReply = typeof SimpleGroupReply\nexport const Seal = 13\nexport type Seal = typeof Seal\nexport const PrivateDirectMessage = 14\nexport type PrivateDirectMessage = typeof PrivateDirectMessage\nexport const FileMessage = 15\nexport type FileMessage = typeof FileMessage\nexport const GenericRepost = 16\nexport type GenericRepost = typeof GenericRepost\nexport const ReactionToWebsite = 17\nexport type ReactionToWebsite = typeof ReactionToWebsite\nexport const Photo = 20\nexport type Photo = typeof Photo\nexport const NormalVideo = 21\nexport type NormalVideo = typeof NormalVideo\nexport const ShortVideo = 22\nexport type ShortVideo = typeof ShortVideo\nexport const PublicMessage = 24\nexport type PublicMessage = typeof PublicMessage\nexport const ChannelCreation = 40\nexport type ChannelCreation = typeof ChannelCreation\nexport const ChannelMetadata = 41\nexport type ChannelMetadata = typeof ChannelMetadata\nexport const ChannelMessage = 42\nexport type ChannelMessage = typeof ChannelMessage\nexport const ChannelHideMessage = 43\nexport type ChannelHideMessage = typeof ChannelHideMessage\nexport const ChannelMuteUser = 44\nexport type ChannelMuteUser = typeof ChannelMuteUser\nexport const PodcastEpisode = 54\nexport type PodcastEpisode = typeof PodcastEpisode\nexport const Chess = 64\nexport type Chess = typeof Chess\nexport const MergeRequests = 818\nexport type MergeRequests = typeof MergeRequests\nexport const PollResponse = 1018\nexport type PollResponse = typeof PollResponse\nexport const Bid = 1021\nexport type Bid = typeof Bid\nexport const BidConfirmation = 1022\nexport type BidConfirmation = typeof BidConfirmation\nexport const OpenTimestamps = 1040\nexport type OpenTimestamps = typeof OpenTimestamps\nexport const GiftWrap = 1059\nexport type GiftWrap = typeof GiftWrap\nexport const FileMetadata = 1063\nexport type FileMetadata = typeof FileMetadata\nexport const Poll = 1068\nexport type Poll = typeof Poll\nexport const Comment = 1111\nexport type Comment = typeof Comment\nexport const Voice = 1222\nexport type Voice = typeof Voice\nexport const Scroll = 1227\nexport type Scroll = typeof Scroll\nexport const VoiceComment = 1244\nexport type VoiceComment = typeof VoiceComment\nexport const LiveChatMessage = 1311\nexport type LiveChatMessage = typeof LiveChatMessage\nexport const CodeSnippet = 1337\nexport type CodeSnippet = typeof CodeSnippet\nexport const Patch = 1617\nexport type Patch = typeof Patch\nexport const GitPullRequest = 1618\nexport type GitPullRequest = typeof GitPullRequest\nexport const GitPullRequestUpdate = 1619\nexport type GitPullRequestUpdate = typeof GitPullRequestUpdate\nexport const Issue = 1621\nexport type Issue = typeof Issue\nexport const Reply = 1622\nexport type Reply = typeof Reply\nexport const StatusOpen = 1630\nexport type StatusOpen = typeof StatusOpen\nexport const StatusApplied = 1631\nexport type StatusApplied = typeof StatusApplied\nexport const StatusClosed = 1632\nexport type StatusClosed = typeof StatusClosed\nexport const StatusDraft = 1633\nexport type StatusDraft = typeof StatusDraft\nexport const ProblemTracker = 1971\nexport type ProblemTracker = typeof ProblemTracker\nexport const Report = 1984\nexport type Report = typeof Report\nexport const Reporting = 1984\nexport type Reporting = typeof Reporting\nexport const Label = 1985\nexport type Label = typeof Label\nexport const RelayReviews = 1986\nexport type RelayReviews = typeof RelayReviews\nexport const AIEmbeddings = 1987\nexport type AIEmbeddings = typeof AIEmbeddings\nexport const Torrent = 2003\nexport type Torrent = typeof Torrent\nexport const TorrentComment = 2004\nexport type TorrentComment = typeof TorrentComment\nexport const CoinjoinPool = 2022\nexport type CoinjoinPool = typeof CoinjoinPool\nexport const DecoupledKeyClientAnnouncement = 4454\nexport type DecoupledKeyClientAnnouncement = typeof DecoupledKeyClientAnnouncement\nexport const DecoupledEncryptionKeyDistribution = 4455\nexport type DecoupledEncryptionKeyDistribution = typeof DecoupledEncryptionKeyDistribution\nexport const CommunityPostApproval = 4550\nexport type CommunityPostApproval = typeof CommunityPostApproval\nexport const JobRequest = 5999\nexport type JobRequest = typeof JobRequest\nexport const JobResult = 6999\nexport type JobResult = typeof JobResult\nexport const JobFeedback = 7000\nexport type JobFeedback = typeof JobFeedback\nexport const ReservedCashuWalletTokens = 7374\nexport type ReservedCashuWalletTokens = typeof ReservedCashuWalletTokens\nexport const CashuWalletTokens = 7375\nexport type CashuWalletTokens = typeof CashuWalletTokens\nexport const CashuWalletHistory = 7376\nexport type CashuWalletHistory = typeof CashuWalletHistory\nexport const GeocacheLog = 7516\nexport type GeocacheLog = typeof GeocacheLog\nexport const GeocacheProofOfFind = 7517\nexport type GeocacheProofOfFind = typeof GeocacheProofOfFind\nexport const SimpleGroupPutUser = 9000\nexport type SimpleGroupPutUser = typeof SimpleGroupPutUser\nexport const SimpleGroupRemoveUser = 9001\nexport type SimpleGroupRemoveUser = typeof SimpleGroupRemoveUser\nexport const SimpleGroupEditMetadata = 9002\nexport type SimpleGroupEditMetadata = typeof SimpleGroupEditMetadata\nexport const SimpleGroupDeleteEvent = 9005\nexport type SimpleGroupDeleteEvent = typeof SimpleGroupDeleteEvent\nexport const SimpleGroupCreateGroup = 9007\nexport type SimpleGroupCreateGroup = typeof SimpleGroupCreateGroup\nexport const SimpleGroupDeleteGroup = 9008\nexport type SimpleGroupDeleteGroup = typeof SimpleGroupDeleteGroup\nexport const SimpleGroupCreateInvite = 9009\nexport type SimpleGroupCreateInvite = typeof SimpleGroupCreateInvite\nexport const SimpleGroupJoinRequest = 9021\nexport type SimpleGroupJoinRequest = typeof SimpleGroupJoinRequest\nexport const SimpleGroupLeaveRequest = 9022\nexport type SimpleGroupLeaveRequest = typeof SimpleGroupLeaveRequest\nexport const ZapGoal = 9041\nexport type ZapGoal = typeof ZapGoal\nexport const NutZap = 9321\nexport type NutZap = typeof NutZap\nexport const TidalLogin = 9467\nexport type TidalLogin = typeof TidalLogin\nexport const ZapRequest = 9734\nexport type ZapRequest = typeof ZapRequest\nexport const Zap = 9735\nexport type Zap = typeof Zap\nexport const Highlights = 9802\nexport type Highlights = typeof Highlights\nexport const Mutelist = 10000\nexport type Mutelist = typeof Mutelist\nexport const Pinlist = 10001\nexport type Pinlist = typeof Pinlist\nexport const RelayList = 10002\nexport type RelayList = typeof RelayList\nexport const BookmarkList = 10003\nexport type BookmarkList = typeof BookmarkList\nexport const CommunitiesList = 10004\nexport type CommunitiesList = typeof CommunitiesList\nexport const PublicChatsList = 10005\nexport type PublicChatsList = typeof PublicChatsList\nexport const BlockedRelaysList = 10006\nexport type BlockedRelaysList = typeof BlockedRelaysList\nexport const SearchRelaysList = 10007\nexport type SearchRelaysList = typeof SearchRelaysList\nexport const SimpleGroupList = 10009\nexport type SimpleGroupList = typeof SimpleGroupList\nexport const FavoriteRelays = 10012\nexport type FavoriteRelays = typeof FavoriteRelays\nexport const PrivateEventRelayList = 10013\nexport type PrivateEventRelayList = typeof PrivateEventRelayList\nexport const InterestsList = 10015\nexport type InterestsList = typeof InterestsList\nexport const NutZapInfo = 10019\nexport type NutZapInfo = typeof NutZapInfo\nexport const MediaFollows = 10020\nexport type MediaFollows = typeof MediaFollows\nexport const UserEmojiList = 10030\nexport type UserEmojiList = typeof UserEmojiList\nexport const DecoupledKeyAnnouncement = 10044\nexport type DecoupledKeyAnnouncement = typeof DecoupledKeyAnnouncement\nexport const DirectMessageRelaysList = 10050\nexport type DirectMessageRelaysList = typeof DirectMessageRelaysList\nexport const FavoritePodcasts = 10054\nexport type FavoritePodcasts = typeof FavoritePodcasts\nexport const BlossomServerList = 10063\nexport type BlossomServerList = typeof BlossomServerList\nexport const FileServerPreference = 10096\nexport type FileServerPreference = typeof FileServerPreference\nexport const GoodWikiAuthorList = 10101\nexport type GoodWikiAuthorList = typeof GoodWikiAuthorList\nexport const GoodWikiRelayList = 10102\nexport type GoodWikiRelayList = typeof GoodWikiRelayList\nexport const PodcastMetadata = 10154\nexport type PodcastMetadata = typeof PodcastMetadata\nexport const AuthoredPodcasts = 10164\nexport type AuthoredPodcasts = typeof AuthoredPodcasts\nexport const RelayMonitorAnnouncement = 10166\nexport type RelayMonitorAnnouncement = typeof RelayMonitorAnnouncement\nexport const RoomPresence = 10312\nexport type RoomPresence = typeof RoomPresence\nexport const UserGraspList = 10317\nexport type UserGraspList = typeof UserGraspList\nexport const ProxyAnnouncement = 10377\nexport type ProxyAnnouncement = typeof ProxyAnnouncement\nexport const TransportMethodAnnouncement = 11111\nexport type TransportMethodAnnouncement = typeof TransportMethodAnnouncement\nexport const NWCWalletInfo = 13194\nexport type NWCWalletInfo = typeof NWCWalletInfo\nexport const NsiteRoot = 15128\nexport type NsiteRoot = typeof NsiteRoot\nexport const CashuWalletEvent = 17375\nexport type CashuWalletEvent = typeof CashuWalletEvent\nexport const LightningPubRPC = 21000\nexport type LightningPubRPC = typeof LightningPubRPC\nexport const ClientAuth = 22242\nexport type ClientAuth = typeof ClientAuth\nexport const NWCWalletRequest = 23194\nexport type NWCWalletRequest = typeof NWCWalletRequest\nexport const NWCWalletResponse = 23195\nexport type NWCWalletResponse = typeof NWCWalletResponse\nexport const NostrConnect = 24133\nexport type NostrConnect = typeof NostrConnect\nexport const BlobsAuth = 24242\nexport type BlobsAuth = typeof BlobsAuth\nexport const HTTPAuth = 27235\nexport type HTTPAuth = typeof HTTPAuth\nexport const Followsets = 30000\nexport type Followsets = typeof Followsets\nexport const Genericlists = 30001\nexport type Genericlists = typeof Genericlists\nexport const Relaysets = 30002\nexport type Relaysets = typeof Relaysets\nexport const Bookmarksets = 30003\nexport type Bookmarksets = typeof Bookmarksets\nexport const Curationsets = 30004\nexport type Curationsets = typeof Curationsets\nexport const CuratedVideoSets = 30005\nexport type CuratedVideoSets = typeof CuratedVideoSets\nexport const MuteSets = 30007\nexport type MuteSets = typeof MuteSets\nexport const ProfileBadges = 30008\nexport type ProfileBadges = typeof ProfileBadges\nexport const BadgeDefinition = 30009\nexport type BadgeDefinition = typeof BadgeDefinition\nexport const Interestsets = 30015\nexport type Interestsets = typeof Interestsets\nexport const CreateOrUpdateStall = 30017\nexport type CreateOrUpdateStall = typeof CreateOrUpdateStall\nexport const CreateOrUpdateProduct = 30018\nexport type CreateOrUpdateProduct = typeof CreateOrUpdateProduct\nexport const MarketplaceUI = 30019\nexport type MarketplaceUI = typeof MarketplaceUI\nexport const ProductSoldAsAuction = 30020\nexport type ProductSoldAsAuction = typeof ProductSoldAsAuction\nexport const LongFormArticle = 30023\nexport type LongFormArticle = typeof LongFormArticle\nexport const DraftLong = 30024\nexport type DraftLong = typeof DraftLong\nexport const Emojisets = 30030\nexport type Emojisets = typeof Emojisets\nexport const ModularArticleHeader = 30040\nexport type ModularArticleHeader = typeof ModularArticleHeader\nexport const ModularArticleContent = 30041\nexport type ModularArticleContent = typeof ModularArticleContent\nexport const ReleaseArtifactSets = 30063\nexport type ReleaseArtifactSets = typeof ReleaseArtifactSets\nexport const Application = 30078\nexport type Application = typeof Application\nexport const RelayDiscovery = 30166\nexport type RelayDiscovery = typeof RelayDiscovery\nexport const AppCurationSet = 30267\nexport type AppCurationSet = typeof AppCurationSet\nexport const LiveEvent = 30311\nexport type LiveEvent = typeof LiveEvent\nexport const InteractiveRoom = 30312\nexport type InteractiveRoom = typeof InteractiveRoom\nexport const ConferenceEvent = 30313\nexport type ConferenceEvent = typeof ConferenceEvent\nexport const UserStatuses = 30315\nexport type UserStatuses = typeof UserStatuses\nexport const SlideSet = 30388\nexport type SlideSet = typeof SlideSet\nexport const ClassifiedListing = 30402\nexport type ClassifiedListing = typeof ClassifiedListing\nexport const DraftClassifiedListing = 30403\nexport type DraftClassifiedListing = typeof DraftClassifiedListing\nexport const RepositoryAnnouncement = 30617\nexport type RepositoryAnnouncement = typeof RepositoryAnnouncement\nexport const RepositoryState = 30618\nexport type RepositoryState = typeof RepositoryState\nexport const WikiArticle = 30818\nexport type WikiArticle = typeof WikiArticle\nexport const Redirects = 30819\nexport type Redirects = typeof Redirects\nexport const DraftEvent = 31234\nexport type DraftEvent = typeof DraftEvent\nexport const LinkSet = 31388\nexport type LinkSet = typeof LinkSet\nexport const Feed = 31890\nexport type Feed = typeof Feed\nexport const Date = 31922\nexport type Date = typeof Date\nexport const Time = 31923\nexport type Time = typeof Time\nexport const Calendar = 31924\nexport type Calendar = typeof Calendar\nexport const CalendarEventRSVP = 31925\nexport type CalendarEventRSVP = typeof CalendarEventRSVP\nexport const RelayReview = 31987\nexport type RelayReview = typeof RelayReview\nexport const Handlerrecommendation = 31989\nexport type Handlerrecommendation = typeof Handlerrecommendation\nexport const Handlerinformation = 31990\nexport type Handlerinformation = typeof Handlerinformation\nexport const SoftwareApplication = 32267\nexport type SoftwareApplication = typeof SoftwareApplication\nexport const LegacyNsiteFile = 34128\nexport type LegacyNsiteFile = typeof LegacyNsiteFile\nexport const VideoViewEvent = 34237\nexport type VideoViewEvent = typeof VideoViewEvent\nexport const CommunityDefinition = 34550\nexport type CommunityDefinition = typeof CommunityDefinition\nexport const NsiteNamed = 35128\nexport type NsiteNamed = typeof NsiteNamed\nexport const GeocacheListing = 37515\nexport type GeocacheListing = typeof GeocacheListing\nexport const GeocacheLogEntry = 37516\nexport type GeocacheLogEntry = typeof GeocacheLogEntry\nexport const CashuMintAnnouncement = 38172\nexport type CashuMintAnnouncement = typeof CashuMintAnnouncement\nexport const FedimintAnnouncement = 38173\nexport type FedimintAnnouncement = typeof FedimintAnnouncement\nexport const PeerToPeerOrderEvents = 38383\nexport type PeerToPeerOrderEvents = typeof PeerToPeerOrderEvents\nexport const GroupMetadata = 39000\nexport type GroupMetadata = typeof GroupMetadata\nexport const SimpleGroupAdmins = 39001\nexport type SimpleGroupAdmins = typeof SimpleGroupAdmins\nexport const SimpleGroupMembers = 39002\nexport type SimpleGroupMembers = typeof SimpleGroupMembers\nexport const SimpleGroupRoles = 39003\nexport type SimpleGroupRoles = typeof SimpleGroupRoles\nexport const SimpleGroupLiveKitParticipants = 39004\nexport type SimpleGroupLiveKitParticipants = typeof SimpleGroupLiveKitParticipants\nexport const StarterPacks = 39089\nexport type StarterPacks = typeof StarterPacks\nexport const MediaStarterPacks = 39092\nexport type MediaStarterPacks = typeof MediaStarterPacks\nexport const WebBookmarks = 39701\nexport type WebBookmarks = typeof WebBookmarks\n", "export interface Nostr {\n generateSecretKey(): Uint8Array\n getPublicKey(secretKey: Uint8Array): string\n finalizeEvent(event: EventTemplate, secretKey: Uint8Array): VerifiedEvent\n verifyEvent(event: Event): event is VerifiedEvent\n}\n\n/** Designates a verified event signature. */\nexport const verifiedSymbol = Symbol('verified')\n\nexport type NostrEvent = {\n kind: number\n tags: string[][]\n content: string\n created_at: number\n pubkey: string\n id: string\n sig: string\n [verifiedSymbol]?: boolean\n}\n\nexport type Event = NostrEvent\nexport type EventTemplate = Pick<Event, 'kind' | 'tags' | 'content' | 'created_at'>\nexport type UnsignedEvent = Pick<Event, 'kind' | 'tags' | 'content' | 'created_at' | 'pubkey'>\n\n/** An event whose signature has been verified. */\nexport interface VerifiedEvent extends Event {\n [verifiedSymbol]: true\n}\n\nconst isRecord = (obj: unknown): obj is Record<string, unknown> => obj instanceof Object\n\nexport function validateEvent<T>(event: T): event is T & UnsignedEvent {\n if (!isRecord(event)) return false\n if (typeof event.kind !== 'number') return false\n if (typeof event.content !== 'string') return false\n if (typeof event.created_at !== 'number') return false\n if (typeof event.pubkey !== 'string') return false\n if (!event.pubkey.match(/^[a-f0-9]{64}$/)) return false\n\n if (!Array.isArray(event.tags)) return false\n for (let i = 0; i < event.tags.length; i++) {\n let tag = event.tags[i]\n if (!Array.isArray(tag)) return false\n for (let j = 0; j < tag.length; j++) {\n if (typeof tag[j] !== 'string') return false\n }\n }\n\n return true\n}\n\n/**\n * Sort events in reverse-chronological order by the `created_at` timestamp,\n * and then by the event `id` (lexicographically) in case of ties.\n * This mutates the array.\n */\nexport function sortEvents(events: Event[]): Event[] {\n return events.sort((a: NostrEvent, b: NostrEvent): number => {\n if (a.created_at !== b.created_at) {\n return b.created_at - a.created_at\n }\n return a.id.localeCompare(b.id)\n })\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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