@dremio/js-sdk 0.58.0 → 0.59.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.
@@ -14,7 +14,6 @@ export declare class UserChatMessage {
14
14
  prompt: Omit<{
15
15
  text: string;
16
16
  acceptTaskNames?: string[] | undefined;
17
- approvalResponseOnly?: boolean | undefined;
18
17
  approvals?: {
19
18
  allToolsAllowed: boolean;
20
19
  approvalNonce: string;
@@ -35,7 +34,6 @@ export declare class UserChatMessage {
35
34
  }
36
35
  export declare const createConversationPromptSchema: z.ZodMiniObject<{
37
36
  acceptTaskNames: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
38
- approvalResponseOnly: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
39
37
  approvals: z.ZodMiniOptional<z.ZodMiniObject<{
40
38
  allToolsAllowed: z.ZodMiniBoolean<boolean>;
41
39
  approvalNonce: z.ZodMiniString<string>;
@@ -44,7 +44,6 @@ export class UserChatMessage {
44
44
  }
45
45
  export const createConversationPromptSchema = z.strictObject({
46
46
  acceptTaskNames: z.optional(z.array(z.string())),
47
- approvalResponseOnly: z.optional(z.boolean()),
48
47
  approvals: z.optional(z.object({
49
48
  allToolsAllowed: z.boolean(),
50
49
  approvalNonce: 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,OA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AE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;YAC5C,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;YACrB,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;YAC5C,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;YAC5C,WAAW,EAAE,CAAC,CAAC,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 approvalResponseOnly: z.optional(z.boolean()),\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"]}
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,SA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,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;YAC5C,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;YAC5C,WAAW,EAAE,CAAC,CAAC,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"]}
@@ -20,7 +20,6 @@ export declare const createConversationCodec: z.ZodMiniCodec<z.ZodMiniObject<{
20
20
  modelProviderId: z.ZodMiniOptional<z.ZodMiniString<string>>;
21
21
  prompt: z.ZodMiniObject<{
22
22
  acceptTaskNames: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
23
- approvalResponseOnly: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
24
23
  approvals: z.ZodMiniOptional<z.ZodMiniObject<{
25
24
  allToolsAllowed: z.ZodMiniBoolean<boolean>;
26
25
  approvalNonce: z.ZodMiniString<string>;
@@ -46,7 +46,6 @@ export const createConversationCodec = z.codec(createConversationInSchema, z.ext
46
46
  modelProviderId: v.modelProviderId,
47
47
  prompt: {
48
48
  acceptTaskNames: v.message.prompt?.acceptTaskNames,
49
- approvalResponseOnly: v.message.prompt?.approvalResponseOnly,
50
49
  approvals: v.message.prompt?.approvals,
51
50
  context: v.message.prompt?.context,
52
51
  skillIds: v.message.prompt?.skillIds,
@@ -58,7 +57,6 @@ export const createConversationCodec = z.codec(createConversationInSchema, z.ext
58
57
  return {
59
58
  message: UserChatMessage.new(v.prompt.text, {
60
59
  acceptTaskNames: v.prompt?.acceptTaskNames,
61
- approvalResponseOnly: v.prompt?.approvalResponseOnly,
62
60
  approvals: v.prompt?.approvals,
63
61
  context: v.prompt?.context,
64
62
  skillIds: v.prompt?.skillIds,
@@ -1 +1 @@
1
- {"version":3,"file":"createConversation.js","sourceRoot":"","sources":["../../../../../src/enterprise/ai/conversations/methods/createConversation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAE9B,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,EAAE,8BAA8B,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhG,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,MAAqB,EAAE,EAAE,CAC1D,SAAS,kBAAkB,CAAC,IAA6C;IACvE,OAAO,MAAM;SACV,cAAc,CAAC,qBAAqB,EAAE;QACrC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,uBAAuB,EAAE,IAAI,CAAC,CAAC;QAC7D,OAAO,EAAE;YACP,MAAM,EAAE,kBAAkB;YAC1B,cAAc,EAAE,kBAAkB;SACnC;QACD,SAAS,EAAE,IAAI;QACf,MAAM,EAAE,MAAM;KACf,CAAC;SACD,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAA0D,CAAC;SAChF,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,2BAA2B,EAAE,MAAM,CAAC,CAAC,CAAC;AACpE,CAAC,CAAC;AAEJ,MAAM,0BAA0B,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,OAAO,EAAE,CAAC,CAAC,UAAU,CAAC,eAAe,CAAC;IACtC,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,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C;YACF,SAAS,EAAE,CAAC,CAAC,SAAS;YACtB,eAAe,EAAE,CAAC,CAAC,eAAe;SACnC,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 * as z from \"zod/mini\";\nimport type { SonarV4Config } from \"../../../../common/Config.ts\";\nimport { conversationPropertiesCodec } from \"../conversationPropertiesCodec.ts\";\nimport { createConversationPromptSchema, UserChatMessage } from \"../../chat/UserChatMessage.ts\";\n\nexport const createConversation = (config: SonarV4Config) =>\n function createConversation(body: z.input<typeof createConversationCodec>) {\n return config\n .sonarV4Request(`agent/conversations`, {\n body: JSON.stringify(z.decode(createConversationCodec, body)),\n headers: {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\",\n },\n keepalive: true,\n method: \"POST\",\n })\n .map((res) => res.json() as Promise<z.input<typeof conversationPropertiesCodec>>)\n .map((entity) => z.decode(conversationPropertiesCodec, entity));\n };\n\nconst createConversationInSchema = z.strictObject({\n message: z.instanceof(UserChatMessage),\n modelName: z.optional(z.string()),\n modelProviderId: z.optional(z.string()),\n});\n\nexport const createConversationCodec = z.codec(\n createConversationInSchema,\n z.extend(\n z.omit(createConversationInSchema, {\n message: true,\n }),\n {\n prompt: createConversationPromptSchema,\n },\n ),\n {\n decode(v) {\n return {\n modelName: v.modelName,\n modelProviderId: v.modelProviderId,\n prompt: {\n acceptTaskNames: v.message.prompt?.acceptTaskNames,\n approvalResponseOnly: v.message.prompt?.approvalResponseOnly,\n approvals: v.message.prompt?.approvals,\n context: v.message.prompt?.context,\n skillIds: v.message.prompt?.skillIds,\n text: v.message.content,\n },\n };\n },\n encode(v) {\n return {\n message: UserChatMessage.new(v.prompt.text, {\n acceptTaskNames: v.prompt?.acceptTaskNames,\n approvalResponseOnly: v.prompt?.approvalResponseOnly,\n approvals: v.prompt?.approvals,\n context: v.prompt?.context,\n skillIds: v.prompt?.skillIds,\n }),\n modelName: v.modelName,\n modelProviderId: v.modelProviderId,\n };\n },\n },\n);\n"]}
1
+ {"version":3,"file":"createConversation.js","sourceRoot":"","sources":["../../../../../src/enterprise/ai/conversations/methods/createConversation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAE9B,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,EAAE,8BAA8B,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhG,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,MAAqB,EAAE,EAAE,CAC1D,SAAS,kBAAkB,CAAC,IAA6C;IACvE,OAAO,MAAM;SACV,cAAc,CAAC,qBAAqB,EAAE;QACrC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,uBAAuB,EAAE,IAAI,CAAC,CAAC;QAC7D,OAAO,EAAE;YACP,MAAM,EAAE,kBAAkB;YAC1B,cAAc,EAAE,kBAAkB;SACnC;QACD,SAAS,EAAE,IAAI;QACf,MAAM,EAAE,MAAM;KACf,CAAC;SACD,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAA0D,CAAC;SAChF,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,2BAA2B,EAAE,MAAM,CAAC,CAAC,CAAC;AACpE,CAAC,CAAC;AAEJ,MAAM,0BAA0B,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,OAAO,EAAE,CAAC,CA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AAe,EAAE,CAAC,CAAC,eAAe;SACnC,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 * as z from \"zod/mini\";\nimport type { SonarV4Config } from \"../../../../common/Config.ts\";\nimport { conversationPropertiesCodec } from \"../conversationPropertiesCodec.ts\";\nimport { createConversationPromptSchema, UserChatMessage } from \"../../chat/UserChatMessage.ts\";\n\nexport const createConversation = (config: SonarV4Config) =>\n function createConversation(body: z.input<typeof createConversationCodec>) {\n return config\n .sonarV4Request(`agent/conversations`, {\n body: JSON.stringify(z.decode(createConversationCodec, body)),\n headers: {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\",\n },\n keepalive: true,\n method: \"POST\",\n })\n .map((res) => res.json() as Promise<z.input<typeof conversationPropertiesCodec>>)\n .map((entity) => z.decode(conversationPropertiesCodec, entity));\n };\n\nconst createConversationInSchema = z.strictObject({\n message: z.instanceof(UserChatMessage),\n modelName: z.optional(z.string()),\n modelProviderId: z.optional(z.string()),\n});\n\nexport const createConversationCodec = z.codec(\n createConversationInSchema,\n z.extend(\n z.omit(createConversationInSchema, {\n message: true,\n }),\n {\n prompt: createConversationPromptSchema,\n },\n ),\n {\n decode(v) {\n return {\n modelName: v.modelName,\n modelProviderId: v.modelProviderId,\n prompt: {\n acceptTaskNames: v.message.prompt?.acceptTaskNames,\n approvals: v.message.prompt?.approvals,\n context: v.message.prompt?.context,\n skillIds: v.message.prompt?.skillIds,\n text: v.message.content,\n },\n };\n },\n encode(v) {\n return {\n message: UserChatMessage.new(v.prompt.text, {\n acceptTaskNames: v.prompt?.acceptTaskNames,\n approvals: v.prompt?.approvals,\n context: v.prompt?.context,\n skillIds: v.prompt?.skillIds,\n }),\n modelName: v.modelName,\n modelProviderId: v.modelProviderId,\n };\n },\n },\n);\n"]}
@@ -3,9 +3,14 @@ import { DatasetCatalogObject, type DatasetEntity } from "../../../oss/catalog/C
3
3
  import type { RetrieveByPath } from "../../../oss/catalog/CatalogReferences/BaseCatalogReference.ts";
4
4
  import type { Grantee } from "../../Grantee.ts";
5
5
  import { EnterpriseDatasetCatalogReference } from "../CatalogReferences/EnterpriseDatasetCatalogReference.ts";
6
+ export type VizAttributes = {
7
+ name?: string;
8
+ spec?: string;
9
+ };
6
10
  export declare class EnterpriseDatasetCatalogObject extends DatasetCatalogObject {
7
11
  catalogReference: EnterpriseDatasetCatalogReference;
8
12
  readonly owner?: Grantee;
13
+ readonly vizAttributes?: VizAttributes;
9
14
  constructor(properties: EnterpriseDatasetCatalogObjectProperties);
10
15
  grants(): Promise<import("ts-results-es").Result<import("../CatalogReferences/retrieveCatalogGrants.ts").CatalogGrants<"DELETE" | "ALTER" | "INSERT" | "MANAGE GRANTS" | "OWNERSHIP" | "SELECT" | "TRUNCATE" | "UPDATE">, unknown>>;
11
16
  }
@@ -17,6 +22,7 @@ type EnterpriseDatasetEntity = DatasetEntity & {
17
22
  ownerId: string;
18
23
  ownerType: "ROLE" | "USER";
19
24
  };
25
+ vizAttributes?: VizAttributes;
20
26
  };
21
27
  export declare const enterpriseDatasetEntityToProperties: (entity: EnterpriseDatasetEntity, config: SonarV3Config, retrieveByPath: RetrieveByPath) => {
22
28
  catalogReference: EnterpriseDatasetCatalogReference;
@@ -24,6 +30,7 @@ export declare const enterpriseDatasetEntityToProperties: (entity: EnterpriseDat
24
30
  id: string;
25
31
  type: "ROLE" | "USER";
26
32
  } | undefined;
33
+ vizAttributes: VizAttributes | undefined;
27
34
  createdAt: Date;
28
35
  datasetVersion: string | undefined;
29
36
  fields: {
@@ -17,9 +17,11 @@ import { DatasetCatalogObject, datasetEntityToProperties, } from "../../../oss/c
17
17
  import { EnterpriseDatasetCatalogReference } from "../CatalogReferences/EnterpriseDatasetCatalogReference.js";
18
18
  export class EnterpriseDatasetCatalogObject extends DatasetCatalogObject {
19
19
  owner;
20
+ vizAttributes;
20
21
  constructor(properties) {
21
22
  super(properties);
22
23
  this.owner = properties.owner;
24
+ this.vizAttributes = properties.vizAttributes;
23
25
  }
24
26
  grants() {
25
27
  return this.catalogReference.grants();
@@ -40,6 +42,7 @@ export const enterpriseDatasetEntityToProperties = (entity, config, retrieveByPa
40
42
  type: entity.owner.ownerType,
41
43
  }
42
44
  : undefined,
45
+ vizAttributes: entity.vizAttributes,
43
46
  };
44
47
  };
45
48
  //# sourceMappingURL=EnterpriseDatasetCatalogObject.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EnterpriseDatasetCatalogObject.js","sourceRoot":"","sources":["../../../../src/enterprise/catalog/CatalogObjects/EnterpriseDatasetCatalogObject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,oBAAoB,EACpB,yBAAyB,GAE1B,MAAM,6DAA6D,CAAC;AAIrE,OAAO,EAAE,iCAAiC,EAAE,MAAM,2DAA2D,CAAC;AAE9G,MAAM,OAAO,8BAA+B,SAAQ,oBAAoB;IAE7D,KAAK,CAAW;IAEzB,YAAY,UAAoD;QAC9D,KAAK,CAAC,UAAU,CAAC,CAAC;QAClB,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;IAChC,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,CAAC;IACxC,CAAC;CACF;AAUD,MAAM,CAAC,MAAM,mCAAmC,GAAG,CACjD,MAA+B,EAC/B,MAAqB,EACrB,cAA8B,EAC9B,EAAE;IACF,MAAM,iBAAiB,GAAG,yBAAyB,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;IACpF,OAAO;QACL,GAAG,iBAAiB;QACpB,gBAAgB,EAAE,IAAI,iCAAiC,CACrD;YACE,EAAE,EAAE,MAAM,CAAC,EAAE;YACb,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,IAAI,EAAE,iBAAiB,CAAC,IAAI;SAC7B,EACD,MAAM,EACN,cAAc,CACf;QACD,KAAK,EAAE,MAAM,CAAC,KAAK;YACjB,CAAC,CAAC;gBACE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO;gBACxB,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,SAAS;aAC7B;YACH,CAAC,CAAC,SAAS;KACd,CAAC;AACJ,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 type { SonarV3Config } from \"../../../common/Config.ts\";\nimport {\n DatasetCatalogObject,\n datasetEntityToProperties,\n type DatasetEntity,\n} from \"../../../oss/catalog/CatalogObjects/DatasetCatalogObject.ts\";\nimport type { RetrieveByPath } from \"../../../oss/catalog/CatalogReferences/BaseCatalogReference.ts\";\nimport type { Grantee } from \"../../Grantee.ts\";\n\nimport { EnterpriseDatasetCatalogReference } from \"../CatalogReferences/EnterpriseDatasetCatalogReference.ts\";\n\nexport class EnterpriseDatasetCatalogObject extends DatasetCatalogObject {\n declare catalogReference: EnterpriseDatasetCatalogReference;\n readonly owner?: Grantee;\n\n constructor(properties: EnterpriseDatasetCatalogObjectProperties) {\n super(properties);\n this.owner = properties.owner;\n }\n\n grants() {\n return this.catalogReference.grants();\n }\n}\n\nexport type EnterpriseDatasetCatalogObjectProperties = ReturnType<\n typeof enterpriseDatasetEntityToProperties\n> & { owner?: Grantee };\n\ntype EnterpriseDatasetEntity = DatasetEntity & {\n owner?: { ownerId: string; ownerType: \"ROLE\" | \"USER\" };\n};\n\nexport const enterpriseDatasetEntityToProperties = (\n entity: EnterpriseDatasetEntity,\n config: SonarV3Config,\n retrieveByPath: RetrieveByPath,\n) => {\n const datasetProperties = datasetEntityToProperties(entity, config, retrieveByPath);\n return {\n ...datasetProperties,\n catalogReference: new EnterpriseDatasetCatalogReference(\n {\n id: entity.id,\n path: entity.path,\n type: datasetProperties.type,\n },\n config,\n retrieveByPath,\n ),\n owner: entity.owner\n ? {\n id: entity.owner.ownerId,\n type: entity.owner.ownerType,\n }\n : undefined,\n };\n};\n"]}
1
+ {"version":3,"file":"EnterpriseDatasetCatalogObject.js","sourceRoot":"","sources":["../../../../src/enterprise/catalog/CatalogObjects/EnterpriseDatasetCatalogObject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,oBAAoB,EACpB,yBAAyB,GAE1B,MAAM,6DAA6D,CAAC;AAIrE,OAAO,EAAE,iCAAiC,EAAE,MAAM,2DAA2D,CAAC;AAO9G,MAAM,OAAO,8BAA+B,SAAQ,oBAAoB;IAE7D,KAAK,CAAW;IAChB,aAAa,CAAiB;IAEvC,YAAY,UAAoD;QAC9D,KAAK,CAAC,UAAU,CAAC,CAAC;QAClB,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;QAC9B,IAAI,CAAC,aAAa,GAAG,UAAU,CAAC,aAAa,CAAC;IAChD,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,CAAC;IACxC,CAAC;CACF;AAWD,MAAM,CAAC,MAAM,mCAAmC,GAAG,CACjD,MAA+B,EAC/B,MAAqB,EACrB,cAA8B,EAC9B,EAAE;IACF,MAAM,iBAAiB,GAAG,yBAAyB,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;IACpF,OAAO;QACL,GAAG,iBAAiB;QACpB,gBAAgB,EAAE,IAAI,iCAAiC,CACrD;YACE,EAAE,EAAE,MAAM,CAAC,EAAE;YACb,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,IAAI,EAAE,iBAAiB,CAAC,IAAI;SAC7B,EACD,MAAM,EACN,cAAc,CACf;QACD,KAAK,EAAE,MAAM,CAAC,KAAK;YACjB,CAAC,CAAC;gBACE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO;gBACxB,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,SAAS;aAC7B;YACH,CAAC,CAAC,SAAS;QACb,aAAa,EAAE,MAAM,CAAC,aAAa;KACpC,CAAC;AACJ,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 type { SonarV3Config } from \"../../../common/Config.ts\";\nimport {\n DatasetCatalogObject,\n datasetEntityToProperties,\n type DatasetEntity,\n} from \"../../../oss/catalog/CatalogObjects/DatasetCatalogObject.ts\";\nimport type { RetrieveByPath } from \"../../../oss/catalog/CatalogReferences/BaseCatalogReference.ts\";\nimport type { Grantee } from \"../../Grantee.ts\";\n\nimport { EnterpriseDatasetCatalogReference } from \"../CatalogReferences/EnterpriseDatasetCatalogReference.ts\";\n\nexport type VizAttributes = {\n name?: string;\n spec?: string;\n};\n\nexport class EnterpriseDatasetCatalogObject extends DatasetCatalogObject {\n declare catalogReference: EnterpriseDatasetCatalogReference;\n readonly owner?: Grantee;\n readonly vizAttributes?: VizAttributes;\n\n constructor(properties: EnterpriseDatasetCatalogObjectProperties) {\n super(properties);\n this.owner = properties.owner;\n this.vizAttributes = properties.vizAttributes;\n }\n\n grants() {\n return this.catalogReference.grants();\n }\n}\n\nexport type EnterpriseDatasetCatalogObjectProperties = ReturnType<\n typeof enterpriseDatasetEntityToProperties\n> & { owner?: Grantee };\n\ntype EnterpriseDatasetEntity = DatasetEntity & {\n owner?: { ownerId: string; ownerType: \"ROLE\" | \"USER\" };\n vizAttributes?: VizAttributes;\n};\n\nexport const enterpriseDatasetEntityToProperties = (\n entity: EnterpriseDatasetEntity,\n config: SonarV3Config,\n retrieveByPath: RetrieveByPath,\n) => {\n const datasetProperties = datasetEntityToProperties(entity, config, retrieveByPath);\n return {\n ...datasetProperties,\n catalogReference: new EnterpriseDatasetCatalogReference(\n {\n id: entity.id,\n path: entity.path,\n type: datasetProperties.type,\n },\n config,\n retrieveByPath,\n ),\n owner: entity.owner\n ? {\n id: entity.owner.ownerId,\n type: entity.owner.ownerType,\n }\n : undefined,\n vizAttributes: entity.vizAttributes,\n };\n};\n"]}
@@ -4718,9 +4718,11 @@ var DremioCloud = (() => {
4718
4718
  // dist/enterprise/catalog/CatalogObjects/EnterpriseDatasetCatalogObject.js
4719
4719
  var EnterpriseDatasetCatalogObject = class extends DatasetCatalogObject {
4720
4720
  owner;
4721
+ vizAttributes;
4721
4722
  constructor(properties) {
4722
4723
  super(properties);
4723
4724
  this.owner = properties.owner;
4725
+ this.vizAttributes = properties.vizAttributes;
4724
4726
  }
4725
4727
  grants() {
4726
4728
  return this.catalogReference.grants();
@@ -4738,7 +4740,8 @@ var DremioCloud = (() => {
4738
4740
  owner: entity.owner ? {
4739
4741
  id: entity.owner.ownerId,
4740
4742
  type: entity.owner.ownerType
4741
- } : void 0
4743
+ } : void 0,
4744
+ vizAttributes: entity.vizAttributes
4742
4745
  };
4743
4746
  };
4744
4747
 
@@ -17498,7 +17501,6 @@ var DremioCloud = (() => {
17498
17501
  };
17499
17502
  var createConversationPromptSchema = strictObject({
17500
17503
  acceptTaskNames: optional(array(string2())),
17501
- approvalResponseOnly: optional(boolean2()),
17502
17504
  approvals: optional(object({
17503
17505
  allToolsAllowed: boolean2(),
17504
17506
  approvalNonce: string2(),
@@ -17980,7 +17982,6 @@ var DremioCloud = (() => {
17980
17982
  modelProviderId: v2.modelProviderId,
17981
17983
  prompt: {
17982
17984
  acceptTaskNames: v2.message.prompt?.acceptTaskNames,
17983
- approvalResponseOnly: v2.message.prompt?.approvalResponseOnly,
17984
17985
  approvals: v2.message.prompt?.approvals,
17985
17986
  context: v2.message.prompt?.context,
17986
17987
  skillIds: v2.message.prompt?.skillIds,
@@ -17992,7 +17993,6 @@ var DremioCloud = (() => {
17992
17993
  return {
17993
17994
  message: UserChatMessage.new(v2.prompt.text, {
17994
17995
  acceptTaskNames: v2.prompt?.acceptTaskNames,
17995
- approvalResponseOnly: v2.prompt?.approvalResponseOnly,
17996
17996
  approvals: v2.prompt?.approvals,
17997
17997
  context: v2.prompt?.context,
17998
17998
  skillIds: v2.prompt?.skillIds
@@ -4708,9 +4708,11 @@ var DremioEnterprise = (() => {
4708
4708
  // dist/enterprise/catalog/CatalogObjects/EnterpriseDatasetCatalogObject.js
4709
4709
  var EnterpriseDatasetCatalogObject = class extends DatasetCatalogObject {
4710
4710
  owner;
4711
+ vizAttributes;
4711
4712
  constructor(properties) {
4712
4713
  super(properties);
4713
4714
  this.owner = properties.owner;
4715
+ this.vizAttributes = properties.vizAttributes;
4714
4716
  }
4715
4717
  grants() {
4716
4718
  return this.catalogReference.grants();
@@ -4728,7 +4730,8 @@ var DremioEnterprise = (() => {
4728
4730
  owner: entity.owner ? {
4729
4731
  id: entity.owner.ownerId,
4730
4732
  type: entity.owner.ownerType
4731
- } : void 0
4733
+ } : void 0,
4734
+ vizAttributes: entity.vizAttributes
4732
4735
  };
4733
4736
  };
4734
4737
 
@@ -16510,7 +16513,6 @@ var DremioEnterprise = (() => {
16510
16513
  };
16511
16514
  var createConversationPromptSchema = strictObject({
16512
16515
  acceptTaskNames: optional(array(string2())),
16513
- approvalResponseOnly: optional(boolean2()),
16514
16516
  approvals: optional(object({
16515
16517
  allToolsAllowed: boolean2(),
16516
16518
  approvalNonce: string2(),
@@ -16556,7 +16558,6 @@ var DremioEnterprise = (() => {
16556
16558
  modelProviderId: v2.modelProviderId,
16557
16559
  prompt: {
16558
16560
  acceptTaskNames: v2.message.prompt?.acceptTaskNames,
16559
- approvalResponseOnly: v2.message.prompt?.approvalResponseOnly,
16560
16561
  approvals: v2.message.prompt?.approvals,
16561
16562
  context: v2.message.prompt?.context,
16562
16563
  skillIds: v2.message.prompt?.skillIds,
@@ -16568,7 +16569,6 @@ var DremioEnterprise = (() => {
16568
16569
  return {
16569
16570
  message: UserChatMessage.new(v2.prompt.text, {
16570
16571
  acceptTaskNames: v2.prompt?.acceptTaskNames,
16571
- approvalResponseOnly: v2.prompt?.approvalResponseOnly,
16572
16572
  approvals: v2.prompt?.approvals,
16573
16573
  context: v2.prompt?.context,
16574
16574
  skillIds: v2.prompt?.skillIds
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dremio/js-sdk",
3
- "version": "0.58.0",
3
+ "version": "0.59.0",
4
4
  "description": "JavaScript library for the Dremio API",
5
5
  "keywords": [
6
6
  "dremio",