@levr-one/cli 0.5.1 → 0.5.3

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.
package/dist/cli.js CHANGED
@@ -180,7 +180,7 @@ Examples:
180
180
  aliases: { d: "device-code" }
181
181
  },
182
182
  loader: async () => {
183
- const { loginHandler } = await import("./loginHandler-BhvCWTd8.js");
183
+ const { loginHandler } = await import("./loginHandler-UgJVw00A.js");
184
184
  return loginHandler;
185
185
  }
186
186
  });
@@ -219,7 +219,7 @@ Examples:
219
219
  },
220
220
  parameters: {},
221
221
  loader: async () => {
222
- const { statusHandler } = await import("./statusHandler-B6XRPg4k.js");
222
+ const { statusHandler } = await import("./statusHandler-CgoR1cyg.js");
223
223
  return statusHandler;
224
224
  }
225
225
  });
@@ -330,7 +330,7 @@ Examples:
330
330
  }
331
331
  },
332
332
  loader: async () => {
333
- const { pushHandler } = await import("./pushHandler-v4-lHK6A.js");
333
+ const { pushHandler } = await import("./pushHandler-DzqmvFRk.js");
334
334
  return pushHandler;
335
335
  }
336
336
  });
@@ -442,7 +442,7 @@ Examples:
442
442
  }
443
443
  },
444
444
  loader: async () => {
445
- const { importHandler } = await import("./importHandler-D27Xrx73.js");
445
+ const { importHandler } = await import("./importHandler-tCvRZ0VR.js");
446
446
  return importHandler;
447
447
  }
448
448
  });
@@ -463,7 +463,7 @@ Examples:
463
463
  },
464
464
  parameters: {},
465
465
  loader: async () => {
466
- const { listHandler } = await import("./listHandler-8uqFClxw.js");
466
+ const { listHandler } = await import("./listHandler-CjYuY_QX.js");
467
467
  return listHandler;
468
468
  }
469
469
  });
@@ -496,7 +496,7 @@ Examples:
496
496
  flags: {}
497
497
  },
498
498
  loader: async () => {
499
- const { selectHandler } = await import("./selectHandler-DeEZe6PU.js");
499
+ const { selectHandler } = await import("./selectHandler-DDMOXmRb.js");
500
500
  return selectHandler;
501
501
  }
502
502
  });
@@ -520,7 +520,7 @@ Examples:
520
520
 
521
521
  //#endregion
522
522
  //#region package.json
523
- var version = "0.5.1";
523
+ var version = "0.5.3";
524
524
 
525
525
  //#endregion
526
526
  //#region src/app.ts
@@ -1,7 +1,7 @@
1
1
  import { getApiUrl } from "./env-CHeKHu5S.js";
2
- import { configureClient, testCaseImportCommitV1, testCaseImportPreviewV1 } from "./sdk-client-DP7uCfXP.js";
2
+ import { configureClient, testCaseImportCommitV1, testCaseImportPreviewV1 } from "./sdk-client-CzwBQNDu.js";
3
3
  import "./workspace-store-DDOxnut1.js";
4
- import { resolveWorkspace } from "./resolve-workspace-BnTDxvYq.js";
4
+ import { resolveWorkspace } from "./resolve-workspace-CJjnO8Fk.js";
5
5
  import "./token-refresh-Cu5RpkLJ.js";
6
6
  import { resolveToken } from "./resolve-token-DbQsmn03.js";
7
7
  import chalk from "chalk";
@@ -1,5 +1,5 @@
1
1
  import "./env-CHeKHu5S.js";
2
- import { authGetSitesV1, configureClient } from "./sdk-client-DP7uCfXP.js";
2
+ import { authGetSitesV1, configureClient } from "./sdk-client-CzwBQNDu.js";
3
3
  import { loadWorkspace } from "./workspace-store-DDOxnut1.js";
4
4
  import "./token-refresh-Cu5RpkLJ.js";
5
5
  import { resolveToken } from "./resolve-token-DbQsmn03.js";
@@ -1,7 +1,7 @@
1
1
  import { CLI_CLIENT_ID, getApiUrl, getAuthUrl, setSessionApiUrl, writeCredentials } from "./env-CHeKHu5S.js";
2
- import { configureClient } from "./sdk-client-DP7uCfXP.js";
2
+ import { configureClient } from "./sdk-client-CzwBQNDu.js";
3
3
  import "./workspace-store-DDOxnut1.js";
