@meistrari/chat-nuxt 4.14.0-rc.4 → 4.14.0-rc.6

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@meistrari/chat-nuxt",
3
3
  "configKey": "chatNuxt",
4
- "version": "4.14.0-rc.4",
4
+ "version": "4.14.0-rc.6",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"
@@ -21,35 +21,41 @@ type __VLS_Props = {
21
21
  };
22
22
  declare function clearThread(): Promise<boolean>;
23
23
  declare function handleCancel(): Promise<void>;
24
- declare var __VLS_14: {}, __VLS_100: {}, __VLS_115: {
24
+ declare var __VLS_14: {}, __VLS_42: {}, __VLS_65: {}, __VLS_106: {}, __VLS_121: {
25
25
  message: useChatAuth;
26
- }, __VLS_118: {
26
+ }, __VLS_124: {
27
27
  message: useChatAuth;
28
- }, __VLS_132: {}, __VLS_141: {}, __VLS_213: {}, __VLS_234: {
28
+ }, __VLS_138: {}, __VLS_147: {}, __VLS_181: {}, __VLS_222: {}, __VLS_243: {
29
29
  message: useChatAuth;
30
- }, __VLS_237: {
30
+ }, __VLS_246: {
31
31
  message: useChatAuth;
32
- }, __VLS_251: {};
32
+ }, __VLS_260: {};
33
33
  type __VLS_Slots = {} & {
34
34
  'sidebar-bottom'?: (props: typeof __VLS_14) => any;
35
35
  } & {
36
- 'composer-bottom'?: (props: typeof __VLS_100) => any;
36
+ 'empty-state-header'?: (props: typeof __VLS_42) => any;
37
37
  } & {
38
- 'failed-message-actions'?: (props: typeof __VLS_115) => any;
38
+ 'empty-state-header'?: (props: typeof __VLS_65) => any;
39
39
  } & {
40
- 'user-message'?: (props: typeof __VLS_118) => any;
40
+ 'composer-bottom'?: (props: typeof __VLS_106) => any;
41
41
  } & {
42
- 'composer-bottom'?: (props: typeof __VLS_132) => any;
42
+ 'failed-message-actions'?: (props: typeof __VLS_121) => any;
43
43
  } & {
44
- 'topbar-leading'?: (props: typeof __VLS_141) => any;
44
+ 'user-message'?: (props: typeof __VLS_124) => any;
45
45
  } & {
46
- 'composer-bottom'?: (props: typeof __VLS_213) => any;
46
+ 'composer-bottom'?: (props: typeof __VLS_138) => any;
47
47
  } & {
48
- 'failed-message-actions'?: (props: typeof __VLS_234) => any;
48
+ 'topbar-leading'?: (props: typeof __VLS_147) => any;
49
49
  } & {
50
- 'user-message'?: (props: typeof __VLS_237) => any;
50
+ 'empty-state-header'?: (props: typeof __VLS_181) => any;
51
51
  } & {
52
- 'composer-bottom'?: (props: typeof __VLS_251) => any;
52
+ 'composer-bottom'?: (props: typeof __VLS_222) => any;
53
+ } & {
54
+ 'failed-message-actions'?: (props: typeof __VLS_243) => any;
55
+ } & {
56
+ 'user-message'?: (props: typeof __VLS_246) => any;
57
+ } & {
58
+ 'composer-bottom'?: (props: typeof __VLS_260) => any;
53
59
  };
54
60
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
55
61
  clear: typeof clearThread;
