@sisense/sdk-ai-core 0.9.0 → 0.13.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 (140) hide show
  1. package/dist/constants.d.ts +2 -0
  2. package/dist/constants.d.ts.map +1 -1
  3. package/dist/engines/build-chart/build-chart-engine.d.ts +4 -5
  4. package/dist/engines/build-chart/build-chart-engine.d.ts.map +1 -1
  5. package/dist/engines/build-chart/build-chart-service.d.ts +3 -3
  6. package/dist/engines/build-chart/build-chart-service.d.ts.map +1 -1
  7. package/dist/engines/build-chart/create-chart/assemble-chart-widget.d.ts +26 -0
  8. package/dist/engines/build-chart/create-chart/assemble-chart-widget.d.ts.map +1 -0
  9. package/dist/engines/build-chart/create-chart/chart-json-axes-mapping.d.ts +27 -0
  10. package/dist/engines/build-chart/create-chart/chart-json-axes-mapping.d.ts.map +1 -0
  11. package/dist/engines/build-chart/create-chart/create-chart.d.ts +5 -18
  12. package/dist/engines/build-chart/create-chart/create-chart.d.ts.map +1 -1
  13. package/dist/engines/build-chart/create-chart/generate-chart-recommendations.d.ts +8 -4
  14. package/dist/engines/build-chart/create-chart/generate-chart-recommendations.d.ts.map +1 -1
  15. package/dist/engines/build-chart/create-chart/generate-chart.d.ts +18 -0
  16. package/dist/engines/build-chart/create-chart/generate-chart.d.ts.map +1 -0
  17. package/dist/engines/build-chart/create-chart/get-columns-json.d.ts +15 -0
  18. package/dist/engines/build-chart/create-chart/get-columns-json.d.ts.map +1 -0
  19. package/dist/engines/build-chart/create-chart/resolve-chart-query.d.ts +11 -0
  20. package/dist/engines/build-chart/create-chart/resolve-chart-query.d.ts.map +1 -0
  21. package/dist/engines/build-chart/dataset-from-saved-chart-widget.d.ts +11 -0
  22. package/dist/engines/build-chart/dataset-from-saved-chart-widget.d.ts.map +1 -0
  23. package/dist/engines/build-chart/shared/csdk-data-options-for-llm.d.ts +14 -0
  24. package/dist/engines/build-chart/shared/csdk-data-options-for-llm.d.ts.map +1 -0
  25. package/dist/engines/build-chart/types.d.ts +283 -533
  26. package/dist/engines/build-chart/types.d.ts.map +1 -1
  27. package/dist/engines/build-chart/update-chart/apply-prior-chart-style.d.ts +10 -0
  28. package/dist/engines/build-chart/update-chart/apply-prior-chart-style.d.ts.map +1 -0
  29. package/dist/engines/build-chart/update-chart/chart-options-schemas.d.ts +1825 -7310
  30. package/dist/engines/build-chart/update-chart/chart-options-schemas.d.ts.map +1 -1
  31. package/dist/engines/build-chart/update-chart/schemas.d.ts +68 -977
  32. package/dist/engines/build-chart/update-chart/schemas.d.ts.map +1 -1
  33. package/dist/engines/build-chart/update-chart/update-chart-data-options.d.ts +1 -1
  34. package/dist/engines/build-chart/update-chart/update-chart-data-options.d.ts.map +1 -1
  35. package/dist/engines/build-chart/update-chart/update-chart-query.d.ts +8 -0
  36. package/dist/engines/build-chart/update-chart/update-chart-query.d.ts.map +1 -0
  37. package/dist/engines/build-chart/update-chart/update-chart-style-options.d.ts +1 -1
  38. package/dist/engines/build-chart/update-chart/update-chart-style-options.d.ts.map +1 -1
  39. package/dist/engines/build-chart/update-chart/update-chart-title.d.ts +1 -1
  40. package/dist/engines/build-chart/update-chart/update-chart-title.d.ts.map +1 -1
  41. package/dist/engines/build-chart/update-chart/update-chart-type.d.ts +1 -1
  42. package/dist/engines/build-chart/update-chart/update-chart-type.d.ts.map +1 -1
  43. package/dist/engines/build-csv-model/build-csv-model-engine.d.ts +1 -1
  44. package/dist/engines/build-csv-model/build-csv-model-engine.d.ts.map +1 -1
  45. package/dist/engines/build-csv-model/rest-build.d.ts.map +1 -1
  46. package/dist/engines/build-csv-model/types.d.ts +18 -70
  47. package/dist/engines/build-csv-model/types.d.ts.map +1 -1
  48. package/dist/engines/build-dashboard/add-dashboard-filters.d.ts.map +1 -1
  49. package/dist/engines/build-dashboard/add-dashboard-widgets.d.ts.map +1 -1
  50. package/dist/engines/build-dashboard/build-dashboard-engine.d.ts +3 -6
  51. package/dist/engines/build-dashboard/build-dashboard-engine.d.ts.map +1 -1
  52. package/dist/engines/build-dashboard/build-dashboard-service.d.ts +3 -3
  53. package/dist/engines/build-dashboard/build-dashboard-service.d.ts.map +1 -1
  54. package/dist/engines/build-dashboard/create-chart-widget.d.ts.map +1 -1
  55. package/dist/engines/build-dashboard/create-dashboard.d.ts.map +1 -1
  56. package/dist/engines/build-dashboard/dashboard-filters/manipulate-dashboard-filters.d.ts +2 -2
  57. package/dist/engines/build-dashboard/dashboard-filters/manipulate-dashboard-filters.d.ts.map +1 -1
  58. package/dist/engines/build-dashboard/load-existing-fusion-dashboard.d.ts.map +1 -1
  59. package/dist/engines/build-dashboard/types.d.ts +46 -90
  60. package/dist/engines/build-dashboard/types.d.ts.map +1 -1
  61. package/dist/engines/build-dashboard/update-chart-widget.d.ts.map +1 -1
  62. package/dist/engines/build-dashboard/update-dashboard.d.ts.map +1 -1
  63. package/dist/engines/build-data-model/build-data-model-engine.d.ts +1 -1
  64. package/dist/engines/build-data-model/build-data-model-engine.d.ts.map +1 -1
  65. package/dist/engines/build-data-model/types.d.ts +59 -316
  66. package/dist/engines/build-data-model/types.d.ts.map +1 -1
  67. package/dist/engines/build-query/build-query-engine.d.ts +1 -1
  68. package/dist/engines/build-query/build-query-engine.d.ts.map +1 -1
  69. package/dist/engines/build-query/types.d.ts +28 -17
  70. package/dist/engines/build-query/types.d.ts.map +1 -1
  71. package/dist/engines/get-dashboards/get-dashboards-engine.d.ts +1 -1
  72. package/dist/engines/get-dashboards/get-dashboards-engine.d.ts.map +1 -1
  73. package/dist/engines/get-dashboards/types.d.ts +7 -2
  74. package/dist/engines/get-dashboards/types.d.ts.map +1 -1
  75. package/dist/engines/get-data-source-fields/get-data-source-fields-engine.d.ts +5 -4
  76. package/dist/engines/get-data-source-fields/get-data-source-fields-engine.d.ts.map +1 -1
  77. package/dist/engines/get-data-source-fields/types.d.ts +10 -8
  78. package/dist/engines/get-data-source-fields/types.d.ts.map +1 -1
  79. package/dist/engines/get-data-sources/get-data-sources-engine.d.ts +1 -1
  80. package/dist/engines/get-data-sources/get-data-sources-engine.d.ts.map +1 -1
  81. package/dist/engines/get-data-sources/types.d.ts +7 -2
  82. package/dist/engines/get-data-sources/types.d.ts.map +1 -1
  83. package/dist/engines/index.d.ts +1 -1
  84. package/dist/engines/index.d.ts.map +1 -1
  85. package/dist/engines/manage-perspectives/manage-perspectives-engine.d.ts +1 -1
  86. package/dist/engines/manage-perspectives/manage-perspectives-engine.d.ts.map +1 -1
  87. package/dist/engines/manage-perspectives/types.d.ts +95 -194
  88. package/dist/engines/manage-perspectives/types.d.ts.map +1 -1
  89. package/dist/engines/recommend-queries/recommend-queries-engine.d.ts +1 -1
  90. package/dist/engines/recommend-queries/recommend-queries-engine.d.ts.map +1 -1
  91. package/dist/engines/recommend-queries/types.d.ts +10 -17
  92. package/dist/engines/recommend-queries/types.d.ts.map +1 -1
  93. package/dist/engines/shared/get-filters-json-for-llm-summary.d.ts +12 -0
  94. package/dist/engines/shared/get-filters-json-for-llm-summary.d.ts.map +1 -0
  95. package/dist/engines/shared/nlq-query-helpers.d.ts +13 -3
  96. package/dist/engines/shared/nlq-query-helpers.d.ts.map +1 -1
  97. package/dist/index.d.ts +16 -3
  98. package/dist/index.d.ts.map +1 -1
  99. package/dist/index.js +26924 -7402
  100. package/dist/index.js.map +1 -1
  101. package/dist/services/dashboards/fusion-dashboards-service.d.ts.map +1 -1
  102. package/dist/services/data-models/ecm-service.d.ts +14 -0
  103. package/dist/services/data-models/ecm-service.d.ts.map +1 -1
  104. package/dist/services/data-sources/data-sources-service.d.ts.map +1 -1
  105. package/dist/services/llm/llm-consumption-service.d.ts.map +1 -1
  106. package/dist/services/llm/llm-models-service.d.ts +15 -0
  107. package/dist/services/llm/llm-models-service.d.ts.map +1 -0
  108. package/dist/services/nlq/nlq-service.d.ts +34 -15
  109. package/dist/services/nlq/nlq-service.d.ts.map +1 -1
  110. package/dist/singleton-clients.d.ts +4 -22
  111. package/dist/singleton-clients.d.ts.map +1 -1
  112. package/dist/utils/abort-signal.d.ts +3 -0
  113. package/dist/utils/abort-signal.d.ts.map +1 -0
  114. package/dist/utils/create-custom-fetch.d.ts +2 -3
  115. package/dist/utils/create-custom-fetch.d.ts.map +1 -1
  116. package/dist/utils/create-serialized-tool-group.d.ts +24 -0
  117. package/dist/utils/create-serialized-tool-group.d.ts.map +1 -0
  118. package/dist/utils/create-stream-completion.d.ts +69 -0
  119. package/dist/utils/create-stream-completion.d.ts.map +1 -0
  120. package/dist/utils/create-structured-completion.d.ts +18 -0
  121. package/dist/utils/create-structured-completion.d.ts.map +1 -0
  122. package/dist/utils/create-tools-completion.d.ts +28 -0
  123. package/dist/utils/create-tools-completion.d.ts.map +1 -0
  124. package/dist/utils/dev-debug.d.ts +8 -0
  125. package/dist/utils/dev-debug.d.ts.map +1 -0
  126. package/dist/utils/llm-client.d.ts +8 -0
  127. package/dist/utils/llm-client.d.ts.map +1 -0
  128. package/dist/utils/llm-provider-options.d.ts +14 -0
  129. package/dist/utils/llm-provider-options.d.ts.map +1 -0
  130. package/dist/utils/zod-utils.d.ts +9 -17
  131. package/dist/utils/zod-utils.d.ts.map +1 -1
  132. package/package.json +20 -18
  133. package/dist/engines/build-chart/create-chart/generate-chart-table.d.ts +0 -9
  134. package/dist/engines/build-chart/create-chart/generate-chart-table.d.ts.map +0 -1
  135. package/dist/services/globals/globals-service.d.ts +0 -2
  136. package/dist/services/globals/globals-service.d.ts.map +0 -1
  137. package/dist/utils/chat-completion-utils.d.ts +0 -55
  138. package/dist/utils/chat-completion-utils.d.ts.map +0 -1
  139. package/dist/utils/openai-client.d.ts +0 -11
  140. 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;AAQlB,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,CA+BvE,CAAC;AA8CF,eAAO,MAAM,sBAAsB,GAClC,yBAAyB,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,EAC1D,cAAc,MAAM,EACpB,SAAS,iBAAiB;;EAgB1B,CAAC;AAgHF,eAAO,MAAM,yBAAyB,4BA/FX,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,WACjD,iBAAiB;;EAgG3B,CAAC;AAEF,eAAO,MAAM,kBAAkB,4BAnGJ,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,WACjD,iBAAiB;;EAoG3B,CAAC;AAEF,eAAO,MAAM,sBAAsB,4BAvGR,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,WACjD,iBAAiB;;EAwG3B,CAAC;AAEF,eAAO,MAAM,2BAA2B,4BA3Gb,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,WACjD,iBAAiB;;EA4G3B,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"}
