@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"}
@@ -3,14 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.applyEmbeddedAbility = applyEmbeddedAbility;
4
4
  const tslib_1 = require("tslib");
5
5
  const flow_1 = tslib_1.__importDefault(require("lodash/flow"));
6
- const dashboardAbilities = ({ embedUser, dashboardUuid, embed, externalId, builder, }) => {
6
+ const ee_1 = require("../ee");
7
+ const dashboardAbilities = ({ embedUser, contentUuid, contentType, embed, externalId, builder, }) => {
7
8
  const { organization } = embed;
8
9
  const { can } = builder;
9
10
  can('view', 'Dashboard', {
10
- dashboardUuid,
11
+ dashboardUuid: contentUuid,
11
12
  organizationUuid: organization.organizationUuid,
12
13
  });
13
- if (embedUser.content.canDateZoom) {
14
+ if (embedUser.content.type === 'dashboard' &&
15
+ embedUser.content.canDateZoom) {
14
16
  can('view', 'Dashboard', {
15
17
  dateZoom: true,
16
18
  organizationUuid: organization.organizationUuid,
@@ -25,32 +27,63 @@ const dashboardAbilities = ({ embedUser, dashboardUuid, embed, externalId, build
25
27
  organizationUuid: organization.organizationUuid,
26
28
  projectUuid: embed.projectUuid,
27
29
  });
28
- return { embedUser, dashboardUuid, embed, builder, externalId };
30
+ return { embedUser, contentUuid, contentType, embed, builder, externalId };
29
31
  };
30
- const exploreAbilities = ({ embedUser, dashboardUuid, embed, externalId, builder, }) => {
32
+ const chartAbilities = ({ embedUser, contentUuid, contentType, embed, externalId, builder, }) => {
33
+ const { organization } = embed;
34
+ const { can } = builder;
35
+ can('view', 'SavedChart', {
36
+ access: {
37
+ $elemMatch: {
38
+ chartUuid: contentUuid,
39
+ },
40
+ },
41
+ isPrivate: false,
42
+ organizationUuid: organization.organizationUuid,
43
+ projectUuid: embed.projectUuid,
44
+ });
45
+ can('view', 'Project', {
46
+ organizationUuid: organization.organizationUuid,
47
+ projectUuid: embed.projectUuid,
48
+ });
49
+ return { embedUser, contentUuid, contentType, embed, builder, externalId };
50
+ };
51
+ const exploreAbilities = ({ embedUser, contentUuid, contentType, embed, externalId, builder, }) => {
31
52
  const { content } = embedUser;
32
53
  const { organization } = embed;
33
54
  const { can } = builder;
34
- if (content.canExplore || content.canViewUnderlyingData) {
55
+ const canExplore = 'canExplore' in content ? content.canExplore : undefined;
56
+ const canViewUnderlyingData = 'canViewUnderlyingData' in content
57
+ ? content.canViewUnderlyingData
58
+ : undefined;
59
+ if (canExplore || canViewUnderlyingData) {
35
60
  can('view', 'UnderlyingData', {
36
61
  organizationUuid: organization.organizationUuid,
37
62
  projectUuid: embed.projectUuid,
38
63
  });
39
64
  }
40
- if (content.canExplore) {
65
+ if (canExplore) {
41
66
  can('view', 'Explore', {
42
67
  organizationUuid: organization.organizationUuid,
43
68
  projectUuid: embed.projectUuid,
44
69
  });
45
70
  }
46
- return { embedUser, dashboardUuid, embed, externalId, builder };
71
+ return { embedUser, contentUuid, contentType, embed, externalId, builder };
47
72
  };
48
- const exportAbilities = ({ embedUser, dashboardUuid, embed, externalId, builder, }) => {
73
+ const exportAbilities = ({ embedUser, contentUuid, contentType, embed, externalId, builder, }) => {
49
74
  const { content } = embedUser;
50
75
  const { organization } = embed;
51
76
  const { can } = builder;
77
+ const subjectType = contentType === 'dashboard' ? 'Dashboard' : 'SavedChart';
78
+ // Common abilities for both dashboard and chart
79
+ if (content.canExportImages) {
80
+ can('export', subjectType, {
81
+ organizationUuid: organization.organizationUuid,
82
+ type: 'images',
83
+ });
84
+ }
52
85
  if (content.canExportCsv) {
53
- can('export', 'Dashboard', {
86
+ can('export', subjectType, {
54
87
  organizationUuid: organization.organizationUuid,
55
88
  type: 'csv',
56
89
  });
@@ -60,22 +93,38 @@ const exportAbilities = ({ embedUser, dashboardUuid, embed, externalId, builder,
60
93
  createdByUserUuid: externalId,
61
94
  });
62
95
  }
63
- if (content.canExportPagePdf) {
64
- can('export', 'Dashboard', {
65
- organizationUuid: organization.organizationUuid,
66
- type: 'pdf',
67
- });
96
+ // Dashboard specific abilities
97
+ if ((0, ee_1.isDashboardContent)(content)) {
98
+ if (content.canExportPagePdf) {
99
+ can('export', 'Dashboard', {
100
+ organizationUuid: organization.organizationUuid,
101
+ type: 'pdf',
102
+ });
103
+ }
68
104
  }
69
- if (content.canExportImages) {
70
- can('export', 'Dashboard', {
71
- organizationUuid: organization.organizationUuid,
72
- type: 'images',
73
- });
74
- }
75
- return { embedUser, dashboardUuid, embed, externalId, builder };
105
+ return { embedUser, contentUuid, contentType, embed, externalId, builder };
76
106
  };
77
- const applyAbilities = (0, flow_1.default)(dashboardAbilities, exportAbilities, exploreAbilities);
78
- function applyEmbeddedAbility(embedUser, dashboardUuid, embed, externalId, builder) {
79
- applyAbilities({ embedUser, dashboardUuid, embed, externalId, builder });
107
+ const dashboardTypeAbilities = [
108
+ dashboardAbilities,
109
+ exportAbilities,
110
+ exploreAbilities,
111
+ ];
112
+ const chartTypeAbilities = [chartAbilities, exportAbilities, exploreAbilities];
113
+ function applyEmbeddedAbility(embedUser, contentUuid, contentType, embed, externalId, builder) {
114
+ if (!contentUuid) {
115
+ throw new Error('Content UUID is required');
116
+ }
117
+ const abilities = contentType === 'dashboard'
118
+ ? dashboardTypeAbilities
119
+ : chartTypeAbilities;
120
+ const applyAbilities = (0, flow_1.default)(abilities);
121
+ applyAbilities({
122
+ embedUser,
123
+ contentUuid,
124
+ contentType,
125
+ embed,
126
+ externalId,
127
+ builder,
128
+ });
80
129
  }
81
130
  //# sourceMappingURL=jwtAbility.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"jwtAbility.js","sourceRoot":"","sources":["../../../src/authorization/jwtAbility.ts"],"names":[],"mappings":";;AAgIA,oDAQC;;AAvID,+DAA+B;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;IAC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C,WAAW;YAC9B,iBAAiB,EAAE,UAAU;SAChC,CAAC,CAAC;IACP,CAAC;IACD,+BAA+B;IAC/B,IAAI,IAAA,uBAAkB,EAAC,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,SAAgB,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,IAAA,cAAI,EAAC,SAAS,CAAC,CAAC;IAEvC,cAAc,CAAC;QACX,SAAS;QACT,WAAW;QACX,WAAW;QACX,KAAK;QACL,UAAU;QACV,OAAO;KACV,CAAC,CAAC;AACP,CAAC"}
@@ -45,7 +45,7 @@ const embed = {
45
45
  const defineAbilityForEmbedUser = (embedUser, dashboardUuid) => {
46
46
  const builder = new ability_1.AbilityBuilder(ability_1.Ability);
47
47
  const externalId = 'external-id-1';
48
- (0, jwtAbility_1.applyEmbeddedAbility)(embedUser, dashboardUuid, embed, externalId, builder);
48
+ (0, jwtAbility_1.applyEmbeddedAbility)(embedUser, dashboardUuid, 'dashboard', embed, externalId, builder);
49
49
  return builder.build();
50
50
  };
51
51
  describe('Embedded dashboard abilities', () => {
@@ -1 +1 @@
1
- {"version":3,"file":"jwtAbility.test.js","sourceRoot":"","sources":["../../../src/authorization/jwtAbility.test.ts"],"names":[],"mappings":";;AAAA,2CAAiE;AAGjE,6CAAoD;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,M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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,IAAA,iBAAO,EAAC,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,IAAA,iBAAO,EAAC,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,2CAAiE;AAGjE,6CAAoD;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,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EAAC,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,MAAM,EAAE,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACtB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,kBAAkB,EAAE,OAAO,CAAC;IAE5B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,oBAAY,yBAAyB;IACjC,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,IAAI,SAAS;CAChB;AAED,eAAO,MAAM,+BAA+B,4GAI1C,CAAC;AAEH,eAAO,MAAM,yCAAyC;;;;;;;;;;;;EAKpD,CAAC;AAEH,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,yCAAyC,CACnD,CAAC;AAEF,eAAO,MAAM,mCAAmC;;;;;;EAE9C,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAC/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Ac,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"}
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EmbedJwtSchema = exports.InteractivityOptionsSchema = exports.ParameterInteractivityOptionsSchema = exports.DashboardFilterInteractivityOptionsSchema = exports.FilterInteractivityValuesSchema = exports.FilterInteractivityValues = void 0;
3
+ exports.EmbedJwtSchema = exports.ChartInteractivityOptionsSchema = exports.InteractivityOptionsSchema = exports.ParameterInteractivityOptionsSchema = exports.DashboardFilterInteractivityOptionsSchema = exports.FilterInteractivityValuesSchema = exports.FilterInteractivityValues = void 0;
4
4
  exports.isDashboardUuidContent = isDashboardUuidContent;
5
5
  exports.isDashboardSlugContent = isDashboardSlugContent;
6
+ exports.isChartContent = isChartContent;
7
+ exports.isDashboardContent = isDashboardContent;
6
8
  exports.getFilterInteractivityValue = getFilterInteractivityValue;
7
9
  exports.isFilterInteractivityEnabled = isFilterInteractivityEnabled;
8
10
  exports.isParameterInteractivityEnabled = isParameterInteractivityEnabled;
@@ -39,6 +41,12 @@ exports.InteractivityOptionsSchema = zod_1.z.object({
39
41
  canExplore: zod_1.z.boolean().optional(),
40
42
  canViewUnderlyingData: zod_1.z.boolean().optional(),
41
43
  });
44
+ exports.ChartInteractivityOptionsSchema = zod_1.z.object({
45
+ scopes: zod_1.z.array(zod_1.z.string()).optional(),
46
+ canExportCsv: zod_1.z.boolean().optional(),
47
+ canExportImages: zod_1.z.boolean().optional(),
48
+ canViewUnderlyingData: zod_1.z.boolean().optional(),
49
+ });
42
50
  exports.EmbedJwtSchema = zod_1.z
43
51
  .object({
44
52
  userAttributes: zod_1.z.record(zod_1.z.unknown()).optional(),
@@ -65,16 +73,30 @@ exports.EmbedJwtSchema = zod_1.z
65
73
  isPreview: zod_1.z.boolean().optional(),
66
74
  })
67
75
  .merge(exports.InteractivityOptionsSchema),
76
+ zod_1.z
77
+ .object({
78
+ type: zod_1.z.literal('chart'),
79
+ projectUuid: zod_1.z.string().optional(),
80
+ contentId: zod_1.z.string(),
81
+ isPreview: zod_1.z.boolean().optional(),
82
+ })
83
+ .merge(exports.ChartInteractivityOptionsSchema),
68
84
  ]),
69
85
  iat: zod_1.z.number().optional(),
70
86
  exp: zod_1.z.number(),
71
87
  })
72
88
  .describe('Configuration file for generating a CSV file from a query with metrics and dimensions');
73
89
  function isDashboardUuidContent(content) {
74
- return 'dashboardUuid' in content;
90
+ return content.type === 'dashboard' && 'dashboardUuid' in content;
75
91
  }
76
92
  function isDashboardSlugContent(content) {
77
- return 'dashboardSlug' in content;
93
+ return content.type === 'dashboard' && 'dashboardSlug' in content;
94
+ }
95
+ function isChartContent(content) {
96
+ return content.type === 'chart';
97
+ }
98
+ function isDashboardContent(content) {
99
+ return content.type === 'dashboard';
78
100
  }
79
101
  // allows for backwards compatibility with old filter interactivity boolean values
80
102
  function getFilterInteractivityValue(enabled) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ee/embed/index.ts"],"names":[],"mappings":";;;AAsJA,wDAIC;AAED,wDAIC;AAOD,kEAUC;AAED,oEAyBC;AAED,0EAIC;;AAlND,6BAAwB;AAExB,8FAA8D;AAyB9D,IAAY,yBAIX;AAJD,WAAY,yBAAyB;IACjC,0CAAa,CAAA;IACb,wCAAW,CAAA;IACX,0CAAa,CAAA;AACjB,CAAC,EAJW,yBAAyB,yCAAzB,yBAAyB,QAIpC;AAEY,QAAA,+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AAC;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,IAAA,2BAAiB,EACpB,wBAAwB,EACxB,oCAAoC,wBAAwB,EAAE,CACjE,CAAC;IACV,CAAC;AACL,CAAC;AAED,SAAgB,+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,qBAAqB,GAAG;IAChC,gBAAgB,E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AAO,CAAC;KACrB,EAAE,CAAC;CACP"}
@@ -1,10 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ScimRoleType = void 0;
4
- var ScimRoleType;
5
- (function (ScimRoleType) {
6
- ScimRoleType["ORG"] = "ORG_SYSTEM";
7
- ScimRoleType["PROJECT"] = "PROJECT_SYSTEM";
8
- ScimRoleType["PROJECT_CUSTOM"] = "PROJECT_CUSTOM";
9
- })(ScimRoleType || (exports.ScimRoleType = ScimRoleType = {}));
10
3
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/ee/scim/types.ts"],"names":[],"mappings":";;;AA+DA,IAAY,YAIX;AAJD,WAAY,YAAY;IACpB,kCAAkB,CAAA;IAClB,0CAA0B,CAAA;IAC1B,iDAAiC,CAAA;AACrC,CAAC,EAJW,YAAY,4BAAZ,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
  };
@@ -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