@reclaimprotocol/attestor-core 5.0.1-beta.9 → 5.0.2-beta.1

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 (310) hide show
  1. package/browser/resources/attestor-browser.min.mjs +4513 -0
  2. package/lib/client/tunnels/make-rpc-tls-tunnel.d.ts +1 -1
  3. package/lib/external-rpc/index.js +10397 -3
  4. package/lib/index.js +8325 -10
  5. package/lib/server/utils/generics.d.ts +1 -1
  6. package/lib/server/utils/proxy-session.d.ts +1 -1
  7. package/lib/types/general.d.ts +0 -1
  8. package/lib/types/providers.d.ts +3 -2
  9. package/lib/types/signatures.d.ts +1 -2
  10. package/lib/utils/generics.d.ts +1 -6
  11. package/lib/utils/index.d.ts +0 -1
  12. package/package.json +9 -11
  13. package/lib/avs/abis/avsDirectoryABI.js +0 -343
  14. package/lib/avs/abis/delegationABI.js +0 -4
  15. package/lib/avs/abis/registryABI.js +0 -728
  16. package/lib/avs/client/create-claim-on-avs.js +0 -168
  17. package/lib/avs/config.js +0 -26
  18. package/lib/avs/contracts/ReclaimServiceManager.js +0 -0
  19. package/lib/avs/contracts/common.js +0 -0
  20. package/lib/avs/contracts/factories/ReclaimServiceManager__factory.js +0 -1183
  21. package/lib/avs/contracts/factories/index.js +0 -4
  22. package/lib/avs/contracts/index.js +0 -6
  23. package/lib/avs/types/index.js +0 -0
  24. package/lib/avs/utils/contracts.js +0 -53
  25. package/lib/avs/utils/register.js +0 -74
  26. package/lib/avs/utils/tasks.js +0 -48
  27. package/lib/browser/avs/abis/avsDirectoryABI.d.ts +0 -60
  28. package/lib/browser/avs/abis/avsDirectoryABI.js +0 -343
  29. package/lib/browser/avs/abis/delegationABI.d.ts +0 -126
  30. package/lib/browser/avs/abis/delegationABI.js +0 -4
  31. package/lib/browser/avs/abis/registryABI.d.ts +0 -136
  32. package/lib/browser/avs/abis/registryABI.js +0 -728
  33. package/lib/browser/avs/client/create-claim-on-avs.d.ts +0 -12
  34. package/lib/browser/avs/client/create-claim-on-avs.js +0 -168
  35. package/lib/browser/avs/config.d.ts +0 -7
  36. package/lib/browser/avs/config.js +0 -26
  37. package/lib/browser/avs/contracts/ReclaimServiceManager.d.ts +0 -601
  38. package/lib/browser/avs/contracts/ReclaimServiceManager.js +0 -0
  39. package/lib/browser/avs/contracts/common.d.ts +0 -50
  40. package/lib/browser/avs/contracts/common.js +0 -0
  41. package/lib/browser/avs/contracts/factories/ReclaimServiceManager__factory.d.ts +0 -890
  42. package/lib/browser/avs/contracts/factories/ReclaimServiceManager__factory.js +0 -1183
  43. package/lib/browser/avs/contracts/factories/index.d.ts +0 -1
  44. package/lib/browser/avs/contracts/factories/index.js +0 -4
  45. package/lib/browser/avs/contracts/index.d.ts +0 -3
  46. package/lib/browser/avs/contracts/index.js +0 -6
  47. package/lib/browser/avs/types/index.d.ts +0 -55
  48. package/lib/browser/avs/types/index.js +0 -0
  49. package/lib/browser/avs/utils/contracts.d.ts +0 -21
  50. package/lib/browser/avs/utils/contracts.js +0 -53
  51. package/lib/browser/avs/utils/register.d.ts +0 -27
  52. package/lib/browser/avs/utils/register.js +0 -74
  53. package/lib/browser/avs/utils/tasks.d.ts +0 -22
  54. package/lib/browser/avs/utils/tasks.js +0 -48
  55. package/lib/browser/client/create-claim.d.ts +0 -5
  56. package/lib/browser/client/create-claim.js +0 -461
  57. package/lib/browser/client/index.d.ts +0 -3
  58. package/lib/browser/client/index.js +0 -3
  59. package/lib/browser/client/tunnels/make-rpc-tcp-tunnel.d.ts +0 -16
  60. package/lib/browser/client/tunnels/make-rpc-tcp-tunnel.js +0 -53
  61. package/lib/browser/client/tunnels/make-rpc-tls-tunnel.d.ts +0 -26
  62. package/lib/browser/client/tunnels/make-rpc-tls-tunnel.js +0 -127
  63. package/lib/browser/client/utils/attestor-pool.d.ts +0 -8
  64. package/lib/browser/client/utils/attestor-pool.js +0 -24
  65. package/lib/browser/client/utils/client-socket.d.ts +0 -11
  66. package/lib/browser/client/utils/client-socket.js +0 -120
  67. package/lib/browser/client/utils/message-handler.d.ts +0 -4
  68. package/lib/browser/client/utils/message-handler.js +0 -97
  69. package/lib/browser/config/index.d.ts +0 -31
  70. package/lib/browser/config/index.js +0 -62
  71. package/lib/browser/external-rpc/benchmark.d.ts +0 -1
  72. package/lib/browser/external-rpc/benchmark.js +0 -82
  73. package/lib/browser/external-rpc/event-bus.d.ts +0 -7
  74. package/lib/browser/external-rpc/event-bus.js +0 -17
  75. package/lib/browser/external-rpc/global.d.js +0 -0
  76. package/lib/browser/external-rpc/handle-incoming-msg.d.ts +0 -2
  77. package/lib/browser/external-rpc/handle-incoming-msg.js +0 -241
  78. package/lib/browser/external-rpc/index.d.ts +0 -3
  79. package/lib/browser/external-rpc/index.js +0 -3
  80. package/lib/browser/external-rpc/jsc-polyfills/1.d.ts +0 -14
  81. package/lib/browser/external-rpc/jsc-polyfills/1.js +0 -80
  82. package/lib/browser/external-rpc/jsc-polyfills/2.d.ts +0 -1
  83. package/lib/browser/external-rpc/jsc-polyfills/2.js +0 -15
  84. package/lib/browser/external-rpc/jsc-polyfills/event.d.ts +0 -10
  85. package/lib/browser/external-rpc/jsc-polyfills/event.js +0 -19
  86. package/lib/browser/external-rpc/jsc-polyfills/index.d.ts +0 -2
  87. package/lib/browser/external-rpc/jsc-polyfills/index.js +0 -2
  88. package/lib/browser/external-rpc/jsc-polyfills/ws.d.ts +0 -21
  89. package/lib/browser/external-rpc/jsc-polyfills/ws.js +0 -83
  90. package/lib/browser/external-rpc/setup-browser.d.ts +0 -6
  91. package/lib/browser/external-rpc/setup-browser.js +0 -33
  92. package/lib/browser/external-rpc/setup-jsc.d.ts +0 -24
  93. package/lib/browser/external-rpc/setup-jsc.js +0 -22
  94. package/lib/browser/external-rpc/types.d.ts +0 -213
  95. package/lib/browser/external-rpc/types.js +0 -0
  96. package/lib/browser/external-rpc/utils.d.ts +0 -20
  97. package/lib/browser/external-rpc/utils.js +0 -100
  98. package/lib/browser/external-rpc/zk.d.ts +0 -14
  99. package/lib/browser/external-rpc/zk.js +0 -58
  100. package/lib/browser/index.browser.js +0 -13
  101. package/lib/browser/index.d.ts +0 -9
  102. package/lib/browser/index.js +0 -13
  103. package/lib/browser/mechain/abis/governanceABI.d.ts +0 -50
  104. package/lib/browser/mechain/abis/governanceABI.js +0 -461
  105. package/lib/browser/mechain/abis/taskABI.d.ts +0 -157
  106. package/lib/browser/mechain/abis/taskABI.js +0 -512
  107. package/lib/browser/mechain/client/create-claim-on-mechain.d.ts +0 -10
  108. package/lib/browser/mechain/client/create-claim-on-mechain.js +0 -33
  109. package/lib/browser/mechain/client/index.d.ts +0 -1
  110. package/lib/browser/mechain/client/index.js +0 -1
  111. package/lib/browser/mechain/constants/index.d.ts +0 -3
  112. package/lib/browser/mechain/constants/index.js +0 -8
  113. package/lib/browser/mechain/index.d.ts +0 -2
  114. package/lib/browser/mechain/index.js +0 -2
  115. package/lib/browser/mechain/types/index.d.ts +0 -23
  116. package/lib/browser/mechain/types/index.js +0 -0
  117. package/lib/browser/proto/api.d.ts +0 -651
  118. package/lib/browser/proto/api.js +0 -4250
  119. package/lib/browser/proto/tee-bundle.d.ts +0 -156
  120. package/lib/browser/proto/tee-bundle.js +0 -1296
  121. package/lib/browser/providers/http/index.d.ts +0 -18
  122. package/lib/browser/providers/http/index.js +0 -640
  123. package/lib/browser/providers/http/patch-parse5-tree.d.ts +0 -6
  124. package/lib/browser/providers/http/patch-parse5-tree.js +0 -34
  125. package/lib/browser/providers/http/utils.d.ts +0 -77
  126. package/lib/browser/providers/http/utils.js +0 -283
  127. package/lib/browser/providers/index.d.ts +0 -4
  128. package/lib/browser/providers/index.js +0 -7
  129. package/lib/browser/types/bgp.d.ts +0 -11
  130. package/lib/browser/types/bgp.js +0 -0
  131. package/lib/browser/types/claims.d.ts +0 -70
  132. package/lib/browser/types/claims.js +0 -0
  133. package/lib/browser/types/client.d.ts +0 -163
  134. package/lib/browser/types/client.js +0 -0
  135. package/lib/browser/types/general.d.ts +0 -77
  136. package/lib/browser/types/general.js +0 -0
  137. package/lib/browser/types/handlers.d.ts +0 -10
  138. package/lib/browser/types/handlers.js +0 -0
  139. package/lib/browser/types/index.d.ts +0 -10
  140. package/lib/browser/types/index.js +0 -10
  141. package/lib/browser/types/providers.d.ts +0 -161
  142. package/lib/browser/types/providers.gen.d.ts +0 -443
  143. package/lib/browser/types/providers.gen.js +0 -16
  144. package/lib/browser/types/providers.js +0 -0
  145. package/lib/browser/types/rpc.d.ts +0 -35
  146. package/lib/browser/types/rpc.js +0 -0
  147. package/lib/browser/types/signatures.d.ts +0 -28
  148. package/lib/browser/types/signatures.js +0 -0
  149. package/lib/browser/types/tunnel.d.ts +0 -18
  150. package/lib/browser/types/tunnel.js +0 -0
  151. package/lib/browser/types/zk.d.ts +0 -38
  152. package/lib/browser/types/zk.js +0 -0
  153. package/lib/browser/utils/auth.d.ts +0 -8
  154. package/lib/browser/utils/auth.js +0 -71
  155. package/lib/browser/utils/b64-json.d.ts +0 -2
  156. package/lib/browser/utils/b64-json.js +0 -17
  157. package/lib/browser/utils/claims.d.ts +0 -33
  158. package/lib/browser/utils/claims.js +0 -89
  159. package/lib/browser/utils/env.d.ts +0 -3
  160. package/lib/browser/utils/env.js +0 -19
  161. package/lib/browser/utils/error.d.ts +0 -26
  162. package/lib/browser/utils/error.js +0 -54
  163. package/lib/browser/utils/generics.d.ts +0 -119
  164. package/lib/browser/utils/generics.js +0 -272
  165. package/lib/browser/utils/http-parser.d.ts +0 -59
  166. package/lib/browser/utils/http-parser.js +0 -201
  167. package/lib/browser/utils/index.browser.js +0 -13
  168. package/lib/browser/utils/index.d.ts +0 -13
  169. package/lib/browser/utils/index.js +0 -13
  170. package/lib/browser/utils/logger.browser.js +0 -88
  171. package/lib/browser/utils/logger.d.ts +0 -14
  172. package/lib/browser/utils/logger.js +0 -88
  173. package/lib/browser/utils/prepare-packets.d.ts +0 -16
  174. package/lib/browser/utils/prepare-packets.js +0 -69
  175. package/lib/browser/utils/redactions.d.ts +0 -73
  176. package/lib/browser/utils/redactions.js +0 -135
  177. package/lib/browser/utils/retries.d.ts +0 -12
  178. package/lib/browser/utils/retries.js +0 -26
  179. package/lib/browser/utils/signatures/eth.d.ts +0 -2
  180. package/lib/browser/utils/signatures/eth.js +0 -31
  181. package/lib/browser/utils/signatures/index.d.ts +0 -5
  182. package/lib/browser/utils/signatures/index.js +0 -12
  183. package/lib/browser/utils/socket-base.d.ts +0 -23
  184. package/lib/browser/utils/socket-base.js +0 -96
  185. package/lib/browser/utils/tls-imports.d.ts +0 -21
  186. package/lib/browser/utils/tls-imports.js +0 -71
  187. package/lib/browser/utils/tls.d.ts +0 -2
  188. package/lib/browser/utils/tls.js +0 -58
  189. package/lib/browser/utils/ws.d.ts +0 -7
  190. package/lib/browser/utils/ws.js +0 -22
  191. package/lib/browser/utils/zk.d.ts +0 -71
  192. package/lib/browser/utils/zk.js +0 -625
  193. package/lib/client/create-claim.js +0 -461
  194. package/lib/client/index.js +0 -3
  195. package/lib/client/tunnels/make-rpc-tcp-tunnel.js +0 -53
  196. package/lib/client/tunnels/make-rpc-tls-tunnel.js +0 -127
  197. package/lib/client/utils/attestor-pool.js +0 -24
  198. package/lib/client/utils/client-socket.js +0 -120
  199. package/lib/client/utils/message-handler.js +0 -97
  200. package/lib/config/index.js +0 -62
  201. package/lib/external-rpc/benchmark.js +0 -82
  202. package/lib/external-rpc/event-bus.js +0 -17
  203. package/lib/external-rpc/global.d.js +0 -0
  204. package/lib/external-rpc/handle-incoming-msg.js +0 -241
  205. package/lib/external-rpc/jsc-polyfills/1.js +0 -80
  206. package/lib/external-rpc/jsc-polyfills/2.js +0 -15
  207. package/lib/external-rpc/jsc-polyfills/event.js +0 -19
  208. package/lib/external-rpc/jsc-polyfills/index.js +0 -2
  209. package/lib/external-rpc/jsc-polyfills/ws.js +0 -83
  210. package/lib/external-rpc/setup-browser.js +0 -33
  211. package/lib/external-rpc/setup-jsc.js +0 -22
  212. package/lib/external-rpc/types.js +0 -0
  213. package/lib/external-rpc/utils.js +0 -100
  214. package/lib/external-rpc/zk.js +0 -58
  215. package/lib/index.browser.d.ts +0 -9
  216. package/lib/mechain/abis/governanceABI.js +0 -461
  217. package/lib/mechain/abis/taskABI.js +0 -512
  218. package/lib/mechain/client/create-claim-on-mechain.js +0 -33
  219. package/lib/mechain/client/index.js +0 -1
  220. package/lib/mechain/constants/index.js +0 -8
  221. package/lib/mechain/index.js +0 -2
  222. package/lib/mechain/types/index.js +0 -0
  223. package/lib/proto/api.js +0 -4250
  224. package/lib/proto/tee-bundle.js +0 -1296
  225. package/lib/providers/http/index.js +0 -640
  226. package/lib/providers/http/patch-parse5-tree.js +0 -34
  227. package/lib/providers/http/utils.js +0 -283
  228. package/lib/providers/index.js +0 -7
  229. package/lib/scripts/check-avs-registration.js +0 -28
  230. package/lib/scripts/fallbacks/crypto.js +0 -4
  231. package/lib/scripts/fallbacks/empty.js +0 -4
  232. package/lib/scripts/fallbacks/re2.js +0 -7
  233. package/lib/scripts/fallbacks/snarkjs.js +0 -10
  234. package/lib/scripts/fallbacks/stwo.js +0 -159
  235. package/lib/scripts/generate-provider-types.js +0 -101
  236. package/lib/scripts/generate-receipt.js +0 -101
  237. package/lib/scripts/generate-toprf-keys.js +0 -24
  238. package/lib/scripts/jsc-cli-rpc.js +0 -35
  239. package/lib/scripts/register-avs-operator.js +0 -3
  240. package/lib/scripts/start-server.js +0 -11
  241. package/lib/scripts/update-avs-metadata.js +0 -20
  242. package/lib/scripts/utils.js +0 -10
  243. package/lib/scripts/whitelist-operator.js +0 -16
  244. package/lib/server/create-server.js +0 -105
  245. package/lib/server/handlers/claimTeeBundle.js +0 -232
  246. package/lib/server/handlers/claimTunnel.js +0 -80
  247. package/lib/server/handlers/completeClaimOnChain.js +0 -29
  248. package/lib/server/handlers/createClaimOnChain.js +0 -32
  249. package/lib/server/handlers/createTaskOnMechain.js +0 -57
  250. package/lib/server/handlers/createTunnel.js +0 -98
  251. package/lib/server/handlers/disconnectTunnel.js +0 -8
  252. package/lib/server/handlers/fetchCertificateBytes.js +0 -57
  253. package/lib/server/handlers/index.js +0 -25
  254. package/lib/server/handlers/init.js +0 -33
  255. package/lib/server/handlers/toprf.js +0 -19
  256. package/lib/server/index.js +0 -4
  257. package/lib/server/socket.js +0 -112
  258. package/lib/server/tunnels/make-tcp-tunnel.js +0 -202
  259. package/lib/server/utils/apm.js +0 -29
  260. package/lib/server/utils/assert-valid-claim-request.js +0 -354
  261. package/lib/server/utils/config-env.js +0 -4
  262. package/lib/server/utils/dns.js +0 -24
  263. package/lib/server/utils/gcp-attestation.js +0 -237
  264. package/lib/server/utils/generics.js +0 -45
  265. package/lib/server/utils/iso.js +0 -259
  266. package/lib/server/utils/keep-alive.js +0 -38
  267. package/lib/server/utils/nitro-attestation.js +0 -249
  268. package/lib/server/utils/oprf-raw.js +0 -61
  269. package/lib/server/utils/process-handshake.js +0 -233
  270. package/lib/server/utils/proxy-session.js +0 -4
  271. package/lib/server/utils/tee-oprf-mpc-verification.js +0 -86
  272. package/lib/server/utils/tee-oprf-verification.js +0 -151
  273. package/lib/server/utils/tee-transcript-reconstruction.js +0 -140
  274. package/lib/server/utils/tee-verification.js +0 -358
  275. package/lib/server/utils/validation.js +0 -45
  276. package/lib/types/bgp.js +0 -0
  277. package/lib/types/claims.js +0 -0
  278. package/lib/types/client.js +0 -0
  279. package/lib/types/general.js +0 -0
  280. package/lib/types/handlers.js +0 -0
  281. package/lib/types/index.js +0 -10
  282. package/lib/types/providers.gen.js +0 -16
  283. package/lib/types/providers.js +0 -0
  284. package/lib/types/rpc.js +0 -0
  285. package/lib/types/signatures.js +0 -0
  286. package/lib/types/tunnel.js +0 -0
  287. package/lib/types/zk.js +0 -0
  288. package/lib/utils/auth.js +0 -71
  289. package/lib/utils/b64-json.js +0 -17
  290. package/lib/utils/bgp-listener.js +0 -123
  291. package/lib/utils/claims.js +0 -89
  292. package/lib/utils/env.js +0 -19
  293. package/lib/utils/error.js +0 -54
  294. package/lib/utils/generics.js +0 -272
  295. package/lib/utils/http-parser.js +0 -201
  296. package/lib/utils/index.browser.d.ts +0 -13
  297. package/lib/utils/index.js +0 -14
  298. package/lib/utils/logger.browser.d.ts +0 -14
  299. package/lib/utils/logger.js +0 -82
  300. package/lib/utils/prepare-packets.js +0 -69
  301. package/lib/utils/redactions.js +0 -135
  302. package/lib/utils/retries.js +0 -26
  303. package/lib/utils/signatures/eth.js +0 -31
  304. package/lib/utils/signatures/index.js +0 -12
  305. package/lib/utils/socket-base.js +0 -96
  306. package/lib/utils/tls-imports.d.ts +0 -21
  307. package/lib/utils/tls-imports.js +0 -71
  308. package/lib/utils/tls.js +0 -58
  309. package/lib/utils/ws.js +0 -22
  310. package/lib/utils/zk.js +0 -625
