@hashgraphonline/standards-agent-kit 0.2.112 → 0.2.113

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.
Files changed (126) hide show
  1. package/dist/cjs/index.d.ts +1 -1
  2. package/dist/cjs/standards-agent-kit.cjs +1 -1
  3. package/dist/cjs/standards-agent-kit.cjs.map +1 -1
  4. package/dist/cjs/tools/hcs6/CreateDynamicRegistryTool.d.ts +44 -0
  5. package/dist/cjs/tools/hcs6/QueryDynamicRegistryTool.d.ts +50 -0
  6. package/dist/cjs/tools/hcs6/RegisterDynamicHashinalTool.d.ts +102 -0
  7. package/dist/cjs/tools/hcs6/UpdateDynamicHashinalTool.d.ts +96 -0
  8. package/dist/cjs/tools/hcs6/base-hcs6-tools.d.ts +28 -0
  9. package/dist/cjs/tools/hcs6/hcs6-tool-params.d.ts +18 -0
  10. package/dist/cjs/tools/hcs6/index.d.ts +6 -0
  11. package/dist/cjs/tools/index.d.ts +1 -0
  12. package/dist/cjs/tools/inscriber/InscribeFromBufferTool.d.ts +4 -4
  13. package/dist/es/index.d.ts +1 -1
  14. package/dist/es/standards-agent-kit.es.js +44 -31
  15. package/dist/es/standards-agent-kit.es.js.map +1 -1
  16. package/dist/es/standards-agent-kit.es10.js +27 -27
  17. package/dist/es/standards-agent-kit.es10.js.map +1 -1
  18. package/dist/es/standards-agent-kit.es11.js +20 -30
  19. package/dist/es/standards-agent-kit.es11.js.map +1 -1
  20. package/dist/es/standards-agent-kit.es12.js +27 -37
  21. package/dist/es/standards-agent-kit.es12.js.map +1 -1
  22. package/dist/es/standards-agent-kit.es13.js +48 -60
  23. package/dist/es/standards-agent-kit.es13.js.map +1 -1
  24. package/dist/es/standards-agent-kit.es14.js +60 -23
  25. package/dist/es/standards-agent-kit.es14.js.map +1 -1
  26. package/dist/es/standards-agent-kit.es15.js +23 -23
  27. package/dist/es/standards-agent-kit.es15.js.map +1 -1
  28. package/dist/es/standards-agent-kit.es16.js +23 -33
  29. package/dist/es/standards-agent-kit.es16.js.map +1 -1
  30. package/dist/es/standards-agent-kit.es17.js +34 -10
  31. package/dist/es/standards-agent-kit.es17.js.map +1 -1
  32. package/dist/es/standards-agent-kit.es18.js +16 -155
  33. package/dist/es/standards-agent-kit.es18.js.map +1 -1
  34. package/dist/es/standards-agent-kit.es19.js +150 -22
  35. package/dist/es/standards-agent-kit.es19.js.map +1 -1
  36. package/dist/es/standards-agent-kit.es20.js +25 -39
  37. package/dist/es/standards-agent-kit.es20.js.map +1 -1
  38. package/dist/es/standards-agent-kit.es21.js +26 -28
  39. package/dist/es/standards-agent-kit.es21.js.map +1 -1
  40. package/dist/es/standards-agent-kit.es22.js +16 -19
  41. package/dist/es/standards-agent-kit.es22.js.map +1 -1
  42. package/dist/es/standards-agent-kit.es23.js +21 -15
  43. package/dist/es/standards-agent-kit.es23.js.map +1 -1
  44. package/dist/es/standards-agent-kit.es24.js +18 -21
  45. package/dist/es/standards-agent-kit.es24.js.map +1 -1
  46. package/dist/es/standards-agent-kit.es25.js +35 -32
  47. package/dist/es/standards-agent-kit.es25.js.map +1 -1
  48. package/dist/es/standards-agent-kit.es26.js +38 -25
  49. package/dist/es/standards-agent-kit.es26.js.map +1 -1
  50. package/dist/es/standards-agent-kit.es27.js +25 -116
  51. package/dist/es/standards-agent-kit.es27.js.map +1 -1
  52. package/dist/es/standards-agent-kit.es28.js +33 -166
  53. package/dist/es/standards-agent-kit.es28.js.map +1 -1
  54. package/dist/es/standards-agent-kit.es29.js +42 -121
  55. package/dist/es/standards-agent-kit.es29.js.map +1 -1
  56. package/dist/es/standards-agent-kit.es30.js +40 -77
  57. package/dist/es/standards-agent-kit.es30.js.map +1 -1
  58. package/dist/es/standards-agent-kit.es31.js +42 -37
  59. package/dist/es/standards-agent-kit.es31.js.map +1 -1
  60. package/dist/es/standards-agent-kit.es32.js +20 -237
  61. package/dist/es/standards-agent-kit.es32.js.map +1 -1
  62. package/dist/es/standards-agent-kit.es33.js +154 -135
  63. package/dist/es/standards-agent-kit.es33.js.map +1 -1
  64. package/dist/es/standards-agent-kit.es34.js +168 -23
  65. package/dist/es/standards-agent-kit.es34.js.map +1 -1
  66. package/dist/es/standards-agent-kit.es35.js +126 -21
  67. package/dist/es/standards-agent-kit.es35.js.map +1 -1
  68. package/dist/es/standards-agent-kit.es36.js +86 -3
  69. package/dist/es/standards-agent-kit.es36.js.map +1 -1
  70. package/dist/es/standards-agent-kit.es37.js +45 -0
  71. package/dist/es/standards-agent-kit.es37.js.map +1 -0
  72. package/dist/es/standards-agent-kit.es38.js +249 -0
  73. package/dist/es/standards-agent-kit.es38.js.map +1 -0
  74. package/dist/es/standards-agent-kit.es39.js +141 -0
  75. package/dist/es/standards-agent-kit.es39.js.map +1 -0
  76. package/dist/es/standards-agent-kit.es4.js +65 -32
  77. package/dist/es/standards-agent-kit.es4.js.map +1 -1
  78. package/dist/es/standards-agent-kit.es40.js +33 -0
  79. package/dist/es/standards-agent-kit.es40.js.map +1 -0
  80. package/dist/es/standards-agent-kit.es41.js +28 -0
  81. package/dist/es/standards-agent-kit.es41.js.map +1 -0
  82. package/dist/es/standards-agent-kit.es42.js +7 -0
  83. package/dist/es/standards-agent-kit.es42.js.map +1 -0
  84. package/dist/es/standards-agent-kit.es5.js +35 -311
  85. package/dist/es/standards-agent-kit.es5.js.map +1 -1
  86. package/dist/es/standards-agent-kit.es6.js +320 -20
  87. package/dist/es/standards-agent-kit.es6.js.map +1 -1
  88. package/dist/es/standards-agent-kit.es7.js +19 -227
  89. package/dist/es/standards-agent-kit.es7.js.map +1 -1
  90. package/dist/es/standards-agent-kit.es8.js +216 -65
  91. package/dist/es/standards-agent-kit.es8.js.map +1 -1
  92. package/dist/es/standards-agent-kit.es9.js +72 -23
  93. package/dist/es/standards-agent-kit.es9.js.map +1 -1
  94. package/dist/es/tools/hcs6/CreateDynamicRegistryTool.d.ts +44 -0
  95. package/dist/es/tools/hcs6/QueryDynamicRegistryTool.d.ts +50 -0
  96. package/dist/es/tools/hcs6/RegisterDynamicHashinalTool.d.ts +102 -0
  97. package/dist/es/tools/hcs6/UpdateDynamicHashinalTool.d.ts +96 -0
  98. package/dist/es/tools/hcs6/base-hcs6-tools.d.ts +28 -0
  99. package/dist/es/tools/hcs6/hcs6-tool-params.d.ts +18 -0
  100. package/dist/es/tools/hcs6/index.d.ts +6 -0
  101. package/dist/es/tools/index.d.ts +1 -0
  102. package/dist/es/tools/inscriber/InscribeFromBufferTool.d.ts +4 -4
  103. package/dist/umd/index.d.ts +1 -1
  104. package/dist/umd/standards-agent-kit.umd.js +1 -1
  105. package/dist/umd/standards-agent-kit.umd.js.map +1 -1
  106. package/dist/umd/tools/hcs6/CreateDynamicRegistryTool.d.ts +44 -0
  107. package/dist/umd/tools/hcs6/QueryDynamicRegistryTool.d.ts +50 -0
  108. package/dist/umd/tools/hcs6/RegisterDynamicHashinalTool.d.ts +102 -0
  109. package/dist/umd/tools/hcs6/UpdateDynamicHashinalTool.d.ts +96 -0
  110. package/dist/umd/tools/hcs6/base-hcs6-tools.d.ts +28 -0
  111. package/dist/umd/tools/hcs6/hcs6-tool-params.d.ts +18 -0
  112. package/dist/umd/tools/hcs6/index.d.ts +6 -0
  113. package/dist/umd/tools/index.d.ts +1 -0
  114. package/dist/umd/tools/inscriber/InscribeFromBufferTool.d.ts +4 -4
  115. package/package.json +1 -1
  116. package/src/index.ts +1 -1
  117. package/src/tools/hcs6/CreateDynamicRegistryTool.ts +66 -0
  118. package/src/tools/hcs6/QueryDynamicRegistryTool.ts +72 -0
  119. package/src/tools/hcs6/RegisterDynamicHashinalTool.ts +79 -0
  120. package/src/tools/hcs6/UpdateDynamicHashinalTool.ts +74 -0
  121. package/src/tools/hcs6/base-hcs6-tools.ts +63 -0
  122. package/src/tools/hcs6/hcs6-tool-params.ts +21 -0
  123. package/src/tools/hcs6/index.ts +6 -0
  124. package/src/tools/index.ts +1 -0
  125. package/src/tools/inscriber/InscribeFromBufferTool.ts +1 -1
  126. package/src/tools/inscriber/InscribeFromUrlTool.ts +60 -7