@@ -1157,6 +1157,9 @@ defineExpose({
1157
1157
  @switch-workspace="handleSwitchWorkspace"
1158
1158
  @tab-change="handleTabChange"
1159
1159
  >
1160
+ <template v-if="$slots['empty-state-header']" #empty-state-header>
1161
+ <slot name="empty-state-header" />
1162
+ </template>
1160
1163
  <template #loading>
1161
1164
  <ChatMessageList
1162
1165
  :messages="[]"
@@ -1189,6 +1192,9 @@ defineExpose({
1189
1192
  :title="pendingFork ? void 0 : emptyStateLabels.title"
1190
1193
  :description="pendingFork ? void 0 : emptyStateLabels.description"
1191
1194
  >
1195
+ <template v-if="$slots['empty-state-header'] && !pendingFork" #header>
1196
+ <slot name="empty-state-header" />
1197
+ </template>
1192
1198
  <ChatForkPreparation
1193
1199
  v-if="pendingFork"
1194
1200
  compact
@@ -1421,6 +1427,9 @@ defineExpose({
1421
1427
  :title="pendingFork ? void 0 : emptyStateLabels.title"
1422
1428
  :description="pendingFork ? void 0 : emptyStateLabels.description"
1423
1429
  >
1430
+ <template v-if="$slots['empty-state-header'] && !pendingFork" #header>
1431
+ <slot name="empty-state-header" />
1432
+ </template>
1424
1433
  <ChatForkPreparation
1425
1434
  v-if="pendingFork"
1426
1435
  :compact="compact"
@@ -21,35 +21,41 @@ type __VLS_Props = {
21
21
  };
22
22
  declare function clearThread(): Promise<boolean>;
23
23
  declare function handleCancel(): Promise<void>;
24
- declare var __VLS_14: {}, __VLS_100: {}, __VLS_115: {
24
+ declare var __VLS_14: {}, __VLS_42: {}, __VLS_65: {}, __VLS_106: {}, __VLS_121: {
25
25
  message: useChatAuth;
26
- }, __VLS_118: {
26
+ }, __VLS_124: {
27
27
  message: useChatAuth;
28
- }, __VLS_132: {}, __VLS_141: {}, __VLS_213: {}, __VLS_234: {
28
+ }, __VLS_138: {}, __VLS_147: {}, __VLS_181: {}, __VLS_222: {}, __VLS_243: {
29
29
  message: useChatAuth;
30
- }, __VLS_237: {
30
+ }, __VLS_246: {
31
31
  message: useChatAuth;
32
- }, __VLS_251: {};
32
+ }, __VLS_260: {};
33
33
  type __VLS_Slots = {} & {
34
34
  'sidebar-bottom'?: (props: typeof __VLS_14) => any;
35
35
  } & {
36
- 'composer-bottom'?: (props: typeof __VLS_100) => any;
36
+ 'empty-state-header'?: (props: typeof __VLS_42) => any;
37
37
  } & {
38
- 'failed-message-actions'?: (props: typeof __VLS_115) => any;
38
+ 'empty-state-header'?: (props: typeof __VLS_65) => any;
39
39
  } & {
40
- 'user-message'?: (props: typeof __VLS_118) => any;
40
+ 'composer-bottom'?: (props: typeof __VLS_106) => any;
41
41
  } & {
42
- 'composer-bottom'?: (props: typeof __VLS_132) => any;
42
+ 'failed-message-actions'?: (props: typeof __VLS_121) => any;
43
43
  } & {
44
- 'topbar-leading'?: (props: typeof __VLS_141) => any;
44
+ 'user-message'?: (props: typeof __VLS_124) => any;
45
45
  } & {
46
- 'composer-bottom'?: (props: typeof __VLS_213) => any;
46
+ 'composer-bottom'?: (props: typeof __VLS_138) => any;
47
47
  } & {
48
- 'failed-message-actions'?: (props: typeof __VLS_234) => any;
48
+ 'topbar-leading'?: (props: typeof __VLS_147) => any;
49
49
  } & {
50
- 'user-message'?: (props: typeof __VLS_237) => any;
50
+ 'empty-state-header'?: (props: typeof __VLS_181) => any;
51
51
  } & {
52
- 'composer-bottom'?: (props: typeof __VLS_251) => any;
52
+ 'composer-bottom'?: (props: typeof __VLS_222) => any;
53
+ } & {
54
+ 'failed-message-actions'?: (props: typeof __VLS_243) => any;
55
+ } & {
56
+ 'user-message'?: (props: typeof __VLS_246) => any;
57
+ } & {
58
+ 'composer-bottom'?: (props: typeof __VLS_260) => any;
53
59
  };
54
60
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
55
61
  clear: typeof clearThread;
@@ -1,4 +1,4 @@
1
- declare var __VLS_29: {}, __VLS_32: {}, __VLS_35: {}, __VLS_38: any, __VLS_41: any;
1
+ declare var __VLS_29: {}, __VLS_32: {}, __VLS_35: {}, __VLS_38: {}, __VLS_41: any, __VLS_44: any;
2
2
  type __VLS_Slots = {} & {
3
3
  'sidebar-bottom'?: (props: typeof __VLS_29) => any;
4
4
  } & {
@@ -6,9 +6,11 @@ type __VLS_Slots = {} & {
6
6
  } & {
7
7
  'composer-bottom'?: (props: typeof __VLS_35) => any;
8
8
  } & {
9
- 'failed-message-actions'?: (props: typeof __VLS_38) => any;
9
+ 'empty-state-header'?: (props: typeof __VLS_38) => any;
10
10
  } & {
11
- 'user-message'?: (props: typeof __VLS_41) => any;
11
+ 'failed-message-actions'?: (props: typeof __VLS_41) => any;
12
+ } & {
13
+ 'user-message'?: (props: typeof __VLS_44) => any;
12
14
  };
13
15
  declare const __VLS_base: import("vue").DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import("vue").PublicProps>;
14
16
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -202,6 +202,9 @@ defineExpose({
202
202
  <template v-if="$slots['composer-bottom']" #composer-bottom>
203
203
  <slot name="composer-bottom" />
204
204
  </template>
205
+ <template v-if="$slots['empty-state-header']" #empty-state-header>
206
+ <slot name="empty-state-header" />
207
+ </template>
205
208
  <template v-if="$slots['failed-message-actions']" #failed-message-actions="slotProps">
206
209
  <slot name="failed-message-actions" v-bind="slotProps" />
207
210
  </template>
@@ -1,4 +1,4 @@
1
- declare var __VLS_29: {}, __VLS_32: {}, __VLS_35: {}, __VLS_38: any, __VLS_41: any;
1
+ declare var __VLS_29: {}, __VLS_32: {}, __VLS_35: {}, __VLS_38: {}, __VLS_41: any, __VLS_44: any;
2
2
  type __VLS_Slots = {} & {
3
3
  'sidebar-bottom'?: (props: typeof __VLS_29) => any;
4
4
  } & {
@@ -6,9 +6,11 @@ type __VLS_Slots = {} & {
6
6
  } & {
7
7
  'composer-bottom'?: (props: typeof __VLS_35) => any;
8
8
  } & {
9
- 'failed-message-actions'?: (props: typeof __VLS_38) => any;
9
+ 'empty-state-header'?: (props: typeof __VLS_38) => any;
10
10
  } & {
11
- 'user-message'?: (props: typeof __VLS_41) => any;
11
+ 'failed-message-actions'?: (props: typeof __VLS_41) => any;
12
+ } & {
13
+ 'user-message'?: (props: typeof __VLS_44) => any;
12
14
  };
13
15
  declare const __VLS_base: import("vue").DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import("vue").PublicProps>;
14
16
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -34,6 +34,8 @@ type MeistrariChatEmbedSlots = SlotsType<{
34
34
  'topbar-leading'?: () => any;
35
35
  /** Rendered right under the prompt input, flush with it, on the empty state and in a conversation. Page variant only. */
36
36
  'composer-bottom'?: () => any;
37
+ /** Replaces the empty state's title and description (the greeting) on desktop and in the widgets; hidden while a fork is being prepared. */
38
+ 'empty-state-header'?: () => any;
37
39
  /** Rendered inside a failed assistant message's error box, next to "Tentar novamente"; receives the failed message. */
38
40
  'failed-message-actions'?: (props: { message: Message }) => any;
39
41
  /** Replaces the text of a user message, keeping its attachments, sender and timestamp; render nothing to keep the default text. */
@@ -145,6 +145,9 @@ defineExpose({
145
145
  <template v-if="$slots['failed-message-actions']" #failed-message-actions="slotProps">
146
146
  <slot name="failed-message-actions" v-bind="slotProps" />
147
147
  </template>
148
+ <template v-if="$slots['empty-state-header']" #empty-state-header>
149
+ <slot name="empty-state-header" />
150
+ </template>
148
151
  <template v-if="$slots['user-message']" #user-message="slotProps">
149
152
  <slot name="user-message" v-bind="slotProps" />
150
153
  </template>
@@ -184,6 +187,9 @@ defineExpose({
184
187
  <template v-if="$slots['failed-message-actions']" #failed-message-actions="slotProps">
185
188
  <slot name="failed-message-actions" v-bind="slotProps" />
186
189
  </template>
190
+ <template v-if="$slots['empty-state-header']" #empty-state-header>
191
+ <slot name="empty-state-header" />
192
+ </template>
187
193
  <template v-if="$slots['user-message']" #user-message="slotProps">
188
194
  <slot name="user-message" v-bind="slotProps" />
189
195
  </template>
@@ -219,6 +225,9 @@ defineExpose({
219
225
  <template v-if="$slots['failed-message-actions']" #failed-message-actions="slotProps">
220
226
  <slot name="failed-message-actions" v-bind="slotProps" />
221
227
  </template>
228
+ <template v-if="$slots['empty-state-header']" #empty-state-header>
229
+ <slot name="empty-state-header" />
230
+ </template>
222
231
  <template v-if="$slots['user-message']" #user-message="slotProps">
223
232
  <slot name="user-message" v-bind="slotProps" />
224
233
  </template>
@@ -34,6 +34,8 @@ type MeistrariChatEmbedSlots = SlotsType<{
34
34
  'topbar-leading'?: () => any;
35
35
  /** Rendered right under the prompt input, flush with it, on the empty state and in a conversation. Page variant only. */
36
36
  'composer-bottom'?: () => any;
37
+ /** Replaces the empty state's title and description (the greeting) on desktop and in the widgets; hidden while a fork is being prepared. */
38
+ 'empty-state-header'?: () => any;
37
39
  /** Rendered inside a failed assistant message's error box, next to "Tentar novamente"; receives the failed message. */
38
40
  'failed-message-actions'?: (props: { message: Message }) => any;
39
41
  /** Replaces the text of a user message, keeping its attachments, sender and timestamp; render nothing to keep the default text. */
@@ -52,13 +52,15 @@ type __VLS_ModelProps = {
52
52
  'selectedReasoningEffort'?: ChatReasoningEffort | null;
53
53
  };
54
54
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
55
- declare var __VLS_54: {}, __VLS_101: {}, __VLS_103: {};
55
+ declare var __VLS_54: {}, __VLS_64: {}, __VLS_103: {}, __VLS_105: {};
56
56
  type __VLS_Slots = {} & {
57
57
  loading?: (props: typeof __VLS_54) => any;
58
58
  } & {
59
- empty?: (props: typeof __VLS_101) => any;
59
+ 'empty-state-header'?: (props: typeof __VLS_64) => any;
60
60
  } & {
61
- default?: (props: typeof __VLS_103) => any;
61
+ empty?: (props: typeof __VLS_103) => any;
62
+ } & {
63
+ default?: (props: typeof __VLS_105) => any;
62
64
  };
63
65
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
64
66
  "update:selectedModel": (value: string | null) => any;
@@ -222,12 +222,14 @@ function startNewConversationFromOutdatedSettings() {
222
222
  <div flex="~ col 1" overflow-y-auto pt-54px min-h-0>
223
223
  <div flex="~ col 1" justify-center>
224
224
  <div px-20px pb-20px text-center>
225
- <h1 text-24px font-580 text-neutral-900 leading-28px tracking="-.4px">
226
- {{ emptyStateLabels.title }}
227
- </h1>
228
- <p text-14px text-neutral-500 leading-18px mt-6px>
229
- {{ emptyStateLabels.description }}
230
- </p>
225
+ <slot name="empty-state-header">
226
+ <h1 text-24px font-580 text-neutral-900 leading-28px tracking="-.4px">
227
+ {{ emptyStateLabels.title }}
228
+ </h1>
229
+ <p text-14px text-neutral-500 leading-18px mt-6px>
230
+ {{ emptyStateLabels.description }}
231
+ </p>
232
+ </slot>
231
233
  </div>
232
234
 
233
235
  <div px-14px pb-12px>
@@ -52,13 +52,15 @@ type __VLS_ModelProps = {
52
52
  'selectedReasoningEffort'?: ChatReasoningEffort | null;
53
53
  };
54
54
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
55
- declare var __VLS_54: {}, __VLS_101: {}, __VLS_103: {};
55
+ declare var __VLS_54: {}, __VLS_64: {}, __VLS_103: {}, __VLS_105: {};
56
56
  type __VLS_Slots = {} & {
57
57
  loading?: (props: typeof __VLS_54) => any;
58
58
  } & {
59
- empty?: (props: typeof __VLS_101) => any;
59
+ 'empty-state-header'?: (props: typeof __VLS_64) => any;
60
60
  } & {
61
- default?: (props: typeof __VLS_103) => any;
61
+ empty?: (props: typeof __VLS_103) => any;
62
+ } & {
63
+ default?: (props: typeof __VLS_105) => any;
62
64
  };
63
65
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
64
66
  "update:selectedModel": (value: string | null) => any;
@@ -776,6 +776,10 @@ export type ChatV3Message = z.infer<typeof chatV3MessageSchema>;
776
776
  export declare const chatV3MessageListQuerySchema: z.ZodObject<{
777
777
  before: z.ZodOptional<z.ZodString>;
778
778
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
779
+ activity: z.ZodPipe<z.ZodOptional<z.ZodEnum<{
780
+ true: "true";
781
+ false: "false";
782
+ }>>, z.ZodTransform<boolean, "true" | "false" | undefined>>;
779
783
  }, z.core.$strict>;
780
784
  export type ChatV3MessageListQuery = z.infer<typeof chatV3MessageListQuerySchema>;
781
785
  /**
@@ -848,6 +852,47 @@ export declare const chatV3MessageListSchema: z.ZodObject<{
848
852
  }, z.core.$strip>>;
849
853
  nextCursor: z.ZodNullable<z.ZodString>;
850
854
  eventCursor: z.ZodNullable<z.ZodString>;
855
+ activity: z.ZodOptional<z.ZodArray<z.ZodObject<{
856
+ eventId: z.ZodString;
857
+ sessionId: z.ZodString;
858
+ type: z.ZodString;
859
+ turnId: z.ZodNullable<z.ZodString>;
860
+ messageId: z.ZodNullable<z.ZodString>;
861
+ toolCallId: z.ZodNullable<z.ZodString>;
862
+ occurredAt: z.ZodString;
863
+ hint: z.ZodRecord<z.ZodString, z.ZodUnknown>;
864
+ text: z.ZodNullable<z.ZodString>;
865
+ partIndex: z.ZodNullable<z.ZodNumber>;
866
+ partCount: z.ZodNullable<z.ZodNumber>;
867
+ payloadVaultStatus: z.ZodEnum<{
868
+ pending: "pending";
869
+ none: "none";
870
+ published: "published";
871
+ }>;
872
+ receipt: z.ZodOptional<z.ZodObject<{
873
+ eventId: z.ZodString;
874
+ type: z.ZodEnum<{
875
+ input: "input";
876
+ "tool-result": "tool-result";
877
+ "message-queue": "message-queue";
878
+ "message-steer": "message-steer";
879
+ cancel: "cancel";
880
+ }>;
881
+ messageId: z.ZodOptional<z.ZodString>;
882
+ sessionId: z.ZodString;
883
+ turnId: z.ZodNullable<z.ZodString>;
884
+ status: z.ZodEnum<{
885
+ running: "running";
886
+ completed: "completed";
887
+ failed: "failed";
888
+ cancelled: "cancelled";
889
+ queued: "queued";
890
+ dispatched: "dispatched";
891
+ received: "received";
892
+ uncertain: "uncertain";
893
+ }>;
894
+ }, z.core.$loose>>;
895
+ }, z.core.$loose>>>;
851
896
  }, z.core.$strip>;
852
897
  export type ChatV3MessageList = z.infer<typeof chatV3MessageListSchema>;
853
898
  /**
@@ -916,6 +961,52 @@ export declare const chatV3ArtifactListQuerySchema: z.ZodObject<{
916
961
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
917
962
  }, z.core.$strict>;
918
963
  export type ChatV3ArtifactListQuery = z.infer<typeof chatV3ArtifactListQuerySchema>;
964
+ /**
965
+ * What the thread has cost so far, in v1's shape so the details column reads the same: the usage
966
+ * agent-api priced per turn, summed over the session's turns and shown in the workspace's billing
967
+ * (USD times its CVP, or credits). `usage` is null until a turn reports any.
968
+ */
969
+ export declare const chatV3ThreadUsageSchema: z.ZodObject<{
970
+ usage: z.ZodNullable<z.ZodObject<{
971
+ tokens: z.ZodObject<{
972
+ prompt: z.ZodNumber;
973
+ completion: z.ZodNumber;
974
+ total: z.ZodNumber;
975
+ cacheRead: z.ZodNumber;
976
+ cacheCreation: z.ZodNumber;
977
+ }, z.core.$strip>;
978
+ cost: z.ZodObject<{
979
+ prompt: z.ZodNumber;
980
+ completion: z.ZodNumber;
981
+ total: z.ZodNumber;
982
+ }, z.core.$strip>;
983
+ duration: z.ZodNumber;
984
+ turns: z.ZodNumber;
985
+ models: z.ZodArray<z.ZodObject<{
986
+ model: z.ZodString;
987
+ inputTokens: z.ZodNumber;
988
+ outputTokens: z.ZodNumber;
989
+ cacheReadTokens: z.ZodNumber;
990
+ cacheCreationTokens: z.ZodNumber;
991
+ cost: z.ZodNumber;
992
+ contextWindow: z.ZodNumber;
993
+ webSearchRequests: z.ZodNumber;
994
+ }, z.core.$strip>>;
995
+ metrics: z.ZodObject<{
996
+ cacheHitRate: z.ZodNumber;
997
+ costPerTurn: z.ZodNumber;
998
+ webSearchRequests: z.ZodNumber;
999
+ webFetchRequests: z.ZodNumber;
1000
+ }, z.core.$strip>;
1001
+ }, z.core.$strip>>;
1002
+ billing: z.ZodDiscriminatedUnion<[z.ZodObject<{
1003
+ mode: z.ZodLiteral<"plan">;
1004
+ cvp: z.ZodDefault<z.ZodNumber>;
1005
+ }, z.core.$strip>, z.ZodObject<{
1006
+ mode: z.ZodLiteral<"credits">;
1007
+ }, z.core.$strip>], "mode">;
1008
+ }, z.core.$strip>;
1009
+ export type ChatV3ThreadUsage = z.infer<typeof chatV3ThreadUsageSchema>;
919
1010
  /** The files the agent published in the thread and agent-api verified, in the order they were published. */
920
1011
  export declare const chatV3ArtifactListSchema: z.ZodObject<{
921
1012
  artifacts: z.ZodArray<z.ZodObject<{
@@ -966,6 +1057,18 @@ export declare const chatV3ThreadFileListSchema: z.ZodObject<{
966
1057
  }, z.core.$strip>>;
967
1058
  }, z.core.$strip>;
968
1059
  export type ChatV3ThreadFileList = z.infer<typeof chatV3ThreadFileListSchema>;
1060
+ /** A file sent in the thread, by its Vault reference, to open or download as v1's `/files/resolve` does. */
1061
+ export declare const chatV3ResolveFileSchema: z.ZodObject<{
1062
+ vaultReference: z.ZodString;
1063
+ }, z.core.$strict>;
1064
+ export type ChatV3ResolveFile = z.infer<typeof chatV3ResolveFileSchema>;
1065
+ /** Where the browser reads a file sent in the thread: Vault's link to its bytes, with the name and type it was sent with. */
1066
+ export declare const chatV3ResolvedFileSchema: z.ZodObject<{
1067
+ url: z.ZodString;
1068
+ name: z.ZodString;
1069
+ contentType: z.ZodNullable<z.ZodString>;
1070
+ }, z.core.$strip>;
1071
+ export type ChatV3ResolvedFile = z.infer<typeof chatV3ResolvedFileSchema>;
969
1072
  export declare const CHAT_V3_RECENT_FILES = 20;
970
1073
  export declare const chatV3RecentFileQuerySchema: z.ZodObject<{
971
1074
  agentId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { parseV5EventHint, v5ArtifactPageSchema, v5BranchNameSchema, v5EventIdSchema, v5HarnessSchema, v5InputNameSchema, v5Limits, v5ModelIdSchema, v5ReasoningEffortSchema, v5SessionEventSchema, v5TurnIdSchema, v5UserInputRequestSchema, v5VaultReferenceSchema } from '../integrations/agent-events';
3
+ import { conversationUsageResponseSchema } from './usage';
3
4
  /**
4
5
  * Chat API v3 (`/v3/chat`): the conversational surface over agent-api v5 events-v1.
5
6
  * The chat-api owns the thread; agent-api owns the session and its history.
@@ -503,6 +504,11 @@ export const chatV3MessageListQuerySchema = z.object({
503
504
  /** Exclusive cursor: the `nextCursor` of the previous page, which reads older messages. */
504
505
  before: v5EventIdSchema.optional(),
505
506
  limit: z.coerce.number().int().min(1).max(CHAT_V3_MESSAGE_PAGE.max).default(CHAT_V3_MESSAGE_PAGE.default),
507
+ /**
508
+ * `true` brings the page's activity along (`activity`): the history read already holds every
509
+ * event, so the steps of its messages cost no further read.
510
+ */
511
+ activity: z.enum(['true', 'false']).optional().transform(value => value === 'true'),
506
512
  }).strict();
507
513
  /**
508
514
  * The latest messages, oldest first. `eventCursor` is the last event the page was built from:
@@ -512,6 +518,12 @@ export const chatV3MessageListSchema = z.object({
512
518
  messages: z.array(chatV3MessageSchema),
513
519
  nextCursor: v5EventIdSchema.nullable(),
514
520
  eventCursor: v5EventIdSchema.nullable(),
521
+ /**
522
+ * With `activity=true`: the steps (`step.started`, `step`) and published files
523
+ * (`artifact.published`) of the page's messages, oldest first, up to `eventCursor`. Usage,
524
+ * inputs and questions stay behind `/activity`.
525
+ */
526
+ activity: z.array(v5SessionEventSchema).optional(),
515
527
  });
516
528
  /**
517
529
  * The event types of a message's activity: what the agent did while answering it (its tools as
@@ -538,6 +550,12 @@ export const chatV3ArtifactListQuerySchema = z.object({
538
550
  after: v5EventIdSchema.optional(),
539
551
  limit: z.coerce.number().int().min(1).max(v5Limits.artifactPage.max).default(v5Limits.artifactPage.default),
540
552
  }).strict();
553
+ /**
554
+ * What the thread has cost so far, in v1's shape so the details column reads the same: the usage
555
+ * agent-api priced per turn, summed over the session's turns and shown in the workspace's billing
556
+ * (USD times its CVP, or credits). `usage` is null until a turn reports any.
557
+ */
558
+ export const chatV3ThreadUsageSchema = conversationUsageResponseSchema;
541
559
  /** The files the agent published in the thread and agent-api verified, in the order they were published. */
542
560
  export const chatV3ArtifactListSchema = v5ArtifactPageSchema;
543
561
  /**
@@ -555,6 +573,14 @@ export const chatV3ThreadFileSchema = z.object({
555
573
  createdAt: z.string().nullable(),
556
574
  });
557
575
  export const chatV3ThreadFileListSchema = z.object({ files: z.array(chatV3ThreadFileSchema) });
576
+ /** A file sent in the thread, by its Vault reference, to open or download as v1's `/files/resolve` does. */
577
+ export const chatV3ResolveFileSchema = z.object({ vaultReference: v5VaultReferenceSchema }).strict();
578
+ /** Where the browser reads a file sent in the thread: Vault's link to its bytes, with the name and type it was sent with. */
579
+ export const chatV3ResolvedFileSchema = z.object({
580
+ url: z.string().url(),
581
+ name: z.string(),
582
+ contentType: z.string().nullable(),
583
+ });
558
584
  export const CHAT_V3_RECENT_FILES = 20;
559
585
  export const chatV3RecentFileQuerySchema = z.object({ agentId: agentIdSchema }).strict();
560
586
  /** The files the user sent lately in their threads with the agent, newest first, each once. */
@@ -1050,7 +1050,13 @@ export declare const v5TurnListSchema: z.ZodObject<{
1050
1050
  createdAt: z.ZodString;
1051
1051
  completedAt: z.ZodNullable<z.ZodString>;
1052
1052
  }, z.core.$loose>>;
1053
+ nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1053
1054
  }, z.core.$loose>;
1055
+ export declare const v5TurnQuerySchema: z.ZodObject<{
1056
+ after: z.ZodOptional<z.ZodString>;
1057
+ limit: z.ZodOptional<z.ZodNumber>;
1058
+ }, z.core.$strict>;
1059
+ export type V5TurnQuery = z.infer<typeof v5TurnQuerySchema>;
1054
1060
  export declare const v5ArtifactIdSchema: z.ZodString;
1055
1061
  export declare const v5ArtifactSchema: z.ZodObject<{
1056
1062
  artifactId: z.ZodString;
@@ -418,7 +418,11 @@ export const v5TurnSchema = z.looseObject({
418
418
  createdAt: z.string(),
419
419
  completedAt: z.string().nullable(),
420
420
  });
421
- export const v5TurnListSchema = z.looseObject({ turns: z.array(v5TurnSchema) });
421
+ export const v5TurnListSchema = z.looseObject({ turns: z.array(v5TurnSchema), nextCursor: z.string().min(1).nullable().optional() });
422
+ export const v5TurnQuerySchema = z.object({
423
+ after: z.string().min(1).max(200).optional(),
424
+ limit: z.number().int().min(1).max(500).optional(),
425
+ }).strict();
422
426
  export const v5ArtifactIdSchema = z.string().regex(/^[a-f0-9]{64}$/u);
423
427
  export const v5ArtifactSchema = z.looseObject({
424
428
  artifactId: v5ArtifactIdSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/chat-nuxt",
3
- "version": "4.14.0-rc.4",
3
+ "version": "4.14.0-rc.6",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {