@vibeiao/sdk 0.1.0

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.
@@ -0,0 +1,929 @@
1
+ import * as _solana_web3_js from '@solana/web3.js';
2
+ import { L as ListingRecord, a as ListingType, b as ListingStatus, C as ClaimPurpose, c as ClaimResponse, V as VerifiedClaimResponse, d as ListingInput, e as ListingReviewRecord, T as TicketVerifyResponse } from './solana-3VMnBZH6.js';
3
+ export { f as fetchSolBalance, g as fetchTokenBalance, h as fetchTokenBalances } from './solana-3VMnBZH6.js';
4
+ export { SelfReliance, createAutoSelfReliance, createSelfRelianceMonitor, createSelfReliancePolicy, createSurvivalMiddleware, withSurvival } from './selfReliance.js';
5
+ import '@coral-xyz/anchor';
6
+
7
+ declare const VIBEIAO_IDL: {
8
+ readonly address: "5jnUTmty5yjiAFsZJpmmwRL68fNFMDJZQwqkiL2kFSoS";
9
+ readonly metadata: {
10
+ readonly name: "vibeiao";
11
+ readonly version: "0.1.0";
12
+ readonly spec: "0.1.0";
13
+ };
14
+ readonly instructions: readonly [{
15
+ readonly name: "create_listing";
16
+ readonly discriminator: readonly [18, 168, 45, 24, 191, 31, 117, 54];
17
+ readonly accounts: readonly [{
18
+ readonly name: "creator";
19
+ readonly writable: true;
20
+ readonly signer: true;
21
+ }, {
22
+ readonly name: "listing";
23
+ readonly writable: true;
24
+ readonly pda: {
25
+ readonly seeds: readonly [{
26
+ readonly kind: "const";
27
+ readonly value: readonly [108, 105, 115, 116, 105, 110, 103];
28
+ }, {
29
+ readonly kind: "account";
30
+ readonly path: "creator";
31
+ }, {
32
+ readonly kind: "arg";
33
+ readonly path: "listing_seed";
34
+ }];
35
+ };
36
+ }, {
37
+ readonly name: "system_program";
38
+ readonly address: "11111111111111111111111111111111";
39
+ }];
40
+ readonly args: readonly [{
41
+ readonly name: "listing_seed";
42
+ readonly type: {
43
+ readonly array: readonly ["u8", 32];
44
+ };
45
+ }, {
46
+ readonly name: "revenue_wallet";
47
+ readonly type: "pubkey";
48
+ }, {
49
+ readonly name: "listing_type";
50
+ readonly type: {
51
+ readonly defined: {
52
+ readonly name: "ListingType";
53
+ };
54
+ };
55
+ }, {
56
+ readonly name: "name";
57
+ readonly type: "string";
58
+ }, {
59
+ readonly name: "tagline";
60
+ readonly type: "string";
61
+ }, {
62
+ readonly name: "description";
63
+ readonly type: "string";
64
+ }, {
65
+ readonly name: "category";
66
+ readonly type: "string";
67
+ }, {
68
+ readonly name: "image_url";
69
+ readonly type: "string";
70
+ }, {
71
+ readonly name: "product_url";
72
+ readonly type: "string";
73
+ }, {
74
+ readonly name: "endpoint_url";
75
+ readonly type: "string";
76
+ }, {
77
+ readonly name: "manifest_url";
78
+ readonly type: "string";
79
+ }, {
80
+ readonly name: "ticket_price";
81
+ readonly type: "u64";
82
+ }, {
83
+ readonly name: "target_revenue";
84
+ readonly type: "u64";
85
+ }, {
86
+ readonly name: "buyback_bps";
87
+ readonly type: "u16";
88
+ }];
89
+ }, {
90
+ readonly name: "initialize_config";
91
+ readonly discriminator: readonly [208, 127, 21, 1, 194, 190, 196, 70];
92
+ readonly accounts: readonly [{
93
+ readonly name: "authority";
94
+ readonly writable: true;
95
+ readonly signer: true;
96
+ }, {
97
+ readonly name: "config";
98
+ readonly writable: true;
99
+ readonly pda: {
100
+ readonly seeds: readonly [{
101
+ readonly kind: "const";
102
+ readonly value: readonly [99, 111, 110, 102, 105, 103];
103
+ }];
104
+ };
105
+ }, {
106
+ readonly name: "system_program";
107
+ readonly address: "11111111111111111111111111111111";
108
+ }];
109
+ readonly args: readonly [{
110
+ readonly name: "platform_treasury";
111
+ readonly type: "pubkey";
112
+ }, {
113
+ readonly name: "buyback_treasury";
114
+ readonly type: "pubkey";
115
+ }];
116
+ }, {
117
+ readonly name: "initialize_token";
118
+ readonly discriminator: readonly [38, 209, 150, 50, 190, 117, 16, 54];
119
+ readonly accounts: readonly [{
120
+ readonly name: "creator";
121
+ readonly writable: true;
122
+ readonly signer: true;
123
+ readonly relations: readonly ["listing"];
124
+ }, {
125
+ readonly name: "listing";
126
+ readonly writable: true;
127
+ readonly pda: {
128
+ readonly seeds: readonly [{
129
+ readonly kind: "const";
130
+ readonly value: readonly [108, 105, 115, 116, 105, 110, 103];
131
+ }, {
132
+ readonly kind: "account";
133
+ readonly path: "creator";
134
+ }, {
135
+ readonly kind: "arg";
136
+ readonly path: "listing_seed";
137
+ }];
138
+ };
139
+ }, {
140
+ readonly name: "mint";
141
+ readonly writable: true;
142
+ readonly signer: true;
143
+ }, {
144
+ readonly name: "creator_token_account";
145
+ readonly writable: true;
146
+ readonly pda: {
147
+ readonly seeds: readonly [{
148
+ readonly kind: "account";
149
+ readonly path: "creator";
150
+ }, {
151
+ readonly kind: "const";
152
+ readonly value: readonly [6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169];
153
+ }, {
154
+ readonly kind: "account";
155
+ readonly path: "mint";
156
+ }];
157
+ readonly program: {
158
+ readonly kind: "const";
159
+ readonly value: readonly [140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89];
160
+ };
161
+ };
162
+ }, {
163
+ readonly name: "token_program";
164
+ readonly address: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
165
+ }, {
166
+ readonly name: "associated_token_program";
167
+ readonly address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
168
+ }, {
169
+ readonly name: "system_program";
170
+ readonly address: "11111111111111111111111111111111";
171
+ }, {
172
+ readonly name: "rent";
173
+ readonly address: "SysvarRent111111111111111111111111111111111";
174
+ }];
175
+ readonly args: readonly [{
176
+ readonly name: "listing_seed";
177
+ readonly type: {
178
+ readonly array: readonly ["u8", 32];
179
+ };
180
+ }, {
181
+ readonly name: "token_symbol";
182
+ readonly type: "string";
183
+ }];
184
+ }, {
185
+ readonly name: "purchase_ticket";
186
+ readonly discriminator: readonly [90, 91, 173, 20, 72, 109, 15, 146];
187
+ readonly accounts: readonly [{
188
+ readonly name: "buyer";
189
+ readonly writable: true;
190
+ readonly signer: true;
191
+ }, {
192
+ readonly name: "listing";
193
+ readonly writable: true;
194
+ }, {
195
+ readonly name: "config";
196
+ readonly pda: {
197
+ readonly seeds: readonly [{
198
+ readonly kind: "const";
199
+ readonly value: readonly [99, 111, 110, 102, 105, 103];
200
+ }];
201
+ };
202
+ }, {
203
+ readonly name: "creator";
204
+ readonly writable: true;
205
+ readonly relations: readonly ["listing"];
206
+ }, {
207
+ readonly name: "revenue_wallet";
208
+ readonly writable: true;
209
+ }, {
210
+ readonly name: "platform_treasury";
211
+ readonly writable: true;
212
+ }, {
213
+ readonly name: "buyback_treasury";
214
+ readonly writable: true;
215
+ }, {
216
+ readonly name: "ticket_receipt";
217
+ readonly writable: true;
218
+ readonly pda: {
219
+ readonly seeds: readonly [{
220
+ readonly kind: "const";
221
+ readonly value: readonly [116, 105, 99, 107, 101, 116];
222
+ }, {
223
+ readonly kind: "account";
224
+ readonly path: "listing";
225
+ }, {
226
+ readonly kind: "account";
227
+ readonly path: "buyer";
228
+ }];
229
+ };
230
+ }, {
231
+ readonly name: "system_program";
232
+ readonly address: "11111111111111111111111111111111";
233
+ }];
234
+ readonly args: readonly [];
235
+ }, {
236
+ readonly name: "redeem_ticket";
237
+ readonly discriminator: readonly [129, 120, 104, 224, 155, 25, 22, 192];
238
+ readonly accounts: readonly [{
239
+ readonly name: "buyer";
240
+ readonly writable: true;
241
+ readonly signer: true;
242
+ }, {
243
+ readonly name: "listing";
244
+ }, {
245
+ readonly name: "ticket_receipt";
246
+ readonly writable: true;
247
+ readonly pda: {
248
+ readonly seeds: readonly [{
249
+ readonly kind: "const";
250
+ readonly value: readonly [116, 105, 99, 107, 101, 116];
251
+ }, {
252
+ readonly kind: "account";
253
+ readonly path: "listing";
254
+ }, {
255
+ readonly kind: "account";
256
+ readonly path: "buyer";
257
+ }];
258
+ };
259
+ }];
260
+ readonly args: readonly [];
261
+ }, {
262
+ readonly name: "set_buyback_bps";
263
+ readonly discriminator: readonly [26, 112, 151, 155, 69, 147, 234, 24];
264
+ readonly accounts: readonly [{
265
+ readonly name: "creator";
266
+ readonly writable: true;
267
+ readonly signer: true;
268
+ readonly relations: readonly ["listing"];
269
+ }, {
270
+ readonly name: "listing";
271
+ readonly writable: true;
272
+ }];
273
+ readonly args: readonly [{
274
+ readonly name: "buyback_bps";
275
+ readonly type: "u16";
276
+ }];
277
+ }, {
278
+ readonly name: "trigger_ipo";
279
+ readonly discriminator: readonly [130, 168, 9, 179, 203, 226, 186, 114];
280
+ readonly accounts: readonly [{
281
+ readonly name: "creator";
282
+ readonly writable: true;
283
+ readonly signer: true;
284
+ readonly relations: readonly ["listing"];
285
+ }, {
286
+ readonly name: "listing";
287
+ readonly writable: true;
288
+ readonly pda: {
289
+ readonly seeds: readonly [{
290
+ readonly kind: "const";
291
+ readonly value: readonly [108, 105, 115, 116, 105, 110, 103];
292
+ }, {
293
+ readonly kind: "account";
294
+ readonly path: "creator";
295
+ }, {
296
+ readonly kind: "arg";
297
+ readonly path: "listing_seed";
298
+ }];
299
+ };
300
+ }, {
301
+ readonly name: "vault";
302
+ readonly writable: true;
303
+ readonly pda: {
304
+ readonly seeds: readonly [{
305
+ readonly kind: "const";
306
+ readonly value: readonly [118, 97, 117, 108, 116];
307
+ }, {
308
+ readonly kind: "account";
309
+ readonly path: "listing";
310
+ }];
311
+ };
312
+ }, {
313
+ readonly name: "system_program";
314
+ readonly address: "11111111111111111111111111111111";
315
+ }];
316
+ readonly args: readonly [{
317
+ readonly name: "listing_seed";
318
+ readonly type: {
319
+ readonly array: readonly ["u8", 32];
320
+ };
321
+ }, {
322
+ readonly name: "buyback_bps";
323
+ readonly type: "u16";
324
+ }];
325
+ }, {
326
+ readonly name: "update_config";
327
+ readonly discriminator: readonly [29, 158, 252, 191, 10, 83, 219, 99];
328
+ readonly accounts: readonly [{
329
+ readonly name: "authority";
330
+ readonly writable: true;
331
+ readonly signer: true;
332
+ }, {
333
+ readonly name: "config";
334
+ readonly writable: true;
335
+ readonly pda: {
336
+ readonly seeds: readonly [{
337
+ readonly kind: "const";
338
+ readonly value: readonly [99, 111, 110, 102, 105, 103];
339
+ }];
340
+ };
341
+ }];
342
+ readonly args: readonly [{
343
+ readonly name: "platform_treasury";
344
+ readonly type: "pubkey";
345
+ }, {
346
+ readonly name: "buyback_treasury";
347
+ readonly type: "pubkey";
348
+ }];
349
+ }, {
350
+ readonly name: "update_ticket_price";
351
+ readonly discriminator: readonly [248, 105, 7, 184, 173, 88, 39, 242];
352
+ readonly accounts: readonly [{
353
+ readonly name: "creator";
354
+ readonly writable: true;
355
+ readonly signer: true;
356
+ readonly relations: readonly ["listing"];
357
+ }, {
358
+ readonly name: "listing";
359
+ readonly writable: true;
360
+ }];
361
+ readonly args: readonly [{
362
+ readonly name: "ticket_price";
363
+ readonly type: "u64";
364
+ }];
365
+ }];
366
+ readonly accounts: readonly [{
367
+ readonly name: "Listing";
368
+ readonly discriminator: readonly [218, 32, 50, 73, 43, 134, 26, 58];
369
+ }, {
370
+ readonly name: "ListingVault";
371
+ readonly discriminator: readonly [23, 14, 106, 31, 168, 17, 92, 121];
372
+ }, {
373
+ readonly name: "ProtocolConfig";
374
+ readonly discriminator: readonly [207, 91, 250, 28, 152, 179, 215, 209];
375
+ }, {
376
+ readonly name: "TicketReceipt";
377
+ readonly discriminator: readonly [33, 39, 194, 207, 210, 208, 161, 103];
378
+ }];
379
+ readonly events: readonly [{
380
+ readonly name: "TicketPriceUpdated";
381
+ readonly discriminator: readonly [92, 125, 96, 126, 80, 77, 64, 176];
382
+ }, {
383
+ readonly name: "TicketPurchased";
384
+ readonly discriminator: readonly [108, 59, 246, 95, 84, 145, 13, 71];
385
+ }, {
386
+ readonly name: "TicketRedeemed";
387
+ readonly discriminator: readonly [251, 171, 7, 57, 152, 25, 168, 38];
388
+ }];
389
+ readonly errors: readonly [{
390
+ readonly code: 6000;
391
+ readonly name: "InvalidTicketPrice";
392
+ readonly msg: "Ticket price must be greater than zero.";
393
+ }, {
394
+ readonly code: 6001;
395
+ readonly name: "InvalidListingStatus";
396
+ readonly msg: "Listing is not in the expected status.";
397
+ }, {
398
+ readonly code: 6002;
399
+ readonly name: "IpoNotReady";
400
+ readonly msg: "IPO revenue threshold not met.";
401
+ }, {
402
+ readonly code: 6003;
403
+ readonly name: "InvalidSymbol";
404
+ readonly msg: "Symbol length exceeds limit.";
405
+ }, {
406
+ readonly code: 6004;
407
+ readonly name: "StringTooLong";
408
+ readonly msg: "String field exceeds max length.";
409
+ }, {
410
+ readonly code: 6005;
411
+ readonly name: "MathOverflow";
412
+ readonly msg: "Math overflow.";
413
+ }, {
414
+ readonly code: 6006;
415
+ readonly name: "MissingBump";
416
+ readonly msg: "Missing bump.";
417
+ }, {
418
+ readonly code: 6007;
419
+ readonly name: "NoTicketsAvailable";
420
+ readonly msg: "No tickets available.";
421
+ }, {
422
+ readonly code: 6008;
423
+ readonly name: "InvalidReceipt";
424
+ readonly msg: "Invalid ticket receipt.";
425
+ }, {
426
+ readonly code: 6009;
427
+ readonly name: "Unauthorized";
428
+ readonly msg: "Unauthorized.";
429
+ }, {
430
+ readonly code: 6010;
431
+ readonly name: "InvalidTreasury";
432
+ readonly msg: "Invalid treasury address.";
433
+ }, {
434
+ readonly code: 6011;
435
+ readonly name: "InvalidBuybackBps";
436
+ readonly msg: "Invalid buyback percentage.";
437
+ }];
438
+ readonly types: readonly [{
439
+ readonly name: "Listing";
440
+ readonly type: {
441
+ readonly kind: "struct";
442
+ readonly fields: readonly [{
443
+ readonly name: "listing_seed";
444
+ readonly type: {
445
+ readonly array: readonly ["u8", 32];
446
+ };
447
+ }, {
448
+ readonly name: "creator";
449
+ readonly type: "pubkey";
450
+ }, {
451
+ readonly name: "revenue_wallet";
452
+ readonly type: "pubkey";
453
+ }, {
454
+ readonly name: "listing_type";
455
+ readonly type: {
456
+ readonly defined: {
457
+ readonly name: "ListingType";
458
+ };
459
+ };
460
+ }, {
461
+ readonly name: "status";
462
+ readonly type: {
463
+ readonly defined: {
464
+ readonly name: "ListingStatus";
465
+ };
466
+ };
467
+ }, {
468
+ readonly name: "name";
469
+ readonly type: "string";
470
+ }, {
471
+ readonly name: "tagline";
472
+ readonly type: "string";
473
+ }, {
474
+ readonly name: "description";
475
+ readonly type: "string";
476
+ }, {
477
+ readonly name: "category";
478
+ readonly type: "string";
479
+ }, {
480
+ readonly name: "image_url";
481
+ readonly type: "string";
482
+ }, {
483
+ readonly name: "product_url";
484
+ readonly type: "string";
485
+ }, {
486
+ readonly name: "endpoint_url";
487
+ readonly type: "string";
488
+ }, {
489
+ readonly name: "manifest_url";
490
+ readonly type: "string";
491
+ }, {
492
+ readonly name: "ticket_price";
493
+ readonly type: "u64";
494
+ }, {
495
+ readonly name: "target_revenue";
496
+ readonly type: "u64";
497
+ }, {
498
+ readonly name: "revenue";
499
+ readonly type: "u64";
500
+ }, {
501
+ readonly name: "tickets_sold";
502
+ readonly type: "u64";
503
+ }, {
504
+ readonly name: "token_mint";
505
+ readonly type: "pubkey";
506
+ }, {
507
+ readonly name: "token_symbol";
508
+ readonly type: "string";
509
+ }, {
510
+ readonly name: "buyback_bps";
511
+ readonly type: "u16";
512
+ }, {
513
+ readonly name: "buyback_total";
514
+ readonly type: "u64";
515
+ }, {
516
+ readonly name: "platform_buyback_total";
517
+ readonly type: "u64";
518
+ }, {
519
+ readonly name: "bump";
520
+ readonly type: "u8";
521
+ }, {
522
+ readonly name: "vault_bump";
523
+ readonly type: "u8";
524
+ }, {
525
+ readonly name: "created_at";
526
+ readonly type: "i64";
527
+ }];
528
+ };
529
+ }, {
530
+ readonly name: "ListingStatus";
531
+ readonly type: {
532
+ readonly kind: "enum";
533
+ readonly variants: readonly [{
534
+ readonly name: "Grind";
535
+ }, {
536
+ readonly name: "Ipo";
537
+ }, {
538
+ readonly name: "Web2";
539
+ }];
540
+ };
541
+ }, {
542
+ readonly name: "ListingType";
543
+ readonly type: {
544
+ readonly kind: "enum";
545
+ readonly variants: readonly [{
546
+ readonly name: "Agent";
547
+ }, {
548
+ readonly name: "Human";
549
+ }];
550
+ };
551
+ }, {
552
+ readonly name: "ListingVault";
553
+ readonly type: {
554
+ readonly kind: "struct";
555
+ readonly fields: readonly [];
556
+ };
557
+ }, {
558
+ readonly name: "ProtocolConfig";
559
+ readonly type: {
560
+ readonly kind: "struct";
561
+ readonly fields: readonly [{
562
+ readonly name: "authority";
563
+ readonly type: "pubkey";
564
+ }, {
565
+ readonly name: "platform_treasury";
566
+ readonly type: "pubkey";
567
+ }, {
568
+ readonly name: "buyback_treasury";
569
+ readonly type: "pubkey";
570
+ }, {
571
+ readonly name: "bump";
572
+ readonly type: "u8";
573
+ }];
574
+ };
575
+ }, {
576
+ readonly name: "TicketPriceUpdated";
577
+ readonly type: {
578
+ readonly kind: "struct";
579
+ readonly fields: readonly [{
580
+ readonly name: "listing";
581
+ readonly type: "pubkey";
582
+ }, {
583
+ readonly name: "old_price";
584
+ readonly type: "u64";
585
+ }, {
586
+ readonly name: "new_price";
587
+ readonly type: "u64";
588
+ }, {
589
+ readonly name: "timestamp";
590
+ readonly type: "i64";
591
+ }];
592
+ };
593
+ }, {
594
+ readonly name: "TicketPurchased";
595
+ readonly type: {
596
+ readonly kind: "struct";
597
+ readonly fields: readonly [{
598
+ readonly name: "listing";
599
+ readonly type: "pubkey";
600
+ }, {
601
+ readonly name: "buyer";
602
+ readonly type: "pubkey";
603
+ }, {
604
+ readonly name: "amount";
605
+ readonly type: "u64";
606
+ }, {
607
+ readonly name: "creator";
608
+ readonly type: "pubkey";
609
+ }, {
610
+ readonly name: "platform";
611
+ readonly type: "pubkey";
612
+ }, {
613
+ readonly name: "creator_amount";
614
+ readonly type: "u64";
615
+ }, {
616
+ readonly name: "platform_amount";
617
+ readonly type: "u64";
618
+ }, {
619
+ readonly name: "buyback_amount";
620
+ readonly type: "u64";
621
+ }, {
622
+ readonly name: "platform_buyback_amount";
623
+ readonly type: "u64";
624
+ }, {
625
+ readonly name: "status";
626
+ readonly type: {
627
+ readonly defined: {
628
+ readonly name: "ListingStatus";
629
+ };
630
+ };
631
+ }, {
632
+ readonly name: "remaining";
633
+ readonly type: "u64";
634
+ }, {
635
+ readonly name: "timestamp";
636
+ readonly type: "i64";
637
+ }];
638
+ };
639
+ }, {
640
+ readonly name: "TicketReceipt";
641
+ readonly type: {
642
+ readonly kind: "struct";
643
+ readonly fields: readonly [{
644
+ readonly name: "listing";
645
+ readonly type: "pubkey";
646
+ }, {
647
+ readonly name: "buyer";
648
+ readonly type: "pubkey";
649
+ }, {
650
+ readonly name: "count";
651
+ readonly type: "u64";
652
+ }, {
653
+ readonly name: "last_purchased_at";
654
+ readonly type: "i64";
655
+ }, {
656
+ readonly name: "last_redeemed_at";
657
+ readonly type: "i64";
658
+ }];
659
+ };
660
+ }, {
661
+ readonly name: "TicketRedeemed";
662
+ readonly type: {
663
+ readonly kind: "struct";
664
+ readonly fields: readonly [{
665
+ readonly name: "listing";
666
+ readonly type: "pubkey";
667
+ }, {
668
+ readonly name: "buyer";
669
+ readonly type: "pubkey";
670
+ }, {
671
+ readonly name: "remaining";
672
+ readonly type: "u64";
673
+ }, {
674
+ readonly name: "timestamp";
675
+ readonly type: "i64";
676
+ }];
677
+ };
678
+ }];
679
+ };
680
+
681
+ interface VibeClientOptions {
682
+ baseUrl?: string;
683
+ fetcher?: typeof fetch;
684
+ }
685
+ interface ApiResponse<T> {
686
+ data?: T;
687
+ error?: string;
688
+ details?: unknown;
689
+ }
690
+ type OpenRouterCredits = {
691
+ credits?: number;
692
+ remaining_credits?: number;
693
+ remainingCredits?: number;
694
+ total_credits?: number;
695
+ totalCredits?: number;
696
+ total_spent?: number;
697
+ totalSpent?: number;
698
+ data?: Record<string, unknown>;
699
+ [key: string]: unknown;
700
+ };
701
+ type ResourceSnapshot = {
702
+ solBalance?: number;
703
+ openRouterCredits?: number;
704
+ tokenBalances?: Record<string, number>;
705
+ updatedAt?: number;
706
+ };
707
+ interface ListingQuery {
708
+ type?: ListingType;
709
+ status?: ListingStatus;
710
+ category?: string;
711
+ q?: string;
712
+ llmRequired?: boolean;
713
+ sort?: 'recent' | 'revenue' | 'tickets' | 'buyback';
714
+ limit?: number;
715
+ offset?: number;
716
+ }
717
+ interface LeaderboardEntry {
718
+ listing: ListingRecord;
719
+ revenue: number;
720
+ }
721
+ interface LeaderboardQuery {
722
+ type?: ListingType;
723
+ window?: string;
724
+ limit?: number;
725
+ }
726
+ interface ListingReviewCreatePayload {
727
+ wallet: string;
728
+ rating: number;
729
+ comment: string;
730
+ appVersion?: string;
731
+ redeemSignature: string;
732
+ }
733
+ interface ListingReviewResponsePayload {
734
+ wallet: string;
735
+ signature: string;
736
+ status: 'accepted' | 'addressed' | 'planned' | 'disputed' | 'wont_fix';
737
+ comment?: string;
738
+ timestamp: number;
739
+ }
740
+ interface ListingVersionPayload {
741
+ wallet: string;
742
+ signature: string;
743
+ version: string;
744
+ timestamp: number;
745
+ }
746
+ interface ReviewRequiredPayload {
747
+ listingId: string;
748
+ redeemSignature: string;
749
+ appVersion: string;
750
+ reviewUrl: string;
751
+ }
752
+ type ReviewGateRecord = {
753
+ listingId: string;
754
+ wallet: string;
755
+ redeemSignature: string;
756
+ appVersion: string;
757
+ createdAt: number;
758
+ };
759
+ interface AnalyticsPoint {
760
+ date: string;
761
+ revenue: number;
762
+ }
763
+ interface BuybackEvent {
764
+ id: number;
765
+ listing_id: string;
766
+ scope?: 'agent' | 'platform';
767
+ input_amount: number;
768
+ output_amount: number;
769
+ signature?: string | null;
770
+ burn_signature?: string | null;
771
+ status: string;
772
+ created_at: string;
773
+ }
774
+ interface MarketingLinkOptions {
775
+ webBaseUrl?: string;
776
+ ref?: string;
777
+ source?: string;
778
+ medium?: string;
779
+ campaign?: string;
780
+ content?: string;
781
+ }
782
+ interface MarketingCampaign {
783
+ id: string;
784
+ url: string;
785
+ createdAt: string;
786
+ }
787
+ interface MemoryPingPayload {
788
+ wallet: string;
789
+ signature: string;
790
+ timestamp: number;
791
+ }
792
+ declare const buildClaimMessage: (nonce: string) => string;
793
+ declare const buildOwnerTransferMessage: (listingId: string, newOwnerWallet: string, nonce: string) => string;
794
+ declare const buildMemoryPingMessage: (listingId: string, timestamp: number) => string;
795
+ declare const buildListingVersionMessage: (listingId: string, version: string, timestamp: number) => string;
796
+ declare const buildReviewResponseMessage: (reviewId: string, status: string, timestamp: number) => string;
797
+ declare const buildReviewPrompt: () => string;
798
+ declare const buildReviewRequired: (listingId: string, redeemSignature: string, appVersion: string, options?: {
799
+ baseUrl?: string;
800
+ }) => ReviewRequiredPayload;
801
+ declare class ReviewGate {
802
+ private pending;
803
+ private key;
804
+ require(record: ReviewGateRecord): ReviewGateRecord;
805
+ get(listingId: string, wallet: string): ReviewGateRecord;
806
+ clear(listingId: string, wallet: string): void;
807
+ assertClear(listingId: string, wallet: string): void;
808
+ }
809
+
810
+ declare class VibeClient {
811
+ private baseUrl;
812
+ private fetcher;
813
+ constructor(options?: VibeClientOptions);
814
+ createClaim(wallet: string, purpose: ClaimPurpose): Promise<ApiResponse<ClaimResponse>>;
815
+ verifyClaim(claimId: string, signature: string): Promise<ApiResponse<VerifiedClaimResponse>>;
816
+ createListing(claimId: string, listing: ListingInput, ownerClaimId?: string): Promise<ApiResponse<ListingRecord>>;
817
+ registerAgent(claimId: string, listing: ListingInput, ownerClaimId?: string): Promise<ApiResponse<ListingRecord>>;
818
+ updateListingStatus(listingId: string, claimId: string, status: ListingStatus): Promise<ApiResponse<ListingRecord>>;
819
+ updateListingPrice(listingId: string, claimId: string, priceUsdc: number): Promise<ApiResponse<ListingRecord>>;
820
+ transferOwner(listingId: string, claimId: string, signature: string): Promise<ApiResponse<{
821
+ listing_id: string;
822
+ owner_wallet_id: string;
823
+ owner_wallet_address: string;
824
+ }>>;
825
+ reportMemory(listingId: string, payload: MemoryPingPayload): Promise<ApiResponse<{
826
+ ok: boolean;
827
+ memory_last_seen_at: string;
828
+ }>>;
829
+ listListings(filters?: ListingQuery): Promise<ApiResponse<ListingRecord[]>>;
830
+ getListing(id: string): Promise<ApiResponse<ListingRecord>>;
831
+ getListingReviews(listingId: string, options?: {
832
+ limit?: number;
833
+ offset?: number;
834
+ }): Promise<ApiResponse<ListingReviewRecord[]>>;
835
+ createListingReview(listingId: string, payload: ListingReviewCreatePayload): Promise<ApiResponse<ListingReviewRecord>>;
836
+ respondToListingReview(listingId: string, reviewId: string, payload: ListingReviewResponsePayload): Promise<ApiResponse<ListingReviewRecord>>;
837
+ updateListingVersion(listingId: string, payload: ListingVersionPayload): Promise<ApiResponse<{
838
+ id: string;
839
+ app_version: string;
840
+ }>>;
841
+ getLeaderboard(filters?: LeaderboardQuery): Promise<ApiResponse<LeaderboardEntry[]>>;
842
+ getListingAnalytics(listingId: string, window?: string): Promise<ApiResponse<AnalyticsPoint[]>>;
843
+ getListingBuybacks(listingId: string, limit?: number): Promise<ApiResponse<BuybackEvent[]>>;
844
+ getOpenRouterCredits(apiKey: string): Promise<ApiResponse<OpenRouterCredits>>;
845
+ getOpenRouterCreditsValue(apiKey: string): Promise<ApiResponse<number>>;
846
+ getSolUsdPrice(): Promise<ApiResponse<{
847
+ price: number;
848
+ source: string;
849
+ updatedAt: string;
850
+ }>>;
851
+ verifyTicket(token: string, options?: {
852
+ listingAccount?: string;
853
+ wallet?: string;
854
+ }): Promise<TicketVerifyResponse>;
855
+ verifyRedeem(signature: string, options?: {
856
+ listingAccount?: string;
857
+ wallet?: string;
858
+ maxAgeSec?: number;
859
+ maxAge?: number;
860
+ requireReview?: boolean;
861
+ }): Promise<TicketVerifyResponse>;
862
+ verifyReceipt(listingAccount: string, wallet: string, options?: {
863
+ minCount?: number;
864
+ maxAgeSec?: number;
865
+ maxAge?: number;
866
+ }): Promise<TicketVerifyResponse>;
867
+ private get;
868
+ private post;
869
+ }
870
+ declare class VibeRegistry {
871
+ private client;
872
+ constructor(options?: VibeClientOptions);
873
+ listListings(filters?: ListingQuery): Promise<ListingRecord[]>;
874
+ listAgents(filters?: Omit<ListingQuery, 'type'>): Promise<ListingRecord[]>;
875
+ listHumans(filters?: Omit<ListingQuery, 'type'>): Promise<ListingRecord[]>;
876
+ getListing(id: string): Promise<ListingRecord>;
877
+ getListingReviews(listingId: string, options?: {
878
+ limit?: number;
879
+ offset?: number;
880
+ }): Promise<ListingReviewRecord[]>;
881
+ createListingReview(listingId: string, payload: ListingReviewCreatePayload): Promise<ListingReviewRecord>;
882
+ respondToListingReview(listingId: string, reviewId: string, payload: ListingReviewResponsePayload): Promise<ListingReviewRecord>;
883
+ updateListingVersion(listingId: string, payload: ListingVersionPayload): Promise<{
884
+ id: string;
885
+ app_version: string;
886
+ }>;
887
+ getLeaderboard(filters?: LeaderboardQuery): Promise<LeaderboardEntry[]>;
888
+ getListingAnalytics(listingId: string, window?: string): Promise<AnalyticsPoint[]>;
889
+ getListingBuybacks(listingId: string, limit?: number): Promise<BuybackEvent[]>;
890
+ getOpenRouterCredits(apiKey: string): Promise<OpenRouterCredits>;
891
+ getOpenRouterCreditsValue(apiKey: string): Promise<number>;
892
+ getSolUsdPrice(): Promise<{
893
+ price: number;
894
+ source: string;
895
+ updatedAt: string;
896
+ }>;
897
+ verifyReceipt(listingAccount: string, wallet: string, options?: {
898
+ minCount?: number;
899
+ maxAgeSec?: number;
900
+ maxAge?: number;
901
+ }): Promise<TicketVerifyResponse>;
902
+ verifyRedeem(signature: string, options?: {
903
+ listingAccount?: string;
904
+ wallet?: string;
905
+ maxAgeSec?: number;
906
+ maxAge?: number;
907
+ requireReview?: boolean;
908
+ }): Promise<TicketVerifyResponse>;
909
+ }
910
+ declare const buildShareLink: (listingId: string, options?: MarketingLinkOptions) => string;
911
+ declare const buildShareCopy: (listing: ListingRecord, options?: MarketingLinkOptions) => string;
912
+ declare const buildBadgeMarkdown: (listing: ListingRecord, options?: MarketingLinkOptions) => string;
913
+ declare const createCampaign: (listingId: string, options?: MarketingLinkOptions) => MarketingCampaign;
914
+ declare const buildRaydiumSwapUrl: (tokenMint: string) => string;
915
+ declare const buildJupiterSwapUrl: (tokenMint: string) => string;
916
+ declare const buildTradeLinks: (tokenMint: string) => {
917
+ raydium: string;
918
+ jupiter: string;
919
+ };
920
+
921
+ declare const getResourceSnapshot: (options: {
922
+ connection: _solana_web3_js.Connection;
923
+ wallet: string | _solana_web3_js.PublicKey;
924
+ tokenMints?: Array<string | _solana_web3_js.PublicKey>;
925
+ openRouterApiKey?: string;
926
+ apiBase?: string;
927
+ }) => Promise<ResourceSnapshot>;
928
+
929
+ export { type AnalyticsPoint, type ApiResponse, type BuybackEvent, ClaimPurpose, ClaimResponse, type LeaderboardEntry, type LeaderboardQuery, ListingInput, type ListingQuery, ListingRecord, type ListingReviewCreatePayload, ListingReviewRecord, type ListingReviewResponsePayload, ListingStatus, ListingType, type ListingVersionPayload, type MarketingCampaign, type MarketingLinkOptions, type MemoryPingPayload, type OpenRouterCredits, type ResourceSnapshot, ReviewGate, type ReviewGateRecord, type ReviewRequiredPayload, TicketVerifyResponse, VIBEIAO_IDL, VerifiedClaimResponse, VibeClient, type VibeClientOptions, VibeRegistry, buildBadgeMarkdown, buildClaimMessage, buildJupiterSwapUrl, buildListingVersionMessage, buildMemoryPingMessage, buildOwnerTransferMessage, buildRaydiumSwapUrl, buildReviewPrompt, buildReviewRequired, buildReviewResponseMessage, buildShareCopy, buildShareLink, buildTradeLinks, createCampaign, getResourceSnapshot };