@lightdash/common 0.2165.0 → 0.2166.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -40,6 +40,7 @@ export declare const baseAgentSchema: z.ZodObject<{
40
40
  model: z.ZodString;
41
41
  groupAccess: z.ZodArray<z.ZodString, "many">;
42
42
  userAccess: z.ZodArray<z.ZodString, "many">;
43
+ spaceAccess: z.ZodArray<z.ZodString, "many">;
43
44
  enableDataAccess: z.ZodBoolean;
44
45
  enableSelfImprovement: z.ZodBoolean;
45
46
  enableReasoning: z.ZodBoolean;
@@ -64,6 +65,7 @@ export declare const baseAgentSchema: z.ZodObject<{
64
65
  instruction: string | null;
65
66
  provider: string;
66
67
  groupAccess: string[];
68
+ spaceAccess: string[];
67
69
  enableDataAccess: boolean;
68
70
  enableSelfImprovement: boolean;
69
71
  enableReasoning: boolean;
@@ -87,13 +89,14 @@ export declare const baseAgentSchema: z.ZodObject<{
87
89
  instruction: string | null;
88
90
  provider: string;
89
91
  groupAccess: string[];
92
+ spaceAccess: string[];
90
93
  enableDataAccess: boolean;
91
94
  enableSelfImprovement: boolean;
92
95
  enableReasoning: boolean;
93
96
  }>;
94
97
  export type BaseAiAgent = z.infer<typeof baseAgentSchema>;
95
- export type AiAgent = Pick<BaseAiAgent, 'uuid' | 'projectUuid' | 'organizationUuid' | 'integrations' | 'tags' | 'name' | 'createdAt' | 'updatedAt' | 'instruction' | 'imageUrl' | 'groupAccess' | 'userAccess' | 'enableDataAccess' | 'enableSelfImprovement' | 'enableReasoning' | 'version'>;
96
- export type AiAgentSummary = Pick<AiAgent, 'uuid' | 'name' | 'integrations' | 'tags' | 'projectUuid' | 'organizationUuid' | 'createdAt' | 'updatedAt' | 'instruction' | 'imageUrl' | 'groupAccess' | 'userAccess' | 'enableDataAccess' | 'enableSelfImprovement' | 'enableReasoning' | 'version'>;
98
+ export type AiAgent = Pick<BaseAiAgent, 'uuid' | 'projectUuid' | 'organizationUuid' | 'integrations' | 'tags' | 'name' | 'createdAt' | 'updatedAt' | 'instruction' | 'imageUrl' | 'groupAccess' | 'userAccess' | 'spaceAccess' | 'enableDataAccess' | 'enableSelfImprovement' | 'enableReasoning' | 'version'>;
99
+ export type AiAgentSummary = Pick<AiAgent, 'uuid' | 'name' | 'integrations' | 'tags' | 'projectUuid' | 'organizationUuid' | 'createdAt' | 'updatedAt' | 'instruction' | 'imageUrl' | 'groupAccess' | 'userAccess' | 'spaceAccess' | 'enableDataAccess' | 'enableSelfImprovement' | 'enableReasoning' | 'version'>;
97
100
  export type AiAgentUser = {
98
101
  uuid: string;
99
102
  name: string;
@@ -148,8 +151,8 @@ export type ApiAiAgentSummaryResponse = {
148
151
  status: 'ok';
149
152
  results: AiAgentSummary[];
150
153
  };
151
- export type ApiCreateAiAgent = Pick<AiAgent, 'projectUuid' | 'integrations' | 'tags' | 'name' | 'instruction' | 'imageUrl' | 'groupAccess' | 'userAccess' | 'enableDataAccess' | 'enableSelfImprovement' | 'enableReasoning' | 'version'>;
152
- export type ApiUpdateAiAgent = Partial<Pick<AiAgent, 'projectUuid' | 'integrations' | 'tags' | 'name' | 'instruction' | 'imageUrl' | 'groupAccess' | 'userAccess' | 'enableDataAccess' | 'enableSelfImprovement' | 'enableReasoning' | 'version'>> & {
154
+ export type ApiCreateAiAgent = Pick<AiAgent, 'projectUuid' | 'integrations' | 'tags' | 'name' | 'instruction' | 'imageUrl' | 'groupAccess' | 'userAccess' | 'spaceAccess' | 'enableDataAccess' | 'enableSelfImprovement' | 'enableReasoning' | 'version'>;
155
+ export type ApiUpdateAiAgent = Partial<Pick<AiAgent, 'projectUuid' | 'integrations' | 'tags' | 'name' | 'instruction' | 'imageUrl' | 'groupAccess' | 'userAccess' | 'spaceAccess' | 'enableDataAccess' | 'enableSelfImprovement' | 'enableReasoning' | 'version'>> & {
153
156
  uuid: string;
154
157
  };
155
158
  export type ApiCreateAiAgentResponse = {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","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AAC;AAErC,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAChD,IAAI,CAAC,iBAAiB,EAAE,UAAU,CAAC,CACtC,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAC;AAExE,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAEtE,MAAM,MAAM,2BAA2B,GAAG;IACtC,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,UAAU,CAAC;IAClD,kBAAkB,EAAE,MAAM,CAAC;CAC9B,CAAC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG;IACjC,UAAU,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC"}
@@ -37,6 +37,7 @@ export const baseAgentSchema = z.object({
37
37
  model: z.string(),
38
38
  groupAccess: z.array(z.string()),
39
39
  userAccess: z.array(z.string()),
40
+ spaceAccess: z.array(z.string()),
40
41
  enableDataAccess: z.boolean(),
41
42
  enableSelfImprovement: z.boolean(),
42
43
  enableReasoning: z.boolean(),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ee/AiAgent/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAE7B,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,C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;QACL,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;QACxB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;KACxB,CAAC,CAEL;IAED,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE;IAC1B,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE;IAE1B,WAAW,EAAE,CAAC;SACT,MAAM,EAAE;SACR,GAAG,CACA,IAAI,EAAE,MAAM;IACZ,sEAAsE,CACzE;SACA,QAAQ,EAAE;IACf,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAChC,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC/B,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAChC,gBAAgB,EAAE,CAAC,CAAC,OAAO,EAAE;IAC7B,qBAAqB,EAAE,CAAC,CAAC,OAAO,EAAE;IAClC,eAAe,EAAE,CAAC,CAAC,OAAO,EAAE;IAC5B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AA8bH;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAC1B,MAA8B,EAC+B,EAAE,CAC/D,QAAQ,IAAI,MAAM,CAAC;AAEvB;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAC1B,MAA8B,EAKhC,EAAE,CAAC,YAAY,IAAI,MAAM,IAAI,YAAY,IAAI,MAAM,CAAC"}
@@ -1,4 +1,4 @@
1
- export declare const oauthPageStyles = "\n body {\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Open Sans', 'Helvetica Neue', sans-serif;\n background-color: #f8fafc;\n margin: 0;\n padding: 0;\n min-height: 100vh;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 14px;\n line-height: 1.4;\n }\n .container {\n background: white;\n border-radius: 4px;\n border: 1px solid #e9ecef;\n box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);\n padding: 24px;\n max-width: 400px;\n width: 90%;\n text-align: center;\n }\n h1 {\n color: #111418;\n margin: 0 0 16px 0;\n font-size: 20px;\n font-weight: 600;\n text-align: center;\n }\n p {\n color: #6c757d;\n margin: 0 0 12px 0;\n line-height: 1.4;\n font-size: 14px;\n }\n .success h1 {\n color: #10b981;\n }\n .error h1 {\n color: #ef4444;\n }\n .icon {\n width: 32px;\n height: 32px;\n margin: 0 auto 16px auto;\n display: block;\n }\n .success .icon {\n color: #10b981;\n }\n .error .icon {\n color: #ef4444;\n }\n .stack {\n display: flex;\n flex-direction: column;\n gap: 16px;\n }\n";
1
+ export declare const oauthPageStyles = "\n body {\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Open Sans', 'Helvetica Neue', sans-serif;\n background-color: #f8fafc;\n margin: 0;\n padding: 0;\n min-height: 100vh;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 14px;\n line-height: 1.4;\n }\n .container {\n background: white;\n border-radius: 8px;\n border: 1px solid #e9ecef;\n box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);\n padding: 24px;\n max-width: 400px;\n width: 90%;\n text-align: center;\n }\n .logo {\n width: 130px;\n height: auto;\n margin: 0 auto 24px auto;\n display: block;\n }\n h1 {\n color: #111418;\n margin: 0 0 16px 0;\n font-size: 18px;\n font-weight: 600;\n text-align: center;\n }\n p {\n color: #6c757d;\n margin: 0 0 12px 0;\n line-height: 1.4;\n font-size: 14px;\n }\n .icon {\n width: 32px;\n height: 32px;\n margin: 0 auto 16px auto;\n display: block;\n }\n .success .icon {\n color: #111418;\n }\n .error .icon {\n color: #6c757d;\n }\n .stack {\n display: flex;\n flex-direction: column;\n gap: 16px;\n }\n";
2
2
  declare const OAUTH_ICONS: {
3
3
  readonly success: "<circle cx=\"12\" cy=\"12\" r=\"10\" stroke=\"currentColor\" stroke-width=\"2\"/><path d=\"M9 12l2 2 4-4\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>";
4
4
  readonly error: "<circle cx=\"12\" cy=\"12\" r=\"10\" stroke=\"currentColor\" stroke-width=\"2\"/><path d=\"M15 9l-6 6M9 9l6 6\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>";
@@ -15,10 +15,16 @@ export interface OAuthUser {
15
15
  lastName: string;
16
16
  organizationName: string;
17
17
  }
18
+ export interface OAuthScopeDescription {
19
+ title: string;
20
+ description: string;
21
+ }
18
22
  export interface OAuthAuthorizeParams {
19
23
  action: string;
20
24
  client_id: string;
25
+ client_name: string;
21
26
  scope: string;
27
+ scopes: OAuthScopeDescription[];
22
28
  user: OAuthUser;
23
29
  hiddenInputs: OAuthHiddenInput[];
24
30
  }
@@ -26,6 +32,14 @@ export interface OAuthRedirectParams {
26
32
  redirectUrl: string;
27
33
  message: string;
28
34
  }
35
+ /**
36
+ * Parses a scope string (e.g. "read write") and returns an array of scope objects with descriptions
37
+ */
38
+ export declare const parseScopeString: (scopeString: string) => OAuthScopeDescription[];
39
+ /**
40
+ * Gets a friendly client name from the client_id
41
+ */
42
+ export declare const getClientName: (clientId: string) => string;
29
43
  /**
30
44
  * Generates an OAuth response HTML page using Handlebars templating
31
45
  * This prevents XSS issues by auto-escaping content while still allowing safe HTML in icons and styles
@@ -1 +1 @@
1
- {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../src/utils/oauth.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,u5CA2D3B,CAAC;AA0FF,QAAA,MAAM,WAAW;;;;CAM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AM,0BAA0B,WAC3B,oBAAoB,KAC7B,MAKG,CAAC;AAEP;;;GAGG;AACH,eAAO,MAAM,yBAAyB,WAC1B,mBAAmB,KAC5B,MAKG,CAAC"}
@@ -14,7 +14,7 @@ export const oauthPageStyles = `
14
14
  }
15
15
  .container {
16
16
  background: white;
17
- border-radius: 4px;
17
+ border-radius: 8px;
18
18
  border: 1px solid #e9ecef;
19
19
  box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
20
20
  padding: 24px;
@@ -22,10 +22,16 @@ export const oauthPageStyles = `
22
22
  width: 90%;
23
23
  text-align: center;
24
24
  }
25
+ .logo {
26
+ width: 130px;
27
+ height: auto;
28
+ margin: 0 auto 24px auto;
29
+ display: block;
30
+ }
25
31
  h1 {
26
32
  color: #111418;
27
33
  margin: 0 0 16px 0;
28
- font-size: 20px;
34
+ font-size: 18px;
29
35
  font-weight: 600;
30
36
  text-align: center;
31
37
  }
@@ -35,12 +41,6 @@ export const oauthPageStyles = `
35
41
  line-height: 1.4;
36
42
  font-size: 14px;
37
43
  }
38
- .success h1 {
39
- color: #10b981;
40
- }
41
- .error h1 {
42
- color: #ef4444;
43
- }
44
44
  .icon {
45
45
  width: 32px;
46
46
  height: 32px;
@@ -48,10 +48,10 @@ export const oauthPageStyles = `
48
48
  display: block;
49
49
  }
50
50
  .success .icon {
51
- color: #10b981;
51
+ color: #111418;
52
52
  }
53
53
  .error .icon {
54
- color: #ef4444;
54
+ color: #6c757d;
55
55
  }
56
56
  .stack {
57
57
  display: flex;
@@ -59,6 +59,22 @@ export const oauthPageStyles = `
59
59
  gap: 16px;
60
60
  }
61
61
  `;
62
+ // Lightdash logo SVG
63
+ const LIGHTDASH_LOGO_SVG = `
64
+ <svg class="logo" viewBox="0 0 433 91" fill="none" xmlns="http://www.w3.org/2000/svg">
65
+ <path d="M77.6432 54.6553H105.741V66.4099H64.2842V2.23145H77.6432V54.6553Z" fill="black"/>
66
+ <path d="M116.068 0C118.194 0 119.975 0.743596 121.411 2.23081C122.905 3.6608 123.652 5.43401 123.652 7.5504C123.652 9.6096 122.905 11.3828 121.411 12.87C119.975 14.3 118.194 15.015 116.068 15.015C113.942 15.015 112.16 14.3 110.724 12.87C109.288 11.3828 108.569 9.6096 108.569 7.5504C108.569 5.49121 109.316 3.718 110.81 2.23081C112.304 0.743596 114.057 0 116.068 0ZM122.359 66.4092H109.776V22.0505H122.359V66.4092Z" fill="black"/>
67
+ <path d="M148.734 21.1934C154.825 21.1934 159.249 23.0238 162.007 26.6845V22.0513H173.815V68.0402C173.815 74.4466 171.775 79.5659 167.695 83.3983C163.615 87.2307 158.157 89.1469 151.32 89.1469C144.597 89.1469 139.311 87.6025 135.461 84.5138C131.611 81.4822 129.256 77.3351 128.394 72.0728L140.891 71.6438C141.178 73.8174 142.212 75.5048 143.994 76.706C145.775 77.9072 148.073 78.5078 150.889 78.5078C154.106 78.5078 156.635 77.6784 158.473 76.0196C160.369 74.418 161.317 72.0728 161.317 68.9839V62.6348C158.387 65.7807 154.192 67.3537 148.734 67.3537C142.414 67.3537 137.242 65.2374 133.22 61.0046C129.256 56.7717 127.273 51.1948 127.273 44.2736C127.273 37.3524 129.256 31.7754 133.22 27.5426C137.242 23.3099 142.414 21.1934 148.734 21.1934ZM150.803 31.9185C147.585 31.9185 144.971 33.0052 142.959 35.1788C141.006 37.3524 140.029 40.384 140.029 44.2736C140.029 48.1632 141.006 51.1948 142.959 53.3684C144.971 55.5419 147.585 56.6288 150.803 56.6288C153.963 56.6288 156.491 55.6278 158.387 53.6258C160.341 51.5666 161.317 48.7924 161.317 45.3031V43.244C161.317 39.7548 160.341 37.0092 158.387 35.0072C156.491 32.948 153.963 31.9185 150.803 31.9185Z" fill="black"/>
68
+ <path d="M192.985 0V26.0832C195.399 22.9944 199.163 21.45 204.277 21.45C209.505 21.45 213.7 23.0516 216.86 26.2548C220.078 29.458 221.687 33.891 221.687 39.5537V66.6666H209.103V41.9561C209.103 39.1533 208.384 36.9797 206.949 35.4354C205.57 33.891 203.674 33.1187 201.26 33.1187C198.789 33.1187 196.778 33.9481 195.227 35.607C193.733 37.2086 192.985 39.3535 192.985 42.042V66.6666H180.403V0H192.985Z" fill="black"/>
69
+ <path d="M243.768 33.1183L243.682 49.5919C243.682 51.88 244.315 53.5673 245.579 54.6542C246.843 55.7409 248.451 56.2844 250.404 56.2844C251.383 56.2844 252.675 56.1413 254.284 55.8554V67.0093C251.87 67.3525 249.543 67.5241 247.303 67.5241C242.246 67.5241 238.253 66.2944 235.322 63.8346C232.449 61.3179 231.041 57.5713 231.099 52.5949L231.186 33.1183H223.084V22.3075H231.272L231.357 7.63574H243.941L243.855 22.3075H254.284V33.1183H243.768Z" fill="black"/>
70
+ <path d="M302.143 66.6666H290.335V62.1192C289.071 63.7208 287.29 65.0363 284.991 66.066C282.693 67.0956 280.05 67.6103 277.063 67.6103C270.743 67.6103 265.571 65.494 261.548 61.2612C257.584 57.0283 255.602 51.4514 255.602 44.5301C255.602 37.609 257.584 32.032 261.548 27.7992C265.571 23.5664 270.743 21.45 277.063 21.45C282.693 21.45 286.889 23.023 289.645 26.169V0H302.143V66.6666ZM279.131 32.175C275.913 32.175 273.299 33.2618 271.288 35.4354C269.334 37.609 268.358 40.6406 268.358 44.5301C268.358 48.4198 269.334 51.4514 271.288 53.625C273.299 55.7413 275.913 56.7995 279.131 56.7995C282.291 56.7995 284.82 55.7985 286.715 53.7965C288.669 51.7945 289.645 49.0204 289.645 45.474V43.5006C289.645 40.0114 288.669 37.2658 286.715 35.2638C284.82 33.2046 282.291 32.175 279.131 32.175Z" fill="black"/>
71
+ <path d="M326.898 21.4502C332.931 21.4502 337.529 22.9661 340.688 25.9976C343.849 29.0292 345.429 33.4622 345.429 39.2966V66.6668H333.276V63.0632C330.346 66.0948 326.553 67.6105 321.899 67.6105C317.303 67.6105 313.683 66.4952 311.04 64.2644C308.398 61.9763 307.076 58.716 307.076 54.4832C307.076 46.0176 313.023 41.5273 324.916 41.0126L332.846 40.5835V38.8676C332.846 34.2916 330.92 32.0036 327.071 32.0036C325.06 32.0036 323.509 32.5755 322.417 33.7195C321.383 34.8636 320.865 36.2364 320.865 37.838L308.282 37.3231C308.282 33.2048 310.006 29.5439 313.454 26.3407C316.958 23.0804 321.44 21.4502 326.898 21.4502ZM332.846 48.8204L326.123 49.2494C321.814 49.421 319.659 50.9653 319.659 53.8826C319.659 56.5709 321.383 57.9152 324.831 57.9152C327.187 57.9152 329.111 57.286 330.604 56.0275C332.099 54.7691 332.846 52.9959 332.846 50.708V48.8204Z" fill="black"/>
72
+ <path d="M367.548 21.4502C373.006 21.4502 377.259 22.7659 380.304 25.397C383.406 28.0282 385.159 31.4888 385.561 35.7787L373.064 36.4652C372.892 32.8616 370.995 31.0598 367.375 31.0598C363.985 31.0598 362.29 32.3181 362.29 34.835C362.29 35.1781 362.319 35.4928 362.377 35.7787C362.434 36.0648 362.55 36.3221 362.721 36.5509C362.951 36.7797 363.153 36.9799 363.324 37.1515C363.498 37.3231 363.785 37.4948 364.187 37.6664C364.59 37.838 364.906 37.9809 365.135 38.0954C365.422 38.2098 365.824 38.3527 366.341 38.5244C366.917 38.696 367.375 38.839 367.72 38.9533C368.065 39.0106 368.583 39.1249 369.272 39.2966C370.018 39.4682 370.594 39.6112 370.995 39.7255C376.109 41.0412 379.902 42.6428 382.371 44.5303C384.901 46.3607 386.164 49.1349 386.164 52.853C386.164 57.4289 384.556 61.0325 381.339 63.6638C378.12 66.295 373.639 67.6105 367.893 67.6105C362.205 67.6105 357.723 66.3807 354.448 63.9212C351.229 61.4043 349.391 57.8293 348.931 53.1961L361.515 52.5098C361.687 56.1705 363.842 58.0009 367.978 58.0009C369.702 58.0009 371.053 57.6578 372.029 56.9713C373.064 56.2277 373.582 55.2267 373.582 53.9683C373.582 52.6528 373.035 51.6804 371.944 51.0512C370.91 50.422 368.754 49.707 365.48 48.9062C363.182 48.3342 361.371 47.848 360.05 47.4476C358.786 47.0472 357.378 46.5038 355.827 45.8174C354.332 45.0738 353.213 44.273 352.466 43.415C351.718 42.5569 351.058 41.4702 350.483 40.1545C349.965 38.7817 349.707 37.2088 349.707 35.4356C349.707 31.1455 351.287 27.7421 354.448 25.2254C357.607 22.7085 361.974 21.4502 367.548 21.4502Z" fill="black"/>
73
+ <path d="M403.303 0V26.0832C405.717 22.9944 409.48 21.45 414.595 21.45C419.823 21.45 424.018 23.0516 427.177 26.2548C430.396 29.458 432.005 33.891 432.005 39.5537V66.6666H419.42V41.9561C419.42 39.1533 418.702 36.9797 417.266 35.4354C415.887 33.891 413.992 33.1187 411.578 33.1187C409.107 33.1187 407.096 33.9481 405.545 35.607C404.05 37.2086 403.303 39.3535 403.303 42.042V66.6666H390.72V0H403.303Z" fill="black"/>
74
+ <path d="M26.8892 22.6484H42.8932C45.5303 22.6484 47.1695 25.4575 45.8438 27.6794L20.7566 70.1648C20.1294 71.2268 18.989 71.8418 17.7917 71.8418C15.6109 71.8418 13.9574 69.8433 14.4705 67.719L21.0418 40.5368L26.8892 22.6484Z" fill="black"/>
75
+ <path d="M32.3878 6.21237L26.7217 24.3172L20.8336 42.1711H3.79636C1.71516 42.1711 0.107613 40.3857 0.380322 38.3771L4.97332 4.90124C5.20297 3.2414 6.66699 2 8.38936 2H29.0578C31.3114 2 32.9619 4.09225 32.3878 6.21237Z" fill="black"/>
76
+ </svg>
77
+ `;
62
78
  // OAuth response HTML template
63
79
  const OAUTH_RESPONSE_TEMPLATE = `
64
80
  <html>
@@ -68,6 +84,7 @@ const OAUTH_RESPONSE_TEMPLATE = `
68
84
  <body>
69
85
  <div class="stack">
70
86
  <div class="container {{status}}">
87
+ {{{logo}}}
71
88
  <svg class="icon" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
72
89
  {{{icon}}}
73
90
  </svg>
@@ -87,57 +104,121 @@ const OAUTH_AUTHORIZE_TEMPLATE = `
87
104
  <title>Authorize Application</title>
88
105
  <style>
89
106
  {{{styles}}}
90
- .container, .container p, .container strong, .container form { text-align: center; }
91
- .container p { margin-left: auto; margin-right: auto; }
92
- .oauth-desc { margin-bottom: 18px; color: #374151; font-size: 12px; }
93
- .oauth-btn-row { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
107
+ .container { text-align: left; }
108
+ .oauth-header {
109
+ text-align: center;
110
+ margin-bottom: 24px;
111
+ }
112
+ .oauth-message {
113
+ text-align: center;
114
+ margin-bottom: 24px;
115
+ font-size: 14px;
116
+ color: #111418;
117
+ }
118
+ .oauth-message strong {
119
+ font-weight: 600;
120
+ }
121
+ .oauth-scopes {
122
+ border-top: 1px solid #e9ecef;
123
+ padding-top: 16px;
124
+ margin-bottom: 16px;
125
+ }
126
+ .oauth-scope-item {
127
+ display: flex;
128
+ gap: 12px;
129
+ padding: 12px 0;
130
+ border-bottom: 1px solid #f8fafc;
131
+ }
132
+ .oauth-scope-icon {
133
+ flex-shrink: 0;
134
+ width: 16px;
135
+ height: 16px;
136
+ margin-top: 2px;
137
+ }
138
+ .oauth-scope-content {
139
+ flex: 1;
140
+ }
141
+ .oauth-scope-title {
142
+ font-weight: 500;
143
+ color: #111418;
144
+ margin-bottom: 4px;
145
+ }
146
+ .oauth-scope-desc {
147
+ font-size: 12px;
148
+ color: #6c757d;
149
+ line-height: 1.4;
150
+ }
151
+ .oauth-btn-row {
152
+ display: flex;
153
+ justify-content: center;
154
+ gap: 12px;
155
+ margin-top: 24px;
156
+ padding-top: 16px;
157
+ border-top: 1px solid #e9ecef;
158
+ }
94
159
  .oauth-btn {
95
160
  padding: 8px 24px;
96
- border: none;
97
- border-radius: 4px;
98
- font-weight: 600;
99
- font-size: 15px;
161
+ border: 1px solid #e9ecef;
162
+ border-radius: 8px;
163
+ font-weight: 500;
164
+ font-size: 14px;
100
165
  cursor: pointer;
101
- transition: background 0.15s;
166
+ transition: background 0.15s, border-color 0.15s;
102
167
  }
103
168
  .oauth-btn.approve {
104
- background: #00B26F;
169
+ background: #111418;
105
170
  color: #fff;
171
+ border-color: #111418;
106
172
  }
107
173
  .oauth-btn.approve:hover {
108
- background: #00975E;
174
+ background: #2c2e33;
175
+ border-color: #2c2e33;
109
176
  }
110
177
  .oauth-btn.deny {
111
- background: #E03131;
112
- color: #fff;
178
+ background: transparent;
179
+ color: #111418;
180
+ border-color: #e9ecef;
113
181
  }
114
182
  .oauth-btn.deny:hover {
115
- background: #B32525;
183
+ background: #f8fafc;
184
+ border-color: #dee2e6;
116
185
  }
117
186
  </style>
118
187
  </head>
119
188
  <body>
120
189
  <div class="stack">
121
190
  <form class="container" method="POST" action="{{action}}">
122
- <h1>Authorize Application</h1>
123
- <p class="oauth-desc">
124
- You are about to grant access to your Lightdash account using OAuth.<br/>
125
- This is a secure way to let trusted applications access your account without sharing your password.<br/>
126
- Approving will allow the client below to perform actions on your behalf, according to the requested permissions.
191
+ <div class="oauth-header">
192
+ {{{logo}}}
193
+ <h1>Authorize Application</h1>
194
+ </div>
195
+
196
+ <p class="oauth-message">
197
+ <strong>{{client_name}}</strong> wants to access your Lightdash account <strong>{{user.firstName}} {{user.lastName}}</strong>
127
198
  </p>
128
- <p>Client: <b>{{client_id}}</b></p>
129
- <p>Scope: <b>{{scope}}</b></p>
130
-
199
+
200
+ <div class="oauth-scopes">
201
+ {{#each scopes}}
202
+ <div class="oauth-scope-item">
203
+ <svg class="oauth-scope-icon" viewBox="0 0 16 16" fill="currentColor">
204
+ <path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0z"/>
205
+ <path d="M11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/>
206
+ </svg>
207
+ <div class="oauth-scope-content">
208
+ <div class="oauth-scope-title">{{title}}</div>
209
+ <div class="oauth-scope-desc">{{description}}</div>
210
+ </div>
211
+ </div>
212
+ {{/each}}
213
+ </div>
214
+
131
215
  {{#each hiddenInputs}}
132
216
  <input type="hidden" name="{{name}}" value="{{value}}" />
133
217
  {{/each}}
134
-
135
- <p>Authenticate as user: <b>{{user.firstName}} {{user.lastName}}</b></p>
136
- <p>on organization: <b>{{user.organizationName}}</b></p>
137
218
 
138
219
  <div class="oauth-btn-row">
139
- <button type="submit" name="approve" value="true" class="oauth-btn approve">Approve</button>
140
- <button type="submit" name="approve" value="false" class="oauth-btn deny">Deny</button>
220
+ <button type="submit" name="approve" value="true" class="oauth-btn approve">Authorize</button>
221
+ <button type="submit" name="approve" value="false" class="oauth-btn deny">Cancel</button>
141
222
  </div>
142
223
  </form>
143
224
  </div>
@@ -162,7 +243,7 @@ const OAUTH_REDIRECT_TEMPLATE = `
162
243
  height: 32px;
163
244
  margin: 0 auto 16px auto;
164
245
  border: 3px solid #e9ecef;
165
- border-top: 3px solid #00B26F;
246
+ border-top: 3px solid #111418;
166
247
  border-radius: 50%;
167
248
  animation: spin 1s linear infinite;
168
249
  }
@@ -171,9 +252,9 @@ const OAUTH_REDIRECT_TEMPLATE = `
171
252
  100% { transform: rotate(360deg); }
172
253
  }
173
254
  .redirect-link {
174
- color: #00B26F;
255
+ color: #111418;
175
256
  text-decoration: none;
176
- font-weight: 600;
257
+ font-weight: 500;
177
258
  }
178
259
  .redirect-link:hover {
179
260
  text-decoration: underline;
@@ -188,6 +269,7 @@ const OAUTH_REDIRECT_TEMPLATE = `
188
269
  <body>
189
270
  <div class="stack">
190
271
  <div class="container">
272
+ {{{logo}}}
191
273
  <div class="spinner"></div>
192
274
  <h1>Redirecting...</h1>
193
275
  <p>{{message}}</p>
@@ -201,12 +283,53 @@ const OAUTH_REDIRECT_TEMPLATE = `
201
283
  const compiledResponseTemplate = compile(OAUTH_RESPONSE_TEMPLATE);
202
284
  const compiledAuthorizeTemplate = compile(OAUTH_AUTHORIZE_TEMPLATE);
203
285
  const compiledRedirectTemplate = compile(OAUTH_REDIRECT_TEMPLATE);
286
+ // Scope descriptions mapping
287
+ const SCOPE_DESCRIPTIONS = {
288
+ read: {
289
+ title: 'Read access',
290
+ description: 'View your projects, dashboards, charts, and other resources',
291
+ },
292
+ write: {
293
+ title: 'Write access',
294
+ description: 'Create, update, and delete projects, dashboards, charts, and other resources',
295
+ },
296
+ 'mcp:read': {
297
+ title: 'MCP read access',
298
+ description: 'Read access through Model Context Protocol',
299
+ },
300
+ 'mcp:write': {
301
+ title: 'MCP write access',
302
+ description: 'Write access through Model Context Protocol',
303
+ },
304
+ };
305
+ /**
306
+ * Parses a scope string (e.g. "read write") and returns an array of scope objects with descriptions
307
+ */
308
+ export const parseScopeString = (scopeString) => {
309
+ if (!scopeString || typeof scopeString !== 'string') {
310
+ return [];
311
+ }
312
+ const scopes = scopeString.trim().split(/\s+/);
313
+ return scopes
314
+ .map((scope) => SCOPE_DESCRIPTIONS[scope])
315
+ .filter((scope) => scope !== undefined);
316
+ };
317
+ /**
318
+ * Gets a friendly client name from the client_id
319
+ */
320
+ export const getClientName = (clientId) => {
321
+ const clientNames = {
322
+ 'lightdash-cli': 'Lightdash CLI tool',
323
+ };
324
+ return clientNames[clientId] || clientId;
325
+ };
204
326
  /**
205
327
  * Generates an OAuth response HTML page using Handlebars templating
206
328
  * This prevents XSS issues by auto-escaping content while still allowing safe HTML in icons and styles
207
329
  */
208
330
  export const generateOAuthResponseHtml = (status, title, messages, iconType = status === 'success' ? 'success' : 'error') => compiledResponseTemplate({
209
331
  styles: oauthPageStyles,
332
+ logo: LIGHTDASH_LOGO_SVG,
210
333
  status,
211
334
  title,
212
335
  messages,
@@ -229,6 +352,7 @@ export const generateOAuthErrorResponse = (title, messages, iconType = 'error')
229
352
  */
230
353
  export const generateOAuthAuthorizePage = (params) => compiledAuthorizeTemplate({
231
354
  styles: oauthPageStyles,
355
+ logo: LIGHTDASH_LOGO_SVG,
232
356
  ...params,
233
357
  });
234
358
  /**
@@ -237,6 +361,7 @@ export const generateOAuthAuthorizePage = (params) => compiledAuthorizeTemplate(
237
361
  */
238
362
  export const generateOAuthRedirectPage = (params) => compiledRedirectTemplate({
239
363
  styles: oauthPageStyles,
364
+ logo: LIGHTDASH_LOGO_SVG,
240
365
  ...params,
241
366
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B,IAAI,EAAE,kBAAkB;IACxB,GAAG,MAAM;CACZ,CAAC,CAAC;AAEP;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CACrC,MAA2B,EACrB,EAAE,CACR,wBAAwB,CAAC;IACrB,MAAM,EAAE,eAAe;IACvB,IAAI,EAAE,kBAAkB;IACxB,GAAG,MAAM;CACZ,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/common",
3
- "version": "0.2165.0",
3
+ "version": "0.2166.0",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",