@guinetik/primitives-ts 0.4.2 → 0.5.1
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/chat.types.d.ts +24 -9
- package/dist/chat.types.d.ts.map +1 -1
- package/dist/chat.types.js +2 -1
- package/package.json +1 -1
package/dist/chat.types.d.ts
CHANGED
|
@@ -5,6 +5,20 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* Available Claude models
|
|
7
7
|
*/
|
|
8
|
+
/**
|
|
9
|
+
* Unified Model type for dynamic model providers
|
|
10
|
+
*/
|
|
11
|
+
export interface Model {
|
|
12
|
+
type: string;
|
|
13
|
+
id: string;
|
|
14
|
+
display_name: string;
|
|
15
|
+
created_at: string;
|
|
16
|
+
tier?: 'fast' | 'balanced' | 'powerful' | 'expert';
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Legacy Claude model enum (maintained for backward compatibility)
|
|
20
|
+
* @deprecated Use Model type instead
|
|
21
|
+
*/
|
|
8
22
|
export declare enum ClaudeModel {
|
|
9
23
|
/** Claude Haiku 3.5 - Fastest, most cost-effective */
|
|
10
24
|
HAIKU_3_5 = "claude-3-5-haiku-20241022",
|
|
@@ -17,6 +31,7 @@ export declare enum ClaudeModel {
|
|
|
17
31
|
}
|
|
18
32
|
/**
|
|
19
33
|
* Model metadata for display in UI
|
|
34
|
+
* @deprecated Use Model type instead
|
|
20
35
|
*/
|
|
21
36
|
export interface ClaudeModelInfo {
|
|
22
37
|
/** Model ID */
|
|
@@ -40,8 +55,8 @@ export interface ChatSession {
|
|
|
40
55
|
id: string;
|
|
41
56
|
/** User ID who created the session */
|
|
42
57
|
userId: string;
|
|
43
|
-
/** Current model for the session */
|
|
44
|
-
model:
|
|
58
|
+
/** Current model ID for the session (e.g., "claude-sonnet-4-5-20250929") */
|
|
59
|
+
model: string;
|
|
45
60
|
/** Session creation timestamp */
|
|
46
61
|
createdAt: Date;
|
|
47
62
|
/** Last update timestamp */
|
|
@@ -63,8 +78,8 @@ export interface ChatMessage {
|
|
|
63
78
|
content: string;
|
|
64
79
|
/** Message timestamp */
|
|
65
80
|
timestamp: Date;
|
|
66
|
-
/** Model used for this specific message (for assistant messages) */
|
|
67
|
-
model?:
|
|
81
|
+
/** Model ID used for this specific message (for assistant messages) */
|
|
82
|
+
model?: string;
|
|
68
83
|
}
|
|
69
84
|
/**
|
|
70
85
|
* Send message request body
|
|
@@ -74,8 +89,8 @@ export interface SendMessageRequest {
|
|
|
74
89
|
sessionId?: string;
|
|
75
90
|
/** User message content */
|
|
76
91
|
message: string;
|
|
77
|
-
/** Model to use for response */
|
|
78
|
-
model:
|
|
92
|
+
/** Model ID to use for response (e.g., "claude-sonnet-4-5-20250929") */
|
|
93
|
+
model: string;
|
|
79
94
|
}
|
|
80
95
|
/**
|
|
81
96
|
* Send message response
|
|
@@ -112,8 +127,8 @@ export interface GetSessionMessagesResponse {
|
|
|
112
127
|
* Create new session request
|
|
113
128
|
*/
|
|
114
129
|
export interface CreateSessionRequest {
|
|
115
|
-
/** Initial model for the session */
|
|
116
|
-
model:
|
|
130
|
+
/** Initial model ID for the session (e.g., "claude-sonnet-4-5-20250929") */
|
|
131
|
+
model: string;
|
|
117
132
|
/** Optional session title */
|
|
118
133
|
title?: string;
|
|
119
134
|
}
|
|
@@ -129,6 +144,6 @@ export interface CreateSessionResponse {
|
|
|
129
144
|
*/
|
|
130
145
|
export interface GetModelsResponse {
|
|
131
146
|
/** List of available models */
|
|
132
|
-
models: ClaudeModelInfo[];
|
|
147
|
+
models: Model[] | ClaudeModelInfo[];
|
|
133
148
|
}
|
|
134
149
|
//# sourceMappingURL=chat.types.d.ts.map
|
package/dist/chat.types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.types.d.ts","sourceRoot":"","sources":["../src/chat.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,oBAAY,WAAW;IACrB,sDAAsD;IAC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ED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,4BAA4B;IAC5B,OAAO,EAAE,WAAW,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,+BAA+B;IAC/B,MAAM,EAAE,KAAK,EAAE,GAAG,eAAe,EAAE,CAAC;CACrC"}
|
package/dist/chat.types.js
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.ClaudeModel = void 0;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Legacy Claude model enum (maintained for backward compatibility)
|
|
10
|
+
* @deprecated Use Model type instead
|
|
10
11
|
*/
|
|
11
12
|
var ClaudeModel;
|
|
12
13
|
(function (ClaudeModel) {
|