@@ -1,651 +0,0 @@
1
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- export declare const protobufPackage = "reclaim_attestor";
3
- export declare const TranscriptMessageSenderType: {
4
- readonly TRANSCRIPT_MESSAGE_SENDER_TYPE_UNKNOWN: 0;
5
- readonly TRANSCRIPT_MESSAGE_SENDER_TYPE_CLIENT: 1;
6
- readonly TRANSCRIPT_MESSAGE_SENDER_TYPE_SERVER: 2;
7
- readonly UNRECOGNIZED: -1;
8
- };
9
- export type TranscriptMessageSenderType = typeof TranscriptMessageSenderType[keyof typeof TranscriptMessageSenderType];
10
- export declare namespace TranscriptMessageSenderType {
11
- type TRANSCRIPT_MESSAGE_SENDER_TYPE_UNKNOWN = typeof TranscriptMessageSenderType.TRANSCRIPT_MESSAGE_SENDER_TYPE_UNKNOWN;
12
- type TRANSCRIPT_MESSAGE_SENDER_TYPE_CLIENT = typeof TranscriptMessageSenderType.TRANSCRIPT_MESSAGE_SENDER_TYPE_CLIENT;
13
- type TRANSCRIPT_MESSAGE_SENDER_TYPE_SERVER = typeof TranscriptMessageSenderType.TRANSCRIPT_MESSAGE_SENDER_TYPE_SERVER;
14
- type UNRECOGNIZED = typeof TranscriptMessageSenderType.UNRECOGNIZED;
15
- }
16
- export declare function transcriptMessageSenderTypeFromJSON(object: any): TranscriptMessageSenderType;
17
- export declare function transcriptMessageSenderTypeToJSON(object: TranscriptMessageSenderType): string;
18
- export declare const ServiceSignatureType: {
19
- readonly SERVICE_SIGNATURE_TYPE_UNKNOWN: 0;
20
- /**
21
- * SERVICE_SIGNATURE_TYPE_ETH - ETH keys & signature
22
- * keys: secp256k1
23
- * signature: ethereum flavor of ECDSA (https://goethereumbook.org/signature-generate/)
24
- */
25
- readonly SERVICE_SIGNATURE_TYPE_ETH: 1;
26
- readonly UNRECOGNIZED: -1;
27
- };
28
- export type ServiceSignatureType = typeof ServiceSignatureType[keyof typeof ServiceSignatureType];
29
- export declare namespace ServiceSignatureType {
30
- type SERVICE_SIGNATURE_TYPE_UNKNOWN = typeof ServiceSignatureType.SERVICE_SIGNATURE_TYPE_UNKNOWN;
31
- type SERVICE_SIGNATURE_TYPE_ETH = typeof ServiceSignatureType.SERVICE_SIGNATURE_TYPE_ETH;
32
- type UNRECOGNIZED = typeof ServiceSignatureType.UNRECOGNIZED;
33
- }
34
- export declare function serviceSignatureTypeFromJSON(object: any): ServiceSignatureType;
35
- export declare function serviceSignatureTypeToJSON(object: ServiceSignatureType): string;
36
- export declare const AttestorVersion: {
37
- readonly ATTESTOR_VERSION_UNKNOWN: 0;
38
- readonly ATTESTOR_VERSION_1_0_0: 1;
39
- readonly ATTESTOR_VERSION_1_1_0: 2;
40
- readonly ATTESTOR_VERSION_2_0_0: 3;
41
- readonly ATTESTOR_VERSION_2_0_1: 4;
42
- readonly ATTESTOR_VERSION_3_0_0: 5;
43
- readonly UNRECOGNIZED: -1;
44
- };
45
- export type AttestorVersion = typeof AttestorVersion[keyof typeof AttestorVersion];
46
- export declare namespace AttestorVersion {
47
- type ATTESTOR_VERSION_UNKNOWN = typeof AttestorVersion.ATTESTOR_VERSION_UNKNOWN;
48
- type ATTESTOR_VERSION_1_0_0 = typeof AttestorVersion.ATTESTOR_VERSION_1_0_0;
49
- type ATTESTOR_VERSION_1_1_0 = typeof AttestorVersion.ATTESTOR_VERSION_1_1_0;
50
- type ATTESTOR_VERSION_2_0_0 = typeof AttestorVersion.ATTESTOR_VERSION_2_0_0;
51
- type ATTESTOR_VERSION_2_0_1 = typeof AttestorVersion.ATTESTOR_VERSION_2_0_1;
52
- type ATTESTOR_VERSION_3_0_0 = typeof AttestorVersion.ATTESTOR_VERSION_3_0_0;
53
- type UNRECOGNIZED = typeof AttestorVersion.UNRECOGNIZED;
54
- }
55
- export declare function attestorVersionFromJSON(object: any): AttestorVersion;
56
- export declare function attestorVersionToJSON(object: AttestorVersion): string;
57
- export declare const ErrorCode: {
58
- /**
59
- * ERROR_NO_ERROR - 0 should be treated as the absence of an error
60
- * should be used when gracefully closing the connection
61
- */
62
- readonly ERROR_NO_ERROR: 0;
63
- /**
64
- * ERROR_INTERNAL - internal error in the attestor -- all "Error/TypeError"
65
- * messages are mapped to this
66
- */
67
- readonly ERROR_INTERNAL: 1;
68
- /** ERROR_BAD_REQUEST - bad request from the client */
69
- readonly ERROR_BAD_REQUEST: 2;
70
- /** ERROR_NOT_FOUND - the item requested was not found */
71
- readonly ERROR_NOT_FOUND: 3;
72
- /** ERROR_PROXY_ERROR - error in the proxy */
73
- readonly ERROR_PROXY_ERROR: 4;
74
- /**
75
- * ERROR_INVALID_CLAIM - claim creation failed -- i.e. the transcript
76
- * did not result in a valid claim
77
- */
78
- readonly ERROR_INVALID_CLAIM: 5;
79
- /** ERROR_NETWORK_ERROR - any network error */
80
- readonly ERROR_NETWORK_ERROR: 6;
81
- /** ERROR_PAYMENT_REFUSED - attestor refused to pay the costs */
82
- readonly ERROR_PAYMENT_REFUSED: 7;
83
- /**
84
- * ERROR_BGP_ANNOUNCEMENT_OVERLAP - BGP announcement overlapped, potentially
85
- * compromising the claim's authenticity
86
- */
87
- readonly ERROR_BGP_ANNOUNCEMENT_OVERLAP: 8;
88
- /** ERROR_AUTHENTICATION_FAILED - authentication failed */
89
- readonly ERROR_AUTHENTICATION_FAILED: 9;
90
- /** ERROR_TIMEOUT - timed out waiting for the server to respond */
91
- readonly ERROR_TIMEOUT: 10;
92
- /** ERROR_TOPRF_OUT_OF_BOUNDS - toprf couldn't be computed, as it went out of bounds */
93
- readonly ERROR_TOPRF_OUT_OF_BOUNDS: 11;
94
- /** ERROR_CERTIFICATE_FETCH_FAILED - failed to fetch certificate bytes from the URL */
95
- readonly ERROR_CERTIFICATE_FETCH_FAILED: 12;
96
- readonly UNRECOGNIZED: -1;
97
- };
98
- export type ErrorCode = typeof ErrorCode[keyof typeof ErrorCode];
99
- export declare namespace ErrorCode {
100
- type ERROR_NO_ERROR = typeof ErrorCode.ERROR_NO_ERROR;
101
- type ERROR_INTERNAL = typeof ErrorCode.ERROR_INTERNAL;
102
- type ERROR_BAD_REQUEST = typeof ErrorCode.ERROR_BAD_REQUEST;
103
- type ERROR_NOT_FOUND = typeof ErrorCode.ERROR_NOT_FOUND;
104
- type ERROR_PROXY_ERROR = typeof ErrorCode.ERROR_PROXY_ERROR;
105
- type ERROR_INVALID_CLAIM = typeof ErrorCode.ERROR_INVALID_CLAIM;
106
- type ERROR_NETWORK_ERROR = typeof ErrorCode.ERROR_NETWORK_ERROR;
107
- type ERROR_PAYMENT_REFUSED = typeof ErrorCode.ERROR_PAYMENT_REFUSED;
108
- type ERROR_BGP_ANNOUNCEMENT_OVERLAP = typeof ErrorCode.ERROR_BGP_ANNOUNCEMENT_OVERLAP;
109
- type ERROR_AUTHENTICATION_FAILED = typeof ErrorCode.ERROR_AUTHENTICATION_FAILED;
110
- type ERROR_TIMEOUT = typeof ErrorCode.ERROR_TIMEOUT;
111
- type ERROR_TOPRF_OUT_OF_BOUNDS = typeof ErrorCode.ERROR_TOPRF_OUT_OF_BOUNDS;
112
- type ERROR_CERTIFICATE_FETCH_FAILED = typeof ErrorCode.ERROR_CERTIFICATE_FETCH_FAILED;
113
- type UNRECOGNIZED = typeof ErrorCode.UNRECOGNIZED;
114
- }
115
- export declare function errorCodeFromJSON(object: any): ErrorCode;
116
- export declare function errorCodeToJSON(object: ErrorCode): string;
117
- export declare const ZKProofEngine: {
118
- readonly ZK_ENGINE_SNARKJS: 0;
119
- readonly ZK_ENGINE_GNARK: 1;
120
- readonly ZK_ENGINE_STWO: 2;
121
- readonly UNRECOGNIZED: -1;
122
- };
123
- export type ZKProofEngine = typeof ZKProofEngine[keyof typeof ZKProofEngine];
124
- export declare namespace ZKProofEngine {
125
- type ZK_ENGINE_SNARKJS = typeof ZKProofEngine.ZK_ENGINE_SNARKJS;
126
- type ZK_ENGINE_GNARK = typeof ZKProofEngine.ZK_ENGINE_GNARK;
127
- type ZK_ENGINE_STWO = typeof ZKProofEngine.ZK_ENGINE_STWO;
128
- type UNRECOGNIZED = typeof ZKProofEngine.UNRECOGNIZED;
129
- }
130
- export declare function zKProofEngineFromJSON(object: any): ZKProofEngine;
131
- export declare function zKProofEngineToJSON(object: ZKProofEngine): string;
132
- export interface ClaimContext {
133
- /**
134
- * Extracted parameters from the TLS transcript
135
- * by the provider. Any parameters provided by the
136
- * user will be overwritten
137
- */
138
- extractedParameters: {
139
- [key: string]: string;
140
- };
141
- /** Provider hash. TODO: docs */
142
- providerHash: string;
143
- }
144
- export interface ClaimContext_ExtractedParametersEntry {
145
- key: string;
146
- value: string;
147
- }
148
- export interface ProviderClaimData {
149
- /**
150
- * Name of the provider to generate the
151
- * claim using.
152
- * @example "http"
153
- */
154
- provider: string;
155
- /**
156
- * Canonically JSON stringified parameters
157
- * of the claim, as specified by the provider.
158
- * @example '{"url":"https://example.com","method":"GET"}'
159
- */
160
- parameters: string;
161
- /**
162
- * Owner of the claim. Must be the public key/address
163
- * @example "0x1234..."
164
- */
165
- owner: string;
166
- /**
167
- * Unix timestamp in seconds of the claim being made.
168
- * Cannot be more than 10 minutes in the past or future
169
- */
170
- timestampS: number;
171
- /**
172
- * Any additional data you want to store with the claim.
173
- * Also expected to be a canonical JSON string.
174
- */
175
- context: string;
176
- /**
177
- * identifier of the claim;
178
- * Hash of (provider, parameters, context)
179
- */
180
- identifier: string;
181
- /** Legacy V1 Beacon epoch number */
182
- epoch: number;
183
- }
184
- export interface ProviderClaimInfo {
185
- provider: string;
186
- parameters: string;
187
- context: string;
188
- }
189
- export interface ErrorData {
190
- code: ErrorCode;
191
- message: string;
192
- data: string;
193
- }
194
- export interface CreateTunnelRequest {
195
- /**
196
- * Assign a unique ID to the client for this tunnel
197
- * request. This ID will be used to identify the tunnel
198
- * to later send messages or disconnect the tunnel.
199
- */
200
- id: number;
201
- host: string;
202
- port: number;
203
- /**
204
- * Geo location from which the request will be made.
205
- * Provide 2 letter ISO country code. Leave empty
206
- * if you don't want to use geo location.
207
- *
208
- * Geo location is implemented using an https proxy
209
- * eg. US, IN, GB, etc.
210
- */
211
- geoLocation: string;
212
- /**
213
- * Session identifier for proxy IP persistence.
214
- *
215
- * When provided, ensures all requests within the same session
216
- * are routed through the same proxy IP address. Useful for
217
- * maintaining IP consistency across multiple requests.
218
- *
219
- * Can be a smallcase alphanumeric string of length 8-14 characters.
220
- * eg. "mystring12345", "something1234".
221
- */
222
- proxySessionId: string;
223
- }
224
- export interface FetchCertificateBytesRequest {
225
- url: string;
226
- }
227
- export interface FetchCertificateBytesResponse {
228
- bytes: Uint8Array;
229
- }
230
- export interface DisconnectTunnelRequest {
231
- id: number;
232
- }
233
- /** empty message */
234
- export interface Empty {
235
- }
236
- export interface TunnelMessage {
237
- /** ID of the tunnel where this message belongs */
238
- tunnelId: number;
239
- message: Uint8Array;
240
- }
241
- export interface TunnelDisconnectEvent {
242
- tunnelId: number;
243
- error: ErrorData | undefined;
244
- }
245
- export interface MessageReveal {
246
- /**
247
- * direct reveal of the block via the key & IV
248
- * cipher (aes, chacha) for decryption
249
- * selected based on `cipherSuite`
250
- * determined by the server hello packet
251
- */
252
- directReveal?: MessageReveal_MessageRevealDirect | undefined;
253
- /** partially or fully reveal the block via a zk proof */
254
- zkReveal?: MessageReveal_MessageRevealZk | undefined;
255
- }
256
- export interface MessageReveal_MessageRevealDirect {
257
- /** key for the block */
258
- key: Uint8Array;
259
- /** IV for the block */
260
- iv: Uint8Array;
261
- /**
262
- * used to generate IV in authenticated
263
- * cipher suites
264
- */
265
- recordNumber: number;
266
- }
267
- export interface MessageReveal_MessageRevealZk {
268
- proofs: MessageReveal_ZKProof[];
269
- toprfs: MessageReveal_TOPRFProof[];
270
- /** Markers for server-side OPRF computation (oprf-raw mode) */
271
- oprfRawMarkers: MessageReveal_OPRFRawMarker[];
272
- /**
273
- * If an oprf-raw marker from the previous packet overshot into this packet,
274
- * this indicates how many bytes of plaintext from this packet should be
275
- * collected to complete the server-side OPRF computation.
276
- */
277
- overshotOprfRawLength: number;
278
- }
279
- /** Marker for server-side OPRF computation (oprf-raw mode). */
280
- export interface MessageReveal_OPRFRawMarker {
281
- /** Location of the data to OPRF in the revealed plaintext */
282
- dataLocation: DataSlice | undefined;
283
- }
284
- export interface MessageReveal_ZKProof {
285
- /** the decrypted ciphertext as output by the ZK proof */
286
- decryptedRedactedCiphertext: Uint8Array;
287
- /** the plaintext that is fully or partially revealed */
288
- redactedPlaintext: Uint8Array;
289
- /**
290
- * start of this specific block
291
- * in the redactedPlaintext
292
- */
293
- startIdx: number;
294
- proofData: Uint8Array;
295
- }
296
- export interface MessageReveal_TOPRFProof {
297
- /**
298
- * start of this specific block
299
- * in the redactedPlaintext
300
- */
301
- startIdx: number;
302
- proofData: Uint8Array;
303
- /**
304
- * If this block's proof contains an OPRF'd piece of data,
305
- * then provide the OPRF data here
306
- */
307
- payload: TOPRFPayload | undefined;
308
- }
309
- export interface TOPRFPayload {
310
- /** Location of the data in the chunk that was masked */
311
- dataLocation: DataSlice | undefined;
312
- /** OPRF hash of the data */
313
- nullifier: Uint8Array;
314
- responses: TOPRFResponse[];
315
- }
316
- export interface DataSlice {
317
- fromIndex: number;
318
- length: number;
319
- }
320
- export interface ClaimRequestData {
321
- provider: string;
322
- parameters: string;
323
- /**
324
- * Owner of the claim. Must be the public key/address
325
- * of the signatures
326
- */
327
- owner: string;
328
- /**
329
- * Timestamp of the claim being made.
330
- * Cannot be more than 10 minutes in the past
331
- * or in the future
332
- */
333
- timestampS: number;
334
- context: string;
335
- }
336
- export interface ClaimTeeBundleRequest {
337
- /** TEE verification bundle containing attestations and signed data */
338
- verificationBundle: Uint8Array;
339
- /** Data describing the claim you want to prove */
340
- data: ClaimRequestData | undefined;
341
- /** User signature on the request */
342
- signatures: ClaimTeeBundleRequest_Signatures | undefined;
343
- }
344
- export interface ClaimTeeBundleRequest_Signatures {
345
- /**
346
- * Signature of ClaimTeeBundleRequest
347
- * with empty "signatures" field
348
- */
349
- requestSignature: Uint8Array;
350
- }
351
- export interface ClaimTeeBundleResponse {
352
- /** The original request that was made */
353
- request: ClaimTeeBundleRequest | undefined;
354
- claim?: ProviderClaimData | undefined;
355
- error?: ErrorData | undefined;
356
- signatures: ClaimTeeBundleResponse_Signatures | undefined;
357
- }
358
- export interface ClaimTeeBundleResponse_Signatures {
359
- /** Address of the attestor that has signed the claim */
360
- attestorAddress: string;
361
- /**
362
- * Signature of `stringifyProviderClaimData(claim)`,
363
- * if the claim was successful
364
- */
365
- claimSignature: Uint8Array;
366
- /**
367
- * Signature of the complete ClaimTeeBundleResponse
368
- * structure with empty "signatures" field
369
- */
370
- resultSignature: Uint8Array;
371
- }
372
- export interface ClaimTunnelRequest {
373
- /**
374
- * parameters supplied to establish the tunnel
375
- * & connect to the end server
376
- */
377
- request: CreateTunnelRequest | undefined;
378
- /** data describing the claim you want to prove */
379
- data: ClaimRequestData | undefined;
380
- /**
381
- * messages from the client & server
382
- * in the order they were sent/received
383
- *
384
- * Attach a proof (if any) to each message
385
- * to reveal the contents of the message inside
386
- *
387
- * The revealed messages should support the proving
388
- * of the claim as defined in the provider's implementation
389
- */
390
- transcript: ClaimTunnelRequest_TranscriptMessage[];
391
- signatures: ClaimTunnelRequest_Signatures | undefined;
392
- /** type of ZK engine used. SnarkJS or Gnark */
393
- zkEngine: ZKProofEngine;
394
- /** server and client fixed IVs needed for ZK validation */
395
- fixedServerIV: Uint8Array;
396
- fixedClientIV: Uint8Array;
397
- }
398
- export interface ClaimTunnelRequest_Signatures {
399
- /**
400
- * signature of ClaimTunnelRequest
401
- * with empty "signatures" field
402
- */
403
- requestSignature: Uint8Array;
404
- }
405
- export interface ClaimTunnelRequest_TranscriptMessage {
406
- /** client or server */
407
- sender: TranscriptMessageSenderType;
408
- /** packet data */
409
- message: Uint8Array;
410
- reveal: MessageReveal | undefined;
411
- }
412
- export interface ClaimTunnelResponse {
413
- /** The original request that was made to claim the tunnel */
414
- request: ClaimTunnelRequest | undefined;
415
- claim?: ProviderClaimData | undefined;
416
- error?: ErrorData | undefined;
417
- signatures: ClaimTunnelResponse_Signatures | undefined;
418
- }
419
- export interface ClaimTunnelResponse_Signatures {
420
- /** Address of the attestor that has signed the claim */
421
- attestorAddress: string;
422
- /**
423
- * signature of `stringifyProviderClaimData(claim)`,
424
- * if the claim was successful
425
- */
426
- claimSignature: Uint8Array;
427
- /**
428
- * signature of the complete ClaimTunnelResponse
429
- * structure with empty "signatures" field
430
- */
431
- resultSignature: Uint8Array;
432
- }
433
- export interface RequestClaimOnAvsRequest {
434
- /**
435
- * Chain ID of the chain on which the claim is to be made
436
- * @example 17000 (holesky)
437
- */
438
- chainId: number;
439
- /** Serialised JSON string of the ClaimRequest struct */
440
- jsonCreateClaimRequest: string;
441
- /** ETH signature of the `ClaimRequest` struct */
442
- requestSignature: Uint8Array;
443
- }
444
- export interface RequestClaimOnAvsResponse {
445
- txHash: string;
446
- taskIndex: number;
447
- jsonTask: string;
448
- }
449
- export interface CompleteClaimOnAvsRequest {
450
- /**
451
- * Chain ID of the chain on which the claim is to be made
452
- * @example 17000 (holesky)
453
- */
454
- chainId: number;
455
- taskIndex: number;
456
- completedTaskJson: string;
457
- }
458
- export interface CompleteClaimOnAvsResponse {
459
- txHash: string;
460
- taskCompletedObjectJson: string;
461
- }
462
- export interface CreateTaskOnMechainRequest {
463
- timestamp: number;
464
- }
465
- export interface CreateTaskOnMechainResponse {
466
- taskId: number;
467
- requiredAttestors: number;
468
- hosts: string[];
469
- }
470
- export interface AuthenticatedUserData {
471
- /** Unique identifier for the user */
472
- id: string;
473
- createdAt: number;
474
- /**
475
- * Unix timestamp in seconds when the user's
476
- * authentication will expire.
477
- */
478
- expiresAt: number;
479
- /**
480
- * List of allowed hosts the user is allowed to connect to.
481
- * Will throw a BAD_REQUEST error if the user tries to connect.
482
- * Pass an empty list to allow all hosts.
483
- */
484
- hostWhitelist: string[];
485
- }
486
- export interface AuthenticationRequest {
487
- data: AuthenticatedUserData | undefined;
488
- /** Signature of the `userData` */
489
- signature: Uint8Array;
490
- }
491
- export interface InitRequest {
492
- /** Attestor client version */
493
- clientVersion: AttestorVersion;
494
- /** Signature type used & expected by the user */
495
- signatureType: ServiceSignatureType;
496
- /**
497
- * Request the attestor to authenticate the user
498
- * with the given data. If auth fails, will return
499
- * an AUTHENTICATION_FAILED error.
500
- */
501
- auth: AuthenticationRequest | undefined;
502
- }
503
- export interface InitResponse {
504
- toprfPublicKey: Uint8Array;
505
- /** Address of the attestor */
506
- attestorAddress: string;
507
- }
508
- export interface TOPRFRequest {
509
- maskedData: Uint8Array;
510
- engine: ZKProofEngine;
511
- }
512
- export interface TOPRFResponse {
513
- publicKeyShare: Uint8Array;
514
- /** OPRF output */
515
- evaluated: Uint8Array;
516
- c: Uint8Array;
517
- r: Uint8Array;
518
- }
519
- export interface RPCMessage {
520
- /**
521
- * Per connection unique RPC message ID. Either party sending a
522
- * duplicate ID will do nothing except confuse the other party.
523
- *
524
- * For response messages, the ID should be the same as the request
525
- * to which it is responding.
526
- */
527
- id: number;
528
- initRequest?: InitRequest | undefined;
529
- /** Response to the init request. */
530
- initResponse?: InitResponse | undefined;
531
- /**
532
- * Data representing an error in the WebSocket connection.
533
- * The party sending this message should close the connection
534
- * immediately after sending this message.
535
- */
536
- connectionTerminationAlert?: ErrorData | undefined;
537
- /**
538
- * Data representing an error in the attestor's
539
- * request to the server. This should be sent in case
540
- * there was an error in processing the request.
541
- */
542
- requestError?: ErrorData | undefined;
543
- /** Create a tunnel to the specified host & port. */
544
- createTunnelRequest?: CreateTunnelRequest | undefined;
545
- createTunnelResponse?: Empty | undefined;
546
- /** Disconnect a tunnel. */
547
- disconnectTunnelRequest?: DisconnectTunnelRequest | undefined;
548
- disconnectTunnelResponse?: Empty | undefined;
549
- /**
550
- * Message to send through a tunnel. Client can send
551
- * this message to forward data to the server.
552
- */
553
- tunnelMessage?: TunnelMessage | undefined;
554
- /**
555
- * Event indicating that a tunnel has been disconnected.
556
- * The client should not send any more messages through
557
- * this tunnel.
558
- */
559
- tunnelDisconnectEvent?: TunnelDisconnectEvent | undefined;
560
- /**
561
- * Using the transcript of a tunnel, make a claim.
562
- * The tunnel must be disconnected before making a claim.
563
- */
564
- claimTunnelRequest?: ClaimTunnelRequest | undefined;
565
- claimTunnelResponse?: ClaimTunnelResponse | undefined;
566
- /**
567
- * Request the attestor to pay for the claim on the chain.
568
- * The Attestor can choose to reject the request.
569
- */
570
- createClaimOnChainRequest?: RequestClaimOnAvsRequest | undefined;
571
- createClaimOnChainResponse?: RequestClaimOnAvsResponse | undefined;
572
- /** Submit the work done for the claim on the chain. */
573
- completeClaimOnChainRequest?: CompleteClaimOnAvsRequest | undefined;
574
- completeClaimOnChainResponse?: CompleteClaimOnAvsResponse | undefined;
575
- /** Request to perform thresholded OPRF */
576
- toprfRequest?: TOPRFRequest | undefined;
577
- toprfResponse?: TOPRFResponse | undefined;
578
- /** Request the attestor to create a Task on the ReclaimTask contract. */
579
- createTaskOnMechainRequest?: CreateTaskOnMechainRequest | undefined;
580
- createTaskOnMechainResponse?: CreateTaskOnMechainResponse | undefined;
581
- /** Claim a TEE verification bundle instead of traditional TLS transcript */
582
- claimTeeBundleRequest?: ClaimTeeBundleRequest | undefined;
583
- claimTeeBundleResponse?: ClaimTeeBundleResponse | undefined;
584
- /**
585
- * Request the attestor to fetch certificate bytes from a URL. This RPC
586
- * is there as a helper for clients that cannot directly fetch certificates
587
- * due to network restrictions.
588
- */
589
- fetchCertificateBytesRequest?: FetchCertificateBytesRequest | undefined;
590
- fetchCertificateBytesResponse?: FetchCertificateBytesResponse | undefined;
591
- }
592
- export interface RPCMessages {
593
- messages: RPCMessage[];
594
- }
595
- export declare const ClaimContext: MessageFns<ClaimContext>;
596
- export declare const ClaimContext_ExtractedParametersEntry: MessageFns<ClaimContext_ExtractedParametersEntry>;
597
- export declare const ProviderClaimData: MessageFns<ProviderClaimData>;
598
- export declare const ProviderClaimInfo: MessageFns<ProviderClaimInfo>;
599
- export declare const ErrorData: MessageFns<ErrorData>;
600
- export declare const CreateTunnelRequest: MessageFns<CreateTunnelRequest>;
601
- export declare const FetchCertificateBytesRequest: MessageFns<FetchCertificateBytesRequest>;
602
- export declare const FetchCertificateBytesResponse: MessageFns<FetchCertificateBytesResponse>;
603
- export declare const DisconnectTunnelRequest: MessageFns<DisconnectTunnelRequest>;
604
- export declare const Empty: MessageFns<Empty>;
605
- export declare const TunnelMessage: MessageFns<TunnelMessage>;
606
- export declare const TunnelDisconnectEvent: MessageFns<TunnelDisconnectEvent>;
607
- export declare const MessageReveal: MessageFns<MessageReveal>;
608
- export declare const MessageReveal_MessageRevealDirect: MessageFns<MessageReveal_MessageRevealDirect>;
609
- export declare const MessageReveal_MessageRevealZk: MessageFns<MessageReveal_MessageRevealZk>;
610
- export declare const MessageReveal_OPRFRawMarker: MessageFns<MessageReveal_OPRFRawMarker>;
611
- export declare const MessageReveal_ZKProof: MessageFns<MessageReveal_ZKProof>;
612
- export declare const MessageReveal_TOPRFProof: MessageFns<MessageReveal_TOPRFProof>;
613
- export declare const TOPRFPayload: MessageFns<TOPRFPayload>;
614
- export declare const DataSlice: MessageFns<DataSlice>;
615
- export declare const ClaimRequestData: MessageFns<ClaimRequestData>;
616
- export declare const ClaimTeeBundleRequest: MessageFns<ClaimTeeBundleRequest>;
617
- export declare const ClaimTeeBundleRequest_Signatures: MessageFns<ClaimTeeBundleRequest_Signatures>;
618
- export declare const ClaimTeeBundleResponse: MessageFns<ClaimTeeBundleResponse>;
619
- export declare const ClaimTeeBundleResponse_Signatures: MessageFns<ClaimTeeBundleResponse_Signatures>;
620
- export declare const ClaimTunnelRequest: MessageFns<ClaimTunnelRequest>;
621
- export declare const ClaimTunnelRequest_Signatures: MessageFns<ClaimTunnelRequest_Signatures>;
622
- export declare const ClaimTunnelRequest_TranscriptMessage: MessageFns<ClaimTunnelRequest_TranscriptMessage>;
623
- export declare const ClaimTunnelResponse: MessageFns<ClaimTunnelResponse>;
624
- export declare const ClaimTunnelResponse_Signatures: MessageFns<ClaimTunnelResponse_Signatures>;
625
- export declare const RequestClaimOnAvsRequest: MessageFns<RequestClaimOnAvsRequest>;
626
- export declare const RequestClaimOnAvsResponse: MessageFns<RequestClaimOnAvsResponse>;
627
- export declare const CompleteClaimOnAvsRequest: MessageFns<CompleteClaimOnAvsRequest>;
628
- export declare const CompleteClaimOnAvsResponse: MessageFns<CompleteClaimOnAvsResponse>;
629
- export declare const CreateTaskOnMechainRequest: MessageFns<CreateTaskOnMechainRequest>;
630
- export declare const CreateTaskOnMechainResponse: MessageFns<CreateTaskOnMechainResponse>;
631
- export declare const AuthenticatedUserData: MessageFns<AuthenticatedUserData>;
632
- export declare const AuthenticationRequest: MessageFns<AuthenticationRequest>;
633
- export declare const InitRequest: MessageFns<InitRequest>;
634
- export declare const InitResponse: MessageFns<InitResponse>;
635
- export declare const TOPRFRequest: MessageFns<TOPRFRequest>;
636
- export declare const TOPRFResponse: MessageFns<TOPRFResponse>;
637
- export declare const RPCMessage: MessageFns<RPCMessage>;
638
- export declare const RPCMessages: MessageFns<RPCMessages>;
639
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
640
- export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
641
- [K in keyof T]?: DeepPartial<T[K]>;
642
- } : Partial<T>;
643
- export interface MessageFns<T> {
644
- encode(message: T, writer?: BinaryWriter): BinaryWriter;
645
- decode(input: BinaryReader | Uint8Array, length?: number): T;
646
- fromJSON(object: any): T;
647
- toJSON(message: T): unknown;
648
- create(base?: DeepPartial<T>): T;
649
- fromPartial(object: DeepPartial<T>): T;
650
- }
651
- export {};