@epilot/sdk 2.18.3 → 2.18.5

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/definitions/dashboard-runtime.json +1 -1
  2. package/definitions/dashboard.json +919 -48
  3. package/definitions/entity.json +27 -1
  4. package/dist/apis/access-token.cjs +6 -6
  5. package/dist/apis/access-token.js +1 -1
  6. package/dist/apis/address-suggestions.cjs +6 -6
  7. package/dist/apis/address-suggestions.js +1 -1
  8. package/dist/apis/address.cjs +6 -6
  9. package/dist/apis/address.js +1 -1
  10. package/dist/apis/ai-agents.cjs +6 -6
  11. package/dist/apis/ai-agents.js +1 -1
  12. package/dist/apis/app.cjs +6 -6
  13. package/dist/apis/app.js +1 -1
  14. package/dist/apis/audit-logs.cjs +6 -6
  15. package/dist/apis/audit-logs.js +1 -1
  16. package/dist/apis/automation.cjs +6 -6
  17. package/dist/apis/automation.js +1 -1
  18. package/dist/apis/billing.cjs +6 -6
  19. package/dist/apis/billing.js +1 -1
  20. package/dist/apis/blueprint-manifest.cjs +6 -6
  21. package/dist/apis/blueprint-manifest.js +1 -1
  22. package/dist/apis/calendar.cjs +6 -6
  23. package/dist/apis/calendar.js +1 -1
  24. package/dist/apis/configuration-hub.cjs +6 -6
  25. package/dist/apis/configuration-hub.js +1 -1
  26. package/dist/apis/consent.cjs +6 -6
  27. package/dist/apis/consent.js +1 -1
  28. package/dist/apis/customer-portal.cjs +6 -6
  29. package/dist/apis/customer-portal.js +1 -1
  30. package/dist/apis/dashboard.cjs +8 -8
  31. package/dist/apis/dashboard.d.cts +2 -2
  32. package/dist/apis/dashboard.d.ts +2 -2
  33. package/dist/apis/dashboard.js +2 -2
  34. package/dist/apis/data-governance.cjs +6 -6
  35. package/dist/apis/data-governance.js +1 -1
  36. package/dist/apis/deduplication.cjs +6 -6
  37. package/dist/apis/deduplication.js +1 -1
  38. package/dist/apis/design.cjs +6 -6
  39. package/dist/apis/design.js +1 -1
  40. package/dist/apis/document.cjs +6 -6
  41. package/dist/apis/document.js +1 -1
  42. package/dist/apis/email-settings.cjs +6 -6
  43. package/dist/apis/email-settings.js +1 -1
  44. package/dist/apis/email-template.cjs +6 -6
  45. package/dist/apis/email-template.js +1 -1
  46. package/dist/apis/entity-mapping.cjs +6 -6
  47. package/dist/apis/entity-mapping.js +1 -1
  48. package/dist/apis/entity.cjs +6 -6
  49. package/dist/apis/entity.d.cts +2 -2
  50. package/dist/apis/entity.d.ts +2 -2
  51. package/dist/apis/entity.js +1 -1
  52. package/dist/apis/environments.cjs +6 -6
  53. package/dist/apis/environments.js +1 -1
  54. package/dist/apis/event-catalog.cjs +6 -6
  55. package/dist/apis/event-catalog.js +1 -1
  56. package/dist/apis/file.cjs +6 -6
  57. package/dist/apis/file.js +1 -1
  58. package/dist/apis/iban.cjs +6 -6
  59. package/dist/apis/iban.js +1 -1
  60. package/dist/apis/integration-toolkit.cjs +6 -6
  61. package/dist/apis/integration-toolkit.js +1 -1
  62. package/dist/apis/journey.cjs +6 -6
  63. package/dist/apis/journey.js +1 -1
  64. package/dist/apis/kanban.cjs +6 -6
  65. package/dist/apis/kanban.js +1 -1
  66. package/dist/apis/message.cjs +6 -6
  67. package/dist/apis/message.js +1 -1
  68. package/dist/apis/metering.cjs +6 -6
  69. package/dist/apis/metering.js +1 -1
  70. package/dist/apis/notes.cjs +6 -6
  71. package/dist/apis/notes.js +1 -1
  72. package/dist/apis/notification.cjs +6 -6
  73. package/dist/apis/notification.js +1 -1
  74. package/dist/apis/organization.cjs +6 -6
  75. package/dist/apis/organization.js +1 -1
  76. package/dist/apis/partner-directory.cjs +6 -6
  77. package/dist/apis/partner-directory.js +1 -1
  78. package/dist/apis/permissions.cjs +6 -6
  79. package/dist/apis/permissions.js +1 -1
  80. package/dist/apis/pricing-tier.cjs +6 -6
  81. package/dist/apis/pricing-tier.js +1 -1
  82. package/dist/apis/pricing.cjs +6 -6
  83. package/dist/apis/pricing.js +1 -1
  84. package/dist/apis/purpose.cjs +6 -6
  85. package/dist/apis/purpose.js +1 -1
  86. package/dist/apis/query.cjs +6 -6
  87. package/dist/apis/query.js +1 -1
  88. package/dist/apis/sandbox.cjs +6 -6
  89. package/dist/apis/sandbox.js +1 -1
  90. package/dist/apis/sharing.cjs +6 -6
  91. package/dist/apis/sharing.js +1 -1
  92. package/dist/apis/snapshot.cjs +6 -6
  93. package/dist/apis/snapshot.js +1 -1
  94. package/dist/apis/submission.cjs +6 -6
  95. package/dist/apis/submission.js +1 -1
  96. package/dist/apis/target.cjs +6 -6
  97. package/dist/apis/target.js +1 -1
  98. package/dist/apis/targeting.cjs +6 -6
  99. package/dist/apis/targeting.js +1 -1
  100. package/dist/apis/template-variables.cjs +6 -6
  101. package/dist/apis/template-variables.js +1 -1
  102. package/dist/apis/user.cjs +6 -6
  103. package/dist/apis/user.js +1 -1
  104. package/dist/apis/validation-rules.cjs +6 -6
  105. package/dist/apis/validation-rules.js +1 -1
  106. package/dist/apis/webhooks.cjs +6 -6
  107. package/dist/apis/webhooks.js +1 -1
  108. package/dist/apis/workflow-definition.cjs +6 -6
  109. package/dist/apis/workflow-definition.js +1 -1
  110. package/dist/apis/workflow.cjs +6 -6
  111. package/dist/apis/workflow.js +1 -1
  112. package/dist/{chunk-6XCKLP3T.js → chunk-5MIH4RZR.js} +3 -3
  113. package/dist/{chunk-5RAQKW2K.cjs → chunk-EWY5NKI7.cjs} +3 -3
  114. package/dist/chunk-TIRWWTDP.js +14 -0
  115. package/dist/chunk-VMCF5R6R.cjs +14 -0
  116. package/dist/dashboard-7QJ46I7N.cjs +7 -0
  117. package/dist/dashboard-ILXUFFF2.js +7 -0
  118. package/dist/{dashboard-runtime-EXP2AM44.cjs → dashboard-runtime-2LOASQPB.cjs} +2 -2
  119. package/dist/{dashboard-runtime-PSKSGLCF.js → dashboard-runtime-YMFNQP3M.js} +1 -1
  120. package/dist/dashboard.d-BSevFHjf.d.cts +1405 -0
  121. package/dist/dashboard.d-BSevFHjf.d.ts +1405 -0
  122. package/dist/entity-DBJ2R3UN.js +7 -0
  123. package/dist/entity-HO34WNFK.cjs +7 -0
  124. package/dist/{entity.d-CaFNmDfj.d.cts → entity.d-BOpXYCU2.d.cts} +66 -2
  125. package/dist/{entity.d-CaFNmDfj.d.ts → entity.d-BOpXYCU2.d.ts} +66 -2
  126. package/dist/index.cjs +10 -10
  127. package/dist/index.d.cts +2 -2
  128. package/dist/index.d.ts +2 -2
  129. package/dist/index.js +2 -2
  130. package/docs/dashboard.md +1044 -180
  131. package/docs/entity.md +57 -13
  132. package/package.json +1 -1
  133. package/dist/chunk-M2UDF7PY.cjs +0 -14
  134. package/dist/chunk-SZMCMLOQ.js +0 -14
  135. package/dist/dashboard-UHYR5RTY.cjs +0 -7
  136. package/dist/dashboard-UTPGXFW5.js +0 -7
  137. package/dist/dashboard.d-CsGcA74I.d.cts +0 -440
  138. package/dist/dashboard.d-CsGcA74I.d.ts +0 -440
  139. package/dist/entity-IZHQB3JX.js +0 -7
  140. package/dist/entity-MYDUQBEE.cjs +0 -7
@@ -6,25 +6,25 @@ var _chunkNGGI52NVcjs = require('../chunk-NGGI52NV.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunk5RAQKW2Kcjs = require('../chunk-5RAQKW2K.cjs');
9
+ var _chunkEWY5NKI7cjs = require('../chunk-EWY5NKI7.cjs');
10
10
  require('../chunk-NJK5F5TF.cjs');
11
11
 
12
12
  // src/apis/webhooks.ts
13
13
  var loadDefinition = () => {
14
14
  const mod = _chunkNGGI52NVcjs.require_webhooks_runtime.call(void 0, );
15
- return _chunk5RAQKW2Kcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
15
+ return _chunkEWY5NKI7cjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
16
16
  };
17
17
  var _instance = null;
18
18
  var resolve = () => {
19
19
  if (!_instance) {
20
20
  const def = loadDefinition();
21
- _instance = _chunk5RAQKW2Kcjs.createApiClient.call(void 0, { definition: def, apiName: "webhooks" });
21
+ _instance = _chunkEWY5NKI7cjs.createApiClient.call(void 0, { definition: def, apiName: "webhooks" });
22
22
  }
23
23
  return _instance;
24
24
  };
25
- var _handle = _chunk5RAQKW2Kcjs.createApiHandle.call(void 0, {
25
+ var _handle = _chunkEWY5NKI7cjs.createApiHandle.call(void 0, {
26
26
  resolveClient: resolve,
27
- createClient: () => _chunk5RAQKW2Kcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "webhooks" }),
27
+ createClient: () => _chunkEWY5NKI7cjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "webhooks" }),
28
28
  apiName: "webhooks"
29
29
  });
30
30
  var getClient = _handle.getClient;
@@ -35,4 +35,4 @@ var webhooks = _handle;
35
35
 
36
36
 
37
37
 
38
- exports.authorize = _chunk5RAQKW2Kcjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.webhooks = webhooks;
38
+ exports.authorize = _chunkEWY5NKI7cjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.webhooks = webhooks;
@@ -6,7 +6,7 @@ import {
6
6
  createApiClient,
7
7
  createApiHandle,
8
8
  expand
9
- } from "../chunk-6XCKLP3T.js";
9
+ } from "../chunk-5MIH4RZR.js";
10
10
  import "../chunk-YPSWSI3M.js";
11
11
 
12
12
  // src/apis/webhooks.ts
