@hashgraphonline/standards-sdk 0.0.22 → 0.0.24
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/dist/es/hcs-10/browser.d.ts +3 -4
- package/dist/es/hcs-10/sdk.d.ts +17 -3
- package/dist/es/standards-sdk.es.js +122 -19
- package/dist/es/standards-sdk.es.js.map +1 -1
- package/dist/umd/hcs-10/browser.d.ts +3 -4
- package/dist/umd/hcs-10/sdk.d.ts +17 -3
- package/dist/umd/standards-sdk.umd.js +10 -10
- package/dist/umd/standards-sdk.umd.js.map +1 -1
- package/package.json +2 -2
|
@@ -3,8 +3,7 @@ import { HashinalsWalletConnectSDK } from '@hashgraphonline/hashinal-wc';
|
|
|
3
3
|
import { Logger, LogLevel } from '../utils/logger';
|
|
4
4
|
import { RetrievedInscriptionResult } from '@kiloscribe/inscription-sdk';
|
|
5
5
|
import { HCS10BaseClient } from './base-client';
|
|
6
|
-
import { AgentConfig, NetworkType } from './types.d';
|
|
7
|
-
import { DAppSigner } from '@hashgraph/hedera-wallet-connect';
|
|
6
|
+
import { AgentConfig, NetworkType, RegistrationProgressCallback } from './types.d';
|
|
8
7
|
export type BrowserHCSClientConfig = {
|
|
9
8
|
network: 'mainnet' | 'testnet';
|
|
10
9
|
hwc: HashinalsWalletConnectSDK;
|
|
@@ -68,7 +67,7 @@ export declare class BrowserHCSClient extends HCS10BaseClient {
|
|
|
68
67
|
success: boolean;
|
|
69
68
|
}>;
|
|
70
69
|
createAndRegisterAgent(name: string, description: string, capabilities: number[], metadata: AgentMetadata, pfpBuffer: Buffer, pfpFileName: string, network: NetworkType, existingPfpTopicId?: string): Promise<BrowserAgentConfig>;
|
|
71
|
-
registerAgentWithGuardedRegistry(accountId: string, inboundTopicId: string, network?: string,
|
|
70
|
+
registerAgentWithGuardedRegistry(accountId: string, inboundTopicId: string, network?: string, progressCallbackOrMaxAttempts?: RegistrationProgressCallback | number, maxAttemptsOrDelayMs?: number, delayMsParam?: number): Promise<{
|
|
72
71
|
error?: string;
|
|
73
72
|
success: boolean;
|
|
74
73
|
transaction?: any;
|
|
@@ -91,7 +90,7 @@ export declare class BrowserHCSClient extends HCS10BaseClient {
|
|
|
91
90
|
inscribeFile(buffer: Buffer, fileName: string): Promise<RetrievedInscriptionResult>;
|
|
92
91
|
getAccountAndSigner(): {
|
|
93
92
|
accountId: string;
|
|
94
|
-
signer:
|
|
93
|
+
signer: any;
|
|
95
94
|
};
|
|
96
95
|
/**
|
|
97
96
|
* Inscribes a profile picture file to the Hedera network
|
package/dist/umd/hcs-10/sdk.d.ts
CHANGED
|
@@ -22,6 +22,19 @@ export interface AgentMetadata {
|
|
|
22
22
|
creator?: string;
|
|
23
23
|
properties?: Record<string, any>;
|
|
24
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Progress report data for registration operations
|
|
27
|
+
*/
|
|
28
|
+
export interface RegistrationProgressData {
|
|
29
|
+
stage: 'preparing' | 'submitting' | 'confirming' | 'verifying' | 'completed';
|
|
30
|
+
message: string;
|
|
31
|
+
progressPercent?: number;
|
|
32
|
+
details?: Record<string, any>;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Progress callback function type for registration operations
|
|
36
|
+
*/
|
|
37
|
+
export type RegistrationProgressCallback = (data: RegistrationProgressData) => void;
|
|
25
38
|
export declare class HCS10Client extends HCS10BaseClient {
|
|
26
39
|
private client;
|
|
27
40
|
private operatorPrivateKey;
|
|
@@ -135,11 +148,12 @@ export declare class HCS10Client extends HCS10BaseClient {
|
|
|
135
148
|
* @param accountId Account ID to register
|
|
136
149
|
* @param inboundTopicId Inbound topic ID for the agent
|
|
137
150
|
* @param network Network type ('mainnet' or 'testnet')
|
|
138
|
-
* @param
|
|
139
|
-
* @param
|
|
151
|
+
* @param progressCallbackOrMaxAttempts Optional callback to report registration progress for UI or maxAttempts
|
|
152
|
+
* @param maxAttemptsOrDelayMs Optional maximum attempts for confirmation or delay between attempts
|
|
153
|
+
* @param delayMsParam Optional delay between confirmation attempts
|
|
140
154
|
* @returns Registration result
|
|
141
155
|
*/
|
|
142
|
-
registerAgentWithGuardedRegistry(accountId: string, inboundTopicId: string, network?: string,
|
|
156
|
+
registerAgentWithGuardedRegistry(accountId: string, inboundTopicId: string, network?: string, progressCallbackOrMaxAttempts?: RegistrationProgressCallback | number, maxAttemptsOrDelayMs?: number, delayMsParam?: number): Promise<AgentRegistrationResult>;
|
|
143
157
|
/**
|
|
144
158
|
* Registers an agent with the guarded registry. Should be called by a registry.
|
|
145
159
|
* @param registryTopicId - The topic ID of the guarded registry.
|