@lightdash/common 0.2151.0 → 0.2152.1

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 (55) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/authorization/jwtAbility.d.ts +1 -1
  3. package/dist/cjs/authorization/jwtAbility.d.ts.map +1 -1
  4. package/dist/cjs/authorization/jwtAbility.js +74 -25
  5. package/dist/cjs/authorization/jwtAbility.js.map +1 -1
  6. package/dist/cjs/authorization/jwtAbility.test.js +1 -1
  7. package/dist/cjs/authorization/jwtAbility.test.js.map +1 -1
  8. package/dist/cjs/ee/embed/index.d.ts +81 -2
  9. package/dist/cjs/ee/embed/index.d.ts.map +1 -1
  10. package/dist/cjs/ee/embed/index.js +25 -3
  11. package/dist/cjs/ee/embed/index.js.map +1 -1
  12. package/dist/cjs/ee/scim/types.d.ts +2 -7
  13. package/dist/cjs/ee/scim/types.d.ts.map +1 -1
  14. package/dist/cjs/ee/scim/types.js +0 -7
  15. package/dist/cjs/ee/scim/types.js.map +1 -1
  16. package/dist/cjs/types/auth.d.ts +6 -4
  17. package/dist/cjs/types/auth.d.ts.map +1 -1
  18. package/dist/cjs/types/auth.js.map +1 -1
  19. package/dist/esm/.tsbuildinfo +1 -1
  20. package/dist/esm/authorization/jwtAbility.d.ts +1 -1
  21. package/dist/esm/authorization/jwtAbility.d.ts.map +1 -1
  22. package/dist/esm/authorization/jwtAbility.js +74 -25
  23. package/dist/esm/authorization/jwtAbility.js.map +1 -1
  24. package/dist/esm/authorization/jwtAbility.test.js +1 -1
  25. package/dist/esm/authorization/jwtAbility.test.js.map +1 -1
  26. package/dist/esm/ee/embed/index.d.ts +81 -2
  27. package/dist/esm/ee/embed/index.d.ts.map +1 -1
  28. package/dist/esm/ee/embed/index.js +22 -2
  29. package/dist/esm/ee/embed/index.js.map +1 -1
  30. package/dist/esm/ee/scim/types.d.ts +2 -7
  31. package/dist/esm/ee/scim/types.d.ts.map +1 -1
  32. package/dist/esm/ee/scim/types.js +1 -6
  33. package/dist/esm/ee/scim/types.js.map +1 -1
  34. package/dist/esm/types/auth.d.ts +6 -4
  35. package/dist/esm/types/auth.d.ts.map +1 -1
  36. package/dist/esm/types/auth.js.map +1 -1
  37. package/dist/types/.tsbuildinfo +1 -1
  38. package/dist/types/authorization/jwtAbility.d.ts +1 -1
  39. package/dist/types/authorization/jwtAbility.d.ts.map +1 -1
  40. package/dist/types/authorization/jwtAbility.js +74 -25
  41. package/dist/types/authorization/jwtAbility.js.map +1 -1
  42. package/dist/types/authorization/jwtAbility.test.js +1 -1
  43. package/dist/types/authorization/jwtAbility.test.js.map +1 -1
  44. package/dist/types/ee/embed/index.d.ts +81 -2
  45. package/dist/types/ee/embed/index.d.ts.map +1 -1
  46. package/dist/types/ee/embed/index.js +22 -2
  47. package/dist/types/ee/embed/index.js.map +1 -1
  48. package/dist/types/ee/scim/types.d.ts +2 -7
  49. package/dist/types/ee/scim/types.d.ts.map +1 -1
  50. package/dist/types/ee/scim/types.js +1 -6
  51. package/dist/types/ee/scim/types.js.map +1 -1
  52. package/dist/types/types/auth.d.ts +6 -4
  53. package/dist/types/types/auth.d.ts.map +1 -1
  54. package/dist/types/types/auth.js.map +1 -1
  55. package/package.json +1 -1
@@ -2,5 +2,5 @@ import { type AbilityBuilder } from '@casl/ability';
2
2
  import { type CreateEmbedJwt } from '../ee';
3
3
  import type { OssEmbed } from '../types/auth';
4
4
  import type { MemberAbility } from './types';
5
- export declare function applyEmbeddedAbility(embedUser: CreateEmbedJwt, dashboardUuid: string, embed: OssEmbed, externalId: string, builder: AbilityBuilder<MemberAbility>): void;
5
+ export declare function applyEmbeddedAbility(embedUser: CreateEmbedJwt, contentUuid: string | undefined, contentType: 'dashboard' | 'chart', embed: OssEmbed, externalId: string, builder: AbilityBuilder<MemberAbility>): void;
6
6
  //# sourceMappingURL=jwtAbility.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"jwtAbility.d.ts","sourceRoot":"","sources":["../../../src/authorization/jwtAbility.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AA4H7C,wBAAgB,oBAAoB,CAChC,SAAS,EAAE,cAAc,EACzB,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,QAAQ,EACf,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,cAAc,CAAC,aAAa,CAAC,QAGzC"}