@@ -6,25 +6,25 @@ var _chunkADX7IYB3cjs = require('../chunk-ADX7IYB3.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunk5RAQKW2Kcjs = require('../chunk-5RAQKW2K.cjs');
9
+ var _chunkEWY5NKI7cjs = require('../chunk-EWY5NKI7.cjs');
10
10
  require('../chunk-NJK5F5TF.cjs');
11
11
 
12
12
  // src/apis/workflow-definition.ts
13
13
  var loadDefinition = () => {
14
14
  const mod = _chunkADX7IYB3cjs.require_workflow_definition_runtime.call(void 0, );
15
- return _chunk5RAQKW2Kcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
15
+ return _chunkEWY5NKI7cjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
16
16
  };
17
17
  var _instance = null;
18
18
  var resolve = () => {
19
19
  if (!_instance) {
20
20
  const def = loadDefinition();
21
- _instance = _chunk5RAQKW2Kcjs.createApiClient.call(void 0, { definition: def, apiName: "workflowDefinition" });
21
+ _instance = _chunkEWY5NKI7cjs.createApiClient.call(void 0, { definition: def, apiName: "workflowDefinition" });
22
22
  }
23
23
  return _instance;
24
24
  };
25
- var _handle = _chunk5RAQKW2Kcjs.createApiHandle.call(void 0, {
25
+ var _handle = _chunkEWY5NKI7cjs.createApiHandle.call(void 0, {
26
26
  resolveClient: resolve,
27
- createClient: () => _chunk5RAQKW2Kcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "workflowDefinition" }),
27
+ createClient: () => _chunkEWY5NKI7cjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "workflowDefinition" }),
28
28
  apiName: "workflowDefinition"
29
29
  });
30
30
  var getClient = _handle.getClient;
@@ -35,4 +35,4 @@ var workflowDefinition = _handle;
35
35
 
36
36
 
37
37
 
38
- exports.authorize = _chunk5RAQKW2Kcjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.workflowDefinition = workflowDefinition;
38
+ exports.authorize = _chunkEWY5NKI7cjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.workflowDefinition = workflowDefinition;
@@ -6,7 +6,7 @@ import {
6
6
  createApiClient,
7
7
  createApiHandle,
8
8
  expand
9
- } from "../chunk-6XCKLP3T.js";
9
+ } from "../chunk-5MIH4RZR.js";
10
10
  import "../chunk-YPSWSI3M.js";
11
11
 
12
12
  // src/apis/workflow-definition.ts
@@ -6,25 +6,25 @@ var _chunkPM25LLETcjs = require('../chunk-PM25LLET.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunk5RAQKW2Kcjs = require('../chunk-5RAQKW2K.cjs');
9
+ var _chunkEWY5NKI7cjs = require('../chunk-EWY5NKI7.cjs');
10
10
  require('../chunk-NJK5F5TF.cjs');
11
11
 
12
12
  // src/apis/workflow.ts
13
13
  var loadDefinition = () => {
14
14
  const mod = _chunkPM25LLETcjs.require_workflow_runtime.call(void 0, );
15
- return _chunk5RAQKW2Kcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
15
+ return _chunkEWY5NKI7cjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
16
16
  };
17
17
  var _instance = null;
18
18
  var resolve = () => {
19
19
  if (!_instance) {
20
20
  const def = loadDefinition();
21
- _instance = _chunk5RAQKW2Kcjs.createApiClient.call(void 0, { definition: def, apiName: "workflow" });
21
+ _instance = _chunkEWY5NKI7cjs.createApiClient.call(void 0, { definition: def, apiName: "workflow" });
22
22
  }
23
23
  return _instance;
24
24
  };
25
- var _handle = _chunk5RAQKW2Kcjs.createApiHandle.call(void 0, {
25
+ var _handle = _chunkEWY5NKI7cjs.createApiHandle.call(void 0, {
26
26
  resolveClient: resolve,
27
- createClient: () => _chunk5RAQKW2Kcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "workflow" }),
27
+ createClient: () => _chunkEWY5NKI7cjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "workflow" }),
28
28
  apiName: "workflow"
29
29
  });
30
30
  var getClient = _handle.getClient;
@@ -35,4 +35,4 @@ var workflow = _handle;
35
35
 
36
36
 
37
37
 
38
- exports.authorize = _chunk5RAQKW2Kcjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.workflow = workflow;
38
+ exports.authorize = _chunkEWY5NKI7cjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.workflow = workflow;
@@ -6,7 +6,7 @@ import {
6
6
  createApiClient,
7
7
  createApiHandle,
8
8
  expand
9
- } from "../chunk-6XCKLP3T.js";
9
+ } from "../chunk-5MIH4RZR.js";
10
10
  import "../chunk-YPSWSI3M.js";
11
11
 
12
12
  // src/apis/workflow.ts
@@ -42,7 +42,7 @@ var globImport_docs = __glob({
42
42
  "./docs/configuration-hub.json": () => import("./configuration-hub-E7S4JB2T.js"),
43
43
  "./docs/consent.json": () => import("./consent-NNYHF2N4.js"),
44
44
  "./docs/customer-portal.json": () => import("./customer-portal-WIRQ7UCN.js"),
45
- "./docs/dashboard.json": () => import("./dashboard-UTPGXFW5.js"),
45
+ "./docs/dashboard.json": () => import("./dashboard-ILXUFFF2.js"),
46
46
  "./docs/data-governance.json": () => import("./data-governance-36Y33JVG.js"),
47
47
  "./docs/deduplication.json": () => import("./deduplication-JNS7SSUR.js"),
48
48
  "./docs/design.json": () => import("./design-FO54C6BX.js"),
@@ -50,7 +50,7 @@ var globImport_docs = __glob({
50
50
  "./docs/email-settings.json": () => import("./email-settings-ECSU7KWC.js"),
51
51
  "./docs/email-template.json": () => import("./email-template-WYROV3UG.js"),
52
52
  "./docs/entity-mapping.json": () => import("./entity-mapping-7J3IAGKQ.js"),
53
- "./docs/entity.json": () => import("./entity-IZHQB3JX.js"),
53
+ "./docs/entity.json": () => import("./entity-DBJ2R3UN.js"),
54
54
  "./docs/environments.json": () => import("./environments-PXJOTQVM.js"),
55
55
  "./docs/erp-integration.json": () => import("./erp-integration-SBQJ6HEG.js"),
56
56
  "./docs/event-catalog.json": () => import("./event-catalog-RS4LJMY2.js"),
@@ -124,7 +124,7 @@ var globImport_definitions_json = __glob({
124
124
  "./definitions/consent.json": () => import("./consent-7MNRAINV.js"),
125
125
  "./definitions/customer-portal-runtime.json": () => import("./customer-portal-runtime-FZQLCEJQ.js"),
126
126
  "./definitions/customer-portal.json": () => import("./customer-portal-L5DEQEGC.js"),
127
- "./definitions/dashboard-runtime.json": () => import("./dashboard-runtime-PSKSGLCF.js"),
127
+ "./definitions/dashboard-runtime.json": () => import("./dashboard-runtime-YMFNQP3M.js"),
128
128
  "./definitions/dashboard.json": () => import("./dashboard-UDL26RGG.js"),
129
129
  "./definitions/data-governance-runtime.json": () => import("./data-governance-runtime-LITKCNSG.js"),
130
130
  "./definitions/data-governance.json": () => import("./data-governance-PLS5TJ7Z.js"),
@@ -42,7 +42,7 @@ var globImport_docs = _chunkNJK5F5TFcjs.__glob.call(void 0, {
42
42
  "./docs/configuration-hub.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./configuration-hub-Q5JBYB52.cjs"))),
43
43
  "./docs/consent.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./consent-CS2ZBZX4.cjs"))),
44
44
  "./docs/customer-portal.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./customer-portal-JDIXJD6C.cjs"))),
45
- "./docs/dashboard.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./dashboard-UHYR5RTY.cjs"))),
45
+ "./docs/dashboard.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./dashboard-7QJ46I7N.cjs"))),
46
46
  "./docs/data-governance.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./data-governance-2U5UU4GM.cjs"))),
47
47
  "./docs/deduplication.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./deduplication-FFW7L6P5.cjs"))),
48
48
  "./docs/design.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./design-FO6SD3O7.cjs"))),
@@ -50,7 +50,7 @@ var globImport_docs = _chunkNJK5F5TFcjs.__glob.call(void 0, {
50
50
  "./docs/email-settings.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./email-settings-RHMYC2KT.cjs"))),
51
51
  "./docs/email-template.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./email-template-M2VVL4TI.cjs"))),
52
52
  "./docs/entity-mapping.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./entity-mapping-ZNMFCUKK.cjs"))),
53
- "./docs/entity.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./entity-MYDUQBEE.cjs"))),
53
+ "./docs/entity.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./entity-HO34WNFK.cjs"))),
54
54
  "./docs/environments.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./environments-QJ4UMJ5C.cjs"))),
55
55
  "./docs/erp-integration.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./erp-integration-PAVHSUDM.cjs"))),
56
56
  "./docs/event-catalog.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./event-catalog-6ZSSF5JU.cjs"))),
@@ -124,7 +124,7 @@ var globImport_definitions_json = _chunkNJK5F5TFcjs.__glob.call(void 0, {
124
124
  "./definitions/consent.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./consent-6SIH4NQS.cjs"))),
125
125
  "./definitions/customer-portal-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./customer-portal-runtime-7WW3YRWJ.cjs"))),
126
126
  "./definitions/customer-portal.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./customer-portal-MXILX4KH.cjs"))),
127
- "./definitions/dashboard-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./dashboard-runtime-EXP2AM44.cjs"))),
127
+ "./definitions/dashboard-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./dashboard-runtime-2LOASQPB.cjs"))),
128
128
  "./definitions/dashboard.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./dashboard-RKUQLIME.cjs"))),
129
129
  "./definitions/data-governance-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./data-governance-runtime-TDGFG67G.cjs"))),
130
130
  "./definitions/data-governance.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./data-governance-ZJ2K4ZWX.cjs"))),
