@cascade-fyi/sati-sdk 0.4.2 → 0.6.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 +33 -0
- package/README.md +43 -0
- package/dist/index.cjs +330 -213
- package/dist/index.d.cts +240 -161
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +240 -161
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +329 -214
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -2814,6 +2814,63 @@ declare function serializeEncryptedPayload(payload: EncryptedPayload): Uint8Arra
|
|
|
2814
2814
|
*/
|
|
2815
2815
|
declare function deserializeEncryptedPayload(bytes: Uint8Array): EncryptedPayload;
|
|
2816
2816
|
//#endregion
|
|
2817
|
+
//#region src/uploaders.d.ts
|
|
2818
|
+
/**
|
|
2819
|
+
* Metadata upload abstractions for decentralized storage.
|
|
2820
|
+
*
|
|
2821
|
+
* Provides a pluggable `MetadataUploader` interface so consumers can
|
|
2822
|
+
* bring their own storage provider (Pinata, Arweave, local IPFS node, etc.).
|
|
2823
|
+
* A built-in Pinata implementation is included for convenience.
|
|
2824
|
+
*
|
|
2825
|
+
* @example
|
|
2826
|
+
* ```typescript
|
|
2827
|
+
* import { createPinataUploader, buildRegistrationFile } from "@cascade-fyi/sati-sdk";
|
|
2828
|
+
*
|
|
2829
|
+
* const uploader = createPinataUploader(process.env.PINATA_JWT!);
|
|
2830
|
+
* const regFile = buildRegistrationFile({ name: "MyAgent", description: "...", image: "https://..." });
|
|
2831
|
+
* const uri = await uploader.upload(regFile);
|
|
2832
|
+
* ```
|
|
2833
|
+
*/
|
|
2834
|
+
/**
|
|
2835
|
+
* Provider-agnostic interface for uploading metadata JSON to decentralized storage.
|
|
2836
|
+
*
|
|
2837
|
+
* Implement this interface to use a custom storage provider with SATI.
|
|
2838
|
+
*/
|
|
2839
|
+
interface MetadataUploader {
|
|
2840
|
+
/** Upload JSON-serializable data and return a URI (e.g. `ipfs://Qm...`, `ar://...`). */
|
|
2841
|
+
upload(data: unknown): Promise<string>;
|
|
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;
|
|
2859
|
+
/**
|
|
2860
|
+
* Create a Pinata IPFS uploader using the v3 Files API.
|
|
2861
|
+
*
|
|
2862
|
+
* @param jwt - Pinata API JWT token (requires `files:write` permission)
|
|
2863
|
+
* @returns MetadataUploader that pins JSON to public IPFS via Pinata
|
|
2864
|
+
*
|
|
2865
|
+
* @example
|
|
2866
|
+
* ```typescript
|
|
2867
|
+
* const uploader = createPinataUploader(process.env.PINATA_JWT!);
|
|
2868
|
+
* const uri = await uploader.upload({ name: "MyAgent" });
|
|
2869
|
+
* // "ipfs://QmXyz..."
|
|
2870
|
+
* ```
|
|
2871
|
+
*/
|
|
2872
|
+
declare function createPinataUploader(jwt: string): MetadataUploader;
|
|
2873
|
+
//#endregion
|
|
2817
2874
|
//#region src/types.d.ts
|
|
2818
2875
|
/**
|
|
2819
2876
|
* Agent mint address type alias for clarity.
|
|
@@ -3102,6 +3159,172 @@ declare function hasDeployedConfig(network: string): boolean;
|
|
|
3102
3159
|
*/
|
|
3103
3160
|
declare function getDeployedNetworks(): string[];
|
|
3104
3161
|
//#endregion
|
|
3162
|
+
//#region src/registration.d.ts
|
|
3163
|
+
/**
|
|
3164
|
+
* SATI Registration File
|
|
3165
|
+
*
|
|
3166
|
+
* Helpers for building, fetching, and working with ERC-8004 + Phantom
|
|
3167
|
+
* compatible registration files.
|
|
3168
|
+
*
|
|
3169
|
+
* @example
|
|
3170
|
+
* ```typescript
|
|
3171
|
+
* import {
|
|
3172
|
+
* buildRegistrationFile,
|
|
3173
|
+
* fetchRegistrationFile,
|
|
3174
|
+
* getImageUrl,
|
|
3175
|
+
* } from "@cascade-fyi/sati-sdk";
|
|
3176
|
+
*
|
|
3177
|
+
* // Build a registration file
|
|
3178
|
+
* const file = buildRegistrationFile({
|
|
3179
|
+
* name: "MyAgent",
|
|
3180
|
+
* description: "AI assistant",
|
|
3181
|
+
* image: "https://example.com/avatar.png",
|
|
3182
|
+
* });
|
|
3183
|
+
*
|
|
3184
|
+
* // Fetch from URI
|
|
3185
|
+
* const metadata = await fetchRegistrationFile(uri);
|
|
3186
|
+
* const imageUrl = getImageUrl(metadata);
|
|
3187
|
+
* ```
|
|
3188
|
+
*/
|
|
3189
|
+
/** File entry for Phantom/Metaplex wallet display */
|
|
3190
|
+
interface PropertyFile {
|
|
3191
|
+
uri: string;
|
|
3192
|
+
type: string;
|
|
3193
|
+
}
|
|
3194
|
+
/** Properties object for wallet compatibility */
|
|
3195
|
+
interface Properties {
|
|
3196
|
+
files: PropertyFile[];
|
|
3197
|
+
category?: "image" | "video" | "audio";
|
|
3198
|
+
}
|
|
3199
|
+
/** Service endpoint (ERC-8004) */
|
|
3200
|
+
interface Endpoint {
|
|
3201
|
+
name: string;
|
|
3202
|
+
endpoint: string;
|
|
3203
|
+
version?: string;
|
|
3204
|
+
mcpTools?: string[];
|
|
3205
|
+
mcpPrompts?: string[];
|
|
3206
|
+
mcpResources?: string[];
|
|
3207
|
+
a2aSkills?: string[];
|
|
3208
|
+
skills?: string[];
|
|
3209
|
+
domains?: string[];
|
|
3210
|
+
}
|
|
3211
|
+
/** Cross-chain registration entry (ERC-8004) */
|
|
3212
|
+
interface RegistrationEntry {
|
|
3213
|
+
agentId: string | number;
|
|
3214
|
+
agentRegistry: string;
|
|
3215
|
+
}
|
|
3216
|
+
/** Trust mechanism type */
|
|
3217
|
+
type TrustMechanism = "reputation" | "crypto-economic" | "tee-attestation";
|
|
3218
|
+
/**
|
|
3219
|
+
* Registration file schema (ERC-8004 + Phantom compatible)
|
|
3220
|
+
*
|
|
3221
|
+
* This is the off-chain JSON document referenced by the on-chain `uri` field.
|
|
3222
|
+
*/
|
|
3223
|
+
interface RegistrationFile {
|
|
3224
|
+
/** Schema type identifier */
|
|
3225
|
+
type: "https://eips.ethereum.org/EIPS/eip-8004#registration-v1";
|
|
3226
|
+
/** Agent name */
|
|
3227
|
+
name: string;
|
|
3228
|
+
/** Agent description */
|
|
3229
|
+
description: string;
|
|
3230
|
+
/** Primary image URL */
|
|
3231
|
+
image: string;
|
|
3232
|
+
/** Properties for wallet display (required for Phantom) */
|
|
3233
|
+
properties: Properties;
|
|
3234
|
+
/** Project website URL */
|
|
3235
|
+
external_url?: string;
|
|
3236
|
+
/** Service endpoints (A2A, MCP, agentWallet) */
|
|
3237
|
+
endpoints?: Endpoint[];
|
|
3238
|
+
/** Cross-chain registration entries */
|
|
3239
|
+
registrations?: RegistrationEntry[];
|
|
3240
|
+
/** Supported trust mechanisms */
|
|
3241
|
+
supportedTrust?: TrustMechanism[];
|
|
3242
|
+
/** Agent operational status */
|
|
3243
|
+
active?: boolean;
|
|
3244
|
+
/** Accepts x402 payments */
|
|
3245
|
+
x402support?: boolean;
|
|
3246
|
+
}
|
|
3247
|
+
/** Input parameters for buildRegistrationFile */
|
|
3248
|
+
interface RegistrationFileParams {
|
|
3249
|
+
name: string;
|
|
3250
|
+
description: string;
|
|
3251
|
+
image: string;
|
|
3252
|
+
imageMimeType?: string;
|
|
3253
|
+
externalUrl?: string;
|
|
3254
|
+
endpoints?: Endpoint[];
|
|
3255
|
+
registrations?: RegistrationEntry[];
|
|
3256
|
+
supportedTrust?: TrustMechanism[];
|
|
3257
|
+
active?: boolean;
|
|
3258
|
+
x402support?: boolean;
|
|
3259
|
+
}
|
|
3260
|
+
/**
|
|
3261
|
+
* Infer MIME type from image URL extension.
|
|
3262
|
+
* Returns "image/png" as default if unrecognized.
|
|
3263
|
+
*/
|
|
3264
|
+
declare function inferMimeType(url: string): string;
|
|
3265
|
+
/**
|
|
3266
|
+
* Build a registration file from parameters.
|
|
3267
|
+
*
|
|
3268
|
+
* Automatically:
|
|
3269
|
+
* - Sets the ERC-8004 type identifier
|
|
3270
|
+
* - Generates properties.files from image URL
|
|
3271
|
+
* - Infers MIME type from extension
|
|
3272
|
+
* - Sets active to true by default
|
|
3273
|
+
*
|
|
3274
|
+
* @throws Error if required fields are missing or invalid
|
|
3275
|
+
*/
|
|
3276
|
+
declare function buildRegistrationFile(params: RegistrationFileParams): RegistrationFile;
|
|
3277
|
+
/**
|
|
3278
|
+
* Fetch and parse a registration file from URI.
|
|
3279
|
+
*
|
|
3280
|
+
* - Returns null on network errors or invalid URIs
|
|
3281
|
+
* - Validates structure, logs warnings for non-conforming files
|
|
3282
|
+
* - Never throws
|
|
3283
|
+
*/
|
|
3284
|
+
declare function fetchRegistrationFile(uri: string): Promise<RegistrationFile | null>;
|
|
3285
|
+
/**
|
|
3286
|
+
* Extract image URL from a registration file.
|
|
3287
|
+
*
|
|
3288
|
+
* Prefers properties.files (Phantom format), falls back to image field.
|
|
3289
|
+
* Handles IPFS/Arweave URI conversion.
|
|
3290
|
+
*/
|
|
3291
|
+
declare function getImageUrl(file: RegistrationFile | null | undefined): string | null;
|
|
3292
|
+
/**
|
|
3293
|
+
* Serialize a registration file to JSON string.
|
|
3294
|
+
*/
|
|
3295
|
+
declare function stringifyRegistrationFile(file: RegistrationFile, space?: number): string;
|
|
3296
|
+
/** CAIP-2 chain identifier for Solana mainnet */
|
|
3297
|
+
declare const SATI_CHAIN_ID = "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";
|
|
3298
|
+
/** SATI program ID */
|
|
3299
|
+
declare const SATI_PROGRAM_ID = "satiRkxEiwZ51cv8PRu8UMzuaqeaNU9jABo6oAFMsLe";
|
|
3300
|
+
/**
|
|
3301
|
+
* Build a registrations[] entry for linking a SATI agent to an off-chain registration file.
|
|
3302
|
+
*
|
|
3303
|
+
* @param agentMint - SATI agent mint address
|
|
3304
|
+
* @returns RegistrationEntry for the registrations[] array
|
|
3305
|
+
*
|
|
3306
|
+
* @example
|
|
3307
|
+
* ```typescript
|
|
3308
|
+
* const entry = buildSatiRegistrationEntry("AgentMint...");
|
|
3309
|
+
* // { agentId: "AgentMint...", agentRegistry: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp:satiR3q7..." }
|
|
3310
|
+
* ```
|
|
3311
|
+
*/
|
|
3312
|
+
declare function buildSatiRegistrationEntry(agentMint: string): RegistrationEntry;
|
|
3313
|
+
/**
|
|
3314
|
+
* Check if a registration file contains a SATI registration.
|
|
3315
|
+
*
|
|
3316
|
+
* @param file - Registration file to check
|
|
3317
|
+
* @returns true if file contains at least one SATI registration
|
|
3318
|
+
*/
|
|
3319
|
+
declare function hasSatiRegistration(file: RegistrationFile): boolean;
|
|
3320
|
+
/**
|
|
3321
|
+
* Find SATI agent IDs from a registration file.
|
|
3322
|
+
*
|
|
3323
|
+
* @param file - Registration file to search
|
|
3324
|
+
* @returns Array of SATI agent mint addresses
|
|
3325
|
+
*/
|
|
3326
|
+
declare function getSatiAgentIds(file: RegistrationFile): string[];
|
|
3327
|
+
//#endregion
|
|
3105
3328
|
//#region src/client.d.ts
|
|
3106
3329
|
/**
|
|
3107
3330
|
* Attestation creation result
|
|
@@ -3421,6 +3644,22 @@ declare class Sati {
|
|
|
3421
3644
|
/** Optional mint keypair - use to get a consistent mint address across networks */
|
|
3422
3645
|
mintKeypair?: KeyPairSigner;
|
|
3423
3646
|
}): Promise<RegisterAgentResult>;
|
|
3647
|
+
/**
|
|
3648
|
+
* Build a registration file from params, upload it via the provided uploader,
|
|
3649
|
+
* and return the resulting URI.
|
|
3650
|
+
*
|
|
3651
|
+
* @example
|
|
3652
|
+
* ```typescript
|
|
3653
|
+
* import { createPinataUploader } from "@cascade-fyi/sati-sdk";
|
|
3654
|
+
*
|
|
3655
|
+
* const uploader = createPinataUploader(process.env.PINATA_JWT!);
|
|
3656
|
+
* const uri = await sati.uploadRegistrationFile(
|
|
3657
|
+
* { name: "MyAgent", description: "AI assistant", image: "https://example.com/img.png" },
|
|
3658
|
+
* uploader,
|
|
3659
|
+
* );
|
|
3660
|
+
* ```
|
|
3661
|
+
*/
|
|
3662
|
+
uploadRegistrationFile(params: RegistrationFileParams, uploader: MetadataUploader): Promise<string>;
|
|
3424
3663
|
/**
|
|
3425
3664
|
* Load agent identity from mint address
|
|
3426
3665
|
*/
|
|
@@ -3716,166 +3955,6 @@ declare class Sati {
|
|
|
3716
3955
|
private sendSingleTransaction;
|
|
3717
3956
|
}
|
|
3718
3957
|
//#endregion
|
|
3719
|
-
//#region src/registration.d.ts
|
|
3720
|
-
/**
|
|
3721
|
-
* SATI Registration File
|
|
3722
|
-
*
|
|
3723
|
-
* Helpers for building, fetching, and working with ERC-8004 + Phantom
|
|
3724
|
-
* compatible registration files.
|
|
3725
|
-
*
|
|
3726
|
-
* @example
|
|
3727
|
-
* ```typescript
|
|
3728
|
-
* import {
|
|
3729
|
-
* buildRegistrationFile,
|
|
3730
|
-
* fetchRegistrationFile,
|
|
3731
|
-
* getImageUrl,
|
|
3732
|
-
* } from "@cascade-fyi/sati-sdk";
|
|
3733
|
-
*
|
|
3734
|
-
* // Build a registration file
|
|
3735
|
-
* const file = buildRegistrationFile({
|
|
3736
|
-
* name: "MyAgent",
|
|
3737
|
-
* description: "AI assistant",
|
|
3738
|
-
* image: "https://example.com/avatar.png",
|
|
3739
|
-
* });
|
|
3740
|
-
*
|
|
3741
|
-
* // Fetch from URI
|
|
3742
|
-
* const metadata = await fetchRegistrationFile(uri);
|
|
3743
|
-
* const imageUrl = getImageUrl(metadata);
|
|
3744
|
-
* ```
|
|
3745
|
-
*/
|
|
3746
|
-
/** File entry for Phantom/Metaplex wallet display */
|
|
3747
|
-
interface PropertyFile {
|
|
3748
|
-
uri: string;
|
|
3749
|
-
type: string;
|
|
3750
|
-
}
|
|
3751
|
-
/** Properties object for wallet compatibility */
|
|
3752
|
-
interface Properties {
|
|
3753
|
-
files: PropertyFile[];
|
|
3754
|
-
category?: "image" | "video" | "audio";
|
|
3755
|
-
}
|
|
3756
|
-
/** Service endpoint (ERC-8004) */
|
|
3757
|
-
interface Endpoint {
|
|
3758
|
-
name: string;
|
|
3759
|
-
endpoint: string;
|
|
3760
|
-
version?: string;
|
|
3761
|
-
}
|
|
3762
|
-
/** Cross-chain registration entry (ERC-8004) */
|
|
3763
|
-
interface RegistrationEntry {
|
|
3764
|
-
agentId: string | number;
|
|
3765
|
-
agentRegistry: string;
|
|
3766
|
-
}
|
|
3767
|
-
/** Trust mechanism type */
|
|
3768
|
-
type TrustMechanism = "reputation" | "crypto-economic" | "tee-attestation";
|
|
3769
|
-
/**
|
|
3770
|
-
* Registration file schema (ERC-8004 + Phantom compatible)
|
|
3771
|
-
*
|
|
3772
|
-
* This is the off-chain JSON document referenced by the on-chain `uri` field.
|
|
3773
|
-
*/
|
|
3774
|
-
interface RegistrationFile {
|
|
3775
|
-
/** Schema type identifier */
|
|
3776
|
-
type: "https://eips.ethereum.org/EIPS/eip-8004#registration-v1";
|
|
3777
|
-
/** Agent name */
|
|
3778
|
-
name: string;
|
|
3779
|
-
/** Agent description */
|
|
3780
|
-
description: string;
|
|
3781
|
-
/** Primary image URL */
|
|
3782
|
-
image: string;
|
|
3783
|
-
/** Properties for wallet display (required for Phantom) */
|
|
3784
|
-
properties: Properties;
|
|
3785
|
-
/** Project website URL */
|
|
3786
|
-
external_url?: string;
|
|
3787
|
-
/** Service endpoints (A2A, MCP, agentWallet) */
|
|
3788
|
-
endpoints?: Endpoint[];
|
|
3789
|
-
/** Cross-chain registration entries */
|
|
3790
|
-
registrations?: RegistrationEntry[];
|
|
3791
|
-
/** Supported trust mechanisms */
|
|
3792
|
-
supportedTrust?: TrustMechanism[];
|
|
3793
|
-
/** Agent operational status */
|
|
3794
|
-
active?: boolean;
|
|
3795
|
-
/** Accepts x402 payments */
|
|
3796
|
-
x402support?: boolean;
|
|
3797
|
-
}
|
|
3798
|
-
/** Input parameters for buildRegistrationFile */
|
|
3799
|
-
interface RegistrationFileParams {
|
|
3800
|
-
name: string;
|
|
3801
|
-
description: string;
|
|
3802
|
-
image: string;
|
|
3803
|
-
imageMimeType?: string;
|
|
3804
|
-
externalUrl?: string;
|
|
3805
|
-
endpoints?: Endpoint[];
|
|
3806
|
-
registrations?: RegistrationEntry[];
|
|
3807
|
-
supportedTrust?: TrustMechanism[];
|
|
3808
|
-
active?: boolean;
|
|
3809
|
-
x402support?: boolean;
|
|
3810
|
-
}
|
|
3811
|
-
/**
|
|
3812
|
-
* Infer MIME type from image URL extension.
|
|
3813
|
-
* Returns "image/png" as default if unrecognized.
|
|
3814
|
-
*/
|
|
3815
|
-
declare function inferMimeType(url: string): string;
|
|
3816
|
-
/**
|
|
3817
|
-
* Build a registration file from parameters.
|
|
3818
|
-
*
|
|
3819
|
-
* Automatically:
|
|
3820
|
-
* - Sets the ERC-8004 type identifier
|
|
3821
|
-
* - Generates properties.files from image URL
|
|
3822
|
-
* - Infers MIME type from extension
|
|
3823
|
-
* - Sets active to true by default
|
|
3824
|
-
*
|
|
3825
|
-
* @throws Error if required fields are missing or invalid
|
|
3826
|
-
*/
|
|
3827
|
-
declare function buildRegistrationFile(params: RegistrationFileParams): RegistrationFile;
|
|
3828
|
-
/**
|
|
3829
|
-
* Fetch and parse a registration file from URI.
|
|
3830
|
-
*
|
|
3831
|
-
* - Returns null on network errors or invalid URIs
|
|
3832
|
-
* - Validates structure, logs warnings for non-conforming files
|
|
3833
|
-
* - Never throws
|
|
3834
|
-
*/
|
|
3835
|
-
declare function fetchRegistrationFile(uri: string): Promise<RegistrationFile | null>;
|
|
3836
|
-
/**
|
|
3837
|
-
* Extract image URL from a registration file.
|
|
3838
|
-
*
|
|
3839
|
-
* Prefers properties.files (Phantom format), falls back to image field.
|
|
3840
|
-
* Handles IPFS/Arweave URI conversion.
|
|
3841
|
-
*/
|
|
3842
|
-
declare function getImageUrl(file: RegistrationFile | null | undefined): string | null;
|
|
3843
|
-
/**
|
|
3844
|
-
* Serialize a registration file to JSON string.
|
|
3845
|
-
*/
|
|
3846
|
-
declare function stringifyRegistrationFile(file: RegistrationFile, space?: number): string;
|
|
3847
|
-
/** CAIP-2 chain identifier for Solana mainnet */
|
|
3848
|
-
declare const SATI_CHAIN_ID = "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";
|
|
3849
|
-
/** SATI program ID */
|
|
3850
|
-
declare const SATI_PROGRAM_ID = "satiRkxEiwZ51cv8PRu8UMzuaqeaNU9jABo6oAFMsLe";
|
|
3851
|
-
/**
|
|
3852
|
-
* Build a registrations[] entry for linking a SATI agent to an off-chain registration file.
|
|
3853
|
-
*
|
|
3854
|
-
* @param agentMint - SATI agent mint address
|
|
3855
|
-
* @returns RegistrationEntry for the registrations[] array
|
|
3856
|
-
*
|
|
3857
|
-
* @example
|
|
3858
|
-
* ```typescript
|
|
3859
|
-
* const entry = buildSatiRegistrationEntry("AgentMint...");
|
|
3860
|
-
* // { agentId: "AgentMint...", agentRegistry: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp:satiR3q7..." }
|
|
3861
|
-
* ```
|
|
3862
|
-
*/
|
|
3863
|
-
declare function buildSatiRegistrationEntry(agentMint: string): RegistrationEntry;
|
|
3864
|
-
/**
|
|
3865
|
-
* Check if a registration file contains a SATI registration.
|
|
3866
|
-
*
|
|
3867
|
-
* @param file - Registration file to check
|
|
3868
|
-
* @returns true if file contains at least one SATI registration
|
|
3869
|
-
*/
|
|
3870
|
-
declare function hasSatiRegistration(file: RegistrationFile): boolean;
|
|
3871
|
-
/**
|
|
3872
|
-
* Find SATI agent IDs from a registration file.
|
|
3873
|
-
*
|
|
3874
|
-
* @param file - Registration file to search
|
|
3875
|
-
* @returns Array of SATI agent mint addresses
|
|
3876
|
-
*/
|
|
3877
|
-
declare function getSatiAgentIds(file: RegistrationFile): string[];
|
|
3878
|
-
//#endregion
|
|
3879
3958
|
//#region src/errors.d.ts
|
|
3880
3959
|
/**
|
|
3881
3960
|
* SATI SDK Error Types
|
|
@@ -3966,5 +4045,5 @@ declare function networkErrorMessage(): string;
|
|
|
3966
4045
|
declare function transactionExpiredMessage(): string;
|
|
3967
4046
|
declare function transactionFailedMessage(detail?: string): string;
|
|
3968
4047
|
//#endregion
|
|
3969
|
-
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 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, 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 };
|
|
4048
|
+
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, 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 };
|
|
3970
4049
|
//# sourceMappingURL=index.d.mts.map
|