1
+ {"version":3,"file":"jwtAbility.d.ts","sourceRoot":"","sources":["../../../src/authorization/jwtAbility.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,EAAsB,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AA+K7C,wBAAgB,oBAAoB,CAChC,SAAS,EAAE,cAAc,EACzB,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,WAAW,EAAE,WAAW,GAAG,OAAO,EAClC,KAAK,EAAE,QAAQ,EACf,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,cAAc,CAAC,aAAa,CAAC,QAoBzC"}
@@ -1,12 +1,14 @@
1
1
  import flow from 'lodash/flow';
2
- const dashboardAbilities = ({ embedUser, dashboardUuid, embed, externalId, builder, }) => {
2
+ import { isDashboardContent } from '../ee';
3
+ const dashboardAbilities = ({ embedUser, contentUuid, contentType, embed, externalId, builder, }) => {
3
4
  const { organization } = embed;
4
5
  const { can } = builder;
5
6
  can('view', 'Dashboard', {
6
- dashboardUuid,
7
+ dashboardUuid: contentUuid,
7
8
  organizationUuid: organization.organizationUuid,
8
9
  });
9
- if (embedUser.content.canDateZoom) {
10
+ if (embedUser.content.type === 'dashboard' &&
11
+ embedUser.content.canDateZoom) {
10
12
  can('view', 'Dashboard', {
11
13
  dateZoom: true,
12
14
  organizationUuid: organization.organizationUuid,
@@ -21,32 +23,63 @@ const dashboardAbilities = ({ embedUser, dashboardUuid, embed, externalId, build
21
23
  organizationUuid: organization.organizationUuid,
22
24
  projectUuid: embed.projectUuid,
23
25
  });
24
- return { embedUser, dashboardUuid, embed, builder, externalId };
26
+ return { embedUser, contentUuid, contentType, embed, builder, externalId };
25
27
  };
26
- const exploreAbilities = ({ embedUser, dashboardUuid, embed, externalId, builder, }) => {
28
+ const chartAbilities = ({ embedUser, contentUuid, contentType, embed, externalId, builder, }) => {
29
+ const { organization } = embed;
30
+ const { can } = builder;
31
+ can('view', 'SavedChart', {
32
+ access: {
33
+ $elemMatch: {
34
+ chartUuid: contentUuid,
35
+ },
36
+ },
37
+ isPrivate: false,
38
+ organizationUuid: organization.organizationUuid,
39
+ projectUuid: embed.projectUuid,
40
+ });
41
+ can('view', 'Project', {
42
+ organizationUuid: organization.organizationUuid,
43
+ projectUuid: embed.projectUuid,
44
+ });
45
+ return { embedUser, contentUuid, contentType, embed, builder, externalId };
46
+ };
47
+ const exploreAbilities = ({ embedUser, contentUuid, contentType, embed, externalId, builder, }) => {
27
48
  const { content } = embedUser;
28
49
  const { organization } = embed;
29
50
  const { can } = builder;
30
- if (content.canExplore || content.canViewUnderlyingData) {
51
+ const canExplore = 'canExplore' in content ? content.canExplore : undefined;
52
+ const canViewUnderlyingData = 'canViewUnderlyingData' in content
53
+ ? content.canViewUnderlyingData
54
+ : undefined;
55
+ if (canExplore || canViewUnderlyingData) {
31
56
  can('view', 'UnderlyingData', {
32
57
  organizationUuid: organization.organizationUuid,
33
58
  projectUuid: embed.projectUuid,
34
59
  });
35
60
  }
36
- if (content.canExplore) {
61
+ if (canExplore) {
37
62
  can('view', 'Explore', {
38
63
  organizationUuid: organization.organizationUuid,
39
64
  projectUuid: embed.projectUuid,
40
65
  });
41
66
  }
42
- return { embedUser, dashboardUuid, embed, externalId, builder };
67
+ return { embedUser, contentUuid, contentType, embed, externalId, builder };
43
68
  };
44
- const exportAbilities = ({ embedUser, dashboardUuid, embed, externalId, builder, }) => {
69
+ const exportAbilities = ({ embedUser, contentUuid, contentType, embed, externalId, builder, }) => {
45
70
  const { content } = embedUser;
46
71
  const { organization } = embed;
47
72
  const { can } = builder;
73
+ const subjectType = contentType === 'dashboard' ? 'Dashboard' : 'SavedChart';
74
+ // Common abilities for both dashboard and chart
75
+ if (content.canExportImages) {
76
+ can('export', subjectType, {
77
+ organizationUuid: organization.organizationUuid,
78
+ type: 'images',
79
+ });
80
+ }
48
81
  if (content.canExportCsv) {
49
- can('export', 'Dashboard', {
82
+ can('export', subjectType, {
50
83
  organizationUuid: organization.organizationUuid,
51
84
  type: 'csv',
52
85
  });
@@ -56,22 +89,38 @@ const exportAbilities = ({ embedUser, dashboardUuid, embed, externalId, builder,
56
89
  createdByUserUuid: externalId,
57
90
  });
58
91
  }
59
- if (content.canExportPagePdf) {
60
- can('export', 'Dashboard', {
61
- organizationUuid: organization.organizationUuid,
62
- type: 'pdf',
63
- });
92
+ // Dashboard specific abilities
93
+ if (isDashboardContent(content)) {
94
+ if (content.canExportPagePdf) {
95
+ can('export', 'Dashboard', {
96
+ organizationUuid: organization.organizationUuid,
97
+ type: 'pdf',
98
+ });
99
+ }
64
100
  }
65
- if (content.canExportImages) {
66
- can('export', 'Dashboard', {
67
- organizationUuid: organization.organizationUuid,
68
- type: 'images',
69
- });
70
- }
71
- return { embedUser, dashboardUuid, embed, externalId, builder };
101
+ return { embedUser, contentUuid, contentType, embed, externalId, builder };
72
102
  };
73
- const applyAbilities = flow(dashboardAbilities, exportAbilities, exploreAbilities);
74
- export function applyEmbeddedAbility(embedUser, dashboardUuid, embed, externalId, builder) {
75
- applyAbilities({ embedUser, dashboardUuid, embed, externalId, builder });
103
+ const dashboardTypeAbilities = [
104
+ dashboardAbilities,
105
+ exportAbilities,
106
+ exploreAbilities,
107
+ ];
108
+ const chartTypeAbilities = [chartAbilities, exportAbilities, exploreAbilities];
109
+ export function applyEmbeddedAbility(embedUser, contentUuid, contentType, embed, externalId, builder) {
110
+ if (!contentUuid) {
111
+ throw new Error('Content UUID is required');
112
+ }
113
+ const abilities = contentType === 'dashboard'
114
+ ? dashboardTypeAbilities
115
+ : chartTypeAbilities;
116
+ const applyAbilities = flow(abilities);
117
+ applyAbilities({
118
+ embedUser,
119
+ contentUuid,
120
+ contentType,
121
+ embed,
122
+ externalId,
123
+ builder,
124
+ });
76
125
  }
77
126
  //# sourceMappingURL=jwtAbility.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"jwtAbility.js","sourceRoot":"","sources":["../../../src/authorization/jwtAbility.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,aAAa,CAAC;AAiB/B,MAAM,kBAAkB,GAA2B,CAAC,EAChD,SAAS,EACT,aAAa,EACb,KAAK,EACL,UAAU,EACV,OAAO,GACV,EAAE,EAAE;IACD,MAAM,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;IAC/B,MAAM,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC;IACxB,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE;QACrB,aAAa;QACb,gBAAgB,EAAE,YAAY,CAAC,gBAAgB;KAClD,CAAC,CAAC;IAEH,IAAI,SAAS,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;QAChC,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE;YACrB,QAAQ,EAAE,IAAI;YACd,gBAAgB,EAAE,YAAY,CAAC,gBAAgB;SAClD,CAAC,CAAC;IACP,CAAC;IAED,GAAG,CAAC,MAAM,EAAE,YAAY,EAAE;QACtB,gBAAgB,EAAE,YAAY,CAAC,gBAAgB;QAC/C,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9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AkB,CAAC,OAAO,CAAC,EAAE,CAAC;QAC9B,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;YAC3B,GAAG,CAAC,QAAQ,EAAE,WAAW,EAAE;gBACvB,gBAAgB,EAAE,YAAY,CAAC,gBAAgB;gBAC/C,IAAI,EAAE,KAAK;aACd,CAAC,CAAC;QACP,CAAC;IACL,CAAC;IAED,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC;AAC/E,CAAC,CAAC;AAEF,MAAM,sBAAsB,GAAG;IAC3B,kBAAkB;IAClB,eAAe;IACf,gBAAgB;CACnB,CAAC;AAEF,MAAM,kBAAkB,GAAG,CAAC,cAAc,EAAE,eAAe,EAAE,gBAAgB,CAAC,CAAC;AAE/E,MAAM,UAAU,oBAAoB,CAChC,SAAyB,EACzB,WAA+B,EAC/B,WAAkC,EAClC,KAAe,EACf,UAAkB,EAClB,OAAsC;IAEtC,IAAI,CAAC,WAAW,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;IAChD,CAAC;IAED,MAAM,SAAS,GACX,WAAW,KAAK,WAAW;QACvB,CAAC,CAAC,sBAAsB;QACxB,CAAC,CAAC,kBAAkB,CAAC;IAC7B,MAAM,cAAc,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;IAEvC,cAAc,CAAC;QACX,SAAS;QACT,WAAW;QACX,WAAW;QACX,KAAK;QACL,UAAU;QACV,OAAO;KACV,CAAC,CAAC;AACP,CAAC"}
@@ -43,7 +43,7 @@ const embed = {
43
43
  const defineAbilityForEmbedUser = (embedUser, dashboardUuid) => {
44
44
  const builder = new AbilityBuilder(Ability);
45
45
  const externalId = 'external-id-1';
46
- applyEmbeddedAbility(embedUser, dashboardUuid, embed, externalId, builder);
46
+ applyEmbeddedAbility(embedUser, dashboardUuid, 'dashboard', embed, externalId, builder);
47
47
  return builder.build();
48
48
  };
49
49
  describe('Embedded dashboard abilities', () => {
@@ -1 +1 @@
1
- {"version":3,"file":"jwtAbility.test.js","sourceRoot":"","sources":["../../../src/authorization/jwtAbility.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAGjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAGpD,MAAM,cAAc,GAAG,CAAC,SAMvB,EAAkB,EAAE;IACjB,MAAM,WAAW,GAAG;QAChB,IAAI,EAAE,WAAW;QACjB,aAAa,EAAE,kBAAkB;QACjC,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,KAAK;QACtB,gBAAgB,EAAE,KAAK;QACvB,WAAW,EAAE,KAAK;QAClB,UAAU,EAAE,KAAK;QACjB,qBAAqB,EAAE,KAAK;KAC/B,CAAC;IAEF,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,GAAG,cAAc,EAAE,GAAG,SAAS,IAAI,EAAE,CAAC;IAEzE,OAAO;QACH,OAAO,EAAE;YACL,GAAG,WAAW;YACd,GAAG,gBAAgB;SACO;QAC9B,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,EAAE,kBAAkB;QACjD,GAAG,cAAc;KACpB,CAAC;AACN,CAAC,CAAC;AACF,MAAM,YAAY,GAAG;IACjB,gBAAgB,EAAE,qBAAqB;IACvC,IAAI,EAAE,gBAAgB;CACzB,CAAC;AAEF,MAAM,KAAK,GAAa;IACpB,YAAY;IACZ,WAAW,EAAE,gBAAgB;IAC7B,aAAa,EAAE,gBAAgB;IAC/B,cAAc,EAAE,CAAC,kBAAkB,CAAC;IACpC,kBAAkB,EAAE,KAAK;IACzB,UAAU,EAAE,EAAE;IACd,cAAc,EAAE,KAAK;IACrB,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE;QACF,SAAS,EAAE,MAAM;QACjB,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,aAAa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AM,EACN,OAAO,CAAC,SAAS,EAAE;gBACf,gBAAgB,EAAE,YAAY,CAAC,gBAAgB;gBAC/C,WAAW,EAAE,wBAAwB;aACxC,CAAC,CACL,CACJ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACd,MAAM,CACF,OAAO,CAAC,GAAG,CACP,MAAM,EACN,OAAO,CAAC,SAAS,EAAE;gBACf,gBAAgB,EAAE,YAAY,CAAC,gBAAgB;gBAC/C,WAAW,EAAE,wBAAwB;aACxC,CAAC,CACL,CACJ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAClB,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"jwtAbility.test.js","sourceRoot":"","sources":["../../../src/authorization/jwtAbility.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAGjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAGpD,MAAM,cAAc,GAAG,CAAC,SAMvB,EAAkB,EAAE;IACjB,MAAM,WAAW,GAAG;QAChB,IAAI,EAAE,WAAW;QACjB,aAAa,EAAE,kBAAkB;QACjC,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,KAAK;QACtB,gBAAgB,EAAE,KAAK;QACvB,WAAW,EAAE,KAAK;QAClB,UAAU,EAAE,KAAK;QACjB,qBAAqB,EAAE,KAAK;KAC/B,CAAC;IAEF,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,GAAG,cAAc,EAAE,GAAG,SAAS,IAAI,EAAE,CAAC;IAEzE,OAAO;QACH,OAAO,EAAE;YACL,GAAG,WAAW;YACd,GAAG,gBAAgB;SACO;QAC9B,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,EAAE,kBAAkB;QACjD,GAAG,cAAc;KACpB,CAAC;AACN,CAAC,CAAC;AACF,M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EAAE;gBACf,gBAAgB,EAAE,YAAY,CAAC,gBAAgB;gBAC/C,WAAW;aACd,CAAC,CACL,CACJ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,iEAAiE,EAAE,GAAG,EAAE;YACvE,MAAM,SAAS,GAAG,cAAc,CAAC;gBAC7B,OAAO,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;aAChC,CAAC,CAAC;YACH,MAAM,OAAO,GAAG,yBAAyB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;YAEpE,MAAM,CACF,OAAO,CAAC,GAAG,CACP,MAAM,EACN,OAAO,CAAC,SAAS,EAAE;gBACf,gBAAgB,EAAE,YAAY,CAAC,gBAAgB;gBAC/C,WAAW,EAAE,wBAAwB;aACxC,CAAC,CACL,CACJ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACd,MAAM,CACF,OAAO,CAAC,GAAG,CACP,MAAM,EACN,OAAO,CAAC,SAAS,EAAE;gBACf,gBAAgB,EAAE,YAAY,CAAC,gBAAgB;gBAC/C,WAAW,EAAE,wBAAwB;aACxC,CAAC,CACL,CACJ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAClB,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -103,6 +103,23 @@ export declare const InteractivityOptionsSchema: z.ZodObject<{
103
103
  canViewUnderlyingData?: boolean | undefined;
104
104
  }>;
105
105
  export type InteractivityOptions = z.infer<typeof InteractivityOptionsSchema>;
106
+ export declare const ChartInteractivityOptionsSchema: z.ZodObject<{
107
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
108
+ canExportCsv: z.ZodOptional<z.ZodBoolean>;
109
+ canExportImages: z.ZodOptional<z.ZodBoolean>;
110
+ canViewUnderlyingData: z.ZodOptional<z.ZodBoolean>;
111
+ }, "strip", z.ZodTypeAny, {
112
+ canExportCsv?: boolean | undefined;
113
+ canExportImages?: boolean | undefined;
114
+ canViewUnderlyingData?: boolean | undefined;
115
+ scopes?: string[] | undefined;
116
+ }, {
117
+ canExportCsv?: boolean | undefined;
118
+ canExportImages?: boolean | undefined;
119
+ canViewUnderlyingData?: boolean | undefined;
120
+ scopes?: string[] | undefined;
121
+ }>;
122
+ export type ChartInteractivityOptions = z.infer<typeof ChartInteractivityOptionsSchema>;
106
123
  export declare const EmbedJwtSchema: z.ZodObject<{
107
124
  userAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
108
125
  user: z.ZodOptional<z.ZodObject<{
@@ -255,6 +272,34 @@ export declare const EmbedJwtSchema: z.ZodObject<{
255
272
  canExplore?: boolean | undefined;
256
273
  canViewUnderlyingData?: boolean | undefined;
257
274
  isPreview?: boolean | undefined;
275
+ }>, z.ZodObject<{
276
+ type: z.ZodLiteral<"chart">;
277
+ projectUuid: z.ZodOptional<z.ZodString>;
278
+ contentId: z.ZodString;
279
+ isPreview: z.ZodOptional<z.ZodBoolean>;
280
+ } & {
281
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
282
+ canExportCsv: z.ZodOptional<z.ZodBoolean>;
283
+ canExportImages: z.ZodOptional<z.ZodBoolean>;
284
+ canViewUnderlyingData: z.ZodOptional<z.ZodBoolean>;
285
+ }, "strip", z.ZodTypeAny, {
286
+ type: "chart";
287
+ contentId: string;
288
+ projectUuid?: string | undefined;
289
+ canExportCsv?: boolean | undefined;
290
+ canExportImages?: boolean | undefined;
291
+ canViewUnderlyingData?: boolean | undefined;
292
+ scopes?: string[] | undefined;
293
+ isPreview?: boolean | undefined;
294
+ }, {
295
+ type: "chart";
296
+ contentId: string;
297
+ projectUuid?: string | undefined;
298
+ canExportCsv?: boolean | undefined;
299
+ canExportImages?: boolean | undefined;
300
+ canViewUnderlyingData?: boolean | undefined;
301
+ scopes?: string[] | undefined;
302
+ isPreview?: boolean | undefined;
258
303
  }>]>;
259
304
  iat: z.ZodOptional<z.ZodNumber>;
260
305
  exp: z.ZodNumber;
@@ -297,6 +342,15 @@ export declare const EmbedJwtSchema: z.ZodObject<{
297
342
  canExplore?: boolean | undefined;
298
343
  canViewUnderlyingData?: boolean | undefined;
299
344
  isPreview?: boolean | undefined;
345
+ } | {
346
+ type: "chart";
347
+ contentId: string;
348
+ projectUuid?: string | undefined;
349
+ canExportCsv?: boolean | undefined;
350
+ canExportImages?: boolean | undefined;
351
+ canViewUnderlyingData?: boolean | undefined;
352
+ scopes?: string[] | undefined;
353
+ isPreview?: boolean | undefined;
300
354
  };
301
355
  exp: number;
302
356
  user?: {
@@ -344,6 +398,15 @@ export declare const EmbedJwtSchema: z.ZodObject<{
344
398
  canExplore?: boolean | undefined;
345
399
  canViewUnderlyingData?: boolean | undefined;
346
400
  isPreview?: boolean | undefined;
401
+ } | {
402
+ type: "chart";
403
+ contentId: string;
404
+ projectUuid?: string | undefined;
405
+ canExportCsv?: boolean | undefined;
406
+ canExportImages?: boolean | undefined;
407
+ canViewUnderlyingData?: boolean | undefined;
408
+ scopes?: string[] | undefined;
409
+ isPreview?: boolean | undefined;
347
410
  };
348
411
  exp: number;
349
412
  user?: {
@@ -354,7 +417,7 @@ export declare const EmbedJwtSchema: z.ZodObject<{
354
417
  iat?: number | undefined;
355
418
  }>;
356
419
  export type EmbedJwt = z.infer<typeof EmbedJwtSchema>;
357
- type CommonEmbedJwtContent = {
420
+ export type CommonEmbedJwtContent = {
358
421
  type: 'dashboard';
359
422
  projectUuid?: string;
360
423
  isPreview?: boolean;
@@ -373,14 +436,28 @@ type CommonEmbedJwtContent = {
373
436
  canExplore?: boolean;
374
437
  canViewUnderlyingData?: boolean;
375
438
  };
439
+ type CommonChartEmbedJwtContent = {
440
+ type: 'chart';
441
+ projectUuid?: string;
442
+ isPreview?: boolean;
443
+ scopes?: string[];
444
+ dashboardFiltersInteractivity?: undefined;
445
+ parameterInteractivity?: undefined;
446
+ canExportCsv?: boolean;
447
+ canExportImages?: boolean;
448
+ canViewUnderlyingData?: boolean;
449
+ };
376
450
  type EmbedJwtContentDashboardUuid = CommonEmbedJwtContent & {
377
451
  dashboardUuid: string;
378
452
  };
379
453
  type EmbedJwtContentDashboardSlug = CommonEmbedJwtContent & {
380
454
  dashboardSlug: string;
381
455
  };
456
+ type EmbedJwtContentChart = CommonChartEmbedJwtContent & {
457
+ contentId: string;
458
+ };
382
459
  export type CreateEmbedJwt = {
383
- content: EmbedJwtContentDashboardUuid | EmbedJwtContentDashboardSlug;
460
+ content: EmbedJwtContentDashboardUuid | EmbedJwtContentDashboardSlug | EmbedJwtContentChart;
384
461
  userAttributes?: {
385
462
  [key: string]: string;
386
463
  };
@@ -394,6 +471,8 @@ export type CreateEmbedJwt = {
394
471
  };
395
472
  export declare function isDashboardUuidContent(content: CreateEmbedJwt['content']): content is EmbedJwtContentDashboardUuid;
396
473
  export declare function isDashboardSlugContent(content: CreateEmbedJwt['content']): content is EmbedJwtContentDashboardSlug;
474
+ export declare function isChartContent(content: CreateEmbedJwt['content']): content is EmbedJwtContentChart;
475
+ export declare function isDashboardContent(content: CreateEmbedJwt['content']): content is EmbedJwtContentDashboardUuid | EmbedJwtContentDashboardSlug;
397
476
  export type EmbedUrl = {
398
477
  url: string;
399
478
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ee/embed/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGjD,uCAAuC;AACvC,MAAM,MAAM,KAAK,GAAG,QAAQ,CAAC;AAE7B,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,EAAE,eAAe,CAAC,GAAG;IACtD,aAAa,EAAE,SAAS,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC;AAIF,MAAM,MAAM,sBAAsB,GAAG;IACjC,cAAc,CAAC,EAAE,MA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AAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAC3C,IAAI,CAAC,EAAE;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,UAAU,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,wBAAgB,sBAAsB,CAClC,OAAO,EAAE,cAAc,CAAC,SAAS,CAAC,GACnC,OAAO,IAAI,4BAA4B,CAEzC;AAED,wBAAgB,sBAAsB,CAClC,OAAO,EAAE,cAAc,CAAC,SAAS,CAAC,GACnC,OAAO,IAAI,4BAA4B,CAEzC;AAED,wBAAgB,cAAc,CAC1B,OAAO,EAAE,cAAc,CAAC,SAAS,CAAC,GACnC,OAAO,IAAI,oBAAoB,CAEjC;AAED,wBAAgB,kBAAkB,CAC9B,OAAO,EAAE,cAAc,CAAC,SAAS,CAAC,GACnC,OAAO,IAAI,4BAA4B,GAAG,4BAA4B,CAExE;AAED,MAAM,MAAM,QAAQ,GAAG;IACnB,GAAG,EAAE,MAAM,CAAC;CACf,CAAC;AAGF,wBAAgB,2BAA2B,CACvC,OAAO,EAAE,mCAAmC,CAAC,SAAS,CAAC,6BAS1D;AAED,wBAAgB,4BAA4B,CACxC,0BAA0B,CAAC,EAAE,mCAAmC,8BAwBnE;AAED,wBAAgB,+BAA+B,CAC3C,6BAA6B,CAAC,EAAE,6BAA6B,GAC9D,OAAO,CAET"}
@@ -30,6 +30,12 @@ export const InteractivityOptionsSchema = z.object({
30
30
  canExplore: z.boolean().optional(),
31
31
  canViewUnderlyingData: z.boolean().optional(),
32
32
  });
33
+ export const ChartInteractivityOptionsSchema = z.object({
34
+ scopes: z.array(z.string()).optional(),
35
+ canExportCsv: z.boolean().optional(),
36
+ canExportImages: z.boolean().optional(),
37
+ canViewUnderlyingData: z.boolean().optional(),
38
+ });
33
39
  export const EmbedJwtSchema = z
34
40
  .object({
35
41
  userAttributes: z.record(z.unknown()).optional(),
@@ -56,16 +62,30 @@ export const EmbedJwtSchema = z
56
62
  isPreview: z.boolean().optional(),
57
63
  })
58
64
  .merge(InteractivityOptionsSchema),
65
+ z
66
+ .object({
67
+ type: z.literal('chart'),
68
+ projectUuid: z.string().optional(),
69
+ contentId: z.string(),
70
+ isPreview: z.boolean().optional(),
71
+ })
72
+ .merge(ChartInteractivityOptionsSchema),
59
73
  ]),
60
74
  iat: z.number().optional(),
61
75
  exp: z.number(),
62
76
  })
63
77
  .describe('Configuration file for generating a CSV file from a query with metrics and dimensions');
64
78
  export function isDashboardUuidContent(content) {
65
- return 'dashboardUuid' in content;
79
+ return content.type === 'dashboard' && 'dashboardUuid' in content;
66
80
  }
67
81
  export function isDashboardSlugContent(content) {
68
- return 'dashboardSlug' in content;
82
+ return content.type === 'dashboard' && 'dashboardSlug' in content;
83
+ }
84
+ export function isChartContent(content) {
85
+ return content.type === 'chart';
86
+ }
87
+ export function isDashboardContent(content) {
88
+ return content.type === 'dashboard';
69
89
  }
70
90
  // allows for backwards compatibility with old filter interactivity boolean values
71
91
  export function getFilterInteractivityValue(enabled) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ee/embed/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,iBAAiB,MAAM,+BAA+B,CAAC;AAyB9D,MAAM,CAAN,IAAY,yBAIX;AAJD,WAAY,yBAAyB;IACjC,0CAAa,CAAA;IACb,wCAAW,CAAA;IACX,0CAAa,CAAA;AACjB,CAAC,EAJW,yBAAyB,KAAzB,yBAAyB,QAIpC;AAED,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,IAAI,CAAC;IAClD,yBAAyB,CAAC,IAAI;IAC9B,yBAAyB,CAAC,GAAG;IAC7B,yBAAyB,CAAC,IAAI;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AA0B,CAAC,OAAO,CACrC,CAAC;IAEF,QAAQ,wBAAwB,EAAE,CAAC;QAC/B,KAAK,yBAAyB,CAAC,IAAI;YAC/B,OAAO,CACH,0BAA0B,CAAC,cAAc;gBACzC,0BAA0B,CAAC,cAAc,CAAC,MAAM,GAAG,CAAC,CACvD,CAAC;QACN,KAAK,yBAAyB,CAAC,GAAG;YAC9B,OAAO,IAAI,CAAC;QAChB,KAAK,yBAAyB,CAAC,IAAI;YAC/B,OAAO,KAAK,CAAC;QACjB;YACI,OAAO,iBAAiB,CACpB,wBAAwB,EACxB,oCAAoC,wBAAwB,EAAE,CACjE,CAAC;IACV,CAAC;AACL,CAAC;AAED,MAAM,UAAU,+BAA+B,CAC3C,6BAA6D;IAE7D,OAAO,6BAA6B,EAAE,OAAO,IAAI,KAAK,CAAC;AAC3D,CAAC"}
@@ -19,7 +19,7 @@ export interface LightdashScimExtension {
19
19
  export interface ScimUserRole {
20
20
  value: string;
21
21
  display?: string;
22
- type?: ScimRoleType;
22
+ type?: string;
23
23
  primary?: boolean;
24
24
  }
25
25
  export interface ScimUser extends ScimResource {
@@ -53,16 +53,11 @@ export interface ScimGroupMember {
53
53
  value: string;
54
54
  display?: string;
55
55
  }
56
- export declare enum ScimRoleType {
57
- ORG = "ORG_SYSTEM",
58
- PROJECT = "PROJECT_SYSTEM",
59
- PROJECT_CUSTOM = "PROJECT_CUSTOM"
60
- }
61
56
  export interface ScimRole extends ScimResource {
62
57
  schemas: ScimSchemaType.ROLE[];
63
58
  value: string;
64
59
  display?: string;
65
- type?: ScimRoleType;
60
+ type?: string;
66
61
  supported: boolean;
67
62
  meta: ScimResource['meta'] & {
68
63
  resourceType: 'Role';
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/ee/scim/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,IAAI,CAAC;AAE9D,MAAM,MAAM,qBAAq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AAC;QACf,QAAQ,EAAE,OAAO,CAAC;KACrB,EAAE,CAAC;CACP"}
@@ -1,7 +1,2 @@
1
- export var ScimRoleType;
2
- (function (ScimRoleType) {
3
- ScimRoleType["ORG"] = "ORG_SYSTEM";
4
- ScimRoleType["PROJECT"] = "PROJECT_SYSTEM";
5
- ScimRoleType["PROJECT_CUSTOM"] = "PROJECT_CUSTOM";
6
- })(ScimRoleType || (ScimRoleType = {}));
1
+ export {};
7
2
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/ee/scim/types.ts"],"names":[],"mappings":"AA+DA,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;IACpB,kCAAkB,CAAA;IAClB,0CAA0B,CAAA;IAC1B,iDAAiC,CAAA;AACrC,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/ee/scim/types.ts"],"names":[],"mappings":""}
@@ -55,9 +55,11 @@ export type UserAccessControls = {
55
55
  userAttributes: UserAttributeValueMap;
56
56
  intrinsicUserAttributes: IntrinsicUserAttributes;
57
57
  };
58
- export type DashboardAccess = {
59
- /** The dashboard ID the account has access to */
60
- dashboardId: string;
58
+ export type EmbedAccess = {
59
+ /** The content ID the account has access to (dashboard or chart) */
60
+ contentId?: string;
61
+ /** The type of content (dashboard or chart) */
62
+ contentType?: 'dashboard' | 'chart';
61
63
  /** Dashboard filtering options for interactivity */
62
64
  filtering?: DashboardFilterInteractivityOptions;
63
65
  /** User-specific access controls */
@@ -107,7 +109,7 @@ export type AnonymousAccount = BaseAccountWithHelpers & {
107
109
  authentication: JwtAuth;
108
110
  user: ExternalUser;
109
111
  /** The access permissions the account has */
110
- access: DashboardAccess;
112
+ access: EmbedAccess;
111
113
  /** The embed configuration associated with the JWT */
112
114
  embed: OssEmbed;
113
115
  };
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRo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AiB,CAC7B,OAA4B;IAE5B,IAAI,OAAO,EAAE,cAAc,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAC7C,MAAM,IAAI,cAAc,CACpB,GAAG,OAAO,EAAE,cAAc,CAAC,IAAI,8BAA8B,CAChE,CAAC;IACN,CAAC;AACL,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,OAAiB;IACvC,IAAI,CAAC,OAAO;QAAE,OAAO,KAAK,CAAC;IAE3B,OAAO,OAAO,CAAC,SAAS,EAAE,CAAC;AAC/B,CAAC;AAUD,MAAM,UAAU,sBAAsB,CAClC,OAAgB;IAEhB,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC;IACjC,MAAM,UAAU,GACZ,OAAO,YAAY,CAAC,gBAAgB,KAAK,QAAQ;QACjD,OAAO,YAAY,CAAC,IAAI,KAAK,QAAQ;QACrC,YAAY,CAAC,SAAS,YAAY,IAAI,CAAC;IAE3C,IAAI,CAAC,UAAU,EAAE,CAAC;QACd,MAAM,IAAI,cAAc,CAAC,wCAAwC,CAAC,CAAC;IACvE,CAAC;IAED,IAAI,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC;QAC1B,MAAM,cAAc,GAAG,OAAyB,CAAC;QACjD,IAAI,OAAO,cAAc,CAAC,IAAI,CAAC,IAAI,KAAK,QAAQ;YAC5C,MAAM,IAAI,cAAc,CACpB,sDAAsD,CACzD,CAAC;IACV,CAAC;AACL,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/common",
3
- "version": "0.2151.0",
3
+ "version": "0.2152.1",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",