@hashgraphonline/standards-agent-kit 0.0.33 → 0.0.35

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 (138) hide show
  1. package/dist/cjs/standards-agent-kit.cjs +1 -1
  2. package/dist/cjs/standards-agent-kit.cjs.map +1 -1
  3. package/dist/{umd/src → cjs}/tools/AcceptConnectionRequestTool.d.ts +6 -6
  4. package/dist/cjs/{src/tools → tools}/CheckMessagesTool.d.ts +6 -6
  5. package/dist/{es/src → cjs}/tools/ConnectionMonitorTool.d.ts +34 -34
  6. package/dist/{umd/src → cjs}/tools/FindRegistrationsTool.d.ts +4 -4
  7. package/dist/cjs/{src/tools → tools}/InitiateConnectionTool.d.ts +2 -2
  8. package/dist/{umd/src → cjs}/tools/ListConnectionsTool.d.ts +4 -4
  9. package/dist/{es/src → cjs}/tools/ListUnapprovedConnectionRequestsTool.d.ts +4 -4
  10. package/dist/{es/src → cjs}/tools/ManageConnectionRequestsTool.d.ts +4 -4
  11. package/dist/cjs/{src/tools → tools}/RegisterAgentTool.d.ts +76 -76
  12. package/dist/{es/src → cjs}/tools/RetrieveProfileTool.d.ts +4 -4
  13. package/dist/{es/src → cjs}/tools/SendMessageToConnectionTool.d.ts +6 -6
  14. package/dist/cjs/{src/tools → tools}/SendMessageTool.d.ts +6 -6
  15. package/dist/es/index.d.ts +5 -2
  16. package/dist/es/standards-agent-kit.es2.js.map +1 -1
  17. package/dist/es/standards-agent-kit.es7.js +12 -13
  18. package/dist/es/standards-agent-kit.es7.js.map +1 -1
  19. package/dist/es/{src/tools → tools}/AcceptConnectionRequestTool.d.ts +6 -6
  20. package/dist/{umd/src → es}/tools/CheckMessagesTool.d.ts +6 -6
  21. package/dist/{umd/src → es}/tools/ConnectionMonitorTool.d.ts +34 -34
  22. package/dist/{cjs/src → es}/tools/FindRegistrationsTool.d.ts +4 -4
  23. package/dist/{umd/src → es}/tools/InitiateConnectionTool.d.ts +2 -2
  24. package/dist/{cjs/src → es}/tools/ListConnectionsTool.d.ts +4 -4
  25. package/dist/{umd/src → es}/tools/ListUnapprovedConnectionRequestsTool.d.ts +4 -4
  26. package/dist/{umd/src → es}/tools/ManageConnectionRequestsTool.d.ts +4 -4
  27. package/dist/{umd/src → es}/tools/RegisterAgentTool.d.ts +76 -76
  28. package/dist/{cjs/src → es}/tools/RetrieveProfileTool.d.ts +4 -4
  29. package/dist/{umd/src → es}/tools/SendMessageToConnectionTool.d.ts +6 -6
  30. package/dist/{umd/src → es}/tools/SendMessageTool.d.ts +6 -6
  31. package/dist/umd/standards-agent-kit.umd.js +15 -14
  32. package/dist/umd/standards-agent-kit.umd.js.map +1 -1
  33. package/dist/{cjs/src → umd}/tools/AcceptConnectionRequestTool.d.ts +6 -6
  34. package/dist/{es/src → umd}/tools/CheckMessagesTool.d.ts +6 -6
  35. package/dist/{cjs/src → umd}/tools/ConnectionMonitorTool.d.ts +34 -34
  36. package/dist/{es/src → umd}/tools/FindRegistrationsTool.d.ts +4 -4
  37. package/dist/{es/src → umd}/tools/InitiateConnectionTool.d.ts +2 -2
  38. package/dist/{es/src → umd}/tools/ListConnectionsTool.d.ts +4 -4
  39. package/dist/{cjs/src → umd}/tools/ListUnapprovedConnectionRequestsTool.d.ts +4 -4
  40. package/dist/{cjs/src → umd}/tools/ManageConnectionRequestsTool.d.ts +4 -4
  41. package/dist/{es/src → umd}/tools/RegisterAgentTool.d.ts +76 -76
  42. package/dist/umd/{src/tools → tools}/RetrieveProfileTool.d.ts +4 -4
  43. package/dist/{cjs/src → umd}/tools/SendMessageToConnectionTool.d.ts +6 -6
  44. package/dist/{es/src → umd}/tools/SendMessageTool.d.ts +6 -6
  45. package/package.json +2 -2
  46. package/src/hcs10/HCS10Client.ts +3 -7
  47. package/src/index.ts +1 -1
  48. package/src/tools/InitiateConnectionTool.ts +13 -13
  49. package/dist/umd/src/index.d.ts +0 -5
  50. /package/dist/cjs/{src/agents → agents}/index.d.ts +0 -0
  51. /package/dist/cjs/{src/hcs10 → hcs10}/HCS10Client.d.ts +0 -0
  52. /package/dist/cjs/{src/hcs10 → hcs10}/index.d.ts +0 -0
  53. /package/dist/cjs/{src/hcs10 → hcs10}/types.d.ts +0 -0
  54. /package/dist/cjs/{src/index.d.ts → index.d.ts} +0 -0
  55. /package/dist/cjs/{src/init → init}/index.d.ts +0 -0
  56. /package/dist/cjs/{src/init → init}/init.d.ts +0 -0
  57. /package/dist/cjs/{src/plugins → plugins}/BasePlugin.d.ts +0 -0
  58. /package/dist/cjs/{src/plugins → plugins}/GenericPlugin.d.ts +0 -0
  59. /package/dist/cjs/{src/plugins → plugins}/HCS10Plugin.d.ts +0 -0
  60. /package/dist/cjs/{src/plugins → plugins}/PluginInterface.d.ts +0 -0
  61. /package/dist/cjs/{src/plugins → plugins}/PluginLoader.d.ts +0 -0
  62. /package/dist/cjs/{src/plugins → plugins}/PluginRegistry.d.ts +0 -0
  63. /package/dist/cjs/{src/plugins → plugins}/defi/index.d.ts +0 -0
  64. /package/dist/cjs/{src/plugins → plugins}/hedera/HbarPricePlugin.d.ts +0 -0
  65. /package/dist/cjs/{src/plugins → plugins}/hedera/index.d.ts +0 -0
  66. /package/dist/cjs/{src/plugins → plugins}/index.d.ts +0 -0
  67. /package/dist/cjs/{src/plugins → plugins}/openconvai/OpenConvAIPlugin.d.ts +0 -0
  68. /package/dist/cjs/{src/plugins → plugins}/openconvai/index.d.ts +0 -0
  69. /package/dist/cjs/{src/plugins → plugins}/weather/index.d.ts +0 -0
  70. /package/dist/cjs/{src/state → state}/index.d.ts +0 -0
  71. /package/dist/cjs/{src/state → state}/open-convai-state.d.ts +0 -0
  72. /package/dist/cjs/{src/state → state}/state-types.d.ts +0 -0
  73. /package/dist/cjs/{src/tools → tools}/ConnectionTool.d.ts +0 -0
  74. /package/dist/cjs/{src/tools → tools}/index.d.ts +0 -0
  75. /package/dist/cjs/{src/utils → utils}/Encryption.d.ts +0 -0
  76. /package/dist/cjs/{src/utils → utils}/HederaClient.d.ts +0 -0
  77. /package/dist/cjs/{src/utils → utils}/connectionUtils.d.ts +0 -0
  78. /package/dist/cjs/{src/utils → utils}/ensure-agent-has-hbar.d.ts +0 -0
  79. /package/dist/cjs/{src/utils → utils}/state-tools.d.ts +0 -0
  80. /package/dist/es/{src/agents → agents}/index.d.ts +0 -0
  81. /package/dist/es/{src/hcs10 → hcs10}/HCS10Client.d.ts +0 -0
  82. /package/dist/es/{src/hcs10 → hcs10}/index.d.ts +0 -0
  83. /package/dist/es/{src/hcs10 → hcs10}/types.d.ts +0 -0
  84. /package/dist/es/{src/init → init}/index.d.ts +0 -0
  85. /package/dist/es/{src/init → init}/init.d.ts +0 -0
  86. /package/dist/es/{src/plugins → plugins}/BasePlugin.d.ts +0 -0
  87. /package/dist/es/{src/plugins → plugins}/GenericPlugin.d.ts +0 -0
  88. /package/dist/es/{src/plugins → plugins}/HCS10Plugin.d.ts +0 -0
  89. /package/dist/es/{src/plugins → plugins}/PluginInterface.d.ts +0 -0
  90. /package/dist/es/{src/plugins → plugins}/PluginLoader.d.ts +0 -0
  91. /package/dist/es/{src/plugins → plugins}/PluginRegistry.d.ts +0 -0
  92. /package/dist/es/{src/plugins → plugins}/defi/index.d.ts +0 -0
  93. /package/dist/es/{src/plugins → plugins}/hedera/HbarPricePlugin.d.ts +0 -0
  94. /package/dist/es/{src/plugins → plugins}/hedera/index.d.ts +0 -0
  95. /package/dist/es/{src/plugins → plugins}/index.d.ts +0 -0
  96. /package/dist/es/{src/plugins → plugins}/openconvai/OpenConvAIPlugin.d.ts +0 -0
  97. /package/dist/es/{src/plugins → plugins}/openconvai/index.d.ts +0 -0
  98. /package/dist/es/{src/plugins → plugins}/weather/index.d.ts +0 -0
  99. /package/dist/es/{src/state → state}/index.d.ts +0 -0
  100. /package/dist/es/{src/state → state}/open-convai-state.d.ts +0 -0
  101. /package/dist/es/{src/state → state}/state-types.d.ts +0 -0
  102. /package/dist/es/{src/tools → tools}/ConnectionTool.d.ts +0 -0
  103. /package/dist/es/{src/tools → tools}/index.d.ts +0 -0
  104. /package/dist/es/{src/utils → utils}/Encryption.d.ts +0 -0
  105. /package/dist/es/{src/utils → utils}/HederaClient.d.ts +0 -0
  106. /package/dist/es/{src/utils → utils}/connectionUtils.d.ts +0 -0
  107. /package/dist/es/{src/utils → utils}/ensure-agent-has-hbar.d.ts +0 -0
  108. /package/dist/es/{src/utils → utils}/state-tools.d.ts +0 -0
  109. /package/dist/umd/{src/agents → agents}/index.d.ts +0 -0
  110. /package/dist/umd/{src/hcs10 → hcs10}/HCS10Client.d.ts +0 -0
  111. /package/dist/umd/{src/hcs10 → hcs10}/index.d.ts +0 -0
  112. /package/dist/umd/{src/hcs10 → hcs10}/types.d.ts +0 -0
  113. /package/dist/{es/src → umd}/index.d.ts +0 -0
  114. /package/dist/umd/{src/init → init}/index.d.ts +0 -0
  115. /package/dist/umd/{src/init → init}/init.d.ts +0 -0
  116. /package/dist/umd/{src/plugins → plugins}/BasePlugin.d.ts +0 -0
  117. /package/dist/umd/{src/plugins → plugins}/GenericPlugin.d.ts +0 -0
  118. /package/dist/umd/{src/plugins → plugins}/HCS10Plugin.d.ts +0 -0
  119. /package/dist/umd/{src/plugins → plugins}/PluginInterface.d.ts +0 -0
  120. /package/dist/umd/{src/plugins → plugins}/PluginLoader.d.ts +0 -0
  121. /package/dist/umd/{src/plugins → plugins}/PluginRegistry.d.ts +0 -0
  122. /package/dist/umd/{src/plugins → plugins}/defi/index.d.ts +0 -0
  123. /package/dist/umd/{src/plugins → plugins}/hedera/HbarPricePlugin.d.ts +0 -0
  124. /package/dist/umd/{src/plugins → plugins}/hedera/index.d.ts +0 -0
  125. /package/dist/umd/{src/plugins → plugins}/index.d.ts +0 -0
  126. /package/dist/umd/{src/plugins → plugins}/openconvai/OpenConvAIPlugin.d.ts +0 -0
  127. /package/dist/umd/{src/plugins → plugins}/openconvai/index.d.ts +0 -0
  128. /package/dist/umd/{src/plugins → plugins}/weather/index.d.ts +0 -0
  129. /package/dist/umd/{src/state → state}/index.d.ts +0 -0
  130. /package/dist/umd/{src/state → state}/open-convai-state.d.ts +0 -0
  131. /package/dist/umd/{src/state → state}/state-types.d.ts +0 -0
  132. /package/dist/umd/{src/tools → tools}/ConnectionTool.d.ts +0 -0
  133. /package/dist/umd/{src/tools → tools}/index.d.ts +0 -0
  134. /package/dist/umd/{src/utils → utils}/Encryption.d.ts +0 -0
  135. /package/dist/umd/{src/utils → utils}/HederaClient.d.ts +0 -0
  136. /package/dist/umd/{src/utils → utils}/connectionUtils.d.ts +0 -0
  137. /package/dist/umd/{src/utils → utils}/ensure-agent-has-hbar.d.ts +0 -0
  138. /package/dist/umd/{src/utils → utils}/state-tools.d.ts +0 -0
