@levr-one/cli 0.7.8 → 0.8.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.
@@ -1,7 +1,7 @@
1
1
  import { getApiUrl, getAutomationSourceIdOverride, getSourceOverride, getTeamId } from "./env-CHeKHu5S.js";
2
- import { client, configureClient, uploadAutomationIngest, uploadImport } from "./sdk-client-RgFjzRyG.js";
2
+ import { client, configureClient, uploadAutomationIngest, uploadImport } from "./sdk-client-CATjlmyX.js";
3
3
  import "./workspace-store-DDOxnut1.js";
4
- import { resolveWorkspace } from "./resolve-workspace-Bk3y0q3v.js";
4
+ import { resolveWorkspace } from "./resolve-workspace-NupdkCvd.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-RgFjzRyG.js";
1
+ import { authGetSitesV1 } from "./sdk-client-CATjlmyX.js";
2
2
  import { clearWorkspace, loadWorkspace, saveWorkspace } from "./workspace-store-DDOxnut1.js";
3
3
 
4
4
  //#region src/workspace/resolve-workspace.ts
@@ -100,19 +100,6 @@ const zResponseLabelDto = z.object({
100
100
  archived_at: z.unknown().describe(""),
101
101
  archived_by: z.string().nullable().describe("")
102
102
  });
103
- const zProfileResponseDto = z.object({
104
- id: z.string(),
105
- profileName: z.string(),
106
- providerType: z.number(),
107
- providerName: z.string(),
108
- modelName: z.string(),
109
- temperature: z.number().optional(),
110
- baseUrl: z.string().optional(),
111
- isSystem: z.boolean(),
112
- llmProviderId: z.string(),
113
- createdAt: z.unknown(),
114
- updatedAt: z.unknown()
115
- });
116
103
  const zUpdateProfileDto = z.object({
117
104
  profileName: z.string().optional(),
118
105
  providerType: z.number().optional(),
@@ -2616,6 +2603,17 @@ const zAuthClientWorkspaceResponseDto = z.object({
2616
2603
  user: zLoginUserDto.describe(""),
2617
2604
  invitation_accepted: z.boolean().optional()
2618
2605
  });
2606
+ const zUserProfileResponseDto = z.object({
2607
+ id: z.string(),
2608
+ user_account_id: z.string().optional(),
2609
+ email: z.string().optional(),
2610
+ name: z.string().optional(),
2611
+ avatar_url: z.string().optional(),
2612
+ color: z.string().optional(),
2613
+ verified: z.boolean().optional(),
2614
+ workspace_id: z.string().optional(),
2615
+ active_team_id: z.string().nullable().optional()
2616
+ });
2619
2617
  const zSitesResponseDto = z.object({
2620
2618
  sites: z.array(z.object({
2621
2619
  workspace_id: z.string().describe(""),
@@ -21204,6 +21202,19 @@ const zProfileListResponseDto = z.array(z.object({
21204
21202
  createdAt: z.unknown(),
21205
21203
  updatedAt: z.unknown()
21206
21204
  }));
21205
+ const zProfileResponseDto = z.object({
21206
+ id: z.string(),
21207
+ profileName: z.string(),
21208
+ providerType: z.number(),
21209
+ providerName: z.string(),
21210
+ modelName: z.string(),
21211
+ temperature: z.number().optional(),
21212
+ baseUrl: z.string().optional(),
21213
+ isSystem: z.boolean(),
21214
+ llmProviderId: z.string(),
21215
+ createdAt: z.unknown(),
21216
+ updatedAt: z.unknown()
21217
+ });
21207
21218
  const zUpdateProfileResponseDto = z.object({
21208
21219
  profile: z.object({
21209
21220
  id: z.string(),
@@ -27578,6 +27589,22 @@ const zSyncPullCursorV1Data = z.object({ url: z.literal("/v1/sync/pull-cursor")
27578
27589
  const zSyncSnapshotV1Data = z.object({ url: z.literal("/v1/sync/snapshot") });
27579
27590
  const zSyncMigrationsAppliedV1Data = z.object({ url: z.literal("/v1/sync/migrations-applied") });
27580
27591
 
27592
+ //#endregion
27593
+ //#region ../sdk/dist/gen/team/functions.js
27594
+ /**
27595
+ * Retrieve a paginated list of teams with optional filtering, sorting, and searching capabilities.
27596
+ */
27597
+ const teamFindAllV1 = (options) => {
27598
+ return (options?.client ?? client).get({
27599
+ security: [{
27600
+ scheme: "bearer",
27601
+ type: "http"
27602
+ }],
27603
+ url: "/v1/team",
27604
+ ...options
27605
+ });
27606
+ };
27607
+
27581
27608
  //#endregion
27582
27609
  //#region ../sdk/dist/gen/team/zod.js
27583
27610
  const zCreateTeamDto = z.object({
@@ -31476,4 +31503,4 @@ function tryReadMessage(err) {
31476
31503
  }
31477
31504
 
31478
31505
  //#endregion
31479
- export { authGetProfileV1, authGetSitesV1, client, configureClient, testCaseImportCommitV1, testCaseImportPreviewV1, uploadAutomationIngest, uploadImport };
31506
+ export { authGetProfileV1, authGetSitesV1, client, configureClient, teamFindAllV1, testCaseImportCommitV1, testCaseImportPreviewV1, uploadAutomationIngest, uploadImport };
@@ -1,5 +1,5 @@
1
1
  import "./env-CHeKHu5S.js";
2
- import { authGetSitesV1, configureClient } from "./sdk-client-RgFjzRyG.js";
2
+ import { authGetSitesV1, configureClient } from "./sdk-client-CATjlmyX.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-RgFjzRyG.js";
2
+ import { authGetProfileV1, configureClient } from "./sdk-client-CATjlmyX.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.7.8",
3
+ "version": "0.8.0",
4
4
  "description": "The command-line interface for Levr",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -27,6 +27,7 @@
27
27
  "@clack/prompts": "^1.7.0",
28
28
  "@stricli/core": "^1.2.0",
29
29
  "chalk": "^5.6.2",
30
+ "dotenv": "^17.4.2",
30
31
  "jsonc-parser": "^3.3.1",
31
32
  "open": "^10.1.0",
32
33
  "ora": "^9.0.0",