@levr-one/cli 0.9.3 → 0.9.4

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
@@ -213,7 +213,7 @@ Examples:
213
213
  aliases: { d: "device-code" }
214
214
  },
215
215
  loader: async () => {
216
- const { loginHandler } = await import("./loginHandler-1lqeeqFI.js");
216
+ const { loginHandler } = await import("./loginHandler-BSA-8qRy.js");
217
217
  return loginHandler;
218
218
  }
219
219
  });
@@ -252,7 +252,7 @@ Examples:
252
252
  },
253
253
  parameters: {},
254
254
  loader: async () => {
255
- const { statusHandler } = await import("./statusHandler-BxJVa8EQ.js");
255
+ const { statusHandler } = await import("./statusHandler-CMFWM1E4.js");
256
256
  return statusHandler;
257
257
  }
258
258
  });
@@ -364,7 +364,7 @@ Examples:
364
364
  }
365
365
  },
366
366
  loader: async () => {
367
- const { pushHandler } = await import("./pushHandler-xvgRbybb.js");
367
+ const { pushHandler } = await import("./pushHandler-Cxvkx9Lz.js");
368
368
  return pushHandler;
369
369
  }
370
370
  });
@@ -484,7 +484,7 @@ Examples:
484
484
  }
485
485
  },
486
486
  loader: async () => {
487
- const { importHandler } = await import("./importHandler-Cu4T-M93.js");
487
+ const { importHandler } = await import("./importHandler-DR660FVS.js");
488
488
  return importHandler;
489
489
  }
490
490
  });
@@ -505,7 +505,7 @@ Examples:
505
505
  },
506
506
  parameters: {},
507
507
  loader: async () => {
508
- const { listHandler } = await import("./listHandler-bGK_E1r4.js");
508
+ const { listHandler } = await import("./listHandler-CcYWekwq.js");
509
509
  return listHandler;
510
510
  }
511
511
  });
@@ -538,7 +538,7 @@ Examples:
538
538
  flags: {}
539
539
  },
540
540
  loader: async () => {
541
- const { selectHandler } = await import("./selectHandler-Dqasmzu-.js");
541
+ const { selectHandler } = await import("./selectHandler-DWOeqt2R.js");
542
542
  return selectHandler;
543
543
  }
544
544
  });
@@ -562,7 +562,7 @@ Examples:
562
562
 
563
563
  //#endregion
564
564
  //#region package.json
565
- var version = "0.9.3";
565
+ var version = "0.9.4";
566
566
 
567
567
  //#endregion
568
568
  //#region src/app.ts
@@ -1,7 +1,7 @@
1
1
  import { getApiUrl, getTeamId } from "./env-CHeKHu5S.js";
2
- import { authGetProfileV1, configureClient, teamFindAllV1, testCaseImportCommitV1, testCaseImportPreviewV1 } from "./sdk-client-7EqfEICk.js";
2
+ import { authGetProfileV1, configureClient, teamFindAllV1, testCaseImportCommitV1, testCaseImportPreviewV1 } from "./sdk-client-bz18KyLV.js";
3
3
  import "./workspace-store-DDOxnut1.js";
4
- import { resolveWorkspace } from "./resolve-workspace-Nk6hxDgw.js";
4
+ import { resolveWorkspace } from "./resolve-workspace-CgVg_hdO.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-7EqfEICk.js";
2
+ import { authGetSitesV1, configureClient } from "./sdk-client-bz18KyLV.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-7EqfEICk.js";
2
+ import { configureClient } from "./sdk-client-bz18KyLV.js";
3
3
  import "./workspace-store-DDOxnut1.js";
4
- import { autoSelectWorkspace } from "./resolve-workspace-Nk6hxDgw.js";
4
+ import { autoSelectWorkspace } from "./resolve-workspace-CgVg_hdO.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-7EqfEICk.js";
2
+ import { client, configureClient, uploadAutomationIngest, uploadImport } from "./sdk-client-bz18KyLV.js";
3
3
  import "./workspace-store-DDOxnut1.js";
4
- import { resolveWorkspace } from "./resolve-workspace-Nk6hxDgw.js";
4
+ import { resolveWorkspace } from "./resolve-workspace-CgVg_hdO.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-7EqfEICk.js";
1
+ import { authGetSitesV1 } from "./sdk-client-bz18KyLV.js";
2
2
  import { clearWorkspace, loadWorkspace, saveWorkspace } from "./workspace-store-DDOxnut1.js";
3
3
 
4
4
  //#region src/workspace/resolve-workspace.ts
@@ -13658,6 +13658,132 @@ const zGateFileCheckV1Data = z.object({
13658
13658
  url: z.literal("/v1/gate/file-check")
13659
13659
  });
13660
13660
 
13661
+ //#endregion
13662
+ //#region ../sdk/dist/gen/gate-binding/zod.js
13663
+ const zCreateGateBindingDto = z.object({
13664
+ id: z.string().optional().describe(""),
13665
+ gate_key: z.string().describe(""),
13666
+ repo_key: z.string().nullable().optional().describe(""),
13667
+ path_prefix: z.string().nullable().optional().describe(""),
13668
+ config: z.unknown().optional().describe(""),
13669
+ enabled: z.boolean().optional().describe("")
13670
+ });
13671
+ const zResponseGateBindingDto = z.object({
13672
+ id: z.string().describe(""),
13673
+ gate_key: z.string().describe(""),
13674
+ repo_key: z.string().nullable().optional().describe(""),
13675
+ path_prefix: z.string().nullable().optional().describe(""),
13676
+ config: z.unknown().optional().describe(""),
13677
+ enabled: z.boolean().optional().describe(""),
13678
+ created_at: z.unknown().describe(""),
13679
+ updated_at: z.unknown().describe(""),
13680
+ epoch: z.number().describe(""),
13681
+ created_by: z.string().describe(""),
13682
+ updated_by: z.string().describe(""),
13683
+ workspace_id: z.string().describe(""),
13684
+ deleted_at: z.unknown().describe(""),
13685
+ deleted_by: z.string().nullable().describe("")
13686
+ });
13687
+ const zUpdateGateBindingDto = z.object({
13688
+ id: z.string().optional().describe(""),
13689
+ gate_key: z.string().optional().describe(""),
13690
+ repo_key: z.string().nullable().optional().describe(""),
13691
+ path_prefix: z.string().nullable().optional().describe(""),
13692
+ config: z.unknown().optional().describe(""),
13693
+ enabled: z.boolean().optional().describe("")
13694
+ });
13695
+ const zGateBindingBulkOperationDto = z.object({
13696
+ op: z.enum([
13697
+ "create",
13698
+ "update",
13699
+ "delete"
13700
+ ]).describe(""),
13701
+ id: z.string().optional().describe(""),
13702
+ data: z.union([zCreateGateBindingDto, zUpdateGateBindingDto]).optional().describe(""),
13703
+ tx_id: z.string().describe("")
13704
+ });
13705
+ const zBulkGateBindingRequestDto = z.object({ operations: z.array(zGateBindingBulkOperationDto).describe("") });
13706
+ const zBulkGateBindingOperationResultDto = z.object({
13707
+ index: z.number().describe(""),
13708
+ tx_id: z.string().describe(""),
13709
+ status: z.number().describe(""),
13710
+ error: z.object({
13711
+ message: z.string().optional(),
13712
+ code: z.string().optional(),
13713
+ details: z.unknown().optional()
13714
+ }).optional().describe(""),
13715
+ response: zResponseGateBindingDto.optional().describe("")
13716
+ });
13717
+ const zBulkGateBindingResponseDto = z.object({
13718
+ results: z.array(zBulkGateBindingOperationResultDto).describe(""),
13719
+ summary: z.object({
13720
+ total: z.number().describe(""),
13721
+ successful: z.number().describe(""),
13722
+ failed: z.number().describe(""),
13723
+ savepoints_used: z.number().describe("")
13724
+ }).describe("")
13725
+ });
13726
+ const zGateBindingCreateV1Data = z.object({
13727
+ body: zCreateGateBindingDto,
13728
+ url: z.literal("/v1/gate-binding")
13729
+ });
13730
+ const zGateBindingFindAllV1Data = z.object({
13731
+ query: z.object({
13732
+ "_with": z.string().optional(),
13733
+ "page": z.number().optional(),
13734
+ "limit": z.number().optional(),
13735
+ "filter.id": z.array(z.string()).optional(),
13736
+ "filter.gate_key": z.array(z.string()).optional(),
13737
+ "filter.repo_key": z.array(z.string()).optional(),
13738
+ "filter.path_prefix": z.array(z.string()).optional(),
13739
+ "filter.enabled": z.array(z.string()).optional(),
13740
+ "filter.created_at": z.array(z.string()).optional(),
13741
+ "filter.updated_at": z.array(z.string()).optional(),
13742
+ "filter.deleted_at": z.array(z.string()).optional(),
13743
+ "sortBy": z.array(z.enum([
13744
+ "id:ASC",
13745
+ "id:DESC",
13746
+ "gate_key:ASC",
13747
+ "gate_key:DESC",
13748
+ "repo_key:ASC",
13749
+ "repo_key:DESC",
13750
+ "path_prefix:ASC",
13751
+ "path_prefix:DESC",
13752
+ "created_at:ASC",
13753
+ "created_at:DESC",
13754
+ "updated_at:ASC",
13755
+ "updated_at:DESC",
13756
+ "deleted_at:ASC",
13757
+ "deleted_at:DESC"
13758
+ ])).optional(),
13759
+ "search": z.string().optional(),
13760
+ "searchBy": z.array(z.string()).optional()
13761
+ }).optional(),
13762
+ url: z.literal("/v1/gate-binding")
13763
+ });
13764
+ const zGateBindingFindRecentlyDeletedV1Data = z.object({ url: z.literal("/v1/gate-binding/recently-deleted") });
13765
+ const zGateBindingFindOneV1Data = z.object({
13766
+ path: z.object({ "id": z.string() }),
13767
+ url: z.literal("/v1/gate-binding/{id}")
13768
+ });
13769
+ const zGateBindingUpdateV1Data = z.object({
13770
+ body: zUpdateGateBindingDto,
13771
+ path: z.object({ "id": z.string() }),
13772
+ url: z.literal("/v1/gate-binding/{id}")
13773
+ });
13774
+ const zGateBindingRemoveV1Data = z.object({
13775
+ path: z.object({ "id": z.string() }),
13776
+ url: z.literal("/v1/gate-binding/{id}")
13777
+ });
13778
+ const zGateBindingBulkOperationV1Data = z.object({
13779
+ body: zBulkGateBindingRequestDto,
13780
+ url: z.literal("/v1/gate-binding/bulk")
13781
+ });
13782
+ const zGateBindingRestoreV1Data = z.object({
13783
+ path: z.object({ "id": z.string() }),
13784
+ url: z.literal("/v1/gate-binding/{id}/restore")
13785
+ });
13786
+
13661
13787
  //#endregion
13662
13788
  //#region ../sdk/dist/gen/gate-definition/zod.js
13663
13789
  const zCreateGateDefinitionDto = z.object({
@@ -31059,6 +31185,122 @@ const zWorkspaceRemoveV1Data = z.object({
31059
31185
  url: z.literal("/v1/workspace/{id}")
31060
31186
  });
31061
31187
 
31188
+ //#endregion
31189
+ //#region ../sdk/dist/gen/workspace-capability/zod.js
31190
+ const zCreateWorkspaceCapabilityDto = z.object({
31191
+ id: z.string().optional().describe(""),
31192
+ repo_key: z.string().nullable().optional().describe(""),
31193
+ setting_key: z.string().describe(""),
31194
+ setting_value: z.unknown().describe("")
31195
+ });
31196
+ const zResponseWorkspaceCapabilityDto = z.object({
31197
+ id: z.string().describe(""),
31198
+ repo_key: z.string().nullable().optional().describe(""),
31199
+ setting_key: z.string().describe(""),
31200
+ setting_value: z.unknown().describe(""),
31201
+ created_at: z.unknown().describe(""),
31202
+ updated_at: z.unknown().describe(""),
31203
+ epoch: z.number().describe(""),
31204
+ created_by: z.string().describe(""),
31205
+ updated_by: z.string().describe(""),
31206
+ workspace_id: z.string().describe(""),
31207
+ deleted_at: z.unknown().describe(""),
31208
+ deleted_by: z.string().nullable().describe("")
31209
+ });
31210
+ const zUpdateWorkspaceCapabilityDto = z.object({
31211
+ id: z.string().optional().describe(""),
31212
+ repo_key: z.string().nullable().optional().describe(""),
31213
+ setting_key: z.string().optional().describe(""),
31214
+ setting_value: z.unknown().optional().describe("")
31215
+ });
31216
+ const zWorkspaceCapabilityBulkOperationDto = z.object({
31217
+ op: z.enum([
31218
+ "create",
31219
+ "update",
31220
+ "delete"
31221
+ ]).describe(""),
31222
+ id: z.string().optional().describe(""),
31223
+ data: z.union([zCreateWorkspaceCapabilityDto, zUpdateWorkspaceCapabilityDto]).optional().describe(""),
31224
+ tx_id: z.string().describe("")
31225
+ });
31226
+ const zBulkWorkspaceCapabilityRequestDto = z.object({ operations: z.array(zWorkspaceCapabilityBulkOperationDto).describe("") });
31227
+ const zBulkWorkspaceCapabilityOperationResultDto = z.object({
31228
+ index: z.number().describe(""),
31229
+ tx_id: z.string().describe(""),
31230
+ status: z.number().describe(""),
31231
+ error: z.object({
31232
+ message: z.string().optional(),
31233
+ code: z.string().optional(),
31234
+ details: z.unknown().optional()
31235
+ }).optional().describe(""),
31236
+ response: zResponseWorkspaceCapabilityDto.optional().describe("")
31237
+ });
31238
+ const zBulkWorkspaceCapabilityResponseDto = z.object({
31239
+ results: z.array(zBulkWorkspaceCapabilityOperationResultDto).describe(""),
31240
+ summary: z.object({
31241
+ total: z.number().describe(""),
31242
+ successful: z.number().describe(""),
31243
+ failed: z.number().describe(""),
31244
+ savepoints_used: z.number().describe("")
31245
+ }).describe("")
31246
+ });
31247
+ const zWorkspaceCapabilityCreateV1Data = z.object({
31248
+ body: zCreateWorkspaceCapabilityDto,
31249
+ url: z.literal("/v1/workspace-capability")
31250
+ });
31251
+ const zWorkspaceCapabilityFindAllV1Data = z.object({
31252
+ query: z.object({
31253
+ "_with": z.string().optional(),
31254
+ "page": z.number().optional(),
31255
+ "limit": z.number().optional(),
31256
+ "filter.id": z.array(z.string()).optional(),
31257
+ "filter.repo_key": z.array(z.string()).optional(),
31258
+ "filter.setting_key": z.array(z.string()).optional(),
31259
+ "filter.created_at": z.array(z.string()).optional(),
31260
+ "filter.updated_at": z.array(z.string()).optional(),
31261
+ "filter.deleted_at": z.array(z.string()).optional(),
31262
+ "sortBy": z.array(z.enum([
31263
+ "id:ASC",
31264
+ "id:DESC",
31265
+ "repo_key:ASC",
31266
+ "repo_key:DESC",
31267
+ "setting_key:ASC",
31268
+ "setting_key:DESC",
31269
+ "created_at:ASC",
31270
+ "created_at:DESC",
31271
+ "updated_at:ASC",
31272
+ "updated_at:DESC",
31273
+ "deleted_at:ASC",
31274
+ "deleted_at:DESC"
31275
+ ])).optional(),
31276
+ "search": z.string().optional(),
31277
+ "searchBy": z.array(z.string()).optional()
31278
+ }).optional(),
31279
+ url: z.literal("/v1/workspace-capability")
31280
+ });
31281
+ const zWorkspaceCapabilityFindRecentlyDeletedV1Data = z.object({ url: z.literal("/v1/workspace-capability/recently-deleted") });
31282
+ const zWorkspaceCapabilityFindOneV1Data = z.object({
31283
+ path: z.object({ "id": z.string() }),
31284
+ url: z.literal("/v1/workspace-capability/{id}")
31285
+ });
31286
+ const zWorkspaceCapabilityUpdateV1Data = z.object({
31287
+ body: zUpdateWorkspaceCapabilityDto,
31288
+ path: z.object({ "id": z.string() }),
31289
+ url: z.literal("/v1/workspace-capability/{id}")
31290
+ });
31291
+ const zWorkspaceCapabilityRemoveV1Data = z.object({
31292
+ path: z.object({ "id": z.string() }),
31293
+ url: z.literal("/v1/workspace-capability/{id}")
31294
+ });
31295
+ const zWorkspaceCapabilityBulkOperationV1Data = z.object({
31296
+ body: zBulkWorkspaceCapabilityRequestDto,
31297
+ url: z.literal("/v1/workspace-capability/bulk")
31298
+ });
31299
+ const zWorkspaceCapabilityRestoreV1Data = z.object({
31300
+ path: z.object({ "id": z.string() }),
31301
+ url: z.literal("/v1/workspace-capability/{id}/restore")
31302
+ });
31303
+
31062
31304
  //#endregion
31063
31305
  //#region ../sdk/dist/gen/workspace-custom/zod.js
31064
31306
  const zWorkspaceHierarchyResponseDto = z.object({
@@ -1,5 +1,5 @@
1
1
  import "./env-CHeKHu5S.js";
2
- import { authGetSitesV1, configureClient } from "./sdk-client-7EqfEICk.js";
2
+ import { authGetSitesV1, configureClient } from "./sdk-client-bz18KyLV.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-7EqfEICk.js";
2
+ import { authGetProfileV1, configureClient } from "./sdk-client-bz18KyLV.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.9.3",
3
+ "version": "0.9.4",
4
4
  "description": "The command-line interface for Levr",
5
5
  "type": "module",
6
6
  "license": "MIT",