@@ -17,13 +17,13 @@ export declare class AcceptConnectionRequestTool extends StructuredTool {
17
17
  hbarFee: z.ZodOptional<z.ZodNumber>;
18
18
  exemptAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
19
19
  }, "strip", z.ZodTypeAny, {
20
- requestKey: string;
21
- hbarFee?: number | undefined;
22
- exemptAccountIds?: string[] | undefined;
20
+ hbarFee?: number;
21
+ exemptAccountIds?: string[];
22
+ requestKey?: string;
23
23
  }, {
24
- requestKey: string;
25
- hbarFee?: number | undefined;
26
- exemptAccountIds?: string[] | undefined;
24
+ hbarFee?: number;
25
+ exemptAccountIds?: string[];
26
+ requestKey?: string;
27
27
  }>;
28
28
  private hcsClient;
29
29
  private stateManager;
@@ -18,13 +18,13 @@ export declare class CheckMessagesTool extends StructuredTool {
18
18
  fetchLatest: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
19
19
  lastMessagesCount: z.ZodOptional<z.ZodNumber>;
20
20
  }, "strip", z.ZodTypeAny, {
21
- targetIdentifier: string;
22
- fetchLatest: boolean;
23
- lastMessagesCount?: number | undefined;
21
+ targetIdentifier?: string;
22
+ fetchLatest?: boolean;
23
+ lastMessagesCount?: number;
24
24
  }, {
25
- targetIdentifier: string;
26
- fetchLatest?: boolean | undefined;
27
- lastMessagesCount?: number | undefined;
25
+ targetIdentifier?: string;
26
+ fetchLatest?: boolean;
27
+ lastMessagesCount?: number;
28
28
  }>;
