@vibeiao/sdk 0.1.25 → 0.1.30
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/README.md +232 -29
- package/dist/agentLoop.d.ts +84 -2
- package/dist/agentLoop.js +247 -4
- package/dist/chunk-2U6HLZEF.js +1430 -0
- package/dist/chunk-EBI7WT76.js +140 -0
- package/dist/chunk-JJNRDU7F.js +675 -0
- package/dist/chunk-PVCW4MAY.js +99 -0
- package/dist/chunk-RNPCT2MS.js +157 -0
- package/dist/compoundingMemory.d.ts +125 -0
- package/dist/compoundingMemory.js +24 -0
- package/dist/index.d.ts +5 -1130
- package/dist/index.js +193 -19
- package/dist/marketDiscovery.d.ts +1 -1
- package/dist/reflection.d.ts +1 -1
- package/dist/shared-djjMij1F.d.ts +129 -0
- package/dist/solana.d.ts +1 -1
- package/dist/solana.js +1 -1
- package/dist/survivalEscapeHatch.d.ts +53 -0
- package/dist/survivalEscapeHatch.js +8 -0
- package/dist/treasuryGuardian.d.ts +1287 -0
- package/dist/treasuryGuardian.js +14 -0
- package/package.json +9 -3
|
@@ -0,0 +1,1287 @@
|
|
|
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 './shared-djjMij1F.js';
|
|
3
|
+
import { SelfReliancePolicy } from './selfReliance.js';
|
|
4
|
+
import { ReflectionCycleOptions, ReflectionCycleResult } from './reflection.js';
|
|
5
|
+
import './survivalPlaybook.js';
|
|
6
|
+
import './survivalIntegration.js';
|
|
7
|
+
import './survivalEscapeHatch.js';
|
|
8
|
+
import './marketDiscovery.js';
|
|
9
|
+
import './solana.js';
|
|
10
|
+
import '@coral-xyz/anchor';
|
|
11
|
+
|
|
12
|
+
declare const VIBEIAO_IDL: {
|
|
13
|
+
readonly address: "5jnUTmty5yjiAFsZJpmmwRL68fNFMDJZQwqkiL2kFSoS";
|
|
14
|
+
readonly metadata: {
|
|
15
|
+
readonly name: "vibeiao";
|
|
16
|
+
readonly version: "0.1.0";
|
|
17
|
+
readonly spec: "0.1.0";
|
|
18
|
+
};
|
|
19
|
+
readonly instructions: readonly [{
|
|
20
|
+
readonly name: "create_listing";
|
|
21
|
+
readonly discriminator: readonly [18, 168, 45, 24, 191, 31, 117, 54];
|
|
22
|
+
readonly accounts: readonly [{
|
|
23
|
+
readonly name: "creator";
|
|
24
|
+
readonly writable: true;
|
|
25
|
+
readonly signer: true;
|
|
26
|
+
}, {
|
|
27
|
+
readonly name: "listing";
|
|
28
|
+
readonly writable: true;
|
|
29
|
+
readonly pda: {
|
|
30
|
+
readonly seeds: readonly [{
|
|
31
|
+
readonly kind: "const";
|
|
32
|
+
readonly value: readonly [108, 105, 115, 116, 105, 110, 103];
|
|
33
|
+
}, {
|
|
34
|
+
readonly kind: "account";
|
|
35
|
+
readonly path: "creator";
|
|
36
|
+
}, {
|
|
37
|
+
readonly kind: "arg";
|
|
38
|
+
readonly path: "listing_seed";
|
|
39
|
+
}];
|
|
40
|
+
};
|
|
41
|
+
}, {
|
|
42
|
+
readonly name: "system_program";
|
|
43
|
+
readonly address: "11111111111111111111111111111111";
|
|
44
|
+
}];
|
|
45
|
+
readonly args: readonly [{
|
|
46
|
+
readonly name: "listing_seed";
|
|
47
|
+
readonly type: {
|
|
48
|
+
readonly array: readonly ["u8", 32];
|
|
49
|
+
};
|
|
50
|
+
}, {
|
|
51
|
+
readonly name: "revenue_wallet";
|
|
52
|
+
readonly type: "pubkey";
|
|
53
|
+
}, {
|
|
54
|
+
readonly name: "listing_type";
|
|
55
|
+
readonly type: {
|
|
56
|
+
readonly defined: {
|
|
57
|
+
readonly name: "ListingType";
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
}, {
|
|
61
|
+
readonly name: "name";
|
|
62
|
+
readonly type: "string";
|
|
63
|
+
}, {
|
|
64
|
+
readonly name: "tagline";
|
|
65
|
+
readonly type: "string";
|
|
66
|
+
}, {
|
|
67
|
+
readonly name: "description";
|
|
68
|
+
readonly type: "string";
|
|
69
|
+
}, {
|
|
70
|
+
readonly name: "category";
|
|
71
|
+
readonly type: "string";
|
|
72
|
+
}, {
|
|
73
|
+
readonly name: "image_url";
|
|
74
|
+
readonly type: "string";
|
|
75
|
+
}, {
|
|
76
|
+
readonly name: "product_url";
|
|
77
|
+
readonly type: "string";
|
|
78
|
+
}, {
|
|
79
|
+
readonly name: "endpoint_url";
|
|
80
|
+
readonly type: "string";
|
|
81
|
+
}, {
|
|
82
|
+
readonly name: "manifest_url";
|
|
83
|
+
readonly type: "string";
|
|
84
|
+
}, {
|
|
85
|
+
readonly name: "ticket_price";
|
|
86
|
+
readonly type: "u64";
|
|
87
|
+
}, {
|
|
88
|
+
readonly name: "target_revenue";
|
|
89
|
+
readonly type: "u64";
|
|
90
|
+
}, {
|
|
91
|
+
readonly name: "buyback_bps";
|
|
92
|
+
readonly type: "u16";
|
|
93
|
+
}];
|
|
94
|
+
}, {
|
|
95
|
+
readonly name: "initialize_config";
|
|
96
|
+
readonly discriminator: readonly [208, 127, 21, 1, 194, 190, 196, 70];
|
|
97
|
+
readonly accounts: readonly [{
|
|
98
|
+
readonly name: "authority";
|
|
99
|
+
readonly writable: true;
|
|
100
|
+
readonly signer: true;
|
|
101
|
+
}, {
|
|
102
|
+
readonly name: "config";
|
|
103
|
+
readonly writable: true;
|
|
104
|
+
readonly pda: {
|
|
105
|
+
readonly seeds: readonly [{
|
|
106
|
+
readonly kind: "const";
|
|
107
|
+
readonly value: readonly [99, 111, 110, 102, 105, 103];
|
|
108
|
+
}];
|
|
109
|
+
};
|
|
110
|
+
}, {
|
|
111
|
+
readonly name: "system_program";
|
|
112
|
+
readonly address: "11111111111111111111111111111111";
|
|
113
|
+
}];
|
|
114
|
+
readonly args: readonly [{
|
|
115
|
+
readonly name: "platform_treasury";
|
|
116
|
+
readonly type: "pubkey";
|
|
117
|
+
}, {
|
|
118
|
+
readonly name: "buyback_treasury";
|
|
119
|
+
readonly type: "pubkey";
|
|
120
|
+
}];
|
|
121
|
+
}, {
|
|
122
|
+
readonly name: "initialize_token";
|
|
123
|
+
readonly discriminator: readonly [38, 209, 150, 50, 190, 117, 16, 54];
|
|
124
|
+
readonly accounts: readonly [{
|
|
125
|
+
readonly name: "creator";
|
|
126
|
+
readonly writable: true;
|
|
127
|
+
readonly signer: true;
|
|
128
|
+
readonly relations: readonly ["listing"];
|
|
129
|
+
}, {
|
|
130
|
+
readonly name: "listing";
|
|
131
|
+
readonly writable: true;
|
|
132
|
+
readonly pda: {
|
|
133
|
+
readonly seeds: readonly [{
|
|
134
|
+
readonly kind: "const";
|
|
135
|
+
readonly value: readonly [108, 105, 115, 116, 105, 110, 103];
|
|
136
|
+
}, {
|
|
137
|
+
readonly kind: "account";
|
|
138
|
+
readonly path: "creator";
|
|
139
|
+
}, {
|
|
140
|
+
readonly kind: "arg";
|
|
141
|
+
readonly path: "listing_seed";
|
|
142
|
+
}];
|
|
143
|
+
};
|
|
144
|
+
}, {
|
|
145
|
+
readonly name: "mint";
|
|
146
|
+
readonly writable: true;
|
|
147
|
+
readonly signer: true;
|
|
148
|
+
}, {
|
|
149
|
+
readonly name: "creator_token_account";
|
|
150
|
+
readonly writable: true;
|
|
151
|
+
readonly pda: {
|
|
152
|
+
readonly seeds: readonly [{
|
|
153
|
+
readonly kind: "account";
|
|
154
|
+
readonly path: "creator";
|
|
155
|
+
}, {
|
|
156
|
+
readonly kind: "const";
|
|
157
|
+
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];
|
|
158
|
+
}, {
|
|
159
|
+
readonly kind: "account";
|
|
160
|
+
readonly path: "mint";
|
|
161
|
+
}];
|
|
162
|
+
readonly program: {
|
|
163
|
+
readonly kind: "const";
|
|
164
|
+
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];
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
}, {
|
|
168
|
+
readonly name: "token_program";
|
|
169
|
+
readonly address: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
170
|
+
}, {
|
|
171
|
+
readonly name: "associated_token_program";
|
|
172
|
+
readonly address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
173
|
+
}, {
|
|
174
|
+
readonly name: "system_program";
|
|
175
|
+
readonly address: "11111111111111111111111111111111";
|
|
176
|
+
}, {
|
|
177
|
+
readonly name: "rent";
|
|
178
|
+
readonly address: "SysvarRent111111111111111111111111111111111";
|
|
179
|
+
}];
|
|
180
|
+
readonly args: readonly [{
|
|
181
|
+
readonly name: "listing_seed";
|
|
182
|
+
readonly type: {
|
|
183
|
+
readonly array: readonly ["u8", 32];
|
|
184
|
+
};
|
|
185
|
+
}, {
|
|
186
|
+
readonly name: "token_symbol";
|
|
187
|
+
readonly type: "string";
|
|
188
|
+
}];
|
|
189
|
+
}, {
|
|
190
|
+
readonly name: "purchase_ticket";
|
|
191
|
+
readonly discriminator: readonly [90, 91, 173, 20, 72, 109, 15, 146];
|
|
192
|
+
readonly accounts: readonly [{
|
|
193
|
+
readonly name: "buyer";
|
|
194
|
+
readonly writable: true;
|
|
195
|
+
readonly signer: true;
|
|
196
|
+
}, {
|
|
197
|
+
readonly name: "listing";
|
|
198
|
+
readonly writable: true;
|
|
199
|
+
}, {
|
|
200
|
+
readonly name: "config";
|
|
201
|
+
readonly pda: {
|
|
202
|
+
readonly seeds: readonly [{
|
|
203
|
+
readonly kind: "const";
|
|
204
|
+
readonly value: readonly [99, 111, 110, 102, 105, 103];
|
|
205
|
+
}];
|
|
206
|
+
};
|
|
207
|
+
}, {
|
|
208
|
+
readonly name: "creator";
|
|
209
|
+
readonly writable: true;
|
|
210
|
+
readonly relations: readonly ["listing"];
|
|
211
|
+
}, {
|
|
212
|
+
readonly name: "revenue_wallet";
|
|
213
|
+
readonly writable: true;
|
|
214
|
+
}, {
|
|
215
|
+
readonly name: "platform_treasury";
|
|
216
|
+
readonly writable: true;
|
|
217
|
+
}, {
|
|
218
|
+
readonly name: "buyback_treasury";
|
|
219
|
+
readonly writable: true;
|
|
220
|
+
}, {
|
|
221
|
+
readonly name: "ticket_receipt";
|
|
222
|
+
readonly writable: true;
|
|
223
|
+
readonly pda: {
|
|
224
|
+
readonly seeds: readonly [{
|
|
225
|
+
readonly kind: "const";
|
|
226
|
+
readonly value: readonly [116, 105, 99, 107, 101, 116];
|
|
227
|
+
}, {
|
|
228
|
+
readonly kind: "account";
|
|
229
|
+
readonly path: "listing";
|
|
230
|
+
}, {
|
|
231
|
+
readonly kind: "account";
|
|
232
|
+
readonly path: "buyer";
|
|
233
|
+
}];
|
|
234
|
+
};
|
|
235
|
+
}, {
|
|
236
|
+
readonly name: "system_program";
|
|
237
|
+
readonly address: "11111111111111111111111111111111";
|
|
238
|
+
}];
|
|
239
|
+
readonly args: readonly [];
|
|
240
|
+
}, {
|
|
241
|
+
readonly name: "redeem_ticket";
|
|
242
|
+
readonly discriminator: readonly [129, 120, 104, 224, 155, 25, 22, 192];
|
|
243
|
+
readonly accounts: readonly [{
|
|
244
|
+
readonly name: "buyer";
|
|
245
|
+
readonly writable: true;
|
|
246
|
+
readonly signer: true;
|
|
247
|
+
}, {
|
|
248
|
+
readonly name: "listing";
|
|
249
|
+
}, {
|
|
250
|
+
readonly name: "ticket_receipt";
|
|
251
|
+
readonly writable: true;
|
|
252
|
+
readonly pda: {
|
|
253
|
+
readonly seeds: readonly [{
|
|
254
|
+
readonly kind: "const";
|
|
255
|
+
readonly value: readonly [116, 105, 99, 107, 101, 116];
|
|
256
|
+
}, {
|
|
257
|
+
readonly kind: "account";
|
|
258
|
+
readonly path: "listing";
|
|
259
|
+
}, {
|
|
260
|
+
readonly kind: "account";
|
|
261
|
+
readonly path: "buyer";
|
|
262
|
+
}];
|
|
263
|
+
};
|
|
264
|
+
}];
|
|
265
|
+
readonly args: readonly [];
|
|
266
|
+
}, {
|
|
267
|
+
readonly name: "set_buyback_bps";
|
|
268
|
+
readonly discriminator: readonly [26, 112, 151, 155, 69, 147, 234, 24];
|
|
269
|
+
readonly accounts: readonly [{
|
|
270
|
+
readonly name: "creator";
|
|
271
|
+
readonly writable: true;
|
|
272
|
+
readonly signer: true;
|
|
273
|
+
readonly relations: readonly ["listing"];
|
|
274
|
+
}, {
|
|
275
|
+
readonly name: "listing";
|
|
276
|
+
readonly writable: true;
|
|
277
|
+
}];
|
|
278
|
+
readonly args: readonly [{
|
|
279
|
+
readonly name: "buyback_bps";
|
|
280
|
+
readonly type: "u16";
|
|
281
|
+
}];
|
|
282
|
+
}, {
|
|
283
|
+
readonly name: "trigger_ipo";
|
|
284
|
+
readonly discriminator: readonly [130, 168, 9, 179, 203, 226, 186, 114];
|
|
285
|
+
readonly accounts: readonly [{
|
|
286
|
+
readonly name: "creator";
|
|
287
|
+
readonly writable: true;
|
|
288
|
+
readonly signer: true;
|
|
289
|
+
readonly relations: readonly ["listing"];
|
|
290
|
+
}, {
|
|
291
|
+
readonly name: "listing";
|
|
292
|
+
readonly writable: true;
|
|
293
|
+
readonly pda: {
|
|
294
|
+
readonly seeds: readonly [{
|
|
295
|
+
readonly kind: "const";
|
|
296
|
+
readonly value: readonly [108, 105, 115, 116, 105, 110, 103];
|
|
297
|
+
}, {
|
|
298
|
+
readonly kind: "account";
|
|
299
|
+
readonly path: "creator";
|
|
300
|
+
}, {
|
|
301
|
+
readonly kind: "arg";
|
|
302
|
+
readonly path: "listing_seed";
|
|
303
|
+
}];
|
|
304
|
+
};
|
|
305
|
+
}, {
|
|
306
|
+
readonly name: "vault";
|
|
307
|
+
readonly writable: true;
|
|
308
|
+
readonly pda: {
|
|
309
|
+
readonly seeds: readonly [{
|
|
310
|
+
readonly kind: "const";
|
|
311
|
+
readonly value: readonly [118, 97, 117, 108, 116];
|
|
312
|
+
}, {
|
|
313
|
+
readonly kind: "account";
|
|
314
|
+
readonly path: "listing";
|
|
315
|
+
}];
|
|
316
|
+
};
|
|
317
|
+
}, {
|
|
318
|
+
readonly name: "system_program";
|
|
319
|
+
readonly address: "11111111111111111111111111111111";
|
|
320
|
+
}];
|
|
321
|
+
readonly args: readonly [{
|
|
322
|
+
readonly name: "listing_seed";
|
|
323
|
+
readonly type: {
|
|
324
|
+
readonly array: readonly ["u8", 32];
|
|
325
|
+
};
|
|
326
|
+
}, {
|
|
327
|
+
readonly name: "buyback_bps";
|
|
328
|
+
readonly type: "u16";
|
|
329
|
+
}];
|
|
330
|
+
}, {
|
|
331
|
+
readonly name: "update_config";
|
|
332
|
+
readonly discriminator: readonly [29, 158, 252, 191, 10, 83, 219, 99];
|
|
333
|
+
readonly accounts: readonly [{
|
|
334
|
+
readonly name: "authority";
|
|
335
|
+
readonly writable: true;
|
|
336
|
+
readonly signer: true;
|
|
337
|
+
}, {
|
|
338
|
+
readonly name: "config";
|
|
339
|
+
readonly writable: true;
|
|
340
|
+
readonly pda: {
|
|
341
|
+
readonly seeds: readonly [{
|
|
342
|
+
readonly kind: "const";
|
|
343
|
+
readonly value: readonly [99, 111, 110, 102, 105, 103];
|
|
344
|
+
}];
|
|
345
|
+
};
|
|
346
|
+
}];
|
|
347
|
+
readonly args: readonly [{
|
|
348
|
+
readonly name: "platform_treasury";
|
|
349
|
+
readonly type: "pubkey";
|
|
350
|
+
}, {
|
|
351
|
+
readonly name: "buyback_treasury";
|
|
352
|
+
readonly type: "pubkey";
|
|
353
|
+
}];
|
|
354
|
+
}, {
|
|
355
|
+
readonly name: "update_ticket_price";
|
|
356
|
+
readonly discriminator: readonly [248, 105, 7, 184, 173, 88, 39, 242];
|
|
357
|
+
readonly accounts: readonly [{
|
|
358
|
+
readonly name: "creator";
|
|
359
|
+
readonly writable: true;
|
|
360
|
+
readonly signer: true;
|
|
361
|
+
readonly relations: readonly ["listing"];
|
|
362
|
+
}, {
|
|
363
|
+
readonly name: "listing";
|
|
364
|
+
readonly writable: true;
|
|
365
|
+
}];
|
|
366
|
+
readonly args: readonly [{
|
|
367
|
+
readonly name: "ticket_price";
|
|
368
|
+
readonly type: "u64";
|
|
369
|
+
}];
|
|
370
|
+
}];
|
|
371
|
+
readonly accounts: readonly [{
|
|
372
|
+
readonly name: "Listing";
|
|
373
|
+
readonly discriminator: readonly [218, 32, 50, 73, 43, 134, 26, 58];
|
|
374
|
+
}, {
|
|
375
|
+
readonly name: "ListingVault";
|
|
376
|
+
readonly discriminator: readonly [23, 14, 106, 31, 168, 17, 92, 121];
|
|
377
|
+
}, {
|
|
378
|
+
readonly name: "ProtocolConfig";
|
|
379
|
+
readonly discriminator: readonly [207, 91, 250, 28, 152, 179, 215, 209];
|
|
380
|
+
}, {
|
|
381
|
+
readonly name: "TicketReceipt";
|
|
382
|
+
readonly discriminator: readonly [33, 39, 194, 207, 210, 208, 161, 103];
|
|
383
|
+
}];
|
|
384
|
+
readonly events: readonly [{
|
|
385
|
+
readonly name: "TicketPriceUpdated";
|
|
386
|
+
readonly discriminator: readonly [92, 125, 96, 126, 80, 77, 64, 176];
|
|
387
|
+
}, {
|
|
388
|
+
readonly name: "TicketPurchased";
|
|
389
|
+
readonly discriminator: readonly [108, 59, 246, 95, 84, 145, 13, 71];
|
|
390
|
+
}, {
|
|
391
|
+
readonly name: "TicketRedeemed";
|
|
392
|
+
readonly discriminator: readonly [251, 171, 7, 57, 152, 25, 168, 38];
|
|
393
|
+
}];
|
|
394
|
+
readonly errors: readonly [{
|
|
395
|
+
readonly code: 6000;
|
|
396
|
+
readonly name: "InvalidTicketPrice";
|
|
397
|
+
readonly msg: "Ticket price must be greater than zero.";
|
|
398
|
+
}, {
|
|
399
|
+
readonly code: 6001;
|
|
400
|
+
readonly name: "InvalidListingStatus";
|
|
401
|
+
readonly msg: "Listing is not in the expected status.";
|
|
402
|
+
}, {
|
|
403
|
+
readonly code: 6002;
|
|
404
|
+
readonly name: "IpoNotReady";
|
|
405
|
+
readonly msg: "IPO revenue threshold not met.";
|
|
406
|
+
}, {
|
|
407
|
+
readonly code: 6003;
|
|
408
|
+
readonly name: "InvalidSymbol";
|
|
409
|
+
readonly msg: "Symbol length exceeds limit.";
|
|
410
|
+
}, {
|
|
411
|
+
readonly code: 6004;
|
|
412
|
+
readonly name: "StringTooLong";
|
|
413
|
+
readonly msg: "String field exceeds max length.";
|
|
414
|
+
}, {
|
|
415
|
+
readonly code: 6005;
|
|
416
|
+
readonly name: "MathOverflow";
|
|
417
|
+
readonly msg: "Math overflow.";
|
|
418
|
+
}, {
|
|
419
|
+
readonly code: 6006;
|
|
420
|
+
readonly name: "MissingBump";
|
|
421
|
+
readonly msg: "Missing bump.";
|
|
422
|
+
}, {
|
|
423
|
+
readonly code: 6007;
|
|
424
|
+
readonly name: "NoTicketsAvailable";
|
|
425
|
+
readonly msg: "No tickets available.";
|
|
426
|
+
}, {
|
|
427
|
+
readonly code: 6008;
|
|
428
|
+
readonly name: "InvalidReceipt";
|
|
429
|
+
readonly msg: "Invalid ticket receipt.";
|
|
430
|
+
}, {
|
|
431
|
+
readonly code: 6009;
|
|
432
|
+
readonly name: "Unauthorized";
|
|
433
|
+
readonly msg: "Unauthorized.";
|
|
434
|
+
}, {
|
|
435
|
+
readonly code: 6010;
|
|
436
|
+
readonly name: "InvalidTreasury";
|
|
437
|
+
readonly msg: "Invalid treasury address.";
|
|
438
|
+
}, {
|
|
439
|
+
readonly code: 6011;
|
|
440
|
+
readonly name: "InvalidBuybackBps";
|
|
441
|
+
readonly msg: "Invalid buyback percentage.";
|
|
442
|
+
}];
|
|
443
|
+
readonly types: readonly [{
|
|
444
|
+
readonly name: "Listing";
|
|
445
|
+
readonly type: {
|
|
446
|
+
readonly kind: "struct";
|
|
447
|
+
readonly fields: readonly [{
|
|
448
|
+
readonly name: "listing_seed";
|
|
449
|
+
readonly type: {
|
|
450
|
+
readonly array: readonly ["u8", 32];
|
|
451
|
+
};
|
|
452
|
+
}, {
|
|
453
|
+
readonly name: "creator";
|
|
454
|
+
readonly type: "pubkey";
|
|
455
|
+
}, {
|
|
456
|
+
readonly name: "revenue_wallet";
|
|
457
|
+
readonly type: "pubkey";
|
|
458
|
+
}, {
|
|
459
|
+
readonly name: "listing_type";
|
|
460
|
+
readonly type: {
|
|
461
|
+
readonly defined: {
|
|
462
|
+
readonly name: "ListingType";
|
|
463
|
+
};
|
|
464
|
+
};
|
|
465
|
+
}, {
|
|
466
|
+
readonly name: "status";
|
|
467
|
+
readonly type: {
|
|
468
|
+
readonly defined: {
|
|
469
|
+
readonly name: "ListingStatus";
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
}, {
|
|
473
|
+
readonly name: "name";
|
|
474
|
+
readonly type: "string";
|
|
475
|
+
}, {
|
|
476
|
+
readonly name: "tagline";
|
|
477
|
+
readonly type: "string";
|
|
478
|
+
}, {
|
|
479
|
+
readonly name: "description";
|
|
480
|
+
readonly type: "string";
|
|
481
|
+
}, {
|
|
482
|
+
readonly name: "category";
|
|
483
|
+
readonly type: "string";
|
|
484
|
+
}, {
|
|
485
|
+
readonly name: "image_url";
|
|
486
|
+
readonly type: "string";
|
|
487
|
+
}, {
|
|
488
|
+
readonly name: "product_url";
|
|
489
|
+
readonly type: "string";
|
|
490
|
+
}, {
|
|
491
|
+
readonly name: "endpoint_url";
|
|
492
|
+
readonly type: "string";
|
|
493
|
+
}, {
|
|
494
|
+
readonly name: "manifest_url";
|
|
495
|
+
readonly type: "string";
|
|
496
|
+
}, {
|
|
497
|
+
readonly name: "ticket_price";
|
|
498
|
+
readonly type: "u64";
|
|
499
|
+
}, {
|
|
500
|
+
readonly name: "target_revenue";
|
|
501
|
+
readonly type: "u64";
|
|
502
|
+
}, {
|
|
503
|
+
readonly name: "revenue";
|
|
504
|
+
readonly type: "u64";
|
|
505
|
+
}, {
|
|
506
|
+
readonly name: "tickets_sold";
|
|
507
|
+
readonly type: "u64";
|
|
508
|
+
}, {
|
|
509
|
+
readonly name: "token_mint";
|
|
510
|
+
readonly type: "pubkey";
|
|
511
|
+
}, {
|
|
512
|
+
readonly name: "token_symbol";
|
|
513
|
+
readonly type: "string";
|
|
514
|
+
}, {
|
|
515
|
+
readonly name: "buyback_bps";
|
|
516
|
+
readonly type: "u16";
|
|
517
|
+
}, {
|
|
518
|
+
readonly name: "buyback_total";
|
|
519
|
+
readonly type: "u64";
|
|
520
|
+
}, {
|
|
521
|
+
readonly name: "platform_buyback_total";
|
|
522
|
+
readonly type: "u64";
|
|
523
|
+
}, {
|
|
524
|
+
readonly name: "bump";
|
|
525
|
+
readonly type: "u8";
|
|
526
|
+
}, {
|
|
527
|
+
readonly name: "vault_bump";
|
|
528
|
+
readonly type: "u8";
|
|
529
|
+
}, {
|
|
530
|
+
readonly name: "created_at";
|
|
531
|
+
readonly type: "i64";
|
|
532
|
+
}];
|
|
533
|
+
};
|
|
534
|
+
}, {
|
|
535
|
+
readonly name: "ListingStatus";
|
|
536
|
+
readonly type: {
|
|
537
|
+
readonly kind: "enum";
|
|
538
|
+
readonly variants: readonly [{
|
|
539
|
+
readonly name: "Grind";
|
|
540
|
+
}, {
|
|
541
|
+
readonly name: "Ipo";
|
|
542
|
+
}, {
|
|
543
|
+
readonly name: "Web2";
|
|
544
|
+
}];
|
|
545
|
+
};
|
|
546
|
+
}, {
|
|
547
|
+
readonly name: "ListingType";
|
|
548
|
+
readonly type: {
|
|
549
|
+
readonly kind: "enum";
|
|
550
|
+
readonly variants: readonly [{
|
|
551
|
+
readonly name: "Agent";
|
|
552
|
+
}, {
|
|
553
|
+
readonly name: "Human";
|
|
554
|
+
}];
|
|
555
|
+
};
|
|
556
|
+
}, {
|
|
557
|
+
readonly name: "ListingVault";
|
|
558
|
+
readonly type: {
|
|
559
|
+
readonly kind: "struct";
|
|
560
|
+
readonly fields: readonly [];
|
|
561
|
+
};
|
|
562
|
+
}, {
|
|
563
|
+
readonly name: "ProtocolConfig";
|
|
564
|
+
readonly type: {
|
|
565
|
+
readonly kind: "struct";
|
|
566
|
+
readonly fields: readonly [{
|
|
567
|
+
readonly name: "authority";
|
|
568
|
+
readonly type: "pubkey";
|
|
569
|
+
}, {
|
|
570
|
+
readonly name: "platform_treasury";
|
|
571
|
+
readonly type: "pubkey";
|
|
572
|
+
}, {
|
|
573
|
+
readonly name: "buyback_treasury";
|
|
574
|
+
readonly type: "pubkey";
|
|
575
|
+
}, {
|
|
576
|
+
readonly name: "bump";
|
|
577
|
+
readonly type: "u8";
|
|
578
|
+
}];
|
|
579
|
+
};
|
|
580
|
+
}, {
|
|
581
|
+
readonly name: "TicketPriceUpdated";
|
|
582
|
+
readonly type: {
|
|
583
|
+
readonly kind: "struct";
|
|
584
|
+
readonly fields: readonly [{
|
|
585
|
+
readonly name: "listing";
|
|
586
|
+
readonly type: "pubkey";
|
|
587
|
+
}, {
|
|
588
|
+
readonly name: "old_price";
|
|
589
|
+
readonly type: "u64";
|
|
590
|
+
}, {
|
|
591
|
+
readonly name: "new_price";
|
|
592
|
+
readonly type: "u64";
|
|
593
|
+
}, {
|
|
594
|
+
readonly name: "timestamp";
|
|
595
|
+
readonly type: "i64";
|
|
596
|
+
}];
|
|
597
|
+
};
|
|
598
|
+
}, {
|
|
599
|
+
readonly name: "TicketPurchased";
|
|
600
|
+
readonly type: {
|
|
601
|
+
readonly kind: "struct";
|
|
602
|
+
readonly fields: readonly [{
|
|
603
|
+
readonly name: "listing";
|
|
604
|
+
readonly type: "pubkey";
|
|
605
|
+
}, {
|
|
606
|
+
readonly name: "buyer";
|
|
607
|
+
readonly type: "pubkey";
|
|
608
|
+
}, {
|
|
609
|
+
readonly name: "amount";
|
|
610
|
+
readonly type: "u64";
|
|
611
|
+
}, {
|
|
612
|
+
readonly name: "creator";
|
|
613
|
+
readonly type: "pubkey";
|
|
614
|
+
}, {
|
|
615
|
+
readonly name: "platform";
|
|
616
|
+
readonly type: "pubkey";
|
|
617
|
+
}, {
|
|
618
|
+
readonly name: "creator_amount";
|
|
619
|
+
readonly type: "u64";
|
|
620
|
+
}, {
|
|
621
|
+
readonly name: "platform_amount";
|
|
622
|
+
readonly type: "u64";
|
|
623
|
+
}, {
|
|
624
|
+
readonly name: "buyback_amount";
|
|
625
|
+
readonly type: "u64";
|
|
626
|
+
}, {
|
|
627
|
+
readonly name: "platform_buyback_amount";
|
|
628
|
+
readonly type: "u64";
|
|
629
|
+
}, {
|
|
630
|
+
readonly name: "status";
|
|
631
|
+
readonly type: {
|
|
632
|
+
readonly defined: {
|
|
633
|
+
readonly name: "ListingStatus";
|
|
634
|
+
};
|
|
635
|
+
};
|
|
636
|
+
}, {
|
|
637
|
+
readonly name: "remaining";
|
|
638
|
+
readonly type: "u64";
|
|
639
|
+
}, {
|
|
640
|
+
readonly name: "timestamp";
|
|
641
|
+
readonly type: "i64";
|
|
642
|
+
}];
|
|
643
|
+
};
|
|
644
|
+
}, {
|
|
645
|
+
readonly name: "TicketReceipt";
|
|
646
|
+
readonly type: {
|
|
647
|
+
readonly kind: "struct";
|
|
648
|
+
readonly fields: readonly [{
|
|
649
|
+
readonly name: "listing";
|
|
650
|
+
readonly type: "pubkey";
|
|
651
|
+
}, {
|
|
652
|
+
readonly name: "buyer";
|
|
653
|
+
readonly type: "pubkey";
|
|
654
|
+
}, {
|
|
655
|
+
readonly name: "count";
|
|
656
|
+
readonly type: "u64";
|
|
657
|
+
}, {
|
|
658
|
+
readonly name: "last_purchased_at";
|
|
659
|
+
readonly type: "i64";
|
|
660
|
+
}, {
|
|
661
|
+
readonly name: "last_redeemed_at";
|
|
662
|
+
readonly type: "i64";
|
|
663
|
+
}];
|
|
664
|
+
};
|
|
665
|
+
}, {
|
|
666
|
+
readonly name: "TicketRedeemed";
|
|
667
|
+
readonly type: {
|
|
668
|
+
readonly kind: "struct";
|
|
669
|
+
readonly fields: readonly [{
|
|
670
|
+
readonly name: "listing";
|
|
671
|
+
readonly type: "pubkey";
|
|
672
|
+
}, {
|
|
673
|
+
readonly name: "buyer";
|
|
674
|
+
readonly type: "pubkey";
|
|
675
|
+
}, {
|
|
676
|
+
readonly name: "remaining";
|
|
677
|
+
readonly type: "u64";
|
|
678
|
+
}, {
|
|
679
|
+
readonly name: "timestamp";
|
|
680
|
+
readonly type: "i64";
|
|
681
|
+
}];
|
|
682
|
+
};
|
|
683
|
+
}];
|
|
684
|
+
};
|
|
685
|
+
|
|
686
|
+
type ContextPackSectionKey = 'objective' | 'mustKnow' | 'risks' | 'decisions' | 'checklist' | 'sources';
|
|
687
|
+
type ContextPackSections = Record<ContextPackSectionKey, string[]>;
|
|
688
|
+
type ContextPackBudget = {
|
|
689
|
+
maxChars: number;
|
|
690
|
+
maxTokens: number;
|
|
691
|
+
usedChars: number;
|
|
692
|
+
usedTokens: number;
|
|
693
|
+
truncated: boolean;
|
|
694
|
+
};
|
|
695
|
+
type ContextPack = {
|
|
696
|
+
schema: 'context-pack/v1';
|
|
697
|
+
createdAt: string;
|
|
698
|
+
budget: ContextPackBudget;
|
|
699
|
+
sections: ContextPackSections;
|
|
700
|
+
};
|
|
701
|
+
type ContextPackInput = Partial<Record<ContextPackSectionKey, string | string[]>>;
|
|
702
|
+
type ContextPackOptions = {
|
|
703
|
+
maxChars?: number;
|
|
704
|
+
maxTokens?: number;
|
|
705
|
+
createdAt?: Date | string;
|
|
706
|
+
maxItemChars?: number;
|
|
707
|
+
};
|
|
708
|
+
declare const createContextPack: (input: ContextPackInput, options?: ContextPackOptions) => ContextPack;
|
|
709
|
+
declare const validateContextPack: (value: unknown) => value is ContextPack;
|
|
710
|
+
declare const CONTEXT_PACK_SECTION_ORDER: ContextPackSectionKey[];
|
|
711
|
+
declare const estimateContextPackTokens: (textOrChars: string | number) => number;
|
|
712
|
+
|
|
713
|
+
type TreasuryPolicyV1 = {
|
|
714
|
+
version: 1;
|
|
715
|
+
budgets: {
|
|
716
|
+
dailyUsd: number;
|
|
717
|
+
monthlyUsd?: number;
|
|
718
|
+
perTopupUsd: number;
|
|
719
|
+
maxTopupsPerDay: number;
|
|
720
|
+
};
|
|
721
|
+
providers: {
|
|
722
|
+
allow: string[];
|
|
723
|
+
modelsAllow?: string[];
|
|
724
|
+
};
|
|
725
|
+
thresholds: {
|
|
726
|
+
warnCredits: Record<string, number>;
|
|
727
|
+
minCredits: Record<string, number>;
|
|
728
|
+
};
|
|
729
|
+
automation: {
|
|
730
|
+
autoApproveUnderUsd: number;
|
|
731
|
+
cooldownMinutes: number;
|
|
732
|
+
requireHumanAboveUsd: number;
|
|
733
|
+
};
|
|
734
|
+
safety: {
|
|
735
|
+
maxErrorRate5m?: number;
|
|
736
|
+
maxSpendSpikeMultiplier?: number;
|
|
737
|
+
onViolation: 'safe_mode' | 'pause' | 'stop';
|
|
738
|
+
};
|
|
739
|
+
};
|
|
740
|
+
type TreasuryPolicy = TreasuryPolicyV1;
|
|
741
|
+
type TreasuryState = {
|
|
742
|
+
providerCredits: Record<string, number>;
|
|
743
|
+
topupsToday: number;
|
|
744
|
+
lastTopupAt?: number;
|
|
745
|
+
spendTodayUsd?: number;
|
|
746
|
+
spendMonthUsd?: number;
|
|
747
|
+
errorRate5m?: number;
|
|
748
|
+
spendSpikeMultiplier?: number;
|
|
749
|
+
};
|
|
750
|
+
type TopupRequest = {
|
|
751
|
+
agentId: string;
|
|
752
|
+
provider: string;
|
|
753
|
+
amountUsd: number;
|
|
754
|
+
reason: string;
|
|
755
|
+
requestedAt: number;
|
|
756
|
+
};
|
|
757
|
+
type TopupDecision = {
|
|
758
|
+
action: 'approve' | 'deny' | 'require_human';
|
|
759
|
+
reasonCodes: string[];
|
|
760
|
+
approvedAmountUsd?: number;
|
|
761
|
+
cooldownRemainingSec?: number;
|
|
762
|
+
};
|
|
763
|
+
declare const createTreasuryPolicy: (partial?: Partial<TreasuryPolicyV1>) => TreasuryPolicyV1;
|
|
764
|
+
declare const validateTreasuryPolicy: (policy: TreasuryPolicy) => {
|
|
765
|
+
ok: boolean;
|
|
766
|
+
errors: string[];
|
|
767
|
+
};
|
|
768
|
+
declare const evaluateTopupRequest: (request: TopupRequest, state: TreasuryState, policy: TreasuryPolicy) => TopupDecision;
|
|
769
|
+
type TreasuryLedgerEvent = {
|
|
770
|
+
type: 'topup_request' | 'topup_decision' | 'topup_executed' | 'mode_change' | 'violation';
|
|
771
|
+
ts: number;
|
|
772
|
+
agentId?: string;
|
|
773
|
+
provider?: string;
|
|
774
|
+
amountUsd?: number;
|
|
775
|
+
payload?: Record<string, unknown>;
|
|
776
|
+
};
|
|
777
|
+
declare const buildTreasuryLedgerEvent: (event: TreasuryLedgerEvent) => {
|
|
778
|
+
ts: number;
|
|
779
|
+
type: "topup_request" | "topup_decision" | "topup_executed" | "mode_change" | "violation";
|
|
780
|
+
agentId?: string;
|
|
781
|
+
provider?: string;
|
|
782
|
+
amountUsd?: number;
|
|
783
|
+
payload?: Record<string, unknown>;
|
|
784
|
+
};
|
|
785
|
+
declare const treasuryStateFromSnapshot: (snapshot: ResourceSnapshot | null | undefined) => TreasuryState;
|
|
786
|
+
|
|
787
|
+
type DurabilityProxyClientOptions = {
|
|
788
|
+
baseUrl: string;
|
|
789
|
+
agentId: string;
|
|
790
|
+
agentToken: string;
|
|
791
|
+
fetcher?: typeof fetch;
|
|
792
|
+
timeoutMs?: number;
|
|
793
|
+
};
|
|
794
|
+
type DurabilityCheckpointWriteOptions = {
|
|
795
|
+
sha256?: string;
|
|
796
|
+
contentType?: string;
|
|
797
|
+
metadata?: Record<string, unknown>;
|
|
798
|
+
};
|
|
799
|
+
type DurabilityRestoreDrillWriteOptions = {
|
|
800
|
+
checkpointId?: string;
|
|
801
|
+
details?: string;
|
|
802
|
+
};
|
|
803
|
+
declare const createDurabilityProxyClient: (options: DurabilityProxyClientOptions) => {
|
|
804
|
+
writeCheckpoint(payloadJson: Record<string, unknown>, opts?: DurabilityCheckpointWriteOptions): Promise<{
|
|
805
|
+
ok: boolean;
|
|
806
|
+
checkpoint?: {
|
|
807
|
+
id?: string;
|
|
808
|
+
createdAt?: string;
|
|
809
|
+
};
|
|
810
|
+
}>;
|
|
811
|
+
latestCheckpoint(): Promise<{
|
|
812
|
+
ok: boolean;
|
|
813
|
+
checkpoint?: {
|
|
814
|
+
id?: string;
|
|
815
|
+
createdAt?: string;
|
|
816
|
+
} | null;
|
|
817
|
+
}>;
|
|
818
|
+
writeRestoreDrill(ok: boolean, opts?: DurabilityRestoreDrillWriteOptions): Promise<{
|
|
819
|
+
ok: boolean;
|
|
820
|
+
drill?: {
|
|
821
|
+
checkpointId?: string;
|
|
822
|
+
ok?: boolean;
|
|
823
|
+
ts?: string;
|
|
824
|
+
};
|
|
825
|
+
}>;
|
|
826
|
+
};
|
|
827
|
+
|
|
828
|
+
interface VibeClientOptions {
|
|
829
|
+
baseUrl?: string;
|
|
830
|
+
fetcher?: typeof fetch;
|
|
831
|
+
enforceLatestVersion?: boolean;
|
|
832
|
+
currentVersion?: string;
|
|
833
|
+
packageName?: string;
|
|
834
|
+
registryUrl?: string;
|
|
835
|
+
policyPath?: string;
|
|
836
|
+
updateCheckIntervalMs?: number;
|
|
837
|
+
updateCheckTimeoutMs?: number;
|
|
838
|
+
/** Enable daily sdk update cron loop inside the client (Node runtime only). Default true. */
|
|
839
|
+
autoUpdateCronEnabled?: boolean;
|
|
840
|
+
/** Interval for cron checks. Default: 24h. */
|
|
841
|
+
autoUpdateCronIntervalMs?: number;
|
|
842
|
+
/** Allow immediate auto-update when policy marks updateRequired and gate passes. Default true. */
|
|
843
|
+
autoUpdateOnPolicyRequired?: boolean;
|
|
844
|
+
/** Working directory used when applying update command. Default process cwd. */
|
|
845
|
+
autoUpdateCwd?: string;
|
|
846
|
+
/** Optional hook to add local safety checks before auto-apply. */
|
|
847
|
+
autoUpdateSafetyCheck?: (status: SdkUpdateStatus) => boolean | Promise<boolean>;
|
|
848
|
+
/** Optional command runner override for tests/custom runtimes. */
|
|
849
|
+
autoUpdateCommandRunner?: (command: string, options: {
|
|
850
|
+
cwd?: string;
|
|
851
|
+
}) => Promise<{
|
|
852
|
+
ok: boolean;
|
|
853
|
+
code: number | null;
|
|
854
|
+
stdout: string;
|
|
855
|
+
stderr: string;
|
|
856
|
+
}>;
|
|
857
|
+
}
|
|
858
|
+
interface SdkUpdateCheckOptions {
|
|
859
|
+
fetcher?: typeof fetch;
|
|
860
|
+
packageName?: string;
|
|
861
|
+
currentVersion?: string;
|
|
862
|
+
registryUrl?: string;
|
|
863
|
+
timeoutMs?: number;
|
|
864
|
+
}
|
|
865
|
+
interface SdkUpdatePolicyCheckOptions {
|
|
866
|
+
baseUrl: string;
|
|
867
|
+
fetcher?: typeof fetch;
|
|
868
|
+
packageName?: string;
|
|
869
|
+
currentVersion?: string;
|
|
870
|
+
timeoutMs?: number;
|
|
871
|
+
policyPath?: string;
|
|
872
|
+
}
|
|
873
|
+
interface SdkUpdateStatus {
|
|
874
|
+
packageName: string;
|
|
875
|
+
currentVersion: string;
|
|
876
|
+
latestVersion: string;
|
|
877
|
+
isOutdated: boolean;
|
|
878
|
+
updateRequired?: boolean;
|
|
879
|
+
checkedAt: number;
|
|
880
|
+
registryUrl: string;
|
|
881
|
+
updateCommand: string;
|
|
882
|
+
source: 'policy' | 'registry' | 'cache' | 'unknown';
|
|
883
|
+
}
|
|
884
|
+
interface ApiResponse<T> {
|
|
885
|
+
data?: T;
|
|
886
|
+
error?: string;
|
|
887
|
+
details?: unknown;
|
|
888
|
+
}
|
|
889
|
+
declare class SdkUpdateRequiredError extends Error {
|
|
890
|
+
status: SdkUpdateStatus;
|
|
891
|
+
constructor(status: SdkUpdateStatus);
|
|
892
|
+
}
|
|
893
|
+
declare class SdkAutoUpdatedRestartRequiredError extends Error {
|
|
894
|
+
status: SdkUpdateStatus;
|
|
895
|
+
constructor(status: SdkUpdateStatus);
|
|
896
|
+
}
|
|
897
|
+
type OpenRouterCredits = {
|
|
898
|
+
credits?: number;
|
|
899
|
+
remaining_credits?: number;
|
|
900
|
+
remainingCredits?: number;
|
|
901
|
+
total_credits?: number;
|
|
902
|
+
totalCredits?: number;
|
|
903
|
+
total_spent?: number;
|
|
904
|
+
totalSpent?: number;
|
|
905
|
+
data?: Record<string, unknown>;
|
|
906
|
+
[key: string]: unknown;
|
|
907
|
+
};
|
|
908
|
+
type ResourceSnapshot = {
|
|
909
|
+
solBalance?: number;
|
|
910
|
+
openRouterCredits?: number;
|
|
911
|
+
apiCredits?: Record<string, number>;
|
|
912
|
+
tokenBalances?: Record<string, number>;
|
|
913
|
+
updatedAt?: number;
|
|
914
|
+
};
|
|
915
|
+
type ApiCreditProvider = {
|
|
916
|
+
name: string;
|
|
917
|
+
fetchCredits: () => Promise<number>;
|
|
918
|
+
};
|
|
919
|
+
type ApiCreditProviderPreset = 'openrouter' | 'anthropic' | 'gemini' | 'custom';
|
|
920
|
+
type ApiCreditProviderPresetInput = {
|
|
921
|
+
provider: ApiCreditProviderPreset | string;
|
|
922
|
+
name?: string;
|
|
923
|
+
apiKey?: string;
|
|
924
|
+
apiKeyEnv?: string;
|
|
925
|
+
endpoint?: string;
|
|
926
|
+
method?: 'GET' | 'POST';
|
|
927
|
+
headers?: Record<string, string>;
|
|
928
|
+
body?: unknown;
|
|
929
|
+
creditsPath?: string;
|
|
930
|
+
};
|
|
931
|
+
type ApiCreditProviderFactoryOptions = {
|
|
932
|
+
apiBase?: string;
|
|
933
|
+
fetcher?: typeof fetch;
|
|
934
|
+
resolveSecret?: (name: string) => string | undefined | Promise<string | undefined>;
|
|
935
|
+
};
|
|
936
|
+
type ResourceProviderManifestEntry = {
|
|
937
|
+
provider: ApiCreditProviderPreset | string;
|
|
938
|
+
name?: string;
|
|
939
|
+
apiKeyEnv?: string;
|
|
940
|
+
endpoint?: string;
|
|
941
|
+
method?: 'GET' | 'POST';
|
|
942
|
+
headers?: Record<string, string>;
|
|
943
|
+
creditsPath?: string;
|
|
944
|
+
};
|
|
945
|
+
type AgentResourceProvidersManifest = {
|
|
946
|
+
resourceProviders?: ResourceProviderManifestEntry[];
|
|
947
|
+
};
|
|
948
|
+
interface ListingQuery {
|
|
949
|
+
type?: ListingType;
|
|
950
|
+
status?: ListingStatus;
|
|
951
|
+
category?: string;
|
|
952
|
+
q?: string;
|
|
953
|
+
llmRequired?: boolean;
|
|
954
|
+
sort?: 'recent' | 'revenue' | 'tickets' | 'buyback';
|
|
955
|
+
limit?: number;
|
|
956
|
+
offset?: number;
|
|
957
|
+
}
|
|
958
|
+
interface LeaderboardEntry {
|
|
959
|
+
listing: ListingRecord;
|
|
960
|
+
revenue: number;
|
|
961
|
+
}
|
|
962
|
+
interface LeaderboardQuery {
|
|
963
|
+
type?: ListingType;
|
|
964
|
+
window?: string;
|
|
965
|
+
limit?: number;
|
|
966
|
+
}
|
|
967
|
+
interface ListingReviewCreatePayload {
|
|
968
|
+
wallet: string;
|
|
969
|
+
rating: number;
|
|
970
|
+
comment: string;
|
|
971
|
+
appVersion?: string;
|
|
972
|
+
redeemSignature: string;
|
|
973
|
+
}
|
|
974
|
+
interface ListingReviewResponsePayload {
|
|
975
|
+
wallet: string;
|
|
976
|
+
signature: string;
|
|
977
|
+
status: 'accepted' | 'addressed' | 'planned' | 'disputed' | 'wont_fix';
|
|
978
|
+
comment?: string;
|
|
979
|
+
timestamp: number;
|
|
980
|
+
}
|
|
981
|
+
interface ListingVersionPayload {
|
|
982
|
+
wallet: string;
|
|
983
|
+
signature: string;
|
|
984
|
+
version: string;
|
|
985
|
+
timestamp: number;
|
|
986
|
+
}
|
|
987
|
+
interface ReviewRequiredPayload {
|
|
988
|
+
listingId: string;
|
|
989
|
+
redeemSignature: string;
|
|
990
|
+
appVersion: string;
|
|
991
|
+
reviewUrl: string;
|
|
992
|
+
}
|
|
993
|
+
type ReviewGateRecord = {
|
|
994
|
+
listingId: string;
|
|
995
|
+
wallet: string;
|
|
996
|
+
redeemSignature: string;
|
|
997
|
+
appVersion: string;
|
|
998
|
+
createdAt: number;
|
|
999
|
+
};
|
|
1000
|
+
interface AnalyticsPoint {
|
|
1001
|
+
date: string;
|
|
1002
|
+
revenue: number;
|
|
1003
|
+
}
|
|
1004
|
+
interface BuybackEvent {
|
|
1005
|
+
id: number;
|
|
1006
|
+
listing_id: string;
|
|
1007
|
+
scope?: 'agent' | 'platform';
|
|
1008
|
+
input_amount: number;
|
|
1009
|
+
output_amount: number;
|
|
1010
|
+
signature?: string | null;
|
|
1011
|
+
burn_signature?: string | null;
|
|
1012
|
+
status: string;
|
|
1013
|
+
created_at: string;
|
|
1014
|
+
}
|
|
1015
|
+
interface MarketingLinkOptions {
|
|
1016
|
+
webBaseUrl?: string;
|
|
1017
|
+
ref?: string;
|
|
1018
|
+
source?: string;
|
|
1019
|
+
medium?: string;
|
|
1020
|
+
campaign?: string;
|
|
1021
|
+
content?: string;
|
|
1022
|
+
}
|
|
1023
|
+
interface MarketingCampaign {
|
|
1024
|
+
id: string;
|
|
1025
|
+
url: string;
|
|
1026
|
+
createdAt: string;
|
|
1027
|
+
}
|
|
1028
|
+
interface ProcurementTaskProfile {
|
|
1029
|
+
query: string;
|
|
1030
|
+
category?: string;
|
|
1031
|
+
maxPriceUsdc?: number;
|
|
1032
|
+
minRating?: number;
|
|
1033
|
+
requiresLlm?: boolean;
|
|
1034
|
+
preferredListingType?: ListingType | 'any';
|
|
1035
|
+
maxResults?: number;
|
|
1036
|
+
}
|
|
1037
|
+
interface ProcurementWeights {
|
|
1038
|
+
query?: number;
|
|
1039
|
+
category?: number;
|
|
1040
|
+
price?: number;
|
|
1041
|
+
rating?: number;
|
|
1042
|
+
llmFit?: number;
|
|
1043
|
+
listingType?: number;
|
|
1044
|
+
}
|
|
1045
|
+
interface ProcurementCandidate {
|
|
1046
|
+
listing: ListingRecord;
|
|
1047
|
+
score: number;
|
|
1048
|
+
reasons: string[];
|
|
1049
|
+
}
|
|
1050
|
+
interface ProcurementDecision {
|
|
1051
|
+
action: 'use_tool' | 'compose_tools' | 'build_inhouse';
|
|
1052
|
+
shortlist: ProcurementCandidate[];
|
|
1053
|
+
rationale: string[];
|
|
1054
|
+
}
|
|
1055
|
+
interface MemoryPingPayload {
|
|
1056
|
+
wallet: string;
|
|
1057
|
+
signature: string;
|
|
1058
|
+
timestamp: number;
|
|
1059
|
+
nonce?: string;
|
|
1060
|
+
}
|
|
1061
|
+
interface MemoryPingChallengeResponse {
|
|
1062
|
+
ok: boolean;
|
|
1063
|
+
nonce: string;
|
|
1064
|
+
expires_at: string;
|
|
1065
|
+
message_template: string;
|
|
1066
|
+
}
|
|
1067
|
+
declare const LISTING_NAME_MAX_LENGTH = 64;
|
|
1068
|
+
declare const LISTING_TAGLINE_MAX_LENGTH = 160;
|
|
1069
|
+
declare const LISTING_NAME_RECOMMENDED_MAX = 32;
|
|
1070
|
+
declare const LISTING_TAGLINE_RECOMMENDED_MAX = 90;
|
|
1071
|
+
interface ListingNamingValidationOptions {
|
|
1072
|
+
nameMax?: number;
|
|
1073
|
+
taglineMax?: number;
|
|
1074
|
+
recommendedNameMax?: number;
|
|
1075
|
+
recommendedTaglineMax?: number;
|
|
1076
|
+
strictRecommended?: boolean;
|
|
1077
|
+
}
|
|
1078
|
+
interface ListingNamingValidationResult {
|
|
1079
|
+
isValid: boolean;
|
|
1080
|
+
normalizedName: string;
|
|
1081
|
+
normalizedTagline: string;
|
|
1082
|
+
errors: string[];
|
|
1083
|
+
warnings: string[];
|
|
1084
|
+
}
|
|
1085
|
+
declare const normalizeListingText: (value: string) => string;
|
|
1086
|
+
declare const validateListingNaming: (input: Pick<ListingInput, "name" | "tagline">, options?: ListingNamingValidationOptions) => ListingNamingValidationResult;
|
|
1087
|
+
declare const sanitizeListingNaming: (input: Pick<ListingInput, "name" | "tagline">) => Pick<ListingInput, "name" | "tagline">;
|
|
1088
|
+
declare const buildClaimMessage: (nonce: string) => string;
|
|
1089
|
+
declare const buildOwnerTransferMessage: (listingId: string, newOwnerWallet: string, nonce: string) => string;
|
|
1090
|
+
declare const buildMemoryPingMessage: (listingId: string, timestamp: number, nonce?: string) => string;
|
|
1091
|
+
declare const buildListingVersionMessage: (listingId: string, version: string, timestamp: number) => string;
|
|
1092
|
+
declare const buildReviewResponseMessage: (reviewId: string, status: string, timestamp: number) => string;
|
|
1093
|
+
declare const buildReviewPrompt: () => string;
|
|
1094
|
+
declare const buildReviewRequired: (listingId: string, redeemSignature: string, appVersion: string, options?: {
|
|
1095
|
+
baseUrl?: string;
|
|
1096
|
+
}) => ReviewRequiredPayload;
|
|
1097
|
+
declare class ReviewGate {
|
|
1098
|
+
private pending;
|
|
1099
|
+
private key;
|
|
1100
|
+
require(record: ReviewGateRecord): ReviewGateRecord;
|
|
1101
|
+
get(listingId: string, wallet: string): ReviewGateRecord;
|
|
1102
|
+
clear(listingId: string, wallet: string): void;
|
|
1103
|
+
assertClear(listingId: string, wallet: string): void;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
declare const compareVersions: (currentVersion: string, latestVersion: string) => 0 | 1 | -1;
|
|
1107
|
+
declare const buildSdkUpdateCommand: (packageName?: string) => string;
|
|
1108
|
+
declare const checkForSdkUpdate: (options?: SdkUpdateCheckOptions) => Promise<SdkUpdateStatus>;
|
|
1109
|
+
declare const checkForSdkUpdatePolicy: (options: SdkUpdatePolicyCheckOptions) => Promise<SdkUpdateStatus>;
|
|
1110
|
+
declare class VibeClient {
|
|
1111
|
+
private baseUrl;
|
|
1112
|
+
private fetcher;
|
|
1113
|
+
private enforceLatestVersion;
|
|
1114
|
+
private currentVersion;
|
|
1115
|
+
private packageName;
|
|
1116
|
+
private registryUrl;
|
|
1117
|
+
private policyPath;
|
|
1118
|
+
private updateCheckIntervalMs;
|
|
1119
|
+
private updateCheckTimeoutMs;
|
|
1120
|
+
private lastUpdateCheckAt;
|
|
1121
|
+
private lastUpdateStatus;
|
|
1122
|
+
private updateCheckInflight;
|
|
1123
|
+
private autoUpdateCronEnabled;
|
|
1124
|
+
private autoUpdateCronIntervalMs;
|
|
1125
|
+
private autoUpdateOnPolicyRequired;
|
|
1126
|
+
private autoUpdateCwd?;
|
|
1127
|
+
private autoUpdateSafetyCheck?;
|
|
1128
|
+
private autoUpdateCommandRunner?;
|
|
1129
|
+
private autoUpdateTimer;
|
|
1130
|
+
private autoUpdateInFlight;
|
|
1131
|
+
constructor(options?: VibeClientOptions);
|
|
1132
|
+
createClaim(wallet: string, purpose: ClaimPurpose): Promise<ApiResponse<ClaimResponse>>;
|
|
1133
|
+
verifyClaim(claimId: string, signature: string): Promise<ApiResponse<VerifiedClaimResponse>>;
|
|
1134
|
+
createListing(claimId: string, listing: ListingInput, ownerClaimId?: string): Promise<ApiResponse<ListingRecord>>;
|
|
1135
|
+
registerAgent(claimId: string, listing: ListingInput, ownerClaimId?: string): Promise<ApiResponse<ListingRecord>>;
|
|
1136
|
+
updateListingStatus(listingId: string, claimId: string, status: ListingStatus): Promise<ApiResponse<ListingRecord>>;
|
|
1137
|
+
updateListingPrice(listingId: string, claimId: string, priceUsdc: number): Promise<ApiResponse<ListingRecord>>;
|
|
1138
|
+
deleteListing(listingId: string, claimId: string): Promise<ApiResponse<{
|
|
1139
|
+
id: string;
|
|
1140
|
+
deleted: boolean;
|
|
1141
|
+
removedStorageObjects?: number;
|
|
1142
|
+
storageCleanupErrors?: string[];
|
|
1143
|
+
}>>;
|
|
1144
|
+
transferOwner(listingId: string, claimId: string, signature: string): Promise<ApiResponse<{
|
|
1145
|
+
listing_id: string;
|
|
1146
|
+
owner_wallet_id: string;
|
|
1147
|
+
owner_wallet_address: string;
|
|
1148
|
+
}>>;
|
|
1149
|
+
reportMemory(listingId: string, payload: MemoryPingPayload): Promise<ApiResponse<{
|
|
1150
|
+
ok: boolean;
|
|
1151
|
+
memory_last_seen_at: string;
|
|
1152
|
+
}>>;
|
|
1153
|
+
requestMemoryChallenge(listingId: string, wallet: string): Promise<ApiResponse<MemoryPingChallengeResponse>>;
|
|
1154
|
+
listListings(filters?: ListingQuery): Promise<ApiResponse<ListingRecord[]>>;
|
|
1155
|
+
getListing(id: string): Promise<ApiResponse<ListingRecord>>;
|
|
1156
|
+
getListingReviews(listingId: string, options?: {
|
|
1157
|
+
limit?: number;
|
|
1158
|
+
offset?: number;
|
|
1159
|
+
}): Promise<ApiResponse<ListingReviewRecord[]>>;
|
|
1160
|
+
createListingReview(listingId: string, payload: ListingReviewCreatePayload): Promise<ApiResponse<ListingReviewRecord>>;
|
|
1161
|
+
respondToListingReview(listingId: string, reviewId: string, payload: ListingReviewResponsePayload): Promise<ApiResponse<ListingReviewRecord>>;
|
|
1162
|
+
updateListingVersion(listingId: string, payload: ListingVersionPayload): Promise<ApiResponse<{
|
|
1163
|
+
id: string;
|
|
1164
|
+
app_version: string;
|
|
1165
|
+
}>>;
|
|
1166
|
+
getLeaderboard(filters?: LeaderboardQuery): Promise<ApiResponse<LeaderboardEntry[]>>;
|
|
1167
|
+
getListingAnalytics(listingId: string, window?: string): Promise<ApiResponse<AnalyticsPoint[]>>;
|
|
1168
|
+
getListingBuybacks(listingId: string, limit?: number): Promise<ApiResponse<BuybackEvent[]>>;
|
|
1169
|
+
getOpenRouterCredits(apiKey: string): Promise<ApiResponse<OpenRouterCredits>>;
|
|
1170
|
+
getOpenRouterCreditsValue(apiKey: string): Promise<ApiResponse<number>>;
|
|
1171
|
+
getSolUsdPrice(): Promise<ApiResponse<{
|
|
1172
|
+
price: number;
|
|
1173
|
+
source: string;
|
|
1174
|
+
updatedAt: string;
|
|
1175
|
+
}>>;
|
|
1176
|
+
verifyTicket(token: string, options?: {
|
|
1177
|
+
listingAccount?: string;
|
|
1178
|
+
wallet?: string;
|
|
1179
|
+
}): Promise<TicketVerifyResponse>;
|
|
1180
|
+
verifyRedeem(signature: string, options?: {
|
|
1181
|
+
listingAccount?: string;
|
|
1182
|
+
wallet?: string;
|
|
1183
|
+
maxAgeSec?: number;
|
|
1184
|
+
maxAge?: number;
|
|
1185
|
+
requireReview?: boolean;
|
|
1186
|
+
}): Promise<TicketVerifyResponse>;
|
|
1187
|
+
verifyReceipt(listingAccount: string, wallet: string, options?: {
|
|
1188
|
+
minCount?: number;
|
|
1189
|
+
maxAgeSec?: number;
|
|
1190
|
+
maxAge?: number;
|
|
1191
|
+
}): Promise<TicketVerifyResponse>;
|
|
1192
|
+
private get;
|
|
1193
|
+
private post;
|
|
1194
|
+
private del;
|
|
1195
|
+
checkLatestVersion(force?: boolean): Promise<SdkUpdateStatus>;
|
|
1196
|
+
enforceSdkFreshness(): Promise<void>;
|
|
1197
|
+
stopAutoUpdateCron(): void;
|
|
1198
|
+
private startAutoUpdateCron;
|
|
1199
|
+
private runAutoUpdateCronTick;
|
|
1200
|
+
private shouldAutoUpdate;
|
|
1201
|
+
private tryAutoUpdate;
|
|
1202
|
+
private resolveUpdateStatus;
|
|
1203
|
+
private ensureLatestVersion;
|
|
1204
|
+
}
|
|
1205
|
+
declare class VibeRegistry {
|
|
1206
|
+
private client;
|
|
1207
|
+
constructor(options?: VibeClientOptions);
|
|
1208
|
+
listListings(filters?: ListingQuery): Promise<ListingRecord[]>;
|
|
1209
|
+
listAgents(filters?: Omit<ListingQuery, 'type'>): Promise<ListingRecord[]>;
|
|
1210
|
+
listHumans(filters?: Omit<ListingQuery, 'type'>): Promise<ListingRecord[]>;
|
|
1211
|
+
planTaskProcurement(profile: ProcurementTaskProfile, options?: {
|
|
1212
|
+
filters?: Omit<ListingQuery, 'type'>;
|
|
1213
|
+
listingScope?: ListingType | 'all';
|
|
1214
|
+
weights?: ProcurementWeights;
|
|
1215
|
+
useThreshold?: number;
|
|
1216
|
+
composeGap?: number;
|
|
1217
|
+
}): Promise<ProcurementDecision>;
|
|
1218
|
+
getListing(id: string): Promise<ListingRecord>;
|
|
1219
|
+
getListingReviews(listingId: string, options?: {
|
|
1220
|
+
limit?: number;
|
|
1221
|
+
offset?: number;
|
|
1222
|
+
}): Promise<ListingReviewRecord[]>;
|
|
1223
|
+
createListingReview(listingId: string, payload: ListingReviewCreatePayload): Promise<ListingReviewRecord>;
|
|
1224
|
+
respondToListingReview(listingId: string, reviewId: string, payload: ListingReviewResponsePayload): Promise<ListingReviewRecord>;
|
|
1225
|
+
updateListingVersion(listingId: string, payload: ListingVersionPayload): Promise<{
|
|
1226
|
+
id: string;
|
|
1227
|
+
app_version: string;
|
|
1228
|
+
}>;
|
|
1229
|
+
runReflectionCycle(options: Omit<ReflectionCycleOptions, 'client'>): Promise<ReflectionCycleResult>;
|
|
1230
|
+
getLeaderboard(filters?: LeaderboardQuery): Promise<LeaderboardEntry[]>;
|
|
1231
|
+
getListingAnalytics(listingId: string, window?: string): Promise<AnalyticsPoint[]>;
|
|
1232
|
+
getListingBuybacks(listingId: string, limit?: number): Promise<BuybackEvent[]>;
|
|
1233
|
+
getOpenRouterCredits(apiKey: string): Promise<OpenRouterCredits>;
|
|
1234
|
+
getOpenRouterCreditsValue(apiKey: string): Promise<number>;
|
|
1235
|
+
getSolUsdPrice(): Promise<{
|
|
1236
|
+
price: number;
|
|
1237
|
+
source: string;
|
|
1238
|
+
updatedAt: string;
|
|
1239
|
+
}>;
|
|
1240
|
+
verifyReceipt(listingAccount: string, wallet: string, options?: {
|
|
1241
|
+
minCount?: number;
|
|
1242
|
+
maxAgeSec?: number;
|
|
1243
|
+
maxAge?: number;
|
|
1244
|
+
}): Promise<TicketVerifyResponse>;
|
|
1245
|
+
verifyRedeem(signature: string, options?: {
|
|
1246
|
+
listingAccount?: string;
|
|
1247
|
+
wallet?: string;
|
|
1248
|
+
maxAgeSec?: number;
|
|
1249
|
+
maxAge?: number;
|
|
1250
|
+
requireReview?: boolean;
|
|
1251
|
+
}): Promise<TicketVerifyResponse>;
|
|
1252
|
+
}
|
|
1253
|
+
declare const buildShareLink: (listingId: string, options?: MarketingLinkOptions) => string;
|
|
1254
|
+
declare const buildShareCopy: (listing: ListingRecord, options?: MarketingLinkOptions) => string;
|
|
1255
|
+
declare const buildBadgeMarkdown: (listing: ListingRecord, options?: MarketingLinkOptions) => string;
|
|
1256
|
+
declare const createCampaign: (listingId: string, options?: MarketingLinkOptions) => MarketingCampaign;
|
|
1257
|
+
declare const scoreListingForTask: (profile: ProcurementTaskProfile, listing: ListingRecord, weights?: ProcurementWeights) => ProcurementCandidate;
|
|
1258
|
+
declare const rankListingsForTask: (profile: ProcurementTaskProfile, listings: ListingRecord[], weights?: ProcurementWeights) => ProcurementCandidate[];
|
|
1259
|
+
declare const decideProcurementForTask: (profile: ProcurementTaskProfile, listings: ListingRecord[], options?: {
|
|
1260
|
+
weights?: ProcurementWeights;
|
|
1261
|
+
useThreshold?: number;
|
|
1262
|
+
composeGap?: number;
|
|
1263
|
+
}) => ProcurementDecision;
|
|
1264
|
+
declare const buildProcurementPrompt: (task: string) => string;
|
|
1265
|
+
declare const createApiCreditProvider: (input: ApiCreditProviderPresetInput, options?: ApiCreditProviderFactoryOptions) => Promise<ApiCreditProvider>;
|
|
1266
|
+
declare const createApiCreditProviders: (inputs: ApiCreditProviderPresetInput[], options?: ApiCreditProviderFactoryOptions) => Promise<ApiCreditProvider[]>;
|
|
1267
|
+
declare const createApiCreditProvidersFromManifest: (manifest: AgentResourceProvidersManifest, options?: ApiCreditProviderFactoryOptions) => Promise<ApiCreditProvider[]>;
|
|
1268
|
+
declare const assertSurvivalProvidersConfigured: (policy: Pick<SelfReliancePolicy, "openRouterMinCredits" | "openRouterWarnCredits" | "apiMinCredits" | "apiWarnCredits">, providers: ApiCreditProvider[], options?: {
|
|
1269
|
+
hasOpenRouterApiKey?: boolean;
|
|
1270
|
+
}) => void;
|
|
1271
|
+
declare const buildRaydiumSwapUrl: (tokenMint: string) => string;
|
|
1272
|
+
declare const buildJupiterSwapUrl: (tokenMint: string) => string;
|
|
1273
|
+
declare const buildTradeLinks: (tokenMint: string) => {
|
|
1274
|
+
raydium: string;
|
|
1275
|
+
jupiter: string;
|
|
1276
|
+
};
|
|
1277
|
+
|
|
1278
|
+
declare const getResourceSnapshot: (options: {
|
|
1279
|
+
connection: _solana_web3_js.Connection;
|
|
1280
|
+
wallet: string | _solana_web3_js.PublicKey;
|
|
1281
|
+
tokenMints?: Array<string | _solana_web3_js.PublicKey>;
|
|
1282
|
+
openRouterApiKey?: string;
|
|
1283
|
+
apiCreditProviders?: ApiCreditProvider[];
|
|
1284
|
+
apiBase?: string;
|
|
1285
|
+
}) => Promise<ResourceSnapshot>;
|
|
1286
|
+
|
|
1287
|
+
export { assertSurvivalProvidersConfigured as $, type AgentResourceProvidersManifest as A, type BuybackEvent as B, CONTEXT_PACK_SECTION_ORDER as C, type DurabilityCheckpointWriteOptions as D, type MemoryPingChallengeResponse as E, type MemoryPingPayload as F, type ProcurementDecision as G, type ProcurementTaskProfile as H, type ProcurementWeights as I, type ResourceSnapshot as J, ReviewGate as K, LISTING_NAME_MAX_LENGTH as L, type MarketingCampaign as M, type ReviewGateRecord as N, type OpenRouterCredits as O, type ProcurementCandidate as P, type ReviewRequiredPayload as Q, type ResourceProviderManifestEntry as R, SdkAutoUpdatedRestartRequiredError as S, type SdkUpdateCheckOptions as T, type TopupDecision, type TopupRequest, type TreasuryLedgerEvent, type TreasuryPolicy, type TreasuryPolicyV1, type TreasuryState, type SdkUpdatePolicyCheckOptions as U, SdkUpdateRequiredError as V, type SdkUpdateStatus as W, VIBEIAO_IDL as X, VibeClient as Y, type VibeClientOptions as Z, VibeRegistry as _, type AnalyticsPoint as a, buildBadgeMarkdown as a0, buildClaimMessage as a1, buildJupiterSwapUrl as a2, buildListingVersionMessage as a3, buildMemoryPingMessage as a4, buildOwnerTransferMessage as a5, buildProcurementPrompt as a6, buildRaydiumSwapUrl as a7, buildReviewPrompt as a8, buildReviewRequired as a9, buildReviewResponseMessage as aa, buildSdkUpdateCommand as ab, buildShareCopy as ac, buildShareLink as ad, buildTradeLinks as ae, checkForSdkUpdate as af, checkForSdkUpdatePolicy as ag, compareVersions as ah, createApiCreditProvider as ai, createApiCreditProviders as aj, createApiCreditProvidersFromManifest as ak, createCampaign as al, createContextPack as am, createDurabilityProxyClient as an, decideProcurementForTask as ao, estimateContextPackTokens as ap, getResourceSnapshot as aq, normalizeListingText as ar, rankListingsForTask as as, sanitizeListingNaming as at, scoreListingForTask as au, validateContextPack as av, validateListingNaming as aw, type ApiCreditProvider as b, buildTreasuryLedgerEvent, type ApiCreditProviderFactoryOptions as c, createTreasuryPolicy, type ApiCreditProviderPreset as d, type ApiCreditProviderPresetInput as e, evaluateTopupRequest, type ApiResponse as f, type ContextPack as g, type ContextPackBudget as h, type ContextPackInput as i, type ContextPackOptions as j, type ContextPackSectionKey as k, type ContextPackSections as l, type DurabilityProxyClientOptions as m, type DurabilityRestoreDrillWriteOptions as n, LISTING_NAME_RECOMMENDED_MAX as o, LISTING_TAGLINE_MAX_LENGTH as p, LISTING_TAGLINE_RECOMMENDED_MAX as q, type LeaderboardEntry as r, type LeaderboardQuery as s, type ListingNamingValidationOptions as t, treasuryStateFromSnapshot, type ListingNamingValidationResult as u, type ListingQuery as v, validateTreasuryPolicy, type ListingReviewCreatePayload as w, type ListingReviewResponsePayload as x, type ListingVersionPayload as y, type MarketingLinkOptions as z };
|