@lightdash/cli 3.132.0 → 3.133.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.
@@ -59,7 +59,7 @@ exports.COMMAND_POLICY = {
59
59
  'install-skills': local('Public GitHub assets only'),
60
60
  };
61
61
  const refusedModes = {
62
- deploy: ['create', 'source', 'target', 'organizationCredentials'],
62
+ deploy: ['create', 'source', 'target'],
63
63
  download: ['organization', 'skills', 'includeSkills', 'includeAll'],
64
64
  upload: [
65
65
  'validate',
@@ -1,5 +1,4 @@
1
1
  import { CreateProjectTableConfiguration, ProjectType, type ApiCreateProjectResults, type CreateWarehouseCredentials, type DbtVersionOption } from '@lightdash/common';
2
- export declare const resolveOrganizationCredentialsName: (name: string) => Promise<string>;
3
2
  type CreateProjectOptions = {
4
3
  name: string;
5
4
  projectDir: string;
@@ -13,7 +12,6 @@ type CreateProjectOptions = {
13
12
  copyContent?: boolean;
14
13
  asyncCopyContent?: boolean;
15
14
  warehouseCredentials?: boolean;
16
- organizationCredentials?: string;
17
15
  targetPath?: string;
18
16
  assumeYes?: boolean;
19
17
  expiresIn?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"createProject.d.ts","sourceRoot":"","sources":["../../src/handlers/createProject.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,+BAA+B,EAI/B,WAAW,EAGX,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,gBAAgB,EAExB,MAAM,mBAAmB,CAAC;AAkE3B,eAAO,MAAM,kCAAkC,SACrC,MAAM,KACb,OAAO,CAAC,MAAM,CAyChB,CAAC;AAEF,KAAK,oBAAoB,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,IAAI,EAAE,WAAW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AAa,YACb,oBAAoB,KAC9B,OAAO,CAAC,uBAAuB,GAAG,SAAS,CAmF7C,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createProject = exports.loadWarehouseCredentialsFromProfiles = exports.resolveOrganizationCredentialsName = void 0;
3
+ exports.createProject = exports.loadWarehouseCredentialsFromProfiles = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const common_1 = require("@lightdash/common");
6
6
  const inquirer_1 = tslib_1.__importDefault(require("inquirer"));
@@ -59,34 +59,6 @@ const askPermissionToStoreWarehouseCredentials = async (assumeYes = false) => {
59
59
  }
60
60
  return savedAnswer;
61
61
  };
62
- const resolveOrganizationCredentialsName = async (name) => {
63
- globalState_1.default.debug(`> Resolving organization warehouse credentials: ${name}`);
64
- try {
65
- const credentialsList = await (0, apiClient_1.lightdashApi)({
66
- method: 'GET',
67
- url: '/api/v1/org/warehouse-credentials?summary=true',
68
- body: undefined,
69
- });
70
- const credential = credentialsList.find((cred) => cred.name === name);
71
- if (!credential) {
72
- const availableNames = credentialsList.length > 0
73
- ? credentialsList
74
- .map((c) => ` - ${c.name} (${c.warehouseType})`)
75
- .join('\n')
76
- : ' (none available)';
77
- throw new Error(`Organization warehouse credentials "${name}" not found.\n\nAvailable credentials:\n${availableNames}`);
78
- }
79
- globalState_1.default.debug(`> Resolved "${name}" to UUID: ${credential.organizationWarehouseCredentialsUuid}`);
80
- return credential.organizationWarehouseCredentialsUuid;
81
- }
82
- catch (error) {
83
- if (error instanceof Error) {
84
- throw error;
85
- }
86
- throw new Error('Failed to resolve organization warehouse credentials. This may be an Enterprise Edition feature that is not available.');
87
- }
88
- };
89
- exports.resolveOrganizationCredentialsName = resolveOrganizationCredentialsName;
90
62
  const isSnowflakeSsoEnabled = async () => {
91
63
  const response = await (0, apiClient_1.lightdashApi)({
92
64
  method: 'GET',
@@ -191,41 +163,11 @@ exports.loadWarehouseCredentialsFromProfiles = loadWarehouseCredentialsFromProfi
191
163
  const createProject = async (options) => {
192
164
  (0, commandPolicy_1.assertAgentCommandAllowed)('deploy', { create: true });
193
165
  await (0, apiClient_1.checkProjectCreationPermission)(options.upstreamProjectUuid, options.type);
194
- // Resolve organization credentials early before doing any heavy work
195
- let organizationWarehouseCredentialsUuid;
196
- if (options.organizationCredentials) {
197
- organizationWarehouseCredentialsUuid =
198
- await (0, exports.resolveOrganizationCredentialsName)(options.organizationCredentials);
199
- }
200
- const absoluteProjectPath = path_1.default.resolve(options.projectDir);
201
166
  let targetName;
202
167
  let credentials;
203
168
  let isDbtCloudCLI = false;
204
169
  let dbtVersionOption = (0, common_1.getLatestSupportDbtVersion)();
205
- // If using organization credentials, don't load warehouse credentials from profiles
206
- if (organizationWarehouseCredentialsUuid) {
207
- globalState_1.default.debug(`> Using organization warehouse credentials: ${options.organizationCredentials}`);
208
- const dbtVersionResult = await (0, getDbtVersion_1.tryGetDbtVersion)();
209
- if (!dbtVersionResult.success) {
210
- throw dbtVersionResult.error;
211
- }
212
- isDbtCloudCLI = dbtVersionResult.version.isDbtCloudCLI;
213
- dbtVersionOption = dbtVersionResult.version.versionOption;
214
- // Still need to get target name for dbt connection
215
- const context = await (0, context_1.getDbtContext)({
216
- projectDir: absoluteProjectPath,
217
- targetPath: options.targetPath,
218
- });
219
- globalState_1.default.debug(`> Using profiles dir ${options.profilesDir} and profile ${options.profile || context.profileName}`);
220
- targetName = await (0, getDbtProfileTargetName_1.default)({
221
- isDbtCloudCLI,
222
- profilesDir: options.profilesDir,
223
- profile: options.profile || context.profileName,
224
- target: options.target,
225
- });
226
- globalState_1.default.debug(`> Using target name ${targetName}`);
227
- }
228
- else if (options.warehouseCredentials === false) {
170
+ if (options.warehouseCredentials === false) {
229
171
  globalState_1.default.debug('> Creating project without warehouse credentials');
230
172
  // No dbt needed - use defaults set above
231
173
  }
@@ -272,7 +214,6 @@ const createProject = async (options) => {
272
214
  tableConfiguration: options.tableConfiguration,
273
215
  copyContent: options.copyContent,
274
216
  asyncCopyContent: options.asyncCopyContent ?? false,
275
- organizationWarehouseCredentialsUuid,
276
217
  ...(options.expiresIn !== undefined
277
218
  ? { expiresInHours: options.expiresIn }
278
219
  : {}),
@@ -12,7 +12,6 @@ type DeployHandlerOptions = DbtCompileOptions & {
12
12
  ignoreErrors: boolean;
13
13
  startOfWeek?: number;
14
14
  warehouseCredentials?: boolean;
15
- organizationCredentials?: string;
16
15
  assumeYes?: boolean;
17
16
  batchedDeploy?: boolean;
18
17
  batchSize?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../src/handlers/deploy.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,OAAO,EACP,YAAY,EASZ,KAAK,eAAe,EACpB,KAAK,YAAY,EAGpB,MAAM,mBAAmB,CAAC;AAoB3B,OAAO,EAAE,cAAc,EAAqB,MAAM,0BAA0B,CAAC;AAgB7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAUlD,KAAK,oBAAoB,GAAG,iBAAiB,GAAG;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,IAAI,CAAC,E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Options) => {
515
515
  globalState_1.default.debug(`> Could not detect adapter type: ${(0, common_1.getErrorMessage)(e)}`);
516
516
  }
517
517
  }
518
- // Resolve organization credentials early before doing any heavy work
519
- if (options.organizationCredentials) {
520
- try {
521
- await (0, createProject_1.resolveOrganizationCredentialsName)(options.organizationCredentials);
522
- }
523
- catch (error) {
524
- console.error(styles.error(error instanceof Error ? error.message : 'Unknown error'));
525
- process.exit(1);
526
- }
527
- }
528
518
  // Only check dbt version for dbt projects (YAML-only projects don't need dbt)
529
519
  // For YAML-only projects, we return success: false to indicate dbt wasn't checked,
530
520
  // with null error since this is expected behavior, not an error condition.
@@ -12,7 +12,6 @@ type PreviewHandlerOptions = DbtCompileOptions & {
12
12
  tableConfiguration: CreateProjectTableConfiguration;
13
13
  skipCopyContent?: boolean;
14
14
  asyncCopyContent?: boolean;
15
- organizationCredentials?: string;
16
15
  assumeYes?: boolean;
17
16
  warehouseCredentials?: boolean;
18
17
  batchedDeploy?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../src/handlers/preview.ts"],"names":[],"mappings":"AACA,OAAO,EACH,+BAA+B,EAUlC,MAAM,mBAAmB,CAAC;AAoB3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAalD,KAAK,qBAAqB,GAAG,iBAAiB,GAAG;IAC7C,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,kBAAkB,EAAE,+BAA+B,CAAC;IACpD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC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ACd,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,kBAAkB,EAAE,+BAA+B,CAAC;IACpD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,wBAAwB,EAAE,OAAO,CAAC;IAClC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAoBF,KAAK,yBAAyB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;CACpB,CAAC;AAmQF,eAAO,MAAM,cAAc,oBACN,qBAAqB,KACvC,OAAO,CAAC,IAAI,CAsWd,CAAC;AAEF,eAAO,MAAM,mBAAmB,oBACX,qBAAqB,KACvC,OAAO,CAAC,IAAI,CAyQd,CAAC;AAEF,eAAO,MAAM,kBAAkB,YAClB,yBAAyB,KACnC,OAAO,CAAC,IAAI,CA2Cd,CAAC"}
@@ -147,10 +147,6 @@ const resolveSourceConnection = async (project, sourceOption, upstreamProjectUui
147
147
  // with the same name pushes freshly resolved ones into the existing preview.
148
148
  const refreshPreviewWarehouseCredentials = async (projectUuid, options, upstreamProjectUuid) => {
149
149
  const source = (0, warehouseConnection_1.getWarehouseCredentialsSource)(options);
150
- if (source.source === 'organization') {
151
- globalState_1.default.debug(`> Preview uses organization warehouse credentials "${source.name}", nothing to refresh`);
152
- return;
153
- }
154
150
  if (source.source === 'none') {
155
151
  globalState_1.default.debug('> Skipping warehouse credentials refresh (--no-warehouse-credentials)');
156
152
  return;
@@ -1,14 +1,10 @@
1
1
  import { type CreateWarehouseCredentials, type Project } from '@lightdash/common';
2
2
  type WarehouseCredentialsSource = {
3
3
  source: 'profiles';
4
- } | {
5
- source: 'organization';
6
- name: string;
7
4
  } | {
8
5
  source: 'none';
9
6
  };
10
7
  export declare const getWarehouseCredentialsSource: (options: {
11
- organizationCredentials?: string;
12
8
  warehouseCredentials?: boolean;
13
9
  }) => WarehouseCredentialsSource;
14
10
  export declare const updateProjectWarehouseConnection: (project: Pick<Project, 'projectUuid' | 'name' | 'dbtConnection' | 'dbtVersion'>, credentials: CreateWarehouseCredentials, jobLabel: string) => Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"warehouseConnection.d.ts","sourceRoot":"","sources":["../../src/handlers/warehouseConnection.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,KAAK,0BAA0B,EAC/B,KAAK,OAAO,EAEf,MAAM,mBAAmB,CAAC;AAI3B,KAAK,0BAA0B,GACzB;IAAE,MAAM,EAAE,UAAU,CAAA;CAAE,GACtB;IAAE,MAAM,EAAE,cAAc,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACxC;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzB,eAAO,MAAM,6BAA6B,YAAa;IACnD,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAClC,KAAG,0BAWH,CAAC;AAEF,eAAO,MAAM,gCAAgC,YAChC,IAAI,CACT,OAAO,EACP,aAAa,GAAG,MAAM,GAAG,eAAe,GAAG,YAAY,CAC1D,eACY,0BAA0B,YAC7B,MAAM,KACjB,OAAO,CAAC,IAAI,CAmBd,CAAC"}
1
+ {"version":3,"file":"warehouseConnection.d.ts","sourceRoot":"","sources":["../../src/handlers/warehouseConnection.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,KAAK,0BAA0B,EAC/B,KAAK,OAAO,EAEf,MAAM,mBAAmB,CAAC;AAI3B,KAAK,0BAA0B,GAAG;IAAE,MAAM,EAAE,UAAU,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9E,eAAO,MAAM,6BAA6B,YAAa;IACnD,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAClC,KAAG,0BAKH,CAAC;AAEF,eAAO,MAAM,gCAAgC,YAChC,IAAI,CACT,OAAO,EACP,aAAa,GAAG,MAAM,GAAG,eAAe,GAAG,YAAY,CAC1D,eACY,0BAA0B,YAC7B,MAAM,KACjB,OAAO,CAAC,IAAI,CAmBd,CAAC"}
@@ -4,12 +4,6 @@ exports.updateProjectWarehouseConnection = exports.getWarehouseCredentialsSource
4
4
  const apiClient_1 = require("./dbt/apiClient");
5
5
  const refresh_1 = require("./dbt/refresh");
6
6
  const getWarehouseCredentialsSource = (options) => {
7
- if (options.organizationCredentials) {
8
- return {
9
- source: 'organization',
10
- name: options.organizationCredentials,
11
- };
12
- }
13
7
  if (options.warehouseCredentials === false) {
14
8
  return { source: 'none' };
15
9
  }
package/dist/index.js CHANGED
@@ -360,7 +360,6 @@ commander_1.program
360
360
  .option('--async-copy-content', 'Copy preview content in a background job to avoid request timeouts', false)
361
361
  .option('--disable-timestamp-conversion [true|false]', 'Disable timestamp conversion to UTC for Snowflake warehouses. Applied when creating the preview project; ignored when updating an existing preview (read from project settings).', parseDisableTimestampConversionOption)
362
362
  .option('--no-warehouse-credentials', 'Create preview without warehouse credentials. Copies credentials from upstream project.')
363
- .option('--organization-credentials <name>', 'Use organization warehouse credentials with the specified name (Enterprise Edition feature)')
364
363
  .option('--no-batched-deploy', 'Use the legacy single-request deploy')
365
364
  .option('--use-batched-deploy', 'Use batched deploy to upload explores in batches')
366
365
  .option('--batch-size <number>', 'Number of explores to deploy in each batch (default: 50)', '50')
@@ -614,7 +613,6 @@ commander_1.program
614
613
  .option('--skip-warehouse-catalog', 'Skip fetch warehouse catalog and use types in yml', false)
615
614
  .option('--use-dbt-list [true|false]', 'Use `dbt list` instead of `dbt compile` to generate dbt manifest.json', parseUseDbtListOption, true)
616
615
  .option('--no-warehouse-credentials', 'Create project without warehouse credentials. Skips dbt compile + warehouse catalog')
617
- .option('--organization-credentials <name>', 'Use organization warehouse credentials with the specified name (Enterprise Edition feature)')
618
616
  .option('--disable-timestamp-conversion [true|false]', 'Disable timestamp conversion to UTC for Snowflake warehouses. Only used when creating a new project with --create; otherwise the setting is read from the project settings.', parseDisableTimestampConversionOption)
619
617
  .option('-y, --assume-yes', 'assume yes to prompts', false)
620
618
  .option('--no-batched-deploy', 'Use the legacy single-request deploy')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/cli",
3
- "version": "3.132.0",
3
+ "version": "3.133.1",
4
4
  "description": "Lightdash CLI tool",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -22,8 +22,8 @@
22
22
  "@actions/core": "1.11.1",
23
23
  "@aws-sdk/credential-providers": "3.995.0",
24
24
  "@casl/ability": "6.8.0",
25
- "@lightdash/common": "3.132.0",
26
- "@lightdash/warehouses": "3.132.0",
25
+ "@lightdash/common": "3.133.1",
26
+ "@lightdash/warehouses": "3.133.1",
27
27
  "@sidvind/better-ajv-errors": "7.0.0",
28
28
  "@types/columnify": "1.5.1",
29
29
  "ajv": "8.18.0",