@sisense/sdk-ai-core 0.10.1 → 0.15.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.
Files changed (136) hide show
  1. package/dist/engines/build-chart/build-chart-engine.d.ts +2 -12
  2. package/dist/engines/build-chart/build-chart-engine.d.ts.map +1 -1
  3. package/dist/engines/build-chart/create-chart/assemble-chart-widget.d.ts +31 -0
  4. package/dist/engines/build-chart/create-chart/assemble-chart-widget.d.ts.map +1 -0
  5. package/dist/engines/build-chart/create-chart/chart-json-axes-mapping.d.ts +27 -0
  6. package/dist/engines/build-chart/create-chart/chart-json-axes-mapping.d.ts.map +1 -0
  7. package/dist/engines/build-chart/create-chart/create-chart.d.ts +4 -21
  8. package/dist/engines/build-chart/create-chart/create-chart.d.ts.map +1 -1
  9. package/dist/engines/build-chart/create-chart/generate-chart-recommendations.d.ts +8 -4
  10. package/dist/engines/build-chart/create-chart/generate-chart-recommendations.d.ts.map +1 -1
  11. package/dist/engines/build-chart/create-chart/generate-chart.d.ts +18 -0
  12. package/dist/engines/build-chart/create-chart/generate-chart.d.ts.map +1 -0
  13. package/dist/engines/build-chart/create-chart/get-columns-json.d.ts +15 -0
  14. package/dist/engines/build-chart/create-chart/get-columns-json.d.ts.map +1 -0
  15. package/dist/engines/build-chart/create-chart/rebind-chart-to-query.d.ts +11 -0
  16. package/dist/engines/build-chart/create-chart/rebind-chart-to-query.d.ts.map +1 -0
  17. package/dist/engines/build-chart/create-chart/resolve-chart-query.d.ts +11 -0
  18. package/dist/engines/build-chart/create-chart/resolve-chart-query.d.ts.map +1 -0
  19. package/dist/engines/build-chart/shared/chart-column-utils.d.ts +7 -0
  20. package/dist/engines/build-chart/shared/chart-column-utils.d.ts.map +1 -0
  21. package/dist/engines/build-chart/shared/csdk-data-options-for-llm.d.ts +14 -0
  22. package/dist/engines/build-chart/shared/csdk-data-options-for-llm.d.ts.map +1 -0
  23. package/dist/engines/build-chart/shared/finalize-chart-widget-save.d.ts +8 -0
  24. package/dist/engines/build-chart/shared/finalize-chart-widget-save.d.ts.map +1 -0
  25. package/dist/engines/build-chart/shared/normalize-cartesian-axes-mapping.d.ts +8 -0
  26. package/dist/engines/build-chart/shared/normalize-cartesian-axes-mapping.d.ts.map +1 -0
  27. package/dist/engines/build-chart/shared/sync-chart-state-measure-flags.d.ts +22 -0
  28. package/dist/engines/build-chart/shared/sync-chart-state-measure-flags.d.ts.map +1 -0
  29. package/dist/engines/build-chart/types.d.ts +388 -511
  30. package/dist/engines/build-chart/types.d.ts.map +1 -1
  31. package/dist/engines/build-chart/update-chart/chart-options-schemas.d.ts +1608 -8812
  32. package/dist/engines/build-chart/update-chart/chart-options-schemas.d.ts.map +1 -1
  33. package/dist/engines/build-chart/update-chart/schemas.d.ts +68 -977
  34. package/dist/engines/build-chart/update-chart/schemas.d.ts.map +1 -1
  35. package/dist/engines/build-chart/update-chart/update-chart-data-options.d.ts +1 -1
  36. package/dist/engines/build-chart/update-chart/update-chart-data-options.d.ts.map +1 -1
  37. package/dist/engines/build-chart/update-chart/update-chart-query.d.ts +1 -1
  38. package/dist/engines/build-chart/update-chart/update-chart-query.d.ts.map +1 -1
  39. package/dist/engines/build-chart/update-chart/update-chart-style-options.d.ts +1 -1
  40. package/dist/engines/build-chart/update-chart/update-chart-style-options.d.ts.map +1 -1
  41. package/dist/engines/build-chart/update-chart/update-chart-title.d.ts +1 -1
  42. package/dist/engines/build-chart/update-chart/update-chart-title.d.ts.map +1 -1
  43. package/dist/engines/build-chart/update-chart/update-chart-type.d.ts +1 -1
  44. package/dist/engines/build-chart/update-chart/update-chart-type.d.ts.map +1 -1
  45. package/dist/engines/build-csv-model/build-csv-model-engine.d.ts +1 -1
  46. package/dist/engines/build-csv-model/build-csv-model-engine.d.ts.map +1 -1
  47. package/dist/engines/build-csv-model/rest-build.d.ts +26 -0
  48. package/dist/engines/build-csv-model/rest-build.d.ts.map +1 -1
  49. package/dist/engines/build-csv-model/types.d.ts +9 -71
  50. package/dist/engines/build-csv-model/types.d.ts.map +1 -1
  51. package/dist/engines/build-dashboard/build-dashboard-engine.d.ts +2 -10
  52. package/dist/engines/build-dashboard/build-dashboard-engine.d.ts.map +1 -1
  53. package/dist/engines/build-dashboard/build-dashboard-service.d.ts +3 -3
  54. package/dist/engines/build-dashboard/build-dashboard-service.d.ts.map +1 -1
  55. package/dist/engines/build-dashboard/dashboard-filters/manipulate-dashboard-filters.d.ts +2 -2
  56. package/dist/engines/build-dashboard/dashboard-filters/manipulate-dashboard-filters.d.ts.map +1 -1
  57. package/dist/engines/build-dashboard/index.d.ts +1 -1
  58. package/dist/engines/build-dashboard/index.d.ts.map +1 -1
  59. package/dist/engines/build-dashboard/types.d.ts +74 -123
  60. package/dist/engines/build-dashboard/types.d.ts.map +1 -1
  61. package/dist/engines/build-data-model/build-data-model-engine.d.ts +1 -1
  62. package/dist/engines/build-data-model/build-data-model-engine.d.ts.map +1 -1
  63. package/dist/engines/build-data-model/types.d.ts +59 -316
  64. package/dist/engines/build-data-model/types.d.ts.map +1 -1
  65. package/dist/engines/build-query/build-query-engine.d.ts +1 -1
  66. package/dist/engines/build-query/build-query-engine.d.ts.map +1 -1
  67. package/dist/engines/build-query/types.d.ts +2 -10
  68. package/dist/engines/build-query/types.d.ts.map +1 -1
  69. package/dist/engines/get-dashboards/get-dashboards-engine.d.ts +1 -1
  70. package/dist/engines/get-dashboards/get-dashboards-engine.d.ts.map +1 -1
  71. package/dist/engines/get-dashboards/types.d.ts +2 -2
  72. package/dist/engines/get-dashboards/types.d.ts.map +1 -1
  73. package/dist/engines/get-data-source-fields/get-data-source-fields-engine.d.ts +5 -4
  74. package/dist/engines/get-data-source-fields/get-data-source-fields-engine.d.ts.map +1 -1
  75. package/dist/engines/get-data-source-fields/types.d.ts +7 -9
  76. package/dist/engines/get-data-source-fields/types.d.ts.map +1 -1
  77. package/dist/engines/get-data-sources/get-data-sources-engine.d.ts +1 -1
  78. package/dist/engines/get-data-sources/get-data-sources-engine.d.ts.map +1 -1
  79. package/dist/engines/get-data-sources/types.d.ts +2 -2
  80. package/dist/engines/get-data-sources/types.d.ts.map +1 -1
  81. package/dist/engines/index.d.ts +1 -1
  82. package/dist/engines/index.d.ts.map +1 -1
  83. package/dist/engines/manage-perspectives/manage-perspectives-engine.d.ts +1 -1
  84. package/dist/engines/manage-perspectives/manage-perspectives-engine.d.ts.map +1 -1
  85. package/dist/engines/manage-perspectives/types.d.ts +77 -199
  86. package/dist/engines/manage-perspectives/types.d.ts.map +1 -1
  87. package/dist/engines/recommend-queries/recommend-queries-engine.d.ts +1 -1
  88. package/dist/engines/recommend-queries/recommend-queries-engine.d.ts.map +1 -1
  89. package/dist/engines/recommend-queries/types.d.ts +5 -17
  90. package/dist/engines/recommend-queries/types.d.ts.map +1 -1
  91. package/dist/index.d.ts +6 -3
  92. package/dist/index.d.ts.map +1 -1
  93. package/dist/index.js +27903 -8724
  94. package/dist/index.js.map +1 -1
  95. package/dist/services/dashboards/dashboards-service.d.ts.map +1 -1
  96. package/dist/services/dashboards/fusion-dashboards-service.d.ts.map +1 -1
  97. package/dist/services/data-models/ecm-service.d.ts +14 -0
  98. package/dist/services/data-models/ecm-service.d.ts.map +1 -1
  99. package/dist/services/data-sources/data-sources-service.d.ts.map +1 -1
  100. package/dist/services/llm/llm-models-service.d.ts +15 -0
  101. package/dist/services/llm/llm-models-service.d.ts.map +1 -0
  102. package/dist/services/nlq/nlq-service.d.ts +3 -14
  103. package/dist/services/nlq/nlq-service.d.ts.map +1 -1
  104. package/dist/singleton-clients.d.ts +4 -22
  105. package/dist/singleton-clients.d.ts.map +1 -1
  106. package/dist/utils/abort-signal.d.ts +3 -0
  107. package/dist/utils/abort-signal.d.ts.map +1 -0
  108. package/dist/utils/create-custom-fetch.d.ts +2 -3
  109. package/dist/utils/create-custom-fetch.d.ts.map +1 -1
  110. package/dist/utils/create-serialized-tool-group.d.ts +24 -0
  111. package/dist/utils/create-serialized-tool-group.d.ts.map +1 -0
  112. package/dist/utils/create-stream-completion.d.ts +69 -0
  113. package/dist/utils/create-stream-completion.d.ts.map +1 -0
  114. package/dist/utils/create-structured-completion.d.ts +18 -0
  115. package/dist/utils/create-structured-completion.d.ts.map +1 -0
  116. package/dist/utils/create-tools-completion.d.ts +28 -0
  117. package/dist/utils/create-tools-completion.d.ts.map +1 -0
  118. package/dist/utils/llm-client.d.ts +8 -0
  119. package/dist/utils/llm-client.d.ts.map +1 -0
  120. package/dist/utils/llm-provider-options.d.ts +14 -0
  121. package/dist/utils/llm-provider-options.d.ts.map +1 -0
  122. package/dist/utils/zod-utils.d.ts +23 -17
  123. package/dist/utils/zod-utils.d.ts.map +1 -1
  124. package/package.json +19 -18
  125. package/dist/engines/build-chart/create-chart/generate-chart-table.d.ts +0 -28
  126. package/dist/engines/build-chart/create-chart/generate-chart-table.d.ts.map +0 -1
  127. package/dist/engines/build-dashboard/create-chart-widget.d.ts +0 -5
  128. package/dist/engines/build-dashboard/create-chart-widget.d.ts.map +0 -1
  129. package/dist/engines/build-dashboard/update-chart-widget.d.ts +0 -5
  130. package/dist/engines/build-dashboard/update-chart-widget.d.ts.map +0 -1
  131. package/dist/services/globals/globals-service.d.ts +0 -2
  132. package/dist/services/globals/globals-service.d.ts.map +0 -1
  133. package/dist/utils/chat-completion-utils.d.ts +0 -55
  134. package/dist/utils/chat-completion-utils.d.ts.map +0 -1
  135. package/dist/utils/openai-client.d.ts +0 -11
  136. package/dist/utils/openai-client.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/engines/build-chart/update-chart/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA8CxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0B1B,CAAC;AAsDH,eAAO,MAAM,aAAa;;;;;;;;;;;;EAIxB,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyB1B,CAAC;AA8BH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMrC,CAAC;AAGH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/engines/build-chart/update-chart/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAkD3B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;iBA0B1B,CAAC;AAsDH,eAAO,MAAM,aAAa;;;;;;;;;;iBAIxB,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2DArIT,OAAO,EAAE,KAAK,OAAO,YAArB,OAAO,EAAE,KAAK,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0DAArB,OAAO,EAAE,KAAK,OAAO,YAArB,OAAO,EAAE,KAAK,OAAO;iBA8JtC,CAAC;AA8BH,eAAO,MAAM,0BAA0B;;;;;;;;;;iBAMrC,CAAC;AAGH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0BjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { BuildChartContext, ExtendedChartWidgetProps, updateChartSchema } from '../types';