@@ -0,0 +1,8 @@
1
+ import { z } from 'zod/v4';
2
+ import { BuildChartContext, updateChartQuerySchema } from '../types';
3
+ export declare const updateChartQuery: ({ revisionPrompt, chartId }: z.infer<typeof updateChartQuerySchema>, context: BuildChartContext) => Promise<{
4
+ message: string;
5
+ chartState: import('../../..').ChartState | undefined;
6
+ dataset: import('../../..').Dataset | undefined;
7
+ }>;
8
+ //# sourceMappingURL=update-chart-query.d.ts.map
@@ -0,0 +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,QAAQ,CAAC;AAM3B,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAoCrE,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;AAGlB,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,CAyDxE,CAAC;AAEF,eAAO,MAAM,uBAAuB,GACnC,yBAAyB,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,EAC1D,SAAS,iBAAiB;;EAgB1B,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;AAElB,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;;EAmB1B,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;AAEpB,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,sCA4D7B,CAAC;AAEF,eAAO,MAAM,eAAe,GAC3B,oCAAoC,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,EACzE,SAAS,iBAAiB;;EAuB1B,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;AAYxB,OAAO,EACN,yBAAyB,EACzB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,qBAAqB,EAC1B,MAAM,SAAS,CAAC;AA+BjB;;;;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,CA2O9B"}
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;AAY3B,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,CAoR9B"}
@@ -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;AAgBtD,wBAAsB,gBAAgB,CACrC,YAAY,EAAE,MAAM,EACpB,UAAU,CAAC,EAAE,UAAU,GACrB,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,CAW/B;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,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,UAAU,CAAC,EAAE,UAAU,CAAC;CACnB,GACJ,OAAO,CAAC,eAAe,CAAC,CAsC1B"}
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,CA8C1B"}
@@ -1,15 +1,21 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v4';
2
2
  import { HttpClient } from '@sisense/sdk-rest-client';
