@graphprotocol/grc-20 0.11.5 → 0.12.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 (322) hide show
  1. package/README.md +7 -48
  2. package/dist/convert-ids.d.ts +2 -0
  3. package/dist/convert-ids.d.ts.map +1 -0
  4. package/dist/convert-ids.js +42 -0
  5. package/dist/convert-ids.js.map +1 -0
  6. package/dist/index.d.ts +1 -25
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +1 -25
  9. package/dist/index.js.map +1 -1
  10. package/dist/proto.d.ts +0 -4
  11. package/dist/proto.d.ts.map +1 -1
  12. package/dist/proto.js +0 -4
  13. package/dist/proto.js.map +1 -1
  14. package/dist/protov2.d.ts +11 -0
  15. package/dist/protov2.d.ts.map +1 -0
  16. package/dist/protov2.js +11 -0
  17. package/dist/protov2.js.map +1 -0
  18. package/dist/src/blocks.d.ts +0 -7
  19. package/dist/src/blocks.d.ts.map +1 -1
  20. package/dist/src/blocks.js +0 -7
  21. package/dist/src/blocks.js.map +1 -1
  22. package/dist/src/core/account.d.ts +2 -2
  23. package/dist/src/core/account.d.ts.map +1 -1
  24. package/dist/src/core/account.js +27 -38
  25. package/dist/src/core/account.js.map +1 -1
  26. package/dist/src/core/account.test.js +25 -17
  27. package/dist/src/core/account.test.js.map +1 -1
  28. package/dist/src/core/blocks/data.d.ts +2 -2
  29. package/dist/src/core/blocks/data.d.ts.map +1 -1
  30. package/dist/src/core/blocks/data.js +25 -24
  31. package/dist/src/core/blocks/data.js.map +1 -1
  32. package/dist/src/core/blocks/data.test.js +20 -20
  33. package/dist/src/core/blocks/data.test.js.map +1 -1
  34. package/dist/src/core/blocks/text.d.ts.map +1 -1
  35. package/dist/src/core/blocks/text.js +22 -22
  36. package/dist/src/core/blocks/text.js.map +1 -1
  37. package/dist/src/core/blocks/text.test.js +11 -11
  38. package/dist/src/core/blocks/text.test.js.map +1 -1
  39. package/dist/src/core/ids/content.d.ts +0 -36
  40. package/dist/src/core/ids/content.d.ts.map +1 -1
  41. package/dist/src/core/ids/content.js +54 -198
  42. package/dist/src/core/ids/content.js.map +1 -1
  43. package/dist/src/core/ids/network.d.ts.map +1 -1
  44. package/dist/src/core/ids/network.js +3 -3
  45. package/dist/src/core/ids/network.js.map +1 -1
  46. package/dist/src/core/ids/system.d.ts +6 -51
  47. package/dist/src/core/ids/system.d.ts.map +1 -1
  48. package/dist/src/core/ids/system.js +142 -310
  49. package/dist/src/core/ids/system.js.map +1 -1
  50. package/dist/src/core/idsv2/content.d.ts +59 -0
  51. package/dist/src/core/idsv2/content.d.ts.map +1 -0
  52. package/dist/src/core/idsv2/content.js +59 -0
  53. package/dist/src/core/idsv2/content.js.map +1 -0
  54. package/dist/src/core/idsv2/network.d.ts +5 -0
  55. package/dist/src/core/idsv2/network.d.ts.map +1 -0
  56. package/dist/src/core/idsv2/network.js +5 -0
  57. package/dist/src/core/idsv2/network.js.map +1 -0
  58. package/dist/src/core/idsv2/system.d.ts +222 -0
  59. package/dist/src/core/idsv2/system.d.ts.map +1 -0
  60. package/dist/src/core/idsv2/system.js +230 -0
  61. package/dist/src/core/idsv2/system.js.map +1 -0
  62. package/dist/src/core/scheme.d.ts +1 -1
  63. package/dist/src/core/scheme.d.ts.map +1 -1
  64. package/dist/src/graph/create-entity.d.ts +21 -18
  65. package/dist/src/graph/create-entity.d.ts.map +1 -1
  66. package/dist/src/graph/create-entity.js +96 -27
  67. package/dist/src/graph/create-entity.js.map +1 -1
  68. package/dist/src/graph/create-entity.test.js +101 -245
  69. package/dist/src/graph/create-entity.test.js.map +1 -1
  70. package/dist/src/graph/create-image.d.ts +1 -14
  71. package/dist/src/graph/create-image.d.ts.map +1 -1
  72. package/dist/src/graph/create-image.js +34 -7
  73. package/dist/src/graph/create-image.js.map +1 -1
  74. package/dist/src/graph/create-image.test.js +38 -47
  75. package/dist/src/graph/create-image.test.js.map +1 -1
  76. package/dist/src/graph/create-property.d.ts +1 -9
  77. package/dist/src/graph/create-property.d.ts.map +1 -1
  78. package/dist/src/graph/create-property.js +52 -36
  79. package/dist/src/graph/create-property.js.map +1 -1
  80. package/dist/src/graph/create-property.test.js +10 -12
  81. package/dist/src/graph/create-property.test.js.map +1 -1
  82. package/dist/src/graph/create-relation.d.ts +33 -0
  83. package/dist/src/graph/create-relation.d.ts.map +1 -0
  84. package/dist/src/graph/create-relation.js +66 -0
  85. package/dist/src/graph/create-relation.js.map +1 -0
  86. package/dist/src/graph/create-relation.test.d.ts +2 -0
  87. package/dist/src/graph/create-relation.test.d.ts.map +1 -0
  88. package/dist/src/graph/create-relation.test.js +208 -0
  89. package/dist/src/graph/create-relation.test.js.map +1 -0
  90. package/dist/src/graph/create-type.d.ts +3 -8
  91. package/dist/src/graph/create-type.d.ts.map +1 -1
  92. package/dist/src/graph/create-type.js +29 -17
  93. package/dist/src/graph/create-type.js.map +1 -1
  94. package/dist/src/graph/create-type.test.js +37 -35
  95. package/dist/src/graph/create-type.test.js.map +1 -1
  96. package/dist/src/graph/delete-entity.d.ts +4 -10
  97. package/dist/src/graph/delete-entity.d.ts.map +1 -1
  98. package/dist/src/graph/delete-entity.js +10 -35
  99. package/dist/src/graph/delete-entity.js.map +1 -1
  100. package/dist/src/graph/delete-entity.test.js +17 -35
  101. package/dist/src/graph/delete-entity.test.js.map +1 -1
  102. package/dist/src/graph/delete-relation.d.ts +14 -0
  103. package/dist/src/graph/delete-relation.d.ts.map +1 -0
  104. package/dist/src/graph/delete-relation.js +21 -0
  105. package/dist/src/graph/delete-relation.js.map +1 -0
  106. package/dist/src/graph/delete-relation.test.d.ts +2 -0
  107. package/dist/src/graph/delete-relation.test.d.ts.map +1 -0
  108. package/dist/src/graph/delete-relation.test.js +24 -0
  109. package/dist/src/graph/delete-relation.test.js.map +1 -0
  110. package/dist/src/graph/index.d.ts +5 -0
  111. package/dist/src/graph/index.d.ts.map +1 -1
  112. package/dist/src/graph/index.js +5 -0
  113. package/dist/src/graph/index.js.map +1 -1
  114. package/dist/src/graph/unset-entity-values.d.ts +21 -0
  115. package/dist/src/graph/unset-entity-values.d.ts.map +1 -0
  116. package/dist/src/graph/unset-entity-values.js +26 -0
  117. package/dist/src/graph/unset-entity-values.js.map +1 -0
  118. package/dist/src/graph/unset-entity-values.test.d.ts +2 -0
  119. package/dist/src/graph/unset-entity-values.test.d.ts.map +1 -0
  120. package/dist/src/graph/unset-entity-values.test.js +40 -0
  121. package/dist/src/graph/unset-entity-values.test.js.map +1 -0
  122. package/dist/src/graph/unset-relation-fields.d.ts +25 -0
  123. package/dist/src/graph/unset-relation-fields.d.ts.map +1 -0
  124. package/dist/src/graph/unset-relation-fields.js +34 -0
  125. package/dist/src/graph/unset-relation-fields.js.map +1 -0
  126. package/dist/src/graph/unset-relation-fields.test.d.ts +2 -0
  127. package/dist/src/graph/unset-relation-fields.test.d.ts.map +1 -0
  128. package/dist/src/graph/unset-relation-fields.test.js +64 -0
  129. package/dist/src/graph/unset-relation-fields.test.js.map +1 -0
  130. package/dist/src/graph/update-entity.d.ts +28 -0
  131. package/dist/src/graph/update-entity.d.ts.map +1 -0
  132. package/dist/src/graph/update-entity.js +73 -0
  133. package/dist/src/graph/update-entity.js.map +1 -0
  134. package/dist/src/graph/update-entity.test.d.ts +2 -0
  135. package/dist/src/graph/update-entity.test.d.ts.map +1 -0
  136. package/dist/src/graph/update-entity.test.js +116 -0
  137. package/dist/src/graph/update-entity.test.js.map +1 -0
  138. package/dist/src/graph/update-relation.d.ts +21 -0
  139. package/dist/src/graph/update-relation.d.ts.map +1 -0
  140. package/dist/src/graph/update-relation.js +37 -0
  141. package/dist/src/graph/update-relation.js.map +1 -0
  142. package/dist/src/graphv2/constants.d.ts +2 -0
  143. package/dist/src/graphv2/constants.d.ts.map +1 -0
  144. package/dist/src/graphv2/constants.js +2 -0
  145. package/dist/src/graphv2/constants.js.map +1 -0
  146. package/dist/src/graphv2/create-entity.d.ts +52 -0
  147. package/dist/src/graphv2/create-entity.d.ts.map +1 -0
  148. package/dist/src/graphv2/create-entity.js +140 -0
  149. package/dist/src/graphv2/create-entity.js.map +1 -0
  150. package/dist/src/graphv2/create-entity.test.d.ts +2 -0
  151. package/dist/src/graphv2/create-entity.test.d.ts.map +1 -0
  152. package/dist/src/graphv2/create-entity.test.js +158 -0
  153. package/dist/src/graphv2/create-entity.test.js.map +1 -0
  154. package/dist/src/graphv2/create-image.d.ts +28 -0
  155. package/dist/src/graphv2/create-image.d.ts.map +1 -0
  156. package/dist/src/graphv2/create-image.js +71 -0
  157. package/dist/src/graphv2/create-image.js.map +1 -0
  158. package/dist/src/graphv2/create-image.test.d.ts +2 -0
  159. package/dist/src/graphv2/create-image.test.d.ts.map +1 -0
  160. package/dist/src/graphv2/create-image.test.js +142 -0
  161. package/dist/src/graphv2/create-image.test.js.map +1 -0
  162. package/dist/src/graphv2/create-property.d.ts +22 -0
  163. package/dist/src/graphv2/create-property.d.ts.map +1 -0
  164. package/dist/src/graphv2/create-property.js +129 -0
  165. package/dist/src/graphv2/create-property.js.map +1 -0
  166. package/dist/src/graphv2/create-property.test.d.ts +2 -0
  167. package/dist/src/graphv2/create-property.test.d.ts.map +1 -0
  168. package/dist/src/graphv2/create-property.test.js +82 -0
  169. package/dist/src/graphv2/create-property.test.js.map +1 -0
  170. package/dist/src/graphv2/create-relation.d.ts +33 -0
  171. package/dist/src/graphv2/create-relation.d.ts.map +1 -0
  172. package/dist/src/graphv2/create-relation.js +66 -0
  173. package/dist/src/graphv2/create-relation.js.map +1 -0
  174. package/dist/src/graphv2/create-relation.test.d.ts +2 -0
  175. package/dist/src/graphv2/create-relation.test.d.ts.map +1 -0
  176. package/dist/src/graphv2/create-relation.test.js +208 -0
  177. package/dist/src/graphv2/create-relation.test.js.map +1 -0
  178. package/dist/src/graphv2/create-space.d.ts +13 -0
  179. package/dist/src/graphv2/create-space.d.ts.map +1 -0
  180. package/dist/src/graphv2/create-space.js +21 -0
  181. package/dist/src/graphv2/create-space.js.map +1 -0
  182. package/dist/src/graphv2/create-type.d.ts +22 -0
  183. package/dist/src/graphv2/create-type.d.ts.map +1 -0
  184. package/dist/src/graphv2/create-type.js +64 -0
  185. package/dist/src/graphv2/create-type.js.map +1 -0
  186. package/dist/src/graphv2/create-type.test.d.ts +2 -0
  187. package/dist/src/graphv2/create-type.test.d.ts.map +1 -0
  188. package/dist/src/graphv2/create-type.test.js +109 -0
  189. package/dist/src/graphv2/create-type.test.js.map +1 -0
  190. package/dist/src/graphv2/delete-entity.d.ts +14 -0
  191. package/dist/src/graphv2/delete-entity.d.ts.map +1 -0
  192. package/dist/src/graphv2/delete-entity.js +21 -0
  193. package/dist/src/graphv2/delete-entity.js.map +1 -0
  194. package/dist/src/graphv2/delete-entity.test.d.ts +2 -0
  195. package/dist/src/graphv2/delete-entity.test.d.ts.map +1 -0
  196. package/dist/src/graphv2/delete-entity.test.js +24 -0
  197. package/dist/src/graphv2/delete-entity.test.js.map +1 -0
  198. package/dist/src/graphv2/delete-relation.d.ts +14 -0
  199. package/dist/src/graphv2/delete-relation.d.ts.map +1 -0
  200. package/dist/src/graphv2/delete-relation.js +21 -0
  201. package/dist/src/graphv2/delete-relation.js.map +1 -0
  202. package/dist/src/graphv2/delete-relation.test.d.ts +2 -0
  203. package/dist/src/graphv2/delete-relation.test.d.ts.map +1 -0
  204. package/dist/src/graphv2/delete-relation.test.js +24 -0
  205. package/dist/src/graphv2/delete-relation.test.js.map +1 -0
  206. package/dist/src/graphv2/index.d.ts +12 -0
  207. package/dist/src/graphv2/index.d.ts.map +1 -0
  208. package/dist/src/graphv2/index.js +12 -0
  209. package/dist/src/graphv2/index.js.map +1 -0
  210. package/dist/src/graphv2/remove-entity-properties.d.ts +25 -0
  211. package/dist/src/graphv2/remove-entity-properties.d.ts.map +1 -0
  212. package/dist/src/graphv2/remove-entity-properties.js +24 -0
  213. package/dist/src/graphv2/remove-entity-properties.js.map +1 -0
  214. package/dist/src/graphv2/unset-entity-values.d.ts +21 -0
  215. package/dist/src/graphv2/unset-entity-values.d.ts.map +1 -0
  216. package/dist/src/graphv2/unset-entity-values.js +26 -0
  217. package/dist/src/graphv2/unset-entity-values.js.map +1 -0
  218. package/dist/src/graphv2/unset-entity-values.test.d.ts +2 -0
  219. package/dist/src/graphv2/unset-entity-values.test.d.ts.map +1 -0
  220. package/dist/src/graphv2/unset-entity-values.test.js +40 -0
  221. package/dist/src/graphv2/unset-entity-values.test.js.map +1 -0
  222. package/dist/src/graphv2/unset-relation-fields.d.ts +25 -0
  223. package/dist/src/graphv2/unset-relation-fields.d.ts.map +1 -0
  224. package/dist/src/graphv2/unset-relation-fields.js +34 -0
  225. package/dist/src/graphv2/unset-relation-fields.js.map +1 -0
  226. package/dist/src/graphv2/unset-relation-fields.test.d.ts +2 -0
  227. package/dist/src/graphv2/unset-relation-fields.test.d.ts.map +1 -0
  228. package/dist/src/graphv2/unset-relation-fields.test.js +64 -0
  229. package/dist/src/graphv2/unset-relation-fields.test.js.map +1 -0
  230. package/dist/src/graphv2/update-entity.d.ts +28 -0
  231. package/dist/src/graphv2/update-entity.d.ts.map +1 -0
  232. package/dist/src/graphv2/update-entity.js +73 -0
  233. package/dist/src/graphv2/update-entity.js.map +1 -0
  234. package/dist/src/graphv2/update-entity.test.d.ts +2 -0
  235. package/dist/src/graphv2/update-entity.test.d.ts.map +1 -0
  236. package/dist/src/graphv2/update-entity.test.js +116 -0
  237. package/dist/src/graphv2/update-entity.test.js.map +1 -0
  238. package/dist/src/graphv2/update-relation.d.ts +21 -0
  239. package/dist/src/graphv2/update-relation.d.ts.map +1 -0
  240. package/dist/src/graphv2/update-relation.js +37 -0
  241. package/dist/src/graphv2/update-relation.js.map +1 -0
  242. package/dist/src/id.d.ts +9 -2
  243. package/dist/src/id.d.ts.map +1 -1
  244. package/dist/src/id.js +55 -22
  245. package/dist/src/id.js.map +1 -1
  246. package/dist/src/id.test.js +13 -10
  247. package/dist/src/id.test.js.map +1 -1
  248. package/dist/src/idv2.d.ts +27 -0
  249. package/dist/src/idv2.d.ts.map +1 -0
  250. package/dist/src/idv2.js +88 -0
  251. package/dist/src/idv2.js.map +1 -0
  252. package/dist/src/idv2.test.d.ts +2 -0
  253. package/dist/src/idv2.test.d.ts.map +1 -0
  254. package/dist/src/idv2.test.js +26 -0
  255. package/dist/src/idv2.test.js.map +1 -0
  256. package/dist/src/ipfs.d.ts +2 -2
  257. package/dist/src/ipfs.d.ts.map +1 -1
  258. package/dist/src/ipfs.js +2 -2
  259. package/dist/src/ipfs.js.map +1 -1
  260. package/dist/src/ipfs.test.d.ts +2 -0
  261. package/dist/src/ipfs.test.d.ts.map +1 -0
  262. package/dist/src/ipfs.test.js +22 -0
  263. package/dist/src/ipfs.test.js.map +1 -0
  264. package/dist/src/ipfsv2.d.ts +96 -0
  265. package/dist/src/ipfsv2.d.ts.map +1 -0
  266. package/dist/src/ipfsv2.js +163 -0
  267. package/dist/src/ipfsv2.js.map +1 -0
  268. package/dist/src/ipfsv2.test.d.ts +2 -0
  269. package/dist/src/ipfsv2.test.d.ts.map +1 -0
  270. package/dist/src/ipfsv2.test.js +22 -0
  271. package/dist/src/ipfsv2.test.js.map +1 -0
  272. package/dist/src/proto/edit.d.ts +4 -2
  273. package/dist/src/proto/edit.d.ts.map +1 -1
  274. package/dist/src/proto/edit.js +53 -32
  275. package/dist/src/proto/edit.js.map +1 -1
  276. package/dist/src/proto/edit.test.js +139 -152
  277. package/dist/src/proto/edit.test.js.map +1 -1
  278. package/dist/src/proto/editv2.d.ts +11 -0
  279. package/dist/src/proto/editv2.d.ts.map +1 -0
  280. package/dist/src/proto/editv2.js +81 -0
  281. package/dist/src/proto/editv2.js.map +1 -0
  282. package/dist/src/proto/editv2.test.d.ts +2 -0
  283. package/dist/src/proto/editv2.test.d.ts.map +1 -0
  284. package/dist/src/proto/editv2.test.js +211 -0
  285. package/dist/src/proto/editv2.test.js.map +1 -0
  286. package/dist/src/proto/gen/src/proto/ipfs_pb.d.ts +249 -369
  287. package/dist/src/proto/gen/src/proto/ipfs_pb.d.ts.map +1 -1
  288. package/dist/src/proto/gen/src/proto/ipfs_pb.js +244 -484
  289. package/dist/src/proto/gen/src/proto/ipfs_pb.js.map +1 -1
  290. package/dist/src/proto/gen/src/proto/ipfsv2_pb.d.ts +410 -0
  291. package/dist/src/proto/gen/src/proto/ipfsv2_pb.d.ts.map +1 -0
  292. package/dist/src/proto/gen/src/proto/ipfsv2_pb.js +536 -0
  293. package/dist/src/proto/gen/src/proto/ipfsv2_pb.js.map +1 -0
  294. package/dist/src/smart-wallet-2.test-invalid.d.ts +2 -0
  295. package/dist/src/smart-wallet-2.test-invalid.d.ts.map +1 -0
  296. package/dist/src/smart-wallet-2.test-invalid.js +49 -0
  297. package/dist/src/smart-wallet-2.test-invalid.js.map +1 -0
  298. package/dist/src/smart-wallet-2.test.d.ts +2 -0
  299. package/dist/src/smart-wallet-2.test.d.ts.map +1 -0
  300. package/dist/src/smart-wallet-2.test.js +49 -0
  301. package/dist/src/smart-wallet-2.test.js.map +1 -0
  302. package/dist/src/system-ids-v2.d.ts +7 -0
  303. package/dist/src/system-ids-v2.d.ts.map +1 -0
  304. package/dist/src/system-ids-v2.js +7 -0
  305. package/dist/src/system-ids-v2.js.map +1 -0
  306. package/dist/src/system-ids.d.ts +0 -2
  307. package/dist/src/system-ids.d.ts.map +1 -1
  308. package/dist/src/system-ids.js +0 -2
  309. package/dist/src/system-ids.js.map +1 -1
  310. package/dist/src/types-backup.d.ts +134 -0
  311. package/dist/src/types-backup.d.ts.map +1 -0
  312. package/dist/src/types-backup.js +13 -0
  313. package/dist/src/types-backup.js.map +1 -0
  314. package/dist/src/types.d.ts +126 -103
  315. package/dist/src/types.d.ts.map +1 -1
  316. package/dist/src/types.js +0 -5
  317. package/dist/src/types.js.map +1 -1
  318. package/dist/src/typesv2.d.ts +173 -0
  319. package/dist/src/typesv2.d.ts.map +1 -0
  320. package/dist/src/typesv2.js +8 -0
  321. package/dist/src/typesv2.js.map +1 -0
  322. package/package.json +1 -1
