@contractspec/module.ai-chat 1.46.1 → 1.47.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/schema.d.ts CHANGED
@@ -1,61 +1,61 @@
1
- import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_schema28 from "@contractspec/lib.schema";
2
2
 
3
3
  //#region src/schema.d.ts
4
- declare const ChatMessageModel: _contractspec_lib_schema0.SchemaModel<{
4
+ declare const ChatMessageModel: _contractspec_lib_schema28.SchemaModel<{
5
5
  id: {
6
- type: _contractspec_lib_schema0.FieldType<string, string>;
6
+ type: _contractspec_lib_schema28.FieldType<string, string>;
7
7
  isOptional: false;
8
8
  };
9
9
  role: {
10
- type: _contractspec_lib_schema0.FieldType<string, string>;
10
+ type: _contractspec_lib_schema28.FieldType<string, string>;
11
11
  isOptional: false;
12
12
  };
13
13
  content: {
14
- type: _contractspec_lib_schema0.FieldType<string, string>;
14
+ type: _contractspec_lib_schema28.FieldType<string, string>;
15
15
  isOptional: false;
16
16
  };
17
17
  status: {
18
- type: _contractspec_lib_schema0.FieldType<string, string>;
18
+ type: _contractspec_lib_schema28.FieldType<string, string>;
19
19
  isOptional: false;
20
20
  };
21
21
  createdAt: {
22
- type: _contractspec_lib_schema0.FieldType<Date, string>;
22
+ type: _contractspec_lib_schema28.FieldType<Date, string>;
23
23
  isOptional: false;
24
24
  };
25
25
  }>;
26
- declare const ChatConversationModel: _contractspec_lib_schema0.SchemaModel<{
26
+ declare const ChatConversationModel: _contractspec_lib_schema28.SchemaModel<{
27
27
  id: {
28
- type: _contractspec_lib_schema0.FieldType<string, string>;
28
+ type: _contractspec_lib_schema28.FieldType<string, string>;
29
29
  isOptional: false;
30
30
  };
31
31
  title: {
32
- type: _contractspec_lib_schema0.FieldType<string, string>;
32
+ type: _contractspec_lib_schema28.FieldType<string, string>;
33
33
  isOptional: true;
34
34
  };
35
35
  status: {
36
- type: _contractspec_lib_schema0.FieldType<string, string>;
36
+ type: _contractspec_lib_schema28.FieldType<string, string>;
37
37
  isOptional: false;
38
38
  };
39
39
  messages: {
40
- type: _contractspec_lib_schema0.SchemaModel<{
40
+ type: _contractspec_lib_schema28.SchemaModel<{
41
41
  id: {
42
- type: _contractspec_lib_schema0.FieldType<string, string>;
42
+ type: _contractspec_lib_schema28.FieldType<string, string>;
43
43
  isOptional: false;
44
44
  };
45
45
  role: {
46
- type: _contractspec_lib_schema0.FieldType<string, string>;
46
+ type: _contractspec_lib_schema28.FieldType<string, string>;
47
47
  isOptional: false;
48
48
  };
49
49
  content: {
50
- type: _contractspec_lib_schema0.FieldType<string, string>;
50
+ type: _contractspec_lib_schema28.FieldType<string, string>;
51
51
  isOptional: false;
52
52
  };
53
53
  status: {
54
- type: _contractspec_lib_schema0.FieldType<string, string>;
54
+ type: _contractspec_lib_schema28.FieldType<string, string>;
55
55
  isOptional: false;
56
56
  };
57
57
  createdAt: {
58
- type: _contractspec_lib_schema0.FieldType<Date, string>;
58
+ type: _contractspec_lib_schema28.FieldType<Date, string>;
59
59
  isOptional: false;
60
60
  };
61
61
  }>;
@@ -63,88 +63,88 @@ declare const ChatConversationModel: _contractspec_lib_schema0.SchemaModel<{
63
63
  isOptional: false;
64
64
  };
65
65
  provider: {
66
- type: _contractspec_lib_schema0.FieldType<string, string>;
66
+ type: _contractspec_lib_schema28.FieldType<string, string>;
67
67
  isOptional: false;
68
68
  };
69
69
  model: {
70
- type: _contractspec_lib_schema0.FieldType<string, string>;
70
+ type: _contractspec_lib_schema28.FieldType<string, string>;
71
71
  isOptional: false;
72
72
  };
73
73
  }>;
74
- declare const SendMessageInputModel: _contractspec_lib_schema0.SchemaModel<{
74
+ declare const SendMessageInputModel: _contractspec_lib_schema28.SchemaModel<{
75
75
  conversationId: {
76
- type: _contractspec_lib_schema0.FieldType<string, string>;
76
+ type: _contractspec_lib_schema28.FieldType<string, string>;
77
77
  isOptional: true;
78
78
  };
79
79
  content: {
80
- type: _contractspec_lib_schema0.FieldType<string, string>;
80
+ type: _contractspec_lib_schema28.FieldType<string, string>;
81
81
  isOptional: false;
82
82
  };
83
83
  stream: {
84
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
84
+ type: _contractspec_lib_schema28.FieldType<boolean, boolean>;
85
85
  isOptional: true;
86
86
  };
87
87
  }>;
88
- declare const SendMessageOutputModel: _contractspec_lib_schema0.SchemaModel<{
88
+ declare const SendMessageOutputModel: _contractspec_lib_schema28.SchemaModel<{
89
89
  message: {
90
- type: _contractspec_lib_schema0.SchemaModel<{
90
+ type: _contractspec_lib_schema28.SchemaModel<{
91
91
  id: {
92
- type: _contractspec_lib_schema0.FieldType<string, string>;
92
+ type: _contractspec_lib_schema28.FieldType<string, string>;
93
93
  isOptional: false;
94
94
  };
95
95
  role: {
96
- type: _contractspec_lib_schema0.FieldType<string, string>;
96
+ type: _contractspec_lib_schema28.FieldType<string, string>;
97
97
  isOptional: false;
98
98
  };
99
99
  content: {
100
- type: _contractspec_lib_schema0.FieldType<string, string>;
100
+ type: _contractspec_lib_schema28.FieldType<string, string>;
101
101
  isOptional: false;
102
102
  };
103
103
  status: {
104
- type: _contractspec_lib_schema0.FieldType<string, string>;
104
+ type: _contractspec_lib_schema28.FieldType<string, string>;
105
105
  isOptional: false;
106
106
  };
107
107
  createdAt: {
108
- type: _contractspec_lib_schema0.FieldType<Date, string>;
108
+ type: _contractspec_lib_schema28.FieldType<Date, string>;
109
109
  isOptional: false;
110
110
  };
111
111
  }>;
112
112
  isOptional: false;
113
113
  };
114
114
  conversation: {
115
- type: _contractspec_lib_schema0.SchemaModel<{
115
+ type: _contractspec_lib_schema28.SchemaModel<{
116
116
  id: {
117
- type: _contractspec_lib_schema0.FieldType<string, string>;
117
+ type: _contractspec_lib_schema28.FieldType<string, string>;
118
118
  isOptional: false;
119
119
  };
120
120
  title: {
121
- type: _contractspec_lib_schema0.FieldType<string, string>;
121
+ type: _contractspec_lib_schema28.FieldType<string, string>;
122
122
  isOptional: true;
123
123
  };
124
124
  status: {
125
- type: _contractspec_lib_schema0.FieldType<string, string>;
125
+ type: _contractspec_lib_schema28.FieldType<string, string>;
126
126
  isOptional: false;
127
127
  };
128
128
  messages: {
129
- type: _contractspec_lib_schema0.SchemaModel<{
129
+ type: _contractspec_lib_schema28.SchemaModel<{
130
130
  id: {
131
- type: _contractspec_lib_schema0.FieldType<string, string>;
131
+ type: _contractspec_lib_schema28.FieldType<string, string>;
132
132
  isOptional: false;
133
133
  };
134
134
  role: {
135
- type: _contractspec_lib_schema0.FieldType<string, string>;
135
+ type: _contractspec_lib_schema28.FieldType<string, string>;
136
136
  isOptional: false;
137
137
  };
138
138
  content: {
139
- type: _contractspec_lib_schema0.FieldType<string, string>;
139
+ type: _contractspec_lib_schema28.FieldType<string, string>;
140
140
  isOptional: false;
141
141
  };
142
142
  status: {
143
- type: _contractspec_lib_schema0.FieldType<string, string>;
143
+ type: _contractspec_lib_schema28.FieldType<string, string>;
144
144
  isOptional: false;
145
145
  };
146
146
  createdAt: {
147
- type: _contractspec_lib_schema0.FieldType<Date, string>;
147
+ type: _contractspec_lib_schema28.FieldType<Date, string>;
148
148
  isOptional: false;
149
149
  };
150
150
  }>;
@@ -152,52 +152,52 @@ declare const SendMessageOutputModel: _contractspec_lib_schema0.SchemaModel<{
152
152
  isOptional: false;
153
153
  };
154
154
  provider: {
155
- type: _contractspec_lib_schema0.FieldType<string, string>;
155
+ type: _contractspec_lib_schema28.FieldType<string, string>;
156
156
  isOptional: false;
157
157
  };
158
158
  model: {
159
- type: _contractspec_lib_schema0.FieldType<string, string>;
159
+ type: _contractspec_lib_schema28.FieldType<string, string>;
160
160
  isOptional: false;
161
161
  };
162
162
  }>;
163
163
  isOptional: false;
164
164
  };
165
165
  }>;
166
- declare const ListConversationsOutputModel: _contractspec_lib_schema0.SchemaModel<{
166
+ declare const ListConversationsOutputModel: _contractspec_lib_schema28.SchemaModel<{
167
167
  conversations: {
168
- type: _contractspec_lib_schema0.SchemaModel<{
168
+ type: _contractspec_lib_schema28.SchemaModel<{
169
169
  id: {
170
- type: _contractspec_lib_schema0.FieldType<string, string>;
170
+ type: _contractspec_lib_schema28.FieldType<string, string>;
171
171
  isOptional: false;
172
172
  };
173
173
  title: {
174
- type: _contractspec_lib_schema0.FieldType<string, string>;
174
+ type: _contractspec_lib_schema28.FieldType<string, string>;
175
175
  isOptional: true;
176
176
  };
177
177
  status: {
178
- type: _contractspec_lib_schema0.FieldType<string, string>;
178
+ type: _contractspec_lib_schema28.FieldType<string, string>;
179
179
  isOptional: false;
180
180
  };
181
181
  messages: {
182
- type: _contractspec_lib_schema0.SchemaModel<{
182
+ type: _contractspec_lib_schema28.SchemaModel<{
183
183
  id: {
184
- type: _contractspec_lib_schema0.FieldType<string, string>;
184
+ type: _contractspec_lib_schema28.FieldType<string, string>;
185
185
  isOptional: false;
186
186
  };
187
187
  role: {
188
- type: _contractspec_lib_schema0.FieldType<string, string>;
188
+ type: _contractspec_lib_schema28.FieldType<string, string>;
189
189
  isOptional: false;
190
190
  };
191
191
  content: {
192
- type: _contractspec_lib_schema0.FieldType<string, string>;
192
+ type: _contractspec_lib_schema28.FieldType<string, string>;
193
193
  isOptional: false;
194
194
  };
195
195
  status: {
196
- type: _contractspec_lib_schema0.FieldType<string, string>;
196
+ type: _contractspec_lib_schema28.FieldType<string, string>;
197
197
  isOptional: false;
198
198
  };
199
199
  createdAt: {
200
- type: _contractspec_lib_schema0.FieldType<Date, string>;
200
+ type: _contractspec_lib_schema28.FieldType<Date, string>;
201
201
  isOptional: false;
202
202
  };
203
203
  }>;
@@ -205,11 +205,11 @@ declare const ListConversationsOutputModel: _contractspec_lib_schema0.SchemaMode
205
205
  isOptional: false;
206
206
  };
207
207
  provider: {
208
- type: _contractspec_lib_schema0.FieldType<string, string>;
208
+ type: _contractspec_lib_schema28.FieldType<string, string>;
209
209
  isOptional: false;
210
210
  };
211
211
  model: {
212
- type: _contractspec_lib_schema0.FieldType<string, string>;
212
+ type: _contractspec_lib_schema28.FieldType<string, string>;
213
213
  isOptional: false;
214
214
  };
215
215
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","names":[],"sources":["../src/schema.ts"],"sourcesContent":[],"mappings":";;;cAEa,4CAAgB;;UAS3B,yBAAA,CAAA;IATW,UAAA,EAAA,KASX;EAAA,CAAA;;;;;;6CAT2B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAWhB,CAAA;EAUX,MAAA,EAAA;;;;;;;;;cAVW,iDAAqB;;UAUhC,yBAAA,CAAA;;EAVgC,CAAA;EAYrB,KAAA,EAAA;IAUX,IAAA,qCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;IAVgC,IAAA,qCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAYrB,UAAA,EAAA,KAAA;EAMX,CAAA;;;;;;;;;;;;;;;;;;;;iDANiC,KAAA,EAAA,MAAA,CAAA;QAAA,UAAA,EAAA,KAAA;MAQtB,CAAA;IASX,CAAA,CAAA;;;;;;;;;;;;;cA7BW,qBAoB4B,4BApBP,WAoBO,CAAA;EAAA,cAAA,EAAA;UAVvC,yBAAA,CAAA;;;;;;;;;;;;cAEW,kDAAsB;;;;cAMjC,yBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAEW,wDAA4B;;;;cASvC,yBAAA,CAAA"}
1
+ {"version":3,"file":"schema.d.ts","names":[],"sources":["../src/schema.ts"],"sourcesContent":[],"mappings":";;;cAEa,6CAAgB;;UAS3B,0BAAA,CAAA;IATW,UAAA,EAAA,KASX;EAAA,CAAA;;;;;;8CAT2B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAWhB,CAAA;EAUX,MAAA,EAAA;;;;;;;;;cAVW,kDAAqB;;UAUhC,0BAAA,CAAA;;EAVgC,CAAA;EAYrB,KAAA,EAAA;IAUX,IAAA,sCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;IAVgC,IAAA,sCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAYrB,UAAA,EAAA,KAAA;EAMX,CAAA;;;;;;;;;;;;;;;;;;;;kDANiC,KAAA,EAAA,MAAA,CAAA;QAAA,UAAA,EAAA,KAAA;MAQtB,CAAA;IASX,CAAA,CAAA;;;;;;;;;;;;;cA7BW,qBAoB4B,6BApBP,WAoBO,CAAA;EAAA,cAAA,EAAA;UAVvC,0BAAA,CAAA;;;;;;;;;;;;cAEW,mDAAsB;;;;cAMjC,0BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAEW,yDAA4B;;;;cASvC,0BAAA,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/module.ai-chat",
3
- "version": "1.46.1",
3
+ "version": "1.47.0",
4
4
  "description": "AI chat interface module",
5
5
  "keywords": [
6
6
  "contractspec",
@@ -10,8 +10,6 @@
10
10
  "typescript"
11
11
  ],
12
12
  "type": "module",
13
- "main": "./dist/index.js",
14
- "module": "./dist/index.js",
15
13
  "types": "./dist/index.d.ts",
16
14
  "files": [
17
15
  "dist",
@@ -31,25 +29,25 @@
31
29
  "test": "bun test"
32
30
  },
33
31
  "dependencies": {
34
- "@contractspec/lib.ai-agent": "1.46.1",
35
- "@contractspec/lib.ai-providers": "1.46.1",
36
- "@contractspec/lib.contracts": "1.46.1",
37
- "@contractspec/lib.schema": "1.46.1",
38
- "@contractspec/lib.metering": "1.46.1",
39
- "@contractspec/lib.cost-tracking": "1.46.1",
40
- "@contractspec/lib.design-system": "1.46.1",
41
- "@contractspec/lib.ui-kit-web": "1.46.1",
42
- "@ai-sdk/react": "3.0.3",
43
- "ai": "6.0.3",
32
+ "@contractspec/lib.ai-agent": "1.47.0",
33
+ "@contractspec/lib.ai-providers": "1.47.0",
34
+ "@contractspec/lib.contracts": "1.47.0",
35
+ "@contractspec/lib.schema": "1.47.0",
36
+ "@contractspec/lib.metering": "1.47.0",
37
+ "@contractspec/lib.cost-tracking": "1.47.0",
38
+ "@contractspec/lib.design-system": "1.47.0",
39
+ "@contractspec/lib.ui-kit-web": "1.47.0",
40
+ "@ai-sdk/react": "3.0.31",
41
+ "ai": "6.0.29",
44
42
  "lucide-react": "^0.562.0",
45
43
  "react": "19.2.3",
46
- "zod": "^4.1.13"
44
+ "zod": "^4.3.5"
47
45
  },
48
46
  "devDependencies": {
49
- "@contractspec/tool.tsdown": "1.46.1",
50
- "@contractspec/tool.typescript": "1.46.1",
51
- "@types/react": "^19.0.14",
52
- "tsdown": "^0.18.3",
47
+ "@contractspec/tool.tsdown": "1.47.0",
48
+ "@contractspec/tool.typescript": "1.47.0",
49
+ "@types/react": "^19.2.8",
50
+ "tsdown": "^0.19.0",
53
51
  "typescript": "^5.9.3"
54
52
  },
55
53
  "peerDependencies": {