3
+ /**
4
+ * Canonical tool description for uploadFiles — reusable by any host (sdk-assistant, MCP server, custom integrations).
5
+ * Hosts may append host-specific notes but should not duplicate or contradict this text.
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.\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
+ /**
9
+ * Canonical tool description for buildDataModelFromUploads — reusable by any host (sdk-assistant, MCP server, custom integrations).
10
+ * Hosts may append host-specific notes but should not duplicate or contradict this text.
11
+ */
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.";
3
13
  export declare const uploadFilesParamsSchema: z.ZodObject<{
4
- accept: z.ZodOptional<z.ZodArray<z.ZodEnum<["csv"]>, "many">>;
14
+ accept: z.ZodOptional<z.ZodArray<z.ZodEnum<{
15
+ csv: "csv";
16
+ }>>>;
5
17
  maxFiles: z.ZodOptional<z.ZodNumber>;
6
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7
- accept: z.ZodOptional<z.ZodArray<z.ZodEnum<["csv"]>, "many">>;
8
- maxFiles: z.ZodOptional<z.ZodNumber>;
9
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
10
- accept: z.ZodOptional<z.ZodArray<z.ZodEnum<["csv"]>, "many">>;
11
- maxFiles: z.ZodOptional<z.ZodNumber>;
12
- }, z.ZodTypeAny, "passthrough">>;
18
+ }, z.core.$loose>;
13
19
  export interface UploadedFile {
14
20
  originalName: string;
15
21
  fileName: string;
@@ -24,75 +30,17 @@ export declare const uploadedFileSchema: z.ZodObject<{
24
30
  fileName: z.ZodString;
25
31
  storagePath: z.ZodString;
26
32
  size: z.ZodOptional<z.ZodNumber>;
27
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
28
- originalName: z.ZodString;
29
- fileName: z.ZodString;
30
- storagePath: z.ZodString;
31
- size: z.ZodOptional<z.ZodNumber>;
32
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
33
- originalName: z.ZodString;
34
- fileName: z.ZodString;
35
- storagePath: z.ZodString;
36
- size: z.ZodOptional<z.ZodNumber>;
37
- }, z.ZodTypeAny, "passthrough">>;
33
+ }, z.core.$loose>;
38
34
  export declare const buildCsvModelParamsSchema: z.ZodObject<{
39
35
  uploadedFiles: z.ZodArray<z.ZodObject<{
40
36
  originalName: z.ZodString;
41
37
  fileName: z.ZodString;
42
38
  storagePath: z.ZodString;
43
39
  size: z.ZodOptional<z.ZodNumber>;
44
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
45
- originalName: z.ZodString;
46
- fileName: z.ZodString;
47
- storagePath: z.ZodString;
48
- size: z.ZodOptional<z.ZodNumber>;
49
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
50
- originalName: z.ZodString;
51
- fileName: z.ZodString;
52
- storagePath: z.ZodString;
53
- size: z.ZodOptional<z.ZodNumber>;
54
- }, z.ZodTypeAny, "passthrough">>, "many">;
55
- modelTitle: z.ZodString;
56
- inferRelations: z.ZodBoolean;
57
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
58
- uploadedFiles: z.ZodArray<z.ZodObject<{
59
- originalName: z.ZodString;
60
- fileName: z.ZodString;
61
- storagePath: z.ZodString;
62
- size: z.ZodOptional<z.ZodNumber>;
63
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
64
- originalName: z.ZodString;
65
- fileName: z.ZodString;
66
- storagePath: z.ZodString;
67
- size: z.ZodOptional<z.ZodNumber>;
68
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
69
- originalName: z.ZodString;
70
- fileName: z.ZodString;
71
- storagePath: z.ZodString;
72
- size: z.ZodOptional<z.ZodNumber>;
73
- }, z.ZodTypeAny, "passthrough">>, "many">;
74
- modelTitle: z.ZodString;
75
- inferRelations: z.ZodBoolean;
76
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
77
- uploadedFiles: z.ZodArray<z.ZodObject<{
78
- originalName: z.ZodString;
79
- fileName: z.ZodString;
80
- storagePath: z.ZodString;
81
- size: z.ZodOptional<z.ZodNumber>;
82
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
83
- originalName: z.ZodString;
84
- fileName: z.ZodString;
85
- storagePath: z.ZodString;
86
- size: z.ZodOptional<z.ZodNumber>;
87
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
88
- originalName: z.ZodString;
89
- fileName: z.ZodString;
90
- storagePath: z.ZodString;
91
- size: z.ZodOptional<z.ZodNumber>;
92
- }, z.ZodTypeAny, "passthrough">>, "many">;
40
+ }, z.core.$loose>>;
93
41
  modelTitle: z.ZodString;