@@ -0,0 +1,14 @@
1
+ import {
2
+ __commonJS
3
+ } from "./chunk-YPSWSI3M.js";
4
+
5
+ // src/definitions/dashboard-runtime.json
6
+ var require_dashboard_runtime = __commonJS({
7
+ "src/definitions/dashboard-runtime.json"(exports, module) {
8
+ module.exports = { s: "https://dashboard.sls.epilot.io", o: [["listDashboards", "get", "/v1/dashboard/dashboards", [["Search"], ["CreatedBy"], ["CreatedAfter"], ["CreatedBefore"], ["UpdatedAfter"], ["UpdatedBefore"], ["SharedWith"], ["Owner"], ["AccessibleTo"], ["Favorite"], ["FavoritesFirst"], ["Sort"], ["Order"], ["Limit"], ["Offset"]]], ["createDashboard", "post", "/v1/dashboard/dashboards", null, 1], ["listFavoriteDashboardIds", "get", "/v1/dashboard/dashboards/favorites"], ["favoriteDashboard", "put", "/v1/dashboard/dashboards/{id}/favorite"], ["unfavoriteDashboard", "delete", "/v1/dashboard/dashboards/{id}/favorite"], ["getDashboard", "get", "/v1/dashboard/dashboards/{id}"], ["putDashboard", "put", "/v1/dashboard/dashboards/{id}", null, 1], ["patchDashboard", "patch", "/v1/dashboard/dashboards/{id}", null, 1], ["deleteDashboard", "delete", "/v1/dashboard/dashboards/{id}"], ["listInsights", "get", "/v1/dashboard/insights", [["Search"], ["VisualisationIdFilter"], ["TagsFilter"], ["TagsMatch"], ["CreatedBy"], ["CreatedAfter"], ["CreatedBefore"], ["UpdatedAfter"], ["UpdatedBefore"], ["SharedWith"], ["Owner"], ["AccessibleTo"], ["Sort"], ["Order"], ["Limit"], ["Offset"]]], ["createInsight", "post", "/v1/dashboard/insights", null, 1], ["listInsightTags", "get", "/v1/dashboard/insights/tags"], ["getInsight", "get", "/v1/dashboard/insights/{id}"], ["putInsight", "put", "/v1/dashboard/insights/{id}", null, 1], ["patchInsight", "patch", "/v1/dashboard/insights/{id}", null, 1], ["deleteInsight", "delete", "/v1/dashboard/insights/{id}"], ["listAvailableVisualisations", "get", "/v1/dashboard/visualisations"], ["listAvailableExamples", "get", "/v1/dashboard/examples"]], v: "3.0.0", cp: { Search: ["q", "q"], VisualisationIdFilter: ["visualisation_id", "q", false, "form", true], TagsFilter: ["tags", "q", false, "form", true], TagsMatch: ["tags_match", "q"], CreatedBy: ["created_by", "q"], CreatedAfter: ["created_after", "q"], CreatedBefore: ["created_before", "q"], UpdatedAfter: ["updated_after", "q"], UpdatedBefore: ["updated_before", "q"], SharedWith: ["shared_with", "q", false, "form", true], Owner: ["owner", "q", false, "form", true], AccessibleTo: ["accessible_to", "q"], Favorite: ["favorite", "q"], FavoritesFirst: ["favorites_first", "q"], Sort: ["sort", "q"], Order: ["order", "q"], Limit: ["limit", "q"], Offset: ["offset", "q"] }, pp: { "/v1/dashboard/dashboards/{id}/favorite": [["id", "p", true]], "/v1/dashboard/dashboards/{id}": [["id", "p", true]], "/v1/dashboard/insights/{id}": [["id", "p", true]] } };
9
+ }
10
+ });
11
+
12
+ export {
13
+ require_dashboard_runtime
14
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
4
+
5
+ // src/definitions/dashboard-runtime.json
6
+ var require_dashboard_runtime = _chunkNJK5F5TFcjs.__commonJS.call(void 0, {
7
+ "src/definitions/dashboard-runtime.json"(exports, module) {
8
+ module.exports = { s: "https://dashboard.sls.epilot.io", o: [["listDashboards", "get", "/v1/dashboard/dashboards", [["Search"], ["CreatedBy"], ["CreatedAfter"], ["CreatedBefore"], ["UpdatedAfter"], ["UpdatedBefore"], ["SharedWith"], ["Owner"], ["AccessibleTo"], ["Favorite"], ["FavoritesFirst"], ["Sort"], ["Order"], ["Limit"], ["Offset"]]], ["createDashboard", "post", "/v1/dashboard/dashboards", null, 1], ["listFavoriteDashboardIds", "get", "/v1/dashboard/dashboards/favorites"], ["favoriteDashboard", "put", "/v1/dashboard/dashboards/{id}/favorite"], ["unfavoriteDashboard", "delete", "/v1/dashboard/dashboards/{id}/favorite"], ["getDashboard", "get", "/v1/dashboard/dashboards/{id}"], ["putDashboard", "put", "/v1/dashboard/dashboards/{id}", null, 1], ["patchDashboard", "patch", "/v1/dashboard/dashboards/{id}", null, 1], ["deleteDashboard", "delete", "/v1/dashboard/dashboards/{id}"], ["listInsights", "get", "/v1/dashboard/insights", [["Search"], ["VisualisationIdFilter"], ["TagsFilter"], ["TagsMatch"], ["CreatedBy"], ["CreatedAfter"], ["CreatedBefore"], ["UpdatedAfter"], ["UpdatedBefore"], ["SharedWith"], ["Owner"], ["AccessibleTo"], ["Sort"], ["Order"], ["Limit"], ["Offset"]]], ["createInsight", "post", "/v1/dashboard/insights", null, 1], ["listInsightTags", "get", "/v1/dashboard/insights/tags"], ["getInsight", "get", "/v1/dashboard/insights/{id}"], ["putInsight", "put", "/v1/dashboard/insights/{id}", null, 1], ["patchInsight", "patch", "/v1/dashboard/insights/{id}", null, 1], ["deleteInsight", "delete", "/v1/dashboard/insights/{id}"], ["listAvailableVisualisations", "get", "/v1/dashboard/visualisations"], ["listAvailableExamples", "get", "/v1/dashboard/examples"]], v: "3.0.0", cp: { Search: ["q", "q"], VisualisationIdFilter: ["visualisation_id", "q", false, "form", true], TagsFilter: ["tags", "q", false, "form", true], TagsMatch: ["tags_match", "q"], CreatedBy: ["created_by", "q"], CreatedAfter: ["created_after", "q"], CreatedBefore: ["created_before", "q"], UpdatedAfter: ["updated_after", "q"], UpdatedBefore: ["updated_before", "q"], SharedWith: ["shared_with", "q", false, "form", true], Owner: ["owner", "q", false, "form", true], AccessibleTo: ["accessible_to", "q"], Favorite: ["favorite", "q"], FavoritesFirst: ["favorites_first", "q"], Sort: ["sort", "q"], Order: ["order", "q"], Limit: ["limit", "q"], Offset: ["offset", "q"] }, pp: { "/v1/dashboard/dashboards/{id}/favorite": [["id", "p", true]], "/v1/dashboard/dashboards/{id}": [["id", "p", true]], "/v1/dashboard/insights/{id}": [["id", "p", true]] } };
9
+ }
10
+ });
11
+
12
+
13
+
14
+ exports.require_dashboard_runtime = require_dashboard_runtime;
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-NJK5F5TF.cjs');
2
+
3
+ // src/docs/dashboard.json
4
+ var dashboard_default = '# Dashboard API\n\n- **Base URL:** `https://dashboard.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/dashboard](https://docs.epilot.io/api/dashboard)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.dashboard.listDashboards(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/dashboard\'\n\nconst dashboardClient = getClient()\nauthorize(dashboardClient, () => \'<token>\')\nconst { data } = await dashboardClient.listDashboards(...)\n```\n\n## Operations\n\n**Dashboards**\n- [`listDashboards`](#listdashboards)\n- [`createDashboard`](#createdashboard)\n- [`listFavoriteDashboardIds`](#listfavoritedashboardids)\n- [`favoriteDashboard`](#favoritedashboard)\n- [`unfavoriteDashboard`](#unfavoritedashboard)\n- [`getDashboard`](#getdashboard)\n- [`putDashboard`](#putdashboard)\n- [`patchDashboard`](#patchdashboard)\n- [`deleteDashboard`](#deletedashboard)\n\n**Insights**\n- [`listInsights`](#listinsights)\n- [`createInsight`](#createinsight)\n- [`listInsightTags`](#listinsighttags)\n- [`getInsight`](#getinsight)\n- [`putInsight`](#putinsight)\n- [`patchInsight`](#patchinsight)\n- [`deleteInsight`](#deleteinsight)\n\n**Visualisations**\n- [`listAvailableVisualisations`](#listavailablevisualisations)\n\n**Examples**\n- [`listAvailableExamples`](#listavailableexamples)\n\n**Schemas**\n- [`DashboardID`](#dashboardid)\n- [`Dashboard`](#dashboard)\n- [`DashboardTileID`](#dashboardtileid)\n- [`SharePermission`](#sharepermission)\n- [`ShareGrant`](#sharegrant)\n- [`OrgAccess`](#orgaccess)\n- [`AccessControl`](#accesscontrol)\n- [`AccessControlUpdate`](#accesscontrolupdate)\n- [`DashboardPatch`](#dashboardpatch)\n- [`InsightID`](#insightid)\n- [`Insight`](#insight)\n- [`InsightPatch`](#insightpatch)\n- [`Tags`](#tags)\n- [`Pagination`](#pagination)\n- [`DashboardTile`](#dashboardtile)\n- [`VisualisationConfig`](#visualisationconfig)\n- [`timechartVisualisationConfig`](#timechartvisualisationconfig)\n- [`ExampleID`](#exampleid)\n- [`Example`](#example)\n- [`DatalakeQuery`](#datalakequery)\n- [`VisualisationId`](#visualisationid)\n- [`Visualisation`](#visualisation)\n\n### `listDashboards`\n\nList dashboards available to the user\n\n`GET /v1/dashboard/dashboards`\n\n```ts\nconst { data } = await client.listDashboards({\n q: \'example\',\n created_by: \'example\',\n created_after: \'example\',\n created_before: \'example\',\n updated_after: \'example\',\n updated_before: \'example\',\n shared_with: [\'...\'],\n owner: [\'...\'],\n accessible_to: \'example\',\n favorite: true,\n favorites_first: true,\n sort: \'example\',\n order: \'example\',\n limit: 1,\n offset: 1,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "created_by": "10598",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "10598",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "owner_org_id": "739224",\n "owners": ["10598"],\n "shared_with": [\n {\n "user_id": "10598",\n "permission": "view"\n }\n ],\n "org_access": "view",\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "title": "Employee Dashboard",\n "tiles": [\n {\n "id": "e4af1297-1fd6-440f-9846-f475f580d40f",\n "coordinates": {},\n "insight_id": "8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e"\n }\n ],\n "favorited": false\n }\n ],\n "pagination": {\n "total": 0,\n "limit": 0,\n "offset": 0,\n "has_more": true\n }\n}\n```\n\n</details>\n\n---\n\n### `createDashboard`\n\nCreate new dashboard\n\n`POST /v1/dashboard/dashboards`\n\n```ts\nconst { data } = await client.createDashboard(\n null,\n {\n created_by: \'10598\',\n created_at: \'1970-01-01T00:00:00.000Z\',\n updated_by: \'10598\',\n updated_at: \'1970-01-01T00:00:00.000Z\',\n owner_org_id: \'739224\',\n owners: [\'10598\'],\n shared_with: [\n {\n user_id: \'10598\',\n permission: \'view\'\n }\n ],\n org_access: \'view\',\n id: \'3fa85f64-5717-4562-b3fc-2c963f66afa6\',\n title: \'Employee Dashboard\',\n tiles: [\n {\n id: \'e4af1297-1fd6-440f-9846-f475f580d40f\',\n coordinates: {},\n insight_id: \'8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e\'\n }\n ],\n favorited: false\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "created_by": "10598",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "10598",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "owner_org_id": "739224",\n "owners": ["10598"],\n "shared_with": [\n {\n "user_id": "10598",\n "permission": "view"\n }\n ],\n "org_access": "view",\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "title": "Employee Dashboard",\n "tiles": [\n {\n "id": "e4af1297-1fd6-440f-9846-f475f580d40f",\n "coordinates": {},\n "insight_id": "8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e"\n }\n ],\n "favorited": false\n}\n```\n\n</details>\n\n---\n\n### `listFavoriteDashboardIds`\n\nReturns the current user\'s favorited dashboard ids, with no dashboard metadata. Lets a\nclient decide whether to default to a favorites-only view without first fetching the full\ndashboards list.\n\n`GET /v1/dashboard/dashboards/favorites`\n\n```ts\nconst { data } = await client.listFavoriteDashboardIds()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "dashboard_ids": ["3fa85f64-5717-4562-b3fc-2c963f66afa6"],\n "total": 0\n}\n```\n\n</details>\n\n---\n\n### `favoriteDashboard`\n\nMarks the dashboard as favorited by the current user. Idempotent \u2014 favoriting an\nalready-favorited dashboard is not an error. Requires only view-level access to the\ndashboard (unlike the edit-level ch\n\n`PUT /v1/dashboard/dashboards/{id}/favorite`\n\n```ts\nconst { data } = await client.favoriteDashboard({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n---\n\n### `unfavoriteDashboard`\n\nRemoves the current user\'s favorite for the dashboard. Idempotent \u2014 unfavoriting a\ndashboard that was not favorited is not an error, and neither is unfavoriting one that no\nlonger exists or is no long\n\n`DELETE /v1/dashboard/dashboards/{id}/favorite`\n\n```ts\nconst { data } = await client.unfavoriteDashboard({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n---\n\n### `getDashboard`\n\nGet dashboard by ID\n\n`GET /v1/dashboard/dashboards/{id}`\n\n```ts\nconst { data } = await client.getDashboard({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "created_by": "10598",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "10598",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "owner_org_id": "739224",\n "owners": ["10598"],\n "shared_with": [\n {\n "user_id": "10598",\n "permission": "view"\n }\n ],\n "org_access": "view",\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "title": "Employee Dashboard",\n "tiles": [\n {\n "id": "e4af1297-1fd6-440f-9846-f475f580d40f",\n "coordinates": {},\n "insight_id": "8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e"\n }\n ],\n "favorited": false\n}\n```\n\n</details>\n\n---\n\n### `putDashboard`\n\nUpdate a dashboard by ID\n\n`PUT /v1/dashboard/dashboards/{id}`\n\n```ts\nconst { data } = await client.putDashboard(\n {\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n },\n {\n created_by: \'10598\',\n created_at: \'1970-01-01T00:00:00.000Z\',\n updated_by: \'10598\',\n updated_at: \'1970-01-01T00:00:00.000Z\',\n owner_org_id: \'739224\',\n owners: [\'10598\'],\n shared_with: [\n {\n user_id: \'10598\',\n permission: \'view\'\n }\n ],\n org_access: \'view\',\n id: \'3fa85f64-5717-4562-b3fc-2c963f66afa6\',\n title: \'Employee Dashboard\',\n tiles: [\n {\n id: \'e4af1297-1fd6-440f-9846-f475f580d40f\',\n coordinates: {},\n insight_id: \'8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e\'\n }\n ],\n favorited: false\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "created_by": "10598",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "10598",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "owner_org_id": "739224",\n "owners": ["10598"],\n "shared_with": [\n {\n "user_id": "10598",\n "permission": "view"\n }\n ],\n "org_access": "view",\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "title": "Employee Dashboard",\n "tiles": [\n {\n "id": "e4af1297-1fd6-440f-9846-f475f580d40f",\n "coordinates": {},\n "insight_id": "8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e"\n }\n ],\n "favorited": false\n}\n```\n\n</details>\n\n---\n\n### `patchDashboard`\n\nPartially update a dashboard by ID. Update content (title/tiles) and/or manage sharing\n(owners, shared_with, org_access) \u2014 only owners may change sharing.\n`owners` and `shared_with` replace the whole \n\n`PATCH /v1/dashboard/dashboards/{id}`\n\n```ts\nconst { data } = await client.patchDashboard(\n {\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n },\n {\n owners: [\'string\'],\n shared_with: [\n {\n user_id: \'10598\',\n permission: \'view\'\n }\n ],\n org_access: \'view\',\n title: \'Employee Dashboard\',\n tiles: [\n {\n id: \'e4af1297-1fd6-440f-9846-f475f580d40f\',\n coordinates: {},\n title: \'Number of opportunities created by journeys every month\',\n insight_id: \'8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e\',\n visualisation_id: \'timechart\',\n visualisation_config: {\n query: {\n dataset: \'entity_operations\',\n measure: \'count_operations\',\n dimensions: [\n {\n time_with_granularity: \'year-month\'\n }\n ],\n filters: [\n {\n entity_schema: \'opportunity\'\n }\n ]\n },\n options: {\n type: \'bar\'\n }\n }\n }\n ]\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "created_by": "10598",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "10598",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "owner_org_id": "739224",\n "owners": ["10598"],\n "shared_with": [\n {\n "user_id": "10598",\n "permission": "view"\n }\n ],\n "org_access": "view",\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "title": "Employee Dashboard",\n "tiles": [\n {\n "id": "e4af1297-1fd6-440f-9846-f475f580d40f",\n "coordinates": {},\n "insight_id": "8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e"\n }\n ],\n "favorited": false\n}\n```\n\n</details>\n\n---\n\n### `deleteDashboard`\n\nDelete a dashboard by ID\n\n`DELETE /v1/dashboard/dashboards/{id}`\n\n```ts\nconst { data } = await client.deleteDashboard({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "created_by": "10598",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "10598",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "owner_org_id": "739224",\n "owners": ["10598"],\n "shared_with": [\n {\n "user_id": "10598",\n "permission": "view"\n }\n ],\n "org_access": "view",\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "title": "Employee Dashboard",\n "tiles": [\n {\n "id": "e4af1297-1fd6-440f-9846-f475f580d40f",\n "coordinates": {},\n "insight_id": "8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e"\n }\n ],\n "favorited": false\n}\n```\n\n</details>\n\n---\n\n### `listInsights`\n\nList insights (saved charts) available to the user\n\n`GET /v1/dashboard/insights`\n\n```ts\nconst { data } = await client.listInsights({\n q: \'example\',\n visualisation_id: [\'...\'],\n tags: [\'...\'],\n tags_match: \'example\',\n created_by: \'example\',\n created_after: \'example\',\n created_before: \'example\',\n updated_after: \'example\',\n updated_before: \'example\',\n shared_with: [\'...\'],\n owner: [\'...\'],\n accessible_to: \'example\',\n sort: \'example\',\n order: \'example\',\n limit: 1,\n offset: 1,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "created_by": "10598",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "10598",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "owner_org_id": "739224",\n "owners": ["10598"],\n "shared_with": [\n {\n "user_id": "10598",\n "permission": "view"\n }\n ],\n "org_access": "view",\n "id": "8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e",\n "name": "Opportunities created by journeys every month",\n "description": "Monthly count of opportunities grouped by source journey",\n "visualisation_id": "timechart",\n "visualisation_config": {\n "query": {\n "dataset": "entity_operations",\n "measure": "count_operations",\n "dimensions": [\n {\n "time_with_granularity": "year-month"\n }\n ],\n "filters": [\n {\n "entity_schema": "opportunity"\n }\n ]\n },\n "options": {\n "type": "bar"\n }\n },\n "tags": ["revenue", "marketing"]\n }\n ],\n "pagination": {\n "total": 0,\n "limit": 0,\n "offset": 0,\n "has_more": true\n }\n}\n```\n\n</details>\n\n---\n\n### `createInsight`\n\nCreate a new insight (saved chart). The caller becomes the owner.\n\n`POST /v1/dashboard/insights`\n\n```ts\nconst { data } = await client.createInsight(\n null,\n {\n created_by: \'10598\',\n created_at: \'1970-01-01T00:00:00.000Z\',\n updated_by: \'10598\',\n updated_at: \'1970-01-01T00:00:00.000Z\',\n owner_org_id: \'739224\',\n owners: [\'10598\'],\n shared_with: [\n {\n user_id: \'10598\',\n permission: \'view\'\n }\n ],\n org_access: \'view\',\n id: \'8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e\',\n name: \'Opportunities created by journeys every month\',\n description: \'Monthly count of opportunities grouped by source journey\',\n visualisation_id: \'timechart\',\n visualisation_config: {\n query: {\n dataset: \'entity_operations\',\n measure: \'count_operations\',\n dimensions: [\n {\n time_with_granularity: \'year-month\'\n }\n ],\n filters: [\n {\n entity_schema: \'opportunity\'\n }\n ]\n },\n options: {\n type: \'bar\'\n }\n },\n tags: [\'revenue\', \'marketing\']\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "created_by": "10598",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "10598",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "owner_org_id": "739224",\n "owners": ["10598"],\n "shared_with": [\n {\n "user_id": "10598",\n "permission": "view"\n }\n ],\n "org_access": "view",\n "id": "8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e",\n "name": "Opportunities created by journeys every month",\n "description": "Monthly count of opportunities grouped by source journey",\n "visualisation_id": "timechart",\n "visualisation_config": {\n "query": {\n "dataset": "entity_operations",\n "measure": "count_operations",\n "dimensions": [\n {\n "time_with_granularity": "year-month"\n }\n ],\n "filters": [\n {\n "entity_schema": "opportunity"\n }\n ]\n },\n "options": {\n "type": "bar"\n }\n },\n "tags": ["revenue", "marketing"]\n}\n```\n\n</details>\n\n---\n\n### `listInsightTags`\n\nList the distinct tags used by insights in the organization (for filter facets)\n\n`GET /v1/dashboard/insights/tags`\n\n```ts\nconst { data } = await client.listInsightTags()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": ["string"]\n}\n```\n\n</details>\n\n---\n\n### `getInsight`\n\nGet insight by ID\n\n`GET /v1/dashboard/insights/{id}`\n\n```ts\nconst { data } = await client.getInsight({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "created_by": "10598",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "10598",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "owner_org_id": "739224",\n "owners": ["10598"],\n "shared_with": [\n {\n "user_id": "10598",\n "permission": "view"\n }\n ],\n "org_access": "view",\n "id": "8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e",\n "name": "Opportunities created by journeys every month",\n "description": "Monthly count of opportunities grouped by source journey",\n "visualisation_id": "timechart",\n "visualisation_config": {\n "query": {\n "dataset": "entity_operations",\n "measure": "count_operations",\n "dimensions": [\n {\n "time_with_granularity": "year-month"\n }\n ],\n "filters": [\n {\n "entity_schema": "opportunity"\n }\n ]\n },\n "options": {\n "type": "bar"\n }\n },\n "tags": ["revenue", "marketing"]\n}\n```\n\n</details>\n\n---\n\n### `putInsight`\n\nReplace an insight\'s content by ID. Sharing is managed via patchInsight.\n\n`PUT /v1/dashboard/insights/{id}`\n\n```ts\nconst { data } = await client.putInsight(\n {\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n },\n {\n created_by: \'10598\',\n created_at: \'1970-01-01T00:00:00.000Z\',\n updated_by: \'10598\',\n updated_at: \'1970-01-01T00:00:00.000Z\',\n owner_org_id: \'739224\',\n owners: [\'10598\'],\n shared_with: [\n {\n user_id: \'10598\',\n permission: \'view\'\n }\n ],\n org_access: \'view\',\n id: \'8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e\',\n name: \'Opportunities created by journeys every month\',\n description: \'Monthly count of opportunities grouped by source journey\',\n visualisation_id: \'timechart\',\n visualisation_config: {\n query: {\n dataset: \'entity_operations\',\n measure: \'count_operations\',\n dimensions: [\n {\n time_with_granularity: \'year-month\'\n }\n ],\n filters: [\n {\n entity_schema: \'opportunity\'\n }\n ]\n },\n options: {\n type: \'bar\'\n }\n },\n tags: [\'revenue\', \'marketing\']\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "created_by": "10598",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "10598",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "owner_org_id": "739224",\n "owners": ["10598"],\n "shared_with": [\n {\n "user_id": "10598",\n "permission": "view"\n }\n ],\n "org_access": "view",\n "id": "8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e",\n "name": "Opportunities created by journeys every month",\n "description": "Monthly count of opportunities grouped by source journey",\n "visualisation_id": "timechart",\n "visualisation_config": {\n "query": {\n "dataset": "entity_operations",\n "measure": "count_operations",\n "dimensions": [\n {\n "time_with_granularity": "year-month"\n }\n ],\n "filters": [\n {\n "entity_schema": "opportunity"\n }\n ]\n },\n "options": {\n "type": "bar"\n }\n },\n "tags": ["revenue", "marketing"]\n}\n```\n\n</details>\n\n---\n\n### `patchInsight`\n\nPartially update an insight by ID. Update content (name/description/visualisation/tags) and/or\nmanage sharing (owners, shared_with, org_access) \u2014 only owners may change sharing.\n`owners` and `shared_w\n\n`PATCH /v1/dashboard/insights/{id}`\n\n```ts\nconst { data } = await client.patchInsight(\n {\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n },\n {\n owners: [\'string\'],\n shared_with: [\n {\n user_id: \'10598\',\n permission: \'view\'\n }\n ],\n org_access: \'view\',\n name: \'string\',\n description: \'string\',\n visualisation_id: \'timechart\',\n visualisation_config: {\n query: {\n dataset: \'entity_operations\',\n measure: \'count_operations\',\n dimensions: [\n {\n time_with_granularity: \'year-month\'\n }\n ],\n filters: [\n {\n entity_schema: \'opportunity\'\n }\n ]\n },\n options: {\n type: \'bar\'\n }\n },\n tags: [\'revenue\', \'marketing\']\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "created_by": "10598",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "10598",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "owner_org_id": "739224",\n "owners": ["10598"],\n "shared_with": [\n {\n "user_id": "10598",\n "permission": "view"\n }\n ],\n "org_access": "view",\n "id": "8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e",\n "name": "Opportunities created by journeys every month",\n "description": "Monthly count of opportunities grouped by source journey",\n "visualisation_id": "timechart",\n "visualisation_config": {\n "query": {\n "dataset": "entity_operations",\n "measure": "count_operations",\n "dimensions": [\n {\n "time_with_granularity": "year-month"\n }\n ],\n "filters": [\n {\n "entity_schema": "opportunity"\n }\n ]\n },\n "options": {\n "type": "bar"\n }\n },\n "tags": ["revenue", "marketing"]\n}\n```\n\n</details>\n\n---\n\n### `deleteInsight`\n\nDelete an insight by ID. Only owners may delete.\n\n`DELETE /v1/dashboard/insights/{id}`\n\n```ts\nconst { data } = await client.deleteInsight({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "created_by": "10598",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "10598",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "owner_org_id": "739224",\n "owners": ["10598"],\n "shared_with": [\n {\n "user_id": "10598",\n "permission": "view"\n }\n ],\n "org_access": "view",\n "id": "8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e",\n "name": "Opportunities created by journeys every month",\n "description": "Monthly count of opportunities grouped by source journey",\n "visualisation_id": "timechart",\n "visualisation_config": {\n "query": {\n "dataset": "entity_operations",\n "measure": "count_operations",\n "dimensions": [\n {\n "time_with_granularity": "year-month"\n }\n ],\n "filters": [\n {\n "entity_schema": "opportunity"\n }\n ]\n },\n "options": {\n "type": "bar"\n }\n },\n "tags": ["revenue", "marketing"]\n}\n```\n\n</details>\n\n---\n\n### `listAvailableVisualisations`\n\nReturns list of available Visualisations to configure new dashboard tiles\n\n`GET /v1/dashboard/visualisations`\n\n```ts\nconst { data } = await client.listAvailableVisualisations()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "visualisation": "timechart",\n "title": "Time Series Visualisation",\n "description": "Visualise your metrics with respect to time series",\n "package_name": "@epilot360/highcharts"\n },\n {\n "visualisation": "kpi",\n "title": "KPI Visualisation",\n "description": "Visualise your key performance indicators",\n "package_name": "@epilot360/kpi"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `listAvailableExamples`\n\nReturns list of available exampless for visualisations to configure new dashboard tiles\n\n`GET /v1/dashboard/examples`\n\n```ts\nconst { data } = await client.listAvailableExamples()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "id": "e4af1297-1fd6-440f-9846-f475f580d40f",\n "title": "Number of opportunities created by journeys every month",\n "visualisation": "timechart",\n "query": {\n "dataset": "entity_operations",\n "measure": "count_operations",\n "dimensions": [\n {\n "time_with_granularity": "year-month"\n }\n ],\n "filters": [\n {\n "entity_schema": "opportunity"\n }\n ]\n }\n }\n ]\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `DashboardID`\n\nUnique identifier for dashboard\n\n```ts\ntype DashboardID = string // uuid\n```\n\n### `Dashboard`\n\nA dashboard configuration. A dashboard is a canvas whose tiles arrange and\nposition insights (saved charts). Tiles may reference an insight by `insight_id`\nor, for backwards compatibility, embed a visualisation inline.\n\n\n```ts\ntype Dashboard = {\n created_by?: string\n created_at?: string // date-time\n updated_by?: string\n updated_at?: string // date-time\n owner_org_id?: string\n owners?: string[]\n shared_with?: Array<{\n user_id: string\n permission: "view" | "edit"\n }>\n org_access?: "view" | "edit" | null\n id?: string // uuid\n title: string\n tiles: Array<{\n id?: string // uuid\n coordinates?: object\n title?: string\n insight_id?: string // uuid\n visualisation_id?: "kpi" | "funnel" | "toplist" | "timechart" | "pie" | "bar" | "entity_list" | "markdown" | "news_feed" | "workflow"\n visualisation_config?: {\n query?: { ... }\n options?: { ... }\n }\n }>\n favorited?: boolean\n}\n```\n\n### `DashboardTileID`\n\nUnique identifier for a tile in a dashboard\n\n```ts\ntype DashboardTileID = string // uuid\n```\n\n### `SharePermission`\n\nPermission level granted to a user (or the whole organization) on a shared resource.\n`view` allows read-only access; `edit` additionally allows updating the content.\nFull control (delete and managing sharing) is reserved for owners.\n\n\n```ts\ntype SharePermission = "view" | "edit"\n```\n\n### `ShareGrant`\n\nGrants a single user a permission level on a resource\n\n```ts\ntype ShareGrant = {\n user_id: string\n permission: "view" | "edit"\n}\n```\n\n### `OrgAccess`\n\nOptional organization-wide grant. When set, every user in the resource\'s organization\nis granted this permission level. `null` (or omitted) means the resource is not shared\norg-wide.\n\n\n```ts\ntype OrgAccess = "view" | "edit" | null\n```\n\n### `AccessControl`\n\nOwnership and sharing metadata common to dashboards and insights. `created_*`/`updated_*`\nfields are managed by the server. `owners`, `shared_with` and `org_access` describe who\nmay access the resource. New resources are private to their creator until shared.\n\n\n```ts\ntype AccessControl = {\n created_by?: string\n created_at?: string // date-time\n updated_by?: string\n updated_at?: string // date-time\n owner_org_id?: string\n owners?: string[]\n shared_with?: Array<{\n user_id: string\n permission: "view" | "edit"\n }>\n org_access?: "view" | "edit" | null\n}\n```\n\n### `AccessControlUpdate`\n\nSharing fields that can be mutated via PATCH (owners only). `owners` and `shared_with` are\nfull replacements of their arrays, not merges \u2014 omit a field to leave it unchanged.\n\n\n```ts\ntype AccessControlUpdate = {\n owners?: string[]\n shared_with?: Array<{\n user_id: string\n permission: "view" | "edit"\n }>\n org_access?: "view" | "edit" | null\n}\n```\n\n### `DashboardPatch`\n\nFields that can be partially updated on a dashboard\n\n```ts\ntype DashboardPatch = {\n owners?: string[]\n shared_with?: Array<{\n user_id: string\n permission: "view" | "edit"\n }>\n org_access?: "view" | "edit" | null\n title?: string\n tiles?: Array<{\n id?: string // uuid\n coordinates?: object\n title?: string\n insight_id?: string // uuid\n visualisation_id?: "kpi" | "funnel" | "toplist" | "timechart" | "pie" | "bar" | "entity_list" | "markdown" | "news_feed" | "workflow"\n visualisation_config?: {\n query?: { ... }\n options?: { ... }\n }\n }>\n}\n```\n\n### `InsightID`\n\nUnique identifier for an insight (a saved chart / visualisation)\n\n```ts\ntype InsightID = string // uuid\n```\n\n### `Insight`\n\nAn insight is a saved, reusable chart definition (a visualisation plus its query/options).\nInsights exist independently of dashboards: they can be created, shared and edited on their\nown, and referenced by one or more dashboard tiles via `insight_id`.\n\n\n```ts\ntype Insight = {\n created_by?: string\n created_at?: string // date-time\n updated_by?: string\n updated_at?: string // date-time\n owner_org_id?: string\n owners?: string[]\n shared_with?: Array<{\n user_id: string\n permission: "view" | "edit"\n }>\n org_access?: "view" | "edit" | null\n id?: string // uuid\n name: string\n description?: string\n visualisation_id: "kpi" | "funnel" | "toplist" | "timechart" | "pie" | "bar" | "entity_list" | "markdown" | "news_feed" | "workflow"\n visualisation_config?: {\n query?: {\n dataset?: { ... }\n measure?: { ... }\n dimensions?: { ... }\n filters?: { ... }\n }\n options?: Record<string, unknown>\n }\n tags?: string[]\n}\n```\n\n### `InsightPatch`\n\nFields that can be partially updated on an insight\n\n```ts\ntype InsightPatch = {\n owners?: string[]\n shared_with?: Array<{\n user_id: string\n permission: "view" | "edit"\n }>\n org_access?: "view" | "edit" | null\n name?: string\n description?: string\n visualisation_id?: "kpi" | "funnel" | "toplist" | "timechart" | "pie" | "bar" | "entity_list" | "markdown" | "news_feed" | "workflow"\n visualisation_config?: {\n query?: {\n dataset?: { ... }\n measure?: { ... }\n dimensions?: { ... }\n filters?: { ... }\n }\n options?: Record<string, unknown>\n }\n tags?: string[]\n}\n```\n\n### `Tags`\n\nFree-form labels for grouping and filtering insights\n\n```ts\ntype Tags = string[]\n```\n\n### `Pagination`\n\nOffset-based pagination metadata for list responses\n\n```ts\ntype Pagination = {\n total: number\n limit: number\n offset: number\n has_more: boolean\n}\n```\n\n### `DashboardTile`\n\nA positioned tile on a dashboard canvas. A tile references a saved insight via\n`insight_id`. Inline `visualisation_id`/`visualisation_config` remain supported for\nbackwards compatibility (ad-hoc tiles that are not backed by a shared insight).\n\n\n```ts\ntype DashboardTile = {\n id?: string // uuid\n coordinates?: object\n title?: string\n insight_id?: string // uuid\n visualisation_id?: "kpi" | "funnel" | "toplist" | "timechart" | "pie" | "bar" | "entity_list" | "markdown" | "news_feed" | "workflow"\n visualisation_config?: {\n query?: {\n dataset?: { ... }\n measure?: { ... }\n dimensions?: { ... }\n filters?: { ... }\n }\n options?: Record<string, unknown>\n }\n}\n```\n\n### `VisualisationConfig`\n\n```ts\ntype VisualisationConfig = {\n query?: {\n dataset?: string\n measure?: string\n dimensions?: Record<string, unknown>[]\n filters?: Record<string, unknown>[]\n }\n options?: Record<string, unknown>\n}\n```\n\n### `timechartVisualisationConfig`\n\n```ts\ntype timechartVisualisationConfig = {\n query?: {\n dataset?: string\n measure?: string\n dimensions?: Record<string, unknown>[]\n filters?: Record<string, unknown>[]\n }\n options?: Record<string, unknown>\n}\n```\n\n### `ExampleID`\n\nUnique identifier for a visualisation examples for tiles in a dashboard\n\n```ts\ntype ExampleID = string // uuid\n```\n\n### `Example`\n\n```ts\ntype Example = {\n id?: string // uuid\n title?: string\n visualisation?: "kpi" | "funnel" | "toplist" | "timechart" | "pie" | "bar" | "entity_list" | "markdown" | "news_feed" | "workflow"\n query?: {\n dataset?: string\n measure?: string\n dimensions?: Record<string, unknown>[]\n filters?: Record<string, unknown>[]\n }\n}\n```\n\n### `DatalakeQuery`\n\n```ts\ntype DatalakeQuery = {\n dataset?: string\n measure?: string\n dimensions?: Record<string, unknown>[]\n filters?: Record<string, unknown>[]\n}\n```\n\n### `VisualisationId`\n\nUnique identifier for a Visualisation\n\n```ts\ntype VisualisationId = "kpi" | "funnel" | "toplist" | "timechart" | "pie" | "bar" | "entity_list" | "markdown" | "news_feed" | "workflow"\n```\n\n### `Visualisation`\n\nA Visualisation that can be used to configure tiles in dashboards\n\n```ts\ntype Visualisation = {\n visualisation?: "kpi" | "funnel" | "toplist" | "timechart" | "pie" | "bar" | "entity_list" | "markdown" | "news_feed" | "workflow"\n title?: string\n description?: string\n package_name?: string\n import_url?: string // uri\n}\n```\n';
5
+
6
+
7
+ exports.default = dashboard_default;
@@ -0,0 +1,7 @@
1
+ import "./chunk-YPSWSI3M.js";
2
+
3
+ // src/docs/dashboard.json
4
+ var dashboard_default = '# Dashboard API\n\n- **Base URL:** `https://dashboard.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/dashboard](https://docs.epilot.io/api/dashboard)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.dashboard.listDashboards(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/dashboard\'\n\nconst dashboardClient = getClient()\nauthorize(dashboardClient, () => \'<token>\')\nconst { data } = await dashboardClient.listDashboards(...)\n```\n\n## Operations\n\n**Dashboards**\n- [`listDashboards`](#listdashboards)\n- [`createDashboard`](#createdashboard)\n- [`listFavoriteDashboardIds`](#listfavoritedashboardids)\n- [`favoriteDashboard`](#favoritedashboard)\n- [`unfavoriteDashboard`](#unfavoritedashboard)\n- [`getDashboard`](#getdashboard)\n- [`putDashboard`](#putdashboard)\n- [`patchDashboard`](#patchdashboard)\n- [`deleteDashboard`](#deletedashboard)\n\n**Insights**\n- [`listInsights`](#listinsights)\n- [`createInsight`](#createinsight)\n- [`listInsightTags`](#listinsighttags)\n- [`getInsight`](#getinsight)\n- [`putInsight`](#putinsight)\n- [`patchInsight`](#patchinsight)\n- [`deleteInsight`](#deleteinsight)\n\n**Visualisations**\n- [`listAvailableVisualisations`](#listavailablevisualisations)\n\n**Examples**\n- [`listAvailableExamples`](#listavailableexamples)\n\n**Schemas**\n- [`DashboardID`](#dashboardid)\n- [`Dashboard`](#dashboard)\n- [`DashboardTileID`](#dashboardtileid)\n- [`SharePermission`](#sharepermission)\n- [`ShareGrant`](#sharegrant)\n- [`OrgAccess`](#orgaccess)\n- [`AccessControl`](#accesscontrol)\n- [`AccessControlUpdate`](#accesscontrolupdate)\n- [`DashboardPatch`](#dashboardpatch)\n- [`InsightID`](#insightid)\n- [`Insight`](#insight)\n- [`InsightPatch`](#insightpatch)\n- [`Tags`](#tags)\n- [`Pagination`](#pagination)\n- [`DashboardTile`](#dashboardtile)\n- [`VisualisationConfig`](#visualisationconfig)\n- [`timechartVisualisationConfig`](#timechartvisualisationconfig)\n- [`ExampleID`](#exampleid)\n- [`Example`](#example)\n- [`DatalakeQuery`](#datalakequery)\n- [`VisualisationId`](#visualisationid)\n- [`Visualisation`](#visualisation)\n\n### `listDashboards`\n\nList dashboards available to the user\n\n`GET /v1/dashboard/dashboards`\n\n```ts\nconst { data } = await client.listDashboards({\n q: \'example\',\n created_by: \'example\',\n created_after: \'example\',\n created_before: \'example\',\n updated_after: \'example\',\n updated_before: \'example\',\n shared_with: [\'...\'],\n owner: [\'...\'],\n accessible_to: \'example\',\n favorite: true,\n favorites_first: true,\n sort: \'example\',\n order: \'example\',\n limit: 1,\n offset: 1,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "created_by": "10598",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "10598",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "owner_org_id": "739224",\n "owners": ["10598"],\n "shared_with": [\n {\n "user_id": "10598",\n "permission": "view"\n }\n ],\n "org_access": "view",\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "title": "Employee Dashboard",\n "tiles": [\n {\n "id": "e4af1297-1fd6-440f-9846-f475f580d40f",\n "coordinates": {},\n "insight_id": "8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e"\n }\n ],\n "favorited": false\n }\n ],\n "pagination": {\n "total": 0,\n "limit": 0,\n "offset": 0,\n "has_more": true\n }\n}\n```\n\n</details>\n\n---\n\n### `createDashboard`\n\nCreate new dashboard\n\n`POST /v1/dashboard/dashboards`\n\n```ts\nconst { data } = await client.createDashboard(\n null,\n {\n created_by: \'10598\',\n created_at: \'1970-01-01T00:00:00.000Z\',\n updated_by: \'10598\',\n updated_at: \'1970-01-01T00:00:00.000Z\',\n owner_org_id: \'739224\',\n owners: [\'10598\'],\n shared_with: [\n {\n user_id: \'10598\',\n permission: \'view\'\n }\n ],\n org_access: \'view\',\n id: \'3fa85f64-5717-4562-b3fc-2c963f66afa6\',\n title: \'Employee Dashboard\',\n tiles: [\n {\n id: \'e4af1297-1fd6-440f-9846-f475f580d40f\',\n coordinates: {},\n insight_id: \'8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e\'\n }\n ],\n favorited: false\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "created_by": "10598",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "10598",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "owner_org_id": "739224",\n "owners": ["10598"],\n "shared_with": [\n {\n "user_id": "10598",\n "permission": "view"\n }\n ],\n "org_access": "view",\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "title": "Employee Dashboard",\n "tiles": [\n {\n "id": "e4af1297-1fd6-440f-9846-f475f580d40f",\n "coordinates": {},\n "insight_id": "8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e"\n }\n ],\n "favorited": false\n}\n```\n\n</details>\n\n---\n\n### `listFavoriteDashboardIds`\n\nReturns the current user\'s favorited dashboard ids, with no dashboard metadata. Lets a\nclient decide whether to default to a favorites-only view without first fetching the full\ndashboards list.\n\n`GET /v1/dashboard/dashboards/favorites`\n\n```ts\nconst { data } = await client.listFavoriteDashboardIds()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "dashboard_ids": ["3fa85f64-5717-4562-b3fc-2c963f66afa6"],\n "total": 0\n}\n```\n\n</details>\n\n---\n\n### `favoriteDashboard`\n\nMarks the dashboard as favorited by the current user. Idempotent \u2014 favoriting an\nalready-favorited dashboard is not an error. Requires only view-level access to the\ndashboard (unlike the edit-level ch\n\n`PUT /v1/dashboard/dashboards/{id}/favorite`\n\n```ts\nconst { data } = await client.favoriteDashboard({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n---\n\n### `unfavoriteDashboard`\n\nRemoves the current user\'s favorite for the dashboard. Idempotent \u2014 unfavoriting a\ndashboard that was not favorited is not an error, and neither is unfavoriting one that no\nlonger exists or is no long\n\n`DELETE /v1/dashboard/dashboards/{id}/favorite`\n\n```ts\nconst { data } = await client.unfavoriteDashboard({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n---\n\n### `getDashboard`\n\nGet dashboard by ID\n\n`GET /v1/dashboard/dashboards/{id}`\n\n```ts\nconst { data } = await client.getDashboard({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "created_by": "10598",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "10598",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "owner_org_id": "739224",\n "owners": ["10598"],\n "shared_with": [\n {\n "user_id": "10598",\n "permission": "view"\n }\n ],\n "org_access": "view",\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "title": "Employee Dashboard",\n "tiles": [\n {\n "id": "e4af1297-1fd6-440f-9846-f475f580d40f",\n "coordinates": {},\n "insight_id": "8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e"\n }\n ],\n "favorited": false\n}\n```\n\n</details>\n\n---\n\n### `putDashboard`\n\nUpdate a dashboard by ID\n\n`PUT /v1/dashboard/dashboards/{id}`\n\n```ts\nconst { data } = await client.putDashboard(\n {\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n },\n {\n created_by: \'10598\',\n created_at: \'1970-01-01T00:00:00.000Z\',\n updated_by: \'10598\',\n updated_at: \'1970-01-01T00:00:00.000Z\',\n owner_org_id: \'739224\',\n owners: [\'10598\'],\n shared_with: [\n {\n user_id: \'10598\',\n permission: \'view\'\n }\n ],\n org_access: \'view\',\n id: \'3fa85f64-5717-4562-b3fc-2c963f66afa6\',\n title: \'Employee Dashboard\',\n tiles: [\n {\n id: \'e4af1297-1fd6-440f-9846-f475f580d40f\',\n coordinates: {},\n insight_id: \'8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e\'\n }\n ],\n favorited: false\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "created_by": "10598",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "10598",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "owner_org_id": "739224",\n "owners": ["10598"],\n "shared_with": [\n {\n "user_id": "10598",\n "permission": "view"\n }\n ],\n "org_access": "view",\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "title": "Employee Dashboard",\n "tiles": [\n {\n "id": "e4af1297-1fd6-440f-9846-f475f580d40f",\n "coordinates": {},\n "insight_id": "8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e"\n }\n ],\n "favorited": false\n}\n```\n\n</details>\n\n---\n\n### `patchDashboard`\n\nPartially update a dashboard by ID. Update content (title/tiles) and/or manage sharing\n(owners, shared_with, org_access) \u2014 only owners may change sharing.\n`owners` and `shared_with` replace the whole \n\n`PATCH /v1/dashboard/dashboards/{id}`\n\n```ts\nconst { data } = await client.patchDashboard(\n {\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n },\n {\n owners: [\'string\'],\n shared_with: [\n {\n user_id: \'10598\',\n permission: \'view\'\n }\n ],\n org_access: \'view\',\n title: \'Employee Dashboard\',\n tiles: [\n {\n id: \'e4af1297-1fd6-440f-9846-f475f580d40f\',\n coordinates: {},\n title: \'Number of opportunities created by journeys every month\',\n insight_id: \'8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e\',\n visualisation_id: \'timechart\',\n visualisation_config: {\n query: {\n dataset: \'entity_operations\',\n measure: \'count_operations\',\n dimensions: [\n {\n time_with_granularity: \'year-month\'\n }\n ],\n filters: [\n {\n entity_schema: \'opportunity\'\n }\n ]\n },\n options: {\n type: \'bar\'\n }\n }\n }\n ]\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "created_by": "10598",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "10598",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "owner_org_id": "739224",\n "owners": ["10598"],\n "shared_with": [\n {\n "user_id": "10598",\n "permission": "view"\n }\n ],\n "org_access": "view",\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "title": "Employee Dashboard",\n "tiles": [\n {\n "id": "e4af1297-1fd6-440f-9846-f475f580d40f",\n "coordinates": {},\n "insight_id": "8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e"\n }\n ],\n "favorited": false\n}\n```\n\n</details>\n\n---\n\n### `deleteDashboard`\n\nDelete a dashboard by ID\n\n`DELETE /v1/dashboard/dashboards/{id}`\n\n```ts\nconst { data } = await client.deleteDashboard({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "created_by": "10598",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "10598",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "owner_org_id": "739224",\n "owners": ["10598"],\n "shared_with": [\n {\n "user_id": "10598",\n "permission": "view"\n }\n ],\n "org_access": "view",\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "title": "Employee Dashboard",\n "tiles": [\n {\n "id": "e4af1297-1fd6-440f-9846-f475f580d40f",\n "coordinates": {},\n "insight_id": "8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e"\n }\n ],\n "favorited": false\n}\n```\n\n</details>\n\n---\n\n### `listInsights`\n\nList insights (saved charts) available to the user\n\n`GET /v1/dashboard/insights`\n\n```ts\nconst { data } = await client.listInsights({\n q: \'example\',\n visualisation_id: [\'...\'],\n tags: [\'...\'],\n tags_match: \'example\',\n created_by: \'example\',\n created_after: \'example\',\n created_before: \'example\',\n updated_after: \'example\',\n updated_before: \'example\',\n shared_with: [\'...\'],\n owner: [\'...\'],\n accessible_to: \'example\',\n sort: \'example\',\n order: \'example\',\n limit: 1,\n offset: 1,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "created_by": "10598",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "10598",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "owner_org_id": "739224",\n "owners": ["10598"],\n "shared_with": [\n {\n "user_id": "10598",\n "permission": "view"\n }\n ],\n "org_access": "view",\n "id": "8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e",\n "name": "Opportunities created by journeys every month",\n "description": "Monthly count of opportunities grouped by source journey",\n "visualisation_id": "timechart",\n "visualisation_config": {\n "query": {\n "dataset": "entity_operations",\n "measure": "count_operations",\n "dimensions": [\n {\n "time_with_granularity": "year-month"\n }\n ],\n "filters": [\n {\n "entity_schema": "opportunity"\n }\n ]\n },\n "options": {\n "type": "bar"\n }\n },\n "tags": ["revenue", "marketing"]\n }\n ],\n "pagination": {\n "total": 0,\n "limit": 0,\n "offset": 0,\n "has_more": true\n }\n}\n```\n\n</details>\n\n---\n\n### `createInsight`\n\nCreate a new insight (saved chart). The caller becomes the owner.\n\n`POST /v1/dashboard/insights`\n\n```ts\nconst { data } = await client.createInsight(\n null,\n {\n created_by: \'10598\',\n created_at: \'1970-01-01T00:00:00.000Z\',\n updated_by: \'10598\',\n updated_at: \'1970-01-01T00:00:00.000Z\',\n owner_org_id: \'739224\',\n owners: [\'10598\'],\n shared_with: [\n {\n user_id: \'10598\',\n permission: \'view\'\n }\n ],\n org_access: \'view\',\n id: \'8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e\',\n name: \'Opportunities created by journeys every month\',\n description: \'Monthly count of opportunities grouped by source journey\',\n visualisation_id: \'timechart\',\n visualisation_config: {\n query: {\n dataset: \'entity_operations\',\n measure: \'count_operations\',\n dimensions: [\n {\n time_with_granularity: \'year-month\'\n }\n ],\n filters: [\n {\n entity_schema: \'opportunity\'\n }\n ]\n },\n options: {\n type: \'bar\'\n }\n },\n tags: [\'revenue\', \'marketing\']\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "created_by": "10598",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "10598",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "owner_org_id": "739224",\n "owners": ["10598"],\n "shared_with": [\n {\n "user_id": "10598",\n "permission": "view"\n }\n ],\n "org_access": "view",\n "id": "8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e",\n "name": "Opportunities created by journeys every month",\n "description": "Monthly count of opportunities grouped by source journey",\n "visualisation_id": "timechart",\n "visualisation_config": {\n "query": {\n "dataset": "entity_operations",\n "measure": "count_operations",\n "dimensions": [\n {\n "time_with_granularity": "year-month"\n }\n ],\n "filters": [\n {\n "entity_schema": "opportunity"\n }\n ]\n },\n "options": {\n "type": "bar"\n }\n },\n "tags": ["revenue", "marketing"]\n}\n```\n\n</details>\n\n---\n\n### `listInsightTags`\n\nList the distinct tags used by insights in the organization (for filter facets)\n\n`GET /v1/dashboard/insights/tags`\n\n```ts\nconst { data } = await client.listInsightTags()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": ["string"]\n}\n```\n\n</details>\n\n---\n\n### `getInsight`\n\nGet insight by ID\n\n`GET /v1/dashboard/insights/{id}`\n\n```ts\nconst { data } = await client.getInsight({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "created_by": "10598",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "10598",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "owner_org_id": "739224",\n "owners": ["10598"],\n "shared_with": [\n {\n "user_id": "10598",\n "permission": "view"\n }\n ],\n "org_access": "view",\n "id": "8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e",\n "name": "Opportunities created by journeys every month",\n "description": "Monthly count of opportunities grouped by source journey",\n "visualisation_id": "timechart",\n "visualisation_config": {\n "query": {\n "dataset": "entity_operations",\n "measure": "count_operations",\n "dimensions": [\n {\n "time_with_granularity": "year-month"\n }\n ],\n "filters": [\n {\n "entity_schema": "opportunity"\n }\n ]\n },\n "options": {\n "type": "bar"\n }\n },\n "tags": ["revenue", "marketing"]\n}\n```\n\n</details>\n\n---\n\n### `putInsight`\n\nReplace an insight\'s content by ID. Sharing is managed via patchInsight.\n\n`PUT /v1/dashboard/insights/{id}`\n\n```ts\nconst { data } = await client.putInsight(\n {\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n },\n {\n created_by: \'10598\',\n created_at: \'1970-01-01T00:00:00.000Z\',\n updated_by: \'10598\',\n updated_at: \'1970-01-01T00:00:00.000Z\',\n owner_org_id: \'739224\',\n owners: [\'10598\'],\n shared_with: [\n {\n user_id: \'10598\',\n permission: \'view\'\n }\n ],\n org_access: \'view\',\n id: \'8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e\',\n name: \'Opportunities created by journeys every month\',\n description: \'Monthly count of opportunities grouped by source journey\',\n visualisation_id: \'timechart\',\n visualisation_config: {\n query: {\n dataset: \'entity_operations\',\n measure: \'count_operations\',\n dimensions: [\n {\n time_with_granularity: \'year-month\'\n }\n ],\n filters: [\n {\n entity_schema: \'opportunity\'\n }\n ]\n },\n options: {\n type: \'bar\'\n }\n },\n tags: [\'revenue\', \'marketing\']\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "created_by": "10598",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "10598",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "owner_org_id": "739224",\n "owners": ["10598"],\n "shared_with": [\n {\n "user_id": "10598",\n "permission": "view"\n }\n ],\n "org_access": "view",\n "id": "8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e",\n "name": "Opportunities created by journeys every month",\n "description": "Monthly count of opportunities grouped by source journey",\n "visualisation_id": "timechart",\n "visualisation_config": {\n "query": {\n "dataset": "entity_operations",\n "measure": "count_operations",\n "dimensions": [\n {\n "time_with_granularity": "year-month"\n }\n ],\n "filters": [\n {\n "entity_schema": "opportunity"\n }\n ]\n },\n "options": {\n "type": "bar"\n }\n },\n "tags": ["revenue", "marketing"]\n}\n```\n\n</details>\n\n---\n\n### `patchInsight`\n\nPartially update an insight by ID. Update content (name/description/visualisation/tags) and/or\nmanage sharing (owners, shared_with, org_access) \u2014 only owners may change sharing.\n`owners` and `shared_w\n\n`PATCH /v1/dashboard/insights/{id}`\n\n```ts\nconst { data } = await client.patchInsight(\n {\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n },\n {\n owners: [\'string\'],\n shared_with: [\n {\n user_id: \'10598\',\n permission: \'view\'\n }\n ],\n org_access: \'view\',\n name: \'string\',\n description: \'string\',\n visualisation_id: \'timechart\',\n visualisation_config: {\n query: {\n dataset: \'entity_operations\',\n measure: \'count_operations\',\n dimensions: [\n {\n time_with_granularity: \'year-month\'\n }\n ],\n filters: [\n {\n entity_schema: \'opportunity\'\n }\n ]\n },\n options: {\n type: \'bar\'\n }\n },\n tags: [\'revenue\', \'marketing\']\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "created_by": "10598",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "10598",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "owner_org_id": "739224",\n "owners": ["10598"],\n "shared_with": [\n {\n "user_id": "10598",\n "permission": "view"\n }\n ],\n "org_access": "view",\n "id": "8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e",\n "name": "Opportunities created by journeys every month",\n "description": "Monthly count of opportunities grouped by source journey",\n "visualisation_id": "timechart",\n "visualisation_config": {\n "query": {\n "dataset": "entity_operations",\n "measure": "count_operations",\n "dimensions": [\n {\n "time_with_granularity": "year-month"\n }\n ],\n "filters": [\n {\n "entity_schema": "opportunity"\n }\n ]\n },\n "options": {\n "type": "bar"\n }\n },\n "tags": ["revenue", "marketing"]\n}\n```\n\n</details>\n\n---\n\n### `deleteInsight`\n\nDelete an insight by ID. Only owners may delete.\n\n`DELETE /v1/dashboard/insights/{id}`\n\n```ts\nconst { data } = await client.deleteInsight({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "created_by": "10598",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "10598",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "owner_org_id": "739224",\n "owners": ["10598"],\n "shared_with": [\n {\n "user_id": "10598",\n "permission": "view"\n }\n ],\n "org_access": "view",\n "id": "8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e",\n "name": "Opportunities created by journeys every month",\n "description": "Monthly count of opportunities grouped by source journey",\n "visualisation_id": "timechart",\n "visualisation_config": {\n "query": {\n "dataset": "entity_operations",\n "measure": "count_operations",\n "dimensions": [\n {\n "time_with_granularity": "year-month"\n }\n ],\n "filters": [\n {\n "entity_schema": "opportunity"\n }\n ]\n },\n "options": {\n "type": "bar"\n }\n },\n "tags": ["revenue", "marketing"]\n}\n```\n\n</details>\n\n---\n\n### `listAvailableVisualisations`\n\nReturns list of available Visualisations to configure new dashboard tiles\n\n`GET /v1/dashboard/visualisations`\n\n```ts\nconst { data } = await client.listAvailableVisualisations()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "visualisation": "timechart",\n "title": "Time Series Visualisation",\n "description": "Visualise your metrics with respect to time series",\n "package_name": "@epilot360/highcharts"\n },\n {\n "visualisation": "kpi",\n "title": "KPI Visualisation",\n "description": "Visualise your key performance indicators",\n "package_name": "@epilot360/kpi"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `listAvailableExamples`\n\nReturns list of available exampless for visualisations to configure new dashboard tiles\n\n`GET /v1/dashboard/examples`\n\n```ts\nconst { data } = await client.listAvailableExamples()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "id": "e4af1297-1fd6-440f-9846-f475f580d40f",\n "title": "Number of opportunities created by journeys every month",\n "visualisation": "timechart",\n "query": {\n "dataset": "entity_operations",\n "measure": "count_operations",\n "dimensions": [\n {\n "time_with_granularity": "year-month"\n }\n ],\n "filters": [\n {\n "entity_schema": "opportunity"\n }\n ]\n }\n }\n ]\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `DashboardID`\n\nUnique identifier for dashboard\n\n```ts\ntype DashboardID = string // uuid\n```\n\n### `Dashboard`\n\nA dashboard configuration. A dashboard is a canvas whose tiles arrange and\nposition insights (saved charts). Tiles may reference an insight by `insight_id`\nor, for backwards compatibility, embed a visualisation inline.\n\n\n```ts\ntype Dashboard = {\n created_by?: string\n created_at?: string // date-time\n updated_by?: string\n updated_at?: string // date-time\n owner_org_id?: string\n owners?: string[]\n shared_with?: Array<{\n user_id: string\n permission: "view" | "edit"\n }>\n org_access?: "view" | "edit" | null\n id?: string // uuid\n title: string\n tiles: Array<{\n id?: string // uuid\n coordinates?: object\n title?: string\n insight_id?: string // uuid\n visualisation_id?: "kpi" | "funnel" | "toplist" | "timechart" | "pie" | "bar" | "entity_list" | "markdown" | "news_feed" | "workflow"\n visualisation_config?: {\n query?: { ... }\n options?: { ... }\n }\n }>\n favorited?: boolean\n}\n```\n\n### `DashboardTileID`\n\nUnique identifier for a tile in a dashboard\n\n```ts\ntype DashboardTileID = string // uuid\n```\n\n### `SharePermission`\n\nPermission level granted to a user (or the whole organization) on a shared resource.\n`view` allows read-only access; `edit` additionally allows updating the content.\nFull control (delete and managing sharing) is reserved for owners.\n\n\n```ts\ntype SharePermission = "view" | "edit"\n```\n\n### `ShareGrant`\n\nGrants a single user a permission level on a resource\n\n```ts\ntype ShareGrant = {\n user_id: string\n permission: "view" | "edit"\n}\n```\n\n### `OrgAccess`\n\nOptional organization-wide grant. When set, every user in the resource\'s organization\nis granted this permission level. `null` (or omitted) means the resource is not shared\norg-wide.\n\n\n```ts\ntype OrgAccess = "view" | "edit" | null\n```\n\n### `AccessControl`\n\nOwnership and sharing metadata common to dashboards and insights. `created_*`/`updated_*`\nfields are managed by the server. `owners`, `shared_with` and `org_access` describe who\nmay access the resource. New resources are private to their creator until shared.\n\n\n```ts\ntype AccessControl = {\n created_by?: string\n created_at?: string // date-time\n updated_by?: string\n updated_at?: string // date-time\n owner_org_id?: string\n owners?: string[]\n shared_with?: Array<{\n user_id: string\n permission: "view" | "edit"\n }>\n org_access?: "view" | "edit" | null\n}\n```\n\n### `AccessControlUpdate`\n\nSharing fields that can be mutated via PATCH (owners only). `owners` and `shared_with` are\nfull replacements of their arrays, not merges \u2014 omit a field to leave it unchanged.\n\n\n```ts\ntype AccessControlUpdate = {\n owners?: string[]\n shared_with?: Array<{\n user_id: string\n permission: "view" | "edit"\n }>\n org_access?: "view" | "edit" | null\n}\n```\n\n### `DashboardPatch`\n\nFields that can be partially updated on a dashboard\n\n```ts\ntype DashboardPatch = {\n owners?: string[]\n shared_with?: Array<{\n user_id: string\n permission: "view" | "edit"\n }>\n org_access?: "view" | "edit" | null\n title?: string\n tiles?: Array<{\n id?: string // uuid\n coordinates?: object\n title?: string\n insight_id?: string // uuid\n visualisation_id?: "kpi" | "funnel" | "toplist" | "timechart" | "pie" | "bar" | "entity_list" | "markdown" | "news_feed" | "workflow"\n visualisation_config?: {\n query?: { ... }\n options?: { ... }\n }\n }>\n}\n```\n\n### `InsightID`\n\nUnique identifier for an insight (a saved chart / visualisation)\n\n```ts\ntype InsightID = string // uuid\n```\n\n### `Insight`\n\nAn insight is a saved, reusable chart definition (a visualisation plus its query/options).\nInsights exist independently of dashboards: they can be created, shared and edited on their\nown, and referenced by one or more dashboard tiles via `insight_id`.\n\n\n```ts\ntype Insight = {\n created_by?: string\n created_at?: string // date-time\n updated_by?: string\n updated_at?: string // date-time\n owner_org_id?: string\n owners?: string[]\n shared_with?: Array<{\n user_id: string\n permission: "view" | "edit"\n }>\n org_access?: "view" | "edit" | null\n id?: string // uuid\n name: string\n description?: string\n visualisation_id: "kpi" | "funnel" | "toplist" | "timechart" | "pie" | "bar" | "entity_list" | "markdown" | "news_feed" | "workflow"\n visualisation_config?: {\n query?: {\n dataset?: { ... }\n measure?: { ... }\n dimensions?: { ... }\n filters?: { ... }\n }\n options?: Record<string, unknown>\n }\n tags?: string[]\n}\n```\n\n### `InsightPatch`\n\nFields that can be partially updated on an insight\n\n```ts\ntype InsightPatch = {\n owners?: string[]\n shared_with?: Array<{\n user_id: string\n permission: "view" | "edit"\n }>\n org_access?: "view" | "edit" | null\n name?: string\n description?: string\n visualisation_id?: "kpi" | "funnel" | "toplist" | "timechart" | "pie" | "bar" | "entity_list" | "markdown" | "news_feed" | "workflow"\n visualisation_config?: {\n query?: {\n dataset?: { ... }\n measure?: { ... }\n dimensions?: { ... }\n filters?: { ... }\n }\n options?: Record<string, unknown>\n }\n tags?: string[]\n}\n```\n\n### `Tags`\n\nFree-form labels for grouping and filtering insights\n\n```ts\ntype Tags = string[]\n```\n\n### `Pagination`\n\nOffset-based pagination metadata for list responses\n\n```ts\ntype Pagination = {\n total: number\n limit: number\n offset: number\n has_more: boolean\n}\n```\n\n### `DashboardTile`\n\nA positioned tile on a dashboard canvas. A tile references a saved insight via\n`insight_id`. Inline `visualisation_id`/`visualisation_config` remain supported for\nbackwards compatibility (ad-hoc tiles that are not backed by a shared insight).\n\n\n```ts\ntype DashboardTile = {\n id?: string // uuid\n coordinates?: object\n title?: string\n insight_id?: string // uuid\n visualisation_id?: "kpi" | "funnel" | "toplist" | "timechart" | "pie" | "bar" | "entity_list" | "markdown" | "news_feed" | "workflow"\n visualisation_config?: {\n query?: {\n dataset?: { ... }\n measure?: { ... }\n dimensions?: { ... }\n filters?: { ... }\n }\n options?: Record<string, unknown>\n }\n}\n```\n\n### `VisualisationConfig`\n\n```ts\ntype VisualisationConfig = {\n query?: {\n dataset?: string\n measure?: string\n dimensions?: Record<string, unknown>[]\n filters?: Record<string, unknown>[]\n }\n options?: Record<string, unknown>\n}\n```\n\n### `timechartVisualisationConfig`\n\n```ts\ntype timechartVisualisationConfig = {\n query?: {\n dataset?: string\n measure?: string\n dimensions?: Record<string, unknown>[]\n filters?: Record<string, unknown>[]\n }\n options?: Record<string, unknown>\n}\n```\n\n### `ExampleID`\n\nUnique identifier for a visualisation examples for tiles in a dashboard\n\n```ts\ntype ExampleID = string // uuid\n```\n\n### `Example`\n\n```ts\ntype Example = {\n id?: string // uuid\n title?: string\n visualisation?: "kpi" | "funnel" | "toplist" | "timechart" | "pie" | "bar" | "entity_list" | "markdown" | "news_feed" | "workflow"\n query?: {\n dataset?: string\n measure?: string\n dimensions?: Record<string, unknown>[]\n filters?: Record<string, unknown>[]\n }\n}\n```\n\n### `DatalakeQuery`\n\n```ts\ntype DatalakeQuery = {\n dataset?: string\n measure?: string\n dimensions?: Record<string, unknown>[]\n filters?: Record<string, unknown>[]\n}\n```\n\n### `VisualisationId`\n\nUnique identifier for a Visualisation\n\n```ts\ntype VisualisationId = "kpi" | "funnel" | "toplist" | "timechart" | "pie" | "bar" | "entity_list" | "markdown" | "news_feed" | "workflow"\n```\n\n### `Visualisation`\n\nA Visualisation that can be used to configure tiles in dashboards\n\n```ts\ntype Visualisation = {\n visualisation?: "kpi" | "funnel" | "toplist" | "timechart" | "pie" | "bar" | "entity_list" | "markdown" | "news_feed" | "workflow"\n title?: string\n description?: string\n package_name?: string\n import_url?: string // uri\n}\n```\n';
5
+ export {
6
+ dashboard_default as default
7
+ };
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkM2UDF7PYcjs = require('./chunk-M2UDF7PY.cjs');
3
+ var _chunkVMCF5R6Rcjs = require('./chunk-VMCF5R6R.cjs');
4
4
  require('./chunk-NJK5F5TF.cjs');
5
- exports. default = _chunkM2UDF7PYcjs.require_dashboard_runtime.call(void 0, );
5
+ exports. default = _chunkVMCF5R6Rcjs.require_dashboard_runtime.call(void 0, );
@@ -1,5 +1,5 @@
1
1
  import {
2
2
  require_dashboard_runtime
3
- } from "./chunk-SZMCMLOQ.js";
3
+ } from "./chunk-TIRWWTDP.js";
4
4
  import "./chunk-YPSWSI3M.js";
5
5
  export default require_dashboard_runtime();