@cascade-fyi/sati-sdk 0.5.0 → 0.7.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.
- package/CHANGELOG.md +42 -0
- package/README.md +11 -9
- package/dist/index.cjs +681 -15
- package/dist/index.d.cts +426 -3
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +426 -3
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +679 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2840,6 +2840,22 @@ interface MetadataUploader {
|
|
|
2840
2840
|
/** Upload JSON-serializable data and return a URI (e.g. `ipfs://Qm...`, `ar://...`). */
|
|
2841
2841
|
upload(data: unknown): Promise<string>;
|
|
2842
2842
|
}
|
|
2843
|
+
/**
|
|
2844
|
+
* Create a hosted SATI metadata uploader.
|
|
2845
|
+
*
|
|
2846
|
+
* Uploads JSON to the SATI Identity Service which pins it to IPFS via Pinata.
|
|
2847
|
+
* No API keys needed - zero-config alternative to `createPinataUploader()`.
|
|
2848
|
+
*
|
|
2849
|
+
* @returns MetadataUploader that uploads via sati.cascade.fyi
|
|
2850
|
+
*
|
|
2851
|
+
* @example
|
|
2852
|
+
* ```typescript
|
|
2853
|
+
* const uploader = createSatiUploader();
|
|
2854
|
+
* const uri = await uploader.upload({ name: "MyAgent" });
|
|
2855
|
+
* // "ipfs://QmXyz..."
|
|
2856
|
+
* ```
|
|
2857
|
+
*/
|
|
2858
|
+
declare function createSatiUploader(): MetadataUploader;
|
|
2843
2859
|
/**
|
|
2844
2860
|
* Create a Pinata IPFS uploader using the v3 Files API.
|
|
2845
2861
|
*
|
|
@@ -2898,6 +2914,19 @@ interface RegisterAgentResult {
|
|
|
2898
2914
|
/** Transaction signature */
|
|
2899
2915
|
signature: string;
|
|
2900
2916
|
}
|
|
2917
|
+
/**
|
|
2918
|
+
* Non-fatal warning emitted by the SDK (parse errors, RPC failures, etc.)
|
|
2919
|
+
*/
|
|
2920
|
+
interface SatiWarning {
|
|
2921
|
+
/** Machine-readable warning code (e.g., "PARSE_CONTENT_FAILED") */
|
|
2922
|
+
code: string;
|
|
2923
|
+
/** Human-readable description */
|
|
2924
|
+
message: string;
|
|
2925
|
+
/** Optional context (e.g., attestation address) */
|
|
2926
|
+
context?: string;
|
|
2927
|
+
/** Original error, if any */
|
|
2928
|
+
cause?: unknown;
|
|
2929
|
+
}
|
|
2901
2930
|
/**
|
|
2902
2931
|
* SATI client configuration options
|
|
2903
2932
|
*/
|
|
@@ -2910,6 +2939,8 @@ interface SATIClientOptions {
|
|
|
2910
2939
|
wsUrl?: string;
|
|
2911
2940
|
/** Photon RPC URL for Light Protocol queries (defaults to rpcUrl, works with Helius) */
|
|
2912
2941
|
photonRpcUrl?: string;
|
|
2942
|
+
/** Optional callback for non-fatal warnings (parse errors, RPC failures) */
|
|
2943
|
+
onWarning?: (warning: SatiWarning) => void;
|
|
2913
2944
|
}
|
|
2914
2945
|
/**
|
|
2915
2946
|
* SAS configuration with credential and schema addresses
|
|
@@ -3262,8 +3293,8 @@ declare function buildRegistrationFile(params: RegistrationFileParams): Registra
|
|
|
3262
3293
|
* Fetch and parse a registration file from URI.
|
|
3263
3294
|
*
|
|
3264
3295
|
* - Returns null on network errors or invalid URIs
|
|
3265
|
-
* - Validates structure,
|
|
3266
|
-
* - Never throws
|
|
3296
|
+
* - Validates structure, returns raw data for non-conforming files
|
|
3297
|
+
* - Never throws, never logs to console
|
|
3267
3298
|
*/
|
|
3268
3299
|
declare function fetchRegistrationFile(uri: string): Promise<RegistrationFile | null>;
|
|
3269
3300
|
/**
|
|
@@ -3309,6 +3340,246 @@ declare function hasSatiRegistration(file: RegistrationFile): boolean;
|
|
|
3309
3340
|
*/
|
|
3310
3341
|
declare function getSatiAgentIds(file: RegistrationFile): string[];
|
|
3311
3342
|
//#endregion
|
|
3343
|
+
//#region src/agent-builder.d.ts
|
|
3344
|
+
declare class SatiAgentBuilder {
|
|
3345
|
+
private _params;
|
|
3346
|
+
private _identity;
|
|
3347
|
+
private readonly _sati;
|
|
3348
|
+
constructor(sati: Sati, name: string, description: string, image: string);
|
|
3349
|
+
/** Current registration file parameters. */
|
|
3350
|
+
get params(): RegistrationFileParams;
|
|
3351
|
+
/** On-chain identity (available after register/load). */
|
|
3352
|
+
get identity(): AgentIdentity | undefined;
|
|
3353
|
+
/** Set a generic endpoint. */
|
|
3354
|
+
setEndpoint(endpoint: Endpoint): this;
|
|
3355
|
+
/**
|
|
3356
|
+
* Set MCP endpoint.
|
|
3357
|
+
*
|
|
3358
|
+
* Unlike agent0-sdk's `SatiAgent.setMCP()`, this does NOT auto-fetch capabilities.
|
|
3359
|
+
* Pass tools/prompts/resources explicitly via the `meta` parameter.
|
|
3360
|
+
*/
|
|
3361
|
+
setMCP(url: string, version?: string, meta?: {
|
|
3362
|
+
tools?: string[];
|
|
3363
|
+
prompts?: string[];
|
|
3364
|
+
resources?: string[];
|
|
3365
|
+
}): this;
|
|
3366
|
+
/** Set A2A endpoint. */
|
|
3367
|
+
setA2A(url: string, version?: string, meta?: {
|
|
3368
|
+
skills?: string[];
|
|
3369
|
+
}): this;
|
|
3370
|
+
/** Set wallet endpoint. */
|
|
3371
|
+
setWallet(address: string): this;
|
|
3372
|
+
/** Remove an endpoint by name. */
|
|
3373
|
+
removeEndpoint(name: string): this;
|
|
3374
|
+
/** Set agent active status. */
|
|
3375
|
+
setActive(active: boolean): this;
|
|
3376
|
+
/** Set x402 payment support. */
|
|
3377
|
+
setX402Support(x402: boolean): this;
|
|
3378
|
+
/** Set supported trust mechanisms. */
|
|
3379
|
+
setSupportedTrust(trusts: TrustMechanism[]): this;
|
|
3380
|
+
/** Set external URL. */
|
|
3381
|
+
setExternalUrl(url: string): this;
|
|
3382
|
+
/** Update basic info. */
|
|
3383
|
+
updateInfo(opts: {
|
|
3384
|
+
name?: string;
|
|
3385
|
+
description?: string;
|
|
3386
|
+
image?: string;
|
|
3387
|
+
}): this;
|
|
3388
|
+
/**
|
|
3389
|
+
* Upload registration file and register agent on-chain.
|
|
3390
|
+
*
|
|
3391
|
+
* @returns Registration result with mint address, member number, and signature
|
|
3392
|
+
*/
|
|
3393
|
+
register(opts: {
|
|
3394
|
+
payer: KeyPairSigner;
|
|
3395
|
+
uploader: MetadataUploader;
|
|
3396
|
+
nonTransferable?: boolean;
|
|
3397
|
+
owner?: Address$1;
|
|
3398
|
+
}): Promise<RegisterAgentResult>;
|
|
3399
|
+
/**
|
|
3400
|
+
* Register agent on-chain with a pre-existing URI.
|
|
3401
|
+
*
|
|
3402
|
+
* Use when you already have a hosted registration file.
|
|
3403
|
+
*/
|
|
3404
|
+
registerWithUri(opts: {
|
|
3405
|
+
payer: KeyPairSigner;
|
|
3406
|
+
uri: string;
|
|
3407
|
+
nonTransferable?: boolean;
|
|
3408
|
+
owner?: Address$1;
|
|
3409
|
+
}): Promise<RegisterAgentResult>;
|
|
3410
|
+
/**
|
|
3411
|
+
* Re-upload registration file and update the on-chain URI.
|
|
3412
|
+
*
|
|
3413
|
+
* Use after modifying the builder via fluent setters.
|
|
3414
|
+
*/
|
|
3415
|
+
update(opts: {
|
|
3416
|
+
payer: KeyPairSigner;
|
|
3417
|
+
owner: KeyPairSigner;
|
|
3418
|
+
uploader: MetadataUploader;
|
|
3419
|
+
}): Promise<{
|
|
3420
|
+
signature: string;
|
|
3421
|
+
}>;
|
|
3422
|
+
/**
|
|
3423
|
+
* Update the on-chain URI to point to a new registration file.
|
|
3424
|
+
*/
|
|
3425
|
+
updateUri(opts: {
|
|
3426
|
+
payer: KeyPairSigner;
|
|
3427
|
+
owner: KeyPairSigner;
|
|
3428
|
+
uri: string;
|
|
3429
|
+
}): Promise<{
|
|
3430
|
+
signature: string;
|
|
3431
|
+
}>;
|
|
3432
|
+
/**
|
|
3433
|
+
* Load existing on-chain identity into this builder.
|
|
3434
|
+
* Useful for wrapping an already-registered agent.
|
|
3435
|
+
*/
|
|
3436
|
+
setIdentity(identity: AgentIdentity): this;
|
|
3437
|
+
private _registerWithUri;
|
|
3438
|
+
private _updateUri;
|
|
3439
|
+
}
|
|
3440
|
+
//#endregion
|
|
3441
|
+
//#region src/convenience.d.ts
|
|
3442
|
+
/** Simplified parameters for giving feedback on an agent. */
|
|
3443
|
+
interface GiveFeedbackParams {
|
|
3444
|
+
/** Payer for transaction fees (also the counterparty/reviewer) */
|
|
3445
|
+
payer: KeyPairSigner;
|
|
3446
|
+
/** Agent mint address to review */
|
|
3447
|
+
agentMint: Address$1;
|
|
3448
|
+
/** Numeric score 0-100 (auto-maps to outcome if not provided) */
|
|
3449
|
+
score?: number;
|
|
3450
|
+
/** Tag dimensions for the feedback (1 or 2 tags) */
|
|
3451
|
+
tags?: [string] | [string, string];
|
|
3452
|
+
/** Human-readable feedback message */
|
|
3453
|
+
message?: string;
|
|
3454
|
+
/** Endpoint being reviewed */
|
|
3455
|
+
endpoint?: string;
|
|
3456
|
+
/** Explicit outcome (defaults to Neutral if not set) */
|
|
3457
|
+
outcome?: Outcome;
|
|
3458
|
+
/** Task reference (32-byte CAIP-220 tx hash or task ID) */
|
|
3459
|
+
taskRef?: Uint8Array;
|
|
3460
|
+
}
|
|
3461
|
+
/** Result from giveFeedback. */
|
|
3462
|
+
interface GiveFeedbackResult {
|
|
3463
|
+
/** Transaction signature */
|
|
3464
|
+
signature: string;
|
|
3465
|
+
/** Compressed account address of the attestation */
|
|
3466
|
+
attestationAddress: Address$1;
|
|
3467
|
+
}
|
|
3468
|
+
/** Prepared feedback for browser wallet signing (counterparty signs externally). */
|
|
3469
|
+
interface PreparedFeedbackData {
|
|
3470
|
+
/** SIWS message bytes for the counterparty to sign */
|
|
3471
|
+
messageBytes: Uint8Array;
|
|
3472
|
+
/** Agent mint address */
|
|
3473
|
+
agentMint: Address$1;
|
|
3474
|
+
/** Counterparty address (the reviewer) */
|
|
3475
|
+
counterparty: Address$1;
|
|
3476
|
+
/** Task reference (32 bytes) */
|
|
3477
|
+
taskRef: Uint8Array;
|
|
3478
|
+
/** Data hash (zeros for CounterpartySigned) */
|
|
3479
|
+
dataHash: Uint8Array;
|
|
3480
|
+
/** Feedback outcome */
|
|
3481
|
+
outcome: Outcome;
|
|
3482
|
+
/** Content type byte */
|
|
3483
|
+
contentType: ContentType;
|
|
3484
|
+
/** Serialized content bytes */
|
|
3485
|
+
content: Uint8Array;
|
|
3486
|
+
/** SAS schema address */
|
|
3487
|
+
sasSchema: Address$1;
|
|
3488
|
+
/** Address lookup table (if available) */
|
|
3489
|
+
lookupTable?: Address$1;
|
|
3490
|
+
/** Original input values for reconstructing display data */
|
|
3491
|
+
meta: {
|
|
3492
|
+
score?: number;
|
|
3493
|
+
tags?: string[];
|
|
3494
|
+
message?: string;
|
|
3495
|
+
endpoint?: string;
|
|
3496
|
+
};
|
|
3497
|
+
}
|
|
3498
|
+
/** Options for searching feedback attestations. */
|
|
3499
|
+
interface FeedbackSearchOptions {
|
|
3500
|
+
/** Filter by agent mint */
|
|
3501
|
+
agentMint?: Address$1;
|
|
3502
|
+
/** Filter by counterparty (reviewer) */
|
|
3503
|
+
counterparty?: Address$1;
|
|
3504
|
+
/** Filter by tag dimensions */
|
|
3505
|
+
tags?: string[];
|
|
3506
|
+
/** Minimum score (inclusive) */
|
|
3507
|
+
minScore?: number;
|
|
3508
|
+
/** Maximum score (inclusive) */
|
|
3509
|
+
maxScore?: number;
|
|
3510
|
+
/** Include transaction hash in results (extra RPC call) */
|
|
3511
|
+
includeTxHash?: boolean;
|
|
3512
|
+
}
|
|
3513
|
+
/** Parsed feedback attestation. */
|
|
3514
|
+
interface ParsedFeedback {
|
|
3515
|
+
/** Compressed account address */
|
|
3516
|
+
compressedAddress: Address$1;
|
|
3517
|
+
/** Agent mint address */
|
|
3518
|
+
agentMint: Address$1;
|
|
3519
|
+
/** Counterparty (reviewer) address */
|
|
3520
|
+
counterparty: Address$1;
|
|
3521
|
+
/** Feedback outcome */
|
|
3522
|
+
outcome: Outcome;
|
|
3523
|
+
/** Numeric score 0-100 (from JSON content) */
|
|
3524
|
+
score?: number;
|
|
3525
|
+
/** Tag dimensions */
|
|
3526
|
+
tags: string[];
|
|
3527
|
+
/** Feedback message */
|
|
3528
|
+
message?: string;
|
|
3529
|
+
/** Endpoint reviewed */
|
|
3530
|
+
endpoint?: string;
|
|
3531
|
+
/** Approximate creation timestamp (Unix seconds) */
|
|
3532
|
+
createdAt: number;
|
|
3533
|
+
/** Transaction signature (only if includeTxHash was true) */
|
|
3534
|
+
txSignature?: string;
|
|
3535
|
+
}
|
|
3536
|
+
/** Reputation summary aggregated from feedback. */
|
|
3537
|
+
interface ReputationSummary {
|
|
3538
|
+
/** Number of feedback attestations */
|
|
3539
|
+
count: number;
|
|
3540
|
+
/** Average score (0-100) across attestations with scores */
|
|
3541
|
+
averageScore: number;
|
|
3542
|
+
}
|
|
3543
|
+
/** Options for searching registered agents. */
|
|
3544
|
+
interface AgentSearchOptions {
|
|
3545
|
+
/** Filter by agent name (substring match) */
|
|
3546
|
+
name?: string;
|
|
3547
|
+
/** Filter by owner address */
|
|
3548
|
+
owner?: Address$1;
|
|
3549
|
+
/** Filter by active status in registration file */
|
|
3550
|
+
active?: boolean;
|
|
3551
|
+
/** Filter by endpoint types (e.g., ["MCP", "A2A"]) */
|
|
3552
|
+
endpointTypes?: string[];
|
|
3553
|
+
/** Maximum results to return */
|
|
3554
|
+
limit?: number;
|
|
3555
|
+
/** Offset for pagination (member number) */
|
|
3556
|
+
offset?: bigint;
|
|
3557
|
+
/** Include feedback stats per agent */
|
|
3558
|
+
includeFeedbackStats?: boolean;
|
|
3559
|
+
}
|
|
3560
|
+
/** Agent search result with identity and optional metadata. */
|
|
3561
|
+
interface AgentSearchResult {
|
|
3562
|
+
/** On-chain agent identity */
|
|
3563
|
+
identity: AgentIdentity;
|
|
3564
|
+
/** Fetched registration file (null if fetch failed) */
|
|
3565
|
+
registrationFile: RegistrationFile | null;
|
|
3566
|
+
/** Feedback statistics (only if includeFeedbackStats was true) */
|
|
3567
|
+
feedbackStats?: ReputationSummary;
|
|
3568
|
+
}
|
|
3569
|
+
/** Parsed validation attestation. */
|
|
3570
|
+
interface ParsedValidation {
|
|
3571
|
+
/** Compressed account address */
|
|
3572
|
+
compressedAddress: Address$1;
|
|
3573
|
+
/** Agent mint address */
|
|
3574
|
+
agentMint: Address$1;
|
|
3575
|
+
/** Counterparty (validator) address */
|
|
3576
|
+
counterparty: Address$1;
|
|
3577
|
+
/** Validation outcome */
|
|
3578
|
+
outcome: Outcome;
|
|
3579
|
+
/** Approximate creation timestamp (Unix seconds) */
|
|
3580
|
+
createdAt: number;
|
|
3581
|
+
}
|
|
3582
|
+
//#endregion
|
|
3312
3583
|
//#region src/client.d.ts
|
|
3313
3584
|
/**
|
|
3314
3585
|
* Attestation creation result
|
|
@@ -3595,6 +3866,9 @@ declare class Sati {
|
|
|
3595
3866
|
private rpcSubscriptions;
|
|
3596
3867
|
private sendAndConfirm;
|
|
3597
3868
|
private lightClient;
|
|
3869
|
+
private readonly _deployedConfig;
|
|
3870
|
+
private readonly _feedbackCache;
|
|
3871
|
+
private readonly _onWarning?;
|
|
3598
3872
|
/** Network configuration */
|
|
3599
3873
|
readonly network: "mainnet" | "devnet" | "localnet";
|
|
3600
3874
|
constructor(options: SATIClientOptions);
|
|
@@ -3937,6 +4211,155 @@ declare class Sati {
|
|
|
3937
4211
|
* Send a single transaction without address lookup table.
|
|
3938
4212
|
*/
|
|
3939
4213
|
private sendSingleTransaction;
|
|
4214
|
+
/** Deployed SAS configuration for this network (null for localnet unless deployed). */
|
|
4215
|
+
get deployedConfig(): SATISASConfig | null;
|
|
4216
|
+
/** FeedbackPublic schema address (CounterpartySigned mode). */
|
|
4217
|
+
get feedbackPublicSchema(): Address$1 | undefined;
|
|
4218
|
+
/** Feedback schema address (DualSignature mode). */
|
|
4219
|
+
get feedbackSchema(): Address$1 | undefined;
|
|
4220
|
+
/** Validation schema address. */
|
|
4221
|
+
get validationSchema(): Address$1 | undefined;
|
|
4222
|
+
/** Address Lookup Table for transaction compression. */
|
|
4223
|
+
get lookupTable(): Address$1 | undefined;
|
|
4224
|
+
/**
|
|
4225
|
+
* Give feedback to an agent (simplified).
|
|
4226
|
+
*
|
|
4227
|
+
* Uses FeedbackPublicV1 schema (CounterpartySigned mode).
|
|
4228
|
+
* Automatically handles SIWS message construction and signing.
|
|
4229
|
+
*
|
|
4230
|
+
* @example
|
|
4231
|
+
* ```typescript
|
|
4232
|
+
* const result = await sati.giveFeedback({
|
|
4233
|
+
* payer: myKeypair,
|
|
4234
|
+
* agentMint: address("Agent..."),
|
|
4235
|
+
* score: 85,
|
|
4236
|
+
* tags: ["quality", "speed"],
|
|
4237
|
+
* message: "Great response time",
|
|
4238
|
+
* });
|
|
4239
|
+
* ```
|
|
4240
|
+
*/
|
|
4241
|
+
giveFeedback(params: GiveFeedbackParams): Promise<GiveFeedbackResult>;
|
|
4242
|
+
/**
|
|
4243
|
+
* Prepare feedback for browser wallet signing.
|
|
4244
|
+
*
|
|
4245
|
+
* Returns SIWS message bytes that the counterparty must sign externally.
|
|
4246
|
+
* Pass the result + signature to `submitPreparedFeedback()`.
|
|
4247
|
+
*/
|
|
4248
|
+
prepareFeedback(params: Omit<GiveFeedbackParams, "payer"> & {
|
|
4249
|
+
counterparty: Address$1;
|
|
4250
|
+
}): Promise<PreparedFeedbackData>;
|
|
4251
|
+
/**
|
|
4252
|
+
* Submit prepared feedback with an externally-obtained wallet signature.
|
|
4253
|
+
*
|
|
4254
|
+
* The payer signs the transaction and pays gas. The counterparty's SIWS
|
|
4255
|
+
* signature (from wallet) proves consent.
|
|
4256
|
+
*/
|
|
4257
|
+
submitPreparedFeedback(params: {
|
|
4258
|
+
payer: KeyPairSigner;
|
|
4259
|
+
prepared: PreparedFeedbackData;
|
|
4260
|
+
counterpartySignature: Uint8Array;
|
|
4261
|
+
}): Promise<GiveFeedbackResult>;
|
|
4262
|
+
/**
|
|
4263
|
+
* Revoke (close) a feedback attestation by its compressed account address.
|
|
4264
|
+
*
|
|
4265
|
+
* The payer must be the counterparty who originally submitted the feedback.
|
|
4266
|
+
* Closed attestations are permanently deleted.
|
|
4267
|
+
*/
|
|
4268
|
+
revokeFeedback(params: {
|
|
4269
|
+
payer: KeyPairSigner;
|
|
4270
|
+
attestationAddress: Address$1;
|
|
4271
|
+
}): Promise<{
|
|
4272
|
+
signature: string;
|
|
4273
|
+
}>;
|
|
4274
|
+
/**
|
|
4275
|
+
* Search feedback attestations with client-side filtering.
|
|
4276
|
+
*
|
|
4277
|
+
* Note: `createdAt` timestamps are approximate - derived from Solana slot
|
|
4278
|
+
* numbers using ~400ms/slot estimate.
|
|
4279
|
+
*
|
|
4280
|
+
* @example
|
|
4281
|
+
* ```typescript
|
|
4282
|
+
* const feedbacks = await sati.searchFeedback({
|
|
4283
|
+
* agentMint: address("Agent..."),
|
|
4284
|
+
* tags: ["quality"],
|
|
4285
|
+
* minScore: 70,
|
|
4286
|
+
* });
|
|
4287
|
+
* ```
|
|
4288
|
+
*/
|
|
4289
|
+
searchFeedback(options?: FeedbackSearchOptions): Promise<ParsedFeedback[]>;
|
|
4290
|
+
/**
|
|
4291
|
+
* Get reputation summary for an agent.
|
|
4292
|
+
*
|
|
4293
|
+
* Aggregates feedback scores, optionally filtered by tags.
|
|
4294
|
+
*
|
|
4295
|
+
* @example
|
|
4296
|
+
* ```typescript
|
|
4297
|
+
* const summary = await sati.getReputationSummary(address("Agent..."));
|
|
4298
|
+
* console.log(`${summary.count} reviews, avg ${summary.averageScore}`);
|
|
4299
|
+
* ```
|
|
4300
|
+
*/
|
|
4301
|
+
getReputationSummary(agentMint: Address$1, tags?: string[]): Promise<ReputationSummary>;
|
|
4302
|
+
/**
|
|
4303
|
+
* Search validation attestations for an agent.
|
|
4304
|
+
*
|
|
4305
|
+
* Note: `createdAt` timestamps are approximate.
|
|
4306
|
+
*/
|
|
4307
|
+
searchValidations(agentMint: Address$1): Promise<ParsedValidation[]>;
|
|
4308
|
+
/**
|
|
4309
|
+
* Search registered agents with filtering and optional feedback stats.
|
|
4310
|
+
*
|
|
4311
|
+
* @example
|
|
4312
|
+
* ```typescript
|
|
4313
|
+
* const agents = await sati.searchAgents({
|
|
4314
|
+
* endpointTypes: ["MCP"],
|
|
4315
|
+
* active: true,
|
|
4316
|
+
* includeFeedbackStats: true,
|
|
4317
|
+
* });
|
|
4318
|
+
* ```
|
|
4319
|
+
*/
|
|
4320
|
+
searchAgents(options?: AgentSearchOptions): Promise<AgentSearchResult[]>;
|
|
4321
|
+
/**
|
|
4322
|
+
* Create a fluent builder for agent registration.
|
|
4323
|
+
*
|
|
4324
|
+
* @example
|
|
4325
|
+
* ```typescript
|
|
4326
|
+
* const builder = sati.createAgentBuilder("MyAgent", "AI assistant", "https://example.com/avatar.png");
|
|
4327
|
+
* builder.setMCP("https://mcp.example.com").setActive(true);
|
|
4328
|
+
* const result = await builder.register({ payer, uploader: createSatiUploader() });
|
|
4329
|
+
* ```
|
|
4330
|
+
*/
|
|
4331
|
+
createAgentBuilder(name: string, description: string, image: string): SatiAgentBuilder;
|
|
4332
|
+
/** Safely parse JSON content from an attestation. */
|
|
4333
|
+
private _parseContentJson;
|
|
4334
|
+
/** Fire a non-fatal warning. */
|
|
4335
|
+
private _warn;
|
|
4336
|
+
/** Get the FeedbackPublic schema address or throw. */
|
|
4337
|
+
private _requireFeedbackPublicSchema;
|
|
4338
|
+
}
|
|
4339
|
+
//#endregion
|
|
4340
|
+
//#region src/cache.d.ts
|
|
4341
|
+
/**
|
|
4342
|
+
* Simple TTL cache for feedback query results.
|
|
4343
|
+
*
|
|
4344
|
+
* Reduces redundant RPC calls when the same feedback data is queried
|
|
4345
|
+
* multiple times in quick succession (e.g. listing then revoking,
|
|
4346
|
+
* or dashboard re-renders).
|
|
4347
|
+
*
|
|
4348
|
+
* Automatically invalidated after write operations (giveFeedback,
|
|
4349
|
+
* revokeFeedback, submitPreparedFeedback).
|
|
4350
|
+
*/
|
|
4351
|
+
declare class FeedbackCache {
|
|
4352
|
+
private readonly ttlMs;
|
|
4353
|
+
private cache;
|
|
4354
|
+
constructor(ttlMs?: number);
|
|
4355
|
+
/** Get cached data or null if expired/missing. */
|
|
4356
|
+
get<T>(key: string): T | null;
|
|
4357
|
+
/** Store data with TTL. */
|
|
4358
|
+
set<T>(key: string, data: T): void;
|
|
4359
|
+
/** Invalidate a specific key, or all entries if no key given. */
|
|
4360
|
+
invalidate(key?: string): void;
|
|
4361
|
+
/** Build a cache key from schema and optional agent mint. */
|
|
4362
|
+
static cacheKey(sasSchema: string, agentMint?: string): string;
|
|
3940
4363
|
}
|
|
3941
4364
|
//#endregion
|
|
3942
4365
|
//#region src/errors.d.ts
|
|
@@ -4029,5 +4452,5 @@ declare function networkErrorMessage(): string;
|
|
|
4029
4452
|
declare function transactionExpiredMessage(): string;
|
|
4030
4453
|
declare function transactionFailedMessage(detail?: string): string;
|
|
4031
4454
|
//#endregion
|
|
4032
|
-
export { AGENT_INDEX_DISCRIMINATOR, ASSOCIATED_TOKEN_PROGRAM_ADDRESS, ATTESTATION_SEED, type AccountMeta, type Address, AgentIdentity, AgentIndex, AgentIndexArgs, AgentMint, AgentNotFoundError, AgentRegistered, AgentRegisteredArgs, AttestationClosed, AttestationClosedArgs, AttestationCreated, AttestationCreatedArgs, type AttestationFilter, type AttestationResult, AttestationWithProof, BASE_OFFSETS, type BaseLayout, type BuildFeedbackParams, type BuiltTransaction, CLOSE_COMPRESSED_ATTESTATION_DISCRIMINATOR, CLOSE_REGULAR_ATTESTATION_DISCRIMINATOR, COMPRESSED_OFFSETS, CREATE_COMPRESSED_ATTESTATION_DISCRIMINATOR, CREATE_REGULAR_ATTESTATION_DISCRIMINATOR, CREDENTIAL_SEED, CloseAttestationResult, CloseCompressedAttestationAsyncInput, CloseCompressedAttestationInput, CloseCompressedAttestationInstruction, CloseCompressedAttestationInstructionData, CloseCompressedAttestationInstructionDataArgs, CloseCompressedAttestationParams, CloseRegularAttestationAsyncInput, CloseRegularAttestationInput, CloseRegularAttestationInstruction, CloseRegularAttestationInstructionData, CloseRegularAttestationInstructionDataArgs, CloseRegularAttestationParams, CompressedAccountMeta, CompressedAccountMetaArgs, type CompressedAttestation, CompressedProof, CompressedProofArgs, type ContentSizeValidationOptions, type ContentSizeValidationResult, ContentType, CounterpartyMessageParams, CreateCompressedAttestationAsyncInput, CreateCompressedAttestationInput, CreateCompressedAttestationInstruction, CreateCompressedAttestationInstructionData, CreateCompressedAttestationInstructionDataArgs, type CreateFeedbackParams, CreateRegularAttestationAsyncInput, CreateRegularAttestationInput, CreateRegularAttestationInstruction, CreateRegularAttestationInstructionData, CreateRegularAttestationInstructionDataArgs, type CreateReputationScoreParams, type CreateValidationParams, type CreationProofResult, DOMAINS, DataType, DeployedSASConfig, DuplicateAttestationError, ED25519_PROGRAM_ADDRESS, ENCRYPTION_VERSION, Ed25519Instruction, Ed25519SignatureParams, type EncryptedPayload, type EncryptionKeypair, type Endpoint, EvmAddressLink, EvmAddressLinked, EvmAddressLinkedArgs, FEEDBACK_OFFSETS, type FailedReason, type FailedResult, type FeedbackContent, type FeedbackData, FeedbackSigningMessage, FeedbackSigningParams, INITIALIZE_DISCRIMINATOR, InitializeAsyncInput, InitializeInput, InitializeInstruction, InitializeInstructionData, InitializeInstructionDataArgs, LIGHT_ERROR_CODES, LINK_EVM_ADDRESS_DISCRIMINATOR, LinkEvmAddressAsyncInput, LinkEvmAddressInput, LinkEvmAddressInstruction, LinkEvmAddressInstructionData, LinkEvmAddressInstructionDataArgs, LinkEvmAddressParams, LinkEvmAddressResult, MAX_CONTENT_SIZE, MAX_DUAL_SIGNATURE_CONTENT_SIZE, MAX_PLAINTEXT_SIZE, MAX_SINGLE_SIGNATURE_CONTENT_SIZE, MIN_BASE_LAYOUT_SIZE, MIN_ENCRYPTED_SIZE, MerkleProofWithContext, MetadataEntry, MetadataEntryArgs, type MetadataUploader, type MutationProofResult, NONCE_SIZE, OFFSETS, Outcome, PRIVKEY_SIZE, PUBKEY_SIZE, type PackedAddressTreeInfo, PackedAddressTreeInfoArgs, type PackedStateTreeInfo, PackedStateTreeInfoArgs, type PaginatedAttestations, type ParsedAttestation, ParsedCloseCompressedAttestationInstruction, ParsedCloseRegularAttestationInstruction, ParsedCreateCompressedAttestationInstruction, ParsedCreateRegularAttestationInstruction, type ParsedFeedbackAttestation, ParsedInitializeInstruction, ParsedLinkEvmAddressInstruction, ParsedRegisterAgentInstruction, ParsedRegisterSchemaConfigInstruction, ParsedSatiInstruction, ParsedUpdateRegistryAuthorityInstruction, type ParsedValidationAttestation, type Properties, type PropertyFile, type PublicKeyLike, REGISTER_AGENT_DISCRIMINATOR, REGISTER_SCHEMA_CONFIG_DISCRIMINATOR, REGISTRY_CONFIG_DISCRIMINATOR, REPUTATION_SCHEMA_NAME, REPUTATION_SCHEMA_VERSION, REPUTATION_SCORE_OFFSETS, RegisterAgentAsyncInput, RegisterAgentInput, RegisterAgentInstruction, RegisterAgentInstructionData, RegisterAgentInstructionDataArgs, RegisterAgentResult, RegisterSchemaConfigAsyncInput, RegisterSchemaConfigInput, RegisterSchemaConfigInstruction, RegisterSchemaConfigInstructionData, RegisterSchemaConfigInstructionDataArgs, type RegistrationEntry, type RegistrationFile, type RegistrationFileParams, RegistryAuthorityUpdated, RegistryAuthorityUpdatedArgs, RegistryConfig, RegistryConfigArgs, RegistryInitialized, RegistryInitializedArgs, type ReputationScoreContent, type ReputationScoreData, SASDeploymentResult, SAS_DATA_LEN_OFFSET, SAS_HEADER_SIZE, SAS_PROGRAM_ADDRESS, SATIClientOptions, type SATILightClient, SATILightClientImpl, SATISASConfig, SATI_ATTESTATION_SEED, SATI_CHAIN_ID, SATI_ERROR__AGENT_ATA_EMPTY, SATI_ERROR__AGENT_ATA_MINT_MISMATCH, SATI_ERROR__AGENT_ATA_REQUIRED, SATI_ERROR__AGENT_MINT_ACCOUNT_MISMATCH, SATI_ERROR__AGENT_MINT_MISMATCH, SATI_ERROR__AGENT_SIGNATURE_NOT_FOUND, SATI_ERROR__ATTESTATION_DATA_TOO_LARGE, SATI_ERROR__ATTESTATION_DATA_TOO_SMALL, SATI_ERROR__ATTESTATION_NOT_CLOSEABLE, SATI_ERROR__CONTENT_TOO_LARGE, SATI_ERROR__COUNTERPARTY_SIGNATURE_NOT_FOUND, SATI_ERROR__DELEGATE_MISMATCH, SATI_ERROR__DELEGATION_ATTESTATION_REQUIRED, SATI_ERROR__DELEGATION_EXPIRED, SATI_ERROR__DELEGATION_OWNER_MISMATCH, SATI_ERROR__DUPLICATE_SIGNERS, SATI_ERROR__ED25519_INSTRUCTION_NOT_FOUND, SATI_ERROR__EVM_ADDRESS_MISMATCH, SATI_ERROR__IMMUTABLE_AUTHORITY, SATI_ERROR__INVALID_AUTHORITY, SATI_ERROR__INVALID_CONTENT_TYPE, SATI_ERROR__INVALID_DELEGATION_P_D_A, SATI_ERROR__INVALID_ED25519_INSTRUCTION, SATI_ERROR__INVALID_EVM_ADDRESS_RECOVERY, SATI_ERROR__INVALID_GROUP_MINT, SATI_ERROR__INVALID_INSTRUCTIONS_SYSVAR, SATI_ERROR__INVALID_OUTCOME, SATI_ERROR__INVALID_SECP256K1_SIGNATURE, SATI_ERROR__INVALID_SIGNATURE, SATI_ERROR__INVALID_SIGNATURE_COUNT, SATI_ERROR__LIGHT_CPI_INVOCATION_FAILED, SATI_ERROR__MESSAGE_MISMATCH, SATI_ERROR__METADATA_KEY_TOO_LONG, SATI_ERROR__METADATA_VALUE_TOO_LONG, SATI_ERROR__MINT_AUTHORITY_NOT_RENOUNCED, SATI_ERROR__MISSING_SIGNATURES, SATI_ERROR__NAME_TOO_LONG, SATI_ERROR__OVERFLOW, SATI_ERROR__OWNER_ONLY, SATI_ERROR__SCHEMA_CONFIG_NOT_FOUND, SATI_ERROR__SECP256K1_RECOVERY_FAILED, SATI_ERROR__SELF_ATTESTATION_NOT_ALLOWED, SATI_ERROR__SIGNATURE_MISMATCH, SATI_ERROR__STORAGE_TYPE_MISMATCH, SATI_ERROR__STORAGE_TYPE_NOT_SUPPORTED, SATI_ERROR__SYMBOL_TOO_LONG, SATI_ERROR__TOO_MANY_METADATA_ENTRIES, SATI_ERROR__UNAUTHORIZED_CLOSE, SATI_ERROR__UNSUPPORTED_LAYOUT_VERSION, SATI_ERROR__URI_TOO_LONG, SATI_PROGRAM_ADDRESS, SATI_PROGRAM_ID, SCHEMA_CONFIG_DISCRIMINATOR, SCHEMA_SEED, SOLANA_CHAIN_REFS, Sati, SatiAccount, SatiError, type SatiErrorCode, SatiInstruction, SchemaConfig, SchemaConfigArgs, SchemaConfigRegistered, SchemaConfigRegisteredArgs, SchemaDeploymentStatus, SchemaNotFoundError, type SignatureInput, SignatureMode, SignatureModeArgs, SignatureVerificationResult, SigningMessage, SolanaNetwork, StorageType, StorageTypeArgs, TAG_SIZE, TOKEN_2022_PROGRAM_ADDRESS, type TrustMechanism, UPDATE_REGISTRY_AUTHORITY_DISCRIMINATOR, UpdateAgentMetadataParams, UpdateAgentMetadataResult, UpdateRegistryAuthorityAsyncInput, UpdateRegistryAuthorityInput, UpdateRegistryAuthorityInstruction, UpdateRegistryAuthorityInstructionData, UpdateRegistryAuthorityInstructionDataArgs, type UpdateReputationScoreParams, VALIDATION_OFFSETS, type ValidationContent, type ValidationData, ValidationType, ValidityProof, ValidityProofArgs, type ValidityProofResult, address, addressToBytes, buildCounterpartyMessage, buildFeedbackSigningMessage, buildRegistrationFile, buildSatiRegistrationEntry, bytesToAddress, computeAttestationNonce, computeDataHash, computeDataHashFromHashes, computeDataHashFromStrings, computeEvmLinkHash, computeInteractionHash, computeReputationNonce, createBatchEd25519Instruction, createEd25519Instruction, createJsonContent, createPinataUploader, createSATILightClient, decodeAgentIndex, decodeRegistryConfig, decodeSchemaConfig, decryptContent, deriveEncryptionKeypair, deriveEncryptionPublicKey, deriveReputationAttestationPda, deriveReputationSchemaPda, deriveSasEventAuthorityPda, deriveSatiPda, deriveSatiProgramCredentialPda, deserializeEncryptedPayload, deserializeFeedback, deserializeReputationScore, deserializeUniversalLayout, deserializeValidation, duplicateAttestationMessage, encryptContent, fetchAgentIndex, fetchAllAgentIndex, fetchAllMaybeAgentIndex, fetchAllMaybeRegistryConfig, fetchAllMaybeSchemaConfig, fetchAllRegistryConfig, fetchAllSchemaConfig, fetchMaybeAgentIndex, fetchMaybeRegistryConfig, fetchMaybeSchemaConfig, fetchRegistrationFile, fetchRegistryConfig, fetchSchemaConfig, findAgentIndexPda, findAssociatedTokenAddress, findRegistryConfigPda, findSchemaConfigPda, formatCaip10, getAgentIndexCodec, getAgentIndexDecoder, getAgentIndexDiscriminatorBytes, getAgentIndexEncoder, getAgentIndexSize, getAgentRegisteredCodec, getAgentRegisteredDecoder, getAgentRegisteredEncoder, getAttestationClosedCodec, getAttestationClosedDecoder, getAttestationClosedEncoder, getAttestationCreatedCodec, getAttestationCreatedDecoder, getAttestationCreatedEncoder, getCloseCompressedAttestationDiscriminatorBytes, getCloseCompressedAttestationInstruction, getCloseCompressedAttestationInstructionAsync, getCloseCompressedAttestationInstructionDataCodec, getCloseCompressedAttestationInstructionDataDecoder, getCloseCompressedAttestationInstructionDataEncoder, getCloseRegularAttestationDiscriminatorBytes, getCloseRegularAttestationInstruction, getCloseRegularAttestationInstructionAsync, getCloseRegularAttestationInstructionDataCodec, getCloseRegularAttestationInstructionDataDecoder, getCloseRegularAttestationInstructionDataEncoder, getCompressedAccountMetaCodec, getCompressedAccountMetaDecoder, getCompressedAccountMetaEncoder, getCompressedProofCodec, getCompressedProofDecoder, getCompressedProofEncoder, getContentTypeLabel, getCreateCompressedAttestationDiscriminatorBytes, getCreateCompressedAttestationInstruction, getCreateCompressedAttestationInstructionAsync, getCreateCompressedAttestationInstructionDataCodec, getCreateCompressedAttestationInstructionDataDecoder, getCreateCompressedAttestationInstructionDataEncoder, getCreateRegularAttestationDiscriminatorBytes, getCreateRegularAttestationInstruction, getCreateRegularAttestationInstructionAsync, getCreateRegularAttestationInstructionDataCodec, getCreateRegularAttestationInstructionDataDecoder, getCreateRegularAttestationInstructionDataEncoder, getDeployedNetworks, getEvmAddressLinkedCodec, getEvmAddressLinkedDecoder, getEvmAddressLinkedEncoder, getImageUrl, getInitializeDiscriminatorBytes, getInitializeInstruction, getInitializeInstructionAsync, getInitializeInstructionDataCodec, getInitializeInstructionDataDecoder, getInitializeInstructionDataEncoder, getLinkEvmAddressDiscriminatorBytes, getLinkEvmAddressInstruction, getLinkEvmAddressInstructionAsync, getLinkEvmAddressInstructionDataCodec, getLinkEvmAddressInstructionDataDecoder, getLinkEvmAddressInstructionDataEncoder, getMaxContentSize, getMetadataEntryCodec, getMetadataEntryDecoder, getMetadataEntryEncoder, getOutcomeLabel, getPackedAddressTreeInfoCodec, getPackedAddressTreeInfoDecoder, getPackedAddressTreeInfoEncoder, getPackedStateTreeInfoCodec, getPackedStateTreeInfoDecoder, getPackedStateTreeInfoEncoder, getRegisterAgentDiscriminatorBytes, getRegisterAgentInstruction, getRegisterAgentInstructionAsync, getRegisterAgentInstructionDataCodec, getRegisterAgentInstructionDataDecoder, getRegisterAgentInstructionDataEncoder, getRegisterSchemaConfigDiscriminatorBytes, getRegisterSchemaConfigInstruction, getRegisterSchemaConfigInstructionAsync, getRegisterSchemaConfigInstructionDataCodec, getRegisterSchemaConfigInstructionDataDecoder, getRegisterSchemaConfigInstructionDataEncoder, getRegistryAuthorityUpdatedCodec, getRegistryAuthorityUpdatedDecoder, getRegistryAuthorityUpdatedEncoder, getRegistryConfigCodec, getRegistryConfigDecoder, getRegistryConfigDiscriminatorBytes, getRegistryConfigEncoder, getRegistryConfigSize, getRegistryInitializedCodec, getRegistryInitializedDecoder, getRegistryInitializedEncoder, getSatiAgentIds, getSatiErrorMessage, getSchemaConfigCodec, getSchemaConfigDecoder, getSchemaConfigDiscriminatorBytes, getSchemaConfigEncoder, getSchemaConfigRegisteredCodec, getSchemaConfigRegisteredDecoder, getSchemaConfigRegisteredEncoder, getSignatureModeCodec, getSignatureModeDecoder, getSignatureModeEncoder, getStorageTypeCodec, getStorageTypeDecoder, getStorageTypeEncoder, getUpdateRegistryAuthorityDiscriminatorBytes, getUpdateRegistryAuthorityInstruction, getUpdateRegistryAuthorityInstructionAsync, getUpdateRegistryAuthorityInstructionDataCodec, getUpdateRegistryAuthorityInstructionDataDecoder, getUpdateRegistryAuthorityInstructionDataEncoder, getValidityProofCodec, getValidityProofDecoder, getValidityProofEncoder, handleTransactionError, hasDeployedConfig, hasSatiRegistration, identifySatiAccount, identifySatiInstruction, inferMimeType, isSatiError, loadDeployedConfig, networkErrorMessage, outcomeToScore, parseCloseCompressedAttestationInstruction, parseCloseRegularAttestationInstruction, parseCreateCompressedAttestationInstruction, parseCreateRegularAttestationInstruction, parseFeedbackContent, parseInitializeInstruction, parseLinkEvmAddressInstruction, parseRegisterAgentInstruction, parseRegisterSchemaConfigInstruction, parseReputationScoreContent, parseUpdateRegistryAuthorityInstruction, parseValidationContent, serializeEncryptedPayload, serializeFeedback, serializeReputationScore, serializeUniversalLayout, serializeValidation, stringifyRegistrationFile, transactionExpiredMessage, transactionFailedMessage, validateBaseLayout, validateContentSize, validateReputationScoreContent, walletDisconnectedMessage, walletRejectedMessage, zeroDataHash };
|
|
4455
|
+
export { AGENT_INDEX_DISCRIMINATOR, ASSOCIATED_TOKEN_PROGRAM_ADDRESS, ATTESTATION_SEED, type AccountMeta, type Address, AgentIdentity, AgentIndex, AgentIndexArgs, AgentMint, AgentNotFoundError, AgentRegistered, AgentRegisteredArgs, type AgentSearchOptions, type AgentSearchResult, AttestationClosed, AttestationClosedArgs, AttestationCreated, AttestationCreatedArgs, type AttestationFilter, type AttestationResult, AttestationWithProof, BASE_OFFSETS, type BaseLayout, type BuildFeedbackParams, type BuiltTransaction, CLOSE_COMPRESSED_ATTESTATION_DISCRIMINATOR, CLOSE_REGULAR_ATTESTATION_DISCRIMINATOR, COMPRESSED_OFFSETS, CREATE_COMPRESSED_ATTESTATION_DISCRIMINATOR, CREATE_REGULAR_ATTESTATION_DISCRIMINATOR, CREDENTIAL_SEED, CloseAttestationResult, CloseCompressedAttestationAsyncInput, CloseCompressedAttestationInput, CloseCompressedAttestationInstruction, CloseCompressedAttestationInstructionData, CloseCompressedAttestationInstructionDataArgs, CloseCompressedAttestationParams, CloseRegularAttestationAsyncInput, CloseRegularAttestationInput, CloseRegularAttestationInstruction, CloseRegularAttestationInstructionData, CloseRegularAttestationInstructionDataArgs, CloseRegularAttestationParams, CompressedAccountMeta, CompressedAccountMetaArgs, type CompressedAttestation, CompressedProof, CompressedProofArgs, type ContentSizeValidationOptions, type ContentSizeValidationResult, ContentType, CounterpartyMessageParams, CreateCompressedAttestationAsyncInput, CreateCompressedAttestationInput, CreateCompressedAttestationInstruction, CreateCompressedAttestationInstructionData, CreateCompressedAttestationInstructionDataArgs, type CreateFeedbackParams, CreateRegularAttestationAsyncInput, CreateRegularAttestationInput, CreateRegularAttestationInstruction, CreateRegularAttestationInstructionData, CreateRegularAttestationInstructionDataArgs, type CreateReputationScoreParams, type CreateValidationParams, type CreationProofResult, DOMAINS, DataType, DeployedSASConfig, DuplicateAttestationError, ED25519_PROGRAM_ADDRESS, ENCRYPTION_VERSION, Ed25519Instruction, Ed25519SignatureParams, type EncryptedPayload, type EncryptionKeypair, type Endpoint, EvmAddressLink, EvmAddressLinked, EvmAddressLinkedArgs, FEEDBACK_OFFSETS, type FailedReason, type FailedResult, FeedbackCache, type FeedbackContent, type FeedbackData, type FeedbackSearchOptions, FeedbackSigningMessage, FeedbackSigningParams, type GiveFeedbackParams, type GiveFeedbackResult, INITIALIZE_DISCRIMINATOR, InitializeAsyncInput, InitializeInput, InitializeInstruction, InitializeInstructionData, InitializeInstructionDataArgs, LIGHT_ERROR_CODES, LINK_EVM_ADDRESS_DISCRIMINATOR, LinkEvmAddressAsyncInput, LinkEvmAddressInput, LinkEvmAddressInstruction, LinkEvmAddressInstructionData, LinkEvmAddressInstructionDataArgs, LinkEvmAddressParams, LinkEvmAddressResult, MAX_CONTENT_SIZE, MAX_DUAL_SIGNATURE_CONTENT_SIZE, MAX_PLAINTEXT_SIZE, MAX_SINGLE_SIGNATURE_CONTENT_SIZE, MIN_BASE_LAYOUT_SIZE, MIN_ENCRYPTED_SIZE, MerkleProofWithContext, MetadataEntry, MetadataEntryArgs, type MetadataUploader, type MutationProofResult, NONCE_SIZE, OFFSETS, Outcome, PRIVKEY_SIZE, PUBKEY_SIZE, type PackedAddressTreeInfo, PackedAddressTreeInfoArgs, type PackedStateTreeInfo, PackedStateTreeInfoArgs, type PaginatedAttestations, type ParsedAttestation, ParsedCloseCompressedAttestationInstruction, ParsedCloseRegularAttestationInstruction, ParsedCreateCompressedAttestationInstruction, ParsedCreateRegularAttestationInstruction, type ParsedFeedback, type ParsedFeedbackAttestation, ParsedInitializeInstruction, ParsedLinkEvmAddressInstruction, ParsedRegisterAgentInstruction, ParsedRegisterSchemaConfigInstruction, ParsedSatiInstruction, ParsedUpdateRegistryAuthorityInstruction, type ParsedValidation, type ParsedValidationAttestation, type PreparedFeedbackData, type Properties, type PropertyFile, type PublicKeyLike, REGISTER_AGENT_DISCRIMINATOR, REGISTER_SCHEMA_CONFIG_DISCRIMINATOR, REGISTRY_CONFIG_DISCRIMINATOR, REPUTATION_SCHEMA_NAME, REPUTATION_SCHEMA_VERSION, REPUTATION_SCORE_OFFSETS, RegisterAgentAsyncInput, RegisterAgentInput, RegisterAgentInstruction, RegisterAgentInstructionData, RegisterAgentInstructionDataArgs, RegisterAgentResult, RegisterSchemaConfigAsyncInput, RegisterSchemaConfigInput, RegisterSchemaConfigInstruction, RegisterSchemaConfigInstructionData, RegisterSchemaConfigInstructionDataArgs, type RegistrationEntry, type RegistrationFile, type RegistrationFileParams, RegistryAuthorityUpdated, RegistryAuthorityUpdatedArgs, RegistryConfig, RegistryConfigArgs, RegistryInitialized, RegistryInitializedArgs, type ReputationScoreContent, type ReputationScoreData, type ReputationSummary, SASDeploymentResult, SAS_DATA_LEN_OFFSET, SAS_HEADER_SIZE, SAS_PROGRAM_ADDRESS, SATIClientOptions, type SATILightClient, SATILightClientImpl, SATISASConfig, SATI_ATTESTATION_SEED, SATI_CHAIN_ID, SATI_ERROR__AGENT_ATA_EMPTY, SATI_ERROR__AGENT_ATA_MINT_MISMATCH, SATI_ERROR__AGENT_ATA_REQUIRED, SATI_ERROR__AGENT_MINT_ACCOUNT_MISMATCH, SATI_ERROR__AGENT_MINT_MISMATCH, SATI_ERROR__AGENT_SIGNATURE_NOT_FOUND, SATI_ERROR__ATTESTATION_DATA_TOO_LARGE, SATI_ERROR__ATTESTATION_DATA_TOO_SMALL, SATI_ERROR__ATTESTATION_NOT_CLOSEABLE, SATI_ERROR__CONTENT_TOO_LARGE, SATI_ERROR__COUNTERPARTY_SIGNATURE_NOT_FOUND, SATI_ERROR__DELEGATE_MISMATCH, SATI_ERROR__DELEGATION_ATTESTATION_REQUIRED, SATI_ERROR__DELEGATION_EXPIRED, SATI_ERROR__DELEGATION_OWNER_MISMATCH, SATI_ERROR__DUPLICATE_SIGNERS, SATI_ERROR__ED25519_INSTRUCTION_NOT_FOUND, SATI_ERROR__EVM_ADDRESS_MISMATCH, SATI_ERROR__IMMUTABLE_AUTHORITY, SATI_ERROR__INVALID_AUTHORITY, SATI_ERROR__INVALID_CONTENT_TYPE, SATI_ERROR__INVALID_DELEGATION_P_D_A, SATI_ERROR__INVALID_ED25519_INSTRUCTION, SATI_ERROR__INVALID_EVM_ADDRESS_RECOVERY, SATI_ERROR__INVALID_GROUP_MINT, SATI_ERROR__INVALID_INSTRUCTIONS_SYSVAR, SATI_ERROR__INVALID_OUTCOME, SATI_ERROR__INVALID_SECP256K1_SIGNATURE, SATI_ERROR__INVALID_SIGNATURE, SATI_ERROR__INVALID_SIGNATURE_COUNT, SATI_ERROR__LIGHT_CPI_INVOCATION_FAILED, SATI_ERROR__MESSAGE_MISMATCH, SATI_ERROR__METADATA_KEY_TOO_LONG, SATI_ERROR__METADATA_VALUE_TOO_LONG, SATI_ERROR__MINT_AUTHORITY_NOT_RENOUNCED, SATI_ERROR__MISSING_SIGNATURES, SATI_ERROR__NAME_TOO_LONG, SATI_ERROR__OVERFLOW, SATI_ERROR__OWNER_ONLY, SATI_ERROR__SCHEMA_CONFIG_NOT_FOUND, SATI_ERROR__SECP256K1_RECOVERY_FAILED, SATI_ERROR__SELF_ATTESTATION_NOT_ALLOWED, SATI_ERROR__SIGNATURE_MISMATCH, SATI_ERROR__STORAGE_TYPE_MISMATCH, SATI_ERROR__STORAGE_TYPE_NOT_SUPPORTED, SATI_ERROR__SYMBOL_TOO_LONG, SATI_ERROR__TOO_MANY_METADATA_ENTRIES, SATI_ERROR__UNAUTHORIZED_CLOSE, SATI_ERROR__UNSUPPORTED_LAYOUT_VERSION, SATI_ERROR__URI_TOO_LONG, SATI_PROGRAM_ADDRESS, SATI_PROGRAM_ID, SCHEMA_CONFIG_DISCRIMINATOR, SCHEMA_SEED, SOLANA_CHAIN_REFS, Sati, SatiAccount, SatiAgentBuilder, SatiError, type SatiErrorCode, SatiInstruction, SatiWarning, SchemaConfig, SchemaConfigArgs, SchemaConfigRegistered, SchemaConfigRegisteredArgs, SchemaDeploymentStatus, SchemaNotFoundError, type SignatureInput, SignatureMode, SignatureModeArgs, SignatureVerificationResult, SigningMessage, SolanaNetwork, StorageType, StorageTypeArgs, TAG_SIZE, TOKEN_2022_PROGRAM_ADDRESS, type TrustMechanism, UPDATE_REGISTRY_AUTHORITY_DISCRIMINATOR, UpdateAgentMetadataParams, UpdateAgentMetadataResult, UpdateRegistryAuthorityAsyncInput, UpdateRegistryAuthorityInput, UpdateRegistryAuthorityInstruction, UpdateRegistryAuthorityInstructionData, UpdateRegistryAuthorityInstructionDataArgs, type UpdateReputationScoreParams, VALIDATION_OFFSETS, type ValidationContent, type ValidationData, ValidationType, ValidityProof, ValidityProofArgs, type ValidityProofResult, address, addressToBytes, buildCounterpartyMessage, buildFeedbackSigningMessage, buildRegistrationFile, buildSatiRegistrationEntry, bytesToAddress, computeAttestationNonce, computeDataHash, computeDataHashFromHashes, computeDataHashFromStrings, computeEvmLinkHash, computeInteractionHash, computeReputationNonce, createBatchEd25519Instruction, createEd25519Instruction, createJsonContent, createPinataUploader, createSATILightClient, createSatiUploader, decodeAgentIndex, decodeRegistryConfig, decodeSchemaConfig, decryptContent, deriveEncryptionKeypair, deriveEncryptionPublicKey, deriveReputationAttestationPda, deriveReputationSchemaPda, deriveSasEventAuthorityPda, deriveSatiPda, deriveSatiProgramCredentialPda, deserializeEncryptedPayload, deserializeFeedback, deserializeReputationScore, deserializeUniversalLayout, deserializeValidation, duplicateAttestationMessage, encryptContent, fetchAgentIndex, fetchAllAgentIndex, fetchAllMaybeAgentIndex, fetchAllMaybeRegistryConfig, fetchAllMaybeSchemaConfig, fetchAllRegistryConfig, fetchAllSchemaConfig, fetchMaybeAgentIndex, fetchMaybeRegistryConfig, fetchMaybeSchemaConfig, fetchRegistrationFile, fetchRegistryConfig, fetchSchemaConfig, findAgentIndexPda, findAssociatedTokenAddress, findRegistryConfigPda, findSchemaConfigPda, formatCaip10, getAgentIndexCodec, getAgentIndexDecoder, getAgentIndexDiscriminatorBytes, getAgentIndexEncoder, getAgentIndexSize, getAgentRegisteredCodec, getAgentRegisteredDecoder, getAgentRegisteredEncoder, getAttestationClosedCodec, getAttestationClosedDecoder, getAttestationClosedEncoder, getAttestationCreatedCodec, getAttestationCreatedDecoder, getAttestationCreatedEncoder, getCloseCompressedAttestationDiscriminatorBytes, getCloseCompressedAttestationInstruction, getCloseCompressedAttestationInstructionAsync, getCloseCompressedAttestationInstructionDataCodec, getCloseCompressedAttestationInstructionDataDecoder, getCloseCompressedAttestationInstructionDataEncoder, getCloseRegularAttestationDiscriminatorBytes, getCloseRegularAttestationInstruction, getCloseRegularAttestationInstructionAsync, getCloseRegularAttestationInstructionDataCodec, getCloseRegularAttestationInstructionDataDecoder, getCloseRegularAttestationInstructionDataEncoder, getCompressedAccountMetaCodec, getCompressedAccountMetaDecoder, getCompressedAccountMetaEncoder, getCompressedProofCodec, getCompressedProofDecoder, getCompressedProofEncoder, getContentTypeLabel, getCreateCompressedAttestationDiscriminatorBytes, getCreateCompressedAttestationInstruction, getCreateCompressedAttestationInstructionAsync, getCreateCompressedAttestationInstructionDataCodec, getCreateCompressedAttestationInstructionDataDecoder, getCreateCompressedAttestationInstructionDataEncoder, getCreateRegularAttestationDiscriminatorBytes, getCreateRegularAttestationInstruction, getCreateRegularAttestationInstructionAsync, getCreateRegularAttestationInstructionDataCodec, getCreateRegularAttestationInstructionDataDecoder, getCreateRegularAttestationInstructionDataEncoder, getDeployedNetworks, getEvmAddressLinkedCodec, getEvmAddressLinkedDecoder, getEvmAddressLinkedEncoder, getImageUrl, getInitializeDiscriminatorBytes, getInitializeInstruction, getInitializeInstructionAsync, getInitializeInstructionDataCodec, getInitializeInstructionDataDecoder, getInitializeInstructionDataEncoder, getLinkEvmAddressDiscriminatorBytes, getLinkEvmAddressInstruction, getLinkEvmAddressInstructionAsync, getLinkEvmAddressInstructionDataCodec, getLinkEvmAddressInstructionDataDecoder, getLinkEvmAddressInstructionDataEncoder, getMaxContentSize, getMetadataEntryCodec, getMetadataEntryDecoder, getMetadataEntryEncoder, getOutcomeLabel, getPackedAddressTreeInfoCodec, getPackedAddressTreeInfoDecoder, getPackedAddressTreeInfoEncoder, getPackedStateTreeInfoCodec, getPackedStateTreeInfoDecoder, getPackedStateTreeInfoEncoder, getRegisterAgentDiscriminatorBytes, getRegisterAgentInstruction, getRegisterAgentInstructionAsync, getRegisterAgentInstructionDataCodec, getRegisterAgentInstructionDataDecoder, getRegisterAgentInstructionDataEncoder, getRegisterSchemaConfigDiscriminatorBytes, getRegisterSchemaConfigInstruction, getRegisterSchemaConfigInstructionAsync, getRegisterSchemaConfigInstructionDataCodec, getRegisterSchemaConfigInstructionDataDecoder, getRegisterSchemaConfigInstructionDataEncoder, getRegistryAuthorityUpdatedCodec, getRegistryAuthorityUpdatedDecoder, getRegistryAuthorityUpdatedEncoder, getRegistryConfigCodec, getRegistryConfigDecoder, getRegistryConfigDiscriminatorBytes, getRegistryConfigEncoder, getRegistryConfigSize, getRegistryInitializedCodec, getRegistryInitializedDecoder, getRegistryInitializedEncoder, getSatiAgentIds, getSatiErrorMessage, getSchemaConfigCodec, getSchemaConfigDecoder, getSchemaConfigDiscriminatorBytes, getSchemaConfigEncoder, getSchemaConfigRegisteredCodec, getSchemaConfigRegisteredDecoder, getSchemaConfigRegisteredEncoder, getSignatureModeCodec, getSignatureModeDecoder, getSignatureModeEncoder, getStorageTypeCodec, getStorageTypeDecoder, getStorageTypeEncoder, getUpdateRegistryAuthorityDiscriminatorBytes, getUpdateRegistryAuthorityInstruction, getUpdateRegistryAuthorityInstructionAsync, getUpdateRegistryAuthorityInstructionDataCodec, getUpdateRegistryAuthorityInstructionDataDecoder, getUpdateRegistryAuthorityInstructionDataEncoder, getValidityProofCodec, getValidityProofDecoder, getValidityProofEncoder, handleTransactionError, hasDeployedConfig, hasSatiRegistration, identifySatiAccount, identifySatiInstruction, inferMimeType, isSatiError, loadDeployedConfig, networkErrorMessage, outcomeToScore, parseCloseCompressedAttestationInstruction, parseCloseRegularAttestationInstruction, parseCreateCompressedAttestationInstruction, parseCreateRegularAttestationInstruction, parseFeedbackContent, parseInitializeInstruction, parseLinkEvmAddressInstruction, parseRegisterAgentInstruction, parseRegisterSchemaConfigInstruction, parseReputationScoreContent, parseUpdateRegistryAuthorityInstruction, parseValidationContent, serializeEncryptedPayload, serializeFeedback, serializeReputationScore, serializeUniversalLayout, serializeValidation, stringifyRegistrationFile, transactionExpiredMessage, transactionFailedMessage, validateBaseLayout, validateContentSize, validateReputationScoreContent, walletDisconnectedMessage, walletRejectedMessage, zeroDataHash };
|
|
4033
4456
|
//# sourceMappingURL=index.d.cts.map
|