29
29
  hcsClient: HCS10Client;
30
30
  private stateManager;
@@ -26,58 +26,58 @@ export declare class ConnectionMonitorTool extends StructuredTool {
26
26
  amount: z.ZodNumber;
27
27
  collectorAccount: z.ZodOptional<z.ZodString>;
28
28
  }, "strip", z.ZodTypeAny, {
29
- amount: number;
30
- collectorAccount?: string | undefined;
29
+ amount?: number;
30
+ collectorAccount?: string;
31
31
  }, {
32
- amount: number;
33
- collectorAccount?: string | undefined;
32
+ amount?: number;
33
+ collectorAccount?: string;
34
34
  }>, "many">>;
35
35
  tokenFees: z.ZodOptional<z.ZodArray<z.ZodObject<{
36
36
  amount: z.ZodNumber;
37
37
  tokenId: z.ZodString;
38
38
  collectorAccount: z.ZodOptional<z.ZodString>;
39
39
  }, "strip", z.ZodTypeAny, {
40
- amount: number;
41
- tokenId: string;
42
- collectorAccount?: string | undefined;
40
+ amount?: number;
41
+ tokenId?: string;
42
+ collectorAccount?: string;
43
43
  }, {
44
- amount: number;
45
- tokenId: string;
46
- collectorAccount?: string | undefined;
44
+ amount?: number;
45
+ tokenId?: string;
46
+ collectorAccount?: string;
47
47
  }>, "many">>;
