@hashgraphonline/standards-sdk 0.1.143 → 0.1.144-feat-solana-register.canary.d5edcec.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/hcs-10/base-client.d.ts.map +1 -1
- package/dist/cjs/hcs-10/sdk.d.ts +8 -0
- package/dist/cjs/hcs-10/sdk.d.ts.map +1 -1
- package/dist/cjs/hcs-11/client.d.ts +2 -2
- package/dist/cjs/hcs-11/client.d.ts.map +1 -1
- package/dist/cjs/hcs-11/person-builder.d.ts +1 -0
- package/dist/cjs/hcs-11/person-builder.d.ts.map +1 -1
- package/dist/cjs/hcs-11/types.d.ts +1 -0
- package/dist/cjs/hcs-11/types.d.ts.map +1 -1
- package/dist/cjs/hcs-12/rendering/resource-manager.d.ts.map +1 -1
- package/dist/cjs/hcs-12/validation/schemas.d.ts +8 -8
- package/dist/cjs/hcs-14/issuers/hiero.d.ts.map +1 -1
- package/dist/cjs/hcs-15/browser.d.ts +2 -0
- package/dist/cjs/hcs-15/browser.d.ts.map +1 -1
- package/dist/cjs/hcs-15/sdk.d.ts +7 -1
- package/dist/cjs/hcs-15/sdk.d.ts.map +1 -1
- package/dist/cjs/hcs-15/tx.d.ts +4 -0
- package/dist/cjs/hcs-15/tx.d.ts.map +1 -1
- package/dist/cjs/hcs-15/types.d.ts +16 -1
- package/dist/cjs/hcs-15/types.d.ts.map +1 -1
- package/dist/cjs/hcs-16/browser.d.ts +11 -2
- package/dist/cjs/hcs-16/browser.d.ts.map +1 -1
- package/dist/cjs/hcs-16/sdk.d.ts +62 -1
- package/dist/cjs/hcs-16/sdk.d.ts.map +1 -1
- package/dist/cjs/hcs-16/tx.d.ts +21 -3
- package/dist/cjs/hcs-16/tx.d.ts.map +1 -1
- package/dist/cjs/hcs-17/base-client.d.ts +1 -0
- package/dist/cjs/hcs-17/base-client.d.ts.map +1 -1
- package/dist/cjs/hcs-17/sdk.d.ts.map +1 -1
- package/dist/cjs/hcs-17/tx.d.ts +2 -0
- package/dist/cjs/hcs-17/tx.d.ts.map +1 -1
- package/dist/cjs/hcs-17/types.d.ts +4 -0
- package/dist/cjs/hcs-17/types.d.ts.map +1 -1
- package/dist/cjs/hcs-21/types.d.ts +75 -75
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/services/registry-broker/client/adapters.d.ts +20 -0
- package/dist/cjs/services/registry-broker/client/adapters.d.ts.map +1 -0
- package/dist/cjs/services/registry-broker/client/agents.d.ts +16 -0
- package/dist/cjs/services/registry-broker/client/agents.d.ts.map +1 -0
- package/dist/cjs/services/registry-broker/client/base-client.d.ts +70 -0
- package/dist/cjs/services/registry-broker/client/base-client.d.ts.map +1 -0
- package/dist/cjs/services/registry-broker/client/chat-history.d.ts +23 -0
- package/dist/cjs/services/registry-broker/client/chat-history.d.ts.map +1 -0
- package/dist/cjs/services/registry-broker/client/chat.d.ts +33 -0
- package/dist/cjs/services/registry-broker/client/chat.d.ts.map +1 -0
- package/dist/cjs/services/registry-broker/client/credits.d.ts +40 -0
- package/dist/cjs/services/registry-broker/client/credits.d.ts.map +1 -0
- package/dist/cjs/services/registry-broker/client/encrypted-chat-manager.d.ts +35 -0
- package/dist/cjs/services/registry-broker/client/encrypted-chat-manager.d.ts.map +1 -0
- package/dist/cjs/services/registry-broker/client/encryption.d.ts +33 -0
- package/dist/cjs/services/registry-broker/client/encryption.d.ts.map +1 -0
- package/dist/cjs/services/registry-broker/client/errors.d.ts +19 -0
- package/dist/cjs/services/registry-broker/client/errors.d.ts.map +1 -0
- package/dist/cjs/services/registry-broker/client/feedback.d.ts +2 -0
- package/dist/cjs/services/registry-broker/client/feedback.d.ts.map +1 -0
- package/dist/cjs/services/registry-broker/client/ledger-auth.d.ts +10 -0
- package/dist/cjs/services/registry-broker/client/ledger-auth.d.ts.map +1 -0
- package/dist/cjs/services/registry-broker/client/search.d.ts +19 -0
- package/dist/cjs/services/registry-broker/client/search.d.ts.map +1 -0
- package/dist/cjs/services/registry-broker/client/utils.d.ts +21 -0
- package/dist/cjs/services/registry-broker/client/utils.d.ts.map +1 -0
- package/dist/cjs/services/registry-broker/client.d.ts +2 -205
- package/dist/cjs/services/registry-broker/client.d.ts.map +1 -1
- package/dist/cjs/services/registry-broker/private-key-signer.d.ts +1 -0
- package/dist/cjs/services/registry-broker/private-key-signer.d.ts.map +1 -1
- package/dist/cjs/services/registry-broker/schemas.d.ts +2509 -816
- package/dist/cjs/services/registry-broker/schemas.d.ts.map +1 -1
- package/dist/cjs/services/registry-broker/types.d.ts +64 -2
- package/dist/cjs/services/registry-broker/types.d.ts.map +1 -1
- package/dist/cjs/standards-sdk.cjs +3 -3
- package/dist/cjs/standards-sdk.cjs.map +1 -1
- package/dist/cjs/utils/crypto-abstraction.d.ts.map +1 -1
- package/dist/cjs/utils/crypto-env.d.ts.map +1 -1
- package/dist/cjs/utils/dynamic-import.d.ts +5 -1
- package/dist/cjs/utils/dynamic-import.d.ts.map +1 -1
- package/dist/cjs/utils/hash-adapter.d.ts.map +1 -1
- package/dist/es/hcs-10/base-client.d.ts.map +1 -1
- package/dist/es/hcs-10/sdk.d.ts +8 -0
- package/dist/es/hcs-10/sdk.d.ts.map +1 -1
- package/dist/es/hcs-11/client.d.ts +2 -2
- package/dist/es/hcs-11/client.d.ts.map +1 -1
- package/dist/es/hcs-11/person-builder.d.ts +1 -0
- package/dist/es/hcs-11/person-builder.d.ts.map +1 -1
- package/dist/es/hcs-11/types.d.ts +1 -0
- package/dist/es/hcs-11/types.d.ts.map +1 -1
- package/dist/es/hcs-12/rendering/resource-manager.d.ts.map +1 -1
- package/dist/es/hcs-12/validation/schemas.d.ts +8 -8
- package/dist/es/hcs-14/issuers/hiero.d.ts.map +1 -1
- package/dist/es/hcs-15/browser.d.ts +2 -0
- package/dist/es/hcs-15/browser.d.ts.map +1 -1
- package/dist/es/hcs-15/sdk.d.ts +7 -1
- package/dist/es/hcs-15/sdk.d.ts.map +1 -1
- package/dist/es/hcs-15/tx.d.ts +4 -0
- package/dist/es/hcs-15/tx.d.ts.map +1 -1
- package/dist/es/hcs-15/types.d.ts +16 -1
- package/dist/es/hcs-15/types.d.ts.map +1 -1
- package/dist/es/hcs-16/browser.d.ts +11 -2
- package/dist/es/hcs-16/browser.d.ts.map +1 -1
- package/dist/es/hcs-16/sdk.d.ts +62 -1
- package/dist/es/hcs-16/sdk.d.ts.map +1 -1
- package/dist/es/hcs-16/tx.d.ts +21 -3
- package/dist/es/hcs-16/tx.d.ts.map +1 -1
- package/dist/es/hcs-17/base-client.d.ts +1 -0
- package/dist/es/hcs-17/base-client.d.ts.map +1 -1
- package/dist/es/hcs-17/sdk.d.ts.map +1 -1
- package/dist/es/hcs-17/tx.d.ts +2 -0
- package/dist/es/hcs-17/tx.d.ts.map +1 -1
- package/dist/es/hcs-17/types.d.ts +4 -0
- package/dist/es/hcs-17/types.d.ts.map +1 -1
- package/dist/es/hcs-21/types.d.ts +75 -75
- package/dist/es/index.d.ts.map +1 -1
- package/dist/es/services/registry-broker/client/adapters.d.ts +20 -0
- package/dist/es/services/registry-broker/client/adapters.d.ts.map +1 -0
- package/dist/es/services/registry-broker/client/agents.d.ts +16 -0
- package/dist/es/services/registry-broker/client/agents.d.ts.map +1 -0
- package/dist/es/services/registry-broker/client/base-client.d.ts +70 -0
- package/dist/es/services/registry-broker/client/base-client.d.ts.map +1 -0
- package/dist/es/services/registry-broker/client/chat-history.d.ts +23 -0
- package/dist/es/services/registry-broker/client/chat-history.d.ts.map +1 -0
- package/dist/es/services/registry-broker/client/chat.d.ts +33 -0
- package/dist/es/services/registry-broker/client/chat.d.ts.map +1 -0
- package/dist/es/services/registry-broker/client/credits.d.ts +40 -0
- package/dist/es/services/registry-broker/client/credits.d.ts.map +1 -0
- package/dist/es/services/registry-broker/client/encrypted-chat-manager.d.ts +35 -0
- package/dist/es/services/registry-broker/client/encrypted-chat-manager.d.ts.map +1 -0
- package/dist/es/services/registry-broker/client/encryption.d.ts +33 -0
- package/dist/es/services/registry-broker/client/encryption.d.ts.map +1 -0
- package/dist/es/services/registry-broker/client/errors.d.ts +19 -0
- package/dist/es/services/registry-broker/client/errors.d.ts.map +1 -0
- package/dist/es/services/registry-broker/client/feedback.d.ts +2 -0
- package/dist/es/services/registry-broker/client/feedback.d.ts.map +1 -0
- package/dist/es/services/registry-broker/client/ledger-auth.d.ts +10 -0
- package/dist/es/services/registry-broker/client/ledger-auth.d.ts.map +1 -0
- package/dist/es/services/registry-broker/client/search.d.ts +19 -0
- package/dist/es/services/registry-broker/client/search.d.ts.map +1 -0
- package/dist/es/services/registry-broker/client/utils.d.ts +21 -0
- package/dist/es/services/registry-broker/client/utils.d.ts.map +1 -0
- package/dist/es/services/registry-broker/client.d.ts +2 -205
- package/dist/es/services/registry-broker/client.d.ts.map +1 -1
- package/dist/es/services/registry-broker/private-key-signer.d.ts +1 -0
- package/dist/es/services/registry-broker/private-key-signer.d.ts.map +1 -1
- package/dist/es/services/registry-broker/schemas.d.ts +2509 -816
- package/dist/es/services/registry-broker/schemas.d.ts.map +1 -1
- package/dist/es/services/registry-broker/types.d.ts +64 -2
- package/dist/es/services/registry-broker/types.d.ts.map +1 -1
- package/dist/es/standards-sdk.es.js +148 -133
- package/dist/es/standards-sdk.es.js.map +1 -1
- package/dist/es/standards-sdk.es10.js +70 -90
- package/dist/es/standards-sdk.es10.js.map +1 -1
- package/dist/es/standards-sdk.es100.js +229 -26
- package/dist/es/standards-sdk.es100.js.map +1 -1
- package/dist/es/standards-sdk.es101.js +109 -228
- package/dist/es/standards-sdk.es101.js.map +1 -1
- package/dist/es/standards-sdk.es102.js +15 -94
- package/dist/es/standards-sdk.es102.js.map +1 -1
- package/dist/es/standards-sdk.es103.js +80 -30
- package/dist/es/standards-sdk.es103.js.map +1 -1
- package/dist/es/standards-sdk.es104.js +27 -80
- package/dist/es/standards-sdk.es104.js.map +1 -1
- package/dist/es/standards-sdk.es105.js +136 -25
- package/dist/es/standards-sdk.es105.js.map +1 -1
- package/dist/es/standards-sdk.es106.js +27 -140
- package/dist/es/standards-sdk.es106.js.map +1 -1
- package/dist/es/standards-sdk.es107.js +20 -27
- package/dist/es/standards-sdk.es107.js.map +1 -1
- package/dist/es/standards-sdk.es108.js +156 -18
- package/dist/es/standards-sdk.es108.js.map +1 -1
- package/dist/es/standards-sdk.es109.js +198 -148
- package/dist/es/standards-sdk.es109.js.map +1 -1
- package/dist/es/standards-sdk.es11.js +121 -45
- package/dist/es/standards-sdk.es11.js.map +1 -1
- package/dist/es/standards-sdk.es110.js +747 -160
- package/dist/es/standards-sdk.es110.js.map +1 -1
- package/dist/es/standards-sdk.es111.js +9 -786
- package/dist/es/standards-sdk.es111.js.map +1 -1
- package/dist/es/standards-sdk.es112.js +567 -13
- package/dist/es/standards-sdk.es112.js.map +1 -1
- package/dist/es/standards-sdk.es113.js +576 -541
- package/dist/es/standards-sdk.es113.js.map +1 -1
- package/dist/es/standards-sdk.es114.js +12 -601
- package/dist/es/standards-sdk.es114.js.map +1 -1
- package/dist/es/standards-sdk.es115.js +2 -13
- package/dist/es/standards-sdk.es115.js.map +1 -1
- package/dist/es/standards-sdk.es116.js +87 -2
- package/dist/es/standards-sdk.es116.js.map +1 -1
- package/dist/es/standards-sdk.es117.js +37 -80
- package/dist/es/standards-sdk.es117.js.map +1 -1
- package/dist/es/standards-sdk.es118.js +2 -39
- package/dist/es/standards-sdk.es118.js.map +1 -1
- package/dist/es/standards-sdk.es119.js +231 -2
- package/dist/es/standards-sdk.es119.js.map +1 -1
- package/dist/es/standards-sdk.es12.js +60 -159
- package/dist/es/standards-sdk.es12.js.map +1 -1
- package/dist/es/standards-sdk.es120.js +1110 -193
- package/dist/es/standards-sdk.es120.js.map +1 -1
- package/dist/es/standards-sdk.es121.js +225 -1059
- package/dist/es/standards-sdk.es121.js.map +1 -1
- package/dist/es/standards-sdk.es122.js +419 -303
- package/dist/es/standards-sdk.es122.js.map +1 -1
- package/dist/es/standards-sdk.es123.js +351 -418
- package/dist/es/standards-sdk.es123.js.map +1 -1
- package/dist/es/standards-sdk.es124.js +872 -347
- package/dist/es/standards-sdk.es124.js.map +1 -1
- package/dist/es/standards-sdk.es125.js +182 -854
- package/dist/es/standards-sdk.es125.js.map +1 -1
- package/dist/es/standards-sdk.es126.js +1512 -153
- package/dist/es/standards-sdk.es126.js.map +1 -1
- package/dist/es/standards-sdk.es127.js +157 -1547
- package/dist/es/standards-sdk.es127.js.map +1 -1
- package/dist/es/standards-sdk.es128.js +184 -2190
- package/dist/es/standards-sdk.es128.js.map +1 -1
- package/dist/es/standards-sdk.es129.js +100 -63
- package/dist/es/standards-sdk.es129.js.map +1 -1
- package/dist/es/standards-sdk.es13.js +200 -60
- package/dist/es/standards-sdk.es13.js.map +1 -1
- package/dist/es/standards-sdk.es130.js +112 -78
- package/dist/es/standards-sdk.es130.js.map +1 -1
- package/dist/es/standards-sdk.es131.js +232 -144
- package/dist/es/standards-sdk.es131.js.map +1 -1
- package/dist/es/standards-sdk.es132.js +181 -8
- package/dist/es/standards-sdk.es132.js.map +1 -1
- package/dist/es/standards-sdk.es133.js +118 -82
- package/dist/es/standards-sdk.es133.js.map +1 -1
- package/dist/es/standards-sdk.es134.js +322 -61
- package/dist/es/standards-sdk.es134.js.map +1 -1
- package/dist/es/standards-sdk.es135.js +464 -28
- package/dist/es/standards-sdk.es135.js.map +1 -1
- package/dist/es/standards-sdk.es136.js +14 -135
- package/dist/es/standards-sdk.es136.js.map +1 -1
- package/dist/es/standards-sdk.es137.js +78 -39
- package/dist/es/standards-sdk.es137.js.map +1 -1
- package/dist/es/standards-sdk.es138.js +85 -764
- package/dist/es/standards-sdk.es138.js.map +1 -1
- package/dist/es/standards-sdk.es139.js +135 -12250
- package/dist/es/standards-sdk.es139.js.map +1 -1
- package/dist/es/standards-sdk.es14.js +149 -178
- package/dist/es/standards-sdk.es14.js.map +1 -1
- package/dist/es/standards-sdk.es140.js +7 -56
- package/dist/es/standards-sdk.es140.js.map +1 -1
- package/dist/es/standards-sdk.es141.js +72 -68
- package/dist/es/standards-sdk.es141.js.map +1 -1
- package/dist/es/standards-sdk.es142.js +61 -13
- package/dist/es/standards-sdk.es142.js.map +1 -1
- package/dist/es/standards-sdk.es143.js +30 -172
- package/dist/es/standards-sdk.es143.js.map +1 -1
- package/dist/es/standards-sdk.es144.js +34 -322
- package/dist/es/standards-sdk.es144.js.map +1 -1
- package/dist/es/standards-sdk.es145.js +28 -346
- package/dist/es/standards-sdk.es145.js.map +1 -1
- package/dist/es/standards-sdk.es146.js +112 -427
- package/dist/es/standards-sdk.es146.js.map +1 -1
- package/dist/es/standards-sdk.es147.js +40 -329
- package/dist/es/standards-sdk.es147.js.map +1 -1
- package/dist/es/standards-sdk.es148.js +12279 -66
- package/dist/es/standards-sdk.es148.js.map +1 -1
- package/dist/es/standards-sdk.es149.js +961 -0
- package/dist/es/standards-sdk.es149.js.map +1 -0
- package/dist/es/standards-sdk.es15.js +152 -151
- package/dist/es/standards-sdk.es15.js.map +1 -1
- package/dist/es/standards-sdk.es150.js +20 -0
- package/dist/es/standards-sdk.es150.js.map +1 -0
- package/dist/es/standards-sdk.es151.js +59 -0
- package/dist/es/standards-sdk.es151.js.map +1 -0
- package/dist/es/standards-sdk.es152.js +87 -0
- package/dist/es/standards-sdk.es152.js.map +1 -0
- package/dist/es/standards-sdk.es153.js +175 -0
- package/dist/es/standards-sdk.es153.js.map +1 -0
- package/dist/es/standards-sdk.es154.js +325 -0
- package/dist/es/standards-sdk.es154.js.map +1 -0
- package/dist/es/standards-sdk.es155.js +349 -0
- package/dist/es/standards-sdk.es155.js.map +1 -0
- package/dist/es/standards-sdk.es156.js +456 -0
- package/dist/es/standards-sdk.es156.js.map +1 -0
- package/dist/es/standards-sdk.es157.js +334 -0
- package/dist/es/standards-sdk.es157.js.map +1 -0
- package/dist/es/standards-sdk.es158.js +79 -0
- package/dist/es/standards-sdk.es158.js.map +1 -0
- package/dist/es/standards-sdk.es159.js +242 -0
- package/dist/es/standards-sdk.es159.js.map +1 -0
- package/dist/es/standards-sdk.es16.js +917 -136
- package/dist/es/standards-sdk.es16.js.map +1 -1
- package/dist/es/standards-sdk.es160.js +247 -0
- package/dist/es/standards-sdk.es160.js.map +1 -0
- package/dist/es/standards-sdk.es17.js +23 -938
- package/dist/es/standards-sdk.es17.js.map +1 -1
- package/dist/es/standards-sdk.es18.js +2422 -24
- package/dist/es/standards-sdk.es18.js.map +1 -1
- package/dist/es/standards-sdk.es19.js +826 -2075
- package/dist/es/standards-sdk.es19.js.map +1 -1
- package/dist/es/standards-sdk.es2.js +654 -189
- package/dist/es/standards-sdk.es2.js.map +1 -1
- package/dist/es/standards-sdk.es20.js +205 -1086
- package/dist/es/standards-sdk.es20.js.map +1 -1
- package/dist/es/standards-sdk.es21.js +858 -221
- package/dist/es/standards-sdk.es21.js.map +1 -1
- package/dist/es/standards-sdk.es22.js +179 -903
- package/dist/es/standards-sdk.es22.js.map +1 -1
- package/dist/es/standards-sdk.es23.js +164 -179
- package/dist/es/standards-sdk.es23.js.map +1 -1
- package/dist/es/standards-sdk.es24.js +62 -118
- package/dist/es/standards-sdk.es24.js.map +1 -1
- package/dist/es/standards-sdk.es25.js +377 -52
- package/dist/es/standards-sdk.es25.js.map +1 -1
- package/dist/es/standards-sdk.es26.js +36 -394
- package/dist/es/standards-sdk.es26.js.map +1 -1
- package/dist/es/standards-sdk.es27.js +901 -50
- package/dist/es/standards-sdk.es27.js.map +1 -1
- package/dist/es/standards-sdk.es28.js +134 -897
- package/dist/es/standards-sdk.es28.js.map +1 -1
- package/dist/es/standards-sdk.es29.js +7 -134
- package/dist/es/standards-sdk.es29.js.map +1 -1
- package/dist/es/standards-sdk.es3.js +63 -680
- package/dist/es/standards-sdk.es3.js.map +1 -1
- package/dist/es/standards-sdk.es30.js +344 -7
- package/dist/es/standards-sdk.es30.js.map +1 -1
- package/dist/es/standards-sdk.es31.js +302 -287
- package/dist/es/standards-sdk.es31.js.map +1 -1
- package/dist/es/standards-sdk.es32.js +94 -322
- package/dist/es/standards-sdk.es32.js.map +1 -1
- package/dist/es/standards-sdk.es33.js +458 -101
- package/dist/es/standards-sdk.es33.js.map +1 -1
- package/dist/es/standards-sdk.es34.js +132 -451
- package/dist/es/standards-sdk.es34.js.map +1 -1
- package/dist/es/standards-sdk.es35.js +216 -130
- package/dist/es/standards-sdk.es35.js.map +1 -1
- package/dist/es/standards-sdk.es36.js +274 -191
- package/dist/es/standards-sdk.es36.js.map +1 -1
- package/dist/es/standards-sdk.es37.js +148 -87
- package/dist/es/standards-sdk.es37.js.map +1 -1
- package/dist/es/standards-sdk.es38.js +183 -320
- package/dist/es/standards-sdk.es38.js.map +1 -1
- package/dist/es/standards-sdk.es39.js +238 -161
- package/dist/es/standards-sdk.es39.js.map +1 -1
- package/dist/es/standards-sdk.es4.js +425 -63
- package/dist/es/standards-sdk.es4.js.map +1 -1
- package/dist/es/standards-sdk.es40.js +136 -254
- package/dist/es/standards-sdk.es40.js.map +1 -1
- package/dist/es/standards-sdk.es41.js +225 -176
- package/dist/es/standards-sdk.es41.js.map +1 -1
- package/dist/es/standards-sdk.es42.js +199 -261
- package/dist/es/standards-sdk.es42.js.map +1 -1
- package/dist/es/standards-sdk.es43.js +237 -199
- package/dist/es/standards-sdk.es43.js.map +1 -1
- package/dist/es/standards-sdk.es44.js +209 -201
- package/dist/es/standards-sdk.es44.js.map +1 -1
- package/dist/es/standards-sdk.es45.js +305 -201
- package/dist/es/standards-sdk.es45.js.map +1 -1
- package/dist/es/standards-sdk.es46.js +371 -261
- package/dist/es/standards-sdk.es46.js.map +1 -1
- package/dist/es/standards-sdk.es47.js +316 -371
- package/dist/es/standards-sdk.es47.js.map +1 -1
- package/dist/es/standards-sdk.es48.js +404 -336
- package/dist/es/standards-sdk.es48.js.map +1 -1
- package/dist/es/standards-sdk.es49.js +83 -449
- package/dist/es/standards-sdk.es49.js.map +1 -1
- package/dist/es/standards-sdk.es5.js +232 -354
- package/dist/es/standards-sdk.es5.js.map +1 -1
- package/dist/es/standards-sdk.es50.js +179 -89
- package/dist/es/standards-sdk.es50.js.map +1 -1
- package/dist/es/standards-sdk.es51.js +231 -165
- package/dist/es/standards-sdk.es51.js.map +1 -1
- package/dist/es/standards-sdk.es52.js +25 -262
- package/dist/es/standards-sdk.es52.js.map +1 -1
- package/dist/es/standards-sdk.es53.js +56 -26
- package/dist/es/standards-sdk.es53.js.map +1 -1
- package/dist/es/standards-sdk.es54.js +12 -57
- package/dist/es/standards-sdk.es54.js.map +1 -1
- package/dist/es/standards-sdk.es55.js +49 -12
- package/dist/es/standards-sdk.es55.js.map +1 -1
- package/dist/es/standards-sdk.es56.js +115 -43
- package/dist/es/standards-sdk.es56.js.map +1 -1
- package/dist/es/standards-sdk.es57.js +42 -115
- package/dist/es/standards-sdk.es57.js.map +1 -1
- package/dist/es/standards-sdk.es58.js +52 -43
- package/dist/es/standards-sdk.es58.js.map +1 -1
- package/dist/es/standards-sdk.es59.js +36 -50
- package/dist/es/standards-sdk.es59.js.map +1 -1
- package/dist/es/standards-sdk.es6.js +125 -246
- package/dist/es/standards-sdk.es6.js.map +1 -1
- package/dist/es/standards-sdk.es60.js +207 -39
- package/dist/es/standards-sdk.es60.js.map +1 -1
- package/dist/es/standards-sdk.es61.js +24 -195
- package/dist/es/standards-sdk.es61.js.map +1 -1
- package/dist/es/standards-sdk.es62.js +87 -25
- package/dist/es/standards-sdk.es62.js.map +1 -1
- package/dist/es/standards-sdk.es63.js +3 -51
- package/dist/es/standards-sdk.es63.js.map +1 -1
- package/dist/es/standards-sdk.es64.js +100 -3
- package/dist/es/standards-sdk.es64.js.map +1 -1
- package/dist/es/standards-sdk.es65.js +61 -62
- package/dist/es/standards-sdk.es65.js.map +1 -1
- package/dist/es/standards-sdk.es66.js +17 -98
- package/dist/es/standards-sdk.es66.js.map +1 -1
- package/dist/es/standards-sdk.es67.js +77 -19
- package/dist/es/standards-sdk.es67.js.map +1 -1
- package/dist/es/standards-sdk.es68.js +458 -77
- package/dist/es/standards-sdk.es68.js.map +1 -1
- package/dist/es/standards-sdk.es69.js +106 -240
- package/dist/es/standards-sdk.es69.js.map +1 -1
- package/dist/es/standards-sdk.es7.js +28 -183
- package/dist/es/standards-sdk.es7.js.map +1 -1
- package/dist/es/standards-sdk.es70.js +170 -286
- package/dist/es/standards-sdk.es70.js.map +1 -1
- package/dist/es/standards-sdk.es71.js +71 -207
- package/dist/es/standards-sdk.es71.js.map +1 -1
- package/dist/es/standards-sdk.es72.js +71 -72
- package/dist/es/standards-sdk.es72.js.map +1 -1
- package/dist/es/standards-sdk.es73.js +143 -71
- package/dist/es/standards-sdk.es73.js.map +1 -1
- package/dist/es/standards-sdk.es74.js +62 -136
- package/dist/es/standards-sdk.es74.js.map +1 -1
- package/dist/es/standards-sdk.es75.js +380 -45
- package/dist/es/standards-sdk.es75.js.map +1 -1
- package/dist/es/standards-sdk.es76.js +222 -130
- package/dist/es/standards-sdk.es76.js.map +1 -1
- package/dist/es/standards-sdk.es77.js +320 -444
- package/dist/es/standards-sdk.es77.js.map +1 -1
- package/dist/es/standards-sdk.es78.js +88 -364
- package/dist/es/standards-sdk.es78.js.map +1 -1
- package/dist/es/standards-sdk.es79.js +125 -89
- package/dist/es/standards-sdk.es79.js.map +1 -1
- package/dist/es/standards-sdk.es8.js +80 -29
- package/dist/es/standards-sdk.es8.js.map +1 -1
- package/dist/es/standards-sdk.es80.js +8 -125
- package/dist/es/standards-sdk.es80.js.map +1 -1
- package/dist/es/standards-sdk.es81.js +45 -6
- package/dist/es/standards-sdk.es81.js.map +1 -1
- package/dist/es/standards-sdk.es82.js +98 -44
- package/dist/es/standards-sdk.es82.js.map +1 -1
- package/dist/es/standards-sdk.es83.js +331 -84
- package/dist/es/standards-sdk.es83.js.map +1 -1
- package/dist/es/standards-sdk.es84.js +93 -160
- package/dist/es/standards-sdk.es84.js.map +1 -1
- package/dist/es/standards-sdk.es85.js +55 -275
- package/dist/es/standards-sdk.es85.js.map +1 -1
- package/dist/es/standards-sdk.es86.js +43 -55
- package/dist/es/standards-sdk.es86.js.map +1 -1
- package/dist/es/standards-sdk.es87.js +145 -22
- package/dist/es/standards-sdk.es87.js.map +1 -1
- package/dist/es/standards-sdk.es88.js +34 -47
- package/dist/es/standards-sdk.es88.js.map +1 -1
- package/dist/es/standards-sdk.es89.js +22 -57
- package/dist/es/standards-sdk.es89.js.map +1 -1
- package/dist/es/standards-sdk.es9.js +104 -80
- package/dist/es/standards-sdk.es9.js.map +1 -1
- package/dist/es/standards-sdk.es90.js +23 -28
- package/dist/es/standards-sdk.es90.js.map +1 -1
- package/dist/es/standards-sdk.es91.js +238 -23
- package/dist/es/standards-sdk.es91.js.map +1 -1
- package/dist/es/standards-sdk.es92.js +265 -152
- package/dist/es/standards-sdk.es92.js.map +1 -1
- package/dist/es/standards-sdk.es93.js +95 -68
- package/dist/es/standards-sdk.es93.js.map +1 -1
- package/dist/es/standards-sdk.es94.js +124 -136
- package/dist/es/standards-sdk.es94.js.map +1 -1
- package/dist/es/standards-sdk.es95.js +42 -138
- package/dist/es/standards-sdk.es95.js.map +1 -1
- package/dist/es/standards-sdk.es96.js +259 -42
- package/dist/es/standards-sdk.es96.js.map +1 -1
- package/dist/es/standards-sdk.es97.js +82 -243
- package/dist/es/standards-sdk.es97.js.map +1 -1
- package/dist/es/standards-sdk.es98.js +48 -47
- package/dist/es/standards-sdk.es98.js.map +1 -1
- package/dist/es/standards-sdk.es99.js +29 -100
- package/dist/es/standards-sdk.es99.js.map +1 -1
- package/dist/es/utils/crypto-abstraction.d.ts.map +1 -1
- package/dist/es/utils/crypto-env.d.ts.map +1 -1
- package/dist/es/utils/dynamic-import.d.ts +5 -1
- package/dist/es/utils/dynamic-import.d.ts.map +1 -1
- package/dist/es/utils/hash-adapter.d.ts.map +1 -1
- package/package.json +15 -16
- package/dist/cjs/patches/topic-autorenew-patch.d.ts +0 -2
- package/dist/cjs/patches/topic-autorenew-patch.d.ts.map +0 -1
- package/dist/es/patches/topic-autorenew-patch.d.ts +0 -2
- package/dist/es/patches/topic-autorenew-patch.d.ts.map +0 -1
|
@@ -1,900 +1,137 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
]);
|
|
126
|
-
class HCS11Client {
|
|
127
|
-
constructor(config) {
|
|
128
|
-
this.client = config.network === "mainnet" ? Client.forMainnet() : Client.forTestnet();
|
|
129
|
-
this.auth = config.auth;
|
|
130
|
-
this.network = config.network;
|
|
131
|
-
this.operatorId = config.auth.operatorId;
|
|
132
|
-
this.logger = Logger.getInstance({
|
|
133
|
-
level: config.logLevel || "info",
|
|
134
|
-
module: "HCS-11",
|
|
135
|
-
silent: config.silent
|
|
136
|
-
});
|
|
137
|
-
this.mirrorNode = new HederaMirrorNode(
|
|
138
|
-
this.network,
|
|
139
|
-
this.logger
|
|
140
|
-
);
|
|
141
|
-
if (this.auth.privateKey) {
|
|
142
|
-
this.operatorCtx = createNodeOperatorContext({
|
|
143
|
-
network: this.network,
|
|
144
|
-
operatorId: this.operatorId,
|
|
145
|
-
operatorKey: this.auth.privateKey,
|
|
146
|
-
keyType: config.keyType,
|
|
147
|
-
mirrorNode: this.mirrorNode,
|
|
148
|
-
logger: this.logger,
|
|
149
|
-
client: this.client
|
|
150
|
-
});
|
|
151
|
-
this.client = this.operatorCtx.client;
|
|
152
|
-
this.keyType = this.operatorCtx.keyType;
|
|
153
|
-
void this.operatorCtx.ensureInitialized();
|
|
154
|
-
this.client.setOperator(
|
|
155
|
-
this.operatorId.toString(),
|
|
156
|
-
this.operatorCtx.operatorKey
|
|
157
|
-
);
|
|
158
|
-
} else {
|
|
159
|
-
this.keyType = config.keyType || "ed25519";
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
getClient() {
|
|
163
|
-
return this.client;
|
|
164
|
-
}
|
|
165
|
-
getOperatorId() {
|
|
166
|
-
return this.auth.operatorId;
|
|
167
|
-
}
|
|
168
|
-
async initializeOperator() {
|
|
169
|
-
if (!this.operatorCtx) {
|
|
170
|
-
return;
|
|
171
|
-
}
|
|
172
|
-
try {
|
|
173
|
-
await this.operatorCtx.ensureInitialized();
|
|
174
|
-
this.keyType = this.operatorCtx.keyType;
|
|
175
|
-
this.client.setOperator(this.operatorId, this.operatorCtx.operatorKey);
|
|
176
|
-
} catch (error) {
|
|
177
|
-
this.logger.warn(
|
|
178
|
-
`Failed to verify operator key with mirror node: ${error.message}`
|
|
179
|
-
);
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
createPersonalProfile(displayName, options) {
|
|
183
|
-
return {
|
|
184
|
-
version: "1.0",
|
|
185
|
-
type: ProfileType.PERSONAL,
|
|
186
|
-
display_name: displayName,
|
|
187
|
-
alias: options?.alias,
|
|
188
|
-
bio: options?.bio,
|
|
189
|
-
socials: options?.socials,
|
|
190
|
-
profileImage: options?.profileImage,
|
|
191
|
-
properties: options?.properties,
|
|
192
|
-
inboundTopicId: options?.inboundTopicId,
|
|
193
|
-
outboundTopicId: options?.outboundTopicId,
|
|
194
|
-
base_account: options?.baseAccount
|
|
195
|
-
};
|
|
196
|
-
}
|
|
197
|
-
createAIAgentProfile(displayName, agentType, capabilities, model, options) {
|
|
198
|
-
const validation = this.validateProfile({
|
|
199
|
-
version: "1.0",
|
|
200
|
-
type: ProfileType.AI_AGENT,
|
|
201
|
-
display_name: displayName,
|
|
202
|
-
alias: options?.alias,
|
|
203
|
-
bio: options?.bio,
|
|
204
|
-
socials: options?.socials,
|
|
205
|
-
profileImage: options?.profileImage,
|
|
206
|
-
properties: options?.properties,
|
|
207
|
-
inboundTopicId: options?.inboundTopicId,
|
|
208
|
-
outboundTopicId: options?.outboundTopicId,
|
|
209
|
-
base_account: options?.baseAccount,
|
|
210
|
-
aiAgent: {
|
|
211
|
-
type: agentType,
|
|
212
|
-
capabilities,
|
|
213
|
-
model,
|
|
214
|
-
creator: options?.creator
|
|
215
|
-
}
|
|
216
|
-
});
|
|
217
|
-
if (!validation.valid) {
|
|
218
|
-
throw new Error(
|
|
219
|
-
`Invalid AI Agent Profile: ${validation.errors.join(", ")}`
|
|
220
|
-
);
|
|
221
|
-
}
|
|
222
|
-
return {
|
|
223
|
-
version: "1.0",
|
|
224
|
-
type: ProfileType.AI_AGENT,
|
|
225
|
-
display_name: displayName,
|
|
226
|
-
alias: options?.alias,
|
|
227
|
-
bio: options?.bio,
|
|
228
|
-
socials: options?.socials,
|
|
229
|
-
profileImage: options?.profileImage,
|
|
230
|
-
properties: options?.properties,
|
|
231
|
-
inboundTopicId: options?.inboundTopicId,
|
|
232
|
-
outboundTopicId: options?.outboundTopicId,
|
|
233
|
-
base_account: options?.baseAccount,
|
|
234
|
-
aiAgent: {
|
|
235
|
-
type: agentType,
|
|
236
|
-
capabilities,
|
|
237
|
-
model,
|
|
238
|
-
creator: options?.creator
|
|
239
|
-
}
|
|
240
|
-
};
|
|
241
|
-
}
|
|
242
|
-
/**
|
|
243
|
-
* Creates an MCP server profile.
|
|
244
|
-
*
|
|
245
|
-
* @param displayName - The display name for the MCP server
|
|
246
|
-
* @param serverDetails - The MCP server details
|
|
247
|
-
* @param options - Additional profile options
|
|
248
|
-
* @returns An MCPServerProfile object
|
|
249
|
-
*/
|
|
250
|
-
createMCPServerProfile(displayName, serverDetails, options) {
|
|
251
|
-
const validation = this.validateProfile({
|
|
252
|
-
version: "1.0",
|
|
253
|
-
type: ProfileType.MCP_SERVER,
|
|
254
|
-
display_name: displayName,
|
|
255
|
-
alias: options?.alias,
|
|
256
|
-
bio: options?.bio,
|
|
257
|
-
socials: options?.socials,
|
|
258
|
-
profileImage: options?.profileImage,
|
|
259
|
-
properties: options?.properties,
|
|
260
|
-
inboundTopicId: options?.inboundTopicId,
|
|
261
|
-
outboundTopicId: options?.outboundTopicId,
|
|
262
|
-
mcpServer: serverDetails
|
|
263
|
-
});
|
|
264
|
-
if (!validation.valid) {
|
|
265
|
-
throw new Error(
|
|
266
|
-
`Invalid MCP Server Profile: ${validation.errors.join(", ")}`
|
|
267
|
-
);
|
|
268
|
-
}
|
|
269
|
-
return {
|
|
270
|
-
version: "1.0",
|
|
271
|
-
type: ProfileType.MCP_SERVER,
|
|
272
|
-
display_name: displayName,
|
|
273
|
-
alias: options?.alias,
|
|
274
|
-
bio: options?.bio,
|
|
275
|
-
socials: options?.socials,
|
|
276
|
-
profileImage: options?.profileImage,
|
|
277
|
-
properties: options?.properties,
|
|
278
|
-
inboundTopicId: options?.inboundTopicId,
|
|
279
|
-
outboundTopicId: options?.outboundTopicId,
|
|
280
|
-
mcpServer: serverDetails
|
|
281
|
-
};
|
|
282
|
-
}
|
|
283
|
-
validateProfile(profile) {
|
|
284
|
-
const result = HCS11ProfileSchema.safeParse(profile);
|
|
285
|
-
if (result.success) {
|
|
286
|
-
return { valid: true, errors: [] };
|
|
287
|
-
}
|
|
288
|
-
const formattedErrors = result.error.errors.map((err) => {
|
|
289
|
-
const path = err.path.join(".");
|
|
290
|
-
let message = err.message;
|
|
291
|
-
if (err.code === "invalid_type") {
|
|
292
|
-
message = `Expected ${err.expected}, got ${err.received}`;
|
|
293
|
-
} else if (err.code === "invalid_enum_value") {
|
|
294
|
-
const validOptions = err.options?.join(", ");
|
|
295
|
-
message = `Invalid value. Valid options are: ${validOptions}`;
|
|
296
|
-
} else if (err.code === "too_small" && err.type === "string") {
|
|
297
|
-
message = "Cannot be empty";
|
|
298
|
-
}
|
|
299
|
-
return `${path}: ${message}`;
|
|
300
|
-
});
|
|
301
|
-
return { valid: false, errors: formattedErrors };
|
|
302
|
-
}
|
|
303
|
-
profileToJSONString(profile) {
|
|
304
|
-
return JSON.stringify(profile);
|
|
305
|
-
}
|
|
306
|
-
parseProfileFromString(profileStr) {
|
|
307
|
-
try {
|
|
308
|
-
const parsedProfile = JSON.parse(profileStr);
|
|
309
|
-
const validation = this.validateProfile(parsedProfile);
|
|
310
|
-
if (!validation.valid) {
|
|
311
|
-
this.logger.error("Invalid profile format:", validation.errors);
|
|
312
|
-
return null;
|
|
313
|
-
}
|
|
314
|
-
return parsedProfile;
|
|
315
|
-
} catch (error) {
|
|
316
|
-
this.logger.error("Error parsing profile:");
|
|
317
|
-
return null;
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
setProfileForAccountMemo(topicId, topicStandard = 1) {
|
|
321
|
-
return `hcs-11:hcs://${topicStandard}/${topicId}`;
|
|
322
|
-
}
|
|
323
|
-
async executeTransaction(transaction) {
|
|
324
|
-
try {
|
|
325
|
-
if (this.auth.privateKey) {
|
|
326
|
-
const signedTx = await transaction.signWithOperator(this.client);
|
|
327
|
-
const response2 = await signedTx.execute(this.client);
|
|
328
|
-
const receipt2 = await response2.getReceipt(this.client);
|
|
329
|
-
if (receipt2.status.toString() !== Status.Success.toString()) {
|
|
330
|
-
return {
|
|
331
|
-
success: false,
|
|
332
|
-
error: `Transaction failed: ${receipt2.status.toString()}`
|
|
333
|
-
};
|
|
334
|
-
}
|
|
335
|
-
return {
|
|
336
|
-
success: true,
|
|
337
|
-
result: receipt2
|
|
338
|
-
};
|
|
339
|
-
}
|
|
340
|
-
if (!this.auth.signer) {
|
|
341
|
-
throw new Error("No valid authentication method provided");
|
|
342
|
-
}
|
|
343
|
-
const signer = this.auth.signer;
|
|
344
|
-
const frozenTransaction = await transaction.freezeWithSigner(signer);
|
|
345
|
-
const response = await frozenTransaction.executeWithSigner(signer);
|
|
346
|
-
const receipt = await response.getReceiptWithSigner(signer);
|
|
347
|
-
if (receipt.status.toString() !== Status.Success.toString()) {
|
|
348
|
-
return {
|
|
349
|
-
success: false,
|
|
350
|
-
error: `Transaction failed: ${receipt.status.toString()}: ${Status.Success.toString()}`
|
|
351
|
-
};
|
|
352
|
-
}
|
|
353
|
-
return {
|
|
354
|
-
success: true,
|
|
355
|
-
result: receipt
|
|
356
|
-
};
|
|
357
|
-
} catch (error) {
|
|
358
|
-
return {
|
|
359
|
-
success: false,
|
|
360
|
-
error: error instanceof Error ? error.message : "Unknown error during transaction execution"
|
|
361
|
-
};
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
async inscribeImage(buffer, fileName, options) {
|
|
365
|
-
try {
|
|
366
|
-
const progressCallback = options?.progressCallback;
|
|
367
|
-
const progressReporter = new ProgressReporter({
|
|
368
|
-
module: "HCS11-Image",
|
|
369
|
-
logger: this.logger,
|
|
370
|
-
callback: progressCallback
|
|
371
|
-
});
|
|
372
|
-
progressReporter.preparing("Preparing to inscribe image", 0);
|
|
373
|
-
const mimeType = mime.lookup(fileName) || "application/octet-stream";
|
|
374
|
-
const waitForConfirmation = options?.waitForConfirmation ?? true;
|
|
375
|
-
let inscriptionResponse;
|
|
376
|
-
if (this.auth.signer) {
|
|
377
|
-
if ("accountId" in this.auth.signer) {
|
|
378
|
-
progressReporter.preparing("Using signer for inscription", 10);
|
|
379
|
-
inscriptionResponse = await inscribeWithSigner(
|
|
380
|
-
{
|
|
381
|
-
type: "buffer",
|
|
382
|
-
buffer,
|
|
383
|
-
fileName,
|
|
384
|
-
mimeType
|
|
385
|
-
},
|
|
386
|
-
this.auth.signer,
|
|
387
|
-
{
|
|
388
|
-
network: this.network,
|
|
389
|
-
waitForConfirmation,
|
|
390
|
-
waitMaxAttempts: 150,
|
|
391
|
-
waitIntervalMs: 4e3,
|
|
392
|
-
logging: {
|
|
393
|
-
level: "debug"
|
|
394
|
-
},
|
|
395
|
-
progressCallback: (data) => {
|
|
396
|
-
const adjustedPercent = 10 + (data.progressPercent || 0) * 0.8;
|
|
397
|
-
progressReporter.report({
|
|
398
|
-
stage: data.stage,
|
|
399
|
-
message: data.message,
|
|
400
|
-
progressPercent: adjustedPercent,
|
|
401
|
-
details: data.details
|
|
402
|
-
});
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
);
|
|
406
|
-
} else {
|
|
407
|
-
progressReporter.failed(
|
|
408
|
-
"Signer must be a DAppSigner for inscription"
|
|
409
|
-
);
|
|
410
|
-
throw new Error("Signer must be a DAppSigner for inscription");
|
|
411
|
-
}
|
|
412
|
-
} else {
|
|
413
|
-
if (!this.auth.privateKey) {
|
|
414
|
-
progressReporter.failed("Private key is required for inscription");
|
|
415
|
-
this.logger.error("Private key is required for inscription");
|
|
416
|
-
throw new Error("Private key is required for inscription");
|
|
417
|
-
}
|
|
418
|
-
progressReporter.preparing("Using private key for inscription", 10);
|
|
419
|
-
const PK = this.keyType === "ecdsa" ? PrivateKey.fromStringECDSA(this.auth.privateKey) : PrivateKey.fromStringED25519(this.auth.privateKey);
|
|
420
|
-
inscriptionResponse = await inscribe(
|
|
421
|
-
{
|
|
422
|
-
type: "buffer",
|
|
423
|
-
buffer,
|
|
424
|
-
fileName,
|
|
425
|
-
mimeType
|
|
426
|
-
},
|
|
427
|
-
{
|
|
428
|
-
accountId: this.auth.operatorId,
|
|
429
|
-
privateKey: PK,
|
|
430
|
-
network: this.network
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
waitForConfirmation,
|
|
434
|
-
waitMaxAttempts: 150,
|
|
435
|
-
waitIntervalMs: 2e3,
|
|
436
|
-
logging: {
|
|
437
|
-
level: "debug"
|
|
438
|
-
},
|
|
439
|
-
progressCallback: (data) => {
|
|
440
|
-
const adjustedPercent = 10 + (data.progressPercent || 0) * 0.8;
|
|
441
|
-
progressReporter.report({
|
|
442
|
-
stage: data.stage,
|
|
443
|
-
message: data.message,
|
|
444
|
-
progressPercent: adjustedPercent,
|
|
445
|
-
details: data.details
|
|
446
|
-
});
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
);
|
|
450
|
-
}
|
|
451
|
-
if (inscriptionResponse.confirmed) {
|
|
452
|
-
progressReporter.completed("Image inscription completed", {
|
|
453
|
-
topicId: getTopicId(inscriptionResponse.inscription)
|
|
454
|
-
});
|
|
455
|
-
return {
|
|
456
|
-
imageTopicId: getTopicId(inscriptionResponse.inscription) || "",
|
|
457
|
-
transactionId: inscriptionResponse.result.jobId,
|
|
458
|
-
success: true
|
|
459
|
-
};
|
|
460
|
-
} else {
|
|
461
|
-
const jobId = inscriptionResponse.quote ? "quote-only" : inscriptionResponse.result.jobId;
|
|
462
|
-
progressReporter.verifying("Waiting for inscription confirmation", 50, {
|
|
463
|
-
jobId
|
|
464
|
-
});
|
|
465
|
-
return {
|
|
466
|
-
imageTopicId: "",
|
|
467
|
-
transactionId: jobId,
|
|
468
|
-
success: false,
|
|
469
|
-
error: "Inscription not confirmed"
|
|
470
|
-
};
|
|
471
|
-
}
|
|
472
|
-
} catch (error) {
|
|
473
|
-
this.logger.error("Error inscribing image:", error);
|
|
474
|
-
return {
|
|
475
|
-
imageTopicId: "",
|
|
476
|
-
transactionId: "",
|
|
477
|
-
success: false,
|
|
478
|
-
error: error instanceof Error ? error.message : "Error inscribing image"
|
|
479
|
-
};
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
async inscribeProfile(profile, options) {
|
|
483
|
-
this.logger.info("Inscribing HCS-11 profile");
|
|
484
|
-
const progressCallback = options?.progressCallback;
|
|
485
|
-
const progressReporter = new ProgressReporter({
|
|
486
|
-
module: "HCS11-Profile",
|
|
487
|
-
logger: this.logger,
|
|
488
|
-
callback: progressCallback
|
|
489
|
-
});
|
|
490
|
-
await this.attachUaidIfMissing(profile);
|
|
491
|
-
progressReporter.preparing("Validating profile data", 5);
|
|
492
|
-
const validation = this.validateProfile(profile);
|
|
493
|
-
if (!validation.valid) {
|
|
494
|
-
progressReporter.failed(
|
|
495
|
-
`Invalid profile: ${validation.errors.join(", ")}`
|
|
496
|
-
);
|
|
497
|
-
return {
|
|
498
|
-
profileTopicId: "",
|
|
499
|
-
transactionId: "",
|
|
500
|
-
success: false,
|
|
501
|
-
error: `Invalid profile: ${validation.errors.join(", ")}`
|
|
502
|
-
};
|
|
503
|
-
}
|
|
504
|
-
progressReporter.preparing("Formatting profile for inscription", 15);
|
|
505
|
-
const profileJson = this.profileToJSONString(profile);
|
|
506
|
-
const fileName = `profile-${profile.display_name.toLowerCase().replace(/\s+/g, "-")}.json`;
|
|
507
|
-
try {
|
|
508
|
-
const contentBuffer = Buffer.from(profileJson, "utf-8");
|
|
509
|
-
const contentType = "application/json";
|
|
510
|
-
progressReporter.preparing("Preparing profile for inscription", 20);
|
|
511
|
-
const input = {
|
|
512
|
-
type: "buffer",
|
|
513
|
-
buffer: contentBuffer,
|
|
514
|
-
fileName,
|
|
515
|
-
mimeType: contentType
|
|
516
|
-
};
|
|
517
|
-
const inscriptionOptions = {
|
|
518
|
-
waitForConfirmation: true,
|
|
519
|
-
mode: "file",
|
|
520
|
-
network: this.network,
|
|
521
|
-
waitMaxAttempts: 100,
|
|
522
|
-
waitIntervalMs: 2e3,
|
|
523
|
-
progressCallback: (data) => {
|
|
524
|
-
const adjustedPercent = 20 + Number(data?.progressPercent || 0) * 0.75;
|
|
525
|
-
progressReporter?.report({
|
|
526
|
-
stage: data.stage,
|
|
527
|
-
message: data.message,
|
|
528
|
-
progressPercent: adjustedPercent,
|
|
529
|
-
details: data.details
|
|
530
|
-
});
|
|
531
|
-
}
|
|
532
|
-
};
|
|
533
|
-
progressReporter.submitting("Submitting profile to Hedera network", 30);
|
|
534
|
-
let inscriptionResponse;
|
|
535
|
-
if (this.auth.privateKey) {
|
|
536
|
-
const PK = this.keyType === "ecdsa" ? PrivateKey.fromStringECDSA(this.auth.privateKey) : PrivateKey.fromStringED25519(this.auth.privateKey);
|
|
537
|
-
inscriptionResponse = await inscribe(
|
|
538
|
-
input,
|
|
539
|
-
{
|
|
540
|
-
accountId: this.auth.operatorId,
|
|
541
|
-
privateKey: PK,
|
|
542
|
-
network: this.network
|
|
543
|
-
},
|
|
544
|
-
inscriptionOptions
|
|
545
|
-
);
|
|
546
|
-
} else if (this.auth.signer) {
|
|
547
|
-
inscriptionResponse = await inscribeWithSigner(
|
|
548
|
-
input,
|
|
549
|
-
this.auth.signer,
|
|
550
|
-
inscriptionOptions
|
|
551
|
-
);
|
|
552
|
-
} else {
|
|
553
|
-
throw new Error(
|
|
554
|
-
"No authentication method available - neither private key nor signer"
|
|
555
|
-
);
|
|
556
|
-
}
|
|
557
|
-
if (!inscriptionResponse.confirmed || !getTopicId(inscriptionResponse.inscription)) {
|
|
558
|
-
progressReporter.failed("Failed to inscribe profile content");
|
|
559
|
-
return {
|
|
560
|
-
profileTopicId: "",
|
|
561
|
-
transactionId: "",
|
|
562
|
-
success: false,
|
|
563
|
-
error: "Failed to inscribe profile content"
|
|
564
|
-
};
|
|
565
|
-
}
|
|
566
|
-
const topicId = getTopicId(inscriptionResponse.inscription);
|
|
567
|
-
progressReporter.completed("Profile inscription completed", {
|
|
568
|
-
topicId,
|
|
569
|
-
transactionId: inscriptionResponse.result.transactionId
|
|
570
|
-
});
|
|
571
|
-
return {
|
|
572
|
-
profileTopicId: topicId,
|
|
573
|
-
transactionId: inscriptionResponse.result.transactionId,
|
|
574
|
-
success: true,
|
|
575
|
-
totalCostHbar: inscriptionResponse.costSummary?.totalCostHbar
|
|
576
|
-
};
|
|
577
|
-
} catch (error) {
|
|
578
|
-
progressReporter.failed(
|
|
579
|
-
`Error inscribing profile: ${error.message || "Unknown error"}`
|
|
580
|
-
);
|
|
581
|
-
return {
|
|
582
|
-
profileTopicId: "",
|
|
583
|
-
transactionId: "",
|
|
584
|
-
success: false,
|
|
585
|
-
error: error.message || "Unknown error during inscription"
|
|
586
|
-
};
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
async attachUaidIfMissing(profile) {
|
|
590
|
-
if (profile.uaid) {
|
|
591
|
-
return;
|
|
592
|
-
}
|
|
593
|
-
if (!isHederaNetwork(this.network)) {
|
|
594
|
-
return;
|
|
595
|
-
}
|
|
596
|
-
try {
|
|
597
|
-
const { HCS14Client } = await import("./standards-sdk.es135.js");
|
|
598
|
-
const hcs14 = new HCS14Client({ client: this.client });
|
|
599
|
-
const did = await hcs14.createDid({
|
|
600
|
-
method: "hedera",
|
|
601
|
-
client: this.client
|
|
602
|
-
});
|
|
603
|
-
const nativeId = toHederaCaip10(this.network, this.auth.operatorId);
|
|
604
|
-
let uid = this.auth.operatorId;
|
|
605
|
-
const inboundFromProfile = profile.inboundTopicId;
|
|
606
|
-
if (inboundFromProfile && inboundFromProfile.trim().length > 0) {
|
|
607
|
-
uid = `${inboundFromProfile}@${this.auth.operatorId}`;
|
|
608
|
-
} else {
|
|
609
|
-
try {
|
|
610
|
-
const fetched = await this.fetchProfileByAccountId(
|
|
611
|
-
this.auth.operatorId,
|
|
612
|
-
this.network
|
|
613
|
-
);
|
|
614
|
-
const inbound = fetched?.topicInfo?.inboundTopic;
|
|
615
|
-
if (inbound && inbound.trim().length > 0) {
|
|
616
|
-
uid = `${inbound}@${this.auth.operatorId}`;
|
|
617
|
-
}
|
|
618
|
-
} catch {
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
const uaid = hcs14.createUaid(did, { proto: "hcs-10", nativeId, uid });
|
|
622
|
-
profile.uaid = uaid;
|
|
623
|
-
} catch (e) {
|
|
624
|
-
this.logger.warn(
|
|
625
|
-
"Hiero registrar not available; skipping UAID generation for profile",
|
|
626
|
-
e
|
|
627
|
-
);
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
async updateAccountMemoWithProfile(accountId, profileTopicId) {
|
|
631
|
-
try {
|
|
632
|
-
this.logger.info(
|
|
633
|
-
`Updating account memo for ${accountId} with profile ${profileTopicId}`
|
|
634
|
-
);
|
|
635
|
-
const memo = this.setProfileForAccountMemo(profileTopicId);
|
|
636
|
-
const transaction = new AccountUpdateTransaction().setAccountMemo(memo).setAccountId(accountId);
|
|
637
|
-
return this.executeTransaction(transaction);
|
|
638
|
-
} catch (error) {
|
|
639
|
-
this.logger.error(
|
|
640
|
-
`Error updating account memo: ${error instanceof Error ? error.message : "Unknown error"}`
|
|
641
|
-
);
|
|
642
|
-
return {
|
|
643
|
-
success: false,
|
|
644
|
-
error: error instanceof Error ? error.message : "Unknown error updating account memo"
|
|
645
|
-
};
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
/**
|
|
649
|
-
* Creates and inscribes a profile.
|
|
650
|
-
*
|
|
651
|
-
* @param profile - The profile to create and inscribe.
|
|
652
|
-
* @param updateAccountMemo - Whether to update the account memo with the profile.
|
|
653
|
-
* @param options - Optional configuration options.
|
|
654
|
-
* @returns A promise that resolves to the inscription result.
|
|
655
|
-
*/
|
|
656
|
-
async createAndInscribeProfile(profile, updateAccountMemo = true, options) {
|
|
657
|
-
const progressCallback = options?.progressCallback;
|
|
658
|
-
const progressReporter = new ProgressReporter({
|
|
659
|
-
module: "HCS11-ProfileCreation",
|
|
660
|
-
logger: this.logger,
|
|
661
|
-
callback: progressCallback
|
|
662
|
-
});
|
|
663
|
-
progressReporter.preparing("Starting profile creation process", 0);
|
|
664
|
-
const inscriptionProgress = progressReporter.createSubProgress({
|
|
665
|
-
minPercent: 0,
|
|
666
|
-
maxPercent: 80,
|
|
667
|
-
logPrefix: "Inscription"
|
|
668
|
-
});
|
|
669
|
-
const inscriptionResult = await this.inscribeProfile(profile, {
|
|
670
|
-
...options,
|
|
671
|
-
progressCallback: (data) => {
|
|
672
|
-
inscriptionProgress.report({
|
|
673
|
-
stage: data.stage,
|
|
674
|
-
message: data.message,
|
|
675
|
-
progressPercent: data.progressPercent,
|
|
676
|
-
details: data.details
|
|
677
|
-
});
|
|
678
|
-
}
|
|
679
|
-
});
|
|
680
|
-
if (!inscriptionResult?.success) {
|
|
681
|
-
progressReporter.failed("Profile inscription failed", {
|
|
682
|
-
error: inscriptionResult?.error
|
|
683
|
-
});
|
|
684
|
-
return inscriptionResult;
|
|
685
|
-
}
|
|
686
|
-
progressReporter.confirming("Profile inscribed, updating account memo", 85);
|
|
687
|
-
if (updateAccountMemo) {
|
|
688
|
-
const memoResult = await this.updateAccountMemoWithProfile(
|
|
689
|
-
this.auth.operatorId,
|
|
690
|
-
inscriptionResult.profileTopicId
|
|
691
|
-
);
|
|
692
|
-
if (!memoResult.success) {
|
|
693
|
-
progressReporter.failed("Failed to update account memo", {
|
|
694
|
-
error: memoResult?.error
|
|
695
|
-
});
|
|
696
|
-
return {
|
|
697
|
-
...inscriptionResult,
|
|
698
|
-
success: false,
|
|
699
|
-
error: memoResult?.error
|
|
700
|
-
};
|
|
701
|
-
}
|
|
702
|
-
}
|
|
703
|
-
progressReporter.completed("Profile creation completed successfully", {
|
|
704
|
-
profileTopicId: inscriptionResult.profileTopicId,
|
|
705
|
-
transactionId: inscriptionResult.transactionId,
|
|
706
|
-
totalCostHbar: inscriptionResult.totalCostHbar
|
|
707
|
-
});
|
|
708
|
-
return inscriptionResult;
|
|
709
|
-
}
|
|
710
|
-
/**
|
|
711
|
-
* Gets the capabilities from the capability names.
|
|
712
|
-
*
|
|
713
|
-
* @param capabilityNames - The capability names to get the capabilities for.
|
|
714
|
-
* @returns The capabilities.
|
|
715
|
-
*/
|
|
716
|
-
async getCapabilitiesFromTags(capabilityNames) {
|
|
717
|
-
const capabilities = [];
|
|
718
|
-
if (capabilityNames.length === 0) {
|
|
719
|
-
return [AIAgentCapability.TEXT_GENERATION];
|
|
720
|
-
}
|
|
721
|
-
for (const capabilityName of capabilityNames) {
|
|
722
|
-
const capability = capabilityNameToCapabilityMap[capabilityName.toLowerCase()];
|
|
723
|
-
if (capability !== void 0 && !capabilities.includes(capability)) {
|
|
724
|
-
capabilities.push(capability);
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
if (capabilities.length === 0) {
|
|
728
|
-
capabilities.push(AIAgentCapability.TEXT_GENERATION);
|
|
729
|
-
}
|
|
730
|
-
return capabilities;
|
|
731
|
-
}
|
|
732
|
-
/**
|
|
733
|
-
* Gets the agent type from the metadata.
|
|
734
|
-
*
|
|
735
|
-
* @param metadata - The metadata of the agent.
|
|
736
|
-
* @returns The agent type.
|
|
737
|
-
*/
|
|
738
|
-
getAgentTypeFromMetadata(metadata) {
|
|
739
|
-
if (metadata.type === "autonomous") {
|
|
740
|
-
return AIAgentType.AUTONOMOUS;
|
|
741
|
-
} else {
|
|
742
|
-
return AIAgentType.MANUAL;
|
|
743
|
-
}
|
|
744
|
-
}
|
|
745
|
-
/**
|
|
746
|
-
* Fetches a profile from the account memo.
|
|
747
|
-
*
|
|
748
|
-
* @param accountId - The account ID of the agent to fetch the profile for.
|
|
749
|
-
* @param network - The network to use for the fetch.
|
|
750
|
-
* @returns A promise that resolves to the profile.
|
|
751
|
-
*/
|
|
752
|
-
async fetchProfileByAccountId(accountId, network) {
|
|
753
|
-
try {
|
|
754
|
-
this.logger.debug(
|
|
755
|
-
`Fetching profile for account ${accountId.toString()} on ${this.network}`
|
|
756
|
-
);
|
|
757
|
-
const memo = await this.mirrorNode.getAccountMemo(accountId.toString());
|
|
758
|
-
this.logger.debug(`Got account memo: ${memo}`);
|
|
759
|
-
if (!memo?.startsWith("hcs-11:")) {
|
|
760
|
-
return {
|
|
761
|
-
success: false,
|
|
762
|
-
error: `Account ${accountId.toString()} does not have a valid HCS-11 memo. Current memo: ${memo || "empty"}`
|
|
763
|
-
};
|
|
764
|
-
}
|
|
765
|
-
this.logger.debug(`Found HCS-11 memo: ${memo}`);
|
|
766
|
-
const protocolReference = memo.substring(7);
|
|
767
|
-
if (protocolReference?.startsWith("hcs://")) {
|
|
768
|
-
const hcsFormat = protocolReference.match(/hcs:\/\/(\d+)\/(.+)/);
|
|
769
|
-
if (!hcsFormat) {
|
|
770
|
-
return {
|
|
771
|
-
success: false,
|
|
772
|
-
error: `Invalid HCS protocol reference format: ${protocolReference}`
|
|
773
|
-
};
|
|
774
|
-
}
|
|
775
|
-
const [_, protocolId, profileTopicId] = hcsFormat;
|
|
776
|
-
const networkParam = network || this.network || "mainnet";
|
|
777
|
-
this.logger.debug(
|
|
778
|
-
`Retrieving profile from Kiloscribe CDN: ${profileTopicId}`
|
|
779
|
-
);
|
|
780
|
-
const cdnUrl = `https://kiloscribe.com/api/inscription-cdn/${profileTopicId}?network=${networkParam}`;
|
|
781
|
-
try {
|
|
782
|
-
const response = await fetch(cdnUrl);
|
|
783
|
-
if (!response.ok) {
|
|
784
|
-
return {
|
|
785
|
-
success: false,
|
|
786
|
-
error: `Failed to fetch profile from Kiloscribe CDN: ${response.statusText}`
|
|
787
|
-
};
|
|
788
|
-
}
|
|
789
|
-
const profileData = await response.json();
|
|
790
|
-
if (!profileData) {
|
|
791
|
-
return {
|
|
792
|
-
success: false,
|
|
793
|
-
error: `No profile data found for topic ${profileTopicId}`
|
|
794
|
-
};
|
|
795
|
-
}
|
|
796
|
-
const parsed = HCS11ProfileSchema.safeParse(profileData);
|
|
797
|
-
if (!parsed.success) {
|
|
798
|
-
return {
|
|
799
|
-
success: false,
|
|
800
|
-
error: `Invalid HCS-11 profile data for topic ${profileTopicId}`
|
|
801
|
-
};
|
|
802
|
-
}
|
|
803
|
-
return {
|
|
804
|
-
success: true,
|
|
805
|
-
profile: parsed.data,
|
|
806
|
-
topicInfo: {
|
|
807
|
-
inboundTopic: parsed.data.inboundTopicId || "",
|
|
808
|
-
outboundTopic: parsed.data.outboundTopicId || "",
|
|
809
|
-
profileTopicId
|
|
810
|
-
}
|
|
811
|
-
};
|
|
812
|
-
} catch (cdnError) {
|
|
813
|
-
this.logger.error(
|
|
814
|
-
`Error retrieving from Kiloscribe CDN: ${cdnError.message}`
|
|
815
|
-
);
|
|
816
|
-
return {
|
|
817
|
-
success: false,
|
|
818
|
-
error: `Error retrieving from Kiloscribe CDN: ${cdnError.message}`
|
|
819
|
-
};
|
|
820
|
-
}
|
|
821
|
-
} else if (protocolReference.startsWith("ipfs://")) {
|
|
822
|
-
this.logger.warn("IPFS protocol references are not fully supported");
|
|
823
|
-
const response = await fetch(
|
|
824
|
-
`https://ipfs.io/ipfs/${protocolReference.replace("ipfs://", "")}`
|
|
825
|
-
);
|
|
826
|
-
const profileData = await response.json();
|
|
827
|
-
const parsed = HCS11ProfileSchema.safeParse(profileData);
|
|
828
|
-
if (!parsed.success) {
|
|
829
|
-
return {
|
|
830
|
-
success: false,
|
|
831
|
-
error: `Invalid HCS-11 profile data from IPFS reference ${protocolReference}`
|
|
832
|
-
};
|
|
833
|
-
}
|
|
834
|
-
return {
|
|
835
|
-
success: true,
|
|
836
|
-
profile: parsed.data,
|
|
837
|
-
topicInfo: {
|
|
838
|
-
inboundTopic: parsed.data.inboundTopicId || "",
|
|
839
|
-
outboundTopic: parsed.data.outboundTopicId || "",
|
|
840
|
-
profileTopicId: ""
|
|
841
|
-
}
|
|
842
|
-
};
|
|
843
|
-
} else if (protocolReference.startsWith("ar://")) {
|
|
844
|
-
const arTxId = protocolReference.replace("ar://", "");
|
|
845
|
-
const response = await fetch(`https://arweave.net/${arTxId}`);
|
|
846
|
-
if (!response.ok) {
|
|
847
|
-
return {
|
|
848
|
-
success: false,
|
|
849
|
-
error: `Failed to fetch profile from Arweave ${arTxId}: ${response.statusText}`
|
|
850
|
-
};
|
|
851
|
-
}
|
|
852
|
-
const profileData = await response.json();
|
|
853
|
-
const parsed = HCS11ProfileSchema.safeParse(profileData);
|
|
854
|
-
if (!parsed.success) {
|
|
855
|
-
return {
|
|
856
|
-
success: false,
|
|
857
|
-
error: `Invalid HCS-11 profile data from Arweave reference ${arTxId}`
|
|
858
|
-
};
|
|
859
|
-
}
|
|
860
|
-
return {
|
|
861
|
-
success: true,
|
|
862
|
-
profile: parsed.data,
|
|
863
|
-
topicInfo: {
|
|
864
|
-
inboundTopic: parsed.data.inboundTopicId || "",
|
|
865
|
-
outboundTopic: parsed.data.outboundTopicId || "",
|
|
866
|
-
profileTopicId: ""
|
|
867
|
-
}
|
|
868
|
-
};
|
|
869
|
-
} else {
|
|
870
|
-
return {
|
|
871
|
-
success: false,
|
|
872
|
-
error: `Invalid protocol reference format: ${protocolReference}`
|
|
873
|
-
};
|
|
874
|
-
}
|
|
875
|
-
} catch (error) {
|
|
876
|
-
this.logger.error(`Error fetching profile: ${error.message}`);
|
|
877
|
-
return {
|
|
878
|
-
success: false,
|
|
879
|
-
error: `Error fetching profile: ${error.message}`
|
|
880
|
-
};
|
|
881
|
-
}
|
|
882
|
-
}
|
|
883
|
-
}
|
|
1
|
+
var ProfileType = /* @__PURE__ */ ((ProfileType2) => {
|
|
2
|
+
ProfileType2[ProfileType2["PERSONAL"] = 0] = "PERSONAL";
|
|
3
|
+
ProfileType2[ProfileType2["AI_AGENT"] = 1] = "AI_AGENT";
|
|
4
|
+
ProfileType2[ProfileType2["MCP_SERVER"] = 2] = "MCP_SERVER";
|
|
5
|
+
ProfileType2[ProfileType2["FLORA"] = 3] = "FLORA";
|
|
6
|
+
return ProfileType2;
|
|
7
|
+
})(ProfileType || {});
|
|
8
|
+
var AIAgentType = /* @__PURE__ */ ((AIAgentType2) => {
|
|
9
|
+
AIAgentType2[AIAgentType2["MANUAL"] = 0] = "MANUAL";
|
|
10
|
+
AIAgentType2[AIAgentType2["AUTONOMOUS"] = 1] = "AUTONOMOUS";
|
|
11
|
+
return AIAgentType2;
|
|
12
|
+
})(AIAgentType || {});
|
|
13
|
+
var EndpointType = /* @__PURE__ */ ((EndpointType2) => {
|
|
14
|
+
EndpointType2[EndpointType2["REST"] = 0] = "REST";
|
|
15
|
+
EndpointType2[EndpointType2["WEBSOCKET"] = 1] = "WEBSOCKET";
|
|
16
|
+
EndpointType2[EndpointType2["GRPC"] = 2] = "GRPC";
|
|
17
|
+
return EndpointType2;
|
|
18
|
+
})(EndpointType || {});
|
|
19
|
+
var AIAgentCapability = /* @__PURE__ */ ((AIAgentCapability2) => {
|
|
20
|
+
AIAgentCapability2[AIAgentCapability2["TEXT_GENERATION"] = 0] = "TEXT_GENERATION";
|
|
21
|
+
AIAgentCapability2[AIAgentCapability2["IMAGE_GENERATION"] = 1] = "IMAGE_GENERATION";
|
|
22
|
+
AIAgentCapability2[AIAgentCapability2["AUDIO_GENERATION"] = 2] = "AUDIO_GENERATION";
|
|
23
|
+
AIAgentCapability2[AIAgentCapability2["VIDEO_GENERATION"] = 3] = "VIDEO_GENERATION";
|
|
24
|
+
AIAgentCapability2[AIAgentCapability2["CODE_GENERATION"] = 4] = "CODE_GENERATION";
|
|
25
|
+
AIAgentCapability2[AIAgentCapability2["LANGUAGE_TRANSLATION"] = 5] = "LANGUAGE_TRANSLATION";
|
|
26
|
+
AIAgentCapability2[AIAgentCapability2["SUMMARIZATION_EXTRACTION"] = 6] = "SUMMARIZATION_EXTRACTION";
|
|
27
|
+
AIAgentCapability2[AIAgentCapability2["KNOWLEDGE_RETRIEVAL"] = 7] = "KNOWLEDGE_RETRIEVAL";
|
|
28
|
+
AIAgentCapability2[AIAgentCapability2["DATA_INTEGRATION"] = 8] = "DATA_INTEGRATION";
|
|
29
|
+
AIAgentCapability2[AIAgentCapability2["MARKET_INTELLIGENCE"] = 9] = "MARKET_INTELLIGENCE";
|
|
30
|
+
AIAgentCapability2[AIAgentCapability2["TRANSACTION_ANALYTICS"] = 10] = "TRANSACTION_ANALYTICS";
|
|
31
|
+
AIAgentCapability2[AIAgentCapability2["SMART_CONTRACT_AUDIT"] = 11] = "SMART_CONTRACT_AUDIT";
|
|
32
|
+
AIAgentCapability2[AIAgentCapability2["GOVERNANCE_FACILITATION"] = 12] = "GOVERNANCE_FACILITATION";
|
|
33
|
+
AIAgentCapability2[AIAgentCapability2["SECURITY_MONITORING"] = 13] = "SECURITY_MONITORING";
|
|
34
|
+
AIAgentCapability2[AIAgentCapability2["COMPLIANCE_ANALYSIS"] = 14] = "COMPLIANCE_ANALYSIS";
|
|
35
|
+
AIAgentCapability2[AIAgentCapability2["FRAUD_DETECTION"] = 15] = "FRAUD_DETECTION";
|
|
36
|
+
AIAgentCapability2[AIAgentCapability2["MULTI_AGENT_COORDINATION"] = 16] = "MULTI_AGENT_COORDINATION";
|
|
37
|
+
AIAgentCapability2[AIAgentCapability2["API_INTEGRATION"] = 17] = "API_INTEGRATION";
|
|
38
|
+
AIAgentCapability2[AIAgentCapability2["WORKFLOW_AUTOMATION"] = 18] = "WORKFLOW_AUTOMATION";
|
|
39
|
+
return AIAgentCapability2;
|
|
40
|
+
})(AIAgentCapability || {});
|
|
41
|
+
var MCPServerCapability = /* @__PURE__ */ ((MCPServerCapability2) => {
|
|
42
|
+
MCPServerCapability2[MCPServerCapability2["RESOURCE_PROVIDER"] = 0] = "RESOURCE_PROVIDER";
|
|
43
|
+
MCPServerCapability2[MCPServerCapability2["TOOL_PROVIDER"] = 1] = "TOOL_PROVIDER";
|
|
44
|
+
MCPServerCapability2[MCPServerCapability2["PROMPT_TEMPLATE_PROVIDER"] = 2] = "PROMPT_TEMPLATE_PROVIDER";
|
|
45
|
+
MCPServerCapability2[MCPServerCapability2["LOCAL_FILE_ACCESS"] = 3] = "LOCAL_FILE_ACCESS";
|
|
46
|
+
MCPServerCapability2[MCPServerCapability2["DATABASE_INTEGRATION"] = 4] = "DATABASE_INTEGRATION";
|
|
47
|
+
MCPServerCapability2[MCPServerCapability2["API_INTEGRATION"] = 5] = "API_INTEGRATION";
|
|
48
|
+
MCPServerCapability2[MCPServerCapability2["WEB_ACCESS"] = 6] = "WEB_ACCESS";
|
|
49
|
+
MCPServerCapability2[MCPServerCapability2["KNOWLEDGE_BASE"] = 7] = "KNOWLEDGE_BASE";
|
|
50
|
+
MCPServerCapability2[MCPServerCapability2["MEMORY_PERSISTENCE"] = 8] = "MEMORY_PERSISTENCE";
|
|
51
|
+
MCPServerCapability2[MCPServerCapability2["CODE_ANALYSIS"] = 9] = "CODE_ANALYSIS";
|
|
52
|
+
MCPServerCapability2[MCPServerCapability2["CONTENT_GENERATION"] = 10] = "CONTENT_GENERATION";
|
|
53
|
+
MCPServerCapability2[MCPServerCapability2["COMMUNICATION"] = 11] = "COMMUNICATION";
|
|
54
|
+
MCPServerCapability2[MCPServerCapability2["DOCUMENT_PROCESSING"] = 12] = "DOCUMENT_PROCESSING";
|
|
55
|
+
MCPServerCapability2[MCPServerCapability2["CALENDAR_SCHEDULE"] = 13] = "CALENDAR_SCHEDULE";
|
|
56
|
+
MCPServerCapability2[MCPServerCapability2["SEARCH"] = 14] = "SEARCH";
|
|
57
|
+
MCPServerCapability2[MCPServerCapability2["ASSISTANT_ORCHESTRATION"] = 15] = "ASSISTANT_ORCHESTRATION";
|
|
58
|
+
return MCPServerCapability2;
|
|
59
|
+
})(MCPServerCapability || {});
|
|
60
|
+
var VerificationType = /* @__PURE__ */ ((VerificationType2) => {
|
|
61
|
+
VerificationType2["DNS"] = "dns";
|
|
62
|
+
VerificationType2["SIGNATURE"] = "signature";
|
|
63
|
+
VerificationType2["CHALLENGE"] = "challenge";
|
|
64
|
+
return VerificationType2;
|
|
65
|
+
})(VerificationType || {});
|
|
66
|
+
var InboundTopicType = /* @__PURE__ */ ((InboundTopicType2) => {
|
|
67
|
+
InboundTopicType2["PUBLIC"] = "PUBLIC";
|
|
68
|
+
InboundTopicType2["CONTROLLED"] = "CONTROLLED";
|
|
69
|
+
InboundTopicType2["FEE_BASED"] = "FEE_BASED";
|
|
70
|
+
return InboundTopicType2;
|
|
71
|
+
})(InboundTopicType || {});
|
|
72
|
+
const SUPPORTED_SOCIAL_PLATFORMS = [
|
|
73
|
+
"twitter",
|
|
74
|
+
"github",
|
|
75
|
+
"discord",
|
|
76
|
+
"telegram",
|
|
77
|
+
"linkedin",
|
|
78
|
+
"youtube",
|
|
79
|
+
"website",
|
|
80
|
+
"x"
|
|
81
|
+
];
|
|
82
|
+
const capabilityNameToCapabilityMap = {
|
|
83
|
+
text_generation: 0,
|
|
84
|
+
image_generation: 1,
|
|
85
|
+
audio_generation: 2,
|
|
86
|
+
video_generation: 3,
|
|
87
|
+
code_generation: 4,
|
|
88
|
+
language_translation: 5,
|
|
89
|
+
summarization: 6,
|
|
90
|
+
extraction: 6,
|
|
91
|
+
knowledge_retrieval: 7,
|
|
92
|
+
data_integration: 8,
|
|
93
|
+
data_visualization: 8,
|
|
94
|
+
market_intelligence: 9,
|
|
95
|
+
transaction_analytics: 10,
|
|
96
|
+
smart_contract_audit: 11,
|
|
97
|
+
governance: 12,
|
|
98
|
+
security_monitoring: 13,
|
|
99
|
+
compliance_analysis: 14,
|
|
100
|
+
fraud_detection: 15,
|
|
101
|
+
multi_agent: 16,
|
|
102
|
+
api_integration: 17,
|
|
103
|
+
workflow_automation: 18
|
|
104
|
+
/* WORKFLOW_AUTOMATION */
|
|
105
|
+
};
|
|
106
|
+
const mcpServiceNameToCapabilityMap = {
|
|
107
|
+
resource_provider: 0,
|
|
108
|
+
tool_provider: 1,
|
|
109
|
+
prompt_template_provider: 2,
|
|
110
|
+
local_file_access: 3,
|
|
111
|
+
database_integration: 4,
|
|
112
|
+
api_integration: 5,
|
|
113
|
+
web_access: 6,
|
|
114
|
+
knowledge_base: 7,
|
|
115
|
+
memory_persistence: 8,
|
|
116
|
+
code_analysis: 9,
|
|
117
|
+
content_generation: 10,
|
|
118
|
+
communication: 11,
|
|
119
|
+
document_processing: 12,
|
|
120
|
+
calendar_schedule: 13,
|
|
121
|
+
search: 14,
|
|
122
|
+
assistant_orchestration: 15
|
|
123
|
+
/* ASSISTANT_ORCHESTRATION */
|
|
124
|
+
};
|
|
884
125
|
export {
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
MCPServerToolSchema,
|
|
896
|
-
MCPServerVerificationSchema,
|
|
897
|
-
PersonalProfileSchema,
|
|
898
|
-
SocialLinkSchema
|
|
126
|
+
AIAgentCapability,
|
|
127
|
+
AIAgentType,
|
|
128
|
+
EndpointType,
|
|
129
|
+
InboundTopicType,
|
|
130
|
+
MCPServerCapability,
|
|
131
|
+
ProfileType,
|
|
132
|
+
SUPPORTED_SOCIAL_PLATFORMS,
|
|
133
|
+
VerificationType,
|
|
134
|
+
capabilityNameToCapabilityMap,
|
|
135
|
+
mcpServiceNameToCapabilityMap
|
|
899
136
|
};
|
|
900
137
|
//# sourceMappingURL=standards-sdk.es28.js.map
|