@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.
- package/LICENSE +21 -0
- package/README.md +32 -0
- package/dist/api-client/argument/batch.d.ts +661 -0
- package/dist/api-client/argument/batch.d.ts.map +1 -0
- package/dist/api-client/argument/batch.js +14 -0
- package/dist/api-client/argument/batch.js.map +1 -0
- package/dist/api-client/argument/claims.d.ts +175 -0
- package/dist/api-client/argument/claims.d.ts.map +1 -0
- package/dist/api-client/argument/claims.js +20 -0
- package/dist/api-client/argument/claims.js.map +1 -0
- package/dist/api-client/argument/index.d.ts +1344 -0
- package/dist/api-client/argument/index.d.ts.map +1 -0
- package/dist/api-client/argument/index.js +62 -0
- package/dist/api-client/argument/index.js.map +1 -0
- package/dist/api-client/argument/logic/index.d.ts +861 -0
- package/dist/api-client/argument/logic/index.d.ts.map +1 -0
- package/dist/api-client/argument/logic/index.js +73 -0
- package/dist/api-client/argument/logic/index.js.map +1 -0
- package/dist/api-client/argument/logic/repair.d.ts +182 -0
- package/dist/api-client/argument/logic/repair.d.ts.map +1 -0
- package/dist/api-client/argument/logic/repair.js +9 -0
- package/dist/api-client/argument/logic/repair.js.map +1 -0
- package/dist/api-client/argument/reactions.d.ts +38 -0
- package/dist/api-client/argument/reactions.d.ts.map +1 -0
- package/dist/api-client/argument/reactions.js +9 -0
- package/dist/api-client/argument/reactions.js.map +1 -0
- package/dist/api-client/argument/reviews.d.ts +183 -0
- package/dist/api-client/argument/reviews.d.ts.map +1 -0
- package/dist/api-client/argument/reviews.js +21 -0
- package/dist/api-client/argument/reviews.js.map +1 -0
- package/dist/api-client/search.d.ts +64 -0
- package/dist/api-client/search.d.ts.map +1 -0
- package/dist/api-client/search.js +19 -0
- package/dist/api-client/search.js.map +1 -0
- package/dist/api-client/user/claims.d.ts +128 -0
- package/dist/api-client/user/claims.d.ts.map +1 -0
- package/dist/api-client/user/claims.js +10 -0
- package/dist/api-client/user/claims.js.map +1 -0
- package/dist/api-client/user/sources.d.ts +41 -0
- package/dist/api-client/user/sources.d.ts.map +1 -0
- package/dist/api-client/user/sources.js +7 -0
- package/dist/api-client/user/sources.js.map +1 -0
- package/dist/checksum.d.ts +2 -0
- package/dist/checksum.d.ts.map +1 -0
- package/dist/checksum.js +32 -0
- package/dist/checksum.js.map +1 -0
- package/dist/consts/argument.d.ts +9 -0
- package/dist/consts/argument.d.ts.map +1 -0
- package/dist/consts/argument.js +17 -0
- package/dist/consts/argument.js.map +1 -0
- package/dist/consts/identity.d.ts +3 -0
- package/dist/consts/identity.d.ts.map +1 -0
- package/dist/consts/identity.js +6 -0
- package/dist/consts/identity.js.map +1 -0
- package/dist/consts/index.d.ts +6 -0
- package/dist/consts/index.d.ts.map +1 -0
- package/dist/consts/index.js +6 -0
- package/dist/consts/index.js.map +1 -0
- package/dist/consts/roles.d.ts +27 -0
- package/dist/consts/roles.d.ts.map +1 -0
- package/dist/consts/roles.js +52 -0
- package/dist/consts/roles.js.map +1 -0
- package/dist/consts/task-status.d.ts +8 -0
- package/dist/consts/task-status.d.ts.map +1 -0
- package/dist/consts/task-status.js +14 -0
- package/dist/consts/task-status.js.map +1 -0
- package/dist/consts/user-tiers.d.ts +7 -0
- package/dist/consts/user-tiers.d.ts.map +1 -0
- package/dist/consts/user-tiers.js +60 -0
- package/dist/consts/user-tiers.js.map +1 -0
- package/dist/engine/engine.d.ts +94 -0
- package/dist/engine/engine.d.ts.map +1 -0
- package/dist/engine/engine.js +313 -0
- package/dist/engine/engine.js.map +1 -0
- package/dist/engine/library-adapters.d.ts +12 -0
- package/dist/engine/library-adapters.d.ts.map +1 -0
- package/dist/engine/library-adapters.js +11 -0
- package/dist/engine/library-adapters.js.map +1 -0
- package/dist/engine/mutations/claims.d.ts +10 -0
- package/dist/engine/mutations/claims.d.ts.map +1 -0
- package/dist/engine/mutations/claims.js +22 -0
- package/dist/engine/mutations/claims.js.map +1 -0
- package/dist/engine/mutations/expressions.d.ts +109 -0
- package/dist/engine/mutations/expressions.d.ts.map +1 -0
- package/dist/engine/mutations/expressions.js +277 -0
- package/dist/engine/mutations/expressions.js.map +1 -0
- package/dist/engine/mutations/index.d.ts +7 -0
- package/dist/engine/mutations/index.d.ts.map +1 -0
- package/dist/engine/mutations/index.js +6 -0
- package/dist/engine/mutations/index.js.map +1 -0
- package/dist/engine/mutations/premises.d.ts +25 -0
- package/dist/engine/mutations/premises.d.ts.map +1 -0
- package/dist/engine/mutations/premises.js +51 -0
- package/dist/engine/mutations/premises.js.map +1 -0
- package/dist/engine/mutations/types.d.ts +11 -0
- package/dist/engine/mutations/types.d.ts.map +1 -0
- package/dist/engine/mutations/types.js +2 -0
- package/dist/engine/mutations/types.js.map +1 -0
- package/dist/engine/mutations/variables.d.ts +27 -0
- package/dist/engine/mutations/variables.d.ts.map +1 -0
- package/dist/engine/mutations/variables.js +16 -0
- package/dist/engine/mutations/variables.js.map +1 -0
- package/dist/engine/optimistic/index.d.ts +4 -0
- package/dist/engine/optimistic/index.d.ts.map +1 -0
- package/dist/engine/optimistic/index.js +3 -0
- package/dist/engine/optimistic/index.js.map +1 -0
- package/dist/engine/optimistic/reconciliation.d.ts +32 -0
- package/dist/engine/optimistic/reconciliation.d.ts.map +1 -0
- package/dist/engine/optimistic/reconciliation.js +140 -0
- package/dist/engine/optimistic/reconciliation.js.map +1 -0
- package/dist/engine/optimistic/types.d.ts +25 -0
- package/dist/engine/optimistic/types.d.ts.map +1 -0
- package/dist/engine/optimistic/types.js +12 -0
- package/dist/engine/optimistic/types.js.map +1 -0
- package/dist/engine/optimistic/verification.d.ts +13 -0
- package/dist/engine/optimistic/verification.d.ts.map +1 -0
- package/dist/engine/optimistic/verification.js +71 -0
- package/dist/engine/optimistic/verification.js.map +1 -0
- package/dist/engine/review/evaluation.d.ts +27 -0
- package/dist/engine/review/evaluation.d.ts.map +1 -0
- package/dist/engine/review/evaluation.js +122 -0
- package/dist/engine/review/evaluation.js.map +1 -0
- package/dist/engine/review/fingerprint.d.ts +9 -0
- package/dist/engine/review/fingerprint.d.ts.map +1 -0
- package/dist/engine/review/fingerprint.js +27 -0
- package/dist/engine/review/fingerprint.js.map +1 -0
- package/dist/engine/review/overlay.d.ts +19 -0
- package/dist/engine/review/overlay.d.ts.map +1 -0
- package/dist/engine/review/overlay.js +81 -0
- package/dist/engine/review/overlay.js.map +1 -0
- package/dist/engine/review/reasons.d.ts +15 -0
- package/dist/engine/review/reasons.d.ts.map +1 -0
- package/dist/engine/review/reasons.js +211 -0
- package/dist/engine/review/reasons.js.map +1 -0
- package/dist/engine/review/review-engine.d.ts +134 -0
- package/dist/engine/review/review-engine.d.ts.map +1 -0
- package/dist/engine/review/review-engine.js +590 -0
- package/dist/engine/review/review-engine.js.map +1 -0
- package/dist/engine/review/review-store.d.ts +63 -0
- package/dist/engine/review/review-store.d.ts.map +1 -0
- package/dist/engine/review/review-store.js +174 -0
- package/dist/engine/review/review-store.js.map +1 -0
- package/dist/engine/review/step-queue.d.ts +27 -0
- package/dist/engine/review/step-queue.d.ts.map +1 -0
- package/dist/engine/review/step-queue.js +34 -0
- package/dist/engine/review/step-queue.js.map +1 -0
- package/dist/engine/review/types.d.ts +16 -0
- package/dist/engine/review/types.d.ts.map +1 -0
- package/dist/engine/review/types.js +2 -0
- package/dist/engine/review/types.js.map +1 -0
- package/dist/engine/review/wire.d.ts +8 -0
- package/dist/engine/review/wire.d.ts.map +1 -0
- package/dist/engine/review/wire.js +97 -0
- package/dist/engine/review/wire.js.map +1 -0
- package/dist/engine/text-tree.d.ts +35 -0
- package/dist/engine/text-tree.d.ts.map +1 -0
- package/dist/engine/text-tree.js +137 -0
- package/dist/engine/text-tree.js.map +1 -0
- package/dist/engine/types.d.ts +42 -0
- package/dist/engine/types.d.ts.map +1 -0
- package/dist/engine/types.js +2 -0
- package/dist/engine/types.js.map +1 -0
- package/dist/errors.d.ts +27 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +61 -0
- package/dist/errors.js.map +1 -0
- package/dist/schemas/api/argument/batch/change-edge-operator.d.ts +281 -0
- package/dist/schemas/api/argument/batch/change-edge-operator.d.ts.map +1 -0
- package/dist/schemas/api/argument/batch/change-edge-operator.js +19 -0
- package/dist/schemas/api/argument/batch/change-edge-operator.js.map +1 -0
- package/dist/schemas/api/argument/batch/create-expression-with-operator.d.ts +280 -0
- package/dist/schemas/api/argument/batch/create-expression-with-operator.d.ts.map +1 -0
- package/dist/schemas/api/argument/batch/create-expression-with-operator.js +22 -0
- package/dist/schemas/api/argument/batch/create-expression-with-operator.js.map +1 -0
- package/dist/schemas/api/argument/batch/provision.d.ts +112 -0
- package/dist/schemas/api/argument/batch/provision.d.ts.map +1 -0
- package/dist/schemas/api/argument/batch/provision.js +10 -0
- package/dist/schemas/api/argument/batch/provision.js.map +1 -0
- package/dist/schemas/api/argument/build.d.ts +50 -0
- package/dist/schemas/api/argument/build.d.ts.map +1 -0
- package/dist/schemas/api/argument/build.js +41 -0
- package/dist/schemas/api/argument/build.js.map +1 -0
- package/dist/schemas/api/argument/claims.d.ts +151 -0
- package/dist/schemas/api/argument/claims.d.ts.map +1 -0
- package/dist/schemas/api/argument/claims.js +24 -0
- package/dist/schemas/api/argument/claims.js.map +1 -0
- package/dist/schemas/api/argument/index.d.ts +682 -0
- package/dist/schemas/api/argument/index.d.ts.map +1 -0
- package/dist/schemas/api/argument/index.js +51 -0
- package/dist/schemas/api/argument/index.js.map +1 -0
- package/dist/schemas/api/argument/logic.d.ts +205 -0
- package/dist/schemas/api/argument/logic.d.ts.map +1 -0
- package/dist/schemas/api/argument/logic.js +77 -0
- package/dist/schemas/api/argument/logic.js.map +1 -0
- package/dist/schemas/api/argument/repair.d.ts +195 -0
- package/dist/schemas/api/argument/repair.d.ts.map +1 -0
- package/dist/schemas/api/argument/repair.js +35 -0
- package/dist/schemas/api/argument/repair.js.map +1 -0
- package/dist/schemas/api/claims.d.ts +250 -0
- package/dist/schemas/api/claims.d.ts.map +1 -0
- package/dist/schemas/api/claims.js +20 -0
- package/dist/schemas/api/claims.js.map +1 -0
- package/dist/schemas/api/reaction/index.d.ts +46 -0
- package/dist/schemas/api/reaction/index.d.ts.map +1 -0
- package/dist/schemas/api/reaction/index.js +15 -0
- package/dist/schemas/api/reaction/index.js.map +1 -0
- package/dist/schemas/api/review/index.d.ts +164 -0
- package/dist/schemas/api/review/index.d.ts.map +1 -0
- package/dist/schemas/api/review/index.js +29 -0
- package/dist/schemas/api/review/index.js.map +1 -0
- package/dist/schemas/api/search.d.ts +109 -0
- package/dist/schemas/api/search.d.ts.map +1 -0
- package/dist/schemas/api/search.js +60 -0
- package/dist/schemas/api/search.js.map +1 -0
- package/dist/schemas/api/sources.d.ts +108 -0
- package/dist/schemas/api/sources.d.ts.map +1 -0
- package/dist/schemas/api/sources.js +28 -0
- package/dist/schemas/api/sources.js.map +1 -0
- package/dist/schemas/api/user/index.d.ts +16 -0
- package/dist/schemas/api/user/index.d.ts.map +1 -0
- package/dist/schemas/api/user/index.js +15 -0
- package/dist/schemas/api/user/index.js.map +1 -0
- package/dist/schemas/common.d.ts +50 -0
- package/dist/schemas/common.d.ts.map +1 -0
- package/dist/schemas/common.js +77 -0
- package/dist/schemas/common.js.map +1 -0
- package/dist/schemas/gpt.d.ts +10 -0
- package/dist/schemas/gpt.d.ts.map +1 -0
- package/dist/schemas/gpt.js +27 -0
- package/dist/schemas/gpt.js.map +1 -0
- package/dist/schemas/index.d.ts +8 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +8 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/integrations/index.d.ts +159 -0
- package/dist/schemas/integrations/index.d.ts.map +1 -0
- package/dist/schemas/integrations/index.js +72 -0
- package/dist/schemas/integrations/index.js.map +1 -0
- package/dist/schemas/logic.d.ts +195 -0
- package/dist/schemas/logic.d.ts.map +1 -0
- package/dist/schemas/logic.js +77 -0
- package/dist/schemas/logic.js.map +1 -0
- package/dist/schemas/model/arguments.d.ts +457 -0
- package/dist/schemas/model/arguments.d.ts.map +1 -0
- package/dist/schemas/model/arguments.js +100 -0
- package/dist/schemas/model/arguments.js.map +1 -0
- package/dist/schemas/model/claims.d.ts +53 -0
- package/dist/schemas/model/claims.d.ts.map +1 -0
- package/dist/schemas/model/claims.js +40 -0
- package/dist/schemas/model/claims.js.map +1 -0
- package/dist/schemas/model/forks.d.ts +63 -0
- package/dist/schemas/model/forks.d.ts.map +1 -0
- package/dist/schemas/model/forks.js +63 -0
- package/dist/schemas/model/forks.js.map +1 -0
- package/dist/schemas/model/index.d.ts +6 -0
- package/dist/schemas/model/index.d.ts.map +1 -0
- package/dist/schemas/model/index.js +6 -0
- package/dist/schemas/model/index.js.map +1 -0
- package/dist/schemas/model/references.d.ts +49 -0
- package/dist/schemas/model/references.d.ts.map +1 -0
- package/dist/schemas/model/references.js +46 -0
- package/dist/schemas/model/references.js.map +1 -0
- package/dist/schemas/model/review.d.ts +56 -0
- package/dist/schemas/model/review.d.ts.map +1 -0
- package/dist/schemas/model/review.js +50 -0
- package/dist/schemas/model/review.js.map +1 -0
- package/dist/schemas/model/sources.d.ts +456 -0
- package/dist/schemas/model/sources.d.ts.map +1 -0
- package/dist/schemas/model/sources.js +27 -0
- package/dist/schemas/model/sources.js.map +1 -0
- package/dist/schemas/model/users.d.ts +150 -0
- package/dist/schemas/model/users.d.ts.map +1 -0
- package/dist/schemas/model/users.js +136 -0
- package/dist/schemas/model/users.js.map +1 -0
- package/dist/schemas/model.d.ts +2 -0
- package/dist/schemas/model.d.ts.map +1 -0
- package/dist/schemas/model.js +2 -0
- package/dist/schemas/model.js.map +1 -0
- package/dist/schemas/review.d.ts +1403 -0
- package/dist/schemas/review.d.ts.map +1 -0
- package/dist/schemas/review.js +232 -0
- package/dist/schemas/review.js.map +1 -0
- package/dist/schemas/snapshot.d.ts +165 -0
- package/dist/schemas/snapshot.d.ts.map +1 -0
- package/dist/schemas/snapshot.js +80 -0
- package/dist/schemas/snapshot.js.map +1 -0
- package/dist/schemas/tasks.d.ts +551 -0
- package/dist/schemas/tasks.d.ts.map +1 -0
- package/dist/schemas/tasks.js +113 -0
- package/dist/schemas/tasks.js.map +1 -0
- package/dist/utils/embedding-text.d.ts +15 -0
- package/dist/utils/embedding-text.d.ts.map +1 -0
- package/dist/utils/embedding-text.js +86 -0
- package/dist/utils/embedding-text.js.map +1 -0
- package/dist/utils/format-review-share.d.ts +7 -0
- package/dist/utils/format-review-share.d.ts.map +1 -0
- package/dist/utils/format-review-share.js +16 -0
- package/dist/utils/format-review-share.js.map +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/tasks/utils.d.ts +4 -0
- package/dist/utils/tasks/utils.d.ts.map +1 -0
- package/dist/utils/tasks/utils.js +12 -0
- package/dist/utils/tasks/utils.js.map +1 -0
- package/dist/utils/utils.d.ts +25 -0
- package/dist/utils/utils.d.ts.map +1 -0
- package/dist/utils/utils.js +115 -0
- package/dist/utils/utils.js.map +1 -0
- package/package.json +128 -0
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
import { Type, type Static } from "typebox";
|
|
2
|
+
export declare const CreateExpressionWithOperatorRequestSchema: Type.TObject<{
|
|
3
|
+
premiseId: Type.TString;
|
|
4
|
+
targetExpressionId: Type.TString;
|
|
5
|
+
operatorType: Type.TUnion<[Type.TLiteral<"not">, Type.TLiteral<"and">, Type.TLiteral<"or">, Type.TLiteral<"implies">, Type.TLiteral<"iff">]>;
|
|
6
|
+
direction: Type.TUnion<[Type.TLiteral<"before">, Type.TLiteral<"after">]>;
|
|
7
|
+
type: Type.TUnion<[Type.TLiteral<"variable">, Type.TLiteral<"operator">, Type.TLiteral<"formula">]>;
|
|
8
|
+
variableId: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
9
|
+
}>;
|
|
10
|
+
export type TCreateExpressionWithOperatorRequest = Static<typeof CreateExpressionWithOperatorRequestSchema>;
|
|
11
|
+
export declare const CreateExpressionWithOperatorResponseSchema: Type.TObject<{
|
|
12
|
+
snapshot: Type.TObject<{
|
|
13
|
+
argument: Type.TIntersect<[Type.TObject<{
|
|
14
|
+
createdOn: import("../../../common.js").TDateType;
|
|
15
|
+
creatorId: Type.TString;
|
|
16
|
+
title: Type.TString;
|
|
17
|
+
published: Type.TBoolean;
|
|
18
|
+
publishedOn: Type.TUnion<[import("../../../common.js").TDateType, Type.TNull]>;
|
|
19
|
+
forkId: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
20
|
+
digest: Type.TString;
|
|
21
|
+
description: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
22
|
+
id: Type.TString;
|
|
23
|
+
version: Type.TNumber;
|
|
24
|
+
titleContentHash: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
25
|
+
popularity: Type.TNumber;
|
|
26
|
+
platform: Type.TUnion<[Type.TLiteral<"twitter">, Type.TLiteral<"reddit">, Type.TLiteral<"raw_text">, Type.TLiteral<"manual">]>;
|
|
27
|
+
platformData: Type.TUnion<[Type.TUnion<[Type.TObject<{
|
|
28
|
+
argumentTitle: Type.TString;
|
|
29
|
+
textContent: Type.TNull;
|
|
30
|
+
}>, Type.TObject<{
|
|
31
|
+
argumentTitle: Type.TOptional<Type.TString>;
|
|
32
|
+
textContent: Type.TString;
|
|
33
|
+
postUrl: Type.TString;
|
|
34
|
+
importMode: Type.TUnion<[Type.TLiteral<"self_author">, Type.TLiteral<"other_author">, Type.TLiteral<"copy_contents">]>;
|
|
35
|
+
embedResponse: Type.TOptional<Type.TObject<{
|
|
36
|
+
url: Type.TString;
|
|
37
|
+
authorUrl: Type.TString;
|
|
38
|
+
authorName: Type.TString;
|
|
39
|
+
html: Type.TString;
|
|
40
|
+
width: Type.TOptional<Type.TNumber>;
|
|
41
|
+
height: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
42
|
+
type: Type.TOptional<Type.TString>;
|
|
43
|
+
version: Type.TOptional<Type.TString>;
|
|
44
|
+
providerName: Type.TOptional<Type.TString>;
|
|
45
|
+
providerUrl: Type.TOptional<Type.TString>;
|
|
46
|
+
cacheAge: Type.TOptional<Type.TString>;
|
|
47
|
+
}>>;
|
|
48
|
+
username: Type.TOptional<Type.TString>;
|
|
49
|
+
}>, Type.TObject<{
|
|
50
|
+
argumentTitle: Type.TOptional<Type.TString>;
|
|
51
|
+
textContent: Type.TString;
|
|
52
|
+
postUrl: Type.TString;
|
|
53
|
+
username: Type.TOptional<Type.TString>;
|
|
54
|
+
}>, Type.TObject<{
|
|
55
|
+
argumentTitle: Type.TOptional<Type.TString>;
|
|
56
|
+
textContent: Type.TString;
|
|
57
|
+
}>]>, Type.TNull]>;
|
|
58
|
+
platformUsername: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
59
|
+
}>, Type.TObject<{
|
|
60
|
+
checksum: Type.TOptional<Type.TString>;
|
|
61
|
+
descendantChecksum: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
62
|
+
combinedChecksum: Type.TOptional<Type.TString>;
|
|
63
|
+
}>]>;
|
|
64
|
+
variables: Type.TObject<{
|
|
65
|
+
variables: Type.TArray<Type.TUnion<[Type.TIntersect<[Type.TObject<{
|
|
66
|
+
symbol: Type.TString;
|
|
67
|
+
createdOn: import("../../../common.js").TDateType;
|
|
68
|
+
creatorId: Type.TString;
|
|
69
|
+
claimId: Type.TString;
|
|
70
|
+
claimVersion: Type.TNumber;
|
|
71
|
+
argumentId: Type.TString;
|
|
72
|
+
argumentVersion: Type.TNumber;
|
|
73
|
+
id: Type.TString;
|
|
74
|
+
}>, Type.TObject<{
|
|
75
|
+
checksum: Type.TOptional<Type.TString>;
|
|
76
|
+
descendantChecksum: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
77
|
+
combinedChecksum: Type.TOptional<Type.TString>;
|
|
78
|
+
}>]>, Type.TIntersect<[Type.TObject<{
|
|
79
|
+
symbol: Type.TString;
|
|
80
|
+
createdOn: import("../../../common.js").TDateType;
|
|
81
|
+
creatorId: Type.TString;
|
|
82
|
+
boundPremiseId: Type.TString;
|
|
83
|
+
boundArgumentId: Type.TString;
|
|
84
|
+
boundArgumentVersion: Type.TNumber;
|
|
85
|
+
argumentId: Type.TString;
|
|
86
|
+
argumentVersion: Type.TNumber;
|
|
87
|
+
id: Type.TString;
|
|
88
|
+
}>, Type.TObject<{
|
|
89
|
+
checksum: Type.TOptional<Type.TString>;
|
|
90
|
+
descendantChecksum: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
91
|
+
combinedChecksum: Type.TOptional<Type.TString>;
|
|
92
|
+
}>]>]>>;
|
|
93
|
+
config: Type.TOptional<Type.TUnknown>;
|
|
94
|
+
}>;
|
|
95
|
+
premises: Type.TArray<Type.TObject<{
|
|
96
|
+
premise: Type.TIntersect<[Type.TObject<{
|
|
97
|
+
createdOn: Type.TOptional<import("../../../common.js").TDateType>;
|
|
98
|
+
creatorId: Type.TOptional<Type.TString>;
|
|
99
|
+
argumentId: Type.TString;
|
|
100
|
+
argumentVersion: Type.TNumber;
|
|
101
|
+
role: Type.TUnion<[Type.TLiteral<"conclusion">, Type.TLiteral<"supporting">]>;
|
|
102
|
+
title: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
103
|
+
id: Type.TString;
|
|
104
|
+
}>, Type.TObject<{
|
|
105
|
+
checksum: Type.TOptional<Type.TString>;
|
|
106
|
+
descendantChecksum: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
107
|
+
combinedChecksum: Type.TOptional<Type.TString>;
|
|
108
|
+
}>]>;
|
|
109
|
+
rootExpressionId: Type.TOptional<Type.TString>;
|
|
110
|
+
expressions: Type.TObject<{
|
|
111
|
+
expressions: Type.TArray<Type.TUnion<[Type.TIntersect<[Type.TObject<{
|
|
112
|
+
id: Type.TString;
|
|
113
|
+
argumentId: Type.TString;
|
|
114
|
+
argumentVersion: Type.TNumber;
|
|
115
|
+
premiseId: Type.TString;
|
|
116
|
+
parentId: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
117
|
+
position: Type.TNumber;
|
|
118
|
+
checksum: Type.TString;
|
|
119
|
+
descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
120
|
+
combinedChecksum: Type.TString;
|
|
121
|
+
type: Type.TLiteral<"variable">;
|
|
122
|
+
variableId: Type.TString;
|
|
123
|
+
}>, Type.TObject<{
|
|
124
|
+
createdOn: import("../../../common.js").TDateType;
|
|
125
|
+
creatorId: Type.TString;
|
|
126
|
+
}>, Type.TObject<{
|
|
127
|
+
operator: Type.TNull;
|
|
128
|
+
}>]>, Type.TIntersect<[Type.TObject<{
|
|
129
|
+
id: Type.TString;
|
|
130
|
+
argumentId: Type.TString;
|
|
131
|
+
argumentVersion: Type.TNumber;
|
|
132
|
+
premiseId: Type.TString;
|
|
133
|
+
parentId: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
134
|
+
position: Type.TNumber;
|
|
135
|
+
checksum: Type.TString;
|
|
136
|
+
descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
137
|
+
combinedChecksum: Type.TString;
|
|
138
|
+
type: Type.TLiteral<"operator">;
|
|
139
|
+
operator: Type.TUnion<[Type.TLiteral<"not">, Type.TLiteral<"and">, Type.TLiteral<"or">, Type.TLiteral<"implies">, Type.TLiteral<"iff">]>;
|
|
140
|
+
}>, Type.TObject<{
|
|
141
|
+
createdOn: import("../../../common.js").TDateType;
|
|
142
|
+
creatorId: Type.TString;
|
|
143
|
+
}>, Type.TObject<{
|
|
144
|
+
variableId: Type.TNull;
|
|
145
|
+
}>]>, Type.TIntersect<[Type.TObject<{
|
|
146
|
+
id: Type.TString;
|
|
147
|
+
argumentId: Type.TString;
|
|
148
|
+
argumentVersion: Type.TNumber;
|
|
149
|
+
premiseId: Type.TString;
|
|
150
|
+
parentId: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
151
|
+
position: Type.TNumber;
|
|
152
|
+
checksum: Type.TString;
|
|
153
|
+
descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
154
|
+
combinedChecksum: Type.TString;
|
|
155
|
+
type: Type.TLiteral<"formula">;
|
|
156
|
+
}>, Type.TObject<{
|
|
157
|
+
createdOn: import("../../../common.js").TDateType;
|
|
158
|
+
creatorId: Type.TString;
|
|
159
|
+
}>, Type.TObject<{
|
|
160
|
+
variableId: Type.TNull;
|
|
161
|
+
operator: Type.TNull;
|
|
162
|
+
}>]>]>>;
|
|
163
|
+
config: Type.TOptional<Type.TUnknown>;
|
|
164
|
+
}>;
|
|
165
|
+
config: Type.TOptional<Type.TUnknown>;
|
|
166
|
+
}>>;
|
|
167
|
+
conclusionPremiseId: Type.TOptional<Type.TString>;
|
|
168
|
+
sources: Type.TOptional<Type.TObject<{
|
|
169
|
+
variableSourceAssociations: Type.TArray<Type.TUnknown>;
|
|
170
|
+
expressionSourceAssociations: Type.TArray<Type.TUnknown>;
|
|
171
|
+
}>>;
|
|
172
|
+
config: Type.TOptional<Type.TUnknown>;
|
|
173
|
+
}>;
|
|
174
|
+
created: Type.TArray<Type.TUnion<[Type.TIntersect<[Type.TObject<{
|
|
175
|
+
id: Type.TString;
|
|
176
|
+
argumentId: Type.TString;
|
|
177
|
+
argumentVersion: Type.TNumber;
|
|
178
|
+
premiseId: Type.TString;
|
|
179
|
+
parentId: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
180
|
+
position: Type.TNumber;
|
|
181
|
+
checksum: Type.TString;
|
|
182
|
+
descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
183
|
+
combinedChecksum: Type.TString;
|
|
184
|
+
type: Type.TLiteral<"variable">;
|
|
185
|
+
variableId: Type.TString;
|
|
186
|
+
}>, Type.TObject<{
|
|
187
|
+
createdOn: import("../../../common.js").TDateType;
|
|
188
|
+
creatorId: Type.TString;
|
|
189
|
+
}>, Type.TObject<{
|
|
190
|
+
operator: Type.TNull;
|
|
191
|
+
}>]>, Type.TIntersect<[Type.TObject<{
|
|
192
|
+
id: Type.TString;
|
|
193
|
+
argumentId: Type.TString;
|
|
194
|
+
argumentVersion: Type.TNumber;
|
|
195
|
+
premiseId: Type.TString;
|
|
196
|
+
parentId: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
197
|
+
position: Type.TNumber;
|
|
198
|
+
checksum: Type.TString;
|
|
199
|
+
descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
200
|
+
combinedChecksum: Type.TString;
|
|
201
|
+
type: Type.TLiteral<"operator">;
|
|
202
|
+
operator: Type.TUnion<[Type.TLiteral<"not">, Type.TLiteral<"and">, Type.TLiteral<"or">, Type.TLiteral<"implies">, Type.TLiteral<"iff">]>;
|
|
203
|
+
}>, Type.TObject<{
|
|
204
|
+
createdOn: import("../../../common.js").TDateType;
|
|
205
|
+
creatorId: Type.TString;
|
|
206
|
+
}>, Type.TObject<{
|
|
207
|
+
variableId: Type.TNull;
|
|
208
|
+
}>]>, Type.TIntersect<[Type.TObject<{
|
|
209
|
+
id: Type.TString;
|
|
210
|
+
argumentId: Type.TString;
|
|
211
|
+
argumentVersion: Type.TNumber;
|
|
212
|
+
premiseId: Type.TString;
|
|
213
|
+
parentId: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
214
|
+
position: Type.TNumber;
|
|
215
|
+
checksum: Type.TString;
|
|
216
|
+
descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
217
|
+
combinedChecksum: Type.TString;
|
|
218
|
+
type: Type.TLiteral<"formula">;
|
|
219
|
+
}>, Type.TObject<{
|
|
220
|
+
createdOn: import("../../../common.js").TDateType;
|
|
221
|
+
creatorId: Type.TString;
|
|
222
|
+
}>, Type.TObject<{
|
|
223
|
+
variableId: Type.TNull;
|
|
224
|
+
operator: Type.TNull;
|
|
225
|
+
}>]>]>>;
|
|
226
|
+
modified: Type.TArray<Type.TUnion<[Type.TIntersect<[Type.TObject<{
|
|
227
|
+
id: Type.TString;
|
|
228
|
+
argumentId: Type.TString;
|
|
229
|
+
argumentVersion: Type.TNumber;
|
|
230
|
+
premiseId: Type.TString;
|
|
231
|
+
parentId: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
232
|
+
position: Type.TNumber;
|
|
233
|
+
checksum: Type.TString;
|
|
234
|
+
descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
235
|
+
combinedChecksum: Type.TString;
|
|
236
|
+
type: Type.TLiteral<"variable">;
|
|
237
|
+
variableId: Type.TString;
|
|
238
|
+
}>, Type.TObject<{
|
|
239
|
+
createdOn: import("../../../common.js").TDateType;
|
|
240
|
+
creatorId: Type.TString;
|
|
241
|
+
}>, Type.TObject<{
|
|
242
|
+
operator: Type.TNull;
|
|
243
|
+
}>]>, Type.TIntersect<[Type.TObject<{
|
|
244
|
+
id: Type.TString;
|
|
245
|
+
argumentId: Type.TString;
|
|
246
|
+
argumentVersion: Type.TNumber;
|
|
247
|
+
premiseId: Type.TString;
|
|
248
|
+
parentId: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
249
|
+
position: Type.TNumber;
|
|
250
|
+
checksum: Type.TString;
|
|
251
|
+
descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
252
|
+
combinedChecksum: Type.TString;
|
|
253
|
+
type: Type.TLiteral<"operator">;
|
|
254
|
+
operator: Type.TUnion<[Type.TLiteral<"not">, Type.TLiteral<"and">, Type.TLiteral<"or">, Type.TLiteral<"implies">, Type.TLiteral<"iff">]>;
|
|
255
|
+
}>, Type.TObject<{
|
|
256
|
+
createdOn: import("../../../common.js").TDateType;
|
|
257
|
+
creatorId: Type.TString;
|
|
258
|
+
}>, Type.TObject<{
|
|
259
|
+
variableId: Type.TNull;
|
|
260
|
+
}>]>, Type.TIntersect<[Type.TObject<{
|
|
261
|
+
id: Type.TString;
|
|
262
|
+
argumentId: Type.TString;
|
|
263
|
+
argumentVersion: Type.TNumber;
|
|
264
|
+
premiseId: Type.TString;
|
|
265
|
+
parentId: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
266
|
+
position: Type.TNumber;
|
|
267
|
+
checksum: Type.TString;
|
|
268
|
+
descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
269
|
+
combinedChecksum: Type.TString;
|
|
270
|
+
type: Type.TLiteral<"formula">;
|
|
271
|
+
}>, Type.TObject<{
|
|
272
|
+
createdOn: import("../../../common.js").TDateType;
|
|
273
|
+
creatorId: Type.TString;
|
|
274
|
+
}>, Type.TObject<{
|
|
275
|
+
variableId: Type.TNull;
|
|
276
|
+
operator: Type.TNull;
|
|
277
|
+
}>]>]>>;
|
|
278
|
+
}>;
|
|
279
|
+
export type TCreateExpressionWithOperatorResponse = Static<typeof CreateExpressionWithOperatorResponseSchema>;
|
|
280
|
+
//# sourceMappingURL=create-expression-with-operator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-expression-with-operator.d.ts","sourceRoot":"","sources":["../../../../../src/schemas/api/argument/batch/create-expression-with-operator.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,IAAI,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAA;AAO3C,eAAO,MAAM,yCAAyC;;;;;;;EAOpD,CAAA;AAEF,MAAM,MAAM,oCAAoC,GAAG,MAAM,CACrD,OAAO,yCAAyC,CACnD,CAAA;AAED,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIrD,CAAA;AAEF,MAAM,MAAM,qCAAqC,GAAG,MAAM,CACtD,OAAO,0CAA0C,CACpD,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Nullable, UUID } from "../../../common.js";
|
|
2
|
+
import { LogicalOperatorType, PropositionalExpressionSchema, PropositionalExpressionTypes, } from "../../../logic.js";
|
|
3
|
+
import { ArgumentEngineSnapshotSchema } from "../../../snapshot.js";
|
|
4
|
+
import { Type } from "typebox";
|
|
5
|
+
const InsertDirectionType = Type.Union([
|
|
6
|
+
Type.Literal("before"),
|
|
7
|
+
Type.Literal("after"),
|
|
8
|
+
]);
|
|
9
|
+
export const CreateExpressionWithOperatorRequestSchema = Type.Object({
|
|
10
|
+
premiseId: UUID,
|
|
11
|
+
targetExpressionId: UUID,
|
|
12
|
+
operatorType: LogicalOperatorType,
|
|
13
|
+
direction: InsertDirectionType,
|
|
14
|
+
type: PropositionalExpressionTypes,
|
|
15
|
+
variableId: Type.Optional(Nullable(UUID)),
|
|
16
|
+
});
|
|
17
|
+
export const CreateExpressionWithOperatorResponseSchema = Type.Object({
|
|
18
|
+
snapshot: ArgumentEngineSnapshotSchema,
|
|
19
|
+
created: Type.Array(PropositionalExpressionSchema),
|
|
20
|
+
modified: Type.Array(PropositionalExpressionSchema),
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=create-expression-with-operator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-expression-with-operator.js","sourceRoot":"","sources":["../../../../../src/schemas/api/argument/batch/create-expression-with-operator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EACH,mBAAmB,EACnB,6BAA6B,EAC7B,4BAA4B,GAC/B,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAA;AACnE,OAAO,EAAE,IAAI,EAAe,MAAM,SAAS,CAAA;AAE3C,MAAM,mBAAmB,GAAG,IAAI,CAAC,KAAK,CAAC;IACnC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;IACtB,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;CACxB,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,yCAAyC,GAAG,IAAI,CAAC,MAAM,CAAC;IACjE,SAAS,EAAE,IAAI;IACf,kBAAkB,EAAE,IAAI;IACxB,YAAY,EAAE,mBAAmB;IACjC,SAAS,EAAE,mBAAmB;IAC9B,IAAI,EAAE,4BAA4B;IAClC,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;CAC5C,CAAC,CAAA;AAMF,MAAM,CAAC,MAAM,0CAA0C,GAAG,IAAI,CAAC,MAAM,CAAC;IAClE,QAAQ,EAAE,4BAA4B;IACtC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,6BAA6B,CAAC;IAClD,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,6BAA6B,CAAC;CACtD,CAAC,CAAA"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { Type, type Static } from "typebox";
|
|
2
|
+
export declare const ProvisionResponseSchema: Type.TObject<{
|
|
3
|
+
claim: Type.TObject<{
|
|
4
|
+
title: Type.TString;
|
|
5
|
+
body: Type.TString;
|
|
6
|
+
digest: Type.TString;
|
|
7
|
+
id: Type.TString;
|
|
8
|
+
argumentId: Type.TString;
|
|
9
|
+
version: Type.TNumber;
|
|
10
|
+
claimForkId: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
11
|
+
creatorId: Type.TString;
|
|
12
|
+
createdOn: import("../../../common.js").TDateType;
|
|
13
|
+
type: Type.TUnion<[Type.TUnion<[Type.TLiteral<"definition">, Type.TLiteral<"criterion">]>, Type.TUnion<[Type.TLiteral<"conclusion">, Type.TLiteral<"claim">]>]>;
|
|
14
|
+
parentId: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
15
|
+
titleContentHash: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
16
|
+
}>;
|
|
17
|
+
premise: Type.TIntersect<[Type.TObject<{
|
|
18
|
+
id: Type.TString;
|
|
19
|
+
argumentId: Type.TString;
|
|
20
|
+
argumentVersion: Type.TNumber;
|
|
21
|
+
checksum: Type.TString;
|
|
22
|
+
descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
23
|
+
combinedChecksum: Type.TString;
|
|
24
|
+
}>, Type.TObject<{
|
|
25
|
+
title: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
26
|
+
role: Type.TUnion<[Type.TLiteral<"conclusion">, Type.TLiteral<"supporting">]>;
|
|
27
|
+
createdOn: Type.TOptional<import("../../../common.js").TDateType>;
|
|
28
|
+
creatorId: Type.TOptional<Type.TString>;
|
|
29
|
+
}>]>;
|
|
30
|
+
variable: Type.TUnion<[Type.TIntersect<[Type.TObject<{
|
|
31
|
+
claimId: Type.TString;
|
|
32
|
+
claimVersion: Type.TNumber;
|
|
33
|
+
id: Type.TString;
|
|
34
|
+
argumentId: Type.TString;
|
|
35
|
+
argumentVersion: Type.TNumber;
|
|
36
|
+
symbol: Type.TString;
|
|
37
|
+
checksum: Type.TString;
|
|
38
|
+
}>, Type.TObject<{
|
|
39
|
+
createdOn: import("../../../common.js").TDateType;
|
|
40
|
+
creatorId: Type.TString;
|
|
41
|
+
descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
42
|
+
combinedChecksum: Type.TString;
|
|
43
|
+
}>]>, Type.TIntersect<[Type.TObject<{
|
|
44
|
+
boundPremiseId: Type.TString;
|
|
45
|
+
boundArgumentId: Type.TString;
|
|
46
|
+
boundArgumentVersion: Type.TNumber;
|
|
47
|
+
id: Type.TString;
|
|
48
|
+
argumentId: Type.TString;
|
|
49
|
+
argumentVersion: Type.TNumber;
|
|
50
|
+
symbol: Type.TString;
|
|
51
|
+
checksum: Type.TString;
|
|
52
|
+
}>, Type.TObject<{
|
|
53
|
+
createdOn: import("../../../common.js").TDateType;
|
|
54
|
+
creatorId: Type.TString;
|
|
55
|
+
descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
56
|
+
combinedChecksum: Type.TString;
|
|
57
|
+
}>]>]>;
|
|
58
|
+
expression: Type.TUnion<[Type.TIntersect<[Type.TObject<{
|
|
59
|
+
id: Type.TString;
|
|
60
|
+
argumentId: Type.TString;
|
|
61
|
+
argumentVersion: Type.TNumber;
|
|
62
|
+
premiseId: Type.TString;
|
|
63
|
+
parentId: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
64
|
+
position: Type.TNumber;
|
|
65
|
+
checksum: Type.TString;
|
|
66
|
+
descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
67
|
+
combinedChecksum: Type.TString;
|
|
68
|
+
type: Type.TLiteral<"variable">;
|
|
69
|
+
variableId: Type.TString;
|
|
70
|
+
}>, Type.TObject<{
|
|
71
|
+
createdOn: import("../../../common.js").TDateType;
|
|
72
|
+
creatorId: Type.TString;
|
|
73
|
+
}>, Type.TObject<{
|
|
74
|
+
operator: Type.TNull;
|
|
75
|
+
}>]>, Type.TIntersect<[Type.TObject<{
|
|
76
|
+
id: Type.TString;
|
|
77
|
+
argumentId: Type.TString;
|
|
78
|
+
argumentVersion: Type.TNumber;
|
|
79
|
+
premiseId: Type.TString;
|
|
80
|
+
parentId: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
81
|
+
position: Type.TNumber;
|
|
82
|
+
checksum: Type.TString;
|
|
83
|
+
descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
84
|
+
combinedChecksum: Type.TString;
|
|
85
|
+
type: Type.TLiteral<"operator">;
|
|
86
|
+
operator: Type.TUnion<[Type.TLiteral<"not">, Type.TLiteral<"and">, Type.TLiteral<"or">, Type.TLiteral<"implies">, Type.TLiteral<"iff">]>;
|
|
87
|
+
}>, Type.TObject<{
|
|
88
|
+
createdOn: import("../../../common.js").TDateType;
|
|
89
|
+
creatorId: Type.TString;
|
|
90
|
+
}>, Type.TObject<{
|
|
91
|
+
variableId: Type.TNull;
|
|
92
|
+
}>]>, Type.TIntersect<[Type.TObject<{
|
|
93
|
+
id: Type.TString;
|
|
94
|
+
argumentId: Type.TString;
|
|
95
|
+
argumentVersion: Type.TNumber;
|
|
96
|
+
premiseId: Type.TString;
|
|
97
|
+
parentId: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
98
|
+
position: Type.TNumber;
|
|
99
|
+
checksum: Type.TString;
|
|
100
|
+
descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
101
|
+
combinedChecksum: Type.TString;
|
|
102
|
+
type: Type.TLiteral<"formula">;
|
|
103
|
+
}>, Type.TObject<{
|
|
104
|
+
createdOn: import("../../../common.js").TDateType;
|
|
105
|
+
creatorId: Type.TString;
|
|
106
|
+
}>, Type.TObject<{
|
|
107
|
+
variableId: Type.TNull;
|
|
108
|
+
operator: Type.TNull;
|
|
109
|
+
}>]>]>;
|
|
110
|
+
}>;
|
|
111
|
+
export type TProvisionResponse = Static<typeof ProvisionResponseSchema>;
|
|
112
|
+
//# sourceMappingURL=provision.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provision.d.ts","sourceRoot":"","sources":["../../../../../src/schemas/api/argument/batch/provision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAA;AAQ3C,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKlC,CAAA;AAEF,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Type } from "typebox";
|
|
2
|
+
import { ClaimSchema } from "../../../model/claims.js";
|
|
3
|
+
import { PropositionalPremiseSchema, PropositionalVariableSchema, PropositionalExpressionSchema, } from "../../../logic.js";
|
|
4
|
+
export const ProvisionResponseSchema = Type.Object({
|
|
5
|
+
claim: ClaimSchema,
|
|
6
|
+
premise: PropositionalPremiseSchema,
|
|
7
|
+
variable: PropositionalVariableSchema,
|
|
8
|
+
expression: PropositionalExpressionSchema,
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=provision.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provision.js","sourceRoot":"","sources":["../../../../../src/schemas/api/argument/batch/provision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAe,MAAM,SAAS,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,EACH,0BAA0B,EAC1B,2BAA2B,EAC3B,6BAA6B,GAChC,MAAM,mBAAmB,CAAA;AAE1B,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,CAAC,MAAM,CAAC;IAC/C,KAAK,EAAE,WAAW;IAClB,OAAO,EAAE,0BAA0B;IACnC,QAAQ,EAAE,2BAA2B;IACrC,UAAU,EAAE,6BAA6B;CAC5C,CAAC,CAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Type, type Static } from "typebox";
|
|
2
|
+
export declare const ArgumentBuilderRequestSchema: Type.TObject<{
|
|
3
|
+
lastResponseId: Type.TOptional<Type.TString>;
|
|
4
|
+
newPrompts: Type.TArray<Type.TString>;
|
|
5
|
+
action: Type.TUnion<[Type.TLiteral<"review">, Type.TLiteral<"finalize">, Type.TLiteral<"simulate_user">]>;
|
|
6
|
+
}>;
|
|
7
|
+
export type TArgumentBuilderRequest = Static<typeof ArgumentBuilderRequestSchema>;
|
|
8
|
+
export declare const ArgumentBuilderReviewResponseSuccessSchema: Type.TObject<{
|
|
9
|
+
success: Type.TLiteral<true>;
|
|
10
|
+
done: Type.TLiteral<false>;
|
|
11
|
+
responseText: Type.TString;
|
|
12
|
+
responseId: Type.TString;
|
|
13
|
+
refusalMessage: Type.TNull;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const ArgumentBuilderResponseRefusedSchema: Type.TObject<{
|
|
16
|
+
success: Type.TLiteral<false>;
|
|
17
|
+
done: Type.TLiteral<false>;
|
|
18
|
+
responseText: Type.TNull;
|
|
19
|
+
responseId: Type.TString;
|
|
20
|
+
refusalMessage: Type.TString;
|
|
21
|
+
}>;
|
|
22
|
+
export declare const ArgumentBuilderFinalizeResponseSuccessSchema: Type.TObject<{
|
|
23
|
+
success: Type.TLiteral<true>;
|
|
24
|
+
done: Type.TLiteral<true>;
|
|
25
|
+
responseText: Type.TString;
|
|
26
|
+
responseId: Type.TString;
|
|
27
|
+
refusalMessage: Type.TNull;
|
|
28
|
+
}>;
|
|
29
|
+
export type TArgumentBuilderFinalizeResponseSuccess = Static<typeof ArgumentBuilderFinalizeResponseSuccessSchema>;
|
|
30
|
+
export declare const ArgumentBuilderResponseSchema: Type.TUnion<[Type.TObject<{
|
|
31
|
+
success: Type.TLiteral<true>;
|
|
32
|
+
done: Type.TLiteral<false>;
|
|
33
|
+
responseText: Type.TString;
|
|
34
|
+
responseId: Type.TString;
|
|
35
|
+
refusalMessage: Type.TNull;
|
|
36
|
+
}>, Type.TObject<{
|
|
37
|
+
success: Type.TLiteral<true>;
|
|
38
|
+
done: Type.TLiteral<true>;
|
|
39
|
+
responseText: Type.TString;
|
|
40
|
+
responseId: Type.TString;
|
|
41
|
+
refusalMessage: Type.TNull;
|
|
42
|
+
}>, Type.TObject<{
|
|
43
|
+
success: Type.TLiteral<false>;
|
|
44
|
+
done: Type.TLiteral<false>;
|
|
45
|
+
responseText: Type.TNull;
|
|
46
|
+
responseId: Type.TString;
|
|
47
|
+
refusalMessage: Type.TString;
|
|
48
|
+
}>]>;
|
|
49
|
+
export type TArgumentBuilderRequestResponse = Static<typeof ArgumentBuilderResponseSchema>;
|
|
50
|
+
//# sourceMappingURL=build.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../src/schemas/api/argument/build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAA;AAE3C,eAAO,MAAM,4BAA4B;;;;EAiBvC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,MAAM,CACxC,OAAO,4BAA4B,CACtC,CAAA;AAED,eAAO,MAAM,0CAA0C;;;;;;EAMrD,CAAA;AAEF,eAAO,MAAM,oCAAoC;;;;;;EAM/C,CAAA;AAEF,eAAO,MAAM,4CAA4C;;;;;;EAMvD,CAAA;AAEF,MAAM,MAAM,uCAAuC,GAAG,MAAM,CACxD,OAAO,4CAA4C,CACtD,CAAA;AAED,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;IAIxC,CAAA;AAEF,MAAM,MAAM,+BAA+B,GAAG,MAAM,CAChD,OAAO,6BAA6B,CACvC,CAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Type } from "typebox";
|
|
2
|
+
export const ArgumentBuilderRequestSchema = Type.Object({
|
|
3
|
+
lastResponseId: Type.Optional(Type.String()),
|
|
4
|
+
newPrompts: Type.Array(Type.String(), {
|
|
5
|
+
description: "New prompts entered by the user since the last request (relative to the last response ID).",
|
|
6
|
+
}),
|
|
7
|
+
action: Type.Union([
|
|
8
|
+
Type.Literal("review"),
|
|
9
|
+
Type.Literal("finalize"),
|
|
10
|
+
Type.Literal("simulate_user"),
|
|
11
|
+
], {
|
|
12
|
+
description: "Whether to request a review or finalize the argument.",
|
|
13
|
+
}),
|
|
14
|
+
});
|
|
15
|
+
export const ArgumentBuilderReviewResponseSuccessSchema = Type.Object({
|
|
16
|
+
success: Type.Literal(true),
|
|
17
|
+
done: Type.Literal(false),
|
|
18
|
+
responseText: Type.String(),
|
|
19
|
+
responseId: Type.String(),
|
|
20
|
+
refusalMessage: Type.Null(),
|
|
21
|
+
});
|
|
22
|
+
export const ArgumentBuilderResponseRefusedSchema = Type.Object({
|
|
23
|
+
success: Type.Literal(false),
|
|
24
|
+
done: Type.Literal(false),
|
|
25
|
+
responseText: Type.Null(),
|
|
26
|
+
responseId: Type.String(),
|
|
27
|
+
refusalMessage: Type.String(),
|
|
28
|
+
});
|
|
29
|
+
export const ArgumentBuilderFinalizeResponseSuccessSchema = Type.Object({
|
|
30
|
+
success: Type.Literal(true),
|
|
31
|
+
done: Type.Literal(true),
|
|
32
|
+
responseText: Type.String(),
|
|
33
|
+
responseId: Type.String(),
|
|
34
|
+
refusalMessage: Type.Null(),
|
|
35
|
+
});
|
|
36
|
+
export const ArgumentBuilderResponseSchema = Type.Union([
|
|
37
|
+
ArgumentBuilderReviewResponseSuccessSchema,
|
|
38
|
+
ArgumentBuilderFinalizeResponseSuccessSchema,
|
|
39
|
+
ArgumentBuilderResponseRefusedSchema,
|
|
40
|
+
]);
|
|
41
|
+
//# sourceMappingURL=build.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../../src/schemas/api/argument/build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAe,MAAM,SAAS,CAAA;AAE3C,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,CAAC,MAAM,CAAC;IACpD,cAAc,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;IAC5C,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE;QAClC,WAAW,EACP,4FAA4F;KACnG,CAAC;IACF,MAAM,EAAE,IAAI,CAAC,KAAK,CACd;QACI,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;QACtB,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC;QACxB,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC;KAChC,EACD;QACI,WAAW,EACP,uDAAuD;KAC9D,CACJ;CACJ,CAAC,CAAA;AAKF,MAAM,CAAC,MAAM,0CAA0C,GAAG,IAAI,CAAC,MAAM,CAAC;IAClE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;IAC3B,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;IACzB,YAAY,EAAE,IAAI,CAAC,MAAM,EAAE;IAC3B,UAAU,EAAE,IAAI,CAAC,MAAM,EAAE;IACzB,cAAc,EAAE,IAAI,CAAC,IAAI,EAAE;CAC9B,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,oCAAoC,GAAG,IAAI,CAAC,MAAM,CAAC;IAC5D,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;IAC5B,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;IACzB,YAAY,EAAE,IAAI,CAAC,IAAI,EAAE;IACzB,UAAU,EAAE,IAAI,CAAC,MAAM,EAAE;IACzB,cAAc,EAAE,IAAI,CAAC,MAAM,EAAE;CAChC,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,4CAA4C,GAAG,IAAI,CAAC,MAAM,CAAC;IACpE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;IAC3B,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;IACxB,YAAY,EAAE,IAAI,CAAC,MAAM,EAAE;IAC3B,UAAU,EAAE,IAAI,CAAC,MAAM,EAAE;IACzB,cAAc,EAAE,IAAI,CAAC,IAAI,EAAE;CAC9B,CAAC,CAAA;AAMF,MAAM,CAAC,MAAM,6BAA6B,GAAG,IAAI,CAAC,KAAK,CAAC;IACpD,0CAA0C;IAC1C,4CAA4C;IAC5C,oCAAoC;CACvC,CAAC,CAAA"}
|