94
42
  inferRelations: z.ZodBoolean;
95
- }, z.ZodTypeAny, "passthrough">>;
43
+ }, z.core.$loose>;
96
44
  export interface BuiltTable {
97
45
  oid: string;
98
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;AAItD,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;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add-dashboard-filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAG3E,eAAO,MAAM,mBAAmB,GAC/B,6BAA6B,yBAAyB,EACtD,SAAS,qBAAqB;;EA8B9B,CAAC"}
1
+ {"version":3,"file":"add-dashboard-filters.d.ts","sourceRoot":"","sources":["../../../src/engines/build-dashboard/add-dashboard-filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAI3E,eAAO,MAAM,mBAAmB,GAC/B,6BAA6B,yBAAyB,EACtD,SAAS,qBAAqB;;EA6B9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"add-dashboard-widgets.d.ts","sourceRoot":"","sources":["../../../src/engines/build-dashboard/add-dashboard-widgets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAI3E,eAAO,MAAM,mBAAmB,GAC/B,iCAAiC,yBAAyB,EAC1D,SAAS,qBAAqB;;EAuC9B,CAAC"}
1
+ {"version":3,"file":"add-dashboard-widgets.d.ts","sourceRoot":"","sources":["../../../src/engines/build-dashboard/add-dashboard-widgets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAK3E,eAAO,MAAM,mBAAmB,GAC/B,iCAAiC,yBAAyB,EAC1D,SAAS,qBAAqB;;EAsC9B,CAAC"}
@@ -1,10 +1,7 @@
1
- import { BuildDashboardContext, ChartListSummary, DashboardSummary, buildDashboardSchema } from './types';
1
+ import { BuildDashboardContext, ChartListSummary, DashboardContextPromptEntry, DashboardSummary, buildDashboardSchema } from './types';
2
2
  import { ChartSummary } from '../build-chart/types';
3
- import { default as z } from 'zod';
4
- /**
5
- * Build contextual system prompt for build dashboard
6
- */
7
- export declare function buildContextualSystemPrompt(chartSummaries: ChartSummary[], chartListSummaries: ChartListSummary[], dashboardSummaries: DashboardSummary[]): string;
3
+ import { default as z } from 'zod/v4';
4
+ export declare function buildContextualSystemPrompt(chartSummaries: ChartSummary[], chartListSummaries: ChartListSummary[], dashboardsForContext: DashboardContextPromptEntry[], priorDashboardId?: string): string;
8
5
  /**
9
6
  * Standalone build dashboard engine - completely decoupled from any UI or store
10
7
  * @param params - The parameters for the build dashboard
@@ -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,gBAAgB,EAEhB,oBAAoB,EAQpB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAepD,OAAO,CAAC,MAAM,KAAK,CAAC;AA2FpB;;GAEG;AACH,wBAAgB,2BAA2B,CAC1C,cAAc,EAAE,YAAY,EAAE,EAC9B,kBAAkB,EAAE,gBAAgB,EAAE,EACtC,kBAAkB,EAAE,gBAAgB,EAAE,UAwBtC;AAED;;;;;GAKG;AACH,wBAAsB,oBAAoB,CACzC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,EAC5C,OAAO,EAAE,qBAAqB,GAC5B,OAAO,CAAC,gBAAgB,CAAC,CAgH3B"}
1
+ {"version":3,"file":"build-dashboard-engine.d.ts","sourceRoot":"","sources":["../../../src/engines/build-dashboard/build-dashboard-engine.ts"],"names":[],"mappings":"AAEA,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,QAAQ,CAAC;AA6FvB,wBAAgB,2BAA2B,CAC1C,cAAc,EAAE,YAAY,EAAE,EAC9B,kBAAkB,EAAE,gBAAgB,EAAE,EACtC,oBAAoB,EAAE,2BAA2B,EAAE,EACnD,gBAAgB,CAAC,EAAE,MAAM,UAoCzB;AAED;;;;;GAKG;AACH,wBAAsB,oBAAoB,CACzC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,EAC5C,OAAO,EAAE,qBAAqB,GAC5B,OAAO,CAAC,gBAAgB,CAAC,CAuK3B"}
@@ -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":"AACA,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEvE;;;GAGG;AACH,eAAO,MAAM,uBAAuB,GACnC,gBAAgB,sBAAsB,EACtC,iBAAiB,MAAM,KACrB,oBAsBF,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 +1 @@
1
- {"version":3,"file":"create-chart-widget.d.ts","sourceRoot":"","sources":["../../../src/engines/build-dashboard/create-chart-widget.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,mCAAmC,EACnC,qBAAqB,EACrB,MAAM,SAAS,CAAC;AAajB,eAAO,MAAM,6BAA6B,GACzC,6BAA6B,mCAAmC,EAChE,SAAS,qBAAqB;;EAmF9B,CAAC"}
1
+ {"version":3,"file":"create-chart-widget.d.ts","sourceRoot":"","sources":["../../../src/engines/build-dashboard/create-chart-widget.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,mCAAmC,EACnC,qBAAqB,EACrB,MAAM,SAAS,CAAC;AAcjB,eAAO,MAAM,6BAA6B,GACzC,6BAA6B,mCAAmC,EAChE,SAAS,qBAAqB;;EAgF9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-dashboard.d.ts","sourceRoot":"","sources":["../../../src/engines/build-dashboard/create-dashboard.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,qBAAqB,EAErB,qBAAqB,EACrB,MAAM,SAAS,CAAC;AAKjB,eAAO,MAAM,eAAe,GAC3B,oCAAoC,qBAAqB,EACzD,SAAS,qBAAqB;;EA0C9B,CAAC"}
1
+ {"version":3,"file":"create-dashboard.d.ts","sourceRoot":"","sources":["../../../src/engines/build-dashboard/create-dashboard.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,qBAAqB,EAErB,qBAAqB,EACrB,MAAM,SAAS,CAAC;AAMjB,eAAO,MAAM,eAAe,GAC3B,oCAAoC,qBAAqB,EACzD,SAAS,qBAAqB;;EAyC9B,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 +1 @@
1
- {"version":3,"file":"load-existing-fusion-dashboard.d.ts","sourceRoot":"","sources":["../../../src/engines/build-dashboard/load-existing-fusion-dashboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,iCAAiC,EACjC,qBAAqB,EACrB,MAAM,SAAS,CAAC;AAMjB,eAAO,MAAM,2BAA2B,GACvC,oBAAoB,iCAAiC,EACrD,SAAS,qBAAqB;;EAuC9B,CAAC"}
1
+ {"version":3,"file":"load-existing-fusion-dashboard.d.ts","sourceRoot":"","sources":["../../../src/engines/build-dashboard/load-existing-fusion-dashboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,iCAAiC,EACjC,qBAAqB,EACrB,MAAM,SAAS,CAAC;AAOjB,eAAO,MAAM,2BAA2B,GACvC,oBAAoB,iCAAiC,EACrD,SAAS,qBAAqB;;EA0C9B,CAAC"}
@@ -1,9 +1,16 @@
1
- import { DashboardProps, WidgetProps, ChartType, WidgetType } from '@sisense/sdk-ui';
1
+ import { DashboardProps, WidgetProps } from '@sisense/sdk-ui';
2
+ import { DashboardJSON } from '@sisense/sdk-ui/analytics-composer';
2
3
  import { HttpClient } from '@sisense/sdk-rest-client';
3
- import { default as OpenAI } from 'openai';
4
- import { z } from 'zod';
5
- import { ChartSummary, ArtifactReference } from '../build-chart/types';
6
- 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
+ };
7
14
  /**
8
15
  * Chart list summary for LLM context
9
16
  */
@@ -11,29 +18,13 @@ export type ChartListSummary = {
11
18
  message: string;
12
19
  createdAt: string;
13
20
  chartListId: string;
21
+ dataSourceTitle: string;
14
22
  };
15
23
  /**
16
- * 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`.
17
26
  */
18
- export type BaseDashboardSummary = {
19
- /** Fusion dashboard ID */
20
- fusionDashboardId?: string;
21
- /** Human-readable title of the dashboard */
22
- dashboardTitle?: string;
23
- /** Default data source title for the dashboard */
24
- defaultDataSourceTitle: string;
25
- /** Array of widget summaries */
26
- widgets: Array<{
27
- /** Widget ID */
28
- widgetId?: string;
29
- /** Widget title (for chart and pivot table widgets) */
30
- widgetTitle?: string;
31
- /** Widget type (for chart and pivot table widgets) */
32
- widgetType?: WidgetType;
33
- /** Chart type (for chart widgets only) */
34
- chartType?: ChartType;
35
- }>;
36
- };
27
+ export type BaseDashboardSummary = DashboardState;
37
28
  /**
38
29
  * Summary of a dashboard for LLM consumption and asset extraction
39
30
  */
@@ -44,47 +35,47 @@ export interface DashboardSummary {
44
35
  createdAt: string;
45
36
  /** Unique identifier for the dashboard (typically the tool call ID) */
46
37
  dashboardId: string;
47
- /** Dashboard details, undefined if dashboard creation failed */
48
- 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;
49
42
  }
43
+ /**
44
+ * Row in the `dashboards` array of the build-dashboard system prompt: either a
45
+ * full {@link DashboardSummary} from the host or a single targeted entry by id.
46
+ */
47
+ export type DashboardContextPromptEntry = DashboardSummary | {
48
+ dashboardId: string;
49
+ dashboardState: BaseDashboardSummary;
50
+ };
51
+ /**
52
+ * Canonical tool description for buildDashboard — reusable by any host (sdk-assistant, MCP server, custom integrations).
53
+ * Hosts may append host-specific notes but should not duplicate or contradict this text.
54
+ */
55
+ 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.";
50
56
  /**
51
57
  * Schema for the main buildDashboard smart tool
52
58
  */
53
59
  export declare const buildDashboardSchema: z.ZodObject<{
54
60
  dataSourceTitle: z.ZodString;
55
61
  userPrompt: z.ZodString;
56
- }, "strip", z.ZodTypeAny, {
57
- dataSourceTitle: string;
58
- userPrompt: string;
59
- }, {
60
- dataSourceTitle: string;
61
- userPrompt: string;
62
- }>;
62
+ priorDashboardId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
+ }, z.core.$strip>;
63
64
  export type BuildDashboardParams = z.infer<typeof buildDashboardSchema>;
64
65
  /**
65
66
  * Schema for createDashboard tool
66
67
  */
67
68
  export declare const createDashboardSchema: z.ZodObject<{
68
69
  dashboardTitle: z.ZodOptional<z.ZodString>;
69
- widgetIdsToAdd: z.ZodArray<z.ZodString, "many">;
70
- }, "strip", z.ZodTypeAny, {
71
- widgetIdsToAdd: string[];
72
- dashboardTitle?: string | undefined;
73
- }, {
74
- widgetIdsToAdd: string[];
75
- dashboardTitle?: string | undefined;
76
- }>;
70
+ widgetIdsToAdd: z.ZodArray<z.ZodString>;
71
+ }, z.core.$strip>;
77
72
  export type CreateDashboardParams = z.infer<typeof createDashboardSchema>;
78
73
  /**
79
74
  * Schema for loadExistingDashboard tool
80
75
  */
81
76
  export declare const loadExistingFusionDashboardSchema: z.ZodObject<{
82
77
  dashboardTitle: z.ZodString;
83
- }, "strip", z.ZodTypeAny, {
84
- dashboardTitle: string;
85
- }, {
86
- dashboardTitle: string;
87
- }>;
78
+ }, z.core.$strip>;
88
79
  export type LoadExistingFusionDashboardParams = z.infer<typeof loadExistingFusionDashboardSchema>;
89
80
  /**
90
81
  * Schema for updateDashboard tool
@@ -92,27 +83,15 @@ export type LoadExistingFusionDashboardParams = z.infer<typeof loadExistingFusio
92
83
  export declare const updateDashboardSchema: z.ZodObject<{
93
84
  dashboardId: z.ZodString;
94
85
  dashboardTitle: z.ZodString;
95
- }, "strip", z.ZodTypeAny, {
96
- dashboardTitle: string;
97
- dashboardId: string;
98
- }, {
99
- dashboardTitle: string;
100
- dashboardId: string;
101
- }>;
86
+ }, z.core.$strip>;
102
87
  export type UpdateDashboardParams = z.infer<typeof updateDashboardSchema>;
103
88
  /**
104
89
  * Schema for addDashboardWidgets tool
105
90
  */
106
91
  export declare const addDashboardWidgetsSchema: z.ZodObject<{
107
92
  dashboardId: z.ZodString;
108
- widgetIdsToAdd: z.ZodArray<z.ZodString, "many">;
109
- }, "strip", z.ZodTypeAny, {
110
- widgetIdsToAdd: string[];
111
- dashboardId: string;
112
- }, {
113
- widgetIdsToAdd: string[];
114
- dashboardId: string;
115
- }>;
93
+ widgetIdsToAdd: z.ZodArray<z.ZodString>;
94
+ }, z.core.$strip>;
116
95
  export type AddDashboardWidgetsParams = z.infer<typeof addDashboardWidgetsSchema>;