@@ -0,0 +1,44 @@
1
+ import { z } from 'zod';
2
+ import { BaseHCS6TransactionTool } from './base-hcs6-tools';
3
+ import { HCS6TransactionToolParams } from './hcs6-tool-params';
4
+ import { TransactionResponse } from 'hedera-agent-kit';
5
+ /**
6
+ * Schema for creating a dynamic hashinal registry
7
+ */
8
+ declare const CreateDynamicRegistrySchema: z.ZodObject<{
9
+ ttl: z.ZodDefault<z.ZodNumber>;
10
+ adminKey: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
11
+ submitKey: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ ttl: number;
14
+ adminKey?: string | boolean | undefined;
15
+ submitKey?: string | boolean | undefined;
16
+ }, {
17
+ ttl?: number | undefined;
18
+ adminKey?: string | boolean | undefined;
19
+ submitKey?: string | boolean | undefined;
20
+ }>;
21
+ export type CreateDynamicRegistryInput = z.infer<typeof CreateDynamicRegistrySchema>;
22
+ /**
23
+ * Tool for creating HCS-6 dynamic registries
24
+ */
25
+ export declare class CreateDynamicRegistryTool extends BaseHCS6TransactionTool<typeof CreateDynamicRegistrySchema> {
26
+ name: string;
27
+ description: string;
28
+ schema: z.ZodObject<{
29
+ ttl: z.ZodDefault<z.ZodNumber>;
30
+ adminKey: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
31
+ submitKey: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ ttl: number;
34
+ adminKey?: string | boolean | undefined;
35
+ submitKey?: string | boolean | undefined;
36
+ }, {
37
+ ttl?: number | undefined;
38
+ adminKey?: string | boolean | undefined;
39
+ submitKey?: string | boolean | undefined;
40
+ }>;
41
+ constructor(params: HCS6TransactionToolParams);
42
+ protected _call(params: CreateDynamicRegistryInput): Promise<TransactionResponse>;
43
+ }
44
+ export {};
@@ -0,0 +1,50 @@
1
+ import { z } from 'zod';
2
+ import { BaseHCS6QueryTool } from './base-hcs6-tools';
3
+ import { HCS6QueryToolParams } from './hcs6-tool-params';
4
+ import { TransactionResponse } from 'hedera-agent-kit';
5
+ /**
6
+ * Schema for querying a dynamic registry
7
+ */
8
+ declare const QueryDynamicRegistrySchema: z.ZodObject<{
9
+ topicId: z.ZodString;
10
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
11
+ order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
12
+ skip: z.ZodOptional<z.ZodNumber>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ topicId: string;
15
+ limit: number;
16
+ order: "asc" | "desc";
17
+ skip?: number | undefined;
18
+ }, {
19
+ topicId: string;
20
+ limit?: number | undefined;
21
+ order?: "asc" | "desc" | undefined;
22
+ skip?: number | undefined;
23
+ }>;
24
+ export type QueryDynamicRegistryInput = z.infer<typeof QueryDynamicRegistrySchema>;
25
+ /**
26
+ * Tool for querying HCS-6 dynamic registries
27
+ */
28
+ export declare class QueryDynamicRegistryTool extends BaseHCS6QueryTool<typeof QueryDynamicRegistrySchema> {
29
+ name: string;
30
+ description: string;
31
+ schema: z.ZodObject<{
32
+ topicId: z.ZodString;
33
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
34
+ order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
35
+ skip: z.ZodOptional<z.ZodNumber>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ topicId: string;
38
+ limit: number;
39
+ order: "asc" | "desc";
40
+ skip?: number | undefined;
41
+ }, {
42
+ topicId: string;
43
+ limit?: number | undefined;
44
+ order?: "asc" | "desc" | undefined;
45
+ skip?: number | undefined;
46
+ }>;
47
+ constructor(params: HCS6QueryToolParams);
48
+ protected _call(params: QueryDynamicRegistryInput): Promise<TransactionResponse>;
49
+ }
50
+ export {};
@@ -0,0 +1,102 @@
1
+ import { z } from 'zod';
2
+ import { BaseHCS6TransactionTool } from './base-hcs6-tools';
3
+ import { HCS6TransactionToolParams } from './hcs6-tool-params';
4
+ import { TransactionResponse } from 'hedera-agent-kit';
5
+ /**
6
+ * Schema for registering a dynamic hashinal
7
+ */
8
+ declare const RegisterDynamicHashinalSchema: z.ZodObject<{
9
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
10
+ data: z.ZodOptional<z.ZodObject<{
11
+ base64: z.ZodOptional<z.ZodString>;
12
+ url: z.ZodOptional<z.ZodString>;
13
+ mimeType: z.ZodOptional<z.ZodString>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ base64?: string | undefined;
16
+ url?: string | undefined;
17
+ mimeType?: string | undefined;
18
+ }, {
19
+ base64?: string | undefined;
20
+ url?: string | undefined;
21
+ mimeType?: string | undefined;
22
+ }>>;
23
+ memo: z.ZodOptional<z.ZodString>;
24
+ ttl: z.ZodDefault<z.ZodNumber>;
25
+ registryTopicId: z.ZodOptional<z.ZodString>;
26
+ submitKey: z.ZodOptional<z.ZodString>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ metadata: Record<string, unknown>;
29
+ ttl: number;
30
+ data?: {
31
+ base64?: string | undefined;
32
+ url?: string | undefined;
33
+ mimeType?: string | undefined;
34
+ } | undefined;
35
+ memo?: string | undefined;
36
+ submitKey?: string | undefined;
37
+ registryTopicId?: string | undefined;
38
+ }, {
39
+ metadata: Record<string, unknown>;
40
+ data?: {
41
+ base64?: string | undefined;
42
+ url?: string | undefined;
43
+ mimeType?: string | undefined;
44
+ } | undefined;
45
+ memo?: string | undefined;
46
+ ttl?: number | undefined;
47
+ submitKey?: string | undefined;
48
+ registryTopicId?: string | undefined;
49
+ }>;
50
+ export type RegisterDynamicHashinalInput = z.infer<typeof RegisterDynamicHashinalSchema>;
51
+ /**
52
+ * Tool for registering (creating) dynamic hashinals
53
+ */
54
+ export declare class RegisterDynamicHashinalTool extends BaseHCS6TransactionTool<typeof RegisterDynamicHashinalSchema> {
55
+ name: string;
56
+ description: string;
57
+ schema: z.ZodObject<{
58
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
59
+ data: z.ZodOptional<z.ZodObject<{
60
+ base64: z.ZodOptional<z.ZodString>;
61
+ url: z.ZodOptional<z.ZodString>;
62
+ mimeType: z.ZodOptional<z.ZodString>;
63
+ }, "strip", z.ZodTypeAny, {
64
+ base64?: string | undefined;
65
+ url?: string | undefined;
66
+ mimeType?: string | undefined;
67
+ }, {
68
+ base64?: string | undefined;
69
+ url?: string | undefined;
70
+ mimeType?: string | undefined;
71
+ }>>;
72
+ memo: z.ZodOptional<z.ZodString>;
73
+ ttl: z.ZodDefault<z.ZodNumber>;
74
+ registryTopicId: z.ZodOptional<z.ZodString>;
75
+ submitKey: z.ZodOptional<z.ZodString>;
76
+ }, "strip", z.ZodTypeAny, {
77
+ metadata: Record<string, unknown>;
78
+ ttl: number;
79
+ data?: {
80
+ base64?: string | undefined;
81
+ url?: string | undefined;
82
+ mimeType?: string | undefined;
83
+ } | undefined;
84
+ memo?: string | undefined;
85
+ submitKey?: string | undefined;
86
+ registryTopicId?: string | undefined;
87
+ }, {
88
+ metadata: Record<string, unknown>;
89
+ data?: {
90
+ base64?: string | undefined;
91
+ url?: string | undefined;
92
+ mimeType?: string | undefined;
93
+ } | undefined;
94
+ memo?: string | undefined;
95
+ ttl?: number | undefined;
96
+ submitKey?: string | undefined;
97
+ registryTopicId?: string | undefined;
98
+ }>;
99
+ constructor(params: HCS6TransactionToolParams);
100
+ protected _call(params: RegisterDynamicHashinalInput): Promise<TransactionResponse>;
101
+ }
102
+ export {};
@@ -0,0 +1,96 @@
1
+ import { z } from 'zod';
2
+ import { BaseHCS6TransactionTool } from './base-hcs6-tools';
3
+ import { HCS6TransactionToolParams } from './hcs6-tool-params';
4
+ import { TransactionResponse } from 'hedera-agent-kit';
5
+ /**
6
+ * Schema for updating a dynamic hashinal
7
+ */
8
+ declare const UpdateDynamicHashinalSchema: z.ZodObject<{
9
+ registryTopicId: z.ZodString;
10
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
11
+ data: z.ZodOptional<z.ZodObject<{
12
+ base64: z.ZodOptional<z.ZodString>;
13
+ url: z.ZodOptional<z.ZodString>;
14
+ mimeType: z.ZodOptional<z.ZodString>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ base64?: string | undefined;
17
+ url?: string | undefined;
18
+ mimeType?: string | undefined;
19
+ }, {
20
+ base64?: string | undefined;
21
+ url?: string | undefined;
22
+ mimeType?: string | undefined;
23
+ }>>;
24
+ memo: z.ZodOptional<z.ZodString>;
25
+ submitKey: z.ZodString;
26
+ }, "strip", z.ZodTypeAny, {
27
+ metadata: Record<string, unknown>;
28
+ submitKey: string;
29
+ registryTopicId: string;
30
+ data?: {
31
+ base64?: string | undefined;
32
+ url?: string | undefined;
33
+ mimeType?: string | undefined;
34
+ } | undefined;
35
+ memo?: string | undefined;
36
+ }, {
37
+ metadata: Record<string, unknown>;
38
+ submitKey: string;
39
+ registryTopicId: string;
40
+ data?: {
41
+ base64?: string | undefined;
42
+ url?: string | undefined;
43
+ mimeType?: string | undefined;
44
+ } | undefined;
45
+ memo?: string | undefined;
46
+ }>;
47
+ export type UpdateDynamicHashinalInput = z.infer<typeof UpdateDynamicHashinalSchema>;
48
+ /**
49
+ * Tool for updating dynamic hashinals
50
+ */
51
+ export declare class UpdateDynamicHashinalTool extends BaseHCS6TransactionTool<typeof UpdateDynamicHashinalSchema> {
52
+ name: string;
53
+ description: string;
54
+ schema: z.ZodObject<{
55
+ registryTopicId: z.ZodString;
56
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
57
+ data: z.ZodOptional<z.ZodObject<{
58
+ base64: z.ZodOptional<z.ZodString>;
59
+ url: z.ZodOptional<z.ZodString>;
60
+ mimeType: z.ZodOptional<z.ZodString>;
61
+ }, "strip", z.ZodTypeAny, {
62
+ base64?: string | undefined;
63
+ url?: string | undefined;
64
+ mimeType?: string | undefined;
65
+ }, {
66
+ base64?: string | undefined;
67
+ url?: string | undefined;
68
+ mimeType?: string | undefined;
69
+ }>>;
70
+ memo: z.ZodOptional<z.ZodString>;
71
+ submitKey: z.ZodString;
72
+ }, "strip", z.ZodTypeAny, {
73
+ metadata: Record<string, unknown>;
74
+ submitKey: string;
75
+ registryTopicId: string;
76
+ data?: {
77
+ base64?: string | undefined;
78
+ url?: string | undefined;
79
+ mimeType?: string | undefined;
80
+ } | undefined;
81
+ memo?: string | undefined;
82
+ }, {
83
+ metadata: Record<string, unknown>;
84
+ submitKey: string;
85
+ registryTopicId: string;
86
+ data?: {
87
+ base64?: string | undefined;
88
+ url?: string | undefined;
89
+ mimeType?: string | undefined;
90
+ } | undefined;
91
+ memo?: string | undefined;
92
+ }>;
93
+ constructor(params: HCS6TransactionToolParams);
94
+ protected _call(params: UpdateDynamicHashinalInput): Promise<TransactionResponse>;
95
+ }
96
+ export {};
@@ -0,0 +1,28 @@
1
+ import { BaseHederaTransactionTool, BaseHederaQueryTool, BaseServiceBuilder } from 'hedera-agent-kit';
2
+ import { HCS6Builder } from '../../builders/hcs6/hcs6-builder';
3
+ import { HCS6TransactionToolParams, HCS6QueryToolParams } from './hcs6-tool-params';
4
+ import { z } from 'zod';
5
+ /**
6
+ * Base class for HCS6 transaction tools
7
+ */
8
+ export declare abstract class BaseHCS6TransactionTool<T extends z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny> = z.ZodObject<z.ZodRawShape>> extends BaseHederaTransactionTool<T> {
9
+ protected hcs6Builder: HCS6Builder;
10
+ namespace: "hcs6";
11
+ constructor(params: HCS6TransactionToolParams);
12
+ /**
13
+ * Override to return the HCS6Builder
14
+ */
15
+ protected getServiceBuilder(): BaseServiceBuilder;
16
+ }
17
+ /**
18
+ * Base class for HCS6 query tools
19
+ */
20
+ export declare abstract class BaseHCS6QueryTool<T extends z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny> = z.ZodObject<z.ZodRawShape>> extends BaseHederaQueryTool<T> {
21
+ protected hcs6Builder: HCS6Builder;
22
+ namespace: "hcs6";
23
+ constructor(params: HCS6QueryToolParams);
24
+ /**
25
+ * Override to return the HCS6Builder
26
+ */
27
+ protected getServiceBuilder(): BaseServiceBuilder;
28
+ }
@@ -0,0 +1,18 @@
1
+ import { HederaAgentKit, BasePluginContext } from 'hedera-agent-kit';
2
+ import { HCS6Builder } from '../../builders/hcs6/hcs6-builder';
3
+ /**
4
+ * Parameters for HCS6 transaction tools
5
+ */
6
+ export interface HCS6TransactionToolParams {
7
+ hederaKit: HederaAgentKit;
8
+ hcs6Builder: HCS6Builder;
9
+ logger?: BasePluginContext['logger'];
10
+ }
11
+ /**
12
+ * Parameters for HCS6 query tools
13
+ */
14
+ export interface HCS6QueryToolParams {
15
+ hederaKit: HederaAgentKit;
16
+ hcs6Builder: HCS6Builder;
17
+ logger?: BasePluginContext['logger'];
18
+ }
@@ -0,0 +1,6 @@
1
+ export * from './base-hcs6-tools';
2
+ export * from './hcs6-tool-params';
3
+ export * from './CreateDynamicRegistryTool';
4
+ export * from './RegisterDynamicHashinalTool';
5
+ export * from './UpdateDynamicHashinalTool';
6
+ export * from './QueryDynamicRegistryTool';
@@ -1,3 +1,4 @@
1
1
  export * from './hcs10';