4
- import { autoSelectWorkspace } from "./resolve-workspace-BnTDxvYq.js";
4
+ import { autoSelectWorkspace } from "./resolve-workspace-CJjnO8Fk.js";
5
5
  import chalk from "chalk";
6
6
  import { createHash, randomBytes } from "node:crypto";
7
7
  import { createServer } from "node:http";
@@ -1,7 +1,7 @@
1
1
  import { getApiUrl, getAutomationSourceIdOverride, getSourceOverride, getTeamId } from "./env-CHeKHu5S.js";
2
- import { client, configureClient, uploadAutomationIngest, uploadImport } from "./sdk-client-DP7uCfXP.js";
2
+ import { client, configureClient, uploadAutomationIngest, uploadImport } from "./sdk-client-CzwBQNDu.js";
3
3
  import "./workspace-store-DDOxnut1.js";
4
- import { resolveWorkspace } from "./resolve-workspace-BnTDxvYq.js";
4
+ import { resolveWorkspace } from "./resolve-workspace-CJjnO8Fk.js";
5
5
  import "./token-refresh-Cu5RpkLJ.js";
6
6
  import { resolveToken } from "./resolve-token-DbQsmn03.js";
7
7
  import { readFileSync, statSync } from "node:fs";
@@ -1,4 +1,4 @@
1
- import { authGetSitesV1 } from "./sdk-client-DP7uCfXP.js";
1
+ import { authGetSitesV1 } from "./sdk-client-CzwBQNDu.js";
2
2
  import { clearWorkspace, loadWorkspace, saveWorkspace } from "./workspace-store-DDOxnut1.js";
3
3
 
4
4
  //#region src/workspace/resolve-workspace.ts
@@ -2594,7 +2594,8 @@ const zAuthCreateWorkspaceDto = z.object({
2594
2594
  email: z.string(),
2595
2595
  password: z.string(),
2596
2596
  recaptchaToken: z.string().optional(),
2597
- invitation_token: z.string().optional()
2597
+ invitation_token: z.string().optional(),
2598
+ recreate_token: z.string().optional()
2598
2599
  });