117
96
  /**
118
97
  * Schema for createChartForDashboard tool
@@ -120,13 +99,7 @@ export type AddDashboardWidgetsParams = z.infer<typeof addDashboardWidgetsSchema
120
99
  export declare const createChartWidgetForDashboardSchema: z.ZodObject<{
121
100
  dashboardId: z.ZodString;
122
101
  userPrompt: z.ZodString;
123
- }, "strip", z.ZodTypeAny, {
124
- userPrompt: string;
125
- dashboardId: string;
126
- }, {
127
- userPrompt: string;
128
- dashboardId: string;
129
- }>;
102
+ }, z.core.$strip>;
130
103
  export type CreateChartWidgetForDashboardParams = z.infer<typeof createChartWidgetForDashboardSchema>;
131
104
  /**
132
105
  * Schema for updateChartWidgetForDashboard tool
@@ -135,15 +108,7 @@ export declare const updateChartWidgetForDashboardSchema: z.ZodObject<{
135
108
  dashboardId: z.ZodString;
136
109
  widgetId: z.ZodString;
137
110
  userPrompt: z.ZodString;
138
- }, "strip", z.ZodTypeAny, {
139
- userPrompt: string;
140
- dashboardId: string;
141
- widgetId: string;
142
- }, {
143
- userPrompt: string;
144
- dashboardId: string;
145
- widgetId: string;
146
- }>;
111
+ }, z.core.$strip>;
147
112
  export type UpdateChartWidgetForDashboardParams = z.infer<typeof updateChartWidgetForDashboardSchema>;
148
113
  /**
149
114
  * Schema for addDashboardFilters tool
@@ -151,13 +116,7 @@ export type UpdateChartWidgetForDashboardParams = z.infer<typeof updateChartWidg
151
116
  export declare const addDashboardFiltersSchema: z.ZodObject<{
152
117
  dashboardId: z.ZodString;
153
118
  userPrompt: z.ZodString;
154
- }, "strip", z.ZodTypeAny, {
155
- userPrompt: string;
156
- dashboardId: string;
157
- }, {
158
- userPrompt: string;
159
- dashboardId: string;
160
- }>;
119
+ }, z.core.$strip>;
161
120
  export type AddDashboardFiltersParams = z.infer<typeof addDashboardFiltersSchema>;
162
121
  /**
163
122
  * Build dashboard context interface
@@ -167,6 +126,7 @@ export interface BuildDashboardContext {
167
126
  * Tool call ID - REQUIRED
168
127
  */
