@hashgraphonline/standards-agent-kit 0.2.136 → 0.2.138
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -4
- package/dist/cjs/builders/hcs10/hcs10-builder.d.ts +1 -0
- package/dist/cjs/builders/hcs2/hcs2-builder.d.ts +8 -7
- package/dist/cjs/builders/hcs6/hcs6-builder.d.ts +5 -4
- package/dist/cjs/builders/inscriber/inscriber-builder.d.ts +32 -1
- package/dist/cjs/index.d.ts +4 -0
- package/dist/cjs/signing/bytes-registry.d.ts +17 -0
- package/dist/cjs/signing/signer-provider.d.ts +45 -0
- package/dist/cjs/standards-agent-kit.cjs +1 -1
- package/dist/cjs/standards-agent-kit.cjs.map +1 -1
- package/dist/cjs/tools/hcs10/InitiateConnectionTool.d.ts +4 -4
- package/dist/cjs/tools/hcs2/CreateRegistryTool.d.ts +2 -2
- package/dist/cjs/tools/hcs2/DeleteEntryTool.d.ts +2 -2
- package/dist/cjs/tools/hcs2/UpdateEntryTool.d.ts +2 -2
- package/dist/cjs/tools/hcs6/RegisterDynamicHashinalTool.d.ts +10 -10
- package/dist/cjs/tools/hcs6/UpdateDynamicHashinalTool.d.ts +8 -8
- package/dist/cjs/tools/inscriber/InscribeFromBufferTool.d.ts +5 -4
- package/dist/cjs/tools/inscriber/InscribeFromFileTool.d.ts +2 -2
- package/dist/cjs/tools/inscriber/InscribeFromUrlTool.d.ts +4 -4
- package/dist/cjs/tools/inscriber/InscribeHashinalTool.d.ts +3 -3
- package/dist/cjs/types/inscription-response.d.ts +8 -0
- package/dist/cjs/types/tx-results.d.ts +15 -0
- package/dist/cjs/utils/CodedError.d.ts +4 -0
- package/dist/cjs/utils/inscription-utils.d.ts +21 -0
- package/dist/cjs/validation/hip412-schemas.d.ts +2 -2
- package/dist/es/builders/hcs10/hcs10-builder.d.ts +1 -0
- package/dist/es/builders/hcs2/hcs2-builder.d.ts +8 -7
- package/dist/es/builders/hcs6/hcs6-builder.d.ts +5 -4
- package/dist/es/builders/inscriber/inscriber-builder.d.ts +32 -1
- package/dist/es/index.d.ts +4 -0
- package/dist/es/signing/bytes-registry.d.ts +17 -0
- package/dist/es/signing/signer-provider.d.ts +45 -0
- package/dist/es/standards-agent-kit.es.js +46 -42
- package/dist/es/standards-agent-kit.es.js.map +1 -1
- package/dist/es/standards-agent-kit.es10.js +24 -83
- package/dist/es/standards-agent-kit.es10.js.map +1 -1
- package/dist/es/standards-agent-kit.es11.js +224 -20
- package/dist/es/standards-agent-kit.es11.js.map +1 -1
- package/dist/es/standards-agent-kit.es12.js +78 -27
- package/dist/es/standards-agent-kit.es12.js.map +1 -1
- package/dist/es/standards-agent-kit.es13.js +26 -36
- package/dist/es/standards-agent-kit.es13.js.map +1 -1
- package/dist/es/standards-agent-kit.es14.js +17 -39
- package/dist/es/standards-agent-kit.es14.js.map +1 -1
- package/dist/es/standards-agent-kit.es15.js +36 -58
- package/dist/es/standards-agent-kit.es15.js.map +1 -1
- package/dist/es/standards-agent-kit.es16.js +45 -18
- package/dist/es/standards-agent-kit.es16.js.map +1 -1
- package/dist/es/standards-agent-kit.es17.js +53 -16
- package/dist/es/standards-agent-kit.es17.js.map +1 -1
- package/dist/es/standards-agent-kit.es18.js +18 -28
- package/dist/es/standards-agent-kit.es18.js.map +1 -1
- package/dist/es/standards-agent-kit.es19.js +26 -12
- package/dist/es/standards-agent-kit.es19.js.map +1 -1
- package/dist/es/standards-agent-kit.es20.js +38 -136
- package/dist/es/standards-agent-kit.es20.js.map +1 -1
- package/dist/es/standards-agent-kit.es21.js +13 -24
- package/dist/es/standards-agent-kit.es21.js.map +1 -1
- package/dist/es/standards-agent-kit.es22.js +136 -39
- package/dist/es/standards-agent-kit.es22.js.map +1 -1
- package/dist/es/standards-agent-kit.es23.js +25 -41
- package/dist/es/standards-agent-kit.es23.js.map +1 -1
- package/dist/es/standards-agent-kit.es24.js +49 -31
- package/dist/es/standards-agent-kit.es24.js.map +1 -1
- package/dist/es/standards-agent-kit.es25.js +34 -18
- package/dist/es/standards-agent-kit.es25.js.map +1 -1
- package/dist/es/standards-agent-kit.es26.js +35 -19
- package/dist/es/standards-agent-kit.es26.js.map +1 -1
- package/dist/es/standards-agent-kit.es27.js +45 -32
- package/dist/es/standards-agent-kit.es27.js.map +1 -1
- package/dist/es/standards-agent-kit.es28.js +54 -25
- package/dist/es/standards-agent-kit.es28.js.map +1 -1
- package/dist/es/standards-agent-kit.es29.js +35 -23
- package/dist/es/standards-agent-kit.es29.js.map +1 -1
- package/dist/es/standards-agent-kit.es3.js +41 -1545
- package/dist/es/standards-agent-kit.es3.js.map +1 -1
- package/dist/es/standards-agent-kit.es30.js +23 -39
- package/dist/es/standards-agent-kit.es30.js.map +1 -1
- package/dist/es/standards-agent-kit.es31.js +30 -28
- package/dist/es/standards-agent-kit.es31.js.map +1 -1
- package/dist/es/standards-agent-kit.es32.js +45 -32
- package/dist/es/standards-agent-kit.es32.js.map +1 -1
- package/dist/es/standards-agent-kit.es33.js +50 -89
- package/dist/es/standards-agent-kit.es33.js.map +1 -1
- package/dist/es/standards-agent-kit.es34.js +35 -228
- package/dist/es/standards-agent-kit.es34.js.map +1 -1
- package/dist/es/standards-agent-kit.es35.js +87 -212
- package/dist/es/standards-agent-kit.es35.js.map +1 -1
- package/dist/es/standards-agent-kit.es36.js +188 -128
- package/dist/es/standards-agent-kit.es36.js.map +1 -1
- package/dist/es/standards-agent-kit.es37.js +167 -561
- package/dist/es/standards-agent-kit.es37.js.map +1 -1
- package/dist/es/standards-agent-kit.es38.js +236 -31
- package/dist/es/standards-agent-kit.es38.js.map +1 -1
- package/dist/es/standards-agent-kit.es39.js +483 -206
- package/dist/es/standards-agent-kit.es39.js.map +1 -1
- package/dist/es/standards-agent-kit.es4.js +359 -81
- package/dist/es/standards-agent-kit.es4.js.map +1 -1
- package/dist/es/standards-agent-kit.es40.js +39 -135
- package/dist/es/standards-agent-kit.es40.js.map +1 -1
- package/dist/es/standards-agent-kit.es41.js +244 -28
- package/dist/es/standards-agent-kit.es41.js.map +1 -1
- package/dist/es/standards-agent-kit.es42.js +132 -418
- package/dist/es/standards-agent-kit.es42.js.map +1 -1
- package/dist/es/standards-agent-kit.es43.js +28 -184
- package/dist/es/standards-agent-kit.es43.js.map +1 -1
- package/dist/es/standards-agent-kit.es44.js +423 -3
- package/dist/es/standards-agent-kit.es44.js.map +1 -1
- package/dist/es/standards-agent-kit.es45.js +185 -24
- package/dist/es/standards-agent-kit.es45.js.map +1 -1
- package/dist/es/standards-agent-kit.es46.js +3 -3
- package/dist/es/standards-agent-kit.es46.js.map +1 -1
- package/dist/es/standards-agent-kit.es47.js +21 -50
- package/dist/es/standards-agent-kit.es47.js.map +1 -1
- package/dist/es/standards-agent-kit.es48.js +8 -3
- package/dist/es/standards-agent-kit.es48.js.map +1 -1
- package/dist/es/standards-agent-kit.es49.js +3 -39
- package/dist/es/standards-agent-kit.es49.js.map +1 -1
- package/dist/es/standards-agent-kit.es5.js +1747 -73
- package/dist/es/standards-agent-kit.es5.js.map +1 -1
- package/dist/es/standards-agent-kit.es50.js +18 -16
- package/dist/es/standards-agent-kit.es50.js.map +1 -1
- package/dist/es/standards-agent-kit.es51.js +49 -49
- package/dist/es/standards-agent-kit.es51.js.map +1 -1
- package/dist/es/standards-agent-kit.es52.js +6 -0
- package/dist/es/standards-agent-kit.es52.js.map +1 -0
- package/dist/es/standards-agent-kit.es53.js +43 -0
- package/dist/es/standards-agent-kit.es53.js.map +1 -0
- package/dist/es/standards-agent-kit.es54.js +22 -0
- package/dist/es/standards-agent-kit.es54.js.map +1 -0
- package/dist/es/standards-agent-kit.es55.js +77 -0
- package/dist/es/standards-agent-kit.es55.js.map +1 -0
- package/dist/es/standards-agent-kit.es56.js +7 -0
- package/dist/es/standards-agent-kit.es56.js.map +1 -0
- package/dist/es/standards-agent-kit.es6.js +347 -32
- package/dist/es/standards-agent-kit.es6.js.map +1 -1
- package/dist/es/standards-agent-kit.es7.js +142 -293
- package/dist/es/standards-agent-kit.es7.js.map +1 -1
- package/dist/es/standards-agent-kit.es8.js +201 -21
- package/dist/es/standards-agent-kit.es8.js.map +1 -1
- package/dist/es/standards-agent-kit.es9.js +301 -213
- package/dist/es/standards-agent-kit.es9.js.map +1 -1
- package/dist/es/tools/hcs10/InitiateConnectionTool.d.ts +4 -4
- package/dist/es/tools/hcs2/CreateRegistryTool.d.ts +2 -2
- package/dist/es/tools/hcs2/DeleteEntryTool.d.ts +2 -2
- package/dist/es/tools/hcs2/UpdateEntryTool.d.ts +2 -2
- package/dist/es/tools/hcs6/RegisterDynamicHashinalTool.d.ts +10 -10
- package/dist/es/tools/hcs6/UpdateDynamicHashinalTool.d.ts +8 -8
- package/dist/es/tools/inscriber/InscribeFromBufferTool.d.ts +5 -4
- package/dist/es/tools/inscriber/InscribeFromFileTool.d.ts +2 -2
- package/dist/es/tools/inscriber/InscribeFromUrlTool.d.ts +4 -4
- package/dist/es/tools/inscriber/InscribeHashinalTool.d.ts +3 -3
- package/dist/es/types/inscription-response.d.ts +8 -0
- package/dist/es/types/tx-results.d.ts +15 -0
- package/dist/es/utils/CodedError.d.ts +4 -0
- package/dist/es/utils/inscription-utils.d.ts +21 -0
- package/dist/es/validation/hip412-schemas.d.ts +2 -2
- package/dist/umd/builders/hcs10/hcs10-builder.d.ts +1 -0
- package/dist/umd/builders/hcs2/hcs2-builder.d.ts +8 -7
- package/dist/umd/builders/hcs6/hcs6-builder.d.ts +5 -4
- package/dist/umd/builders/inscriber/inscriber-builder.d.ts +32 -1
- package/dist/umd/index.d.ts +4 -0
- package/dist/umd/signing/bytes-registry.d.ts +17 -0
- package/dist/umd/signing/signer-provider.d.ts +45 -0
- package/dist/umd/standards-agent-kit.umd.js +1 -1
- package/dist/umd/standards-agent-kit.umd.js.map +1 -1
- package/dist/umd/tools/hcs10/InitiateConnectionTool.d.ts +4 -4
- package/dist/umd/tools/hcs2/CreateRegistryTool.d.ts +2 -2
- package/dist/umd/tools/hcs2/DeleteEntryTool.d.ts +2 -2
- package/dist/umd/tools/hcs2/UpdateEntryTool.d.ts +2 -2
- package/dist/umd/tools/hcs6/RegisterDynamicHashinalTool.d.ts +10 -10
- package/dist/umd/tools/hcs6/UpdateDynamicHashinalTool.d.ts +8 -8
- package/dist/umd/tools/inscriber/InscribeFromBufferTool.d.ts +5 -4
- package/dist/umd/tools/inscriber/InscribeFromFileTool.d.ts +2 -2
- package/dist/umd/tools/inscriber/InscribeFromUrlTool.d.ts +4 -4
- package/dist/umd/tools/inscriber/InscribeHashinalTool.d.ts +3 -3
- package/dist/umd/types/inscription-response.d.ts +8 -0
- package/dist/umd/types/tx-results.d.ts +15 -0
- package/dist/umd/utils/CodedError.d.ts +4 -0
- package/dist/umd/utils/inscription-utils.d.ts +21 -0
- package/dist/umd/validation/hip412-schemas.d.ts +2 -2
- package/package.json +10 -5
- package/src/builders/hcs10/hcs10-builder.ts +239 -6
- package/src/builders/hcs2/hcs2-builder.ts +302 -9
- package/src/builders/hcs6/hcs6-builder.ts +79 -4
- package/src/builders/inscriber/inscriber-builder.ts +235 -2
- package/src/hcs10/HCS10Client.ts +1 -1
- package/src/index.ts +5 -1
- package/src/lib/zod-render/schema-extension.ts +0 -1
- package/src/signing/bytes-registry.ts +501 -0
- package/src/signing/signer-provider.ts +120 -0
- package/src/tools/hcs2/CreateRegistryTool.ts +30 -5
- package/src/tools/hcs2/DeleteEntryTool.ts +16 -2
- package/src/tools/hcs2/MigrateRegistryTool.ts +16 -2
- package/src/tools/hcs2/QueryRegistryTool.ts +11 -2
- package/src/tools/hcs2/RegisterEntryTool.ts +17 -3
- package/src/tools/hcs2/UpdateEntryTool.ts +16 -2
- package/src/tools/hcs6/CreateDynamicRegistryTool.ts +17 -3
- package/src/tools/hcs6/RegisterDynamicHashinalTool.ts +17 -3
- package/src/tools/hcs6/UpdateDynamicHashinalTool.ts +17 -3
- package/src/tools/inscriber/InscribeFromBufferTool.ts +126 -21
- package/src/tools/inscriber/InscribeFromFileTool.ts +10 -13
- package/src/tools/inscriber/InscribeFromUrlTool.ts +15 -11
- package/src/tools/inscriber/InscribeHashinalTool.ts +40 -168
- package/src/tools/inscriber/RetrieveInscriptionTool.ts +15 -16
- package/src/types/inscription-response.ts +27 -0
- package/src/types/tx-results.ts +18 -0
- package/src/utils/CodedError.ts +8 -0
- package/src/utils/Encryption.ts +0 -2
- package/src/utils/ensure-agent-has-hbar.ts +4 -5
- package/src/utils/inscription-utils.ts +53 -0
|
@@ -8,12 +8,12 @@ declare const InitiateConnectionZodSchema: z.ZodObject<{
|
|
|
8
8
|
memo: z.ZodOptional<z.ZodString>;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
targetAccountId: string;
|
|
11
|
-
disableMonitor?: boolean | undefined;
|
|
12
11
|
memo?: string | undefined;
|
|
12
|
+
disableMonitor?: boolean | undefined;
|
|
13
13
|
}, {
|
|
14
14
|
targetAccountId: string;
|
|
15
|
-
disableMonitor?: boolean | undefined;
|
|
16
15
|
memo?: string | undefined;
|
|
16
|
+
disableMonitor?: boolean | undefined;
|
|
17
17
|
}>;
|
|
18
18
|
/**
|
|
19
19
|
* A tool to actively START a NEW HCS-10 connection TO a target agent.
|
|
@@ -30,12 +30,12 @@ export declare class InitiateConnectionTool extends BaseHCS10TransactionTool<typ
|
|
|
30
30
|
memo: z.ZodOptional<z.ZodString>;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
32
|
targetAccountId: string;
|
|
33
|
-
disableMonitor?: boolean | undefined;
|
|
34
33
|
memo?: string | undefined;
|
|
34
|
+
disableMonitor?: boolean | undefined;
|
|
35
35
|
}, {
|
|
36
36
|
targetAccountId: string;
|
|
37
|
-
disableMonitor?: boolean | undefined;
|
|
38
37
|
memo?: string | undefined;
|
|
38
|
+
disableMonitor?: boolean | undefined;
|
|
39
39
|
}>;
|
|
40
40
|
constructor(params: HCS10TransactionToolParams);
|
|
41
41
|
protected callBuilderMethod(builder: BaseServiceBuilder, specificArgs: z.infer<typeof InitiateConnectionZodSchema>): Promise<void>;
|
|
@@ -11,13 +11,13 @@ declare const createRegistrySchema: z.ZodObject<{
|
|
|
11
11
|
adminKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
12
12
|
submitKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
registryType?: HCS2RegistryType | undefined;
|
|
15
14
|
ttl?: number | undefined;
|
|
15
|
+
registryType?: HCS2RegistryType | undefined;
|
|
16
16
|
adminKey?: string | boolean | undefined;
|
|
17
17
|
submitKey?: string | boolean | undefined;
|
|
18
18
|
}, {
|
|
19
|
-
registryType?: HCS2RegistryType | undefined;
|
|
20
19
|
ttl?: number | undefined;
|
|
20
|
+
registryType?: HCS2RegistryType | undefined;
|
|
21
21
|
adminKey?: string | boolean | undefined;
|
|
22
22
|
submitKey?: string | boolean | undefined;
|
|
23
23
|
}>;
|
|
@@ -9,12 +9,12 @@ declare const deleteEntrySchema: z.ZodObject<{
|
|
|
9
9
|
uid: z.ZodString;
|
|
10
10
|
memo: z.ZodOptional<z.ZodString>;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
uid: string;
|
|
13
12
|
registryTopicId: string;
|
|
13
|
+
uid: string;
|
|
14
14
|
memo?: string | undefined;
|
|
15
15
|
}, {
|
|
16
|
-
uid: string;
|
|
17
16
|
registryTopicId: string;
|
|
17
|
+
uid: string;
|
|
18
18
|
memo?: string | undefined;
|
|
19
19
|
}>;
|
|
20
20
|
/**
|
|
@@ -11,15 +11,15 @@ declare const updateEntrySchema: z.ZodObject<{
|
|
|
11
11
|
metadata: z.ZodOptional<z.ZodString>;
|
|
12
12
|
memo: z.ZodOptional<z.ZodString>;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
uid: string;
|
|
15
14
|
registryTopicId: string;
|
|
16
15
|
targetTopicId: string;
|
|
16
|
+
uid: string;
|
|
17
17
|
metadata?: string | undefined;
|
|
18
18
|
memo?: string | undefined;
|
|
19
19
|
}, {
|
|
20
|
-
uid: string;
|
|
21
20
|
registryTopicId: string;
|
|
22
21
|
targetTopicId: string;
|
|
22
|
+
uid: string;
|
|
23
23
|
metadata?: string | undefined;
|
|
24
24
|
memo?: string | undefined;
|
|
25
25
|
}>;
|
|
@@ -27,25 +27,25 @@ declare const RegisterDynamicHashinalSchema: z.ZodObject<{
|
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
28
|
metadata: Record<string, unknown>;
|
|
29
29
|
ttl: number;
|
|
30
|
+
registryTopicId?: string | undefined;
|
|
31
|
+
memo?: string | undefined;
|
|
30
32
|
data?: {
|
|
31
33
|
base64?: string | undefined;
|
|
32
34
|
url?: string | undefined;
|
|
33
35
|
mimeType?: string | undefined;
|
|
34
36
|
} | undefined;
|
|
35
|
-
memo?: string | undefined;
|
|
36
37
|
submitKey?: string | undefined;
|
|
37
|
-
registryTopicId?: string | undefined;
|
|
38
38
|
}, {
|
|
39
39
|
metadata: Record<string, unknown>;
|
|
40
|
+
registryTopicId?: string | undefined;
|
|
41
|
+
memo?: string | undefined;
|
|
42
|
+
ttl?: number | undefined;
|
|
40
43
|
data?: {
|
|
41
44
|
base64?: string | undefined;
|
|
42
45
|
url?: string | undefined;
|
|
43
46
|
mimeType?: string | undefined;
|
|
44
47
|
} | undefined;
|
|
45
|
-
memo?: string | undefined;
|
|
46
|
-
ttl?: number | undefined;
|
|
47
48
|
submitKey?: string | undefined;
|
|
48
|
-
registryTopicId?: string | undefined;
|
|
49
49
|
}>;
|
|
50
50
|
export type RegisterDynamicHashinalInput = z.infer<typeof RegisterDynamicHashinalSchema>;
|
|
51
51
|
/**
|
|
@@ -76,25 +76,25 @@ export declare class RegisterDynamicHashinalTool extends BaseHCS6QueryTool<typeo
|
|
|
76
76
|
}, "strip", z.ZodTypeAny, {
|
|
77
77
|
metadata: Record<string, unknown>;
|
|
78
78
|
ttl: number;
|
|
79
|
+
registryTopicId?: string | undefined;
|
|
80
|
+
memo?: string | undefined;
|
|
79
81
|
data?: {
|
|
80
82
|
base64?: string | undefined;
|
|
81
83
|
url?: string | undefined;
|
|
82
84
|
mimeType?: string | undefined;
|
|
83
85
|
} | undefined;
|
|
84
|
-
memo?: string | undefined;
|
|
85
86
|
submitKey?: string | undefined;
|
|
86
|
-
registryTopicId?: string | undefined;
|
|
87
87
|
}, {
|
|
88
88
|
metadata: Record<string, unknown>;
|
|
89
|
+
registryTopicId?: string | undefined;
|
|
90
|
+
memo?: string | undefined;
|
|
91
|
+
ttl?: number | undefined;
|
|
89
92
|
data?: {
|
|
90
93
|
base64?: string | undefined;
|
|
91
94
|
url?: string | undefined;
|
|
92
95
|
mimeType?: string | undefined;
|
|
93
96
|
} | undefined;
|
|
94
|
-
memo?: string | undefined;
|
|
95
|
-
ttl?: number | undefined;
|
|
96
97
|
submitKey?: string | undefined;
|
|
97
|
-
registryTopicId?: string | undefined;
|
|
98
98
|
}>;
|
|
99
99
|
constructor(params: HCS6QueryToolParams);
|
|
100
100
|
protected executeQuery(params: RegisterDynamicHashinalInput, _runManager?: CallbackManagerForToolRun): Promise<unknown>;
|
|
@@ -24,25 +24,25 @@ declare const UpdateDynamicHashinalSchema: z.ZodObject<{
|
|
|
24
24
|
memo: z.ZodOptional<z.ZodString>;
|
|
25
25
|
submitKey: z.ZodString;
|
|
26
26
|
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
registryTopicId: string;
|
|
27
28
|
metadata: Record<string, unknown>;
|
|
28
29
|
submitKey: string;
|
|
29
|
-
|
|
30
|
+
memo?: string | undefined;
|
|
30
31
|
data?: {
|
|
31
32
|
base64?: string | undefined;
|
|
32
33
|
url?: string | undefined;
|
|
33
34
|
mimeType?: string | undefined;
|
|
34
35
|
} | undefined;
|
|
35
|
-
memo?: string | undefined;
|
|
36
36
|
}, {
|
|
37
|
+
registryTopicId: string;
|
|
37
38
|
metadata: Record<string, unknown>;
|
|
38
39
|
submitKey: string;
|
|
39
|
-
|
|
40
|
+
memo?: string | undefined;
|
|
40
41
|
data?: {
|
|
41
42
|
base64?: string | undefined;
|
|
42
43
|
url?: string | undefined;
|
|
43
44
|
mimeType?: string | undefined;
|
|
44
45
|
} | undefined;
|
|
45
|
-
memo?: string | undefined;
|
|
46
46
|
}>;
|
|
47
47
|
export type UpdateDynamicHashinalInput = z.infer<typeof UpdateDynamicHashinalSchema>;
|
|
48
48
|
/**
|
|
@@ -70,25 +70,25 @@ export declare class UpdateDynamicHashinalTool extends BaseHCS6QueryTool<typeof
|
|
|
70
70
|
memo: z.ZodOptional<z.ZodString>;
|
|
71
71
|
submitKey: z.ZodString;
|
|
72
72
|
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
registryTopicId: string;
|
|
73
74
|
metadata: Record<string, unknown>;
|
|
74
75
|
submitKey: string;
|
|
75
|
-
|
|
76
|
+
memo?: string | undefined;
|
|
76
77
|
data?: {
|
|
77
78
|
base64?: string | undefined;
|
|
78
79
|
url?: string | undefined;
|
|
79
80
|
mimeType?: string | undefined;
|
|
80
81
|
} | undefined;
|
|
81
|
-
memo?: string | undefined;
|
|
82
82
|
}, {
|
|
83
|
+
registryTopicId: string;
|
|
83
84
|
metadata: Record<string, unknown>;
|
|
84
85
|
submitKey: string;
|
|
85
|
-
|
|
86
|
+
memo?: string | undefined;
|
|
86
87
|
data?: {
|
|
87
88
|
base64?: string | undefined;
|
|
88
89
|
url?: string | undefined;
|
|
89
90
|
mimeType?: string | undefined;
|
|
90
91
|
} | undefined;
|
|
91
|
-
memo?: string | undefined;
|
|
92
92
|
}>;
|
|
93
93
|
constructor(params: HCS6QueryToolParams);
|
|
94
94
|
protected executeQuery(params: UpdateDynamicHashinalInput, _runManager?: CallbackManagerForToolRun): Promise<unknown>;
|
|
@@ -16,8 +16,8 @@ declare const inscribeFromBufferSchema: z.ZodObject<{
|
|
|
16
16
|
quoteOnly: boolean;
|
|
17
17
|
fileName: string;
|
|
18
18
|
base64Data: string;
|
|
19
|
-
tags?: string[] | undefined;
|
|
20
19
|
metadata?: Record<string, unknown> | undefined;
|
|
20
|
+
tags?: string[] | undefined;
|
|
21
21
|
mimeType?: string | undefined;
|
|
22
22
|
chunkSize?: number | undefined;
|
|
23
23
|
waitForConfirmation?: boolean | undefined;
|
|
@@ -26,8 +26,8 @@ declare const inscribeFromBufferSchema: z.ZodObject<{
|
|
|
26
26
|
}, {
|
|
27
27
|
fileName: string;
|
|
28
28
|
base64Data: string;
|
|
29
|
-
tags?: string[] | undefined;
|
|
30
29
|
metadata?: Record<string, unknown> | undefined;
|
|
30
|
+
tags?: string[] | undefined;
|
|
31
31
|
mimeType?: string | undefined;
|
|
32
32
|
chunkSize?: number | undefined;
|
|
33
33
|
waitForConfirmation?: boolean | undefined;
|
|
@@ -54,8 +54,8 @@ export declare class InscribeFromBufferTool extends BaseInscriberQueryTool<typeo
|
|
|
54
54
|
quoteOnly: boolean;
|
|
55
55
|
fileName: string;
|
|
56
56
|
base64Data: string;
|
|
57
|
-
tags?: string[] | undefined;
|
|
58
57
|
metadata?: Record<string, unknown> | undefined;
|
|
58
|
+
tags?: string[] | undefined;
|
|
59
59
|
mimeType?: string | undefined;
|
|
60
60
|
chunkSize?: number | undefined;
|
|
61
61
|
waitForConfirmation?: boolean | undefined;
|
|
@@ -64,8 +64,8 @@ export declare class InscribeFromBufferTool extends BaseInscriberQueryTool<typeo
|
|
|
64
64
|
}, {
|
|
65
65
|
fileName: string;
|
|
66
66
|
base64Data: string;
|
|
67
|
-
tags?: string[] | undefined;
|
|
68
67
|
metadata?: Record<string, unknown> | undefined;
|
|
68
|
+
tags?: string[] | undefined;
|
|
69
69
|
mimeType?: string | undefined;
|
|
70
70
|
chunkSize?: number | undefined;
|
|
71
71
|
waitForConfirmation?: boolean | undefined;
|
|
@@ -73,6 +73,7 @@ export declare class InscribeFromBufferTool extends BaseInscriberQueryTool<typeo
|
|
|
73
73
|
apiKey?: string | undefined;
|
|
74
74
|
quoteOnly?: boolean | undefined;
|
|
75
75
|
}>;
|
|
76
|
+
protected _call(args: z.infer<typeof inscribeFromBufferSchema>, _runManager?: CallbackManagerForToolRun): Promise<string>;
|
|
76
77
|
protected executeQuery(params: z.infer<typeof inscribeFromBufferSchema>, _runManager?: CallbackManagerForToolRun): Promise<unknown>;
|
|
77
78
|
private validateInput;
|
|
78
79
|
private validateContent;
|
|
@@ -17,8 +17,8 @@ declare const inscribeFromFileSchema: z.ZodObject<{
|
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
18
|
quoteOnly: boolean;
|
|
19
19
|
filePath: string;
|
|
20
|
-
tags?: string[] | undefined;
|
|
21
20
|
metadata?: Record<string, unknown> | undefined;
|
|
21
|
+
tags?: string[] | undefined;
|
|
22
22
|
mode?: "file" | "hashinal" | undefined;
|
|
23
23
|
chunkSize?: number | undefined;
|
|
24
24
|
waitForConfirmation?: boolean | undefined;
|
|
@@ -26,8 +26,8 @@ declare const inscribeFromFileSchema: z.ZodObject<{
|
|
|
26
26
|
apiKey?: string | undefined;
|
|
27
27
|
}, {
|
|
28
28
|
filePath: string;
|
|
29
|
-
tags?: string[] | undefined;
|
|
30
29
|
metadata?: Record<string, unknown> | undefined;
|
|
30
|
+
tags?: string[] | undefined;
|
|
31
31
|
mode?: "file" | "hashinal" | undefined;
|
|
32
32
|
chunkSize?: number | undefined;
|
|
33
33
|
waitForConfirmation?: boolean | undefined;
|
|
@@ -17,8 +17,8 @@ declare const inscribeFromUrlSchema: z.ZodObject<{
|
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
18
|
url: string;
|
|
19
19
|
quoteOnly: boolean;
|
|
20
|
-
tags?: string[] | undefined;
|
|
21
20
|
metadata?: Record<string, unknown> | undefined;
|
|
21
|
+
tags?: string[] | undefined;
|
|
22
22
|
mode?: "file" | "hashinal" | undefined;
|
|
23
23
|
chunkSize?: number | undefined;
|
|
24
24
|
waitForConfirmation?: boolean | undefined;
|
|
@@ -26,8 +26,8 @@ declare const inscribeFromUrlSchema: z.ZodObject<{
|
|
|
26
26
|
apiKey?: string | undefined;
|
|
27
27
|
}, {
|
|
28
28
|
url: string;
|
|
29
|
-
tags?: string[] | undefined;
|
|
30
29
|
metadata?: Record<string, unknown> | undefined;
|
|
30
|
+
tags?: string[] | undefined;
|
|
31
31
|
mode?: "file" | "hashinal" | undefined;
|
|
32
32
|
chunkSize?: number | undefined;
|
|
33
33
|
waitForConfirmation?: boolean | undefined;
|
|
@@ -54,8 +54,8 @@ export declare class InscribeFromUrlTool extends BaseInscriberQueryTool<typeof i
|
|
|
54
54
|
}, "strip", z.ZodTypeAny, {
|
|
55
55
|
url: string;
|
|
56
56
|
quoteOnly: boolean;
|
|
57
|
-
tags?: string[] | undefined;
|
|
58
57
|
metadata?: Record<string, unknown> | undefined;
|
|
58
|
+
tags?: string[] | undefined;
|
|
59
59
|
mode?: "file" | "hashinal" | undefined;
|
|
60
60
|
chunkSize?: number | undefined;
|
|
61
61
|
waitForConfirmation?: boolean | undefined;
|
|
@@ -63,8 +63,8 @@ export declare class InscribeFromUrlTool extends BaseInscriberQueryTool<typeof i
|
|
|
63
63
|
apiKey?: string | undefined;
|
|
64
64
|
}, {
|
|
65
65
|
url: string;
|
|
66
|
-
tags?: string[] | undefined;
|
|
67
66
|
metadata?: Record<string, unknown> | undefined;
|
|
67
|
+
tags?: string[] | undefined;
|
|
68
68
|
mode?: "file" | "hashinal" | undefined;
|
|
69
69
|
chunkSize?: number | undefined;
|
|
70
70
|
waitForConfirmation?: boolean | undefined;
|
|
@@ -7,15 +7,17 @@ import { FormValidatable } from '../../interfaces/FormValidatable';
|
|
|
7
7
|
* Schema for inscribing Hashinal NFT
|
|
8
8
|
*/
|
|
9
9
|
declare const inscribeHashinalSchema: import('../..').ZodSchemaWithRender<{
|
|
10
|
+
name?: string | undefined;
|
|
10
11
|
url?: string | undefined;
|
|
11
12
|
type?: string | undefined;
|
|
12
|
-
name?: string | undefined;
|
|
13
13
|
description?: string | undefined;
|
|
14
14
|
tags?: string[] | undefined;
|
|
15
15
|
creator?: string | undefined;
|
|
16
16
|
properties?: Record<string, unknown> | undefined;
|
|
17
17
|
mimeType?: string | undefined;
|
|
18
|
+
fileStandard?: "1" | "6" | undefined;
|
|
18
19
|
chunkSize?: number | undefined;
|
|
20
|
+
jsonFileURL?: string | undefined;
|
|
19
21
|
waitForConfirmation?: boolean | undefined;
|
|
20
22
|
timeoutMs?: number | undefined;
|
|
21
23
|
quoteOnly?: boolean | undefined;
|
|
@@ -26,8 +28,6 @@ declare const inscribeHashinalSchema: import('../..').ZodSchemaWithRender<{
|
|
|
26
28
|
trait_type: string;
|
|
27
29
|
}[] | undefined;
|
|
28
30
|
contentRef?: string | undefined;
|
|
29
|
-
jsonFileURL?: string | undefined;
|
|
30
|
-
fileStandard?: "1" | "6" | undefined;
|
|
31
31
|
withHashLinkBlocks?: boolean | undefined;
|
|
32
32
|
renderForm?: boolean | undefined;
|
|
33
33
|
}>;
|
|
@@ -169,4 +169,12 @@ export declare function createInscriptionError(params: {
|
|
|
169
169
|
details: string;
|
|
170
170
|
suggestions?: string[];
|
|
171
171
|
}): InscriptionErrorResponse;
|
|
172
|
+
/**
|
|
173
|
+
* Helper for pending inscription state (submitted but not yet confirmed)
|
|
174
|
+
*/
|
|
175
|
+
export declare function createInscriptionPending(params: {
|
|
176
|
+
transactionId: string;
|
|
177
|
+
details?: string;
|
|
178
|
+
suggestions?: string[];
|
|
179
|
+
}): InscriptionErrorResponse;
|
|
172
180
|
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TopicRegistrationResponse, RegistryOperationResponse, HCS6TopicRegistrationResponse, HCS6RegistryOperationResponse, HCS6CreateHashinalResponse } from '@hashgraphonline/standards-sdk';
|
|
2
|
+
export interface WalletBytesResponse {
|
|
3
|
+
success: true;
|
|
4
|
+
transactionBytes: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function isWalletBytesResponse(value: unknown): value is WalletBytesResponse;
|
|
7
|
+
export type TopicRegistrationResult = TopicRegistrationResponse | WalletBytesResponse;
|
|
8
|
+
export type RegistryOperationResult = RegistryOperationResponse | WalletBytesResponse;
|
|
9
|
+
export type SubmitMessageResult = {
|
|
10
|
+
success: true;
|
|
11
|
+
transactionId?: string;
|
|
12
|
+
} | WalletBytesResponse;
|
|
13
|
+
export type HCS6TopicRegistrationResult = HCS6TopicRegistrationResponse | WalletBytesResponse;
|
|
14
|
+
export type HCS6RegistryOperationResult = HCS6RegistryOperationResponse | WalletBytesResponse;
|
|
15
|
+
export type HCS6CreateHashinalResult = HCS6CreateHashinalResponse | WalletBytesResponse;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type NetworkType = 'mainnet' | 'testnet';
|
|
2
|
+
export interface TopicIds {
|
|
3
|
+
jsonTopicId?: string;
|
|
4
|
+
topicId?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Extract topic ids from an inscription and/or result object without using any.
|
|
8
|
+
* - Prefers jsonTopicId when present (for CDN linking)
|
|
9
|
+
* - Collects topic_id/topicId from either inscription or result
|
|
10
|
+
*/
|
|
11
|
+
export declare function extractTopicIds(inscription: unknown, result?: unknown): TopicIds;
|
|
12
|
+
/**
|
|
13
|
+
* Build HRL/CDN URLs from extracted topic ids.
|
|
14
|
+
* - HRL prefers jsonTopicId, falls back to topicId
|
|
15
|
+
* - CDN URL only provided when jsonTopicId is present
|
|
16
|
+
*/
|
|
17
|
+
export declare function buildInscriptionLinks(ids: TopicIds, network: NetworkType, fileStandard?: string): {
|
|
18
|
+
hrl?: string;
|
|
19
|
+
cdnUrl?: string;
|
|
20
|
+
topicId?: string;
|
|
21
|
+
};
|
|
@@ -77,9 +77,9 @@ export declare const hip412MetadataSchema: z.ZodObject<{
|
|
|
77
77
|
}>, "many">>;
|
|
78
78
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
79
79
|
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
name: string;
|
|
80
81
|
type: string;
|
|
81
82
|
image: string;
|
|
82
|
-
name: string;
|
|
83
83
|
description: string;
|
|
84
84
|
format: string;
|
|
85
85
|
creator?: string | undefined;
|
|
@@ -98,9 +98,9 @@ export declare const hip412MetadataSchema: z.ZodObject<{
|
|
|
98
98
|
display_type?: string | undefined;
|
|
99
99
|
}[] | undefined;
|
|
100
100
|
}, {
|
|
101
|
+
name: string;
|
|
101
102
|
type: string;
|
|
102
103
|
image: string;
|
|
103
|
-
name: string;
|
|
104
104
|
description: string;
|
|
105
105
|
creator?: string | undefined;
|
|
106
106
|
properties?: Record<string, unknown> | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseServiceBuilder, HederaAgentKit } from 'hedera-agent-kit';
|
|
2
|
-
import { HCS2Client, CreateRegistryOptions, RegisterEntryOptions, UpdateEntryOptions, DeleteEntryOptions, MigrateTopicOptions, QueryRegistryOptions,
|
|
2
|
+
import { HCS2Client, CreateRegistryOptions, RegisterEntryOptions, UpdateEntryOptions, DeleteEntryOptions, MigrateTopicOptions, QueryRegistryOptions, TopicRegistry } from '@hashgraphonline/standards-sdk';
|
|
3
|
+
import { TopicRegistrationResult, RegistryOperationResult, SubmitMessageResult } from '../../types/tx-results';
|
|
3
4
|
/**
|
|
4
5
|
* Builder for HCS-2 operations that delegates to HCS2Client
|
|
5
6
|
*/
|
|
@@ -14,23 +15,23 @@ export declare class HCS2Builder extends BaseServiceBuilder {
|
|
|
14
15
|
* Create a new HCS-2 registry
|
|
15
16
|
* Note: This executes the transaction directly via HCS2Client
|
|
16
17
|
*/
|
|
17
|
-
createRegistry(options?: CreateRegistryOptions): Promise<
|
|
18
|
+
createRegistry(options?: CreateRegistryOptions): Promise<TopicRegistrationResult>;
|
|
18
19
|
/**
|
|
19
20
|
* Register a new entry in an HCS-2 registry
|
|
20
21
|
*/
|
|
21
|
-
registerEntry(registryTopicId: string, options: RegisterEntryOptions): Promise<
|
|
22
|
+
registerEntry(registryTopicId: string, options: RegisterEntryOptions): Promise<RegistryOperationResult>;
|
|
22
23
|
/**
|
|
23
24
|
* Update an existing entry in an HCS-2 registry
|
|
24
25
|
*/
|
|
25
|
-
updateEntry(registryTopicId: string, options: UpdateEntryOptions): Promise<
|
|
26
|
+
updateEntry(registryTopicId: string, options: UpdateEntryOptions): Promise<RegistryOperationResult>;
|
|
26
27
|
/**
|
|
27
28
|
* Delete an entry from an HCS-2 registry
|
|
28
29
|
*/
|
|
29
|
-
deleteEntry(registryTopicId: string, options: DeleteEntryOptions): Promise<
|
|
30
|
+
deleteEntry(registryTopicId: string, options: DeleteEntryOptions): Promise<RegistryOperationResult>;
|
|
30
31
|
/**
|
|
31
32
|
* Migrate an HCS-2 registry to a new topic
|
|
32
33
|
*/
|
|
33
|
-
migrateRegistry(registryTopicId: string, options: MigrateTopicOptions): Promise<
|
|
34
|
+
migrateRegistry(registryTopicId: string, options: MigrateTopicOptions): Promise<RegistryOperationResult>;
|
|
34
35
|
/**
|
|
35
36
|
* Query entries from an HCS-2 registry
|
|
36
37
|
*/
|
|
@@ -38,7 +39,7 @@ export declare class HCS2Builder extends BaseServiceBuilder {
|
|
|
38
39
|
/**
|
|
39
40
|
* Submit a raw message to an HCS-2 topic
|
|
40
41
|
*/
|
|
41
|
-
submitMessage(topicId: string, payload: any): Promise<
|
|
42
|
+
submitMessage(topicId: string, payload: any): Promise<SubmitMessageResult>;
|
|
42
43
|
/**
|
|
43
44
|
* Get topic info from mirror node
|
|
44
45
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseServiceBuilder, HederaAgentKit } from 'hedera-agent-kit';
|
|
2
|
-
import { HCS6Client, HCS6CreateRegistryOptions, HCS6RegisterEntryOptions, HCS6QueryRegistryOptions, HCS6RegisterOptions, HCS6CreateHashinalOptions,
|
|
2
|
+
import { HCS6Client, HCS6CreateRegistryOptions, HCS6RegisterEntryOptions, HCS6QueryRegistryOptions, HCS6RegisterOptions, HCS6CreateHashinalOptions, HCS6TopicRegistry, HCS6CreateHashinalResponse } from '@hashgraphonline/standards-sdk';
|
|
3
|
+
import { HCS6TopicRegistrationResult, HCS6RegistryOperationResult } from '../../types/tx-results';
|
|
3
4
|
/**
|
|
4
5
|
* Builder for HCS-6 operations that delegates to HCS6Client
|
|
5
6
|
*/
|
|
@@ -14,11 +15,11 @@ export declare class HCS6Builder extends BaseServiceBuilder {
|
|
|
14
15
|
* Create a new HCS-6 dynamic registry
|
|
15
16
|
* Note: This executes the transaction directly via HCS6Client
|
|
16
17
|
*/
|
|
17
|
-
createRegistry(options?: HCS6CreateRegistryOptions): Promise<
|
|
18
|
+
createRegistry(options?: HCS6CreateRegistryOptions): Promise<HCS6TopicRegistrationResult>;
|
|
18
19
|
/**
|
|
19
20
|
* Register a new dynamic hashinal entry in an HCS-6 registry
|
|
20
21
|
*/
|
|
21
|
-
registerEntry(registryTopicId: string, options: HCS6RegisterEntryOptions): Promise<
|
|
22
|
+
registerEntry(registryTopicId: string, options: HCS6RegisterEntryOptions): Promise<HCS6RegistryOperationResult>;
|
|
22
23
|
/**
|
|
23
24
|
* Query entries from an HCS-6 registry
|
|
24
25
|
*/
|
|
@@ -35,7 +36,7 @@ export declare class HCS6Builder extends BaseServiceBuilder {
|
|
|
35
36
|
/**
|
|
36
37
|
* Submit a raw message to an HCS-6 topic
|
|
37
38
|
*/
|
|
38
|
-
submitMessage(topicId: string, payload: any): Promise<
|
|
39
|
+
submitMessage(topicId: string, payload: any): Promise<HCS6RegistryOperationResult>;
|
|
39
40
|
/**
|
|
40
41
|
* Get topic info from mirror node
|
|
41
42
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseServiceBuilder, HederaAgentKit } from 'hedera-agent-kit';
|
|
1
|
+
import { BaseServiceBuilder, HederaAgentKit, AgentOperationalMode } from 'hedera-agent-kit';
|
|
2
2
|
import { InscriptionInput, InscriptionOptions, InscriptionResponse, RetrievedInscriptionResult } from '@hashgraphonline/standards-sdk';
|
|
3
3
|
import { InscriptionSDK } from '@kiloscribe/inscription-sdk';
|
|
4
4
|
/**
|
|
@@ -15,7 +15,37 @@ interface DAppSigner {
|
|
|
15
15
|
*/
|
|
16
16
|
export declare class InscriberBuilder extends BaseServiceBuilder {
|
|
17
17
|
protected inscriptionSDK?: InscriptionSDK;
|
|
18
|
+
private static signerProvider?;
|
|
19
|
+
private static walletInfoResolver?;
|
|
20
|
+
private static startInscriptionDelegate?;
|
|
21
|
+
private static walletExecutor?;
|
|
22
|
+
/** When true, do not allow server fallback; require a wallet path in Provide Bytes */
|
|
23
|
+
private static preferWalletOnly;
|
|
18
24
|
constructor(hederaKit: HederaAgentKit);
|
|
25
|
+
getOperationalMode(): AgentOperationalMode;
|
|
26
|
+
static setSignerProvider(provider: () => Promise<DAppSigner | null> | DAppSigner | null): void;
|
|
27
|
+
static setWalletInfoResolver(resolver: () => Promise<{
|
|
28
|
+
accountId: string;
|
|
29
|
+
network: 'mainnet' | 'testnet';
|
|
30
|
+
} | null> | {
|
|
31
|
+
accountId: string;
|
|
32
|
+
network: 'mainnet' | 'testnet';
|
|
33
|
+
} | null): void;
|
|
34
|
+
static setStartInscriptionDelegate(delegate: (request: Record<string, unknown>, network: 'mainnet' | 'testnet') => Promise<{
|
|
35
|
+
transactionBytes: string;
|
|
36
|
+
tx_id?: string;
|
|
37
|
+
topic_id?: string;
|
|
38
|
+
status?: string;
|
|
39
|
+
completed?: boolean;
|
|
40
|
+
}>): void;
|
|
41
|
+
static setWalletExecutor(executor: (base64: string, network: 'mainnet' | 'testnet') => Promise<{
|
|
42
|
+
transactionId: string;
|
|
43
|
+
}>): void;
|
|
44
|
+
/**
|
|
45
|
+
* Control fallback behavior. When true, wallet must be available for execution paths.
|
|
46
|
+
*/
|
|
47
|
+
static setPreferWalletOnly(flag: boolean): void;
|
|
48
|
+
getSigner(): Promise<DAppSigner | null>;
|
|
19
49
|
/**
|
|
20
50
|
* Get or create Inscription SDK - temporarily returns null since we don't have the actual SDK
|
|
21
51
|
*/
|
|
@@ -28,6 +58,7 @@ export declare class InscriberBuilder extends BaseServiceBuilder {
|
|
|
28
58
|
* Inscribe content using a DApp signer
|
|
29
59
|
*/
|
|
30
60
|
inscribeWithSigner(input: InscriptionInput, signer: DAppSigner, options: InscriptionOptions): Promise<InscriptionResponse>;
|
|
61
|
+
inscribeAuto(input: InscriptionInput, options: InscriptionOptions): Promise<InscriptionResponse>;
|
|
31
62
|
/**
|
|
32
63
|
* Retrieve an existing inscription
|
|
33
64
|
*/
|
package/dist/es/index.d.ts
CHANGED
|
@@ -9,3 +9,7 @@ export type { ExecuteResult } from './builders';
|
|
|
9
9
|
export { HCS10Client } from './hcs10';
|
|
10
10
|
export type { ContentReferenceConfig } from './config/ContentReferenceConfig';
|
|
11
11
|
export { loadConfig } from './config/ContentReferenceConfig';
|
|
12
|
+
export { SignerProviderRegistry } from './signing/signer-provider';
|
|
13
|
+
export type { DAppSigner, WalletInfo, WalletExecutor, StartHCSDelegate, NetworkString } from './signing/signer-provider';
|
|
14
|
+
export { ByteBuildRegistry } from './signing/bytes-registry';
|
|
15
|
+
export type { ByteBuildHandler } from './signing/bytes-registry';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HederaAgentKit } from 'hedera-agent-kit';
|
|
2
|
+
export type ByteBuildHandler = (ctx: {
|
|
3
|
+
hederaKit: HederaAgentKit;
|
|
4
|
+
request: Record<string, unknown>;
|
|
5
|
+
}) => Promise<{
|
|
6
|
+
transactionBytes: string;
|
|
7
|
+
}>;
|
|
8
|
+
declare class ByteBuildRegistryImpl {
|
|
9
|
+
private handlers;
|
|
10
|
+
register(op: string, handler: ByteBuildHandler): void;
|
|
11
|
+
has(op: string): boolean;
|
|
12
|
+
build(op: string, hederaKit: HederaAgentKit, request: Record<string, unknown>): Promise<{
|
|
13
|
+
transactionBytes: string;
|
|
14
|
+
} | null>;
|
|
15
|
+
}
|
|
16
|
+
export declare const ByteBuildRegistry: ByteBuildRegistryImpl;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export type NetworkString = 'mainnet' | 'testnet';
|
|
2
|
+
export interface DAppSigner {
|
|
3
|
+
getAccountId(): {
|
|
4
|
+
toString(): string;
|
|
5
|
+
};
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
}
|
|
8
|
+
export type WalletInfo = {
|
|
9
|
+
accountId: string;
|
|
10
|
+
network: NetworkString;
|
|
11
|
+
};
|
|
12
|
+
export type WalletInfoResolver = () => Promise<WalletInfo | null> | WalletInfo | null;
|
|
13
|
+
export type WalletExecutor = (base64: string, network: NetworkString) => Promise<{
|
|
14
|
+
transactionId: string;
|
|
15
|
+
}>;
|
|
16
|
+
export type HCSOperation = 'submitConnectionRequest' | 'handleConnectionRequest' | 'sendMessage' | 'hcs2.createRegistry' | 'hcs2.migrateRegistry' | 'hcs2.registerEntry' | 'hcs2.updateEntry' | 'hcs2.deleteEntry' | 'hcs2.submitMessage' | 'hcs6.createRegistry' | 'hcs6.registerEntry' | 'hcs6.submitMessage';
|
|
17
|
+
export type StartHCSDelegate = (op: HCSOperation, request: Record<string, unknown>, network: NetworkString) => Promise<{
|
|
18
|
+
transactionBytes: string;
|
|
19
|
+
}>;
|
|
20
|
+
/**
|
|
21
|
+
* Central registry for browser signer and wallet execution delegates
|
|
22
|
+
*/
|
|
23
|
+
export declare class SignerProviderRegistry {
|
|
24
|
+
private static _signerProvider;
|
|
25
|
+
private static _walletInfoResolver;
|
|
26
|
+
private static _walletExecutor;
|
|
27
|
+
private static _startHCSDelegate;
|
|
28
|
+
private static _browserHCSClientFactory;
|
|
29
|
+
private static _preferWalletOnly;
|
|
30
|
+
static setSignerProvider(provider: typeof SignerProviderRegistry._signerProvider): void;
|
|
31
|
+
static getSigner(): Promise<DAppSigner | null>;
|
|
32
|
+
static setWalletInfoResolver(resolver: WalletInfoResolver | null): void;
|
|
33
|
+
static getWalletInfo(): Promise<WalletInfo | null>;
|
|
34
|
+
static setWalletExecutor(executor: WalletExecutor | null): void;
|
|
35
|
+
static get walletExecutor(): WalletExecutor | null;
|
|
36
|
+
static setStartHCSDelegate(delegate: StartHCSDelegate | null): void;
|
|
37
|
+
static get startHCSDelegate(): StartHCSDelegate | null;
|
|
38
|
+
static setPreferWalletOnly(flag: boolean): void;
|
|
39
|
+
/**
|
|
40
|
+
* Register a factory to construct a BrowserHCSClient-like instance for wallet-driven flows
|
|
41
|
+
*/
|
|
42
|
+
static setBrowserHCSClientFactory(factory: ((network: NetworkString) => unknown) | null): void;
|
|
43
|
+
static getBrowserHCSClient(network: NetworkString): unknown | null;
|
|
44
|
+
static get preferWalletOnly(): boolean;
|
|
45
|
+
}
|