2599
2600
  const zLoginUserDto = z.object({
2600
2601
  id: z.string().describe(""),
@@ -10580,6 +10581,10 @@ const zDataSetTestBulkOperationV1Data = z.object({
10580
10581
  url: z.literal("/v1/data-set-test/bulk")
10581
10582
  });
10582
10583
 
10584
+ //#endregion
10585
+ //#region ../sdk/dist/gen/deactivate-account/zod.js
10586
+ const zDeactivateAccountData = z.object({ url: z.literal("/v1/auth/account/deactivate") });
10587
+
10583
10588
  //#endregion
10584
10589
  //#region ../sdk/dist/gen/dedup-exclusion/zod.js
10585
10590
  const zCreateDedupExclusionDto = z.object({
@@ -10837,6 +10842,10 @@ const zDedupVerdictFindOneV1Data = z.object({
10837
10842
  url: z.literal("/v1/dedup-verdict/{id}")
10838
10843
  });
10839
10844
 
10845
+ //#endregion
10846
+ //#region ../sdk/dist/gen/delete-account/zod.js
10847
+ const zDeleteAccountData = z.object({ url: z.literal("/v1/auth/account") });
10848
+
10840
10849
  //#endregion
10841
10850
  //#region ../sdk/dist/gen/deliverable-gate/zod.js
10842
10851
  const zDeliverableGateGetGatesForIssuesV1Body = z.object({ issueIds: z.array(z.string()).describe("") });
@@ -11114,7 +11123,7 @@ const zEmailChangeRequestRequestEmailChangeV1Data = z.object({
11114
11123
  const zEmailVerifyDto = z.object({
11115
11124
  email: z.string(),
11116
11125
  token: z.string(),
11117
- type: z.enum(["change"]).optional()
11126
+ type: z.enum(["change", "reactivate"]).optional()
11118
11127
  });
11119
11128
  const zResendVerificationDto = z.object({ email: z.string() });
11120
11129
  const zEmailVerificationVerifyEmailV1Data = z.object({
@@ -13909,6 +13918,19 @@ const zGateSetDefinitionRestoreV1Data = z.object({
13909
13918
  url: z.literal("/v1/gate-set-definition/{id}/restore")
13910
13919
  });
13911
13920
 
13921
+ //#endregion
13922
+ //#region ../sdk/dist/gen/get-account-deletion-blockers/zod.js
13923
+ const zAccountDeletionBlockersResponseDto = z.object({ blockers: z.array(z.object({
13924
+ workspace_id: z.string(),
13925
+ workspace_name: z.string().nullable(),
13926
+ members: z.array(z.object({
13927
+ id: z.string(),
13928
+ name: z.string().nullable(),
13929
+ email: z.string().nullable()
13930
+ }))
13931
+ })) });
13932
+ const zGetAccountDeletionBlockersData = z.object({ url: z.literal("/v1/auth/account/deletion-blockers") });
13933
+
13912
13934
  //#endregion
13913
13935
  //#region ../sdk/dist/gen/git-content/zod.js
13914
13936
  const zGitContentGetFileContentV1Data = z.object({
@@ -17279,6 +17301,7 @@ const zCreateJiraProjectTeamDto = z.object({
17279
17301
  id: z.string().optional().describe(""),
17280
17302
  is_primary: z.boolean().optional().describe(""),
17281
17303
  link_source: z.string().optional().describe(""),
17304
+ inbound_type_label_id: z.string().nullable().optional().describe(""),
17282
17305
  jira_project_id: z.string(),
17283
17306
  team_id: z.string()
17284
17307
  });
@@ -17286,6 +17309,7 @@ const zResponseJiraProjectTeamDto = z.object({
17286
17309
  id: z.string().describe(""),
17287
17310
  is_primary: z.boolean().optional().describe(""),
17288
17311
  link_source: z.string().optional().describe(""),
17312
+ inbound_type_label_id: z.string().nullable().optional().describe(""),
17289
17313
  jira_project_id: z.string(),
17290
17314
  team_id: z.string(),
17291
17315
  created_at: z.unknown().describe(""),
@@ -17299,6 +17323,7 @@ const zUpdateJiraProjectTeamDto = z.object({
17299
17323
  id: z.string().optional().describe(""),
17300
17324
  is_primary: z.boolean().optional().describe(""),
17301
17325
  link_source: z.string().optional().describe(""),
17326
+ inbound_type_label_id: z.string().nullable().optional().describe(""),
17302
17327
  jira_project_id: z.string().optional(),
17303
17328
  team_id: z.string().optional()
17304
17329
  });
@@ -17345,6 +17370,7 @@ const zJiraProjectTeamFindAllV1Data = z.object({
17345
17370
  "filter.id": z.array(z.string()).optional(),
17346
17371
  "filter.is_primary": z.array(z.string()).optional(),
17347
17372
  "filter.link_source": z.array(z.string()).optional(),
17373
+ "filter.inbound_type_label_id": z.array(z.string()).optional(),
17348
17374
  "filter.jira_project_id": z.array(z.string()).optional(),
17349
17375
  "filter.team_id": z.array(z.string()).optional(),
17350
17376
  "filter.created_at": z.array(z.string()).optional(),
@@ -17354,6 +17380,8 @@ const zJiraProjectTeamFindAllV1Data = z.object({
17354
17380
  "id:DESC",
17355
17381
  "link_source:ASC",
17356
17382
  "link_source:DESC",
17383
+ "inbound_type_label_id:ASC",
17384
+ "inbound_type_label_id:DESC",
17357
17385
  "created_at:ASC",
17358
17386
  "created_at:DESC",
17359
17387
  "updated_at:ASC",
@@ -17968,7 +17996,9 @@ const zResponseLabelAssignedFolderDto = z.object({
17968
17996
  epoch: z.number().describe(""),
17969
17997
  created_by: z.string().describe(""),
17970
17998
  updated_by: z.string().describe(""),
17971
- workspace_id: z.string().describe("")
17999
+ workspace_id: z.string().describe(""),
18000
+ deleted_at: z.unknown().describe(""),
18001
+ deleted_by: z.string().nullable().describe("")
17972
18002
  });
17973
18003
  const zUpdateLabelAssignedFolderDto = z.object({
17974
18004
  id: z.string().optional().describe(""),
@@ -18020,19 +18050,23 @@ const zLabelAssignedFolderFindAllV1Data = z.object({
18020
18050
  "filter.folder_id": z.array(z.string()).optional(),
18021
18051
  "filter.created_at": z.array(z.string()).optional(),
18022
18052
  "filter.updated_at": z.array(z.string()).optional(),
18053
+ "filter.deleted_at": z.array(z.string()).optional(),
18023
18054
  "sortBy": z.array(z.enum([
18024
18055
  "id:ASC",
18025
18056
  "id:DESC",
18026
18057
  "created_at:ASC",
18027
18058
  "created_at:DESC",
18028
18059
  "updated_at:ASC",
18029
- "updated_at:DESC"
18060
+ "updated_at:DESC",
18061
+ "deleted_at:ASC",
18062
+ "deleted_at:DESC"
18030
18063
  ])).optional(),
18031
18064
  "search": z.string().optional(),
18032
18065
  "searchBy": z.array(z.string()).optional()
18033
18066
  }).optional(),
18034
18067
  url: z.literal("/v1/label-assigned-folder")
18035
18068
  });
18069
+ const zLabelAssignedFolderFindRecentlyDeletedV1Data = z.object({ url: z.literal("/v1/label-assigned-folder/recently-deleted") });
18036
18070
  const zLabelAssignedFolderFindOneV1Data = z.object({
18037
18071
  path: z.object({ "id": z.string() }),
18038
18072
  url: z.literal("/v1/label-assigned-folder/{id}")
@@ -18050,6 +18084,10 @@ const zLabelAssignedFolderBulkOperationV1Data = z.object({
18050
18084
  body: zBulkLabelAssignedFolderRequestDto,
18051
18085
  url: z.literal("/v1/label-assigned-folder/bulk")
18052
18086
  });
18087
+ const zLabelAssignedFolderRestoreV1Data = z.object({
18088
+ path: z.object({ "id": z.string() }),
18089
+ url: z.literal("/v1/label-assigned-folder/{id}/restore")
18090
+ });
18053
18091
 
18054
18092
  //#endregion
18055
18093
  //#region ../sdk/dist/gen/label-assigned-issue/zod.js
@@ -29838,6 +29876,7 @@ const zResponseUserAccountDto = z.object({
29838
29876
  locked_until: z.unknown().optional().describe(""),
29839
29877
  old_password: z.string().nullable().optional().describe(""),
29840
29878
  pending_email: z.string().nullable().optional().describe(""),
29879
+ recreated_at: z.unknown().optional().describe(""),
29841
29880
  created_at: z.unknown().describe(""),
29842
29881
  updated_at: z.unknown().describe(""),
29843
29882
  epoch: z.number().describe(""),
@@ -30891,6 +30930,16 @@ const zWorkspaceSubscriptionBulkOperationV1Data = z.object({
30891
30930
  url: z.literal("/v1/workspace-subscription/bulk")
30892
30931
  });
30893
30932
 
30933
+ //#endregion
30934
+ //#region ../sdk/dist/gen/workspace-transfer-ownership/zod.js
30935
+ const zTransferOwnershipBodyDto = z.object({ new_owner_user_id: z.string().describe("") });
30936
+ const zTransferOwnershipResponseDto = z.object({ success: z.boolean() });
30937
+ const zWorkspaceTransferOwnershipData = z.object({
30938
+ body: zTransferOwnershipBodyDto,
30939
+ path: z.object({ "id": z.string() }),
30940
+ url: z.literal("/v1/workspace/{id}/transfer-ownership")
30941
+ });
30942
+
30894
30943
  //#endregion
30895
30944
  //#region ../sdk/dist/gen/workspace-url-key/zod.js
30896
30945
  const zWorkspaceByUrlKeyResponseDto = z.object({
@@ -1,5 +1,5 @@
1
1
  import "./env-CHeKHu5S.js";
2
- import { authGetSitesV1, configureClient } from "./sdk-client-DP7uCfXP.js";
2
+ import { authGetSitesV1, configureClient } from "./sdk-client-CzwBQNDu.js";
3
3
  import { saveWorkspace } from "./workspace-store-DDOxnut1.js";
4
4
  import "./token-refresh-Cu5RpkLJ.js";
5
5
  import { resolveToken } from "./resolve-token-DbQsmn03.js";
@@ -1,5 +1,5 @@
1
1
  import { getApiUrl, getPatToken, readCredentials } from "./env-CHeKHu5S.js";
2
- import { authGetProfileV1, configureClient } from "./sdk-client-DP7uCfXP.js";
2
+ import { authGetProfileV1, configureClient } from "./sdk-client-CzwBQNDu.js";
3
3
  import { isTokenExpired } from "./token-refresh-Cu5RpkLJ.js";
4
4
  import chalk from "chalk";
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@levr-one/cli",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "description": "The command-line interface for Levr",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -26,6 +26,7 @@
26
26
  "@types/node": "^20.10.0",
27
27
  "eslint": "^9.18.0",
28
28
  "eslint-config-prettier": "^10.0.1",
29
+ "eslint-plugin-import-x": "^4.17.1",
29
30
  "eslint-plugin-prettier": "^5.2.2",
30
31
  "globals": "^16.0.0",
31
32
  "prettier": "^3.4.2",