@levr-one/cli 0.7.8 → 0.8.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.
- package/dist/cli.js +102 -12
- package/dist/{importHandler--Odfz6sz.js → importHandler-0J_ITnPt.js} +184 -6
- package/dist/{listHandler-CBKYVX8A.js → listHandler-D2zTOxvd.js} +1 -1
- package/dist/loginHandler-BlVzcygL.js +388 -0
- package/dist/{pushHandler-BBzX09LW.js → pushHandler-B-0ByKRt.js} +2 -2
- package/dist/{resolve-workspace-Bk3y0q3v.js → resolve-workspace-CQOjUoZ1.js} +1 -1
- package/dist/{sdk-client-RgFjzRyG.js → sdk-client-DHQhZyKU.js} +49 -14
- package/dist/{selectHandler-UrTpL_l1.js → selectHandler-QFbn-SLF.js} +1 -1
- package/dist/{statusHandler-BBTHpyog.js → statusHandler-tGF4pMHI.js} +1 -1
- package/package.json +2 -1
- package/dist/loginHandler-BOWFHzAn.js +0 -388
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getApiUrl, getAutomationSourceIdOverride, getSourceOverride, getTeamId } from "./env-CHeKHu5S.js";
|
|
2
|
-
import { client, configureClient, uploadAutomationIngest, uploadImport } from "./sdk-client-
|
|
2
|
+
import { client, configureClient, uploadAutomationIngest, uploadImport } from "./sdk-client-DHQhZyKU.js";
|
|
3
3
|
import "./workspace-store-DDOxnut1.js";
|
|
4
|
-
import { resolveWorkspace } from "./resolve-workspace-
|
|
4
|
+
import { resolveWorkspace } from "./resolve-workspace-CQOjUoZ1.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";
|
|
@@ -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(""),
|
|
@@ -15139,6 +15137,14 @@ const zHelpGetDocV1Data = z.object({
|
|
|
15139
15137
|
}),
|
|
15140
15138
|
url: z.literal("/v1/help/docs/{category}/{name}")
|
|
15141
15139
|
});
|
|
15140
|
+
const zHelpGetDocNestedV1Data = z.object({
|
|
15141
|
+
path: z.object({
|
|
15142
|
+
"cat1": z.string(),
|
|
15143
|
+
"cat2": z.string(),
|
|
15144
|
+
"name": z.string()
|
|
15145
|
+
}),
|
|
15146
|
+
url: z.literal("/v1/help/docs/{cat1}/{cat2}/{name}")
|
|
15147
|
+
});
|
|
15142
15148
|
|
|
15143
15149
|
//#endregion
|
|
15144
15150
|
//#region ../sdk/dist/gen/import/functions.js
|
|
@@ -21204,6 +21210,19 @@ const zProfileListResponseDto = z.array(z.object({
|
|
|
21204
21210
|
createdAt: z.unknown(),
|
|
21205
21211
|
updatedAt: z.unknown()
|
|
21206
21212
|
}));
|
|
21213
|
+
const zProfileResponseDto = z.object({
|
|
21214
|
+
id: z.string(),
|
|
21215
|
+
profileName: z.string(),
|
|
21216
|
+
providerType: z.number(),
|
|
21217
|
+
providerName: z.string(),
|
|
21218
|
+
modelName: z.string(),
|
|
21219
|
+
temperature: z.number().optional(),
|
|
21220
|
+
baseUrl: z.string().optional(),
|
|
21221
|
+
isSystem: z.boolean(),
|
|
21222
|
+
llmProviderId: z.string(),
|
|
21223
|
+
createdAt: z.unknown(),
|
|
21224
|
+
updatedAt: z.unknown()
|
|
21225
|
+
});
|
|
21207
21226
|
const zUpdateProfileResponseDto = z.object({
|
|
21208
21227
|
profile: z.object({
|
|
21209
21228
|
id: z.string(),
|
|
@@ -27578,6 +27597,22 @@ const zSyncPullCursorV1Data = z.object({ url: z.literal("/v1/sync/pull-cursor")
|
|
|
27578
27597
|
const zSyncSnapshotV1Data = z.object({ url: z.literal("/v1/sync/snapshot") });
|
|
27579
27598
|
const zSyncMigrationsAppliedV1Data = z.object({ url: z.literal("/v1/sync/migrations-applied") });
|
|
27580
27599
|
|
|
27600
|
+
//#endregion
|
|
27601
|
+
//#region ../sdk/dist/gen/team/functions.js
|
|
27602
|
+
/**
|
|
27603
|
+
* Retrieve a paginated list of teams with optional filtering, sorting, and searching capabilities.
|
|
27604
|
+
*/
|
|
27605
|
+
const teamFindAllV1 = (options) => {
|
|
27606
|
+
return (options?.client ?? client).get({
|
|
27607
|
+
security: [{
|
|
27608
|
+
scheme: "bearer",
|
|
27609
|
+
type: "http"
|
|
27610
|
+
}],
|
|
27611
|
+
url: "/v1/team",
|
|
27612
|
+
...options
|
|
27613
|
+
});
|
|
27614
|
+
};
|
|
27615
|
+
|
|
27581
27616
|
//#endregion
|
|
27582
27617
|
//#region ../sdk/dist/gen/team/zod.js
|
|
27583
27618
|
const zCreateTeamDto = z.object({
|
|
@@ -31476,4 +31511,4 @@ function tryReadMessage(err) {
|
|
|
31476
31511
|
}
|
|
31477
31512
|
|
|
31478
31513
|
//#endregion
|
|
31479
|
-
export { authGetProfileV1, authGetSitesV1, client, configureClient, testCaseImportCommitV1, testCaseImportPreviewV1, uploadAutomationIngest, uploadImport };
|
|
31514
|
+
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-
|
|
2
|
+
import { authGetSitesV1, configureClient } from "./sdk-client-DHQhZyKU.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-
|
|
2
|
+
import { authGetProfileV1, configureClient } from "./sdk-client-DHQhZyKU.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.
|
|
3
|
+
"version": "0.8.1",
|
|
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",
|