169
128
  toolCallId: string;
129
+ abortSignal?: AbortSignal;
170
130
  /**
171
131
  * Data source title (required)
172
132
  */
@@ -200,11 +160,7 @@ export interface BuildDashboardContext {
200
160
  * @returns Array of widget props
201
161
  */
202
162
  getWidgetList?: (widgetIds: string[]) => WidgetProps[];
203
- /**
204
- * Whether NLQ V3 is enabled
205
- */
206
- isNlqV3Enabled?: boolean;
207
163
  httpClient?: HttpClient;
208
- openAIClient?: OpenAI;
164
+ llmClient?: LanguageModel;
209
165
  }
210
166
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/engines/build-dashboard/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,cAAc,EACd,WAAW,EACX,SAAS,EACT,UAAU,EACV,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEvE,MAAM,MAAM,sBAAsB,GAAG,cAAc,GAAG,iBAAiB,CAAC;AAExE;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC9B,OAAO,EAAE,MAAM,CAAC;I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yBAAyB;;;iBAKpC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,yBAAyB,CAChC,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACrC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,cAAc,CAAC,EAAE,YAAY,EAAE,CAAC;IAChC;;OAEG;IACH,kBAAkB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACxC;;OAEG;IACH,kBAAkB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACxC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,sBAAsB,GAAG,IAAI,CAAC;IAC3E;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,cAAc,EAAE,sBAAsB,KAAK,IAAI,CAAC;IACjE;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,CAAC;IACvD,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,aAAa,CAAC;CAC1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"update-chart-widget.d.ts","sourceRoot":"","sources":["../../../src/engines/build-dashboard/update-chart-widget.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,mCAAmC,EACnC,qBAAqB,EACrB,MAAM,SAAS,CAAC;AASjB,eAAO,MAAM,6BAA6B,GACzC,uCAAuC,mCAAmC,EAC1E,SAAS,qBAAqB;;EA2F9B,CAAC"}
1
+ {"version":3,"file":"update-chart-widget.d.ts","sourceRoot":"","sources":["../../../src/engines/build-dashboard/update-chart-widget.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,mCAAmC,EACnC,qBAAqB,EACrB,MAAM,SAAS,CAAC;AAUjB,eAAO,MAAM,6BAA6B,GACzC,uCAAuC,mCAAmC,EAC1E,SAAS,qBAAqB;;EAiG9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"update-dashboard.d.ts","sourceRoot":"","sources":["../../../src/engines/build-dashboard/update-dashboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAGvE,eAAO,MAAM,eAAe,GAC3B,iCAAiC,qBAAqB,EACtD,SAAS,qBAAqB;;EAqB9B,CAAC"}
1
+ {"version":3,"file":"update-dashboard.d.ts","sourceRoot":"","sources":["../../../src/engines/build-dashboard/update-dashboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAIvE,eAAO,MAAM,eAAe,GAC3B,iCAAiC,qBAAqB,EACtD,SAAS,qBAAqB;;EAyB9B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v4';
2
2
  import { toolSchema, BuildDataModelContext, BuildDataModelEngineResult } from './types';
3
3
  type ToolParams = z.infer<typeof toolSchema>;
4
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"build-data-model-engine.d.ts","sourceRoot":"","sources":["../../../src/engines/build-data-model/build-data-model-engine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,OAAO,EACN,UAAU,EAGV,KAAK,qBAAqB,EAC1B,KAAK,0BAA0B,EAE/B,MAAM,SAAS,CAAC;AAGjB,KAAK,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAqY7C;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CACzC,MAAM,EAAE,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,EAClC,OAAO,EAAE,qBAAqB,GAC5B,OAAO,CAAC,0BAA0B,CAAC,CAwFrC"}
1
+ {"version":3,"file":"build-data-model-engine.d.ts","sourceRoot":"","sources":["../../../src/engines/build-data-model/build-data-model-engine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAa3B,OAAO,EACN,UAAU,EAGV,KAAK,qBAAqB,EAC1B,KAAK,0BAA0B,EAE/B,MAAM,SAAS,CAAC;AAIjB,KAAK,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAsa7C;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CACzC,MAAM,EAAE,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,EAClC,OAAO,EAAE,qBAAqB,GAC5B,OAAO,CAAC,0BAA0B,CAAC,CAsFrC"}