@proposit/shared 0.17.0 → 0.19.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 +160 -164
- package/dist/api-client/argument/index.d.ts.map +1 -1
- package/dist/api-client/factory.d.ts +2 -0
- package/dist/api-client/factory.d.ts.map +1 -1
- package/dist/api-client/factory.js +2 -0
- package/dist/api-client/factory.js.map +1 -1
- package/dist/api-client/tasks/task-list.d.ts +123 -0
- package/dist/api-client/tasks/task-list.d.ts.map +1 -0
- package/dist/api-client/tasks/task-list.js +20 -0
- package/dist/api-client/tasks/task-list.js.map +1 -0
- 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 +40 -41
- package/dist/schemas/api/argument/index.d.ts.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-list/index.d.ts +126 -0
- package/dist/schemas/api/task-list/index.d.ts.map +1 -0
- package/dist/schemas/api/task-list/index.js +27 -0
- package/dist/schemas/api/task-list/index.js.map +1 -0
- 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/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 +8 -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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* All optional; the server applies the documented defaults (`limit` 20,
|
|
5
|
+
* `offset` 0) when a param is absent. The client omits absent params entirely
|
|
6
|
+
* rather than sending them, so these defaults live server-side, not in the
|
|
7
|
+
* outgoing URL.
|
|
8
|
+
*/
|
|
9
|
+
export declare const ListTasksQuerySchema: Type.TObject<{
|
|
10
|
+
argumentId: Type.TOptional<Type.TString>;
|
|
11
|
+
version: Type.TOptional<Type.TNumber>;
|
|
12
|
+
limit: Type.TOptional<Type.TNumber>;
|
|
13
|
+
offset: Type.TOptional<Type.TNumber>;
|
|
14
|
+
}>;
|
|
15
|
+
export type TListTasksQuery = Static<typeof ListTasksQuerySchema>;
|
|
16
|
+
/**
|
|
17
|
+
* Response for `GET /api/v1/task`. `tasks` is the full `TaskSchema` union (a
|
|
18
|
+
* user's task list spans every task type, unlike retry/cancel which narrow to
|
|
19
|
+
* `ArgumentCreateTask`). `hasMore` drives lazy-loading: true when more rows
|
|
20
|
+
* exist beyond `offset + tasks.length`.
|
|
21
|
+
*/
|
|
22
|
+
export declare const ListTasksResponseSchema: Type.TObject<{
|
|
23
|
+
tasks: Type.TArray<Type.TUnion<[Type.TObject<{
|
|
24
|
+
id: Type.TString;
|
|
25
|
+
userId: Type.TString;
|
|
26
|
+
previousId: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
27
|
+
type: Type.TLiteral<"argument_create">;
|
|
28
|
+
data: Type.TObject<{
|
|
29
|
+
argumentId: Type.TString;
|
|
30
|
+
version: Type.TNumber;
|
|
31
|
+
responseId: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
32
|
+
}>;
|
|
33
|
+
errorData: Type.TUnion<[Type.TRecord<"^.*$", Type.TAny>, Type.TNull]>;
|
|
34
|
+
resultData: Type.TUnion<[Type.TObject<{
|
|
35
|
+
tokensUsed: Type.TNumber;
|
|
36
|
+
}>, Type.TNull]>;
|
|
37
|
+
createdOn: import("../../common.js").TDateType;
|
|
38
|
+
startedOn: Type.TUnion<[import("../../common.js").TDateType, Type.TNull]>;
|
|
39
|
+
completedOn: Type.TUnion<[import("../../common.js").TDateType, Type.TNull]>;
|
|
40
|
+
status: Type.TNumber;
|
|
41
|
+
}>, Type.TObject<{
|
|
42
|
+
id: Type.TString;
|
|
43
|
+
userId: Type.TString;
|
|
44
|
+
previousId: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
45
|
+
type: Type.TLiteral<"argument_build_review">;
|
|
46
|
+
data: Type.TObject<{
|
|
47
|
+
argumentId: Type.TString;
|
|
48
|
+
version: Type.TNumber;
|
|
49
|
+
conversationResponseId: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
50
|
+
responseId: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
51
|
+
newPrompts: Type.TArray<Type.TObject<{
|
|
52
|
+
role: Type.TUnion<[Type.TLiteral<"user">, Type.TLiteral<"assistant">, Type.TLiteral<"developer">]>;
|
|
53
|
+
content: Type.TString;
|
|
54
|
+
}>>;
|
|
55
|
+
}>;
|
|
56
|
+
errorData: Type.TUnion<[Type.TRecord<"^.*$", Type.TAny>, Type.TNull]>;
|
|
57
|
+
resultData: Type.TUnion<[Type.TObject<{
|
|
58
|
+
tokensUsed: Type.TNumber;
|
|
59
|
+
output: Type.TObject<{
|
|
60
|
+
role: Type.TUnion<[Type.TLiteral<"user">, Type.TLiteral<"assistant">, Type.TLiteral<"developer">]>;
|
|
61
|
+
content: Type.TString;
|
|
62
|
+
}>;
|
|
63
|
+
}>, Type.TNull]>;
|
|
64
|
+
createdOn: import("../../common.js").TDateType;
|
|
65
|
+
startedOn: Type.TUnion<[import("../../common.js").TDateType, Type.TNull]>;
|
|
66
|
+
completedOn: Type.TUnion<[import("../../common.js").TDateType, Type.TNull]>;
|
|
67
|
+
status: Type.TNumber;
|
|
68
|
+
}>, Type.TObject<{
|
|
69
|
+
id: Type.TString;
|
|
70
|
+
userId: Type.TString;
|
|
71
|
+
previousId: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
72
|
+
type: Type.TLiteral<"argument_build_finalize">;
|
|
73
|
+
data: Type.TObject<{
|
|
74
|
+
argumentId: Type.TString;
|
|
75
|
+
version: Type.TNumber;
|
|
76
|
+
conversationResponseId: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
77
|
+
responseId: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
78
|
+
newPrompts: Type.TArray<Type.TObject<{
|
|
79
|
+
role: Type.TUnion<[Type.TLiteral<"user">, Type.TLiteral<"assistant">, Type.TLiteral<"developer">]>;
|
|
80
|
+
content: Type.TString;
|
|
81
|
+
}>>;
|
|
82
|
+
}>;
|
|
83
|
+
errorData: Type.TUnion<[Type.TRecord<"^.*$", Type.TAny>, Type.TNull]>;
|
|
84
|
+
resultData: Type.TUnion<[Type.TObject<{
|
|
85
|
+
tokensUsed: Type.TNumber;
|
|
86
|
+
output: Type.TObject<{
|
|
87
|
+
role: Type.TUnion<[Type.TLiteral<"user">, Type.TLiteral<"assistant">, Type.TLiteral<"developer">]>;
|
|
88
|
+
content: Type.TString;
|
|
89
|
+
}>;
|
|
90
|
+
}>, Type.TNull]>;
|
|
91
|
+
createdOn: import("../../common.js").TDateType;
|
|
92
|
+
startedOn: Type.TUnion<[import("../../common.js").TDateType, Type.TNull]>;
|
|
93
|
+
completedOn: Type.TUnion<[import("../../common.js").TDateType, Type.TNull]>;
|
|
94
|
+
status: Type.TNumber;
|
|
95
|
+
}>, Type.TObject<{
|
|
96
|
+
id: Type.TString;
|
|
97
|
+
userId: Type.TString;
|
|
98
|
+
previousId: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
99
|
+
type: Type.TLiteral<"argument_build_simulate_user">;
|
|
100
|
+
data: Type.TObject<{
|
|
101
|
+
argumentId: Type.TString;
|
|
102
|
+
version: Type.TNumber;
|
|
103
|
+
conversationResponseId: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
104
|
+
responseId: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
105
|
+
newPrompts: Type.TArray<Type.TObject<{
|
|
106
|
+
role: Type.TUnion<[Type.TLiteral<"user">, Type.TLiteral<"assistant">, Type.TLiteral<"developer">]>;
|
|
107
|
+
content: Type.TString;
|
|
108
|
+
}>>;
|
|
109
|
+
}>;
|
|
110
|
+
errorData: Type.TUnion<[Type.TRecord<"^.*$", Type.TAny>, Type.TNull]>;
|
|
111
|
+
resultData: Type.TUnion<[Type.TObject<{
|
|
112
|
+
tokensUsed: Type.TNumber;
|
|
113
|
+
output: Type.TObject<{
|
|
114
|
+
role: Type.TUnion<[Type.TLiteral<"user">, Type.TLiteral<"assistant">, Type.TLiteral<"developer">]>;
|
|
115
|
+
content: Type.TString;
|
|
116
|
+
}>;
|
|
117
|
+
}>, Type.TNull]>;
|
|
118
|
+
createdOn: import("../../common.js").TDateType;
|
|
119
|
+
startedOn: Type.TUnion<[import("../../common.js").TDateType, Type.TNull]>;
|
|
120
|
+
completedOn: Type.TUnion<[import("../../common.js").TDateType, Type.TNull]>;
|
|
121
|
+
status: Type.TNumber;
|
|
122
|
+
}>]>>;
|
|
123
|
+
hasMore: Type.TBoolean;
|
|
124
|
+
}>;
|
|
125
|
+
export type TListTasksResponse = Static<typeof ListTasksResponseSchema>;
|
|
126
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGlC,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Type } from "typebox";
|
|
2
|
+
import { UUID } from "../../common.js";
|
|
3
|
+
import { TaskSchema } from "../../tasks.js";
|
|
4
|
+
/**
|
|
5
|
+
* Query params for `GET /api/v1/task` — list the authenticated user's tasks.
|
|
6
|
+
* All optional; the server applies the documented defaults (`limit` 20,
|
|
7
|
+
* `offset` 0) when a param is absent. The client omits absent params entirely
|
|
8
|
+
* rather than sending them, so these defaults live server-side, not in the
|
|
9
|
+
* outgoing URL.
|
|
10
|
+
*/
|
|
11
|
+
export const ListTasksQuerySchema = Type.Object({
|
|
12
|
+
argumentId: Type.Optional(UUID),
|
|
13
|
+
version: Type.Optional(Type.Number()),
|
|
14
|
+
limit: Type.Optional(Type.Number({ minimum: 1, maximum: 50, default: 20 })),
|
|
15
|
+
offset: Type.Optional(Type.Number({ minimum: 0, default: 0 })),
|
|
16
|
+
}, { additionalProperties: false });
|
|
17
|
+
/**
|
|
18
|
+
* Response for `GET /api/v1/task`. `tasks` is the full `TaskSchema` union (a
|
|
19
|
+
* user's task list spans every task type, unlike retry/cancel which narrow to
|
|
20
|
+
* `ArgumentCreateTask`). `hasMore` drives lazy-loading: true when more rows
|
|
21
|
+
* exist beyond `offset + tasks.length`.
|
|
22
|
+
*/
|
|
23
|
+
export const ListTasksResponseSchema = Type.Object({
|
|
24
|
+
tasks: Type.Array(TaskSchema),
|
|
25
|
+
hasMore: Type.Boolean(),
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schemas/api/task-list/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAe,MAAM,SAAS,CAAA;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE3C;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC,MAAM,CAC3C;IACI,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;IAC/B,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;IACrC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAChB,IAAI,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CACxD;IACD,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;CACjE,EACD,EAAE,oBAAoB,EAAE,KAAK,EAAE,CAClC,CAAA;AAGD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,CAAC,MAAM,CAAC;IAC/C,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC;IAC7B,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE;CAC1B,CAAC,CAAA"}
|