48
48
  exemptAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
49
49
  monitorDurationSeconds: z.ZodOptional<z.ZodNumber>;
50
50
  defaultCollectorAccount: z.ZodOptional<z.ZodString>;
51
51
  }, "strip", z.ZodTypeAny, {
52
52
  hbarFees?: {
53
- amount: number;
54
- collectorAccount?: string | undefined;
55
- }[] | undefined;
53
+ amount?: number;
54
+ collectorAccount?: string;
55
+ }[];
56
56
  tokenFees?: {
57
- amount: number;
58
- tokenId: string;
59
- collectorAccount?: string | undefined;
60
- }[] | undefined;
61
- exemptAccountIds?: string[] | undefined;
62
- targetAccountId?: string | undefined;
63
- acceptAll?: boolean | undefined;
64
- monitorDurationSeconds?: number | undefined;
65
- defaultCollectorAccount?: string | undefined;
57
+ amount?: number;
58
+ tokenId?: string;
59
+ collectorAccount?: string;
60
+ }[];
61
+ exemptAccountIds?: string[];
62
+ targetAccountId?: string;
63
+ acceptAll?: boolean;
64
+ monitorDurationSeconds?: number;
65
+ defaultCollectorAccount?: string;
66
66
  }, {
67
67
  hbarFees?: {
68
- amount: number;
69
- collectorAccount?: string | undefined;
70
- }[] | undefined;
68
+ amount?: number;
69
+ collectorAccount?: string;
70
+ }[];
71
71
  tokenFees?: {
72
- amount: number;
73
- tokenId: string;
74
- collectorAccount?: string | undefined;
75
- }[] | undefined;
76
- exemptAccountIds?: string[] | undefined;
77
- targetAccountId?: string | undefined;
78
- acceptAll?: boolean | undefined;
79
- monitorDurationSeconds?: number | undefined;
80
- defaultCollectorAccount?: string | undefined;
72
+ amount?: number;
73
+ tokenId?: string;
74
+ collectorAccount?: string;
75
+ }[];
76
+ exemptAccountIds?: string[];
77
+ targetAccountId?: string;
78
+ acceptAll?: boolean;
79
+ monitorDurationSeconds?: number;
80
+ defaultCollectorAccount?: string;
81
81
  }>;