@@ -1,220 +1,44 @@
1
1
  // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
2
- // @generated from file src/proto/ipfs.proto (syntax proto3)
2
+ // @generated from file src/proto/ipfs.proto (package ipfs, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { Message, proto3 } from "@bufbuild/protobuf";
6
6
  /**
7
- * @generated from enum OpType
8
- */
9
- export var OpType;
10
- (function (OpType) {
11
- /**
12
- * @generated from enum value: OP_TYPE_UNKNOWN = 0;
13
- */
14
- OpType[OpType["OP_TYPE_UNKNOWN"] = 0] = "OP_TYPE_UNKNOWN";
15
- /**
16
- * @generated from enum value: SET_TRIPLE = 1;
17
- */
18
- OpType[OpType["SET_TRIPLE"] = 1] = "SET_TRIPLE";
19
- /**
20
- * @generated from enum value: DELETE_TRIPLE = 2;
21
- */
22
- OpType[OpType["DELETE_TRIPLE"] = 2] = "DELETE_TRIPLE";
23
- /**
24
- * @generated from enum value: SET_TRIPLE_BATCH = 3;
25
- */
26
- OpType[OpType["SET_TRIPLE_BATCH"] = 3] = "SET_TRIPLE_BATCH";
27
- /**
28
- * @generated from enum value: DELETE_ENTITY = 4;
29
- */
30
- OpType[OpType["DELETE_ENTITY"] = 4] = "DELETE_ENTITY";
31
- /**
32
- * @generated from enum value: CREATE_RELATION = 5;
33
- */
34
- OpType[OpType["CREATE_RELATION"] = 5] = "CREATE_RELATION";
35
- /**
36
- * @generated from enum value: DELETE_RELATION = 6;
37
- */
38
- OpType[OpType["DELETE_RELATION"] = 6] = "DELETE_RELATION";
39
- /**
40
- * @generated from enum value: IMPORT_FILE = 7;
41
- */
42
- OpType[OpType["IMPORT_FILE"] = 7] = "IMPORT_FILE";
43
- })(OpType || (OpType = {}));
44
- // Retrieve enum metadata with: proto3.getEnumType(OpType)
45
- proto3.util.setEnumType(OpType, "OpType", [
46
- { no: 0, name: "OP_TYPE_UNKNOWN" },
47
- { no: 1, name: "SET_TRIPLE" },
48
- { no: 2, name: "DELETE_TRIPLE" },
49
- { no: 3, name: "SET_TRIPLE_BATCH" },
50
- { no: 4, name: "DELETE_ENTITY" },
51
- { no: 5, name: "CREATE_RELATION" },
52
- { no: 6, name: "DELETE_RELATION" },
53
- { no: 7, name: "IMPORT_FILE" },
54
- ]);
55
- /**
56
- * @generated from enum ValueType
57
- */
58
- export var ValueType;
59
- (function (ValueType) {
60
- /**
61
- * @generated from enum value: VALUE_TYPE_UNKNOWN = 0;
62
- */
63
- ValueType[ValueType["VALUE_TYPE_UNKNOWN"] = 0] = "VALUE_TYPE_UNKNOWN";
64
- /**
65
- * @generated from enum value: TEXT = 1;
66
- */
67
- ValueType[ValueType["TEXT"] = 1] = "TEXT";
68
- /**
69
- * @generated from enum value: NUMBER = 2;
70
- */
71
- ValueType[ValueType["NUMBER"] = 2] = "NUMBER";
72
- /**
73
- * @generated from enum value: CHECKBOX = 3;
74
- */
75
- ValueType[ValueType["CHECKBOX"] = 3] = "CHECKBOX";
76
- /**
77
- * @generated from enum value: URL = 4;
78
- */
79
- ValueType[ValueType["URL"] = 4] = "URL";
80
- /**
81
- * @generated from enum value: TIME = 5;
82
- */
83
- ValueType[ValueType["TIME"] = 5] = "TIME";
84
- /**
85
- * @generated from enum value: POINT = 6;
86
- */
87
- ValueType[ValueType["POINT"] = 6] = "POINT";
88
- })(ValueType || (ValueType = {}));
89
- // Retrieve enum metadata with: proto3.getEnumType(ValueType)
90
- proto3.util.setEnumType(ValueType, "ValueType", [
91
- { no: 0, name: "VALUE_TYPE_UNKNOWN" },
92
- { no: 1, name: "TEXT" },
93
- { no: 2, name: "NUMBER" },
94
- { no: 3, name: "CHECKBOX" },
95
- { no: 4, name: "URL" },
96
- { no: 5, name: "TIME" },
97
- { no: 6, name: "POINT" },
98
- ]);
99
- /**
100
- * @generated from enum ActionType
101
- */
102
- export var ActionType;
103
- (function (ActionType) {
104
- /**
105
- * @generated from enum value: ACTION_TYPE_UNKNOWN = 0;
106
- */
107
- ActionType[ActionType["ACTION_TYPE_UNKNOWN"] = 0] = "ACTION_TYPE_UNKNOWN";
108
- /**
109
- * @generated from enum value: ADD_EDIT = 1;
110
- */
111
- ActionType[ActionType["ADD_EDIT"] = 1] = "ADD_EDIT";
112
- /**
113
- * @generated from enum value: ADD_SUBSPACE = 2;
114
- */
115
- ActionType[ActionType["ADD_SUBSPACE"] = 2] = "ADD_SUBSPACE";
116
- /**
117
- * @generated from enum value: REMOVE_SUBSPACE = 3;
118
- */
119
- ActionType[ActionType["REMOVE_SUBSPACE"] = 3] = "REMOVE_SUBSPACE";
120
- /**
121
- * @generated from enum value: IMPORT_SPACE = 4;
122
- */
123
- ActionType[ActionType["IMPORT_SPACE"] = 4] = "IMPORT_SPACE";
124
- /**
125
- * @generated from enum value: ARCHIVE_SPACE = 5;
126
- */
127
- ActionType[ActionType["ARCHIVE_SPACE"] = 5] = "ARCHIVE_SPACE";
128
- })(ActionType || (ActionType = {}));
129
- // Retrieve enum metadata with: proto3.getEnumType(ActionType)
130
- proto3.util.setEnumType(ActionType, "ActionType", [
131
- { no: 0, name: "ACTION_TYPE_UNKNOWN" },
132
- { no: 1, name: "ADD_EDIT" },
133
- { no: 2, name: "ADD_SUBSPACE" },
134
- { no: 3, name: "REMOVE_SUBSPACE" },
135
- { no: 4, name: "IMPORT_SPACE" },
136
- { no: 5, name: "ARCHIVE_SPACE" },
137
- ]);
138
- /**
139
- * @generated from message IpfsMetadata
140
- */
141
- export class IpfsMetadata extends Message {
142
- /**
143
- * We version the data structured used to represent proposal metadata. Each
144
- * proposal type has their own metadata and versioning that we can change
145
- * independently of other proposal types.
146
- *
147
- * @generated from field: string version = 1;
148
- */
149
- version = "";
150
- /**
151
- * @generated from field: ActionType type = 2;
152
- */
153
- type = ActionType.ACTION_TYPE_UNKNOWN;
154
- constructor(data) {
155
- super();
156
- proto3.util.initPartial(data, this);
157
- }
158
- static runtime = proto3;
159
- static typeName = "IpfsMetadata";
160
- static fields = proto3.util.newFieldList(() => [
161
- { no: 1, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
162
- { no: 2, name: "type", kind: "enum", T: proto3.getEnumType(ActionType) },
163
- ]);
164
- static fromBinary(bytes, options) {
165
- return new IpfsMetadata().fromBinary(bytes, options);
166
- }
167
- static fromJson(jsonValue, options) {
168
- return new IpfsMetadata().fromJson(jsonValue, options);
169
- }
170
- static fromJsonString(jsonString, options) {
171
- return new IpfsMetadata().fromJsonString(jsonString, options);
172
- }
173
- static equals(a, b) {
174
- return proto3.util.equals(IpfsMetadata, a, b);
175
- }
176
- }
177
- /**
178
- * @generated from message Edit
7
+ * @generated from message ipfs.Edit
179
8
  */
180
9
  export class Edit extends Message {
181
10
  /**
182
- * @generated from field: string version = 1;
183
- */
184
- version = "";
185
- /**
186
- * @generated from field: ActionType type = 2;
187
- */
188
- type = ActionType.ACTION_TYPE_UNKNOWN;
189
- /**
190
- * @generated from field: string id = 3;
11
+ * @generated from field: bytes id = 1;
191
12
  */
192
- id = "";
13
+ id = new Uint8Array(0);
193
14
  /**
194
- * @generated from field: string name = 4;
15
+ * @generated from field: string name = 2;
195
16
  */
196
17
  name = "";
197
18
  /**
198
- * @generated from field: repeated Op ops = 5;
19
+ * @generated from field: repeated ipfs.Op ops = 3;
199
20
  */
200
21
  ops = [];
201
22
  /**
202
- * @generated from field: repeated string authors = 6;
23
+ * @generated from field: repeated bytes authors = 4;
203
24
  */
204
25
  authors = [];
26
+ /**
27
+ * @generated from field: optional bytes language = 5;
28
+ */
29
+ language;
205
30
  constructor(data) {
206
31
  super();
207
32
  proto3.util.initPartial(data, this);
208
33
  }
209
34
  static runtime = proto3;
210
- static typeName = "Edit";
35
+ static typeName = "ipfs.Edit";
211
36
  static fields = proto3.util.newFieldList(() => [
212
- { no: 1, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
213
- { no: 2, name: "type", kind: "enum", T: proto3.getEnumType(ActionType) },
214
- { no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
215
- { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
216
- { no: 5, name: "ops", kind: "message", T: Op, repeated: true },
217
- { no: 6, name: "authors", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
37
+ { no: 1, name: "id", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
38
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
39
+ { no: 3, name: "ops", kind: "message", T: Op, repeated: true },
40
+ { no: 4, name: "authors", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true },
41
+ { no: 5, name: "language", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
218
42
  ]);
219
43
  static fromBinary(bytes, options) {
220
44
  return new Edit().fromBinary(bytes, options);
@@ -230,71 +54,61 @@ export class Edit extends Message {
230
54
  }
231
55
  }
232
56
  /**
233
- * @generated from message ImportEdit
57
+ * @generated from message ipfs.ImportEdit
234
58
  */
235
59
  export class ImportEdit extends Message {
236
60
  /**
237
- * @generated from field: string version = 1;
61
+ * @generated from field: bytes id = 1;
238
62
  */
239
- version = "";
63
+ id = new Uint8Array(0);
240
64
  /**
241
- * @generated from field: ActionType type = 2;
242
- */
243
- type = ActionType.ACTION_TYPE_UNKNOWN;
244
- /**
245
- * @generated from field: string id = 3;
246
- */
247
- id = "";
248
- /**
249
- * @generated from field: string name = 4;
65
+ * @generated from field: string name = 2;
250
66
  */
251
67
  name = "";
252
68
  /**
253
- * @generated from field: repeated Op ops = 5;
69
+ * @generated from field: repeated ipfs.Op ops = 3;
254
70
  */
255
71
  ops = [];
256
72
  /**
257
- * @generated from field: repeated string authors = 6;
73
+ * @generated from field: repeated bytes authors = 4;
258
74
  */
259
75
  authors = [];
260
76
  /**
261
- * @generated from field: string created_by = 7;
77
+ * @generated from field: bytes created_by = 5;
262
78
  */
263
- createdBy = "";
79
+ createdBy = new Uint8Array(0);
264
80
  /**
265
- * @generated from field: string created_at = 8;
81
+ * @generated from field: string created_at = 6;
266
82
  */
267
83
  createdAt = "";
268
84
  /**
269
- * @generated from field: string block_hash = 9;
85
+ * @generated from field: bytes block_hash = 7;
270
86
  */
271
- blockHash = "";
87
+ blockHash = new Uint8Array(0);
272
88
  /**
273
- * @generated from field: string block_number = 10;
89
+ * @generated from field: string block_number = 8;
274
90
  */
275
91
  blockNumber = "";
276
92
  /**
277
- * @generated from field: string transaction_hash = 11;
93
+ * @generated from field: bytes transaction_hash = 9;
278
94
  */
279
- transactionHash = "";
95
+ transactionHash = new Uint8Array(0);
280
96
  constructor(data) {
281
97
  super();
282
98
  proto3.util.initPartial(data, this);
283
99
  }
284
100
  static runtime = proto3;
285
- static typeName = "ImportEdit";
101
+ static typeName = "ipfs.ImportEdit";
286
102
  static fields = proto3.util.newFieldList(() => [
287
- { no: 1, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
288
- { no: 2, name: "type", kind: "enum", T: proto3.getEnumType(ActionType) },
289
- { no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
290
- { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
291
- { no: 5, name: "ops", kind: "message", T: Op, repeated: true },
292
- { no: 6, name: "authors", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
293
- { no: 7, name: "created_by", kind: "scalar", T: 9 /* ScalarType.STRING */ },
294
- { no: 8, name: "created_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
295
- { no: 9, name: "block_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
296
- { no: 10, name: "block_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
297
- { no: 11, name: "transaction_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
103
+ { no: 1, name: "id", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
104
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
105
+ { no: 3, name: "ops", kind: "message", T: Op, repeated: true },
106
+ { no: 4, name: "authors", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true },
107
+ { no: 5, name: "created_by", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
108
+ { no: 6, name: "created_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
109
+ { no: 7, name: "block_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
110
+ { no: 8, name: "block_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
111
+ { no: 9, name: "transaction_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
298
112
  ]);
299
113
  static fromBinary(bytes, options) {
300
114
  return new ImportEdit().fromBinary(bytes, options);
@@ -310,200 +124,96 @@ export class ImportEdit extends Message {
310
124
  }
311
125
  }
312
126
  /**
313
- * @generated from message ImportCsvMetadata
127
+ * @generated from message ipfs.Import
314
128
  */
315
- export class ImportCsvMetadata extends Message {
316
- /**
317
- * @generated from field: string type = 1;
318
- */
319
- type = "";
129
+ export class Import extends Message {
320
130
  /**
321
- * @generated from field: repeated ImportCsvColumnMetadata columns = 2;
131
+ * these strings are IPFS cids representing the import edit message
132
+ *
133
+ * @generated from field: repeated string edits = 1;
322
134
  */
323
- columns = [];
135
+ edits = [];
324
136
  constructor(data) {
325
137
  super();
326
138
  proto3.util.initPartial(data, this);
327
139
  }
328
140
  static runtime = proto3;
329
- static typeName = "ImportCsvMetadata";
141
+ static typeName = "ipfs.Import";
330
142
  static fields = proto3.util.newFieldList(() => [
331
- { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
332
- { no: 2, name: "columns", kind: "message", T: ImportCsvColumnMetadata, repeated: true },
143
+ { no: 1, name: "edits", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
333
144
  ]);
334
145
  static fromBinary(bytes, options) {
335
- return new ImportCsvMetadata().fromBinary(bytes, options);
146
+ return new Import().fromBinary(bytes, options);
336
147
  }
337
148
  static fromJson(jsonValue, options) {
338
- return new ImportCsvMetadata().fromJson(jsonValue, options);
149
+ return new Import().fromJson(jsonValue, options);
339
150
  }
340
151
  static fromJsonString(jsonString, options) {
341
- return new ImportCsvMetadata().fromJsonString(jsonString, options);
152
+ return new Import().fromJsonString(jsonString, options);
342
153
  }
343
154
  static equals(a, b) {
344
- return proto3.util.equals(ImportCsvMetadata, a, b);
155
+ return proto3.util.equals(Import, a, b);
345
156
  }
346
157
  }
347
158
  /**
348
- * @generated from message ImportCsvColumnMetadata
159
+ * @generated from message ipfs.IpfsFile
349
160
  */
350
- export class ImportCsvColumnMetadata extends Message {
351
- /**
352
- * @generated from field: string id = 1;
353
- */
354
- id = "";
355
- /**
356
- * @generated from field: ImportCsvColumnMetadata.CsvMetadataColumnType type = 2;
357
- */
358
- type = ImportCsvColumnMetadata_CsvMetadataColumnType.UNKNOWN;
161
+ export class IpfsFile extends Message {
359
162
  /**
360
- * @generated from field: optional string relation_type = 3;
361
- */
362
- relationType;
363
- /**
364
- * @generated from field: optional bool is_id = 4;
163
+ * @generated from field: string version = 1;
365
164
  */
366
- isId;
165
+ version = "";
367
166
  /**
368
- * @generated from field: optional Options options = 5;
167
+ * @generated from oneof ipfs.IpfsFile.payload
369
168
  */
370
- options;
169
+ payload = { case: undefined };
371
170
  constructor(data) {
372
171
  super();
373
172
  proto3.util.initPartial(data, this);
374
173
  }
375
174
  static runtime = proto3;
376
- static typeName = "ImportCsvColumnMetadata";
175
+ static typeName = "ipfs.IpfsFile";
377
176
  static fields = proto3.util.newFieldList(() => [
378
- { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
379
- { no: 2, name: "type", kind: "enum", T: proto3.getEnumType(ImportCsvColumnMetadata_CsvMetadataColumnType) },
380
- { no: 3, name: "relation_type", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
381
- { no: 4, name: "is_id", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
382
- { no: 5, name: "options", kind: "message", T: Options, opt: true },
177
+ { no: 1, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
178
+ { no: 2, name: "add_edit", kind: "message", T: Edit, oneof: "payload" },
179
+ { no: 3, name: "import_space", kind: "message", T: Import, oneof: "payload" },
180
+ { no: 4, name: "archive_space", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "payload" },
383
181
  ]);
384
182
  static fromBinary(bytes, options) {
385
- return new ImportCsvColumnMetadata().fromBinary(bytes, options);
183
+ return new IpfsFile().fromBinary(bytes, options);
386
184
  }
387
185
  static fromJson(jsonValue, options) {
388
- return new ImportCsvColumnMetadata().fromJson(jsonValue, options);
186
+ return new IpfsFile().fromJson(jsonValue, options);
389
187
  }
390
188
  static fromJsonString(jsonString, options) {
391
- return new ImportCsvColumnMetadata().fromJsonString(jsonString, options);
189
+ return new IpfsFile().fromJsonString(jsonString, options);
392
190
  }
393
191
  static equals(a, b) {
394
- return proto3.util.equals(ImportCsvColumnMetadata, a, b);
192
+ return proto3.util.equals(IpfsFile, a, b);
395
193
  }
396
194
  }
397
195
  /**
398
- * @generated from enum ImportCsvColumnMetadata.CsvMetadataColumnType
399
- */
400
- export var ImportCsvColumnMetadata_CsvMetadataColumnType;
401
- (function (ImportCsvColumnMetadata_CsvMetadataColumnType) {
402
- /**
403
- * @generated from enum value: UNKNOWN = 0;
404
- */
405
- ImportCsvColumnMetadata_CsvMetadataColumnType[ImportCsvColumnMetadata_CsvMetadataColumnType["UNKNOWN"] = 0] = "UNKNOWN";
406
- /**
407
- * @generated from enum value: TEXT = 1;
408
- */
409
- ImportCsvColumnMetadata_CsvMetadataColumnType[ImportCsvColumnMetadata_CsvMetadataColumnType["TEXT"] = 1] = "TEXT";
410
- /**
411
- * @generated from enum value: NUMBER = 2;
412
- */
413
- ImportCsvColumnMetadata_CsvMetadataColumnType[ImportCsvColumnMetadata_CsvMetadataColumnType["NUMBER"] = 2] = "NUMBER";
414
- /**
415
- * @generated from enum value: CHECKBOX = 3;
416
- */
417
- ImportCsvColumnMetadata_CsvMetadataColumnType[ImportCsvColumnMetadata_CsvMetadataColumnType["CHECKBOX"] = 3] = "CHECKBOX";
418
- /**
419
- * @generated from enum value: URL = 4;
420
- */
421
- ImportCsvColumnMetadata_CsvMetadataColumnType[ImportCsvColumnMetadata_CsvMetadataColumnType["URL"] = 4] = "URL";
422
- /**
423
- * @generated from enum value: TIME = 5;
424
- */
425
- ImportCsvColumnMetadata_CsvMetadataColumnType[ImportCsvColumnMetadata_CsvMetadataColumnType["TIME"] = 5] = "TIME";
426
- /**
427
- * @generated from enum value: POINT = 6;
428
- */
429
- ImportCsvColumnMetadata_CsvMetadataColumnType[ImportCsvColumnMetadata_CsvMetadataColumnType["POINT"] = 6] = "POINT";
430
- /**
431
- * @generated from enum value: RELATION = 7;
432
- */
433
- ImportCsvColumnMetadata_CsvMetadataColumnType[ImportCsvColumnMetadata_CsvMetadataColumnType["RELATION"] = 7] = "RELATION";
434
- })(ImportCsvColumnMetadata_CsvMetadataColumnType || (ImportCsvColumnMetadata_CsvMetadataColumnType = {}));
435
- // Retrieve enum metadata with: proto3.getEnumType(ImportCsvColumnMetadata_CsvMetadataColumnType)
436
- proto3.util.setEnumType(ImportCsvColumnMetadata_CsvMetadataColumnType, "ImportCsvColumnMetadata.CsvMetadataColumnType", [
437
- { no: 0, name: "UNKNOWN" },
438
- { no: 1, name: "TEXT" },
439
- { no: 2, name: "NUMBER" },
440
- { no: 3, name: "CHECKBOX" },
441
- { no: 4, name: "URL" },
442
- { no: 5, name: "TIME" },
443
- { no: 6, name: "POINT" },
444
- { no: 7, name: "RELATION" },
445
- ]);
446
- /**
447
- * @generated from message Op
196
+ * @generated from message ipfs.Op
448
197
  */
449
198
  export class Op extends Message {
450
199
  /**
451
- * @generated from field: OpType type = 1;
452
- */
453
- type = OpType.OP_TYPE_UNKNOWN;
454
- /**
455
- * *
456
- * Used when setting a single triple
457
- *
458
- * @generated from field: optional Triple triple = 2;
459
- */
460
- triple;
461
- /**
462
- * *
463
- * Used when setting batch ops or deleting an entity
464
- *
465
- * @generated from field: optional Entity entity = 3;
466
- */
467
- entity;
468
- /**
469
- * *
470
- * Used when creating or deleting a relation
471
- *
472
- * @generated from field: optional Relation relation = 4;
473
- */
474
- relation;
475
- /**
476
- * *
477
- * Used when setting batch ops
478
- *
479
- * @generated from field: repeated Triple triples = 5;
480
- */
481
- triples = [];
482
- /**
483
- * *
484
- * Used when importing a csv file
485
- *
486
- * @generated from field: optional string url = 6;
487
- */
488
- url;
489
- /**
490
- * @generated from field: optional ImportCsvMetadata metadata = 7;
200
+ * @generated from oneof ipfs.Op.payload
491
201
  */
492
- metadata;
202
+ payload = { case: undefined };
493
203
  constructor(data) {
494
204
  super();
495
205
  proto3.util.initPartial(data, this);
496
206
  }
497
207
  static runtime = proto3;
498
- static typeName = "Op";
208
+ static typeName = "ipfs.Op";
499
209
  static fields = proto3.util.newFieldList(() => [
500
- { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(OpType) },
501
- { no: 2, name: "triple", kind: "message", T: Triple, opt: true },
502
- { no: 3, name: "entity", kind: "message", T: Entity, opt: true },
503
- { no: 4, name: "relation", kind: "message", T: Relation, opt: true },
504
- { no: 5, name: "triples", kind: "message", T: Triple, repeated: true },
505
- { no: 6, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
506
- { no: 7, name: "metadata", kind: "message", T: ImportCsvMetadata, opt: true },
210
+ { no: 1, name: "update_entity", kind: "message", T: Entity, oneof: "payload" },
211
+ { no: 2, name: "delete_entity", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "payload" },
212
+ { no: 3, name: "create_relation", kind: "message", T: Relation, oneof: "payload" },
213
+ { no: 4, name: "update_relation", kind: "message", T: RelationUpdate, oneof: "payload" },
214
+ { no: 5, name: "delete_relation", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "payload" },
215
+ { no: 6, name: "unset_entity_values", kind: "message", T: UnsetEntityValues, oneof: "payload" },
216
+ { no: 7, name: "unset_relation_fields", kind: "message", T: UnsetRelationFields, oneof: "payload" },
507
217
  ]);
508
218
  static fromBinary(bytes, options) {
509
219
  return new Op().fromBinary(bytes, options);
@@ -519,258 +229,308 @@ export class Op extends Message {
519
229
  }
520
230
  }
521
231
  /**
522
- * @generated from message Triple
232
+ * @generated from message ipfs.UnsetEntityValues
523
233
  */
524
- export class Triple extends Message {
234
+ export class UnsetEntityValues extends Message {
525
235
  /**
526
- * @generated from field: string entity = 1;
236
+ * @generated from field: bytes id = 1;
527
237
  */
528
- entity = "";
238
+ id = new Uint8Array(0);
529
239
  /**
530
- * @generated from field: string attribute = 2;
240
+ * @generated from field: repeated bytes properties = 2;
531
241
  */
532
- attribute = "";
533
- /**
534
- * @generated from field: Value value = 3;
535
- */
536
- value;
242
+ properties = [];
537
243
  constructor(data) {
538
244
  super();
539
245
  proto3.util.initPartial(data, this);
540
246
  }
541
247
  static runtime = proto3;
542
- static typeName = "Triple";
248
+ static typeName = "ipfs.UnsetEntityValues";
543
249
  static fields = proto3.util.newFieldList(() => [
544
- { no: 1, name: "entity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
545
- { no: 2, name: "attribute", kind: "scalar", T: 9 /* ScalarType.STRING */ },
546
- { no: 3, name: "value", kind: "message", T: Value },
250
+ { no: 1, name: "id", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
251
+ { no: 2, name: "properties", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true },
547
252
  ]);
548
253
  static fromBinary(bytes, options) {
549
- return new Triple().fromBinary(bytes, options);
254
+ return new UnsetEntityValues().fromBinary(bytes, options);
550
255
  }
551
256
  static fromJson(jsonValue, options) {
552
- return new Triple().fromJson(jsonValue, options);
257
+ return new UnsetEntityValues().fromJson(jsonValue, options);
553
258
  }
554
259
  static fromJsonString(jsonString, options) {
555
- return new Triple().fromJsonString(jsonString, options);
260
+ return new UnsetEntityValues().fromJsonString(jsonString, options);
556
261
  }
557
262
  static equals(a, b) {
558
- return proto3.util.equals(Triple, a, b);
263
+ return proto3.util.equals(UnsetEntityValues, a, b);
559
264
  }
560
265
  }
561
266
  /**
562
- * @generated from message Value
267
+ * @generated from message ipfs.Relation
563
268
  */
564
- export class Value extends Message {
269
+ export class Relation extends Message {
565
270
  /**
566
- * @generated from field: ValueType type = 1;
271
+ * @generated from field: bytes id = 1;
567
272
  */
568
- type = ValueType.VALUE_TYPE_UNKNOWN;
273
+ id = new Uint8Array(0);
569
274
  /**
570
- * @generated from field: string value = 2;
275
+ * @generated from field: bytes type = 2;
571
276
  */
572
- value = "";
277
+ type = new Uint8Array(0);
278
+ /**
279
+ * @generated from field: bytes from_entity = 3;
280
+ */
281
+ fromEntity = new Uint8Array(0);
573
282
  /**
574
- * @generated from field: optional Options options = 3;
283
+ * @generated from field: optional bytes from_space = 4;
575
284
  */
576
- options;
285
+ fromSpace;
286
+ /**
287
+ * @generated from field: optional bytes from_version = 5;
288
+ */
289
+ fromVersion;
290
+ /**
291
+ * @generated from field: bytes to_entity = 6;
292
+ */
293
+ toEntity = new Uint8Array(0);
294
+ /**
295
+ * @generated from field: optional bytes to_space = 7;
296
+ */
297
+ toSpace;
298
+ /**
299
+ * @generated from field: optional bytes to_version = 8;
300
+ */
301
+ toVersion;
302
+ /**
303
+ * @generated from field: bytes entity = 9;
304
+ */
305
+ entity = new Uint8Array(0);
306
+ /**
307
+ * @generated from field: optional string position = 10;
308
+ */
309
+ position;
310
+ /**
311
+ * @generated from field: optional bool verified = 11;
312
+ */
313
+ verified;
577
314
  constructor(data) {
578
315
  super();
579
316
  proto3.util.initPartial(data, this);
580
317
  }
581
318
  static runtime = proto3;
582
- static typeName = "Value";
319
+ static typeName = "ipfs.Relation";
583
320
  static fields = proto3.util.newFieldList(() => [
584
- { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(ValueType) },
585
- { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
586
- { no: 3, name: "options", kind: "message", T: Options, opt: true },
321
+ { no: 1, name: "id", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
322
+ { no: 2, name: "type", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
323
+ { no: 3, name: "from_entity", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
324
+ { no: 4, name: "from_space", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
325
+ { no: 5, name: "from_version", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
326
+ { no: 6, name: "to_entity", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
327
+ { no: 7, name: "to_space", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
328
+ { no: 8, name: "to_version", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
329
+ { no: 9, name: "entity", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
330
+ { no: 10, name: "position", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
331
+ { no: 11, name: "verified", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
587
332
  ]);
588
333
  static fromBinary(bytes, options) {
589
- return new Value().fromBinary(bytes, options);
334
+ return new Relation().fromBinary(bytes, options);
590
335
  }
591
336
  static fromJson(jsonValue, options) {
592
- return new Value().fromJson(jsonValue, options);
337
+ return new Relation().fromJson(jsonValue, options);
593
338
  }
594
339
  static fromJsonString(jsonString, options) {
595
- return new Value().fromJsonString(jsonString, options);
340
+ return new Relation().fromJsonString(jsonString, options);
596
341
  }
597
342
  static equals(a, b) {
598
- return proto3.util.equals(Value, a, b);
343
+ return proto3.util.equals(Relation, a, b);
599
344
  }
600
345
  }
601
346
  /**
602
- * @generated from message Relation
347
+ * @generated from message ipfs.RelationUpdate
603
348
  */
604
- export class Relation extends Message {
349
+ export class RelationUpdate extends Message {
350
+ /**
351
+ * @generated from field: bytes id = 1;
352
+ */
353
+ id = new Uint8Array(0);
354
+ /**
355
+ * @generated from field: optional bytes from_space = 2;
356
+ */
357
+ fromSpace;
605
358
  /**
606
- * @generated from field: string id = 1;
359
+ * @generated from field: optional bytes from_version = 3;
607
360
  */
608
- id = "";
361
+ fromVersion;
609
362
  /**
610
- * @generated from field: string type = 2;
363
+ * @generated from field: optional bytes to_space = 4;
611
364
  */
612
- type = "";
365
+ toSpace;
613
366
  /**
614
- * @generated from field: string from_entity = 3;
367
+ * @generated from field: optional bytes to_version = 5;
615
368
  */
616
- fromEntity = "";
369
+ toVersion;
617
370
  /**
618
- * @generated from field: string to_entity = 4;
371
+ * @generated from field: optional string position = 6;
619
372
  */
620
- toEntity = "";
373
+ position;
621
374
  /**
622
- * @generated from field: string index = 5;
375
+ * @generated from field: optional bool verified = 7;
623
376
  */
624
- index = "";
377
+ verified;
625
378
  constructor(data) {
626
379
  super();
627
380
  proto3.util.initPartial(data, this);
628
381
  }
629
382
  static runtime = proto3;
630
- static typeName = "Relation";
383
+ static typeName = "ipfs.RelationUpdate";
631
384
  static fields = proto3.util.newFieldList(() => [
632
- { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
633
- { no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
634
- { no: 3, name: "from_entity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
635
- { no: 4, name: "to_entity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
636
- { no: 5, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ },
385
+ { no: 1, name: "id", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
386
+ { no: 2, name: "from_space", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
387
+ { no: 3, name: "from_version", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
388
+ { no: 4, name: "to_space", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
389
+ { no: 5, name: "to_version", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
390
+ { no: 6, name: "position", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
391
+ { no: 7, name: "verified", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
637
392
  ]);
638
393
  static fromBinary(bytes, options) {
639
- return new Relation().fromBinary(bytes, options);
394
+ return new RelationUpdate().fromBinary(bytes, options);
640
395
  }
641
396
  static fromJson(jsonValue, options) {
642
- return new Relation().fromJson(jsonValue, options);
397
+ return new RelationUpdate().fromJson(jsonValue, options);
643
398
  }
644
399
  static fromJsonString(jsonString, options) {
645
- return new Relation().fromJsonString(jsonString, options);
400
+ return new RelationUpdate().fromJsonString(jsonString, options);
646
401
  }
647
402
  static equals(a, b) {
648
- return proto3.util.equals(Relation, a, b);
403
+ return proto3.util.equals(RelationUpdate, a, b);
649
404
  }
650
405
  }
651
406
  /**
652
- * @generated from message Entity
407
+ * @generated from message ipfs.UnsetRelationFields
653
408
  */
654
- export class Entity extends Message {
409
+ export class UnsetRelationFields extends Message {
655
410
  /**
656
- * @generated from field: string id = 1;
411
+ * @generated from field: bytes id = 1;
657
412
  */
658
- id = "";
413
+ id = new Uint8Array(0);
659
414
  /**
660
- * @generated from field: repeated string types = 2;
415
+ * @generated from field: optional bool from_space = 2;
661
416
  */
662
- types = [];
417
+ fromSpace;
418
+ /**
419
+ * @generated from field: optional bool from_version = 3;
420
+ */
421
+ fromVersion;
422
+ /**
423
+ * @generated from field: optional bool to_space = 4;
424
+ */
425
+ toSpace;
426
+ /**
427
+ * @generated from field: optional bool to_version = 5;
428
+ */
429
+ toVersion;
430
+ /**
431
+ * @generated from field: optional bool position = 6;
432
+ */
433
+ position;
434
+ /**
435
+ * @generated from field: optional bool verified = 7;
436
+ */
437
+ verified;
663
438
  constructor(data) {
664
439
  super();
665
440
  proto3.util.initPartial(data, this);
666
441
  }
667
442
  static runtime = proto3;
668
- static typeName = "Entity";
443
+ static typeName = "ipfs.UnsetRelationFields";
669
444
  static fields = proto3.util.newFieldList(() => [
670
- { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
671
- { no: 2, name: "types", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
445
+ { no: 1, name: "id", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
446
+ { no: 2, name: "from_space", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
447
+ { no: 3, name: "from_version", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
448
+ { no: 4, name: "to_space", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
449
+ { no: 5, name: "to_version", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
450
+ { no: 6, name: "position", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
451
+ { no: 7, name: "verified", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
672
452
  ]);
673
453
  static fromBinary(bytes, options) {
674
- return new Entity().fromBinary(bytes, options);
454
+ return new UnsetRelationFields().fromBinary(bytes, options);
675
455
  }
676
456
  static fromJson(jsonValue, options) {
677
- return new Entity().fromJson(jsonValue, options);
457
+ return new UnsetRelationFields().fromJson(jsonValue, options);
678
458
  }
679
459
  static fromJsonString(jsonString, options) {
680
- return new Entity().fromJsonString(jsonString, options);
460
+ return new UnsetRelationFields().fromJsonString(jsonString, options);
681
461
  }
682
462
  static equals(a, b) {
683
- return proto3.util.equals(Entity, a, b);
463
+ return proto3.util.equals(UnsetRelationFields, a, b);
684
464
  }
685
465
  }
686
466
  /**
687
- * @generated from message Import
467
+ * @generated from message ipfs.Entity
688
468
  */
689
- export class Import extends Message {
690
- /**
691
- * @generated from field: string version = 1;
692
- */
693
- version = "";
694
- /**
695
- * @generated from field: ActionType type = 2;
696
- */
697
- type = ActionType.ACTION_TYPE_UNKNOWN;
698
- /**
699
- * @generated from field: string previous_network = 3;
700
- */
701
- previousNetwork = "";
469
+ export class Entity extends Message {
702
470
  /**
703
- * @generated from field: string previous_contract_address = 4;
471
+ * @generated from field: bytes id = 1;
704
472
  */
705
- previousContractAddress = "";
473
+ id = new Uint8Array(0);
706
474
  /**
707
- * @generated from field: repeated string edits = 5;
475
+ * @generated from field: repeated ipfs.Value values = 2;
708
476
  */
709
- edits = [];
477
+ values = [];
710
478
  constructor(data) {
711
479
  super();
712
480
  proto3.util.initPartial(data, this);
713
481
  }
714
482
  static runtime = proto3;
715
- static typeName = "Import";
483
+ static typeName = "ipfs.Entity";
716
484
  static fields = proto3.util.newFieldList(() => [
717
- { no: 1, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
718
- { no: 2, name: "type", kind: "enum", T: proto3.getEnumType(ActionType) },
719
- { no: 3, name: "previous_network", kind: "scalar", T: 9 /* ScalarType.STRING */ },
720
- { no: 4, name: "previous_contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
721
- { no: 5, name: "edits", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
485
+ { no: 1, name: "id", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
486
+ { no: 2, name: "values", kind: "message", T: Value, repeated: true },
722
487
  ]);
723
488
  static fromBinary(bytes, options) {
724
- return new Import().fromBinary(bytes, options);
489
+ return new Entity().fromBinary(bytes, options);
725
490
  }
726
491
  static fromJson(jsonValue, options) {
727
- return new Import().fromJson(jsonValue, options);
492
+ return new Entity().fromJson(jsonValue, options);
728
493
  }
729
494
  static fromJsonString(jsonString, options) {
730
- return new Import().fromJsonString(jsonString, options);
495
+ return new Entity().fromJsonString(jsonString, options);
731
496
  }
732
497
  static equals(a, b) {
733
- return proto3.util.equals(Import, a, b);
498
+ return proto3.util.equals(Entity, a, b);
734
499
  }
735
500
  }
736
501
  /**
737
- * @generated from message Options
502
+ * @generated from message ipfs.Value
738
503
  */
739
- export class Options extends Message {
740
- /**
741
- * @generated from field: optional string format = 1;
742
- */
743
- format;
504
+ export class Value extends Message {
744
505
  /**
745
- * @generated from field: optional string unit = 2;
506
+ * @generated from field: bytes property_id = 1;
746
507
  */
747
- unit;
508
+ propertyId = new Uint8Array(0);
748
509
  /**
749
- * @generated from field: optional string language = 3;
510
+ * @generated from field: string value = 2;
750
511
  */
751
- language;
512
+ value = "";
752
513
  constructor(data) {
753
514
  super();
754
515
  proto3.util.initPartial(data, this);
755
516
  }
756
517
  static runtime = proto3;
757
- static typeName = "Options";
518
+ static typeName = "ipfs.Value";
758
519
  static fields = proto3.util.newFieldList(() => [
759
- { no: 1, name: "format", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
760
- { no: 2, name: "unit", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
761
- { no: 3, name: "language", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
520
+ { no: 1, name: "property_id", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
521
+ { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
762
522
  ]);
763
523
  static fromBinary(bytes, options) {
764
- return new Options().fromBinary(bytes, options);
524
+ return new Value().fromBinary(bytes, options);
765
525
  }
766
526
  static fromJson(jsonValue, options) {
767
- return new Options().fromJson(jsonValue, options);
527
+ return new Value().fromJson(jsonValue, options);
768
528
  }
769
529
  static fromJsonString(jsonString, options) {
770
- return new Options().fromJsonString(jsonString, options);
530
+ return new Value().fromJsonString(jsonString, options);
771
531
  }
772
532
  static equals(a, b) {
773
- return proto3.util.equals(Options, a, b);
533
+ return proto3.util.equals(Value, a, b);
774
534
  }
775
535
  }
776
536
  //# sourceMappingURL=ipfs_pb.js.map