2
- import { z } from 'zod';
2
+ import { z } from 'zod/v4';
3
3
  type UpdateChartDataOptionsHelperParams = {
4
4
  systemPrompt: string;
5
5
  userPrompt: string;
@@ -1 +1 @@
1
- {"version":3,"file":"update-chart-data-options.d.ts","sourceRoot":"","sources":["../../../../src/engines/build-chart/update-chart/update-chart-data-options.ts"],"names":[],"mappings":"AACA,OAAO,EACN,iBAAiB,EACjB,wBAAwB,EACxB,iBAAiB,EACjB,MAAM,UAAU,CAAC;AASlB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,KAAK,kCAAkC,GAAG;IACzC,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,wBAAwB,CAAC;CAC3C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B,GAC3C,kBAAkB,wBAAwB,EAC1C,gBAAgB,CAAC,CAAC,UAAU,EAC5B,yBAAyB,MAAM,KAC7B,MA8DF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,GAAU,iDAIhD,kCAAkC,KAAG,OAAO,CAAC,wBAAwB,CAmCvE,CAAC;AA8CF,eAAO,MAAM,sBAAsB,GAClC,yBAAyB,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,EAC1D,cAAc,MAAM,EACpB,SAAS,iBAAiB;;EAgB1B,CAAC;AAqHF,eAAO,MAAM,yBAAyB,4BApGX,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,WACjD,iBAAiB;;EAqG3B,CAAC;AAEF,eAAO,MAAM,kBAAkB,4BAxGJ,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,WACjD,iBAAiB;;EAyG3B,CAAC;AAEF,eAAO,MAAM,sBAAsB,4BA5GR,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,WACjD,iBAAiB;;EA6G3B,CAAC;AAEF,eAAO,MAAM,2BAA2B,4BAhHb,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,WACjD,iBAAiB;;EAiH3B,CAAC"}
1
+ {"version":3,"file":"update-chart-data-options.d.ts","sourceRoot":"","sources":["../../../../src/engines/build-chart/update-chart/update-chart-data-options.ts"],"names":[],"mappings":"AACA,OAAO,EACN,iBAAiB,EACjB,wBAAwB,EACxB,iBAAiB,EACjB,MAAM,UAAU,CAAC;AASlB,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAG3B,KAAK,kCAAkC,GAAG;IACzC,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,wBAAwB,CAAC;CAC3C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B,GAC3C,kBAAkB,wBAAwB,EAC1C,gBAAgB,CAAC,CAAC,UAAU,EAC5B,yBAAyB,MAAM,KAC7B,MA2EF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,GAAU,iDAIhD,kCAAkC,KAAG,OAAO,CAAC,wBAAwB,CAmCvE,CAAC;AA8CF,eAAO,MAAM,sBAAsB,GAClC,yBAAyB,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,EAC1D,cAAc,MAAM,EACpB,SAAS,iBAAiB;;EAgB1B,CAAC;AAqHF,eAAO,MAAM,yBAAyB,4BApGX,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,WACjD,iBAAiB;;EAqG3B,CAAC;AAEF,eAAO,MAAM,kBAAkB,4BAxGJ,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,WACjD,iBAAiB;;EAyG3B,CAAC;AAEF,eAAO,MAAM,sBAAsB,4BA5GR,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,WACjD,iBAAiB;;EA6G3B,CAAC;AAEF,eAAO,MAAM,2BAA2B,4BAhHb,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,WACjD,iBAAiB;;EAiH3B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v4';
2
2
  import { BuildChartContext, updateChartQuerySchema } from '../types';
3
3
  export declare const updateChartQuery: ({ revisionPrompt, chartId }: z.infer<typeof updateChartQuerySchema>, context: BuildChartContext) => Promise<{
4
4
  message: string;
@@ -1 +1 @@
1
- {"version":3,"file":"update-chart-query.d.ts","sourceRoot":"","sources":["../../../../src/engines/build-chart/update-chart/update-chart-query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAKrE,eAAO,MAAM,gBAAgB,GAC5B,6BAA6B,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,EACnE,SAAS,iBAAiB;;;;EA+C1B,CAAC"}
1
+ {"version":3,"file":"update-chart-query.d.ts","sourceRoot":"","sources":["../../../../src/engines/build-chart/update-chart/update-chart-query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAe3B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAElD,eAAO,MAAM,gBAAgB,GAC5B,6BAA6B,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,EACnE,SAAS,iBAAiB;;;;EA+F1B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v4';
2
2
  import { BuildChartContext, ExtendedChartWidgetProps, updateChartSchema } from '../types';
3
3
  type UpdateChartStyleOptionsHelperParams = {
4
4
  userPrompt: string;
@@ -1 +1 @@
1
- {"version":3,"file":"update-chart-style-options.d.ts","sourceRoot":"","sources":["../../../../src/engines/build-chart/update-chart/update-chart-style-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EACN,iBAAiB,EACjB,wBAAwB,EACxB,iBAAiB,EACjB,MAAM,UAAU,CAAC;AAIlB,KAAK,mCAAmC,GAAG;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,wBAAwB,CAAC;CAC3C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,GAAU,mCAGjD,mCAAmC,KAAG,OAAO,CAAC,wBAAwB,CA+DxE,CAAC;AAEF,eAAO,MAAM,uBAAuB,GACnC,yBAAyB,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,EAC1D,SAAS,iBAAiB;;EAoB1B,CAAC"}
1
+ {"version":3,"file":"update-chart-style-options.d.ts","sourceRoot":"","sources":["../../../../src/engines/build-chart/update-chart/update-chart-style-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B,OAAO,EACN,iBAAiB,EACjB,wBAAwB,EACxB,iBAAiB,EACjB,MAAM,UAAU,CAAC;AAIlB,KAAK,mCAAmC,GAAG;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,wBAAwB,CAAC;CAC3C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,GAAU,mCAGjD,mCAAmC,KAAG,OAAO,CAAC,wBAAwB,CA+DxE,CAAC;AAEF,eAAO,MAAM,uBAAuB,GACnC,yBAAyB,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,EAC1D,SAAS,iBAAiB;;EAoB1B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { default as z } from 'zod';
1
+ import { default as z } from 'zod/v4';
2
2
  import { BuildChartContext, ExtendedChartWidgetProps, updateChartTitleSchema } from '../types';
3
3
  type UpdateChartTitleHelperParams = {
4
4
  chartTitle: string;
@@ -1 +1 @@
1
- {"version":3,"file":"update-chart-title.d.ts","sourceRoot":"","sources":["../../../../src/engines/build-chart/update-chart/update-chart-title.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EACN,iBAAiB,EACjB,wBAAwB,EACxB,sBAAsB,EACtB,MAAM,UAAU,CAAC;AAGlB,KAAK,4BAA4B,GAAG;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,wBAAwB,CAAC;CAC3C,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,mCAGpC,4BAA4B,KAAG,wBAKjC,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC5B,yBAAyB,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,EAC/D,SAAS,iBAAiB;;EAuB1B,CAAC"}
1
+ {"version":3,"file":"update-chart-title.d.ts","sourceRoot":"","sources":["../../../../src/engines/build-chart/update-chart/update-chart-title.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EACN,iBAAiB,EACjB,wBAAwB,EACxB,sBAAsB,EACtB,MAAM,UAAU,CAAC;AAGlB,KAAK,4BAA4B,GAAG;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,wBAAwB,CAAC;CAC3C,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,mCAGpC,4BAA4B,KAAG,wBAKjC,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC5B,yBAAyB,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,EAC/D,SAAS,iBAAiB;;EAuB1B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { ChartType } from '@sisense/sdk-ui';
2
2
  import { ExtendedChartWidgetProps, BuildChartContext, updateChartTypeSchema } from '../types';
3
- import { default as z } from 'zod';
3
+ import { default as z } from 'zod/v4';
4
4
  type UpdateChartTypeHelperParams = {
5
5
  userPrompt: string;
6
6
  chartType: ChartType;
@@ -1 +1 @@
1
- {"version":3,"file":"update-chart-type.d.ts","sourceRoot":"","sources":["../../../../src/engines/build-chart/update-chart/update-chart-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAK9D,OAAO,EACN,wBAAwB,EACxB,iBAAiB,EACjB,qBAAqB,EACrB,MAAM,UAAU,CAAC;AAElB,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,KAAK,2BAA2B,GAAG;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,wBAAwB,CAAC;CAC3C,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAU,8CAIzC,2BAA2B,sCA0D7B,CAAC;AAEF,eAAO,MAAM,eAAe,GAC3B,oCAAoC,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,EACzE,SAAS,iBAAiB;;EAsB1B,CAAC"}
1
+ {"version":3,"file":"update-chart-type.d.ts","sourceRoot":"","sources":["../../../../src/engines/build-chart/update-chart/update-chart-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAK9D,OAAO,EACN,wBAAwB,EACxB,iBAAiB,EACjB,qBAAqB,EACrB,MAAM,UAAU,CAAC;AAIlB,OAAO,CAAC,MAAM,QAAQ,CAAC;AAGvB,KAAK,2BAA2B,GAAG;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,wBAAwB,CAAC;CAC3C,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAU,8CAIzC,2BAA2B,sCAgE7B,CAAC;AAEF,eAAO,MAAM,eAAe,GAC3B,oCAAoC,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,EACzE,SAAS,iBAAiB;;EAsB1B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v4';
2
2
  import { buildCsvModelParamsSchema, BuildCsvModelResult, BuiltRelation, BuiltTable, CsvModelEngineContext } from './types';
3
3
  /**
4
4
  * Optional snapshot accompanying a progress update. Lets the renderer surface
@@ -1 +1 @@
1
- {"version":3,"file":"build-csv-model-engine.d.ts","sourceRoot":"","sources":["../../../src/engines/build-csv-model/build-csv-model-engine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,OAAO,EACN,yBAAyB,EACzB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,qBAAqB,EAC1B,MAAM,SAAS,CAAC;AAiCjB;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC7C,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC;IACtB,SAAS,CAAC,EAAE,aAAa,EAAE,CAAC;CAC5B;AAED,wBAAsB,mBAAmB,CACxC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,EACjD,OAAO,EAAE,qBAAqB,EAC9B,UAAU,CAAC,EAAE,CACZ,KAAK,EAAE,MAAM,EACb,MAAM,CAAC,EAAE,MAAM,EACf,QAAQ,CAAC,EAAE,6BAA6B,KACpC,IAAI,GACP,OAAO,CAAC,mBAAmB,CAAC,CA+O9B"}
1
+ {"version":3,"file":"build-csv-model-engine.d.ts","sourceRoot":"","sources":["../../../src/engines/build-csv-model/build-csv-model-engine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAgB3B,OAAO,EACN,yBAAyB,EACzB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,qBAAqB,EAC1B,MAAM,SAAS,CAAC;AAiCjB;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC7C,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC;IACtB,SAAS,CAAC,EAAE,aAAa,EAAE,CAAC;CAC5B;AAED,wBAAsB,mBAAmB,CACxC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,EACjD,OAAO,EAAE,qBAAqB,EAC9B,UAAU,CAAC,EAAE,CACZ,KAAK,EAAE,MAAM,EACb,MAAM,CAAC,EAAE,MAAM,EACf,QAAQ,CAAC,EAAE,6BAA6B,KACpC,IAAI,GACP,OAAO,CAAC,mBAAmB,CAAC,CAgT9B"}
@@ -2,6 +2,25 @@ import { HttpClient } from '@sisense/sdk-rest-client';
2
2
  export declare function triggerFullBuild(datamodelOid: string, httpClient?: HttpClient): Promise<{
3
3
  buildOid: string;
4
4
  }>;
5
+ export interface WaitForSchemaResult {
6
+ ready: boolean;
7
+ tablesFound: number;
8
+ relationsFound: number;
9
+ }
10
+ /**
11
+ * Block until the model's schema reflects all expected tables and relations (or
12
+ * the timeout elapses). Returns `ready: false` on timeout so the caller can
13
+ * still attempt the build rather than hang forever.
14
+ */
15
+ export declare function waitForSchemaPersisted(datamodelOid: string, expected: {
16
+ tableOids: string[];
17
+ relationOids: string[];
18
+ }, options?: {
19
+ intervalMs?: number;
20
+ timeoutMs?: number;
21
+ httpClient?: HttpClient;
22
+ onUpdate?: (detail: string) => void;
23
+ }): Promise<WaitForSchemaResult>;
5
24
  export interface PollBuildResult {
6
25
  status: 'done' | 'failed' | 'timeout';
7
26
  durationMs: number;
@@ -9,6 +28,13 @@ export interface PollBuildResult {
9
28
  export declare function pollBuild(buildOid: string, options?: {
10
29
  intervalMs?: number;
11
30
  timeoutMs?: number;
31
+ /**
32
+ * Delay before the FIRST status check. POST /builds returns an oid before
33
+ * the build row is queryable — GET /builds/{oid} 400s with "BE#983754 Data
34
+ * source not found for build id" for the first few seconds. Wait this long
35
+ * before polling so the first request lands after the row exists.
36
+ */
37
+ initialDelayMs?: number;
12
38
  onUpdate?: (status: string) => void;
13
39
  httpClient?: HttpClient;
14
40
  }): Promise<PollBuildResult>;
@@ -1 +1 @@
1
- {"version":3,"file":"rest-build.d.ts","sourceRoot":"","sources":["../../../src/engines/build-csv-model/rest-build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAuBtD,wBAAsB,gBAAgB,CACrC,YAAY,EAAE,MAAM,EACpB,UAAU,CAAC,EAAE,UAAU,GACrB,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,CAwB/B;AAmBD,MAAM,WAAW,eAAe;IAC/B,MAAM,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;CACnB;AAED,wBAAsB,SAAS,CAC9B,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE;IACR,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,UAAU,CAAC,EAAE,UAAU,CAAC;CACnB,GACJ,OAAO,CAAC,eAAe,CAAC,CAwC1B"}
1
+ {"version":3,"file":"rest-build.d.ts","sourceRoot":"","sources":["../../../src/engines/build-csv-model/rest-build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAuBtD,wBAAsB,gBAAgB,CACrC,YAAY,EAAE,MAAM,EACpB,UAAU,CAAC,EAAE,UAAU,GACrB,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,CAwB/B;AAmDD,MAAM,WAAW,mBAAmB;IACnC,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;CACvB;AAED;;;;GAIG;AACH,wBAAsB,sBAAsB,CAC3C,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE;IAAE,SAAS,EAAE,MAAM,EAAE,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAA;CAAE,EACzD,OAAO,GAAE;IACR,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/B,GACJ,OAAO,CAAC,mBAAmB,CAAC,CA8D9B;AAED,MAAM,WAAW,eAAe;IAC/B,MAAM,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;CACnB;AAED,wBAAsB,SAAS,CAC9B,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE;IACR,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,UAAU,CAAC,EAAE,UAAU,CAAC;CACnB,GACJ,OAAO,CAAC,eAAe,CAAC,CAkD1B"}
@@ -1,25 +1,21 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v4';
2
2
  import { HttpClient } from '@sisense/sdk-rest-client';
3
3
  /**
4
4
  * Canonical tool description for uploadFiles — reusable by any host (sdk-assistant, MCP server, custom integrations).
5
5
  * Hosts may append host-specific notes but should not duplicate or contradict this text.
6
6
  */
7
- export declare const uploadFilesToolDescription = "Opens the host's file-upload flow so the user can provide one or more CSV files. When the host uses a blocking UI, this should be the ONLY tool call in that turn until the user completes the upload \u2014 do not chain other tools in parallel.\n\nUse when the user wants to upload, ingest, import, or onboard raw files into a new Elasticube model.\n\nOnboarding pace: start this step alone; after files are uploaded, agree on a model title with the user in chat before calling buildDataModelFromUploads \u2014 do not rush multiple structural steps in one assistant turn when the workflow expects the user to confirm between steps.\n\nAfter this tool returns successfully, propose a model title derived from the file names and ask the user to confirm or change it before calling buildDataModelFromUploads.";
7
+ export declare const uploadFilesToolDescription = "Opens the host's file-upload flow so the user can provide one or more CSV files. When the host uses a blocking UI, this should be the ONLY tool call in that turn until the user completes the upload \u2014 do not chain other tools in parallel.\n\nUse when the user wants to upload, ingest, import, or onboard raw files into a new Elasticube model.\n\nCALL THIS TOOL IMMEDIATELY, as the FIRST action, the moment the user expresses intent to upload / import / onboard data files or build a model from files (e.g. \"I want to upload data files and build a model\") \u2014 even though no file is attached yet. THIS TOOL IS the upload surface: invoking it opens the file picker. Do NOT reply with text asking the user to attach or upload files via the chat input or paperclip \u2014 that is the wrong response and leaves the user with no upload UI. Open the tool; don't describe it.\n\nOnboarding pace: start this step alone; after files are uploaded, agree on a model title with the user in chat before calling buildDataModelFromUploads \u2014 do not rush multiple structural steps in one assistant turn when the workflow expects the user to confirm between steps.\n\nAfter this tool returns successfully, propose a model title derived from the file names and ask the user to confirm or change it before calling buildDataModelFromUploads.\n\nReply format (REQUIRED \u2014 output exactly these four lines, verbatim aside from substituting the proposed name; no extra preamble, no closing sentence, no paraphrasing, no translation, no icons, no headings, no blockquotes, no code fences, no bullets, no extra blank lines):\n\nYour files uploaded successfully\n**Let's set up your data model**\nSuggested name: **<Proposed Model Name>**\nThis name is permanent. If it's already taken, a number will be added at the end automatically.\n\nRules:\n- Each of the first three lines MUST end with exactly two trailing space characters before the newline (CommonMark hard line break). The four lines must therefore render stacked tightly, one per line, with no paragraph gaps. The last line has no trailing spaces.\n- Bold (**\u2026**) appears in exactly two places: the entire second line, and the model-name token on the third line. Nowhere else.\n- All four lines render at the SAME size \u2014 never promote any line to a heading.\n- Substitute <Proposed Model Name> with the title derived from the file names; keep the surrounding ** so it renders bold.\nWait for the user to confirm or change the name before calling buildDataModelFromUploads.";
8
8
  /**
9
9
  * Canonical tool description for buildDataModelFromUploads — reusable by any host (sdk-assistant, MCP server, custom integrations).
10
10
  * Hosts may append host-specific notes but should not duplicate or contradict this text.
11
11
  */
12
12
  export declare const buildDataModelFromUploadsToolDescription = "Builds a complete Sisense data model (Elasticube) from previously uploaded CSV files. Auto-detects each file's column schema, creates the Elasticube, adds one dataset containing all files, infers FK relations by matching column names (e.g. ArtistId \u2192 Artist.ArtistId), and triggers the full build. Polls until the build is done or fails.\n\nReturns datamodelOid, title, tables (with oids and columns), relations, and buildStatus.\n\nCall only after uploadFiles returned successfully AND the user confirmed they want to build the model. Pass the exact files array from the uploadFiles result as uploadedFiles \u2014 never invent paths or file names. Default inferRelations to true unless the user explicitly declines relation inference.\n\nDo not bundle unrelated structural modeling actions in the same assistant turn as this call when a normal workflow would pause for user confirmation between steps.\n\nAfter this tool succeeds, you already have the new datamodelOid and table structure in the result \u2014 skip getDataSources and getModelSchema before proposing perspectives; base perspective ideas on the returned table names.";
13
13
  export declare const uploadFilesParamsSchema: z.ZodObject<{
14
- accept: z.ZodOptional<z.ZodArray<z.ZodEnum<["csv"]>, "many">>;
14
+ accept: z.ZodOptional<z.ZodArray<z.ZodEnum<{
15
+ csv: "csv";
16
+ }>>>;
15
17
  maxFiles: z.ZodOptional<z.ZodNumber>;
16
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
17
- accept: z.ZodOptional<z.ZodArray<z.ZodEnum<["csv"]>, "many">>;
18
- maxFiles: z.ZodOptional<z.ZodNumber>;
19
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
20
- accept: z.ZodOptional<z.ZodArray<z.ZodEnum<["csv"]>, "many">>;
21
- maxFiles: z.ZodOptional<z.ZodNumber>;
22
- }, z.ZodTypeAny, "passthrough">>;
18
+ }, z.core.$loose>;
23
19
  export interface UploadedFile {
24
20
  originalName: string;
25
21
  fileName: string;
@@ -34,75 +30,17 @@ export declare const uploadedFileSchema: z.ZodObject<{
34
30
  fileName: z.ZodString;
35
31
  storagePath: z.ZodString;
36
32
  size: z.ZodOptional<z.ZodNumber>;
37
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
38
- originalName: z.ZodString;
39
- fileName: z.ZodString;
40
- storagePath: z.ZodString;
41
- size: z.ZodOptional<z.ZodNumber>;
42
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
43
- originalName: z.ZodString;
44
- fileName: z.ZodString;
45
- storagePath: z.ZodString;
46
- size: z.ZodOptional<z.ZodNumber>;
47
- }, z.ZodTypeAny, "passthrough">>;
33
+ }, z.core.$loose>;
48
34
  export declare const buildCsvModelParamsSchema: z.ZodObject<{
49
35
  uploadedFiles: z.ZodArray<z.ZodObject<{
50
36
  originalName: z.ZodString;
51
37
  fileName: z.ZodString;
52
38
  storagePath: z.ZodString;
53
39
  size: z.ZodOptional<z.ZodNumber>;
54
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
55
- originalName: z.ZodString;
56
- fileName: z.ZodString;
57
- storagePath: z.ZodString;
58
- size: z.ZodOptional<z.ZodNumber>;
59
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
60
- originalName: z.ZodString;
61
- fileName: z.ZodString;
62
- storagePath: z.ZodString;
63
- size: z.ZodOptional<z.ZodNumber>;
64
- }, z.ZodTypeAny, "passthrough">>, "many">;
65
- modelTitle: z.ZodString;
66
- inferRelations: z.ZodBoolean;
67
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
68
- uploadedFiles: z.ZodArray<z.ZodObject<{
69
- originalName: z.ZodString;
70
- fileName: z.ZodString;
71
- storagePath: z.ZodString;
72
- size: z.ZodOptional<z.ZodNumber>;
73
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
74
- originalName: z.ZodString;
75
- fileName: z.ZodString;
76
- storagePath: z.ZodString;
77
- size: z.ZodOptional<z.ZodNumber>;
78
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
79
- originalName: z.ZodString;
80
- fileName: z.ZodString;
81
- storagePath: z.ZodString;
82
- size: z.ZodOptional<z.ZodNumber>;
83
- }, z.ZodTypeAny, "passthrough">>, "many">;
84
- modelTitle: z.ZodString;
85
- inferRelations: z.ZodBoolean;
86
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
87
- uploadedFiles: z.ZodArray<z.ZodObject<{
88
- originalName: z.ZodString;
89
- fileName: z.ZodString;
90
- storagePath: z.ZodString;
91
- size: z.ZodOptional<z.ZodNumber>;
92
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
93
- originalName: z.ZodString;
94
- fileName: z.ZodString;
95
- storagePath: z.ZodString;
96
- size: z.ZodOptional<z.ZodNumber>;
97
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
98
- originalName: z.ZodString;
99
- fileName: z.ZodString;
100
- storagePath: z.ZodString;
101
- size: z.ZodOptional<z.ZodNumber>;
102
- }, z.ZodTypeAny, "passthrough">>, "many">;
40
+ }, z.core.$loose>>;
103
41
  modelTitle: z.ZodString;
104
42
  inferRelations: z.ZodBoolean;
105
- }, z.ZodTypeAny, "passthrough">>;
43
+ }, z.core.$loose>;
106
44
  export interface BuiltTable {
107
45
  oid: string;
108
46
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/engines/build-csv-model/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,wyBAMoI,CAAC;AAE5K;;;GAGG;AACH,eAAO,MAAM,wCAAwC,snCAQyK,CAAC;AAI/N,eAAO,MAAM,uBAAuB;;;;;;;;;gCAarB,CAAC;AAEhB,MAAM,WAAW,YAAY;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,iBAAiB;IACjC,KAAK,EAAE,YAAY,EAAE,CAAC;CACtB;AAQD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;gCAOhB,CAAC;AAEhB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAevB,CAAC;AAEhB,MAAM,WAAW,UAAU;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC5D;AAED,MAAM,WAAW,aAAa;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,SAAS,EAAE,aAAa,EAAE,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC3C,eAAe,EAAE,MAAM,CAAC;CACxB;AAID,MAAM,WAAW,qBAAqB;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,UAAU,CAAC;CACxB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/engines/build-csv-model/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,0+EAsBmD,CAAC;AAE3F;;;GAGG;AACH,eAAO,MAAM,wCAAwC,snCAQyK,CAAC;AAI/N,eAAO,MAAM,uBAAuB;;;;;iBAarB,CAAC;AAEhB,MAAM,WAAW,YAAY;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,iBAAiB;IACjC,KAAK,EAAE,YAAY,EAAE,CAAC;CACtB;AAQD,eAAO,MAAM,kBAAkB;;;;;iBAOhB,CAAC;AAEhB,eAAO,MAAM,yBAAyB;;;;;;;;;iBAevB,CAAC;AAEhB,MAAM,WAAW,UAAU;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC5D;AAED,MAAM,WAAW,aAAa;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,SAAS,EAAE,aAAa,EAAE,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC3C,eAAe,EAAE,MAAM,CAAC;CACxB;AAID,MAAM,WAAW,qBAAqB;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,UAAU,CAAC;CACxB"}
@@ -1,12 +1,4 @@
1
- import { BuildDashboardContext, ChartListSummary, DashboardContextPromptEntry, DashboardSummary, buildDashboardSchema } from './types';
2
- import { ChartSummary } from '../build-chart/types';
3
- import { default as z } from 'zod';
4
- export declare function buildContextualSystemPrompt(chartSummaries: ChartSummary[], chartListSummaries: ChartListSummary[], dashboardsForContext: DashboardContextPromptEntry[], priorDashboardId?: string): string;
5
- /**
6
- * Standalone build dashboard engine - completely decoupled from any UI or store
7
- * @param params - The parameters for the build dashboard
8
- * @param context - All external dependencies injected
9
- * @returns The dashboard summary
10
- */
1
+ import { BuildDashboardContext, DashboardSummary, buildDashboardSchema } from './types';
2
+ import { default as z } from 'zod/v4';
11
3
  export declare function buildDashboardEngine(params: z.infer<typeof buildDashboardSchema>, context: BuildDashboardContext): Promise<DashboardSummary>;
12
4
  //# sourceMappingURL=build-dashboard-engine.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"build-dashboard-engine.d.ts","sourceRoot":"","sources":["../../../src/engines/build-dashboard/build-dashboard-engine.ts"],"names":[],"mappings":"AACA,OAAO,EACN,qBAAqB,EACrB,gBAAgB,EAChB,2BAA2B,EAC3B,gBAAgB,EAEhB,oBAAoB,EAQpB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAiBpD,OAAO,CAAC,MAAM,KAAK,CAAC;AA2HpB,wBAAgB,2BAA2B,CAC1C,cAAc,EAAE,YAAY,EAAE,EAC9B,kBAAkB,EAAE,gBAAgB,EAAE,EACtC,oBAAoB,EAAE,2BAA2B,EAAE,EACnD,gBAAgB,CAAC,EAAE,MAAM,UA+BzB;AAED;;;;;GAKG;AACH,wBAAsB,oBAAoB,CACzC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,EAC5C,OAAO,EAAE,qBAAqB,GAC5B,OAAO,CAAC,gBAAgB,CAAC,CA+I3B"}
1
+ {"version":3,"file":"build-dashboard-engine.d.ts","sourceRoot":"","sources":["../../../src/engines/build-dashboard/build-dashboard-engine.ts"],"names":[],"mappings":"AACA,OAAO,EACN,qBAAqB,EAErB,gBAAgB,EAGhB,oBAAoB,EACpB,MAAM,SAAS,CAAC;AAWjB,OAAO,CAAC,MAAM,QAAQ,CAAC;AAuIvB,wBAAsB,oBAAoB,CACzC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,EAC5C,OAAO,EAAE,qBAAqB,GAC5B,OAAO,CAAC,gBAAgB,CAAC,CAuB3B"}
@@ -1,7 +1,7 @@
1
1
  import { BaseDashboardSummary, ExtendedDashboardProps } from './types';
2
2
  /**
3
- * Get a base dashboard summary from dashboard props
4
- * This is used by the engine to create a summary for LLM consumption
3
+ * Returns the CSDK dashboard configuration ({@link BaseDashboardSummary}) for LLM consumption.
4
+ * Returns `undefined` when `dashboardState` has not yet been computed.
5
5
  */
6
- export declare const getBaseDashboardSummary: (dashboardProps: ExtendedDashboardProps, dataSourceTitle: string) => BaseDashboardSummary;
6
+ export declare const getBaseDashboardSummary: (dashboardProps: ExtendedDashboardProps) => BaseDashboardSummary | undefined;
7
7
  //# sourceMappingURL=build-dashboard-service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"build-dashboard-service.d.ts","sourceRoot":"","sources":["../../../src/engines/build-dashboard/build-dashboard-service.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAmEvE;;;GAGG;AACH,eAAO,MAAM,uBAAuB,GACnC,gBAAgB,sBAAsB,EACtC,iBAAiB,MAAM,KACrB,oBAUF,CAAC"}
1
+ {"version":3,"file":"build-dashboard-service.d.ts","sourceRoot":"","sources":["../../../src/engines/build-dashboard/build-dashboard-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEvE;;;GAGG;AACH,eAAO,MAAM,uBAAuB,GACnC,gBAAgB,sBAAsB,KACpC,oBAAoB,GAAG,SAGzB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { DashboardProps } from '@sisense/sdk-ui';
2
- import { OpenAI } from 'openai';
3
- export declare const manipulateDashboardFilters: (userPrompt: string, dataSourceTitle: string, dashboardProps: DashboardProps, openAIClient?: OpenAI) => Promise<{
2
+ import { LanguageModel } from 'ai';
3
+ export declare const manipulateDashboardFilters: (userPrompt: string, dataSourceTitle: string, dashboardProps: DashboardProps, llmClient?: LanguageModel) => Promise<{
4
4
  dashboardProps: DashboardProps;
5
5
  explanation: string;
6
6
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"manipulate-dashboard-filters.d.ts","sourceRoot":"","sources":["../../../../src/engines/build-dashboard/dashboard-filters/manipulate-dashboard-filters.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAWhC,eAAO,MAAM,0BAA0B,GACtC,YAAY,MAAM,EAClB,iBAAiB,MAAM,EACvB,gBAAgB,cAAc,EAC9B,eAAe,MAAM,KACnB,OAAO,CAAC;IAAE,cAAc,EAAE,cAAc,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAmDjE,CAAC"}
1
+ {"version":3,"file":"manipulate-dashboard-filters.d.ts","sourceRoot":"","sources":["../../../../src/engines/build-dashboard/dashboard-filters/manipulate-dashboard-filters.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,OAAO,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAWnC,eAAO,MAAM,0BAA0B,GACtC,YAAY,MAAM,EAClB,iBAAiB,MAAM,EACvB,gBAAgB,cAAc,EAC9B,YAAY,aAAa,KACvB,OAAO,CAAC;IAAE,cAAc,EAAE,cAAc,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAmDjE,CAAC"}
@@ -1,4 +1,4 @@
1
- export { buildDashboardEngine, buildContextualSystemPrompt, } from './build-dashboard-engine';
1
+ export { buildDashboardEngine } from './build-dashboard-engine';
2
2
  export * from './types';
3
3
  export * from './build-dashboard-service';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/engines/build-dashboard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,oBAAoB,EACpB,2BAA2B,GAC3B,MAAM,0BAA0B,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/engines/build-dashboard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,cAAc,SAAS,CAAC;AACxB,cAAc,2BAA2B,CAAC"}
@@ -1,10 +1,16 @@
1
- import { FunctionCall } from '@sisense/sdk-data';
2
- import { DashboardProps, WidgetProps, WidgetType } from '@sisense/sdk-ui';
1
+ import { DashboardProps, WidgetProps } from '@sisense/sdk-ui';
2
+ import { DashboardJSON } from '@sisense/sdk-ui/analytics-composer';
3
3
  import { HttpClient } from '@sisense/sdk-rest-client';
4
- import { default as OpenAI } from 'openai';
5
- import { z } from 'zod';
6
- import { ArtifactReference, BaseChartSummary, ChartSummary } from '../build-chart/types';
7
- export type ExtendedDashboardProps = DashboardProps & ArtifactReference;
4
+ import { z } from 'zod/v4';
5
+ import { ArtifactReference, ChartSummary } from '../build-chart/types';
6
+ import { LanguageModel } from 'ai';
7
+ export type DashboardState = DashboardJSON;
8
+ export type ExtendedDashboardProps = DashboardProps & ArtifactReference & {
9
+ /**
10
+ * Optional CSDK dashboard JSON persisted alongside dashboard props.
11
+ */
12
+ dashboardState?: DashboardState;
13
+ };
8
14
  /**
9
15
  * Chart list summary for LLM context
10
16
  */
@@ -12,40 +18,13 @@ export type ChartListSummary = {
12
18
  message: string;
13
19
  createdAt: string;
14
20
  chartListId: string;
21
+ dataSourceTitle: string;
15
22
  };
16
23
  /**
17
- * Base dashboard summary for LLM consumption and asset extraction
24
+ * Compact CSDK dashboard configuration for LLM consumption.
25
+ * Alias for {@link DashboardState} — the serialized form produced by `translateDashboardToJSON`.
18
26
  */
19
- export type BaseDashboardSummary = {
20
- /** Fusion dashboard ID */
21
- fusionDashboardId?: string;
22
- /** Human-readable title of the dashboard */
23
- dashboardTitle?: string;
24
- /** Default data source title for the dashboard */
25
- defaultDataSourceTitle: string;
26
- /**
27
- * Dashboard-scope (Fusion common) filters as NLQ compose-tree nodes.
28
- * Empty when none; widget-level chart filters live on {@link BaseDashboardSummary.widgets} `chartState`.
29
- */
30
- filters: FunctionCall[];
31
- /** Array of widget summaries */
32
- widgets: Array<{
33
- /** Widget ID */
34
- widgetId: string;
35
- /** Widget title (for chart and pivot table widgets) */
36
- widgetTitle?: string;
37
- /** Widget type (for chart and pivot table widgets) */
38
- widgetType: WidgetType;
39
- /**
40
- * Data source title when it differs from {@link BaseDashboardSummary.defaultDataSourceTitle}.
41
- */
42
- dataSourceTitle?: string;
43
- /**
44
- * Chart widgets only — compact chart JSON (includes chart-level `filters` when present).
45
- */
46
- chartState?: BaseChartSummary;
47
- }>;
48
- };
27
+ export type BaseDashboardSummary = DashboardState;
49
28
  /**
50
29
  * Summary of a dashboard for LLM consumption and asset extraction
51
30
  */
@@ -56,8 +35,10 @@ export interface DashboardSummary {
56
35
  createdAt: string;
57
36
  /** Unique identifier for the dashboard (typically the tool call ID) */
58
37
  dashboardId: string;
59
- /** Dashboard details, undefined if dashboard creation failed */
60
- dashboard?: BaseDashboardSummary;
38
+ /** Data source the dashboard was built from */
39
+ dataSourceTitle: string;
40
+ /** Compact CSDK dashboard configuration, undefined if dashboard creation failed */
41
+ dashboardState?: BaseDashboardSummary;
61
42
  }
62
43
  /**
63
44
  * Row in the `dashboards` array of the build-dashboard system prompt: either a
@@ -65,54 +46,76 @@ export interface DashboardSummary {
65
46
  */
66
47
  export type DashboardContextPromptEntry = DashboardSummary | {
67
48
  dashboardId: string;
68
- dashboard: BaseDashboardSummary;
49
+ dashboardState: BaseDashboardSummary;
69
50
  };
70
51
  /**
71
52
  * Canonical tool description for buildDashboard — reusable by any host (sdk-assistant, MCP server, custom integrations).
72
53
  * Hosts may append host-specific notes but should not duplicate or contradict this text.
73
54
  */
74
- export declare const buildDashboardToolDescription = "Creates or updates a dashboard, its chart widgets, and its filters from a natural language prompt.\n\npriorDashboardId: pass the dashboardId of an existing dashboard when updating it. The engine routes all internal tool calls to that dashboard automatically. Omit when creating a new dashboard from scratch.\n\nChart widgets inside the dashboard support the same structural and display revision capabilities as standalone charts. When updating an existing widget, the engine sets priorChartId internally \u2014 no manual wiring needed.\n\nPass the user prompt exactly as received \u2014 do not transform or modify it. The engine handles prompt splitting internally.";
55
+ export declare const buildDashboardToolDescription = "Creates or updates a dashboard via a required structured `action` param. Build charts with buildChart first, then pass chartIds where needed. Load the buildDashboard skill via loadSkill before calling this tool.";
56
+ /** JSON-Schema-safe union; run {@link parseActionWithGuards} at execution time. */
57
+ export declare const buildDashboardActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
58
+ type: z.ZodLiteral<"load-existing">;
59
+ dashboardTitle: z.ZodString;
60
+ }, z.core.$strip>, z.ZodObject<{
61
+ type: z.ZodLiteral<"create">;
62
+ title: z.ZodString;
63
+ chartIds: z.ZodArray<z.ZodString>;
64
+ }, z.core.$strip>, z.ZodObject<{
65
+ type: z.ZodLiteral<"add-charts">;
66
+ priorDashboardId: z.ZodString;
67
+ chartIds: z.ZodArray<z.ZodString>;
68
+ }, z.core.$strip>, z.ZodObject<{
69
+ type: z.ZodLiteral<"update-title">;
70
+ priorDashboardId: z.ZodString;
71
+ title: z.ZodString;
72
+ }, z.core.$strip>, z.ZodObject<{
73
+ type: z.ZodLiteral<"add-filters">;
74
+ priorDashboardId: z.ZodString;
75
+ filterDescription: z.ZodString;
76
+ }, z.core.$strip>]>;
77
+ export type BuildDashboardAction = z.infer<typeof buildDashboardActionSchema>;
75
78
  /**
76
79
  * Schema for the main buildDashboard smart tool
77
80
  */
78
81
  export declare const buildDashboardSchema: z.ZodObject<{
79
82
  dataSourceTitle: z.ZodString;
80
- userPrompt: z.ZodString;
81
- priorDashboardId: z.ZodOptional<z.ZodString>;
82
- }, "strip", z.ZodTypeAny, {
83
- dataSourceTitle: string;
84
- userPrompt: string;
85
- priorDashboardId?: string | undefined;
86
- }, {
87
- dataSourceTitle: string;
88
- userPrompt: string;
89
- priorDashboardId?: string | undefined;
90
- }>;
83
+ action: z.ZodDiscriminatedUnion<[z.ZodObject<{
84
+ type: z.ZodLiteral<"load-existing">;
85
+ dashboardTitle: z.ZodString;
86
+ }, z.core.$strip>, z.ZodObject<{
87
+ type: z.ZodLiteral<"create">;
88
+ title: z.ZodString;
89
+ chartIds: z.ZodArray<z.ZodString>;
90
+ }, z.core.$strip>, z.ZodObject<{
91
+ type: z.ZodLiteral<"add-charts">;
92
+ priorDashboardId: z.ZodString;
93
+ chartIds: z.ZodArray<z.ZodString>;
94
+ }, z.core.$strip>, z.ZodObject<{
95
+ type: z.ZodLiteral<"update-title">;
96
+ priorDashboardId: z.ZodString;
97
+ title: z.ZodString;
98
+ }, z.core.$strip>, z.ZodObject<{
99
+ type: z.ZodLiteral<"add-filters">;
100
+ priorDashboardId: z.ZodString;
101
+ filterDescription: z.ZodString;
102
+ }, z.core.$strip>]>;
103
+ }, z.core.$strip>;
91
104
  export type BuildDashboardParams = z.infer<typeof buildDashboardSchema>;
92
105
  /**
93
106
  * Schema for createDashboard tool
94
107
  */
95
108
  export declare const createDashboardSchema: z.ZodObject<{
96
109
  dashboardTitle: z.ZodOptional<z.ZodString>;
97
- widgetIdsToAdd: z.ZodArray<z.ZodString, "many">;
98
- }, "strip", z.ZodTypeAny, {
99
- widgetIdsToAdd: string[];
100
- dashboardTitle?: string | undefined;
101
- }, {
102
- widgetIdsToAdd: string[];
103
- dashboardTitle?: string | undefined;
104
- }>;
110
+ widgetIdsToAdd: z.ZodArray<z.ZodString>;
111
+ }, z.core.$strip>;
105
112
  export type CreateDashboardParams = z.infer<typeof createDashboardSchema>;
106
113
  /**
107
114
  * Schema for loadExistingDashboard tool
108
115
  */
109
116
  export declare const loadExistingFusionDashboardSchema: z.ZodObject<{
110
117
  dashboardTitle: z.ZodString;
111
- }, "strip", z.ZodTypeAny, {
112
- dashboardTitle: string;
113
- }, {
114
- dashboardTitle: string;
115
- }>;
118
+ }, z.core.$strip>;
116
119
  export type LoadExistingFusionDashboardParams = z.infer<typeof loadExistingFusionDashboardSchema>;
117
120
  /**
118
121
  * Schema for updateDashboard tool
@@ -120,72 +123,23 @@ export type LoadExistingFusionDashboardParams = z.infer<typeof loadExistingFusio
120
123
  export declare const updateDashboardSchema: z.ZodObject<{
121
124
  dashboardId: z.ZodString;
122
125
  dashboardTitle: z.ZodString;
123
- }, "strip", z.ZodTypeAny, {
124
- dashboardTitle: string;
125
- dashboardId: string;
126
- }, {
127
- dashboardTitle: string;
128
- dashboardId: string;
129
- }>;
126
+ }, z.core.$strip>;
130
127
  export type UpdateDashboardParams = z.infer<typeof updateDashboardSchema>;
131
128
  /**
132
129
  * Schema for addDashboardWidgets tool
133
130
  */
134
131
  export declare const addDashboardWidgetsSchema: z.ZodObject<{
135
132
  dashboardId: z.ZodString;
136
- widgetIdsToAdd: z.ZodArray<z.ZodString, "many">;
137
- }, "strip", z.ZodTypeAny, {
138
- widgetIdsToAdd: string[];
139
- dashboardId: string;
140
- }, {
141
- widgetIdsToAdd: string[];
142
- dashboardId: string;
143
- }>;
133
+ widgetIdsToAdd: z.ZodArray<z.ZodString>;
134
+ }, z.core.$strip>;
144
135
  export type AddDashboardWidgetsParams = z.infer<typeof addDashboardWidgetsSchema>;
145
- /**
146
- * Schema for createChartForDashboard tool
147
- */
148
- export declare const createChartWidgetForDashboardSchema: z.ZodObject<{
149
- dashboardId: z.ZodString;
150
- userPrompt: z.ZodString;
151
- }, "strip", z.ZodTypeAny, {
152
- userPrompt: string;
153
- dashboardId: string;
154
- }, {
155
- userPrompt: string;
156
- dashboardId: string;
157
- }>;
158
- export type CreateChartWidgetForDashboardParams = z.infer<typeof createChartWidgetForDashboardSchema>;
159
- /**
160
- * Schema for updateChartWidgetForDashboard tool
161
- */
162
- export declare const updateChartWidgetForDashboardSchema: z.ZodObject<{
163
- dashboardId: z.ZodString;
164
- widgetId: z.ZodString;
165
- userPrompt: z.ZodString;
166
- }, "strip", z.ZodTypeAny, {
167
- userPrompt: string;
168
- dashboardId: string;
169
- widgetId: string;
170
- }, {
171
- userPrompt: string;
172
- dashboardId: string;
173
- widgetId: string;
174
- }>;
175
- export type UpdateChartWidgetForDashboardParams = z.infer<typeof updateChartWidgetForDashboardSchema>;
176
136
  /**
177
137
  * Schema for addDashboardFilters tool
178
138
  */
179
139
  export declare const addDashboardFiltersSchema: z.ZodObject<{
180
140
  dashboardId: z.ZodString;
181
141
  userPrompt: z.ZodString;
182
- }, "strip", z.ZodTypeAny, {
183
- userPrompt: string;
184
- dashboardId: string;
185
- }, {
186
- userPrompt: string;
187
- dashboardId: string;
188
- }>;
142
+ }, z.core.$strip>;
189
143
  export type AddDashboardFiltersParams = z.infer<typeof addDashboardFiltersSchema>;
190
144
  /**
191
145
  * Build dashboard context interface
@@ -195,6 +149,7 @@ export interface BuildDashboardContext {
195
149
  * Tool call ID - REQUIRED
196
150
  */
197
151
  toolCallId: string;
152
+ abortSignal?: AbortSignal;
198
153
  /**
199
154
  * Data source title (required)
200
155
  */
@@ -228,11 +183,7 @@ export interface BuildDashboardContext {
228
183
  * @returns Array of widget props
229
184
  */
230
185
  getWidgetList?: (widgetIds: string[]) => WidgetProps[];
231
- /**
232
- * Whether NLQ V3 is enabled
233
- */
234
- isNlqV3Enabled?: boolean;
235
186
  httpClient?: HttpClient;
236
- openAIClient?: OpenAI;
187
+ llmClient?: LanguageModel;
237
188
  }
238
189
  //# sourceMappingURL=types.d.ts.map