82
82
  private hcsClient;
83
83
  private stateManager;
@@ -15,11 +15,11 @@ export declare class FindRegistrationsTool extends StructuredTool {
15
15
  accountId: z.ZodOptional<z.ZodString>;
16
16
  tags: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof AIAgentCapability>, "many">>;
17
17
  }, "strip", z.ZodTypeAny, {
18
- accountId?: string | undefined;
19
- tags?: AIAgentCapability[] | undefined;
18
+ accountId?: string;
19
+ tags?: AIAgentCapability[];
20
20
  }, {
21
- accountId?: string | undefined;
22
- tags?: AIAgentCapability[] | undefined;
21
+ accountId?: string;
22
+ tags?: AIAgentCapability[];
23
23
  }>;
24
24
  private hcsClient;
25
25
  private logger;
@@ -18,9 +18,9 @@ export declare class InitiateConnectionTool extends StructuredTool {
18
18
  schema: z.ZodObject<{
19
19
  targetAccountId: z.ZodString;
20
20
  }, "strip", z.ZodTypeAny, {
21
- targetAccountId: string;
21
+ targetAccountId?: string;
22
22
  }, {
23
- targetAccountId: string;
23
+ targetAccountId?: string;
24
24
  }>;
25
25
  private hcsClient;
26
26
  private stateManager;
@@ -17,11 +17,11 @@ export declare class ListConnectionsTool extends StructuredTool {
17
17
  includeDetails: z.ZodOptional<z.ZodBoolean>;
18
18
  showPending: z.ZodOptional<z.ZodBoolean>;
19
19
  }, "strip", z.ZodTypeAny, {
20
- includeDetails?: boolean | undefined;
21
- showPending?: boolean | undefined;
20
+ includeDetails?: boolean;
21
+ showPending?: boolean;
22
22
  }, {
23
- includeDetails?: boolean | undefined;
24
- showPending?: boolean | undefined;
23
+ includeDetails?: boolean;
24
+ showPending?: boolean;
25
25
  }>;
26
26
  private stateManager;
27
27
  private hcsClient?;
@@ -13,11 +13,11 @@ export declare class ListUnapprovedConnectionRequestsTool extends StructuredTool
13
13
  sortBy: z.ZodOptional<z.ZodEnum<["time_asc", "time_desc", "name_asc", "name_desc"]>>;
14
14
  limit: z.ZodOptional<z.ZodNumber>;
15
15
  }, "strip", z.ZodTypeAny, {
16
- sortBy?: "time_asc" | "time_desc" | "name_asc" | "name_desc" | undefined;
17
- limit?: number | undefined;
16
+ sortBy?: "time_asc" | "time_desc" | "name_asc" | "name_desc";
17
+ limit?: number;
18
18
  }, {
19
- sortBy?: "time_asc" | "time_desc" | "name_asc" | "name_desc" | undefined;
20
- limit?: number | undefined;
19
+ sortBy?: "time_asc" | "time_desc" | "name_asc" | "name_desc";
20
+ limit?: number;
21
21
  }>;
22
22
  private hcsClient;
23
23
  private stateManager;
@@ -17,11 +17,11 @@ export declare class ManageConnectionRequestsTool extends StructuredTool {
17
17
  action: z.ZodEnum<["list", "view", "reject"]>;
18
18
  requestKey: z.ZodOptional<z.ZodString>;
19
19
  }, "strip", z.ZodTypeAny, {
20
- action: "list" | "view" | "reject";
21
- requestKey?: string | undefined;
20
+ action?: "list" | "view" | "reject";
21
+ requestKey?: string;
22
22
  }, {
23
- action: "list" | "view" | "reject";
24
- requestKey?: string | undefined;
23
+ action?: "list" | "view" | "reject";
24
+ requestKey?: string;
25
25
  }>;
