@proposit/shared 0.1.0

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 (311) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +32 -0
  3. package/dist/api-client/argument/batch.d.ts +661 -0
  4. package/dist/api-client/argument/batch.d.ts.map +1 -0
  5. package/dist/api-client/argument/batch.js +14 -0
  6. package/dist/api-client/argument/batch.js.map +1 -0
  7. package/dist/api-client/argument/claims.d.ts +175 -0
  8. package/dist/api-client/argument/claims.d.ts.map +1 -0
  9. package/dist/api-client/argument/claims.js +20 -0
  10. package/dist/api-client/argument/claims.js.map +1 -0
  11. package/dist/api-client/argument/index.d.ts +1344 -0
  12. package/dist/api-client/argument/index.d.ts.map +1 -0
  13. package/dist/api-client/argument/index.js +62 -0
  14. package/dist/api-client/argument/index.js.map +1 -0
  15. package/dist/api-client/argument/logic/index.d.ts +861 -0
  16. package/dist/api-client/argument/logic/index.d.ts.map +1 -0
  17. package/dist/api-client/argument/logic/index.js +73 -0
  18. package/dist/api-client/argument/logic/index.js.map +1 -0
  19. package/dist/api-client/argument/logic/repair.d.ts +182 -0
  20. package/dist/api-client/argument/logic/repair.d.ts.map +1 -0
  21. package/dist/api-client/argument/logic/repair.js +9 -0
  22. package/dist/api-client/argument/logic/repair.js.map +1 -0
  23. package/dist/api-client/argument/reactions.d.ts +38 -0
  24. package/dist/api-client/argument/reactions.d.ts.map +1 -0
  25. package/dist/api-client/argument/reactions.js +9 -0
  26. package/dist/api-client/argument/reactions.js.map +1 -0
  27. package/dist/api-client/argument/reviews.d.ts +183 -0
  28. package/dist/api-client/argument/reviews.d.ts.map +1 -0
  29. package/dist/api-client/argument/reviews.js +21 -0
  30. package/dist/api-client/argument/reviews.js.map +1 -0
  31. package/dist/api-client/search.d.ts +64 -0
  32. package/dist/api-client/search.d.ts.map +1 -0
  33. package/dist/api-client/search.js +19 -0
  34. package/dist/api-client/search.js.map +1 -0
  35. package/dist/api-client/user/claims.d.ts +128 -0
  36. package/dist/api-client/user/claims.d.ts.map +1 -0
  37. package/dist/api-client/user/claims.js +10 -0
  38. package/dist/api-client/user/claims.js.map +1 -0
  39. package/dist/api-client/user/sources.d.ts +41 -0
  40. package/dist/api-client/user/sources.d.ts.map +1 -0
  41. package/dist/api-client/user/sources.js +7 -0
  42. package/dist/api-client/user/sources.js.map +1 -0
  43. package/dist/checksum.d.ts +2 -0
  44. package/dist/checksum.d.ts.map +1 -0
  45. package/dist/checksum.js +32 -0
  46. package/dist/checksum.js.map +1 -0
  47. package/dist/consts/argument.d.ts +9 -0
  48. package/dist/consts/argument.d.ts.map +1 -0
  49. package/dist/consts/argument.js +17 -0
  50. package/dist/consts/argument.js.map +1 -0
  51. package/dist/consts/identity.d.ts +3 -0
  52. package/dist/consts/identity.d.ts.map +1 -0
  53. package/dist/consts/identity.js +6 -0
  54. package/dist/consts/identity.js.map +1 -0
  55. package/dist/consts/index.d.ts +6 -0
  56. package/dist/consts/index.d.ts.map +1 -0
  57. package/dist/consts/index.js +6 -0
  58. package/dist/consts/index.js.map +1 -0
  59. package/dist/consts/roles.d.ts +27 -0
  60. package/dist/consts/roles.d.ts.map +1 -0
  61. package/dist/consts/roles.js +52 -0
  62. package/dist/consts/roles.js.map +1 -0
  63. package/dist/consts/task-status.d.ts +8 -0
  64. package/dist/consts/task-status.d.ts.map +1 -0
  65. package/dist/consts/task-status.js +14 -0
  66. package/dist/consts/task-status.js.map +1 -0
  67. package/dist/consts/user-tiers.d.ts +7 -0
  68. package/dist/consts/user-tiers.d.ts.map +1 -0
  69. package/dist/consts/user-tiers.js +60 -0
  70. package/dist/consts/user-tiers.js.map +1 -0
  71. package/dist/engine/engine.d.ts +94 -0
  72. package/dist/engine/engine.d.ts.map +1 -0
  73. package/dist/engine/engine.js +313 -0
  74. package/dist/engine/engine.js.map +1 -0
  75. package/dist/engine/library-adapters.d.ts +12 -0
  76. package/dist/engine/library-adapters.d.ts.map +1 -0
  77. package/dist/engine/library-adapters.js +11 -0
  78. package/dist/engine/library-adapters.js.map +1 -0
  79. package/dist/engine/mutations/claims.d.ts +10 -0
  80. package/dist/engine/mutations/claims.d.ts.map +1 -0
  81. package/dist/engine/mutations/claims.js +22 -0
  82. package/dist/engine/mutations/claims.js.map +1 -0
  83. package/dist/engine/mutations/expressions.d.ts +109 -0
  84. package/dist/engine/mutations/expressions.d.ts.map +1 -0
  85. package/dist/engine/mutations/expressions.js +277 -0
  86. package/dist/engine/mutations/expressions.js.map +1 -0
  87. package/dist/engine/mutations/index.d.ts +7 -0
  88. package/dist/engine/mutations/index.d.ts.map +1 -0
  89. package/dist/engine/mutations/index.js +6 -0
  90. package/dist/engine/mutations/index.js.map +1 -0
  91. package/dist/engine/mutations/premises.d.ts +25 -0
  92. package/dist/engine/mutations/premises.d.ts.map +1 -0
  93. package/dist/engine/mutations/premises.js +51 -0
  94. package/dist/engine/mutations/premises.js.map +1 -0
  95. package/dist/engine/mutations/types.d.ts +11 -0
  96. package/dist/engine/mutations/types.d.ts.map +1 -0
  97. package/dist/engine/mutations/types.js +2 -0
  98. package/dist/engine/mutations/types.js.map +1 -0
  99. package/dist/engine/mutations/variables.d.ts +27 -0
  100. package/dist/engine/mutations/variables.d.ts.map +1 -0
  101. package/dist/engine/mutations/variables.js +16 -0
  102. package/dist/engine/mutations/variables.js.map +1 -0
  103. package/dist/engine/optimistic/index.d.ts +4 -0
  104. package/dist/engine/optimistic/index.d.ts.map +1 -0
  105. package/dist/engine/optimistic/index.js +3 -0
  106. package/dist/engine/optimistic/index.js.map +1 -0
  107. package/dist/engine/optimistic/reconciliation.d.ts +32 -0
  108. package/dist/engine/optimistic/reconciliation.d.ts.map +1 -0
  109. package/dist/engine/optimistic/reconciliation.js +140 -0
  110. package/dist/engine/optimistic/reconciliation.js.map +1 -0
  111. package/dist/engine/optimistic/types.d.ts +25 -0
  112. package/dist/engine/optimistic/types.d.ts.map +1 -0
  113. package/dist/engine/optimistic/types.js +12 -0
  114. package/dist/engine/optimistic/types.js.map +1 -0
  115. package/dist/engine/optimistic/verification.d.ts +13 -0
  116. package/dist/engine/optimistic/verification.d.ts.map +1 -0
  117. package/dist/engine/optimistic/verification.js +71 -0
  118. package/dist/engine/optimistic/verification.js.map +1 -0
  119. package/dist/engine/review/evaluation.d.ts +27 -0
  120. package/dist/engine/review/evaluation.d.ts.map +1 -0
  121. package/dist/engine/review/evaluation.js +122 -0
  122. package/dist/engine/review/evaluation.js.map +1 -0
  123. package/dist/engine/review/fingerprint.d.ts +9 -0
  124. package/dist/engine/review/fingerprint.d.ts.map +1 -0
  125. package/dist/engine/review/fingerprint.js +27 -0
  126. package/dist/engine/review/fingerprint.js.map +1 -0
  127. package/dist/engine/review/overlay.d.ts +19 -0
  128. package/dist/engine/review/overlay.d.ts.map +1 -0
  129. package/dist/engine/review/overlay.js +81 -0
  130. package/dist/engine/review/overlay.js.map +1 -0
  131. package/dist/engine/review/reasons.d.ts +15 -0
  132. package/dist/engine/review/reasons.d.ts.map +1 -0
  133. package/dist/engine/review/reasons.js +211 -0
  134. package/dist/engine/review/reasons.js.map +1 -0
  135. package/dist/engine/review/review-engine.d.ts +134 -0
  136. package/dist/engine/review/review-engine.d.ts.map +1 -0
  137. package/dist/engine/review/review-engine.js +590 -0
  138. package/dist/engine/review/review-engine.js.map +1 -0
  139. package/dist/engine/review/review-store.d.ts +63 -0
  140. package/dist/engine/review/review-store.d.ts.map +1 -0
  141. package/dist/engine/review/review-store.js +174 -0
  142. package/dist/engine/review/review-store.js.map +1 -0
  143. package/dist/engine/review/step-queue.d.ts +27 -0
  144. package/dist/engine/review/step-queue.d.ts.map +1 -0
  145. package/dist/engine/review/step-queue.js +34 -0
  146. package/dist/engine/review/step-queue.js.map +1 -0
  147. package/dist/engine/review/types.d.ts +16 -0
  148. package/dist/engine/review/types.d.ts.map +1 -0
  149. package/dist/engine/review/types.js +2 -0
  150. package/dist/engine/review/types.js.map +1 -0
  151. package/dist/engine/review/wire.d.ts +8 -0
  152. package/dist/engine/review/wire.d.ts.map +1 -0
  153. package/dist/engine/review/wire.js +97 -0
  154. package/dist/engine/review/wire.js.map +1 -0
  155. package/dist/engine/text-tree.d.ts +35 -0
  156. package/dist/engine/text-tree.d.ts.map +1 -0
  157. package/dist/engine/text-tree.js +137 -0
  158. package/dist/engine/text-tree.js.map +1 -0
  159. package/dist/engine/types.d.ts +42 -0
  160. package/dist/engine/types.d.ts.map +1 -0
  161. package/dist/engine/types.js +2 -0
  162. package/dist/engine/types.js.map +1 -0
  163. package/dist/errors.d.ts +27 -0
  164. package/dist/errors.d.ts.map +1 -0
  165. package/dist/errors.js +61 -0
  166. package/dist/errors.js.map +1 -0
  167. package/dist/schemas/api/argument/batch/change-edge-operator.d.ts +281 -0
  168. package/dist/schemas/api/argument/batch/change-edge-operator.d.ts.map +1 -0
  169. package/dist/schemas/api/argument/batch/change-edge-operator.js +19 -0
  170. package/dist/schemas/api/argument/batch/change-edge-operator.js.map +1 -0
  171. package/dist/schemas/api/argument/batch/create-expression-with-operator.d.ts +280 -0
  172. package/dist/schemas/api/argument/batch/create-expression-with-operator.d.ts.map +1 -0
  173. package/dist/schemas/api/argument/batch/create-expression-with-operator.js +22 -0
  174. package/dist/schemas/api/argument/batch/create-expression-with-operator.js.map +1 -0
  175. package/dist/schemas/api/argument/batch/provision.d.ts +112 -0
  176. package/dist/schemas/api/argument/batch/provision.d.ts.map +1 -0
  177. package/dist/schemas/api/argument/batch/provision.js +10 -0
  178. package/dist/schemas/api/argument/batch/provision.js.map +1 -0
  179. package/dist/schemas/api/argument/build.d.ts +50 -0
  180. package/dist/schemas/api/argument/build.d.ts.map +1 -0
  181. package/dist/schemas/api/argument/build.js +41 -0
  182. package/dist/schemas/api/argument/build.js.map +1 -0
  183. package/dist/schemas/api/argument/claims.d.ts +151 -0
  184. package/dist/schemas/api/argument/claims.d.ts.map +1 -0
  185. package/dist/schemas/api/argument/claims.js +24 -0
  186. package/dist/schemas/api/argument/claims.js.map +1 -0
  187. package/dist/schemas/api/argument/index.d.ts +682 -0
  188. package/dist/schemas/api/argument/index.d.ts.map +1 -0
  189. package/dist/schemas/api/argument/index.js +51 -0
  190. package/dist/schemas/api/argument/index.js.map +1 -0
  191. package/dist/schemas/api/argument/logic.d.ts +205 -0
  192. package/dist/schemas/api/argument/logic.d.ts.map +1 -0
  193. package/dist/schemas/api/argument/logic.js +77 -0
  194. package/dist/schemas/api/argument/logic.js.map +1 -0
  195. package/dist/schemas/api/argument/repair.d.ts +195 -0
  196. package/dist/schemas/api/argument/repair.d.ts.map +1 -0
  197. package/dist/schemas/api/argument/repair.js +35 -0
  198. package/dist/schemas/api/argument/repair.js.map +1 -0
  199. package/dist/schemas/api/claims.d.ts +250 -0
  200. package/dist/schemas/api/claims.d.ts.map +1 -0
  201. package/dist/schemas/api/claims.js +20 -0
  202. package/dist/schemas/api/claims.js.map +1 -0
  203. package/dist/schemas/api/reaction/index.d.ts +46 -0
  204. package/dist/schemas/api/reaction/index.d.ts.map +1 -0
  205. package/dist/schemas/api/reaction/index.js +15 -0
  206. package/dist/schemas/api/reaction/index.js.map +1 -0
  207. package/dist/schemas/api/review/index.d.ts +164 -0
  208. package/dist/schemas/api/review/index.d.ts.map +1 -0
  209. package/dist/schemas/api/review/index.js +29 -0
  210. package/dist/schemas/api/review/index.js.map +1 -0
  211. package/dist/schemas/api/search.d.ts +109 -0
  212. package/dist/schemas/api/search.d.ts.map +1 -0
  213. package/dist/schemas/api/search.js +60 -0
  214. package/dist/schemas/api/search.js.map +1 -0
  215. package/dist/schemas/api/sources.d.ts +108 -0
  216. package/dist/schemas/api/sources.d.ts.map +1 -0
  217. package/dist/schemas/api/sources.js +28 -0
  218. package/dist/schemas/api/sources.js.map +1 -0
  219. package/dist/schemas/api/user/index.d.ts +16 -0
  220. package/dist/schemas/api/user/index.d.ts.map +1 -0
  221. package/dist/schemas/api/user/index.js +15 -0
  222. package/dist/schemas/api/user/index.js.map +1 -0
  223. package/dist/schemas/common.d.ts +50 -0
  224. package/dist/schemas/common.d.ts.map +1 -0
  225. package/dist/schemas/common.js +77 -0
  226. package/dist/schemas/common.js.map +1 -0
  227. package/dist/schemas/gpt.d.ts +10 -0
  228. package/dist/schemas/gpt.d.ts.map +1 -0
  229. package/dist/schemas/gpt.js +27 -0
  230. package/dist/schemas/gpt.js.map +1 -0
  231. package/dist/schemas/index.d.ts +8 -0
  232. package/dist/schemas/index.d.ts.map +1 -0
  233. package/dist/schemas/index.js +8 -0
  234. package/dist/schemas/index.js.map +1 -0
  235. package/dist/schemas/integrations/index.d.ts +159 -0
  236. package/dist/schemas/integrations/index.d.ts.map +1 -0
  237. package/dist/schemas/integrations/index.js +72 -0
  238. package/dist/schemas/integrations/index.js.map +1 -0
  239. package/dist/schemas/logic.d.ts +195 -0
  240. package/dist/schemas/logic.d.ts.map +1 -0
  241. package/dist/schemas/logic.js +77 -0
  242. package/dist/schemas/logic.js.map +1 -0
  243. package/dist/schemas/model/arguments.d.ts +457 -0
  244. package/dist/schemas/model/arguments.d.ts.map +1 -0
  245. package/dist/schemas/model/arguments.js +100 -0
  246. package/dist/schemas/model/arguments.js.map +1 -0
  247. package/dist/schemas/model/claims.d.ts +53 -0
  248. package/dist/schemas/model/claims.d.ts.map +1 -0
  249. package/dist/schemas/model/claims.js +40 -0
  250. package/dist/schemas/model/claims.js.map +1 -0
  251. package/dist/schemas/model/forks.d.ts +63 -0
  252. package/dist/schemas/model/forks.d.ts.map +1 -0
  253. package/dist/schemas/model/forks.js +63 -0
  254. package/dist/schemas/model/forks.js.map +1 -0
  255. package/dist/schemas/model/index.d.ts +6 -0
  256. package/dist/schemas/model/index.d.ts.map +1 -0
  257. package/dist/schemas/model/index.js +6 -0
  258. package/dist/schemas/model/index.js.map +1 -0
  259. package/dist/schemas/model/references.d.ts +49 -0
  260. package/dist/schemas/model/references.d.ts.map +1 -0
  261. package/dist/schemas/model/references.js +46 -0
  262. package/dist/schemas/model/references.js.map +1 -0
  263. package/dist/schemas/model/review.d.ts +56 -0
  264. package/dist/schemas/model/review.d.ts.map +1 -0
  265. package/dist/schemas/model/review.js +50 -0
  266. package/dist/schemas/model/review.js.map +1 -0
  267. package/dist/schemas/model/sources.d.ts +456 -0
  268. package/dist/schemas/model/sources.d.ts.map +1 -0
  269. package/dist/schemas/model/sources.js +27 -0
  270. package/dist/schemas/model/sources.js.map +1 -0
  271. package/dist/schemas/model/users.d.ts +150 -0
  272. package/dist/schemas/model/users.d.ts.map +1 -0
  273. package/dist/schemas/model/users.js +136 -0
  274. package/dist/schemas/model/users.js.map +1 -0
  275. package/dist/schemas/model.d.ts +2 -0
  276. package/dist/schemas/model.d.ts.map +1 -0
  277. package/dist/schemas/model.js +2 -0
  278. package/dist/schemas/model.js.map +1 -0
  279. package/dist/schemas/review.d.ts +1403 -0
  280. package/dist/schemas/review.d.ts.map +1 -0
  281. package/dist/schemas/review.js +232 -0
  282. package/dist/schemas/review.js.map +1 -0
  283. package/dist/schemas/snapshot.d.ts +165 -0
  284. package/dist/schemas/snapshot.d.ts.map +1 -0
  285. package/dist/schemas/snapshot.js +80 -0
  286. package/dist/schemas/snapshot.js.map +1 -0
  287. package/dist/schemas/tasks.d.ts +551 -0
  288. package/dist/schemas/tasks.d.ts.map +1 -0
  289. package/dist/schemas/tasks.js +113 -0
  290. package/dist/schemas/tasks.js.map +1 -0
  291. package/dist/utils/embedding-text.d.ts +15 -0
  292. package/dist/utils/embedding-text.d.ts.map +1 -0
  293. package/dist/utils/embedding-text.js +86 -0
  294. package/dist/utils/embedding-text.js.map +1 -0
  295. package/dist/utils/format-review-share.d.ts +7 -0
  296. package/dist/utils/format-review-share.d.ts.map +1 -0
  297. package/dist/utils/format-review-share.js +16 -0
  298. package/dist/utils/format-review-share.js.map +1 -0
  299. package/dist/utils/index.d.ts +4 -0
  300. package/dist/utils/index.d.ts.map +1 -0
  301. package/dist/utils/index.js +4 -0
  302. package/dist/utils/index.js.map +1 -0
  303. package/dist/utils/tasks/utils.d.ts +4 -0
  304. package/dist/utils/tasks/utils.d.ts.map +1 -0
  305. package/dist/utils/tasks/utils.js +12 -0
  306. package/dist/utils/tasks/utils.js.map +1 -0
  307. package/dist/utils/utils.d.ts +25 -0
  308. package/dist/utils/utils.d.ts.map +1 -0
  309. package/dist/utils/utils.js +115 -0
  310. package/dist/utils/utils.js.map +1 -0
  311. package/package.json +128 -0
