@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,1344 @@
1
+ import { type TUpdateArgumentRequest, type TCreateArgument } from "../../schemas/api/argument/index.js";
2
+ import { Type } from "typebox";
3
+ export declare function getArgument(argumentId: string, version: 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.TIntersect<[Type.TObject<{
8
+ id: Type.TString;
9
+ version: Type.TNumber;
10
+ checksum: Type.TString;
11
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
12
+ combinedChecksum: Type.TString;
13
+ }>, Type.TObject<{
14
+ title: Type.TString;
15
+ published: Type.TBoolean;
16
+ creatorId: Type.TString;
17
+ createdOn: import("../../schemas/common.js").TDateType;
18
+ publishedOn: Type.TUnion<[import("../../schemas/common.js").TDateType, Type.TNull]>;
19
+ forkId: Type.TUnion<[Type.TString, Type.TNull]>;
20
+ digest: Type.TString;
21
+ popularity: Type.TNumber;
22
+ platform: Type.TUnion<[Type.TLiteral<"twitter">, Type.TLiteral<"reddit">, Type.TLiteral<"raw_text">, Type.TLiteral<"manual">]>;
23
+ platformData: Type.TUnion<[Type.TUnion<[Type.TObject<{
24
+ argumentTitle: Type.TString;
25
+ textContent: Type.TNull;
26
+ }>, Type.TObject<{
27
+ argumentTitle: Type.TOptional<Type.TString>;
28
+ textContent: Type.TString;
29
+ postUrl: Type.TString;
30
+ importMode: Type.TUnion<[Type.TLiteral<"self_author">, Type.TLiteral<"other_author">, Type.TLiteral<"copy_contents">]>;
31
+ embedResponse: Type.TOptional<Type.TObject<{
32
+ url: Type.TString;
33
+ authorUrl: Type.TString;
34
+ authorName: Type.TString;
35
+ html: Type.TString;
36
+ width: Type.TOptional<Type.TNumber>;
37
+ height: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
38
+ type: Type.TOptional<Type.TString>;
39
+ version: Type.TOptional<Type.TString>;
40
+ providerName: Type.TOptional<Type.TString>;
41
+ providerUrl: Type.TOptional<Type.TString>;
42
+ cacheAge: Type.TOptional<Type.TString>;
43
+ }>>;
44
+ username: Type.TOptional<Type.TString>;
45
+ }>, Type.TObject<{
46
+ argumentTitle: Type.TOptional<Type.TString>;
47
+ textContent: Type.TString;
48
+ postUrl: Type.TString;
49
+ username: Type.TOptional<Type.TString>;
50
+ }>, Type.TObject<{
51
+ argumentTitle: Type.TOptional<Type.TString>;
52
+ textContent: Type.TString;
53
+ }>]>, Type.TNull]>;
54
+ platformUsername: Type.TUnion<[Type.TString, Type.TNull]>;
55
+ titleContentHash: Type.TUnion<[Type.TString, Type.TNull]>;
56
+ description: Type.TUnion<[Type.TString, Type.TNull]>;
57
+ }>]>>>;
58
+ export declare function publishArgument(argumentId: string, version: number, fetchFn?: typeof fetch, urlPrefix?: string): Promise<import("../../schemas/common.js").ParsedError<Type.TObject<{
59
+ errorID: Type.TNumber;
60
+ errorMessage: Type.TString;
61
+ statusCode: Type.TNumber;
62
+ }>> | import("../../schemas/common.js").ParsedSuccess<Type.TObject<{
63
+ published: Type.TIntersect<[Type.TObject<{
64
+ id: Type.TString;
65
+ version: Type.TNumber;
66
+ checksum: Type.TString;
67
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
68
+ combinedChecksum: Type.TString;
69
+ }>, Type.TObject<{
70
+ title: Type.TString;
71
+ published: Type.TBoolean;
72
+ creatorId: Type.TString;
73
+ createdOn: import("../../schemas/common.js").TDateType;
74
+ publishedOn: Type.TUnion<[import("../../schemas/common.js").TDateType, Type.TNull]>;
75
+ forkId: Type.TUnion<[Type.TString, Type.TNull]>;
76
+ digest: Type.TString;
77
+ popularity: Type.TNumber;
78
+ platform: Type.TUnion<[Type.TLiteral<"twitter">, Type.TLiteral<"reddit">, Type.TLiteral<"raw_text">, Type.TLiteral<"manual">]>;
79
+ platformData: Type.TUnion<[Type.TUnion<[Type.TObject<{
80
+ argumentTitle: Type.TString;
81
+ textContent: Type.TNull;
82
+ }>, Type.TObject<{
83
+ argumentTitle: Type.TOptional<Type.TString>;
84
+ textContent: Type.TString;
85
+ postUrl: Type.TString;
86
+ importMode: Type.TUnion<[Type.TLiteral<"self_author">, Type.TLiteral<"other_author">, Type.TLiteral<"copy_contents">]>;
87
+ embedResponse: Type.TOptional<Type.TObject<{
88
+ url: Type.TString;
89
+ authorUrl: Type.TString;
90
+ authorName: Type.TString;
91
+ html: Type.TString;
92
+ width: Type.TOptional<Type.TNumber>;
93
+ height: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
94
+ type: Type.TOptional<Type.TString>;
95
+ version: Type.TOptional<Type.TString>;
96
+ providerName: Type.TOptional<Type.TString>;
97
+ providerUrl: Type.TOptional<Type.TString>;
98
+ cacheAge: Type.TOptional<Type.TString>;
99
+ }>>;
100
+ username: Type.TOptional<Type.TString>;
101
+ }>, Type.TObject<{
102
+ argumentTitle: Type.TOptional<Type.TString>;
103
+ textContent: Type.TString;
104
+ postUrl: Type.TString;
105
+ username: Type.TOptional<Type.TString>;
106
+ }>, Type.TObject<{
107
+ argumentTitle: Type.TOptional<Type.TString>;
108
+ textContent: Type.TString;
109
+ }>]>, Type.TNull]>;
110
+ platformUsername: Type.TUnion<[Type.TString, Type.TNull]>;
111
+ titleContentHash: Type.TUnion<[Type.TString, Type.TNull]>;
112
+ description: Type.TUnion<[Type.TString, Type.TNull]>;
113
+ }>]>;
114
+ draft: Type.TIntersect<[Type.TObject<{
115
+ id: Type.TString;
116
+ version: Type.TNumber;
117
+ checksum: Type.TString;
118
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
119
+ combinedChecksum: Type.TString;
120
+ }>, Type.TObject<{
121
+ title: Type.TString;
122
+ published: Type.TBoolean;
123
+ creatorId: Type.TString;
124
+ createdOn: import("../../schemas/common.js").TDateType;
125
+ publishedOn: Type.TUnion<[import("../../schemas/common.js").TDateType, Type.TNull]>;
126
+ forkId: Type.TUnion<[Type.TString, Type.TNull]>;
127
+ digest: Type.TString;
128
+ popularity: Type.TNumber;
129
+ platform: Type.TUnion<[Type.TLiteral<"twitter">, Type.TLiteral<"reddit">, Type.TLiteral<"raw_text">, Type.TLiteral<"manual">]>;
130
+ platformData: Type.TUnion<[Type.TUnion<[Type.TObject<{
131
+ argumentTitle: Type.TString;
132
+ textContent: Type.TNull;
133
+ }>, Type.TObject<{
134
+ argumentTitle: Type.TOptional<Type.TString>;
135
+ textContent: Type.TString;
136
+ postUrl: Type.TString;
137
+ importMode: Type.TUnion<[Type.TLiteral<"self_author">, Type.TLiteral<"other_author">, Type.TLiteral<"copy_contents">]>;
138
+ embedResponse: Type.TOptional<Type.TObject<{
139
+ url: Type.TString;
140
+ authorUrl: Type.TString;
141
+ authorName: Type.TString;
142
+ html: Type.TString;
143
+ width: Type.TOptional<Type.TNumber>;
144
+ height: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
145
+ type: Type.TOptional<Type.TString>;
146
+ version: Type.TOptional<Type.TString>;
147
+ providerName: Type.TOptional<Type.TString>;
148
+ providerUrl: Type.TOptional<Type.TString>;
149
+ cacheAge: Type.TOptional<Type.TString>;
150
+ }>>;
151
+ username: Type.TOptional<Type.TString>;
152
+ }>, Type.TObject<{
153
+ argumentTitle: Type.TOptional<Type.TString>;
154
+ textContent: Type.TString;
155
+ postUrl: Type.TString;
156
+ username: Type.TOptional<Type.TString>;
157
+ }>, Type.TObject<{
158
+ argumentTitle: Type.TOptional<Type.TString>;
159
+ textContent: Type.TString;
160
+ }>]>, Type.TNull]>;
161
+ platformUsername: Type.TUnion<[Type.TString, Type.TNull]>;
162
+ titleContentHash: Type.TUnion<[Type.TString, Type.TNull]>;
163
+ description: Type.TUnion<[Type.TString, Type.TNull]>;
164
+ }>]>;
165
+ }>>>;
166
+ export declare function resetArgument(argumentId: string, version: number, fetchFn?: typeof fetch, urlPrefix?: string): Promise<import("../../schemas/common.js").ParsedError<Type.TObject<{
167
+ errorID: Type.TNumber;
168
+ errorMessage: Type.TString;
169
+ statusCode: Type.TNumber;
170
+ }>> | import("../../schemas/common.js").ParsedSuccess<Type.TIntersect<[Type.TObject<{
171
+ id: Type.TString;
172
+ version: Type.TNumber;
173
+ checksum: Type.TString;
174
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
175
+ combinedChecksum: Type.TString;
176
+ }>, Type.TObject<{
177
+ title: Type.TString;
178
+ published: Type.TBoolean;
179
+ creatorId: Type.TString;
180
+ createdOn: import("../../schemas/common.js").TDateType;
181
+ publishedOn: Type.TUnion<[import("../../schemas/common.js").TDateType, Type.TNull]>;
182
+ forkId: Type.TUnion<[Type.TString, Type.TNull]>;
183
+ digest: Type.TString;
184
+ popularity: Type.TNumber;
185
+ platform: Type.TUnion<[Type.TLiteral<"twitter">, Type.TLiteral<"reddit">, Type.TLiteral<"raw_text">, Type.TLiteral<"manual">]>;
186
+ platformData: Type.TUnion<[Type.TUnion<[Type.TObject<{
187
+ argumentTitle: Type.TString;
188
+ textContent: Type.TNull;
189
+ }>, Type.TObject<{
190
+ argumentTitle: Type.TOptional<Type.TString>;
191
+ textContent: Type.TString;
192
+ postUrl: Type.TString;
193
+ importMode: Type.TUnion<[Type.TLiteral<"self_author">, Type.TLiteral<"other_author">, Type.TLiteral<"copy_contents">]>;
194
+ embedResponse: Type.TOptional<Type.TObject<{
195
+ url: Type.TString;
196
+ authorUrl: Type.TString;
197
+ authorName: Type.TString;
198
+ html: Type.TString;
199
+ width: Type.TOptional<Type.TNumber>;
200
+ height: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
201
+ type: Type.TOptional<Type.TString>;
202
+ version: Type.TOptional<Type.TString>;
203
+ providerName: Type.TOptional<Type.TString>;
204
+ providerUrl: Type.TOptional<Type.TString>;
205
+ cacheAge: Type.TOptional<Type.TString>;
206
+ }>>;
207
+ username: Type.TOptional<Type.TString>;
208
+ }>, Type.TObject<{
209
+ argumentTitle: Type.TOptional<Type.TString>;
210
+ textContent: Type.TString;
211
+ postUrl: Type.TString;
212
+ username: Type.TOptional<Type.TString>;
213
+ }>, Type.TObject<{
214
+ argumentTitle: Type.TOptional<Type.TString>;
215
+ textContent: Type.TString;
216
+ }>]>, Type.TNull]>;
217
+ platformUsername: Type.TUnion<[Type.TString, Type.TNull]>;
218
+ titleContentHash: Type.TUnion<[Type.TString, Type.TNull]>;
219
+ description: Type.TUnion<[Type.TString, Type.TNull]>;
220
+ }>]>>>;
221
+ export declare function forkArgument(argumentId: string, version: number, fetchFn?: typeof fetch, urlPrefix?: string): Promise<import("../../schemas/common.js").ParsedError<Type.TObject<{
222
+ errorID: Type.TNumber;
223
+ errorMessage: Type.TString;
224
+ statusCode: Type.TNumber;
225
+ }>> | import("../../schemas/common.js").ParsedSuccess<Type.TIntersect<[Type.TObject<{
226
+ id: Type.TString;
227
+ version: Type.TNumber;
228
+ checksum: Type.TString;
229
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
230
+ combinedChecksum: Type.TString;
231
+ }>, Type.TObject<{
232
+ title: Type.TString;
233
+ published: Type.TBoolean;
234
+ creatorId: Type.TString;
235
+ createdOn: import("../../schemas/common.js").TDateType;
236
+ publishedOn: Type.TUnion<[import("../../schemas/common.js").TDateType, Type.TNull]>;
237
+ forkId: Type.TUnion<[Type.TString, Type.TNull]>;
238
+ digest: Type.TString;
239
+ popularity: Type.TNumber;
240
+ platform: Type.TUnion<[Type.TLiteral<"twitter">, Type.TLiteral<"reddit">, Type.TLiteral<"raw_text">, Type.TLiteral<"manual">]>;
241
+ platformData: Type.TUnion<[Type.TUnion<[Type.TObject<{
242
+ argumentTitle: Type.TString;
243
+ textContent: Type.TNull;
244
+ }>, Type.TObject<{
245
+ argumentTitle: Type.TOptional<Type.TString>;
246
+ textContent: Type.TString;
247
+ postUrl: Type.TString;
248
+ importMode: Type.TUnion<[Type.TLiteral<"self_author">, Type.TLiteral<"other_author">, Type.TLiteral<"copy_contents">]>;
249
+ embedResponse: Type.TOptional<Type.TObject<{
250
+ url: Type.TString;
251
+ authorUrl: Type.TString;
252
+ authorName: Type.TString;
253
+ html: Type.TString;
254
+ width: Type.TOptional<Type.TNumber>;
255
+ height: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
256
+ type: Type.TOptional<Type.TString>;
257
+ version: Type.TOptional<Type.TString>;
258
+ providerName: Type.TOptional<Type.TString>;
259
+ providerUrl: Type.TOptional<Type.TString>;
260
+ cacheAge: Type.TOptional<Type.TString>;
261
+ }>>;
262
+ username: Type.TOptional<Type.TString>;
263
+ }>, Type.TObject<{
264
+ argumentTitle: Type.TOptional<Type.TString>;
265
+ textContent: Type.TString;
266
+ postUrl: Type.TString;
267
+ username: Type.TOptional<Type.TString>;
268
+ }>, Type.TObject<{
269
+ argumentTitle: Type.TOptional<Type.TString>;
270
+ textContent: Type.TString;
271
+ }>]>, Type.TNull]>;
272
+ platformUsername: Type.TUnion<[Type.TString, Type.TNull]>;
273
+ titleContentHash: Type.TUnion<[Type.TString, Type.TNull]>;
274
+ description: Type.TUnion<[Type.TString, Type.TNull]>;
275
+ }>]>>>;
276
+ export declare function getArgumentDiff(argumentId: string, version: number, otherArgId: string, otherArgVersion: number, fetchFn?: typeof fetch, urlPrefix?: string): Promise<import("../../schemas/common.js").ParsedError<Type.TObject<{
277
+ errorID: Type.TNumber;
278
+ errorMessage: Type.TString;
279
+ statusCode: Type.TNumber;
280
+ }>> | import("../../schemas/common.js").ParsedSuccess<Type.TObject<{
281
+ claims: Type.TObject<{
282
+ added: Type.TArray<Type.TObject<{
283
+ title: Type.TString;
284
+ body: Type.TString;
285
+ digest: Type.TString;
286
+ id: Type.TString;
287
+ argumentId: Type.TString;
288
+ version: Type.TNumber;
289
+ claimForkId: Type.TUnion<[Type.TString, Type.TNull]>;
290
+ creatorId: Type.TString;
291
+ createdOn: import("../../schemas/common.js").TDateType;
292
+ type: Type.TUnion<[Type.TUnion<[Type.TLiteral<"definition">, Type.TLiteral<"criterion">]>, Type.TUnion<[Type.TLiteral<"conclusion">, Type.TLiteral<"claim">]>]>;
293
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
294
+ titleContentHash: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
295
+ }>>;
296
+ removed: Type.TArray<Type.TObject<{
297
+ title: Type.TString;
298
+ body: Type.TString;
299
+ digest: Type.TString;
300
+ id: Type.TString;
301
+ argumentId: Type.TString;
302
+ version: Type.TNumber;
303
+ claimForkId: Type.TUnion<[Type.TString, Type.TNull]>;
304
+ creatorId: Type.TString;
305
+ createdOn: import("../../schemas/common.js").TDateType;
306
+ type: Type.TUnion<[Type.TUnion<[Type.TLiteral<"definition">, Type.TLiteral<"criterion">]>, Type.TUnion<[Type.TLiteral<"conclusion">, Type.TLiteral<"claim">]>]>;
307
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
308
+ titleContentHash: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
309
+ }>>;
310
+ updated: Type.TArray<Type.TObject<{
311
+ title: Type.TString;
312
+ body: Type.TString;
313
+ digest: Type.TString;
314
+ id: Type.TString;
315
+ argumentId: Type.TString;
316
+ version: Type.TNumber;
317
+ claimForkId: Type.TUnion<[Type.TString, Type.TNull]>;
318
+ creatorId: Type.TString;
319
+ createdOn: import("../../schemas/common.js").TDateType;
320
+ type: Type.TUnion<[Type.TUnion<[Type.TLiteral<"definition">, Type.TLiteral<"criterion">]>, Type.TUnion<[Type.TLiteral<"conclusion">, Type.TLiteral<"claim">]>]>;
321
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
322
+ titleContentHash: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
323
+ }>>;
324
+ }>;
325
+ propositionalLogic: Type.TObject<{
326
+ variables: Type.TObject<{
327
+ added: Type.TArray<Type.TUnion<[Type.TIntersect<[Type.TObject<{
328
+ claimId: Type.TString;
329
+ claimVersion: Type.TNumber;
330
+ id: Type.TString;
331
+ argumentId: Type.TString;
332
+ argumentVersion: Type.TNumber;
333
+ symbol: Type.TString;
334
+ checksum: Type.TString;
335
+ }>, Type.TObject<{
336
+ createdOn: import("../../schemas/common.js").TDateType;
337
+ creatorId: Type.TString;
338
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
339
+ combinedChecksum: Type.TString;
340
+ }>]>, Type.TIntersect<[Type.TObject<{
341
+ boundPremiseId: Type.TString;
342
+ boundArgumentId: Type.TString;
343
+ boundArgumentVersion: Type.TNumber;
344
+ id: Type.TString;
345
+ argumentId: Type.TString;
346
+ argumentVersion: Type.TNumber;
347
+ symbol: Type.TString;
348
+ checksum: Type.TString;
349
+ }>, Type.TObject<{
350
+ createdOn: import("../../schemas/common.js").TDateType;
351
+ creatorId: Type.TString;
352
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
353
+ combinedChecksum: Type.TString;
354
+ }>]>]>>;
355
+ removed: Type.TArray<Type.TUnion<[Type.TIntersect<[Type.TObject<{
356
+ claimId: Type.TString;
357
+ claimVersion: Type.TNumber;
358
+ id: Type.TString;
359
+ argumentId: Type.TString;
360
+ argumentVersion: Type.TNumber;
361
+ symbol: Type.TString;
362
+ checksum: Type.TString;
363
+ }>, Type.TObject<{
364
+ createdOn: import("../../schemas/common.js").TDateType;
365
+ creatorId: Type.TString;
366
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
367
+ combinedChecksum: Type.TString;
368
+ }>]>, Type.TIntersect<[Type.TObject<{
369
+ boundPremiseId: Type.TString;
370
+ boundArgumentId: Type.TString;
371
+ boundArgumentVersion: Type.TNumber;
372
+ id: Type.TString;
373
+ argumentId: Type.TString;
374
+ argumentVersion: Type.TNumber;
375
+ symbol: Type.TString;
376
+ checksum: Type.TString;
377
+ }>, Type.TObject<{
378
+ createdOn: import("../../schemas/common.js").TDateType;
379
+ creatorId: Type.TString;
380
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
381
+ combinedChecksum: Type.TString;
382
+ }>]>]>>;
383
+ updated: Type.TArray<Type.TUnion<[Type.TIntersect<[Type.TObject<{
384
+ claimId: Type.TString;
385
+ claimVersion: Type.TNumber;
386
+ id: Type.TString;
387
+ argumentId: Type.TString;
388
+ argumentVersion: Type.TNumber;
389
+ symbol: Type.TString;
390
+ checksum: Type.TString;
391
+ }>, Type.TObject<{
392
+ createdOn: import("../../schemas/common.js").TDateType;
393
+ creatorId: Type.TString;
394
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
395
+ combinedChecksum: Type.TString;
396
+ }>]>, Type.TIntersect<[Type.TObject<{
397
+ boundPremiseId: Type.TString;
398
+ boundArgumentId: Type.TString;
399
+ boundArgumentVersion: Type.TNumber;
400
+ id: Type.TString;
401
+ argumentId: Type.TString;
402
+ argumentVersion: Type.TNumber;
403
+ symbol: Type.TString;
404
+ checksum: Type.TString;
405
+ }>, Type.TObject<{
406
+ createdOn: import("../../schemas/common.js").TDateType;
407
+ creatorId: Type.TString;
408
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
409
+ combinedChecksum: Type.TString;
410
+ }>]>]>>;
411
+ }>;
412
+ expressions: Type.TObject<{
413
+ added: Type.TArray<Type.TUnion<[Type.TIntersect<[Type.TObject<{
414
+ id: Type.TString;
415
+ argumentId: Type.TString;
416
+ argumentVersion: Type.TNumber;
417
+ premiseId: Type.TString;
418
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
419
+ position: Type.TNumber;
420
+ checksum: Type.TString;
421
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
422
+ combinedChecksum: Type.TString;
423
+ type: Type.TLiteral<"variable">;
424
+ variableId: Type.TString;
425
+ }>, Type.TObject<{
426
+ createdOn: import("../../schemas/common.js").TDateType;
427
+ creatorId: Type.TString;
428
+ }>, Type.TObject<{
429
+ operator: Type.TNull;
430
+ }>]>, Type.TIntersect<[Type.TObject<{
431
+ id: Type.TString;
432
+ argumentId: Type.TString;
433
+ argumentVersion: Type.TNumber;
434
+ premiseId: Type.TString;
435
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
436
+ position: Type.TNumber;
437
+ checksum: Type.TString;
438
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
439
+ combinedChecksum: Type.TString;
440
+ type: Type.TLiteral<"operator">;
441
+ operator: Type.TUnion<[Type.TLiteral<"not">, Type.TLiteral<"and">, Type.TLiteral<"or">, Type.TLiteral<"implies">, Type.TLiteral<"iff">]>;
442
+ }>, Type.TObject<{
443
+ createdOn: import("../../schemas/common.js").TDateType;
444
+ creatorId: Type.TString;
445
+ }>, Type.TObject<{
446
+ variableId: Type.TNull;
447
+ }>]>, Type.TIntersect<[Type.TObject<{
448
+ id: Type.TString;
449
+ argumentId: Type.TString;
450
+ argumentVersion: Type.TNumber;
451
+ premiseId: Type.TString;
452
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
453
+ position: Type.TNumber;
454
+ checksum: Type.TString;
455
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
456
+ combinedChecksum: Type.TString;
457
+ type: Type.TLiteral<"formula">;
458
+ }>, Type.TObject<{
459
+ createdOn: import("../../schemas/common.js").TDateType;
460
+ creatorId: Type.TString;
461
+ }>, Type.TObject<{
462
+ variableId: Type.TNull;
463
+ operator: Type.TNull;
464
+ }>]>]>>;
465
+ removed: Type.TArray<Type.TUnion<[Type.TIntersect<[Type.TObject<{
466
+ id: Type.TString;
467
+ argumentId: Type.TString;
468
+ argumentVersion: Type.TNumber;
469
+ premiseId: Type.TString;
470
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
471
+ position: Type.TNumber;
472
+ checksum: Type.TString;
473
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
474
+ combinedChecksum: Type.TString;
475
+ type: Type.TLiteral<"variable">;
476
+ variableId: Type.TString;
477
+ }>, Type.TObject<{
478
+ createdOn: import("../../schemas/common.js").TDateType;
479
+ creatorId: Type.TString;
480
+ }>, Type.TObject<{
481
+ operator: Type.TNull;
482
+ }>]>, Type.TIntersect<[Type.TObject<{
483
+ id: Type.TString;
484
+ argumentId: Type.TString;
485
+ argumentVersion: Type.TNumber;
486
+ premiseId: Type.TString;
487
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
488
+ position: Type.TNumber;
489
+ checksum: Type.TString;
490
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
491
+ combinedChecksum: Type.TString;
492
+ type: Type.TLiteral<"operator">;
493
+ operator: Type.TUnion<[Type.TLiteral<"not">, Type.TLiteral<"and">, Type.TLiteral<"or">, Type.TLiteral<"implies">, Type.TLiteral<"iff">]>;
494
+ }>, Type.TObject<{
495
+ createdOn: import("../../schemas/common.js").TDateType;
496
+ creatorId: Type.TString;
497
+ }>, Type.TObject<{
498
+ variableId: Type.TNull;
499
+ }>]>, Type.TIntersect<[Type.TObject<{
500
+ id: Type.TString;
501
+ argumentId: Type.TString;
502
+ argumentVersion: Type.TNumber;
503
+ premiseId: Type.TString;
504
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
505
+ position: Type.TNumber;
506
+ checksum: Type.TString;
507
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
508
+ combinedChecksum: Type.TString;
509
+ type: Type.TLiteral<"formula">;
510
+ }>, Type.TObject<{
511
+ createdOn: import("../../schemas/common.js").TDateType;
512
+ creatorId: Type.TString;
513
+ }>, Type.TObject<{
514
+ variableId: Type.TNull;
515
+ operator: Type.TNull;
516
+ }>]>]>>;
517
+ }>;
518
+ premises: Type.TObject<{
519
+ added: Type.TArray<Type.TIntersect<[Type.TObject<{
520
+ id: Type.TString;
521
+ argumentId: Type.TString;
522
+ argumentVersion: Type.TNumber;
523
+ checksum: Type.TString;
524
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
525
+ combinedChecksum: Type.TString;
526
+ }>, Type.TObject<{
527
+ title: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
528
+ role: Type.TUnion<[Type.TLiteral<"conclusion">, Type.TLiteral<"supporting">]>;
529
+ createdOn: Type.TOptional<import("../../schemas/common.js").TDateType>;
530
+ creatorId: Type.TOptional<Type.TString>;
531
+ }>]>>;
532
+ removed: Type.TArray<Type.TIntersect<[Type.TObject<{
533
+ id: Type.TString;
534
+ argumentId: Type.TString;
535
+ argumentVersion: Type.TNumber;
536
+ checksum: Type.TString;
537
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
538
+ combinedChecksum: Type.TString;
539
+ }>, Type.TObject<{
540
+ title: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
541
+ role: Type.TUnion<[Type.TLiteral<"conclusion">, Type.TLiteral<"supporting">]>;
542
+ createdOn: Type.TOptional<import("../../schemas/common.js").TDateType>;
543
+ creatorId: Type.TOptional<Type.TString>;
544
+ }>]>>;
545
+ }>;
546
+ }>;
547
+ claimSources: Type.TObject<{
548
+ added: Type.TArray<Type.TObject<{
549
+ claimId: Type.TString;
550
+ sourceId: Type.TString;
551
+ argumentId: Type.TString;
552
+ version: Type.TNumber;
553
+ createdOn: import("../../schemas/common.js").TDateType;
554
+ }>>;
555
+ removed: Type.TArray<Type.TObject<{
556
+ claimId: Type.TString;
557
+ sourceId: Type.TString;
558
+ argumentId: Type.TString;
559
+ version: Type.TNumber;
560
+ createdOn: import("../../schemas/common.js").TDateType;
561
+ }>>;
562
+ }>;
563
+ sources: Type.TObject<{
564
+ added: Type.TArray<Type.TObject<{
565
+ id: Type.TString;
566
+ url: Type.TUnion<[Type.TString, Type.TNull]>;
567
+ citation: Type.TRecord<"^.*$", Type.TAny>;
568
+ createdOn: import("../../schemas/common.js").TDateType;
569
+ creatorId: Type.TString;
570
+ citationContentHash: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
571
+ }>>;
572
+ removed: Type.TArray<Type.TObject<{
573
+ id: Type.TString;
574
+ url: Type.TUnion<[Type.TString, Type.TNull]>;
575
+ citation: Type.TRecord<"^.*$", Type.TAny>;
576
+ createdOn: import("../../schemas/common.js").TDateType;
577
+ creatorId: Type.TString;
578
+ citationContentHash: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
579
+ }>>;
580
+ }>;
581
+ }>>>;
582
+ export declare function getArgumentForks(argumentId: string, version: number, fetchFn?: typeof fetch, urlPrefix?: string): Promise<import("../../schemas/common.js").ParsedError<Type.TObject<{
583
+ errorID: Type.TNumber;
584
+ errorMessage: Type.TString;
585
+ statusCode: Type.TNumber;
586
+ }>> | import("../../schemas/common.js").ParsedSuccess<Type.TObject<{
587
+ arguments: Type.TArray<Type.TIntersect<[Type.TIntersect<[Type.TObject<{
588
+ id: Type.TString;
589
+ version: Type.TNumber;
590
+ checksum: Type.TString;
591
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
592
+ combinedChecksum: Type.TString;
593
+ }>, Type.TObject<{
594
+ title: Type.TString;
595
+ published: Type.TBoolean;
596
+ creatorId: Type.TString;
597
+ createdOn: import("../../schemas/common.js").TDateType;
598
+ publishedOn: Type.TUnion<[import("../../schemas/common.js").TDateType, Type.TNull]>;
599
+ forkId: Type.TUnion<[Type.TString, Type.TNull]>;
600
+ digest: Type.TString;
601
+ popularity: Type.TNumber;
602
+ platform: Type.TUnion<[Type.TLiteral<"twitter">, Type.TLiteral<"reddit">, Type.TLiteral<"raw_text">, Type.TLiteral<"manual">]>;
603
+ platformData: Type.TUnion<[Type.TUnion<[Type.TObject<{
604
+ argumentTitle: Type.TString;
605
+ textContent: Type.TNull;
606
+ }>, Type.TObject<{
607
+ argumentTitle: Type.TOptional<Type.TString>;
608
+ textContent: Type.TString;
609
+ postUrl: Type.TString;
610
+ importMode: Type.TUnion<[Type.TLiteral<"self_author">, Type.TLiteral<"other_author">, Type.TLiteral<"copy_contents">]>;
611
+ embedResponse: Type.TOptional<Type.TObject<{
612
+ url: Type.TString;
613
+ authorUrl: Type.TString;
614
+ authorName: Type.TString;
615
+ html: Type.TString;
616
+ width: Type.TOptional<Type.TNumber>;
617
+ height: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
618
+ type: Type.TOptional<Type.TString>;
619
+ version: Type.TOptional<Type.TString>;
620
+ providerName: Type.TOptional<Type.TString>;
621
+ providerUrl: Type.TOptional<Type.TString>;
622
+ cacheAge: Type.TOptional<Type.TString>;
623
+ }>>;
624
+ username: Type.TOptional<Type.TString>;
625
+ }>, Type.TObject<{
626
+ argumentTitle: Type.TOptional<Type.TString>;
627
+ textContent: Type.TString;
628
+ postUrl: Type.TString;
629
+ username: Type.TOptional<Type.TString>;
630
+ }>, Type.TObject<{
631
+ argumentTitle: Type.TOptional<Type.TString>;
632
+ textContent: Type.TString;
633
+ }>]>, Type.TNull]>;
634
+ platformUsername: Type.TUnion<[Type.TString, Type.TNull]>;
635
+ titleContentHash: Type.TUnion<[Type.TString, Type.TNull]>;
636
+ description: Type.TUnion<[Type.TString, Type.TNull]>;
637
+ }>]>, Type.TObject<{
638
+ forkId: Type.TString;
639
+ }>]>>;
640
+ }>>>;
641
+ export declare function claimUnownedArgument(argumentId: string, version: number, fetchFn?: typeof fetch, urlPrefix?: string): Promise<void>;
642
+ export type GetAllArgumentsParams = {
643
+ owned?: boolean;
644
+ limit?: number;
645
+ offset?: number;
646
+ titlePattern?: string;
647
+ orderByPopularity?: boolean;
648
+ };
649
+ export declare function getAllArguments(params?: GetAllArgumentsParams, fetchFn?: typeof fetch, urlPrefix?: string): Promise<import("../../schemas/common.js").ParsedError<Type.TObject<{
650
+ errorID: Type.TNumber;
651
+ errorMessage: Type.TString;
652
+ statusCode: Type.TNumber;
653
+ }>> | import("../../schemas/common.js").ParsedSuccess<Type.TArray<Type.TIntersect<[Type.TIntersect<[Type.TObject<{
654
+ id: Type.TString;
655
+ version: Type.TNumber;
656
+ checksum: Type.TString;
657
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
658
+ combinedChecksum: Type.TString;
659
+ }>, Type.TObject<{
660
+ title: Type.TString;
661
+ published: Type.TBoolean;
662
+ creatorId: Type.TString;
663
+ createdOn: import("../../schemas/common.js").TDateType;
664
+ publishedOn: Type.TUnion<[import("../../schemas/common.js").TDateType, Type.TNull]>;
665
+ forkId: Type.TUnion<[Type.TString, Type.TNull]>;
666
+ digest: Type.TString;
667
+ popularity: Type.TNumber;
668
+ platform: Type.TUnion<[Type.TLiteral<"twitter">, Type.TLiteral<"reddit">, Type.TLiteral<"raw_text">, Type.TLiteral<"manual">]>;
669
+ platformData: Type.TUnion<[Type.TUnion<[Type.TObject<{
670
+ argumentTitle: Type.TString;
671
+ textContent: Type.TNull;
672
+ }>, Type.TObject<{
673
+ argumentTitle: Type.TOptional<Type.TString>;
674
+ textContent: Type.TString;
675
+ postUrl: Type.TString;
676
+ importMode: Type.TUnion<[Type.TLiteral<"self_author">, Type.TLiteral<"other_author">, Type.TLiteral<"copy_contents">]>;
677
+ embedResponse: Type.TOptional<Type.TObject<{
678
+ url: Type.TString;
679
+ authorUrl: Type.TString;
680
+ authorName: Type.TString;
681
+ html: Type.TString;
682
+ width: Type.TOptional<Type.TNumber>;
683
+ height: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
684
+ type: Type.TOptional<Type.TString>;
685
+ version: Type.TOptional<Type.TString>;
686
+ providerName: Type.TOptional<Type.TString>;
687
+ providerUrl: Type.TOptional<Type.TString>;
688
+ cacheAge: Type.TOptional<Type.TString>;
689
+ }>>;
690
+ username: Type.TOptional<Type.TString>;
691
+ }>, Type.TObject<{
692
+ argumentTitle: Type.TOptional<Type.TString>;
693
+ textContent: Type.TString;
694
+ postUrl: Type.TString;
695
+ username: Type.TOptional<Type.TString>;
696
+ }>, Type.TObject<{
697
+ argumentTitle: Type.TOptional<Type.TString>;
698
+ textContent: Type.TString;
699
+ }>]>, Type.TNull]>;
700
+ platformUsername: Type.TUnion<[Type.TString, Type.TNull]>;
701
+ titleContentHash: Type.TUnion<[Type.TString, Type.TNull]>;
702
+ description: Type.TUnion<[Type.TString, Type.TNull]>;
703
+ }>]>, Type.TObject<{
704
+ upvotes: Type.TNumber;
705
+ downvotes: Type.TNumber;
706
+ }>]>>>>;
707
+ export declare function createArgument(data: TCreateArgument, fetchFn?: typeof fetch, urlPrefix?: string): Promise<import("../../schemas/common.js").ParsedError<Type.TObject<{
708
+ errorID: Type.TNumber;
709
+ errorMessage: Type.TString;
710
+ statusCode: Type.TNumber;
711
+ }>> | import("../../schemas/common.js").ParsedSuccess<Type.TIntersect<[Type.TObject<{
712
+ id: Type.TString;
713
+ version: Type.TNumber;
714
+ checksum: Type.TString;
715
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
716
+ combinedChecksum: Type.TString;
717
+ }>, Type.TObject<{
718
+ title: Type.TString;
719
+ published: Type.TBoolean;
720
+ creatorId: Type.TString;
721
+ createdOn: import("../../schemas/common.js").TDateType;
722
+ publishedOn: Type.TUnion<[import("../../schemas/common.js").TDateType, Type.TNull]>;
723
+ forkId: Type.TUnion<[Type.TString, Type.TNull]>;
724
+ digest: Type.TString;
725
+ popularity: Type.TNumber;
726
+ platform: Type.TUnion<[Type.TLiteral<"twitter">, Type.TLiteral<"reddit">, Type.TLiteral<"raw_text">, Type.TLiteral<"manual">]>;
727
+ platformData: Type.TUnion<[Type.TUnion<[Type.TObject<{
728
+ argumentTitle: Type.TString;
729
+ textContent: Type.TNull;
730
+ }>, Type.TObject<{
731
+ argumentTitle: Type.TOptional<Type.TString>;
732
+ textContent: Type.TString;
733
+ postUrl: Type.TString;
734
+ importMode: Type.TUnion<[Type.TLiteral<"self_author">, Type.TLiteral<"other_author">, Type.TLiteral<"copy_contents">]>;
735
+ embedResponse: Type.TOptional<Type.TObject<{
736
+ url: Type.TString;
737
+ authorUrl: Type.TString;
738
+ authorName: Type.TString;
739
+ html: Type.TString;
740
+ width: Type.TOptional<Type.TNumber>;
741
+ height: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
742
+ type: Type.TOptional<Type.TString>;
743
+ version: Type.TOptional<Type.TString>;
744
+ providerName: Type.TOptional<Type.TString>;
745
+ providerUrl: Type.TOptional<Type.TString>;
746
+ cacheAge: Type.TOptional<Type.TString>;
747
+ }>>;
748
+ username: Type.TOptional<Type.TString>;
749
+ }>, Type.TObject<{
750
+ argumentTitle: Type.TOptional<Type.TString>;
751
+ textContent: Type.TString;
752
+ postUrl: Type.TString;
753
+ username: Type.TOptional<Type.TString>;
754
+ }>, Type.TObject<{
755
+ argumentTitle: Type.TOptional<Type.TString>;
756
+ textContent: Type.TString;
757
+ }>]>, Type.TNull]>;
758
+ platformUsername: Type.TUnion<[Type.TString, Type.TNull]>;
759
+ titleContentHash: Type.TUnion<[Type.TString, Type.TNull]>;
760
+ description: Type.TUnion<[Type.TString, Type.TNull]>;
761
+ }>]>>>;
762
+ export declare function getLatestArgument(argumentId: string, fetchFn?: typeof fetch, urlPrefix?: string): Promise<import("../../schemas/common.js").ParsedError<Type.TObject<{
763
+ errorID: Type.TNumber;
764
+ errorMessage: Type.TString;
765
+ statusCode: Type.TNumber;
766
+ }>> | import("../../schemas/common.js").ParsedSuccess<Type.TIntersect<[Type.TObject<{
767
+ id: Type.TString;
768
+ version: Type.TNumber;
769
+ checksum: Type.TString;
770
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
771
+ combinedChecksum: Type.TString;
772
+ }>, Type.TObject<{
773
+ title: Type.TString;
774
+ published: Type.TBoolean;
775
+ creatorId: Type.TString;
776
+ createdOn: import("../../schemas/common.js").TDateType;
777
+ publishedOn: Type.TUnion<[import("../../schemas/common.js").TDateType, Type.TNull]>;
778
+ forkId: Type.TUnion<[Type.TString, Type.TNull]>;
779
+ digest: Type.TString;
780
+ popularity: Type.TNumber;
781
+ platform: Type.TUnion<[Type.TLiteral<"twitter">, Type.TLiteral<"reddit">, Type.TLiteral<"raw_text">, Type.TLiteral<"manual">]>;
782
+ platformData: Type.TUnion<[Type.TUnion<[Type.TObject<{
783
+ argumentTitle: Type.TString;
784
+ textContent: Type.TNull;
785
+ }>, Type.TObject<{
786
+ argumentTitle: Type.TOptional<Type.TString>;
787
+ textContent: Type.TString;
788
+ postUrl: Type.TString;
789
+ importMode: Type.TUnion<[Type.TLiteral<"self_author">, Type.TLiteral<"other_author">, Type.TLiteral<"copy_contents">]>;
790
+ embedResponse: Type.TOptional<Type.TObject<{
791
+ url: Type.TString;
792
+ authorUrl: Type.TString;
793
+ authorName: Type.TString;
794
+ html: Type.TString;
795
+ width: Type.TOptional<Type.TNumber>;
796
+ height: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
797
+ type: Type.TOptional<Type.TString>;
798
+ version: Type.TOptional<Type.TString>;
799
+ providerName: Type.TOptional<Type.TString>;
800
+ providerUrl: Type.TOptional<Type.TString>;
801
+ cacheAge: Type.TOptional<Type.TString>;
802
+ }>>;
803
+ username: Type.TOptional<Type.TString>;
804
+ }>, Type.TObject<{
805
+ argumentTitle: Type.TOptional<Type.TString>;
806
+ textContent: Type.TString;
807
+ postUrl: Type.TString;
808
+ username: Type.TOptional<Type.TString>;
809
+ }>, Type.TObject<{
810
+ argumentTitle: Type.TOptional<Type.TString>;
811
+ textContent: Type.TString;
812
+ }>]>, Type.TNull]>;
813
+ platformUsername: Type.TUnion<[Type.TString, Type.TNull]>;
814
+ titleContentHash: Type.TUnion<[Type.TString, Type.TNull]>;
815
+ description: Type.TUnion<[Type.TString, Type.TNull]>;
816
+ }>]>>>;
817
+ export declare function updateArgument(argumentId: string, version: number, data: TUpdateArgumentRequest, fetchFn?: typeof fetch, urlPrefix?: string): Promise<import("../../schemas/common.js").ParsedError<Type.TObject<{
818
+ errorID: Type.TNumber;
819
+ errorMessage: Type.TString;
820
+ statusCode: Type.TNumber;
821
+ }>> | import("../../schemas/common.js").ParsedSuccess<Type.TIntersect<[Type.TObject<{
822
+ id: Type.TString;
823
+ version: Type.TNumber;
824
+ checksum: Type.TString;
825
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
826
+ combinedChecksum: Type.TString;
827
+ }>, Type.TObject<{
828
+ title: Type.TString;
829
+ published: Type.TBoolean;
830
+ creatorId: Type.TString;
831
+ createdOn: import("../../schemas/common.js").TDateType;
832
+ publishedOn: Type.TUnion<[import("../../schemas/common.js").TDateType, Type.TNull]>;
833
+ forkId: Type.TUnion<[Type.TString, Type.TNull]>;
834
+ digest: Type.TString;
835
+ popularity: Type.TNumber;
836
+ platform: Type.TUnion<[Type.TLiteral<"twitter">, Type.TLiteral<"reddit">, Type.TLiteral<"raw_text">, Type.TLiteral<"manual">]>;
837
+ platformData: Type.TUnion<[Type.TUnion<[Type.TObject<{
838
+ argumentTitle: Type.TString;
839
+ textContent: Type.TNull;
840
+ }>, Type.TObject<{
841
+ argumentTitle: Type.TOptional<Type.TString>;
842
+ textContent: Type.TString;
843
+ postUrl: Type.TString;
844
+ importMode: Type.TUnion<[Type.TLiteral<"self_author">, Type.TLiteral<"other_author">, Type.TLiteral<"copy_contents">]>;
845
+ embedResponse: Type.TOptional<Type.TObject<{
846
+ url: Type.TString;
847
+ authorUrl: Type.TString;
848
+ authorName: Type.TString;
849
+ html: Type.TString;
850
+ width: Type.TOptional<Type.TNumber>;
851
+ height: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
852
+ type: Type.TOptional<Type.TString>;
853
+ version: Type.TOptional<Type.TString>;
854
+ providerName: Type.TOptional<Type.TString>;
855
+ providerUrl: Type.TOptional<Type.TString>;
856
+ cacheAge: Type.TOptional<Type.TString>;
857
+ }>>;
858
+ username: Type.TOptional<Type.TString>;
859
+ }>, Type.TObject<{
860
+ argumentTitle: Type.TOptional<Type.TString>;
861
+ textContent: Type.TString;
862
+ postUrl: Type.TString;
863
+ username: Type.TOptional<Type.TString>;
864
+ }>, Type.TObject<{
865
+ argumentTitle: Type.TOptional<Type.TString>;
866
+ textContent: Type.TString;
867
+ }>]>, Type.TNull]>;
868
+ platformUsername: Type.TUnion<[Type.TString, Type.TNull]>;
869
+ titleContentHash: Type.TUnion<[Type.TString, Type.TNull]>;
870
+ description: Type.TUnion<[Type.TString, Type.TNull]>;
871
+ }>]>>>;
872
+ export declare function archiveArgument(argumentId: string, version: number, fetchFn?: typeof fetch, urlPrefix?: string): Promise<import("../../schemas/common.js").ParsedError<Type.TObject<{
873
+ errorID: Type.TNumber;
874
+ errorMessage: Type.TString;
875
+ statusCode: Type.TNumber;
876
+ }>> | import("../../schemas/common.js").ParsedSuccess<Type.TBoolean>>;
877
+ export declare function deleteArgument(argumentId: string, version: number, fetchFn?: typeof fetch, urlPrefix?: string): Promise<import("../../schemas/common.js").ParsedError<Type.TObject<{
878
+ errorID: Type.TNumber;
879
+ errorMessage: Type.TString;
880
+ statusCode: Type.TNumber;
881
+ }>> | import("../../schemas/common.js").ParsedSuccess<Type.TBoolean>>;
882
+ export declare function getEntireArgument(argumentId: string, version: number, fetchFn?: typeof fetch, urlPrefix?: string): Promise<import("../../schemas/common.js").ParsedError<Type.TObject<{
883
+ errorID: Type.TNumber;
884
+ errorMessage: Type.TString;
885
+ statusCode: Type.TNumber;
886
+ }>> | import("../../schemas/common.js").ParsedSuccess<Type.TObject<{
887
+ argument: Type.TIntersect<[Type.TObject<{
888
+ id: Type.TString;
889
+ version: Type.TNumber;
890
+ checksum: Type.TString;
891
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
892
+ combinedChecksum: Type.TString;
893
+ }>, Type.TObject<{
894
+ title: Type.TString;
895
+ published: Type.TBoolean;
896
+ creatorId: Type.TString;
897
+ createdOn: import("../../schemas/common.js").TDateType;
898
+ publishedOn: Type.TUnion<[import("../../schemas/common.js").TDateType, Type.TNull]>;
899
+ forkId: Type.TUnion<[Type.TString, Type.TNull]>;
900
+ digest: Type.TString;
901
+ popularity: Type.TNumber;
902
+ platform: Type.TUnion<[Type.TLiteral<"twitter">, Type.TLiteral<"reddit">, Type.TLiteral<"raw_text">, Type.TLiteral<"manual">]>;
903
+ platformData: Type.TUnion<[Type.TUnion<[Type.TObject<{
904
+ argumentTitle: Type.TString;
905
+ textContent: Type.TNull;
906
+ }>, Type.TObject<{
907
+ argumentTitle: Type.TOptional<Type.TString>;
908
+ textContent: Type.TString;
909
+ postUrl: Type.TString;
910
+ importMode: Type.TUnion<[Type.TLiteral<"self_author">, Type.TLiteral<"other_author">, Type.TLiteral<"copy_contents">]>;
911
+ embedResponse: Type.TOptional<Type.TObject<{
912
+ url: Type.TString;
913
+ authorUrl: Type.TString;
914
+ authorName: Type.TString;
915
+ html: Type.TString;
916
+ width: Type.TOptional<Type.TNumber>;
917
+ height: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
918
+ type: Type.TOptional<Type.TString>;
919
+ version: Type.TOptional<Type.TString>;
920
+ providerName: Type.TOptional<Type.TString>;
921
+ providerUrl: Type.TOptional<Type.TString>;
922
+ cacheAge: Type.TOptional<Type.TString>;
923
+ }>>;
924
+ username: Type.TOptional<Type.TString>;
925
+ }>, Type.TObject<{
926
+ argumentTitle: Type.TOptional<Type.TString>;
927
+ textContent: Type.TString;
928
+ postUrl: Type.TString;
929
+ username: Type.TOptional<Type.TString>;
930
+ }>, Type.TObject<{
931
+ argumentTitle: Type.TOptional<Type.TString>;
932
+ textContent: Type.TString;
933
+ }>]>, Type.TNull]>;
934
+ platformUsername: Type.TUnion<[Type.TString, Type.TNull]>;
935
+ titleContentHash: Type.TUnion<[Type.TString, Type.TNull]>;
936
+ description: Type.TUnion<[Type.TString, Type.TNull]>;
937
+ }>]>;
938
+ claims: Type.TArray<Type.TObject<{
939
+ title: Type.TString;
940
+ body: Type.TString;
941
+ digest: Type.TString;
942
+ id: Type.TString;
943
+ argumentId: Type.TString;
944
+ version: Type.TNumber;
945
+ claimForkId: Type.TUnion<[Type.TString, Type.TNull]>;
946
+ creatorId: Type.TString;
947
+ createdOn: import("../../schemas/common.js").TDateType;
948
+ type: Type.TUnion<[Type.TUnion<[Type.TLiteral<"definition">, Type.TLiteral<"criterion">]>, Type.TUnion<[Type.TLiteral<"conclusion">, Type.TLiteral<"claim">]>]>;
949
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
950
+ titleContentHash: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
951
+ }>>;
952
+ propositionalLogic: Type.TObject<{
953
+ argument: Type.TIntersect<[Type.TObject<{
954
+ createdOn: import("../../schemas/common.js").TDateType;
955
+ creatorId: Type.TString;
956
+ title: Type.TString;
957
+ published: Type.TBoolean;
958
+ publishedOn: Type.TUnion<[import("../../schemas/common.js").TDateType, Type.TNull]>;
959
+ forkId: Type.TUnion<[Type.TString, Type.TNull]>;
960
+ digest: Type.TString;
961
+ description: Type.TUnion<[Type.TString, Type.TNull]>;
962
+ id: Type.TString;
963
+ version: Type.TNumber;
964
+ titleContentHash: Type.TUnion<[Type.TString, Type.TNull]>;
965
+ popularity: Type.TNumber;
966
+ platform: Type.TUnion<[Type.TLiteral<"twitter">, Type.TLiteral<"reddit">, Type.TLiteral<"raw_text">, Type.TLiteral<"manual">]>;
967
+ platformData: Type.TUnion<[Type.TUnion<[Type.TObject<{
968
+ argumentTitle: Type.TString;
969
+ textContent: Type.TNull;
970
+ }>, Type.TObject<{
971
+ argumentTitle: Type.TOptional<Type.TString>;
972
+ textContent: Type.TString;
973
+ postUrl: Type.TString;
974
+ importMode: Type.TUnion<[Type.TLiteral<"self_author">, Type.TLiteral<"other_author">, Type.TLiteral<"copy_contents">]>;
975
+ embedResponse: Type.TOptional<Type.TObject<{
976
+ url: Type.TString;
977
+ authorUrl: Type.TString;
978
+ authorName: Type.TString;
979
+ html: Type.TString;
980
+ width: Type.TOptional<Type.TNumber>;
981
+ height: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
982
+ type: Type.TOptional<Type.TString>;
983
+ version: Type.TOptional<Type.TString>;
984
+ providerName: Type.TOptional<Type.TString>;
985
+ providerUrl: Type.TOptional<Type.TString>;
986
+ cacheAge: Type.TOptional<Type.TString>;
987
+ }>>;
988
+ username: Type.TOptional<Type.TString>;
989
+ }>, Type.TObject<{
990
+ argumentTitle: Type.TOptional<Type.TString>;
991
+ textContent: Type.TString;
992
+ postUrl: Type.TString;
993
+ username: Type.TOptional<Type.TString>;
994
+ }>, Type.TObject<{
995
+ argumentTitle: Type.TOptional<Type.TString>;
996
+ textContent: Type.TString;
997
+ }>]>, Type.TNull]>;
998
+ platformUsername: Type.TUnion<[Type.TString, Type.TNull]>;
999
+ }>, Type.TObject<{
1000
+ checksum: Type.TOptional<Type.TString>;
1001
+ descendantChecksum: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
1002
+ combinedChecksum: Type.TOptional<Type.TString>;
1003
+ }>]>;
1004
+ variables: Type.TObject<{
1005
+ variables: Type.TArray<Type.TUnion<[Type.TIntersect<[Type.TObject<{
1006
+ symbol: Type.TString;
1007
+ createdOn: import("../../schemas/common.js").TDateType;
1008
+ creatorId: Type.TString;
1009
+ claimId: Type.TString;
1010
+ claimVersion: Type.TNumber;
1011
+ argumentId: Type.TString;
1012
+ argumentVersion: Type.TNumber;
1013
+ id: Type.TString;
1014
+ }>, Type.TObject<{
1015
+ checksum: Type.TOptional<Type.TString>;
1016
+ descendantChecksum: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
1017
+ combinedChecksum: Type.TOptional<Type.TString>;
1018
+ }>]>, Type.TIntersect<[Type.TObject<{
1019
+ symbol: Type.TString;
1020
+ createdOn: import("../../schemas/common.js").TDateType;
1021
+ creatorId: Type.TString;
1022
+ boundPremiseId: Type.TString;
1023
+ boundArgumentId: Type.TString;
1024
+ boundArgumentVersion: Type.TNumber;
1025
+ argumentId: Type.TString;
1026
+ argumentVersion: Type.TNumber;
1027
+ id: Type.TString;
1028
+ }>, Type.TObject<{
1029
+ checksum: Type.TOptional<Type.TString>;
1030
+ descendantChecksum: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
1031
+ combinedChecksum: Type.TOptional<Type.TString>;
1032
+ }>]>]>>;
1033
+ config: Type.TOptional<Type.TUnknown>;
1034
+ }>;
1035
+ premises: Type.TArray<Type.TObject<{
1036
+ premise: Type.TIntersect<[Type.TObject<{
1037
+ createdOn: Type.TOptional<import("../../schemas/common.js").TDateType>;
1038
+ creatorId: Type.TOptional<Type.TString>;
1039
+ argumentId: Type.TString;
1040
+ argumentVersion: Type.TNumber;
1041
+ role: Type.TUnion<[Type.TLiteral<"conclusion">, Type.TLiteral<"supporting">]>;
1042
+ title: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
1043
+ id: Type.TString;
1044
+ }>, Type.TObject<{
1045
+ checksum: Type.TOptional<Type.TString>;
1046
+ descendantChecksum: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
1047
+ combinedChecksum: Type.TOptional<Type.TString>;
1048
+ }>]>;
1049
+ rootExpressionId: Type.TOptional<Type.TString>;
1050
+ expressions: Type.TObject<{
1051
+ expressions: Type.TArray<Type.TUnion<[Type.TIntersect<[Type.TObject<{
1052
+ id: Type.TString;
1053
+ argumentId: Type.TString;
1054
+ argumentVersion: Type.TNumber;
1055
+ premiseId: Type.TString;
1056
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
1057
+ position: Type.TNumber;
1058
+ checksum: Type.TString;
1059
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
1060
+ combinedChecksum: Type.TString;
1061
+ type: Type.TLiteral<"variable">;
1062
+ variableId: Type.TString;
1063
+ }>, Type.TObject<{
1064
+ createdOn: import("../../schemas/common.js").TDateType;
1065
+ creatorId: Type.TString;
1066
+ }>, Type.TObject<{
1067
+ operator: Type.TNull;
1068
+ }>]>, Type.TIntersect<[Type.TObject<{
1069
+ id: Type.TString;
1070
+ argumentId: Type.TString;
1071
+ argumentVersion: Type.TNumber;
1072
+ premiseId: Type.TString;
1073
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
1074
+ position: Type.TNumber;
1075
+ checksum: Type.TString;
1076
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
1077
+ combinedChecksum: Type.TString;
1078
+ type: Type.TLiteral<"operator">;
1079
+ operator: Type.TUnion<[Type.TLiteral<"not">, Type.TLiteral<"and">, Type.TLiteral<"or">, Type.TLiteral<"implies">, Type.TLiteral<"iff">]>;
1080
+ }>, Type.TObject<{
1081
+ createdOn: import("../../schemas/common.js").TDateType;
1082
+ creatorId: Type.TString;
1083
+ }>, Type.TObject<{
1084
+ variableId: Type.TNull;
1085
+ }>]>, Type.TIntersect<[Type.TObject<{
1086
+ id: Type.TString;
1087
+ argumentId: Type.TString;
1088
+ argumentVersion: Type.TNumber;
1089
+ premiseId: Type.TString;
1090
+ parentId: Type.TUnion<[Type.TString, Type.TNull]>;
1091
+ position: Type.TNumber;
1092
+ checksum: Type.TString;
1093
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
1094
+ combinedChecksum: Type.TString;
1095
+ type: Type.TLiteral<"formula">;
1096
+ }>, Type.TObject<{
1097
+ createdOn: import("../../schemas/common.js").TDateType;
1098
+ creatorId: Type.TString;
1099
+ }>, Type.TObject<{
1100
+ variableId: Type.TNull;
1101
+ operator: Type.TNull;
1102
+ }>]>]>>;
1103
+ config: Type.TOptional<Type.TUnknown>;
1104
+ }>;
1105
+ config: Type.TOptional<Type.TUnknown>;
1106
+ }>>;
1107
+ conclusionPremiseId: Type.TOptional<Type.TString>;
1108
+ sources: Type.TOptional<Type.TObject<{
1109
+ variableSourceAssociations: Type.TArray<Type.TUnknown>;
1110
+ expressionSourceAssociations: Type.TArray<Type.TUnknown>;
1111
+ }>>;
1112
+ config: Type.TOptional<Type.TUnknown>;
1113
+ }>;
1114
+ claimSources: Type.TArray<Type.TObject<{
1115
+ claimId: Type.TString;
1116
+ sourceId: Type.TString;
1117
+ argumentId: Type.TString;
1118
+ version: Type.TNumber;
1119
+ createdOn: import("../../schemas/common.js").TDateType;
1120
+ }>>;
1121
+ sources: Type.TArray<Type.TObject<{
1122
+ id: Type.TString;
1123
+ url: Type.TUnion<[Type.TString, Type.TNull]>;
1124
+ citation: Type.TRecord<"^.*$", Type.TAny>;
1125
+ createdOn: import("../../schemas/common.js").TDateType;
1126
+ creatorId: Type.TString;
1127
+ citationContentHash: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
1128
+ }>>;
1129
+ argumentHistory: Type.TArray<Type.TIntersect<[Type.TObject<{
1130
+ id: Type.TString;
1131
+ version: Type.TNumber;
1132
+ checksum: Type.TString;
1133
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
1134
+ combinedChecksum: Type.TString;
1135
+ }>, Type.TObject<{
1136
+ title: Type.TString;
1137
+ published: Type.TBoolean;
1138
+ creatorId: Type.TString;
1139
+ createdOn: import("../../schemas/common.js").TDateType;
1140
+ publishedOn: Type.TUnion<[import("../../schemas/common.js").TDateType, Type.TNull]>;
1141
+ forkId: Type.TUnion<[Type.TString, Type.TNull]>;
1142
+ digest: Type.TString;
1143
+ popularity: Type.TNumber;
1144
+ platform: Type.TUnion<[Type.TLiteral<"twitter">, Type.TLiteral<"reddit">, Type.TLiteral<"raw_text">, Type.TLiteral<"manual">]>;
1145
+ platformData: Type.TUnion<[Type.TUnion<[Type.TObject<{
1146
+ argumentTitle: Type.TString;
1147
+ textContent: Type.TNull;
1148
+ }>, Type.TObject<{
1149
+ argumentTitle: Type.TOptional<Type.TString>;
1150
+ textContent: Type.TString;
1151
+ postUrl: Type.TString;
1152
+ importMode: Type.TUnion<[Type.TLiteral<"self_author">, Type.TLiteral<"other_author">, Type.TLiteral<"copy_contents">]>;
1153
+ embedResponse: Type.TOptional<Type.TObject<{
1154
+ url: Type.TString;
1155
+ authorUrl: Type.TString;
1156
+ authorName: Type.TString;
1157
+ html: Type.TString;
1158
+ width: Type.TOptional<Type.TNumber>;
1159
+ height: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
1160
+ type: Type.TOptional<Type.TString>;
1161
+ version: Type.TOptional<Type.TString>;
1162
+ providerName: Type.TOptional<Type.TString>;
1163
+ providerUrl: Type.TOptional<Type.TString>;
1164
+ cacheAge: Type.TOptional<Type.TString>;
1165
+ }>>;
1166
+ username: Type.TOptional<Type.TString>;
1167
+ }>, Type.TObject<{
1168
+ argumentTitle: Type.TOptional<Type.TString>;
1169
+ textContent: Type.TString;
1170
+ postUrl: Type.TString;
1171
+ username: Type.TOptional<Type.TString>;
1172
+ }>, Type.TObject<{
1173
+ argumentTitle: Type.TOptional<Type.TString>;
1174
+ textContent: Type.TString;
1175
+ }>]>, Type.TNull]>;
1176
+ platformUsername: Type.TUnion<[Type.TString, Type.TNull]>;
1177
+ titleContentHash: Type.TUnion<[Type.TString, Type.TNull]>;
1178
+ description: Type.TUnion<[Type.TString, Type.TNull]>;
1179
+ }>]>>;
1180
+ originalArgument: Type.TUnion<[Type.TIntersect<[Type.TObject<{
1181
+ id: Type.TString;
1182
+ version: Type.TNumber;
1183
+ checksum: Type.TString;
1184
+ descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
1185
+ combinedChecksum: Type.TString;
1186
+ }>, Type.TObject<{
1187
+ title: Type.TString;
1188
+ published: Type.TBoolean;
1189
+ creatorId: Type.TString;
1190
+ createdOn: import("../../schemas/common.js").TDateType;
1191
+ publishedOn: Type.TUnion<[import("../../schemas/common.js").TDateType, Type.TNull]>;
1192
+ forkId: Type.TUnion<[Type.TString, Type.TNull]>;
1193
+ digest: Type.TString;
1194
+ popularity: Type.TNumber;
1195
+ platform: Type.TUnion<[Type.TLiteral<"twitter">, Type.TLiteral<"reddit">, Type.TLiteral<"raw_text">, Type.TLiteral<"manual">]>;
1196
+ platformData: Type.TUnion<[Type.TUnion<[Type.TObject<{
1197
+ argumentTitle: Type.TString;
1198
+ textContent: Type.TNull;
1199
+ }>, Type.TObject<{
1200
+ argumentTitle: Type.TOptional<Type.TString>;
1201
+ textContent: Type.TString;
1202
+ postUrl: Type.TString;
1203
+ importMode: Type.TUnion<[Type.TLiteral<"self_author">, Type.TLiteral<"other_author">, Type.TLiteral<"copy_contents">]>;
1204
+ embedResponse: Type.TOptional<Type.TObject<{
1205
+ url: Type.TString;
1206
+ authorUrl: Type.TString;
1207
+ authorName: Type.TString;
1208
+ html: Type.TString;
1209
+ width: Type.TOptional<Type.TNumber>;
1210
+ height: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
1211
+ type: Type.TOptional<Type.TString>;
1212
+ version: Type.TOptional<Type.TString>;
1213
+ providerName: Type.TOptional<Type.TString>;
1214
+ providerUrl: Type.TOptional<Type.TString>;
1215
+ cacheAge: Type.TOptional<Type.TString>;
1216
+ }>>;
1217
+ username: Type.TOptional<Type.TString>;
1218
+ }>, Type.TObject<{
1219
+ argumentTitle: Type.TOptional<Type.TString>;
1220
+ textContent: Type.TString;
1221
+ postUrl: Type.TString;
1222
+ username: Type.TOptional<Type.TString>;
1223
+ }>, Type.TObject<{
1224
+ argumentTitle: Type.TOptional<Type.TString>;
1225
+ textContent: Type.TString;
1226
+ }>]>, Type.TNull]>;
1227
+ platformUsername: Type.TUnion<[Type.TString, Type.TNull]>;
1228
+ titleContentHash: Type.TUnion<[Type.TString, Type.TNull]>;
1229
+ description: Type.TUnion<[Type.TString, Type.TNull]>;
1230
+ }>]>, Type.TNull]>;
1231
+ participants: Type.TArray<Type.TIntersect<[Type.TObject<{
1232
+ argumentId: Type.TString;
1233
+ version: Type.TNumber;
1234
+ userId: Type.TString;
1235
+ createdOn: import("../../schemas/common.js").TDateType;
1236
+ role: Type.TString;
1237
+ }>, Type.TObject<{
1238
+ name: Type.TUnion<[Type.TString, Type.TNull]>;
1239
+ username: Type.TUnion<[Type.TString, Type.TNull]>;
1240
+ image: Type.TUnion<[Type.TString, Type.TNull]>;
1241
+ }>]>>;
1242
+ tasks: Type.TArray<Type.TUnion<[Type.TObject<{
1243
+ id: Type.TString;
1244
+ userId: Type.TString;
1245
+ previousId: Type.TUnion<[Type.TString, Type.TNull]>;
1246
+ type: Type.TLiteral<"argument_create">;
1247
+ data: Type.TObject<{
1248
+ argumentId: Type.TString;
1249
+ version: Type.TNumber;
1250
+ responseId: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
1251
+ }>;
1252
+ errorData: Type.TUnion<[Type.TRecord<"^.*$", Type.TAny>, Type.TNull]>;
1253
+ resultData: Type.TUnion<[Type.TObject<{
1254
+ tokensUsed: Type.TNumber;
1255
+ }>, Type.TNull]>;
1256
+ createdOn: import("../../schemas/common.js").TDateType;
1257
+ startedOn: Type.TUnion<[import("../../schemas/common.js").TDateType, Type.TNull]>;
1258
+ completedOn: Type.TUnion<[import("../../schemas/common.js").TDateType, Type.TNull]>;
1259
+ status: Type.TNumber;
1260
+ }>, Type.TObject<{
1261
+ id: Type.TString;
1262
+ userId: Type.TString;
1263
+ previousId: Type.TUnion<[Type.TString, Type.TNull]>;
1264
+ type: Type.TLiteral<"argument_build_review">;
1265
+ data: Type.TObject<{
1266
+ argumentId: Type.TString;
1267
+ version: Type.TNumber;
1268
+ conversationResponseId: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
1269
+ responseId: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
1270
+ newPrompts: Type.TArray<Type.TObject<{
1271
+ role: Type.TUnion<[Type.TLiteral<"user">, Type.TLiteral<"assistant">, Type.TLiteral<"developer">]>;
1272
+ content: Type.TString;
1273
+ }>>;
1274
+ }>;
1275
+ errorData: Type.TUnion<[Type.TRecord<"^.*$", Type.TAny>, Type.TNull]>;
1276
+ resultData: Type.TUnion<[Type.TObject<{
1277
+ tokensUsed: Type.TNumber;
1278
+ output: Type.TObject<{
1279
+ role: Type.TUnion<[Type.TLiteral<"user">, Type.TLiteral<"assistant">, Type.TLiteral<"developer">]>;
1280
+ content: Type.TString;
1281
+ }>;
1282
+ }>, Type.TNull]>;
1283
+ createdOn: import("../../schemas/common.js").TDateType;
1284
+ startedOn: Type.TUnion<[import("../../schemas/common.js").TDateType, Type.TNull]>;
1285
+ completedOn: Type.TUnion<[import("../../schemas/common.js").TDateType, Type.TNull]>;
1286
+ status: Type.TNumber;
1287
+ }>, Type.TObject<{
1288
+ id: Type.TString;
1289
+ userId: Type.TString;
1290
+ previousId: Type.TUnion<[Type.TString, Type.TNull]>;
1291
+ type: Type.TLiteral<"argument_build_finalize">;
1292
+ data: Type.TObject<{
1293
+ argumentId: Type.TString;
1294
+ version: Type.TNumber;
1295
+ conversationResponseId: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
1296
+ responseId: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
1297
+ newPrompts: Type.TArray<Type.TObject<{
1298
+ role: Type.TUnion<[Type.TLiteral<"user">, Type.TLiteral<"assistant">, Type.TLiteral<"developer">]>;
1299
+ content: Type.TString;
1300
+ }>>;
1301
+ }>;
1302
+ errorData: Type.TUnion<[Type.TRecord<"^.*$", Type.TAny>, Type.TNull]>;
1303
+ resultData: Type.TUnion<[Type.TObject<{
1304
+ tokensUsed: Type.TNumber;
1305
+ output: Type.TObject<{
1306
+ role: Type.TUnion<[Type.TLiteral<"user">, Type.TLiteral<"assistant">, Type.TLiteral<"developer">]>;
1307
+ content: Type.TString;
1308
+ }>;
1309
+ }>, Type.TNull]>;
1310
+ createdOn: import("../../schemas/common.js").TDateType;
1311
+ startedOn: Type.TUnion<[import("../../schemas/common.js").TDateType, Type.TNull]>;
1312
+ completedOn: Type.TUnion<[import("../../schemas/common.js").TDateType, Type.TNull]>;
1313
+ status: Type.TNumber;
1314
+ }>, Type.TObject<{
1315
+ id: Type.TString;
1316
+ userId: Type.TString;
1317
+ previousId: Type.TUnion<[Type.TString, Type.TNull]>;
1318
+ type: Type.TLiteral<"argument_build_simulate_user">;
1319
+ data: Type.TObject<{
1320
+ argumentId: Type.TString;
1321
+ version: Type.TNumber;
1322
+ conversationResponseId: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
1323
+ responseId: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
1324
+ newPrompts: Type.TArray<Type.TObject<{
1325
+ role: Type.TUnion<[Type.TLiteral<"user">, Type.TLiteral<"assistant">, Type.TLiteral<"developer">]>;
1326
+ content: Type.TString;
1327
+ }>>;
1328
+ }>;
1329
+ errorData: Type.TUnion<[Type.TRecord<"^.*$", Type.TAny>, Type.TNull]>;
1330
+ resultData: Type.TUnion<[Type.TObject<{
1331
+ tokensUsed: Type.TNumber;
1332
+ output: Type.TObject<{
1333
+ role: Type.TUnion<[Type.TLiteral<"user">, Type.TLiteral<"assistant">, Type.TLiteral<"developer">]>;
1334
+ content: Type.TString;
1335
+ }>;
1336
+ }>, Type.TNull]>;
1337
+ createdOn: import("../../schemas/common.js").TDateType;
1338
+ startedOn: Type.TUnion<[import("../../schemas/common.js").TDateType, Type.TNull]>;
1339
+ completedOn: Type.TUnion<[import("../../schemas/common.js").TDateType, Type.TNull]>;
1340
+ status: Type.TNumber;
1341
+ }>]>>;
1342
+ needsNormalization: Type.TBoolean;
1343
+ }>>>;
1344
+ //# sourceMappingURL=index.d.ts.map