@dremio/js-sdk 0.54.0 → 0.55.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/enterprise/ai/chat/UserChatMessage.d.ts +6 -2
- package/dist/enterprise/ai/chat/UserChatMessage.js +3 -1
- package/dist/enterprise/ai/chat/UserChatMessage.js.map +1 -1
- package/dist/enterprise/ai/conversations/conversationPropertiesCodec.d.ts +3 -3
- package/dist/enterprise/ai/conversations/conversationPropertiesCodec.js +7 -6
- package/dist/enterprise/ai/conversations/conversationPropertiesCodec.js.map +1 -1
- package/dist/enterprise/ai/conversations/methods/createConversation.d.ts +3 -1
- package/dist-iife/cloud.js +10 -7
- package/dist-iife/enterprise.js +10 -7
- package/package.json +1 -1
|
@@ -13,6 +13,7 @@ export declare class UserChatMessage {
|
|
|
13
13
|
id: string;
|
|
14
14
|
prompt: Omit<{
|
|
15
15
|
text: string;
|
|
16
|
+
acceptTaskNames?: string[] | undefined;
|
|
16
17
|
approvals?: {
|
|
17
18
|
allToolsAllowed: boolean;
|
|
18
19
|
approvalNonce: string;
|
|
@@ -21,9 +22,10 @@ export declare class UserChatMessage {
|
|
|
21
22
|
arguments: Record<string, unknown>;
|
|
22
23
|
executionId: string;
|
|
23
24
|
name: string;
|
|
25
|
+
allowInConversation?: boolean | undefined;
|
|
26
|
+
catalogPath?: string[] | undefined;
|
|
24
27
|
}[];
|
|
25
28
|
} | undefined;
|
|
26
|
-
acceptTaskNames?: string[] | undefined;
|
|
27
29
|
context?: string | undefined;
|
|
28
30
|
skillIds?: string[] | undefined;
|
|
29
31
|
}, "text"> | undefined;
|
|
@@ -31,17 +33,19 @@ export declare class UserChatMessage {
|
|
|
31
33
|
static new(content: UserChatMessage["content"], prompt?: UserChatMessage["prompt"]): UserChatMessage;
|
|
32
34
|
}
|
|
33
35
|
export declare const createConversationPromptSchema: z.ZodMiniObject<{
|
|
36
|
+
acceptTaskNames: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
34
37
|
approvals: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
35
38
|
allToolsAllowed: z.ZodMiniBoolean<boolean>;
|
|
36
39
|
approvalNonce: z.ZodMiniString<string>;
|
|
37
40
|
toolDecisions: z.ZodMiniArray<z.ZodMiniObject<{
|
|
41
|
+
allowInConversation: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
38
42
|
approved: z.ZodMiniBoolean<boolean>;
|
|
39
43
|
arguments: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>;
|
|
44
|
+
catalogPath: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
40
45
|
executionId: z.ZodMiniString<string>;
|
|
41
46
|
name: z.ZodMiniString<string>;
|
|
42
47
|
}, z.core.$strip>>;
|
|
43
48
|
}, z.core.$strip>>;
|
|
44
|
-
acceptTaskNames: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
45
49
|
context: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
46
50
|
skillIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
47
51
|
text: z.ZodMiniString<string>;
|
|
@@ -43,17 +43,19 @@ export class UserChatMessage {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
export const createConversationPromptSchema = z.strictObject({
|
|
46
|
+
acceptTaskNames: z.optional(z.array(z.string())),
|
|
46
47
|
approvals: z.optional(z.object({
|
|
47
48
|
allToolsAllowed: z.boolean(),
|
|
48
49
|
approvalNonce: z.string(),
|
|
49
50
|
toolDecisions: z.array(z.object({
|
|
51
|
+
allowInConversation: z.optional(z.boolean()),
|
|
50
52
|
approved: z.boolean(),
|
|
51
53
|
arguments: z.record(z.string(), z.unknown()),
|
|
54
|
+
catalogPath: z.optional(z.array(z.string())),
|
|
52
55
|
executionId: z.string(),
|
|
53
56
|
name: z.string(),
|
|
54
57
|
})),
|
|
55
58
|
})),
|
|
56
|
-
acceptTaskNames: z.optional(z.array(z.string())),
|
|
57
59
|
context: z.optional(z.string()),
|
|
58
60
|
skillIds: z.optional(z.array(z.string())),
|
|
59
61
|
text: z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserChatMessage.js","sourceRoot":"","sources":["../../../../src/enterprise/ai/chat/UserChatMessage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAE9B,MAAM,OAAO,eAAe;IACjB,SAAS,CAAyB;IAClC,OAAO,CAAS;IAChB,EAAE,CAAS;IACX,MAAM,CAAgE;IAE/E,YACE,EAAyB,EACzB,SAAuC,EACvC,OAAmC,EACnC,MAAkC;QAElC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,UAAU,CAAC,MAAiC;QAC1C,OAAO,IAAI,eAAe,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC5E,CAAC;IAED,MAAM;QACJ,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE;YACpC,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,GAAG,CAAC,OAAmC,EAAE,MAAkC;QAChF,OAAO,IAAI,eAAe,CAAC,MAAM,EAAE,EA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MAAM,EAAE;YACvB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;SACjB,CAAC,CACH;KACF,CAAC,CACH;IACD,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC/B,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACzC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2024-2025 Dremio Corporation\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { nanoid } from \"nanoid/non-secure\";\nimport { Temporal } from \"temporal-polyfill\";\nimport * as z from \"zod/mini\";\n\nexport class UserChatMessage {\n readonly createdAt: Temporal.ZonedDateTime;\n readonly content: string;\n readonly id: string;\n readonly prompt?: Omit<z.infer<typeof createConversationPromptSchema>, \"text\">;\n\n constructor(\n id: UserChatMessage[\"id\"],\n createdAt: UserChatMessage[\"createdAt\"],\n content: UserChatMessage[\"content\"],\n prompt?: UserChatMessage[\"prompt\"],\n ) {\n this.id = id;\n this.createdAt = createdAt;\n this.content = content;\n this.prompt = prompt;\n }\n\n withPrompt(prompt: UserChatMessage[\"prompt\"]) {\n return new UserChatMessage(this.id, this.createdAt, this.content, prompt);\n }\n\n toJSON() {\n return {\n content: this.content,\n createdAt: this.createdAt.toString(),\n id: this.id,\n prompt: this.prompt,\n };\n }\n\n static new(content: UserChatMessage[\"content\"], prompt?: UserChatMessage[\"prompt\"]) {\n return new UserChatMessage(nanoid(), Temporal.Now.zonedDateTimeISO(), content, prompt);\n }\n}\n\nexport const createConversationPromptSchema = z.strictObject({\n acceptTaskNames: z.optional(z.array(z.string())),\n approvals: z.optional(\n z.object({\n allToolsAllowed: z.boolean(),\n approvalNonce: z.string(),\n toolDecisions: z.array(\n z.object({\n allowInConversation: z.optional(z.boolean()),\n approved: z.boolean(),\n arguments: z.record(z.string(), z.unknown()),\n catalogPath: z.optional(z.array(z.string())),\n executionId: z.string(),\n name: z.string(),\n }),\n ),\n }),\n ),\n context: z.optional(z.string()),\n skillIds: z.optional(z.array(z.string())),\n text: z.string(),\n});\n"]}
|
|
@@ -2,12 +2,12 @@ import { Temporal } from "temporal-polyfill";
|
|
|
2
2
|
import * as z from "zod/mini";
|
|
3
3
|
export declare const conversationPropertiesCodec: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
4
4
|
conversationId: z.ZodMiniString<string>;
|
|
5
|
-
createdAt: z.iso.ZodMiniISODateTime
|
|
5
|
+
createdAt: z.ZodMiniOptional<z.iso.ZodMiniISODateTime>;
|
|
6
6
|
currentRunId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7
7
|
modelName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
8
8
|
modelProviderId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
9
|
-
modifiedAt: z.iso.ZodMiniISODateTime
|
|
10
|
-
tag: z.ZodMiniString<string
|
|
9
|
+
modifiedAt: z.ZodMiniOptional<z.iso.ZodMiniISODateTime>;
|
|
10
|
+
tag: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
11
11
|
title: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
12
12
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
13
13
|
createdAt: z.ZodMiniCustom<Temporal.Instant, Temporal.Instant>;
|
|
@@ -17,12 +17,12 @@ import { Temporal } from "temporal-polyfill";
|
|
|
17
17
|
import * as z from "zod/mini";
|
|
18
18
|
export const conversationPropertiesCodec = z.codec(z.object({
|
|
19
19
|
conversationId: z.string(),
|
|
20
|
-
createdAt: z.iso.datetime(),
|
|
20
|
+
createdAt: z.optional(z.iso.datetime()),
|
|
21
21
|
currentRunId: z.optional(z.string()),
|
|
22
22
|
modelName: z.optional(z.string()),
|
|
23
23
|
modelProviderId: z.optional(z.string()),
|
|
24
|
-
modifiedAt: z.iso.datetime(),
|
|
25
|
-
tag: z.string(),
|
|
24
|
+
modifiedAt: z.optional(z.iso.datetime()),
|
|
25
|
+
tag: z.optional(z.string()),
|
|
26
26
|
title: z.optional(z.nullable(z.string())),
|
|
27
27
|
}), z.object({
|
|
28
28
|
createdAt: z.instanceof(Temporal.Instant),
|
|
@@ -35,14 +35,15 @@ export const conversationPropertiesCodec = z.codec(z.object({
|
|
|
35
35
|
title: z.nullable(z.string()),
|
|
36
36
|
}), {
|
|
37
37
|
decode(v) {
|
|
38
|
+
const now = Temporal.Now.instant();
|
|
38
39
|
return {
|
|
39
|
-
createdAt: Temporal.Instant.from(v.createdAt),
|
|
40
|
+
createdAt: v.createdAt ? Temporal.Instant.from(v.createdAt) : now,
|
|
40
41
|
currentRunId: v.currentRunId || null,
|
|
41
42
|
id: v.conversationId,
|
|
42
43
|
modelName: v.modelName || null,
|
|
43
44
|
modelProviderId: v.modelProviderId || null,
|
|
44
|
-
modifiedAt: Temporal.Instant.from(v.modifiedAt),
|
|
45
|
-
tag: v.tag,
|
|
45
|
+
modifiedAt: v.modifiedAt ? Temporal.Instant.from(v.modifiedAt) : now,
|
|
46
|
+
tag: v.tag || "",
|
|
46
47
|
title: v.title || null,
|
|
47
48
|
};
|
|
48
49
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversationPropertiesCodec.js","sourceRoot":"","sources":["../../../../src/enterprise/ai/conversations/conversationPropertiesCodec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC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,CAAC,CAAC,EAAE;YACpB,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,QAAQ,EAAE;YACjC,YAAY,EAAE,CAAC,CAAC,YAAY,IAAI,SAAS;YACzC,SAAS,EAAE,CAAC,CAAC,SAAS,IAAI,SAAS;YACnC,eAAe,EAAE,CAAC,CAAC,eAAe,IAAI,SAAS;YAC/C,UAAU,EAAE,CAAC,CAAC,UAAU,CAAC,QAAQ,EAAE;YACnC,GAAG,EAAE,CAAC,CAAC,GAAG;YACV,KAAK,EAAE,CAAC,CAAC,KAAK;SACf,CAAC;IACJ,CAAC;CACF,CACF,CAAC","sourcesContent":["/*\n * Copyright (C) 2024-2025 Dremio Corporation\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Temporal } from \"temporal-polyfill\";\nimport * as z from \"zod/mini\";\n\nexport const conversationPropertiesCodec = z.codec(\n z.object({\n conversationId: z.string(),\n createdAt: z.optional(z.iso.datetime()),\n currentRunId: z.optional(z.string()),\n modelName: z.optional(z.string()),\n modelProviderId: z.optional(z.string()),\n modifiedAt: z.optional(z.iso.datetime()),\n tag: z.optional(z.string()),\n title: z.optional(z.nullable(z.string())),\n }),\n z.object({\n createdAt: z.instanceof(Temporal.Instant),\n currentRunId: z.nullable(z.string()),\n id: z.string(),\n modelName: z.nullable(z.string()),\n modelProviderId: z.nullable(z.string()),\n modifiedAt: z.instanceof(Temporal.Instant),\n tag: z.string(),\n title: z.nullable(z.string()),\n }),\n {\n decode(v) {\n const now = Temporal.Now.instant();\n return {\n createdAt: v.createdAt ? Temporal.Instant.from(v.createdAt) : now,\n currentRunId: v.currentRunId || null,\n id: v.conversationId,\n modelName: v.modelName || null,\n modelProviderId: v.modelProviderId || null,\n modifiedAt: v.modifiedAt ? Temporal.Instant.from(v.modifiedAt) : now,\n tag: v.tag || \"\",\n title: v.title || null,\n };\n },\n encode(v) {\n return {\n conversationId: v.id,\n createdAt: v.createdAt.toString(),\n currentRunId: v.currentRunId || undefined,\n modelName: v.modelName || undefined,\n modelProviderId: v.modelProviderId || undefined,\n modifiedAt: v.modifiedAt.toString(),\n tag: v.tag,\n title: v.title,\n };\n },\n },\n);\n\nexport type ConversationEntity = z.input<typeof conversationPropertiesCodec>;\n"]}
|
|
@@ -19,17 +19,19 @@ export declare const createConversationCodec: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
19
19
|
modelName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
20
20
|
modelProviderId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
21
21
|
prompt: z.ZodMiniObject<{
|
|
22
|
+
acceptTaskNames: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
22
23
|
approvals: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
23
24
|
allToolsAllowed: z.ZodMiniBoolean<boolean>;
|
|
24
25
|
approvalNonce: z.ZodMiniString<string>;
|
|
25
26
|
toolDecisions: z.ZodMiniArray<z.ZodMiniObject<{
|
|
27
|
+
allowInConversation: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
26
28
|
approved: z.ZodMiniBoolean<boolean>;
|
|
27
29
|
arguments: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>;
|
|
30
|
+
catalogPath: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
28
31
|
executionId: z.ZodMiniString<string>;
|
|
29
32
|
name: z.ZodMiniString<string>;
|
|
30
33
|
}, z.core.$strip>>;
|
|
31
34
|
}, z.core.$strip>>;
|
|
32
|
-
acceptTaskNames: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
33
35
|
context: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
34
36
|
skillIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
35
37
|
text: z.ZodMiniString<string>;
|
package/dist-iife/cloud.js
CHANGED
|
@@ -17467,17 +17467,19 @@ var DremioCloud = (() => {
|
|
|
17467
17467
|
}
|
|
17468
17468
|
};
|
|
17469
17469
|
var createConversationPromptSchema = strictObject({
|
|
17470
|
+
acceptTaskNames: optional(array(string2())),
|
|
17470
17471
|
approvals: optional(object({
|
|
17471
17472
|
allToolsAllowed: boolean2(),
|
|
17472
17473
|
approvalNonce: string2(),
|
|
17473
17474
|
toolDecisions: array(object({
|
|
17475
|
+
allowInConversation: optional(boolean2()),
|
|
17474
17476
|
approved: boolean2(),
|
|
17475
17477
|
arguments: record(string2(), unknown()),
|
|
17478
|
+
catalogPath: optional(array(string2())),
|
|
17476
17479
|
executionId: string2(),
|
|
17477
17480
|
name: string2()
|
|
17478
17481
|
}))
|
|
17479
17482
|
})),
|
|
17480
|
-
acceptTaskNames: optional(array(string2())),
|
|
17481
17483
|
context: optional(string2()),
|
|
17482
17484
|
skillIds: optional(array(string2())),
|
|
17483
17485
|
text: string2()
|
|
@@ -17875,12 +17877,12 @@ var DremioCloud = (() => {
|
|
|
17875
17877
|
// dist/enterprise/ai/conversations/conversationPropertiesCodec.js
|
|
17876
17878
|
var conversationPropertiesCodec = codec(object({
|
|
17877
17879
|
conversationId: string2(),
|
|
17878
|
-
createdAt: iso_exports.datetime(),
|
|
17880
|
+
createdAt: optional(iso_exports.datetime()),
|
|
17879
17881
|
currentRunId: optional(string2()),
|
|
17880
17882
|
modelName: optional(string2()),
|
|
17881
17883
|
modelProviderId: optional(string2()),
|
|
17882
|
-
modifiedAt: iso_exports.datetime(),
|
|
17883
|
-
tag: string2(),
|
|
17884
|
+
modifiedAt: optional(iso_exports.datetime()),
|
|
17885
|
+
tag: optional(string2()),
|
|
17884
17886
|
title: optional(nullable(string2()))
|
|
17885
17887
|
}), object({
|
|
17886
17888
|
createdAt: _instanceof(Xn.Instant),
|
|
@@ -17893,14 +17895,15 @@ var DremioCloud = (() => {
|
|
|
17893
17895
|
title: nullable(string2())
|
|
17894
17896
|
}), {
|
|
17895
17897
|
decode(v2) {
|
|
17898
|
+
const now = Xn.Now.instant();
|
|
17896
17899
|
return {
|
|
17897
|
-
createdAt: Xn.Instant.from(v2.createdAt),
|
|
17900
|
+
createdAt: v2.createdAt ? Xn.Instant.from(v2.createdAt) : now,
|
|
17898
17901
|
currentRunId: v2.currentRunId || null,
|
|
17899
17902
|
id: v2.conversationId,
|
|
17900
17903
|
modelName: v2.modelName || null,
|
|
17901
17904
|
modelProviderId: v2.modelProviderId || null,
|
|
17902
|
-
modifiedAt: Xn.Instant.from(v2.modifiedAt),
|
|
17903
|
-
tag: v2.tag,
|
|
17905
|
+
modifiedAt: v2.modifiedAt ? Xn.Instant.from(v2.modifiedAt) : now,
|
|
17906
|
+
tag: v2.tag || "",
|
|
17904
17907
|
title: v2.title || null
|
|
17905
17908
|
};
|
|
17906
17909
|
},
|
package/dist-iife/enterprise.js
CHANGED
|
@@ -16412,12 +16412,12 @@ var DremioEnterprise = (() => {
|
|
|
16412
16412
|
// dist/enterprise/ai/conversations/conversationPropertiesCodec.js
|
|
16413
16413
|
var conversationPropertiesCodec = codec(object({
|
|
16414
16414
|
conversationId: string2(),
|
|
16415
|
-
createdAt: iso_exports.datetime(),
|
|
16415
|
+
createdAt: optional(iso_exports.datetime()),
|
|
16416
16416
|
currentRunId: optional(string2()),
|
|
16417
16417
|
modelName: optional(string2()),
|
|
16418
16418
|
modelProviderId: optional(string2()),
|
|
16419
|
-
modifiedAt: iso_exports.datetime(),
|
|
16420
|
-
tag: string2(),
|
|
16419
|
+
modifiedAt: optional(iso_exports.datetime()),
|
|
16420
|
+
tag: optional(string2()),
|
|
16421
16421
|
title: optional(nullable(string2()))
|
|
16422
16422
|
}), object({
|
|
16423
16423
|
createdAt: _instanceof(Xn.Instant),
|
|
@@ -16430,14 +16430,15 @@ var DremioEnterprise = (() => {
|
|
|
16430
16430
|
title: nullable(string2())
|
|
16431
16431
|
}), {
|
|
16432
16432
|
decode(v2) {
|
|
16433
|
+
const now = Xn.Now.instant();
|
|
16433
16434
|
return {
|
|
16434
|
-
createdAt: Xn.Instant.from(v2.createdAt),
|
|
16435
|
+
createdAt: v2.createdAt ? Xn.Instant.from(v2.createdAt) : now,
|
|
16435
16436
|
currentRunId: v2.currentRunId || null,
|
|
16436
16437
|
id: v2.conversationId,
|
|
16437
16438
|
modelName: v2.modelName || null,
|
|
16438
16439
|
modelProviderId: v2.modelProviderId || null,
|
|
16439
|
-
modifiedAt: Xn.Instant.from(v2.modifiedAt),
|
|
16440
|
-
tag: v2.tag,
|
|
16440
|
+
modifiedAt: v2.modifiedAt ? Xn.Instant.from(v2.modifiedAt) : now,
|
|
16441
|
+
tag: v2.tag || "",
|
|
16441
16442
|
title: v2.title || null
|
|
16442
16443
|
};
|
|
16443
16444
|
},
|
|
@@ -16483,17 +16484,19 @@ var DremioEnterprise = (() => {
|
|
|
16483
16484
|
}
|
|
16484
16485
|
};
|
|
16485
16486
|
var createConversationPromptSchema = strictObject({
|
|
16487
|
+
acceptTaskNames: optional(array(string2())),
|
|
16486
16488
|
approvals: optional(object({
|
|
16487
16489
|
allToolsAllowed: boolean2(),
|
|
16488
16490
|
approvalNonce: string2(),
|
|
16489
16491
|
toolDecisions: array(object({
|
|
16492
|
+
allowInConversation: optional(boolean2()),
|
|
16490
16493
|
approved: boolean2(),
|
|
16491
16494
|
arguments: record(string2(), unknown()),
|
|
16495
|
+
catalogPath: optional(array(string2())),
|
|
16492
16496
|
executionId: string2(),
|
|
16493
16497
|
name: string2()
|
|
16494
16498
|
}))
|
|
16495
16499
|
})),
|
|
16496
|
-
acceptTaskNames: optional(array(string2())),
|
|
16497
16500
|
context: optional(string2()),
|
|
16498
16501
|
skillIds: optional(array(string2())),
|
|
16499
16502
|
text: string2()
|