@@ -0,0 +1,861 @@
1
+ import type { TExpressionCreation, TExpressionUpdate, TPremiseCreation, TPremiseUpdate, TVariableCreation, TVariableUpdate } from "../../../schemas/api/argument/logic.js";
2
+ import { Type } from "typebox";
3
+ export declare function getLogicData(argumentId: string, argumentVersion: number, fetchFn?: typeof fetch, urlPrefix?: string): Promise<import("../../../schemas/common.js").ParsedError<Type.TObject<{
4
+ errorID: Type.TNumber;
5
+ errorMessage: Type.TString;
6
+ statusCode: Type.TNumber;
7
+ }>> | import("../../../schemas/common.js").ParsedSuccess<Type.TObject<{
8
+ argument: Type.TIntersect<[Type.TObject<{
9
+ createdOn: import("../../../schemas/common.js").TDateType;
10
+ creatorId: Type.TString;
11
+ title: Type.TString;
12
+ published: Type.TBoolean;
13
+ publishedOn: Type.TUnion<[import("../../../schemas/common.js").TDateType, Type.TNull]>;
14
+ forkId: Type.TUnion<[Type.TString, Type.TNull]>;
15
+ digest: Type.TString;
16
+ description: Type.TUnion<[Type.TString, Type.TNull]>;
17
+ id: Type.TString;
18
+ version: Type.TNumber;
19
+ titleContentHash: Type.TUnion<[Type.TString, Type.TNull]>;
20
+ popularity: Type.TNumber;
21
+ platform: Type.TUnion<[Type.TLiteral<"twitter">, Type.TLiteral<"reddit">, Type.TLiteral<"raw_text">, Type.TLiteral<"manual">]>;
22
+ platformData: Type.TUnion<[Type.TUnion<[Type.TObject<{
23
+ argumentTitle: Type.TString;
24
+ textContent: Type.TNull;
25
+ }>, Type.TObject<{
26
+ argumentTitle: Type.TOptional<Type.TString>;
27
+ textContent: Type.TString;
28
+ postUrl: Type.TString;
29
+ importMode: Type.TUnion<[Type.TLiteral<"self_author">, Type.TLiteral<"other_author">, Type.TLiteral<"copy_contents">]>;
30
+ embedResponse: Type.TOptional<Type.TObject<{
31
+ url: Type.TString;
32
+ authorUrl: Type.TString;
33
+ authorName: Type.TString;
34
+ html: Type.TString;
35
+ width: Type.TOptional<Type.TNumber>;
36
+ height: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
37
+ type: Type.TOptional<Type.TString>;
38
+ version: Type.TOptional<Type.TString>;
39
+ providerName: Type.TOptional<Type.TString>;
40
+ providerUrl: Type.TOptional<Type.TString>;
41
+ cacheAge: Type.TOptional<Type.TString>;
42
+ }>>;
43
+ username: Type.TOptional<Type.TString>;
44
+ }>, Type.TObject<{
45
+ argumentTitle: Type.TOptional<Type.TString>;
46
+ textContent: Type.TString;
47
+ postUrl: Type.TString;
48
+ username: Type.TOptional<Type.TString>;
49
+ }>, Type.TObject<{
50
+ argumentTitle: Type.TOptional<Type.TString>;
51
+ textContent: Type.TString;
52
+ }>]>, Type.TNull]>;
53
+ platformUsername: Type.TUnion<[Type.TString, Type.TNull]>;
54
+ }>, Type.TObject<{
55
+ checksum: Type.TOptional<Type.TString>;
56
+ descendantChecksum: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
57
+ combinedChecksum: Type.TOptional<Type.TString>;
58
+ }>]>;
59
+ variables: Type.TObject<{
60
+ variables: Type.TArray<Type.TUnion<[Type.TIntersect<[Type.TObject<{
61
+ symbol: Type.TString;
62
+ createdOn: import("../../../schemas/common.js").TDateType;
63
+ creatorId: Type.TString;
64
+ claimId: Type.TString;
65
+ claimVersion: Type.TNumber;
66
+ argumentId: Type.TString;
67
+ argumentVersion: Type.TNumber;
68
+ id: Type.TString;
69
+ }>, Type.TObject<{
70
+ checksum: Type.TOptional<Type.TString>;
71
+ descendantChecksum: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
72
+ combinedChecksum: Type.TOptional<Type.TString>;
73
+ }>]>, Type.TIntersect<[Type.TObject<{
74
+ symbol: Type.TString;
75
+ createdOn: import("../../../schemas/common.js").TDateType;
76
+ creatorId: Type.TString;
77
+ boundPremiseId: Type.TString;
78
+ boundArgumentId: Type.TString;
79
+ boundArgumentVersion: Type.TNumber;
80
+ argumentId: Type.TString;
81
+ argumentVersion: Type.TNumber;
82
+ id: Type.TString;
83
+ }>, Type.TObject<{
84
+ checksum: Type.TOptional<Type.TString>;
85
+ descendantChecksum: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
86
+ combinedChecksum: Type.TOptional<Type.TString>;
87
+ }>]>]>>;
88
+ config: Type.TOptional<Type.TUnknown>;
89
+ }>;
90
+ premises: Type.TArray<Type.TObject<{
91
+ premise: Type.TIntersect<[Type.TObject<{
92
+ createdOn: Type.TOptional<import("../../../schemas/common.js").TDateType>;
93
+ creatorId: Type.TOptional<Type.TString>;
94
+ argumentId: Type.TString;
95
+ argumentVersion: Type.TNumber;
96
+ role: Type.TUnion<[Type.TLiteral<"conclusion">, Type.TLiteral<"supporting">]>;
97
+ title: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
98
+ id: Type.TString;
99
+ }>, Type.TObject<{
100
+ checksum: Type.TOptional<Type.TString>;
101
+ descendantChecksum: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
102
+ combinedChecksum: Type.TOptional<Type.TString>;
103
+ }>]>;
104
+ rootExpressionId: Type.TOptional<Type.TString>;
105
+ expressions: Type.TObject<{
106
+ expressions: Type.TArray<Type.TUnion<[Type.TIntersect<[Type.TObject<{
107
+ id: Type.TString;
108
+ argumentId: Type.TString;
109
+ argumentVersion: Type.TNumber;
110
+ premiseId: Type.TString;
111
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
112
+ position: Type.TNumber;
113
+ checksum: Type.TString;
114
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
115
+ combinedChecksum: Type.TString;
116
+ type: Type.TLiteral<"variable">;
117
+ variableId: Type.TString;
118
+ }>, Type.TObject<{
119
+ createdOn: import("../../../schemas/common.js").TDateType;
120
+ creatorId: Type.TString;
121
+ }>, Type.TObject<{
122
+ operator: Type.TNull;
123
+ }>]>, Type.TIntersect<[Type.TObject<{
124
+ id: Type.TString;
125
+ argumentId: Type.TString;
126
+ argumentVersion: Type.TNumber;
127
+ premiseId: Type.TString;
128
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
129
+ position: Type.TNumber;
130
+ checksum: Type.TString;
131
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
132
+ combinedChecksum: Type.TString;
133
+ type: Type.TLiteral<"operator">;
134
+ operator: Type.TUnion<[Type.TLiteral<"not">, Type.TLiteral<"and">, Type.TLiteral<"or">, Type.TLiteral<"implies">, Type.TLiteral<"iff">]>;
135
+ }>, Type.TObject<{
136
+ createdOn: import("../../../schemas/common.js").TDateType;
137
+ creatorId: Type.TString;
138
+ }>, Type.TObject<{
139
+ variableId: Type.TNull;
140
+ }>]>, Type.TIntersect<[Type.TObject<{
141
+ id: Type.TString;
142
+ argumentId: Type.TString;
143
+ argumentVersion: Type.TNumber;
144
+ premiseId: Type.TString;
145
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
146
+ position: Type.TNumber;
147
+ checksum: Type.TString;
148
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
149
+ combinedChecksum: Type.TString;
150
+ type: Type.TLiteral<"formula">;
151
+ }>, Type.TObject<{
152
+ createdOn: import("../../../schemas/common.js").TDateType;
153
+ creatorId: Type.TString;
154
+ }>, Type.TObject<{
155
+ variableId: Type.TNull;
156
+ operator: Type.TNull;
157
+ }>]>]>>;
158
+ config: Type.TOptional<Type.TUnknown>;
159
+ }>;
160
+ config: Type.TOptional<Type.TUnknown>;
161
+ }>>;
162
+ conclusionPremiseId: Type.TOptional<Type.TString>;
163
+ sources: Type.TOptional<Type.TObject<{
164
+ variableSourceAssociations: Type.TArray<Type.TUnknown>;
165
+ expressionSourceAssociations: Type.TArray<Type.TUnknown>;
166
+ }>>;
167
+ config: Type.TOptional<Type.TUnknown>;
168
+ }>>>;
169
+ export declare function getPremises(argumentId: string, argumentVersion: number, fetchFn?: typeof fetch, urlPrefix?: string): Promise<import("../../../schemas/common.js").ParsedError<Type.TObject<{
170
+ errorID: Type.TNumber;
171
+ errorMessage: Type.TString;
172
+ statusCode: Type.TNumber;
173
+ }>> | import("../../../schemas/common.js").ParsedSuccess<Type.TArray<Type.TIntersect<[Type.TObject<{
174
+ id: Type.TString;
175
+ argumentId: Type.TString;
176
+ argumentVersion: Type.TNumber;
177
+ checksum: Type.TString;
178
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
179
+ combinedChecksum: Type.TString;
180
+ }>, Type.TObject<{
181
+ title: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
182
+ role: Type.TUnion<[Type.TLiteral<"conclusion">, Type.TLiteral<"supporting">]>;
183
+ createdOn: Type.TOptional<import("../../../schemas/common.js").TDateType>;
184
+ creatorId: Type.TOptional<Type.TString>;
185
+ }>]>>>>;
186
+ export declare function createPremise(argumentId: string, argumentVersion: number, data: TPremiseCreation, fetchFn?: typeof fetch, urlPrefix?: string): Promise<import("../../../schemas/common.js").ParsedError<Type.TObject<{
187
+ errorID: Type.TNumber;
188
+ errorMessage: Type.TString;
189
+ statusCode: Type.TNumber;
190
+ }>> | import("../../../schemas/common.js").ParsedSuccess<Type.TObject<{
191
+ premise: Type.TIntersect<[Type.TObject<{
192
+ id: Type.TString;
193
+ argumentId: Type.TString;
194
+ argumentVersion: Type.TNumber;
195
+ checksum: Type.TString;
196
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
197
+ combinedChecksum: Type.TString;
198
+ }>, Type.TObject<{
199
+ title: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
200
+ role: Type.TUnion<[Type.TLiteral<"conclusion">, Type.TLiteral<"supporting">]>;
201
+ createdOn: Type.TOptional<import("../../../schemas/common.js").TDateType>;
202
+ creatorId: Type.TOptional<Type.TString>;
203
+ }>]>;
204
+ variable: Type.TUnion<[Type.TUnion<[Type.TIntersect<[Type.TObject<{
205
+ claimId: Type.TString;
206
+ claimVersion: Type.TNumber;
207
+ id: Type.TString;
208
+ argumentId: Type.TString;
209
+ argumentVersion: Type.TNumber;
210
+ symbol: Type.TString;
211
+ checksum: Type.TString;
212
+ }>, Type.TObject<{
213
+ createdOn: import("../../../schemas/common.js").TDateType;
214
+ creatorId: Type.TString;
215
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
216
+ combinedChecksum: Type.TString;
217
+ }>]>, Type.TIntersect<[Type.TObject<{
218
+ boundPremiseId: Type.TString;
219
+ boundArgumentId: Type.TString;
220
+ boundArgumentVersion: Type.TNumber;
221
+ id: Type.TString;
222
+ argumentId: Type.TString;
223
+ argumentVersion: Type.TNumber;
224
+ symbol: Type.TString;
225
+ checksum: Type.TString;
226
+ }>, Type.TObject<{
227
+ createdOn: import("../../../schemas/common.js").TDateType;
228
+ creatorId: Type.TString;
229
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
230
+ combinedChecksum: Type.TString;
231
+ }>]>]>, Type.TNull]>;
232
+ }>>>;
233
+ export declare function updatePremise(argumentId: string, argumentVersion: number, premiseId: string, data: TPremiseUpdate, fetchFn?: typeof fetch, urlPrefix?: string): Promise<import("../../../schemas/common.js").ParsedError<Type.TObject<{
234
+ errorID: Type.TNumber;
235
+ errorMessage: Type.TString;
236
+ statusCode: Type.TNumber;
237
+ }>> | import("../../../schemas/common.js").ParsedSuccess<Type.TIntersect<[Type.TObject<{
238
+ id: Type.TString;
239
+ argumentId: Type.TString;
240
+ argumentVersion: Type.TNumber;
241
+ checksum: Type.TString;
242
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
243
+ combinedChecksum: Type.TString;
244
+ }>, Type.TObject<{
245
+ title: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
246
+ role: Type.TUnion<[Type.TLiteral<"conclusion">, Type.TLiteral<"supporting">]>;
247
+ createdOn: Type.TOptional<import("../../../schemas/common.js").TDateType>;
248
+ creatorId: Type.TOptional<Type.TString>;
249
+ }>]>>>;
250
+ export declare function deletePremise(argumentId: string, argumentVersion: number, premiseId: string, checksum: string, fetchFn?: typeof fetch, urlPrefix?: string): Promise<import("../../../schemas/common.js").ParsedError<Type.TObject<{
251
+ errorID: Type.TNumber;
252
+ errorMessage: Type.TString;
253
+ statusCode: Type.TNumber;
254
+ }>> | import("../../../schemas/common.js").ParsedSuccess<Type.TObject<{
255
+ deleted: Type.TBoolean;
256
+ }>>>;
257
+ export declare function getPremise(argumentId: string, argumentVersion: number, premiseId: string, fetchFn?: typeof fetch, urlPrefix?: string): Promise<import("../../../schemas/common.js").ParsedError<Type.TObject<{
258
+ errorID: Type.TNumber;
259
+ errorMessage: Type.TString;
260
+ statusCode: Type.TNumber;
261
+ }>> | import("../../../schemas/common.js").ParsedSuccess<Type.TIntersect<[Type.TObject<{
262
+ id: Type.TString;
263
+ argumentId: Type.TString;
264
+ argumentVersion: Type.TNumber;
265
+ checksum: Type.TString;
266
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
267
+ combinedChecksum: Type.TString;
268
+ }>, Type.TObject<{
269
+ title: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
270
+ role: Type.TUnion<[Type.TLiteral<"conclusion">, Type.TLiteral<"supporting">]>;
271
+ createdOn: Type.TOptional<import("../../../schemas/common.js").TDateType>;
272
+ creatorId: Type.TOptional<Type.TString>;
273
+ }>]>>>;
274
+ export declare function getExpressions(argumentId: string, argumentVersion: number, premiseId?: string, fetchFn?: typeof fetch, urlPrefix?: string): Promise<import("../../../schemas/common.js").ParsedError<Type.TObject<{
275
+ errorID: Type.TNumber;
276
+ errorMessage: Type.TString;
277
+ statusCode: Type.TNumber;
278
+ }>> | import("../../../schemas/common.js").ParsedSuccess<Type.TArray<Type.TUnion<[Type.TIntersect<[Type.TObject<{
279
+ id: Type.TString;
280
+ argumentId: Type.TString;
281
+ argumentVersion: Type.TNumber;
282
+ premiseId: Type.TString;
283
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
284
+ position: Type.TNumber;
285
+ checksum: Type.TString;
286
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
287
+ combinedChecksum: Type.TString;
288
+ type: Type.TLiteral<"variable">;
289
+ variableId: Type.TString;
290
+ }>, Type.TObject<{
291
+ createdOn: import("../../../schemas/common.js").TDateType;
292
+ creatorId: Type.TString;
293
+ }>, Type.TObject<{
294
+ operator: Type.TNull;
295
+ }>]>, Type.TIntersect<[Type.TObject<{
296
+ id: Type.TString;
297
+ argumentId: Type.TString;
298
+ argumentVersion: Type.TNumber;
299
+ premiseId: Type.TString;
300
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
301
+ position: Type.TNumber;
302
+ checksum: Type.TString;
303
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
304
+ combinedChecksum: Type.TString;
305
+ type: Type.TLiteral<"operator">;
306
+ operator: Type.TUnion<[Type.TLiteral<"not">, Type.TLiteral<"and">, Type.TLiteral<"or">, Type.TLiteral<"implies">, Type.TLiteral<"iff">]>;
307
+ }>, Type.TObject<{
308
+ createdOn: import("../../../schemas/common.js").TDateType;
309
+ creatorId: Type.TString;
310
+ }>, Type.TObject<{
311
+ variableId: Type.TNull;
312
+ }>]>, Type.TIntersect<[Type.TObject<{
313
+ id: Type.TString;
314
+ argumentId: Type.TString;
315
+ argumentVersion: Type.TNumber;
316
+ premiseId: Type.TString;
317
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
318
+ position: Type.TNumber;
319
+ checksum: Type.TString;
320
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
321
+ combinedChecksum: Type.TString;
322
+ type: Type.TLiteral<"formula">;
323
+ }>, Type.TObject<{
324
+ createdOn: import("../../../schemas/common.js").TDateType;
325
+ creatorId: Type.TString;
326
+ }>, Type.TObject<{
327
+ variableId: Type.TNull;
328
+ operator: Type.TNull;
329
+ }>]>]>>>>;
330
+ export declare function createExpression(argumentId: string, argumentVersion: number, data: TExpressionCreation, fetchFn?: typeof fetch, urlPrefix?: string): Promise<import("../../../schemas/common.js").ParsedError<Type.TObject<{
331
+ errorID: Type.TNumber;
332
+ errorMessage: Type.TString;
333
+ statusCode: Type.TNumber;
334
+ }>> | import("../../../schemas/common.js").ParsedSuccess<Type.TObject<{
335
+ created: Type.TUnion<[Type.TIntersect<[Type.TObject<{
336
+ id: Type.TString;
337
+ argumentId: Type.TString;
338
+ argumentVersion: Type.TNumber;
339
+ premiseId: Type.TString;
340
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
341
+ position: Type.TNumber;
342
+ checksum: Type.TString;
343
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
344
+ combinedChecksum: Type.TString;
345
+ type: Type.TLiteral<"variable">;
346
+ variableId: Type.TString;
347
+ }>, Type.TObject<{
348
+ createdOn: import("../../../schemas/common.js").TDateType;
349
+ creatorId: Type.TString;
350
+ }>, Type.TObject<{
351
+ operator: Type.TNull;
352
+ }>]>, Type.TIntersect<[Type.TObject<{
353
+ id: Type.TString;
354
+ argumentId: Type.TString;
355
+ argumentVersion: Type.TNumber;
356
+ premiseId: Type.TString;
357
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
358
+ position: Type.TNumber;
359
+ checksum: Type.TString;
360
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
361
+ combinedChecksum: Type.TString;
362
+ type: Type.TLiteral<"operator">;
363
+ operator: Type.TUnion<[Type.TLiteral<"not">, Type.TLiteral<"and">, Type.TLiteral<"or">, Type.TLiteral<"implies">, Type.TLiteral<"iff">]>;
364
+ }>, Type.TObject<{
365
+ createdOn: import("../../../schemas/common.js").TDateType;
366
+ creatorId: Type.TString;
367
+ }>, Type.TObject<{
368
+ variableId: Type.TNull;
369
+ }>]>, Type.TIntersect<[Type.TObject<{
370
+ id: Type.TString;
371
+ argumentId: Type.TString;
372
+ argumentVersion: Type.TNumber;
373
+ premiseId: Type.TString;
374
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
375
+ position: Type.TNumber;
376
+ checksum: Type.TString;
377
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
378
+ combinedChecksum: Type.TString;
379
+ type: Type.TLiteral<"formula">;
380
+ }>, Type.TObject<{
381
+ createdOn: import("../../../schemas/common.js").TDateType;
382
+ creatorId: Type.TString;
383
+ }>, Type.TObject<{
384
+ variableId: Type.TNull;
385
+ operator: Type.TNull;
386
+ }>]>]>;
387
+ shifted: Type.TArray<Type.TUnion<[Type.TIntersect<[Type.TObject<{
388
+ id: Type.TString;
389
+ argumentId: Type.TString;
390
+ argumentVersion: Type.TNumber;
391
+ premiseId: Type.TString;
392
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
393
+ position: Type.TNumber;
394
+ checksum: Type.TString;
395
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
396
+ combinedChecksum: Type.TString;
397
+ type: Type.TLiteral<"variable">;
398
+ variableId: Type.TString;
399
+ }>, Type.TObject<{
400
+ createdOn: import("../../../schemas/common.js").TDateType;
401
+ creatorId: Type.TString;
402
+ }>, Type.TObject<{
403
+ operator: Type.TNull;
404
+ }>]>, Type.TIntersect<[Type.TObject<{
405
+ id: Type.TString;
406
+ argumentId: Type.TString;
407
+ argumentVersion: Type.TNumber;
408
+ premiseId: Type.TString;
409
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
410
+ position: Type.TNumber;
411
+ checksum: Type.TString;
412
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
413
+ combinedChecksum: Type.TString;
414
+ type: Type.TLiteral<"operator">;
415
+ operator: Type.TUnion<[Type.TLiteral<"not">, Type.TLiteral<"and">, Type.TLiteral<"or">, Type.TLiteral<"implies">, Type.TLiteral<"iff">]>;
416
+ }>, Type.TObject<{
417
+ createdOn: import("../../../schemas/common.js").TDateType;
418
+ creatorId: Type.TString;
419
+ }>, Type.TObject<{
420
+ variableId: Type.TNull;
421
+ }>]>, Type.TIntersect<[Type.TObject<{
422
+ id: Type.TString;
423
+ argumentId: Type.TString;
424
+ argumentVersion: Type.TNumber;
425
+ premiseId: Type.TString;
426
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
427
+ position: Type.TNumber;
428
+ checksum: Type.TString;
429
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
430
+ combinedChecksum: Type.TString;
431
+ type: Type.TLiteral<"formula">;
432
+ }>, Type.TObject<{
433
+ createdOn: import("../../../schemas/common.js").TDateType;
434
+ creatorId: Type.TString;
435
+ }>, Type.TObject<{
436
+ variableId: Type.TNull;
437
+ operator: Type.TNull;
438
+ }>]>]>>;
439
+ }>>>;
440
+ export declare function updateExpression(argumentId: string, argumentVersion: number, expressionId: string, data: TExpressionUpdate, fetchFn?: typeof fetch, urlPrefix?: string): Promise<import("../../../schemas/common.js").ParsedError<Type.TObject<{
441
+ errorID: Type.TNumber;
442
+ errorMessage: Type.TString;
443
+ statusCode: Type.TNumber;
444
+ }>> | import("../../../schemas/common.js").ParsedSuccess<Type.TUnion<[Type.TIntersect<[Type.TObject<{
445
+ id: Type.TString;
446
+ argumentId: Type.TString;
447
+ argumentVersion: Type.TNumber;
448
+ premiseId: Type.TString;
449
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
450
+ position: Type.TNumber;
451
+ checksum: Type.TString;
452
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
453
+ combinedChecksum: Type.TString;
454
+ type: Type.TLiteral<"variable">;
455
+ variableId: Type.TString;
456
+ }>, Type.TObject<{
457
+ createdOn: import("../../../schemas/common.js").TDateType;
458
+ creatorId: Type.TString;
459
+ }>, Type.TObject<{
460
+ operator: Type.TNull;
461
+ }>]>, Type.TIntersect<[Type.TObject<{
462
+ id: Type.TString;
463
+ argumentId: Type.TString;
464
+ argumentVersion: Type.TNumber;
465
+ premiseId: Type.TString;
466
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
467
+ position: Type.TNumber;
468
+ checksum: Type.TString;
469
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
470
+ combinedChecksum: Type.TString;
471
+ type: Type.TLiteral<"operator">;
472
+ operator: Type.TUnion<[Type.TLiteral<"not">, Type.TLiteral<"and">, Type.TLiteral<"or">, Type.TLiteral<"implies">, Type.TLiteral<"iff">]>;
473
+ }>, Type.TObject<{
474
+ createdOn: import("../../../schemas/common.js").TDateType;
475
+ creatorId: Type.TString;
476
+ }>, Type.TObject<{
477
+ variableId: Type.TNull;
478
+ }>]>, Type.TIntersect<[Type.TObject<{
479
+ id: Type.TString;
480
+ argumentId: Type.TString;
481
+ argumentVersion: Type.TNumber;
482
+ premiseId: Type.TString;
483
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
484
+ position: Type.TNumber;
485
+ checksum: Type.TString;
486
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
487
+ combinedChecksum: Type.TString;
488
+ type: Type.TLiteral<"formula">;
489
+ }>, Type.TObject<{
490
+ createdOn: import("../../../schemas/common.js").TDateType;
491
+ creatorId: Type.TString;
492
+ }>, Type.TObject<{
493
+ variableId: Type.TNull;
494
+ operator: Type.TNull;
495
+ }>]>]>>>;
496
+ export declare function deleteExpression(argumentId: string, argumentVersion: number, expressionId: string, checksum: string, fetchFn?: typeof fetch, urlPrefix?: string): Promise<import("../../../schemas/common.js").ParsedError<Type.TObject<{
497
+ errorID: Type.TNumber;
498
+ errorMessage: Type.TString;
499
+ statusCode: Type.TNumber;
500
+ }>> | import("../../../schemas/common.js").ParsedSuccess<Type.TObject<{
501
+ deleted: Type.TBoolean;
502
+ }>>>;
503
+ export declare function getExpression(argumentId: string, argumentVersion: number, expressionId: string, fetchFn?: typeof fetch, urlPrefix?: string): Promise<import("../../../schemas/common.js").ParsedError<Type.TObject<{
504
+ errorID: Type.TNumber;
505
+ errorMessage: Type.TString;
506
+ statusCode: Type.TNumber;
507
+ }>> | import("../../../schemas/common.js").ParsedSuccess<Type.TUnion<[Type.TIntersect<[Type.TObject<{
508
+ id: Type.TString;
509
+ argumentId: Type.TString;
510
+ argumentVersion: Type.TNumber;
511
+ premiseId: Type.TString;
512
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
513
+ position: Type.TNumber;
514
+ checksum: Type.TString;
515
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
516
+ combinedChecksum: Type.TString;
517
+ type: Type.TLiteral<"variable">;
518
+ variableId: Type.TString;
519
+ }>, Type.TObject<{
520
+ createdOn: import("../../../schemas/common.js").TDateType;
521
+ creatorId: Type.TString;
522
+ }>, Type.TObject<{
523
+ operator: Type.TNull;
524
+ }>]>, Type.TIntersect<[Type.TObject<{
525
+ id: Type.TString;
526
+ argumentId: Type.TString;
527
+ argumentVersion: Type.TNumber;
528
+ premiseId: Type.TString;
529
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
530
+ position: Type.TNumber;
531
+ checksum: Type.TString;
532
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
533
+ combinedChecksum: Type.TString;
534
+ type: Type.TLiteral<"operator">;
535
+ operator: Type.TUnion<[Type.TLiteral<"not">, Type.TLiteral<"and">, Type.TLiteral<"or">, Type.TLiteral<"implies">, Type.TLiteral<"iff">]>;
536
+ }>, Type.TObject<{
537
+ createdOn: import("../../../schemas/common.js").TDateType;
538
+ creatorId: Type.TString;
539
+ }>, Type.TObject<{
540
+ variableId: Type.TNull;
541
+ }>]>, Type.TIntersect<[Type.TObject<{
542
+ id: Type.TString;
543
+ argumentId: Type.TString;
544
+ argumentVersion: Type.TNumber;
545
+ premiseId: Type.TString;
546
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
547
+ position: Type.TNumber;
548
+ checksum: Type.TString;
549
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
550
+ combinedChecksum: Type.TString;
551
+ type: Type.TLiteral<"formula">;
552
+ }>, Type.TObject<{
553
+ createdOn: import("../../../schemas/common.js").TDateType;
554
+ creatorId: Type.TString;
555
+ }>, Type.TObject<{
556
+ variableId: Type.TNull;
557
+ operator: Type.TNull;
558
+ }>]>]>>>;
559
+ export declare function toggleNegation(argumentId: string, argumentVersion: number, expressionId: string, fetchFn?: typeof fetch, urlPrefix?: string): Promise<import("../../../schemas/common.js").ParsedError<Type.TObject<{
560
+ errorID: Type.TNumber;
561
+ errorMessage: Type.TString;
562
+ statusCode: Type.TNumber;
563
+ }>> | import("../../../schemas/common.js").ParsedSuccess<Type.TObject<{
564
+ argument: Type.TIntersect<[Type.TObject<{
565
+ createdOn: import("../../../schemas/common.js").TDateType;
566
+ creatorId: Type.TString;
567
+ title: Type.TString;
568
+ published: Type.TBoolean;
569
+ publishedOn: Type.TUnion<[import("../../../schemas/common.js").TDateType, Type.TNull]>;
570
+ forkId: Type.TUnion<[Type.TString, Type.TNull]>;
571
+ digest: Type.TString;
572
+ description: Type.TUnion<[Type.TString, Type.TNull]>;
573
+ id: Type.TString;
574
+ version: Type.TNumber;
575
+ titleContentHash: Type.TUnion<[Type.TString, Type.TNull]>;
576
+ popularity: Type.TNumber;
577
+ platform: Type.TUnion<[Type.TLiteral<"twitter">, Type.TLiteral<"reddit">, Type.TLiteral<"raw_text">, Type.TLiteral<"manual">]>;
578
+ platformData: Type.TUnion<[Type.TUnion<[Type.TObject<{
579
+ argumentTitle: Type.TString;
580
+ textContent: Type.TNull;
581
+ }>, Type.TObject<{
582
+ argumentTitle: Type.TOptional<Type.TString>;
583
+ textContent: Type.TString;
584
+ postUrl: Type.TString;
585
+ importMode: Type.TUnion<[Type.TLiteral<"self_author">, Type.TLiteral<"other_author">, Type.TLiteral<"copy_contents">]>;
586
+ embedResponse: Type.TOptional<Type.TObject<{
587
+ url: Type.TString;
588
+ authorUrl: Type.TString;
589
+ authorName: Type.TString;
590
+ html: Type.TString;
591
+ width: Type.TOptional<Type.TNumber>;
592
+ height: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
593
+ type: Type.TOptional<Type.TString>;
594
+ version: Type.TOptional<Type.TString>;
595
+ providerName: Type.TOptional<Type.TString>;
596
+ providerUrl: Type.TOptional<Type.TString>;
597
+ cacheAge: Type.TOptional<Type.TString>;
598
+ }>>;
599
+ username: Type.TOptional<Type.TString>;
600
+ }>, Type.TObject<{
601
+ argumentTitle: Type.TOptional<Type.TString>;
602
+ textContent: Type.TString;
603
+ postUrl: Type.TString;
604
+ username: Type.TOptional<Type.TString>;
605
+ }>, Type.TObject<{
606
+ argumentTitle: Type.TOptional<Type.TString>;
607
+ textContent: Type.TString;
608
+ }>]>, Type.TNull]>;
609
+ platformUsername: Type.TUnion<[Type.TString, Type.TNull]>;
610
+ }>, Type.TObject<{
611
+ checksum: Type.TOptional<Type.TString>;
612
+ descendantChecksum: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
613
+ combinedChecksum: Type.TOptional<Type.TString>;
614
+ }>]>;
615
+ variables: Type.TObject<{
616
+ variables: Type.TArray<Type.TUnion<[Type.TIntersect<[Type.TObject<{
617
+ symbol: Type.TString;
618
+ createdOn: import("../../../schemas/common.js").TDateType;
619
+ creatorId: Type.TString;
620
+ claimId: Type.TString;
621
+ claimVersion: Type.TNumber;
622
+ argumentId: Type.TString;
623
+ argumentVersion: Type.TNumber;
624
+ id: Type.TString;
625
+ }>, Type.TObject<{
626
+ checksum: Type.TOptional<Type.TString>;
627
+ descendantChecksum: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
628
+ combinedChecksum: Type.TOptional<Type.TString>;
629
+ }>]>, Type.TIntersect<[Type.TObject<{
630
+ symbol: Type.TString;
631
+ createdOn: import("../../../schemas/common.js").TDateType;
632
+ creatorId: Type.TString;
633
+ boundPremiseId: Type.TString;
634
+ boundArgumentId: Type.TString;
635
+ boundArgumentVersion: Type.TNumber;
636
+ argumentId: Type.TString;
637
+ argumentVersion: Type.TNumber;
638
+ id: Type.TString;
639
+ }>, Type.TObject<{
640
+ checksum: Type.TOptional<Type.TString>;
641
+ descendantChecksum: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
642
+ combinedChecksum: Type.TOptional<Type.TString>;
643
+ }>]>]>>;
644
+ config: Type.TOptional<Type.TUnknown>;
645
+ }>;
646
+ premises: Type.TArray<Type.TObject<{
647
+ premise: Type.TIntersect<[Type.TObject<{
648
+ createdOn: Type.TOptional<import("../../../schemas/common.js").TDateType>;
649
+ creatorId: Type.TOptional<Type.TString>;
650
+ argumentId: Type.TString;
651
+ argumentVersion: Type.TNumber;
652
+ role: Type.TUnion<[Type.TLiteral<"conclusion">, Type.TLiteral<"supporting">]>;
653
+ title: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
654
+ id: Type.TString;
655
+ }>, Type.TObject<{
656
+ checksum: Type.TOptional<Type.TString>;
657
+ descendantChecksum: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
658
+ combinedChecksum: Type.TOptional<Type.TString>;
659
+ }>]>;
660
+ rootExpressionId: Type.TOptional<Type.TString>;
661
+ expressions: Type.TObject<{
662
+ expressions: Type.TArray<Type.TUnion<[Type.TIntersect<[Type.TObject<{
663
+ id: Type.TString;
664
+ argumentId: Type.TString;
665
+ argumentVersion: Type.TNumber;
666
+ premiseId: Type.TString;
667
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
668
+ position: Type.TNumber;
669
+ checksum: Type.TString;
670
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
671
+ combinedChecksum: Type.TString;
672
+ type: Type.TLiteral<"variable">;
673
+ variableId: Type.TString;
674
+ }>, Type.TObject<{
675
+ createdOn: import("../../../schemas/common.js").TDateType;
676
+ creatorId: Type.TString;
677
+ }>, Type.TObject<{
678
+ operator: Type.TNull;
679
+ }>]>, Type.TIntersect<[Type.TObject<{
680
+ id: Type.TString;
681
+ argumentId: Type.TString;
682
+ argumentVersion: Type.TNumber;
683
+ premiseId: Type.TString;
684
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
685
+ position: Type.TNumber;
686
+ checksum: Type.TString;
687
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
688
+ combinedChecksum: Type.TString;
689
+ type: Type.TLiteral<"operator">;
690
+ operator: Type.TUnion<[Type.TLiteral<"not">, Type.TLiteral<"and">, Type.TLiteral<"or">, Type.TLiteral<"implies">, Type.TLiteral<"iff">]>;
691
+ }>, Type.TObject<{
692
+ createdOn: import("../../../schemas/common.js").TDateType;
693
+ creatorId: Type.TString;
694
+ }>, Type.TObject<{
695
+ variableId: Type.TNull;
696
+ }>]>, Type.TIntersect<[Type.TObject<{
697
+ id: Type.TString;
698
+ argumentId: Type.TString;
699
+ argumentVersion: Type.TNumber;
700
+ premiseId: Type.TString;
701
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
702
+ position: Type.TNumber;
703
+ checksum: Type.TString;
704
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
705
+ combinedChecksum: Type.TString;
706
+ type: Type.TLiteral<"formula">;
707
+ }>, Type.TObject<{
708
+ createdOn: import("../../../schemas/common.js").TDateType;
709
+ creatorId: Type.TString;
710
+ }>, Type.TObject<{
711
+ variableId: Type.TNull;
712
+ operator: Type.TNull;
713
+ }>]>]>>;
714
+ config: Type.TOptional<Type.TUnknown>;
715
+ }>;
716
+ config: Type.TOptional<Type.TUnknown>;
717
+ }>>;
718
+ conclusionPremiseId: Type.TOptional<Type.TString>;
719
+ sources: Type.TOptional<Type.TObject<{
720
+ variableSourceAssociations: Type.TArray<Type.TUnknown>;
721
+ expressionSourceAssociations: Type.TArray<Type.TUnknown>;
722
+ }>>;
723
+ config: Type.TOptional<Type.TUnknown>;
724
+ }>>>;
725
+ export declare function getVariables(argumentId: string, argumentVersion: number, fetchFn?: typeof fetch, urlPrefix?: string): Promise<import("../../../schemas/common.js").ParsedError<Type.TObject<{
726
+ errorID: Type.TNumber;
727
+ errorMessage: Type.TString;
728
+ statusCode: Type.TNumber;
729
+ }>> | import("../../../schemas/common.js").ParsedSuccess<Type.TArray<Type.TUnion<[Type.TIntersect<[Type.TObject<{
730
+ claimId: Type.TString;
731
+ claimVersion: Type.TNumber;
732
+ id: Type.TString;
733
+ argumentId: Type.TString;
734
+ argumentVersion: Type.TNumber;
735
+ symbol: Type.TString;
736
+ checksum: Type.TString;
737
+ }>, Type.TObject<{
738
+ createdOn: import("../../../schemas/common.js").TDateType;
739
+ creatorId: Type.TString;
740
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
741
+ combinedChecksum: Type.TString;
742
+ }>]>, Type.TIntersect<[Type.TObject<{
743
+ boundPremiseId: Type.TString;
744
+ boundArgumentId: Type.TString;
745
+ boundArgumentVersion: Type.TNumber;
746
+ id: Type.TString;
747
+ argumentId: Type.TString;
748
+ argumentVersion: Type.TNumber;
749
+ symbol: Type.TString;
750
+ checksum: Type.TString;
751
+ }>, Type.TObject<{
752
+ createdOn: import("../../../schemas/common.js").TDateType;
753
+ creatorId: Type.TString;
754
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
755
+ combinedChecksum: Type.TString;
756
+ }>]>]>>>>;
757
+ export declare function createVariable(argumentId: string, argumentVersion: number, data: TVariableCreation, fetchFn?: typeof fetch, urlPrefix?: string): Promise<import("../../../schemas/common.js").ParsedError<Type.TObject<{
758
+ errorID: Type.TNumber;
759
+ errorMessage: Type.TString;
760
+ statusCode: Type.TNumber;
761
+ }>> | import("../../../schemas/common.js").ParsedSuccess<Type.TUnion<[Type.TIntersect<[Type.TObject<{
762
+ claimId: Type.TString;
763
+ claimVersion: Type.TNumber;
764
+ id: Type.TString;
765
+ argumentId: Type.TString;
766
+ argumentVersion: Type.TNumber;
767
+ symbol: Type.TString;
768
+ checksum: Type.TString;
769
+ }>, Type.TObject<{
770
+ createdOn: import("../../../schemas/common.js").TDateType;
771
+ creatorId: Type.TString;
772
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
773
+ combinedChecksum: Type.TString;
774
+ }>]>, Type.TIntersect<[Type.TObject<{
775
+ boundPremiseId: Type.TString;
776
+ boundArgumentId: Type.TString;
777
+ boundArgumentVersion: Type.TNumber;
778
+ id: Type.TString;
779
+ argumentId: Type.TString;
780
+ argumentVersion: Type.TNumber;
781
+ symbol: Type.TString;
782
+ checksum: Type.TString;
783
+ }>, Type.TObject<{
784
+ createdOn: import("../../../schemas/common.js").TDateType;
785
+ creatorId: Type.TString;
786
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
787
+ combinedChecksum: Type.TString;
788
+ }>]>]>>>;
789
+ export declare function updateVariable(argumentId: string, argumentVersion: number, variableId: string, data: TVariableUpdate, fetchFn?: typeof fetch, urlPrefix?: string): Promise<import("../../../schemas/common.js").ParsedError<Type.TObject<{
790
+ errorID: Type.TNumber;
791
+ errorMessage: Type.TString;
792
+ statusCode: Type.TNumber;
793
+ }>> | import("../../../schemas/common.js").ParsedSuccess<Type.TUnion<[Type.TIntersect<[Type.TObject<{
794
+ claimId: Type.TString;
795
+ claimVersion: Type.TNumber;
796
+ id: Type.TString;
797
+ argumentId: Type.TString;
798
+ argumentVersion: Type.TNumber;
799
+ symbol: Type.TString;
800
+ checksum: Type.TString;
801
+ }>, Type.TObject<{
802
+ createdOn: import("../../../schemas/common.js").TDateType;
803
+ creatorId: Type.TString;
804
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
805
+ combinedChecksum: Type.TString;
806
+ }>]>, Type.TIntersect<[Type.TObject<{
807
+ boundPremiseId: Type.TString;
808
+ boundArgumentId: Type.TString;
809
+ boundArgumentVersion: Type.TNumber;
810
+ id: Type.TString;
811
+ argumentId: Type.TString;
812
+ argumentVersion: Type.TNumber;
813
+ symbol: Type.TString;
814
+ checksum: Type.TString;
815
+ }>, Type.TObject<{
816
+ createdOn: import("../../../schemas/common.js").TDateType;
817
+ creatorId: Type.TString;
818
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
819
+ combinedChecksum: Type.TString;
820
+ }>]>]>>>;
821
+ export declare function deleteVariable(argumentId: string, argumentVersion: number, variableId: string, checksum: string, fetchFn?: typeof fetch, urlPrefix?: string): Promise<import("../../../schemas/common.js").ParsedError<Type.TObject<{
822
+ errorID: Type.TNumber;
823
+ errorMessage: Type.TString;
824
+ statusCode: Type.TNumber;
825
+ }>> | import("../../../schemas/common.js").ParsedSuccess<Type.TObject<{
826
+ deleted: Type.TBoolean;
827
+ }>>>;
828
+ export declare function getVariable(argumentId: string, argumentVersion: number, variableId: string, fetchFn?: typeof fetch, urlPrefix?: string): Promise<import("../../../schemas/common.js").ParsedError<Type.TObject<{
829
+ errorID: Type.TNumber;
830
+ errorMessage: Type.TString;
831
+ statusCode: Type.TNumber;
832
+ }>> | import("../../../schemas/common.js").ParsedSuccess<Type.TUnion<[Type.TIntersect<[Type.TObject<{
833
+ claimId: Type.TString;
834
+ claimVersion: Type.TNumber;
835
+ id: Type.TString;
836
+ argumentId: Type.TString;
837
+ argumentVersion: Type.TNumber;
838
+ symbol: Type.TString;
839
+ checksum: Type.TString;
840
+ }>, Type.TObject<{
841
+ createdOn: import("../../../schemas/common.js").TDateType;
842
+ creatorId: Type.TString;
843
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
844
+ combinedChecksum: Type.TString;
845
+ }>]>, Type.TIntersect<[Type.TObject<{
846
+ boundPremiseId: Type.TString;
847
+ boundArgumentId: Type.TString;
848
+ boundArgumentVersion: Type.TNumber;
849
+ id: Type.TString;
850
+ argumentId: Type.TString;
851
+ argumentVersion: Type.TNumber;
852
+ symbol: Type.TString;
853
+ checksum: Type.TString;
854
+ }>, Type.TObject<{
855
+ createdOn: import("../../../schemas/common.js").TDateType;
856
+ creatorId: Type.TString;
857
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
858
+ combinedChecksum: Type.TString;
859
+ }>]>]>>>;
860
+ export { repairArgument } from "./repair.js";
861
+ //# sourceMappingURL=index.d.ts.map