26
26
  private hcsClient;
27
27
  private stateManager;
@@ -22,20 +22,20 @@ export declare class RegisterAgentTool extends StructuredTool {
22
22
  url: z.ZodString;
23
23
  filename: z.ZodString;
24
24
  }, "strip", z.ZodTypeAny, {
25
- url: string;
26
- filename: string;
25
+ url?: string;
26
+ filename?: string;
27
27
  }, {
28
- url: string;
29
- filename: string;
28
+ url?: string;
29
+ filename?: string;
30
30
  }>, z.ZodObject<{
31
31
  path: z.ZodString;
32
32
  filename: z.ZodOptional<z.ZodString>;
33
33
  }, "strip", z.ZodTypeAny, {
34
- path: string;
35
- filename?: string | undefined;
34
+ path?: string;
35
+ filename?: string;
36
36
  }, {
37
- path: string;
38
- filename?: string | undefined;
37
+ path?: string;
38
+ filename?: string;
39
39
  }>]>>;
40
40
  feeCollectorAccountId: z.ZodOptional<z.ZodString>;
41
41
  hbarFee: z.ZodOptional<z.ZodNumber>;
@@ -43,110 +43,110 @@ export declare class RegisterAgentTool extends StructuredTool {
43
43
  amount: z.ZodNumber;
44
44
  tokenId: z.ZodString;
45
45
  }, "strip", z.ZodTypeAny, {
46
- amount: number;
47
- tokenId: string;
46
+ amount?: number;
47
+ tokenId?: string;
48
48
  }, {
49
- amount: number;
50
- tokenId: string;
49
+ amount?: number;
50
+ tokenId?: string;
51
51
  }>>;
52
52
  hbarFees: z.ZodOptional<z.ZodArray<z.ZodObject<{
53
53
  amount: z.ZodNumber;
54
54
  collectorAccount: z.ZodOptional<z.ZodString>;
55
55
  }, "strip", z.ZodTypeAny, {
56
- amount: number;
57
- collectorAccount?: string | undefined;
56
+ amount?: number;
57
+ collectorAccount?: string;
58
58
  }, {
59
- amount: number;
60
- collectorAccount?: string | undefined;
59
+ amount?: number;
60
+ collectorAccount?: string;
61
61
  }>, "many">>;
62
62
  tokenFees: z.ZodOptional<z.ZodArray<z.ZodObject<{
63
63
  amount: z.ZodNumber;
64
64
  tokenId: z.ZodString;
65
65
  collectorAccount: z.ZodOptional<z.ZodString>;
66
66
  }, "strip", z.ZodTypeAny, {
67
- amount: number;
68
- tokenId: string;
69
- collectorAccount?: string | undefined;
67
+ amount?: number;
68
+ tokenId?: string;
69
+ collectorAccount?: string;
70
70
  }, {
71
- amount: number;
72
- tokenId: string;
73
- collectorAccount?: string | undefined;
71
+ amount?: number;
72
+ tokenId?: string;
73
+ collectorAccount?: string;
74
74
  }>, "many">>;
75
75
  exemptAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
76
76
  setAsCurrent: z.ZodOptional<z.ZodBoolean>;
77
77
  persistence: z.ZodOptional<z.ZodObject<{
78
78
  prefix: z.ZodOptional<z.ZodString>;
79
79
  }, "strip", z.ZodTypeAny, {
80
- prefix?: string | undefined;
80
+ prefix?: string;
81
81
  }, {
82
- prefix?: string | undefined;
82
+ prefix?: string;
83
83
  }>>;
84
84
  }, "strip", z.ZodTypeAny, {
85
- name: string;
86
- capabilities?: number[] | undefined;
87
- type?: "autonomous" | "manual" | undefined;
88
- description?: string | undefined;
89
- model?: string | undefined;
85
+ capabilities?: number[];
86
+ type?: "autonomous" | "manual";
87
+ name?: string;
88
+ description?: string;
89
+ model?: string;
90
90
  profilePicture?: string | {
91
- url: string;
92
- filename: string;
91
+ url?: string;
92
+ filename?: string;
93
93
  } | {
94
- path: string;
95
- filename?: string | undefined;
96
- } | undefined;
97
- feeCollectorAccountId?: string | undefined;
98
- hbarFee?: number | undefined;
94
+ path?: string;
95
+ filename?: string;
96
+ };
97
+ feeCollectorAccountId?: string;
98
+ hbarFee?: number;
99
99
  tokenFee?: {
100
- amount: number;
101
- tokenId: string;
102
- } | undefined;
100
+ amount?: number;
101
+ tokenId?: string;
102
+ };
103
103
  hbarFees?: {
104
- amount: number;
105
- collectorAccount?: string | undefined;
106
- }[] | undefined;
104
+ amount?: number;
105
+ collectorAccount?: string;
106
+ }[];
107
107
  tokenFees?: {
108
- amount: number;
109
- tokenId: string;
110
- collectorAccount?: string | undefined;
111
- }[] | undefined;
112
- exemptAccountIds?: string[] | undefined;
113
- setAsCurrent?: boolean | undefined;
108
+ amount?: number;
109
+ tokenId?: string;
110
+ collectorAccount?: string;
111
+ }[];
112
+ exemptAccountIds?: string[];
113
+ setAsCurrent?: boolean;
114
114
  persistence?: {
115
- prefix?: string | undefined;
116
- } | undefined;
115
+ prefix?: string;
116
+ };
117
117
  }, {
118
- name: string;
119
- capabilities?: number[] | undefined;
120
- type?: "autonomous" | "manual" | undefined;
121
- description?: string | undefined;
122
- model?: string | undefined;
118
+ capabilities?: number[];
119
+ type?: "autonomous" | "manual";
120
+ name?: string;
121
+ description?: string;
122
+ model?: string;
123
123
  profilePicture?: string | {
124
- url: string;
125
- filename: string;
124
+ url?: string;
125
+ filename?: string;
126
126
  } | {
127
- path: string;
128
- filename?: string | undefined;
129
- } | undefined;
130
- feeCollectorAccountId?: string | undefined;
131
- hbarFee?: number | undefined;
127
+ path?: string;
128
+ filename?: string;
129
+ };
130
+ feeCollectorAccountId?: string;
131
+ hbarFee?: number;
132
132
  tokenFee?: {
133
- amount: number;
134
- tokenId: string;
135
- } | undefined;
133
+ amount?: number;
134
+ tokenId?: string;
135
+ };
136
136
  hbarFees?: {
137
- amount: number;
138
- collectorAccount?: string | undefined;
139
- }[] | undefined;
137
+ amount?: number;
138
+ collectorAccount?: string;
139
+ }[];
140
140
  tokenFees?: {
141
- amount: number;
142
- tokenId: string;
143
- collectorAccount?: string | undefined;
144
- }[] | undefined;
145
- exemptAccountIds?: string[] | undefined;
146
- setAsCurrent?: boolean | undefined;
141
+ amount?: number;
142
+ tokenId?: string;
143
+ collectorAccount?: string;
144
+ }[];
145
+ exemptAccountIds?: string[];
146
+ setAsCurrent?: boolean;
147
147
  persistence?: {
148
- prefix?: string | undefined;
149
- } | undefined;
148
+ prefix?: string;
149
+ };
150
150
  }>;
151
151
  /**
152
152
  * Creates a new RegisterAgentTool instance
@@ -14,11 +14,11 @@ export declare class RetrieveProfileTool extends StructuredTool {
14
14
  accountId: z.ZodOptional<z.ZodString>;
15
15
  disableCache: z.ZodOptional<z.ZodBoolean>;
16
16
  }, "strip", z.ZodTypeAny, {
17
- accountId?: string | undefined;
18
- disableCache?: boolean | undefined;
17
+ accountId?: string;
18
+ disableCache?: boolean;
19
19
  }, {
20
- accountId?: string | undefined;
21
- disableCache?: boolean | undefined;
20
+ accountId?: string;
21
+ disableCache?: boolean;
22
22
  }>;
23
23
  /**
24
24
  * Creates a new RetrieveProfileTool instance.
@@ -17,13 +17,13 @@ export declare class SendMessageToConnectionTool extends StructuredTool {
17
17
  message: z.ZodString;
18
18
  disableMonitoring: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
19
19
  }, "strip", z.ZodTypeAny, {
20
- message: string;
21
- disableMonitoring: boolean;
22
- targetIdentifier: string;
20
+ message?: string;
21
+ disableMonitoring?: boolean;
22
+ targetIdentifier?: string;
23
23
  }, {
24
- message: string;
25
- targetIdentifier: string;
26
- disableMonitoring?: boolean | undefined;
24
+ message?: string;
25
+ disableMonitoring?: boolean;
26
+ targetIdentifier?: string;
27
27
  }>;
28
28
  private hcsClient;
29
29
  private stateManager;
@@ -16,13 +16,13 @@ export declare class SendMessageTool extends StructuredTool {
16
16
  message: z.ZodString;
17
17
  disableMonitoring: z.ZodOptional<z.ZodBoolean>;
18
18
  }, "strip", z.ZodTypeAny, {
19
- message: string;
20
- topicId: string;
21
- disableMonitoring?: boolean | undefined;
19
+ message?: string;
20
+ topicId?: string;
21
+ disableMonitoring?: boolean;
22
22
  }, {
23
- message: string;
24
- topicId: string;
25
- disableMonitoring?: boolean | undefined;
23
+ message?: string;
24
+ topicId?: string;
25
+ disableMonitoring?: boolean;
26
26
  }>;
27
27
  /**
28
28
  * @param client - Instance of HCS10Client.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hashgraphonline/standards-agent-kit",
3
- "version": "0.0.33",
3
+ "version": "0.0.35",
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",
@@ -96,7 +96,7 @@
96
96
  },
97
97
  "dependencies": {
98
98
  "@hashgraph/sdk": "^2.65.1",
99
- "@hashgraphonline/standards-sdk": "^0.0.119",
99
+ "@hashgraphonline/standards-sdk": "^0.0.121",
100
100
  "@langchain/community": "^0.3.44",
101
101
  "@langchain/core": "^0.3.57",
102
102
  "@langchain/openai": "^0.5.11",
@@ -77,7 +77,7 @@ export class HCS10Client {
77
77
  });
78
78
  this.guardedRegistryBaseUrl = options?.registryUrl || '';
79
79
  this.useEncryption = options?.useEncryption || false;
80
- const shouldSilence = process.env.DISABLE_LOGGING === 'true';
80
+ const shouldSilence = process.env.DISABLE_LOGGING === 'true';
81
81
  this.logger = new Logger({
82
82
  level: options?.logLevel || 'info',
83
83
  silent: shouldSilence,
@@ -437,9 +437,7 @@ export class HCS10Client {
437
437
  /**
438
438
  * Validates that the operator account exists and has proper access for agent operations
439
439
  */
440
- private async validateOperator(
441
- options: ClientValidationOptions
442
- ): Promise<{
440
+ private async validateOperator(options: ClientValidationOptions): Promise<{
443
441
  isValid: boolean;
444
442
  operator?: { accountId: string };
445
443
  error?: string;
@@ -465,9 +463,7 @@ export class HCS10Client {
465
463
  }
466
464
  }
467
465
 
468
- async initializeWithValidation(
469
- options: ClientValidationOptions
470
- ): Promise<{
466
+ async initializeWithValidation(options: ClientValidationOptions): Promise<{
471
467
  isValid: boolean;
472
468
  operator?: { accountId: string };
473
469
  error?: string;
package/src/index.ts CHANGED
@@ -2,4 +2,4 @@ export * from './hcs10';
2
2
  export * from './tools';
3
3
  export * from './state';
4
4
  export * from './init';
5
- export * from './plugins';
5
+ export * from './plugins';
@@ -70,22 +70,22 @@ export class InitiateConnectionTool extends StructuredTool {
70
70
  targetInboundTopicId,
71
71
  currentAgent.name
72
72
  );
73
- let connectionRequestId: number | null = null;
74
73
  const sequenceNumberLong = requestResult?.topicSequenceNumber;
75
- if (sequenceNumberLong !== null) {
76
- try {
77
- connectionRequestId = sequenceNumberLong.toNumber();
78
- if (isNaN(connectionRequestId)) {
79
- throw new Error('Converted sequence number is NaN.');
80
- }
81
- } catch (conversionError) {
82
- throw new Error(
83
- `Failed to convert connection request sequence number: ${conversionError}`
84
- );
85
- }
86
- } else {
74
+ if (!sequenceNumberLong) {
87
75
  throw new Error('Connection request sequence number not found.');
88
76
  }
77
+
78
+ let connectionRequestId: number;
79
+ try {
80
+ connectionRequestId = sequenceNumberLong.toNumber();
81
+ if (isNaN(connectionRequestId)) {
82
+ throw new Error('Converted sequence number is NaN.');
83
+ }
84
+ } catch (conversionError) {
85
+ throw new Error(
86
+ `Failed to convert connection request sequence number: ${conversionError}`
87
+ );
88
+ }
89
89
 
90
90
  const confirmationTimeoutMs = 60000;
91
91
  const delayMs = 2000;
@@ -1,5 +0,0 @@
1
- export * from './hcs10';
2
- export * from './tools';
3
- export * from './state';
4
- export * from './init';
5
- export * from './plugins';
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes