@proposit/shared 0.18.0 → 0.20.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/dist/api-client/argument/batch.d.ts +40 -41
- package/dist/api-client/argument/batch.d.ts.map +1 -1
- package/dist/api-client/argument/claims.d.ts +160 -164
- package/dist/api-client/argument/claims.d.ts.map +1 -1
- package/dist/api-client/argument/index.d.ts +161 -164
- package/dist/api-client/argument/index.d.ts.map +1 -1
- package/dist/api-client/tasks/task-cancel.d.ts +1 -0
- package/dist/api-client/tasks/task-cancel.d.ts.map +1 -1
- package/dist/api-client/tasks/task-list.d.ts +1 -0
- package/dist/api-client/tasks/task-list.d.ts.map +1 -1
- package/dist/api-client/tasks/task-retry.d.ts +2 -0
- package/dist/api-client/tasks/task-retry.d.ts.map +1 -1
- package/dist/api-client/user/citations.d.ts +80 -82
- package/dist/api-client/user/citations.d.ts.map +1 -1
- package/dist/api-client/user/claims.d.ts +40 -41
- package/dist/api-client/user/claims.d.ts.map +1 -1
- package/dist/schemas/api/argument/batch/provision.d.ts +40 -41
- package/dist/schemas/api/argument/batch/provision.d.ts.map +1 -1
- package/dist/schemas/api/argument/claims.d.ts +120 -123
- package/dist/schemas/api/argument/claims.d.ts.map +1 -1
- package/dist/schemas/api/argument/index.d.ts +42 -41
- package/dist/schemas/api/argument/index.d.ts.map +1 -1
- package/dist/schemas/api/argument/index.js +1 -0
- package/dist/schemas/api/argument/index.js.map +1 -1
- package/dist/schemas/api/citations.d.ts +200 -205
- package/dist/schemas/api/citations.d.ts.map +1 -1
- package/dist/schemas/api/claims.d.ts +80 -82
- package/dist/schemas/api/claims.d.ts.map +1 -1
- package/dist/schemas/api/task-cancel/index.d.ts +1 -0
- package/dist/schemas/api/task-cancel/index.d.ts.map +1 -1
- package/dist/schemas/api/task-list/index.d.ts +1 -0
- package/dist/schemas/api/task-list/index.d.ts.map +1 -1
- package/dist/schemas/api/task-retry/index.d.ts +1 -0
- package/dist/schemas/api/task-retry/index.d.ts.map +1 -1
- package/dist/schemas/ingest-argument/index.d.ts +8 -8
- package/dist/schemas/ingest-argument/index.d.ts.map +1 -1
- package/dist/schemas/ingest-argument/index.js +9 -9
- package/dist/schemas/ingest-argument/index.js.map +1 -1
- package/dist/schemas/model/arguments.d.ts +120 -123
- package/dist/schemas/model/arguments.d.ts.map +1 -1
- package/dist/schemas/model/claims.d.ts +80 -82
- package/dist/schemas/model/claims.d.ts.map +1 -1
- package/dist/schemas/model/claims.js +8 -7
- package/dist/schemas/model/claims.js.map +1 -1
- package/dist/schemas/model/references.d.ts +5 -4
- package/dist/schemas/model/references.d.ts.map +1 -1
- package/dist/schemas/model/references.js +3 -2
- package/dist/schemas/model/references.js.map +1 -1
- package/dist/schemas/tasks.d.ts +5 -0
- package/dist/schemas/tasks.d.ts.map +1 -1
- package/dist/schemas/tasks.js +6 -0
- package/dist/schemas/tasks.js.map +1 -1
- package/dist/utils/embedding-text.d.ts +5 -4
- package/dist/utils/embedding-text.d.ts.map +1 -1
- package/dist/utils/embedding-text.js +11 -7
- package/dist/utils/embedding-text.js.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claims.d.ts","sourceRoot":"","sources":["../../../src/schemas/api/claims.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAA;AAS3C,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"claims.d.ts","sourceRoot":"","sources":["../../../src/schemas/api/claims.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAA;AAS3C,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAqC,CAAA;AAC1E,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAA"}
|
|
@@ -21,6 +21,7 @@ export declare const CancelTaskResponse: import("typebox").TObject<{
|
|
|
21
21
|
argumentId: import("typebox").TString;
|
|
22
22
|
version: import("typebox").TNumber;
|
|
23
23
|
responseId: import("typebox").TOptional<import("typebox").TUnion<[import("typebox").TString, import("typebox").TNull]>>;
|
|
24
|
+
pipeline: import("typebox").TOptional<import("typebox").TUnion<[import("typebox").TLiteral<"scholar">, import("typebox").TLiteral<"scribe">]>>;
|
|
24
25
|
}>;
|
|
25
26
|
errorData: import("typebox").TUnion<[import("typebox").TRecord<"^.*$", import("typebox").TAny>, import("typebox").TNull]>;
|
|
26
27
|
resultData: import("typebox").TUnion<[import("typebox").TObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/api/task-cancel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAA;AAGrC;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/api/task-cancel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAA;AAGrC;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;EAAqB,CAAA;AACpD,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAA"}
|
|
@@ -29,6 +29,7 @@ export declare const ListTasksResponseSchema: Type.TObject<{
|
|
|
29
29
|
argumentId: Type.TString;
|
|
30
30
|
version: Type.TNumber;
|
|
31
31
|
responseId: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
32
|
+
pipeline: Type.TOptional<Type.TUnion<[Type.TLiteral<"scholar">, Type.TLiteral<"scribe">]>>;
|
|
32
33
|
}>;
|
|
33
34
|
errorData: Type.TUnion<[Type.TRecord<"^.*$", Type.TAny>, Type.TNull]>;
|
|
34
35
|
resultData: Type.TUnion<[Type.TObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/api/task-list/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAA;AAI3C;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB;;;;;EAUhC,CAAA;AACD,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEjE;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/api/task-list/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAA;AAI3C;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB;;;;;EAUhC,CAAA;AACD,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEjE;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGlC,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAA"}
|
|
@@ -20,6 +20,7 @@ export declare const RetryTaskResponse: import("typebox").TObject<{
|
|
|
20
20
|
argumentId: import("typebox").TString;
|
|
21
21
|
version: import("typebox").TNumber;
|
|
22
22
|
responseId: import("typebox").TOptional<import("typebox").TUnion<[import("typebox").TString, import("typebox").TNull]>>;
|
|
23
|
+
pipeline: import("typebox").TOptional<import("typebox").TUnion<[import("typebox").TLiteral<"scholar">, import("typebox").TLiteral<"scribe">]>>;
|
|
23
24
|
}>;
|
|
24
25
|
errorData: import("typebox").TUnion<[import("typebox").TRecord<"^.*$", import("typebox").TAny>, import("typebox").TNull]>;
|
|
25
26
|
resultData: import("typebox").TUnion<[import("typebox").TObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/api/task-retry/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAA;AAGrC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/api/task-retry/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAA;AAGrC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;EAAqB,CAAA;AACnD,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAA"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import Type, { type Static } from "typebox";
|
|
2
|
-
export declare const
|
|
3
|
-
export type
|
|
2
|
+
export declare const IngestionPipelineSchema: Type.TUnion<[Type.TLiteral<"scholar">, Type.TLiteral<"scribe">]>;
|
|
3
|
+
export type TIngestionPipeline = Static<typeof IngestionPipelineSchema>;
|
|
4
4
|
/**
|
|
5
5
|
* Internal task input passed from a server route handler into the
|
|
6
6
|
* ingestion pipeline executor. NOT a public route body — the public
|
|
7
|
-
* `/api/v1/argument/import/raw_text` route
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
7
|
+
* `/api/v1/argument/import/raw_text` route accepts the `CreateArgumentSchema`
|
|
8
|
+
* shape (`{ origin: "raw_text", data: { text }, mode? }`). The server
|
|
9
|
+
* resolves the user-facing `mode` (or its configured default) to a pipeline
|
|
10
|
+
* role, constructs this internal shape, and passes it to `executePipeline(...)`
|
|
11
|
+
* in `@proposit/proposit-core`.
|
|
12
12
|
*/
|
|
13
13
|
export declare const IngestArgumentTaskInputSchema: Type.TObject<{
|
|
14
14
|
text: Type.TString;
|
|
15
|
-
|
|
15
|
+
pipeline: Type.TUnion<[Type.TLiteral<"scholar">, Type.TLiteral<"scribe">]>;
|
|
16
16
|
title: Type.TOptional<Type.TString>;
|
|
17
17
|
description: Type.TOptional<Type.TString>;
|
|
18
18
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/ingest-argument/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAA;AAE3C,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/ingest-argument/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAA;AAE3C,eAAO,MAAM,uBAAuB,kEAGlC,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAEvE;;;;;;;;GAQG;AACH,eAAO,MAAM,6BAA6B;;;;;EAKxC,CAAA;AACF,MAAM,MAAM,wBAAwB,GAAG,MAAM,CACzC,OAAO,6BAA6B,CACvC,CAAA"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import Type, {} from "typebox";
|
|
2
|
-
export const
|
|
3
|
-
Type.Literal("
|
|
4
|
-
Type.Literal("
|
|
2
|
+
export const IngestionPipelineSchema = Type.Union([
|
|
3
|
+
Type.Literal("scholar"),
|
|
4
|
+
Type.Literal("scribe"),
|
|
5
5
|
]);
|
|
6
6
|
/**
|
|
7
7
|
* Internal task input passed from a server route handler into the
|
|
8
8
|
* ingestion pipeline executor. NOT a public route body — the public
|
|
9
|
-
* `/api/v1/argument/import/raw_text` route
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
9
|
+
* `/api/v1/argument/import/raw_text` route accepts the `CreateArgumentSchema`
|
|
10
|
+
* shape (`{ origin: "raw_text", data: { text }, mode? }`). The server
|
|
11
|
+
* resolves the user-facing `mode` (or its configured default) to a pipeline
|
|
12
|
+
* role, constructs this internal shape, and passes it to `executePipeline(...)`
|
|
13
|
+
* in `@proposit/proposit-core`.
|
|
14
14
|
*/
|
|
15
15
|
export const IngestArgumentTaskInputSchema = Type.Object({
|
|
16
16
|
text: Type.String({ minLength: 1, maxLength: 50_000 }),
|
|
17
|
-
|
|
17
|
+
pipeline: IngestionPipelineSchema,
|
|
18
18
|
title: Type.Optional(Type.String()),
|
|
19
19
|
description: Type.Optional(Type.String()),
|
|
20
20
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schemas/ingest-argument/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAe,MAAM,SAAS,CAAA;AAE3C,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schemas/ingest-argument/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAe,MAAM,SAAS,CAAA;AAE3C,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,CAAC,KAAK,CAAC;IAC9C,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC;IACvB,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;CACzB,CAAC,CAAA;AAGF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,IAAI,CAAC,MAAM,CAAC;IACrD,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC;IACtD,QAAQ,EAAE,uBAAuB;IACjC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;IACnC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;CAC5C,CAAC,CAAA"}
|