2
2
  export * from './hcs2';
3
+ export * from './hcs6';
3
4
  export * from './inscriber';
@@ -20,23 +20,23 @@ declare const inscribeFromBufferSchema: z.ZodObject<{
20
20
  base64Data: string;
21
21
  tags?: string[] | undefined;
22
22
  metadata?: Record<string, unknown> | undefined;
23
+ mimeType?: string | undefined;
23
24
  mode?: "file" | "hashinal" | undefined;
24
25
  chunkSize?: number | undefined;
25
26
  waitForConfirmation?: boolean | undefined;
26
27
  apiKey?: string | undefined;
27
28
  timeoutMs?: number | undefined;
28
- mimeType?: string | undefined;
29
29
  }, {
30
30
  fileName: string;
31
31
  base64Data: string;
32
32
  tags?: string[] | undefined;
33
33
  metadata?: Record<string, unknown> | undefined;
34
+ mimeType?: string | undefined;
34
35
  mode?: "file" | "hashinal" | undefined;
35
36
  chunkSize?: number | undefined;
36
37
  waitForConfirmation?: boolean | undefined;
37
38
  apiKey?: string | undefined;
38
39
  timeoutMs?: number | undefined;
39
- mimeType?: string | undefined;
40
40
  }>;
41
41
  /**
42
42
  * Tool for inscribing content from buffer
@@ -60,23 +60,23 @@ export declare class InscribeFromBufferTool extends BaseInscriberQueryTool<typeo
60
60
  base64Data: string;
61
61
  tags?: string[] | undefined;
62
62
  metadata?: Record<string, unknown> | undefined;
63
+ mimeType?: string | undefined;
63
64
  mode?: "file" | "hashinal" | undefined;
64
65
  chunkSize?: number | undefined;
65
66
  waitForConfirmation?: boolean | undefined;
66
67
  apiKey?: string | undefined;
67
68
  timeoutMs?: number | undefined;
68
- mimeType?: string | undefined;
69
69
  }, {
70
70
  fileName: string;
71
71
  base64Data: string;
72
72
  tags?: string[] | undefined;
73
73
  metadata?: Record<string, unknown> | undefined;
74
+ mimeType?: string | undefined;
74
75
  mode?: "file" | "hashinal" | undefined;
75
76
  chunkSize?: number | undefined;
76
77
  waitForConfirmation?: boolean | undefined;
77
78
  apiKey?: string | undefined;
78
79
  timeoutMs?: number | undefined;
79
- mimeType?: string | undefined;
80
80
  }>;
81
81
  protected executeQuery(params: z.infer<typeof inscribeFromBufferSchema>, _runManager?: CallbackManagerForToolRun): Promise<unknown>;
82
82
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hashgraphonline/standards-agent-kit",
3
- "version": "0.2.112",
3
+ "version": "0.2.113",
4
4
  "description": "A modular SDK for building on-chain autonomous agents using Hashgraph Online Standards, including HCS-10 for agent discovery and communication.",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/standards-agent-kit.cjs",
package/src/index.ts CHANGED
@@ -2,6 +2,6 @@ export * from './tools';
2
2
  export * from './state';
3
3
  export * from './init';
4
4
  export * from './plugins';
5
- export { HCS10Builder, HCS2Builder, InscriberBuilder } from './builders';
5
+ export { HCS10Builder, HCS2Builder, HCS6Builder, InscriberBuilder } from './builders';
6
6
  export type { ExecuteResult } from './builders';
7
7
  export { HCS10Client } from './hcs10';
@@ -0,0 +1,66 @@
1
+ import { z } from 'zod';
2
+ import { BaseHCS6TransactionTool } from './base-hcs6-tools';
3
+ import { HCS6TransactionToolParams } from './hcs6-tool-params';
4
+ import type { TransactionResponse } from 'hedera-agent-kit';
5
+
6
+ /**
7
+ * Schema for creating a dynamic hashinal registry
8
+ */
9
+ const CreateDynamicRegistrySchema = z.object({
10
+ ttl: z.number()
11
+ .min(3600)
12
+ .default(86400)
13
+ .describe('Time-to-live in seconds (minimum 3600 seconds/1 hour)'),
14
+ adminKey: z.union([z.boolean(), z.string()])
15
+ .optional()
16
+ .describe('Admin key for the registry topic. Can be boolean (use operator key) or a public key string'),
17
+ submitKey: z.union([z.boolean(), z.string()])
18
+ .optional()
19
+ .describe('Submit key for the registry topic. Can be boolean (use operator key) or a public key string'),
20
+ });
21
+
22
+ export type CreateDynamicRegistryInput = z.infer<typeof CreateDynamicRegistrySchema>;
23
+
24
+ /**
25
+ * Tool for creating HCS-6 dynamic registries
26
+ */
27
+ export class CreateDynamicRegistryTool extends BaseHCS6TransactionTool<typeof CreateDynamicRegistrySchema> {
28
+ name = 'createDynamicRegistry';
29
+ description = 'Create a new HCS-6 dynamic registry for managing evolving content';
30
+ schema = CreateDynamicRegistrySchema;
31
+
32
+ constructor(params: HCS6TransactionToolParams) {
33
+ super(params);
34
+ }
35
+
36
+ protected async _call(
37
+ params: CreateDynamicRegistryInput
38
+ ): Promise<TransactionResponse> {
39
+ try {
40
+ const result = await this.hcs6Builder.createRegistry({
41
+ ttl: params.ttl,
42
+ adminKey: params.adminKey,
43
+ submitKey: params.submitKey,
44
+ });
45
+
46
+ if (!result.success) {
47
+ throw new Error(result.error || 'Failed to create dynamic registry');
48
+ }
49
+
50
+ return {
51
+ status: 'success',
52
+ data: {
53
+ topicId: result.topicId,
54
+ transactionId: result.transactionId,
55
+ ttl: params.ttl,
56
+ memo: `hcs-6:1:${params.ttl}`,
57
+ },
58
+ };
59
+ } catch (error) {
60
+ return {
61
+ status: 'error',
62
+ message: error instanceof Error ? error.message : 'Unknown error',
63
+ };
64
+ }
65
+ }
66
+ }
@@ -0,0 +1,72 @@
1
+ import { z } from 'zod';
2
+ import { BaseHCS6QueryTool } from './base-hcs6-tools';
3
+ import { HCS6QueryToolParams } from './hcs6-tool-params';
4
+ import type { TransactionResponse } from 'hedera-agent-kit';
5
+
6
+ /**
7
+ * Schema for querying a dynamic registry
8
+ */
9
+ const QueryDynamicRegistrySchema = z.object({
10
+ topicId: z.string()
11
+ .describe('The registry topic ID to query'),
12
+ limit: z.number()
13
+ .optional()
14
+ .default(100)
15
+ .describe('Maximum number of entries to retrieve'),
16
+ order: z.enum(['asc', 'desc'])
17
+ .optional()
18
+ .default('desc')
19
+ .describe('Order of entries (desc shows latest first)'),
20
+ skip: z.number()
21
+ .optional()
22
+ .describe('Number of entries to skip'),
23
+ });
24
+
25
+ export type QueryDynamicRegistryInput = z.infer<typeof QueryDynamicRegistrySchema>;
26
+
27
+ /**
28
+ * Tool for querying HCS-6 dynamic registries
29
+ */
30
+ export class QueryDynamicRegistryTool extends BaseHCS6QueryTool<typeof QueryDynamicRegistrySchema> {
31
+ name = 'queryDynamicRegistry';
32
+ description = 'Query a dynamic registry to get the current state of a dynamic hashinal';
33
+ schema = QueryDynamicRegistrySchema;
34
+
35
+ constructor(params: HCS6QueryToolParams) {
36
+ super(params);
37
+ }
38
+
39
+ protected async _call(
40
+ params: QueryDynamicRegistryInput
41
+ ): Promise<TransactionResponse> {
42
+ try {
43
+ const registry = await this.hcs6Builder.getRegistry(params.topicId, {
44
+ limit: params.limit,
45
+ order: params.order,
46
+ skip: params.skip,
47
+ });
48
+
49
+ return {
50
+ status: 'success',
51
+ data: {
52
+ topicId: registry.topicId,
53
+ registryType: 'NON_INDEXED',
54
+ ttl: registry.ttl,
55
+ latestEntry: registry.latestEntry ? {
56
+ topicId: registry.latestEntry.message.t_id,
57
+ timestamp: registry.latestEntry.timestamp,
58
+ memo: registry.latestEntry.message.m,
59
+ sequence: registry.latestEntry.sequence,
60
+ payer: registry.latestEntry.payer,
61
+ } : null,
62
+ totalEntries: registry.entries.length,
63
+ },
64
+ };
65
+ } catch (error) {
66
+ return {
67
+ status: 'error',
68
+ message: error instanceof Error ? error.message : 'Unknown error',
69
+ };
70
+ }
71
+ }
72
+ }
@@ -0,0 +1,79 @@
1
+ import { z } from 'zod';
2
+ import { BaseHCS6TransactionTool } from './base-hcs6-tools';
3
+ import { HCS6TransactionToolParams } from './hcs6-tool-params';
4
+ import type { TransactionResponse } from 'hedera-agent-kit';
5
+
6
+ /**
7
+ * Schema for registering a dynamic hashinal
8
+ */
9
+ const RegisterDynamicHashinalSchema = z.object({
10
+ metadata: z.record(z.unknown())
11
+ .describe('Metadata object for the hashinal (e.g., name, description, attributes)'),
12
+ data: z.object({
13
+ base64: z.string().optional().describe('Base64 encoded data for the hashinal'),
14
+ url: z.string().optional().describe('URL to fetch data from'),
15
+ mimeType: z.string().optional().describe('MIME type of the data'),
16
+ }).optional()
17
+ .describe('Data to inscribe with the hashinal'),
18
+ memo: z.string()
19
+ .optional()
20
+ .describe('Optional memo for the registration'),
21
+ ttl: z.number()
22
+ .min(3600)
23
+ .default(86400)
24
+ .describe('Time-to-live in seconds for the inscription'),
25
+ registryTopicId: z.string()
26
+ .optional()
27
+ .describe('Registry topic ID to use. If not provided, a new registry will be created'),
28
+ submitKey: z.string()
29
+ .optional()
30
+ .describe('Submit key for the registry (required if registry has a submit key)'),
31
+ });
32
+
33
+ export type RegisterDynamicHashinalInput = z.infer<typeof RegisterDynamicHashinalSchema>;
34
+
35
+ /**
36
+ * Tool for registering (creating) dynamic hashinals
37
+ */
38
+ export class RegisterDynamicHashinalTool extends BaseHCS6TransactionTool<typeof RegisterDynamicHashinalSchema> {
39
+ name = 'registerDynamicHashinal';
40
+ description = 'Create and register a new dynamic hashinal that can be updated over time';
41
+ schema = RegisterDynamicHashinalSchema;
42
+
43
+ constructor(params: HCS6TransactionToolParams) {
44
+ super(params);
45
+ }
46
+
47
+ protected async _call(
48
+ params: RegisterDynamicHashinalInput
49
+ ): Promise<TransactionResponse> {
50
+ try {
51
+ const result = await this.hcs6Builder.register({
52
+ metadata: params.metadata,
53
+ data: params.data,
54
+ memo: params.memo,
55
+ ttl: params.ttl,
56
+ registryTopicId: params.registryTopicId,
57
+ submitKey: params.submitKey,
58
+ });
59
+
60
+ if (!result.success || !result.registryTopicId || !result.inscriptionTopicId) {
61
+ throw new Error(result.error || 'Failed to register dynamic hashinal');
62
+ }
63
+
64
+ return {
65
+ status: 'success',
66
+ data: {
67
+ registryTopicId: result.registryTopicId,
68
+ inscriptionTopicId: result.inscriptionTopicId,
69
+ transactionId: result.transactionId,
70
+ },
71
+ };
72
+ } catch (error) {
73
+ return {
74
+ status: 'error',
75
+ message: error instanceof Error ? error.message : 'Unknown error',
76
+ };
77
+ }
78
+ }
79
+ }