@levr-one/cli 0.5.12 → 0.6.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/README.md +1 -1
- package/dist/cli.js +9 -8
- package/dist/{importHandler-Bnyx-U3z.js → importHandler-PKloeMEB.js} +2 -2
- package/dist/{listHandler-Bsv-WRO5.js → listHandler-Cw7vOEX8.js} +1 -1
- package/dist/{loginHandler-CJK-EvQR.js → loginHandler-BJePDkFr.js} +2 -2
- package/dist/{pushHandler-DqwTndrh.js → pushHandler-Bn9duk_v.js} +2 -2
- package/dist/{resolve-workspace-CBBAbNqF.js → resolve-workspace-BQweLrDF.js} +1 -1
- package/dist/{sdk-client-C5-tPv06.js → sdk-client-B-VzOmAI.js} +266 -9
- package/dist/{selectHandler-sCE63-w3.js → selectHandler--deDNSLo.js} +1 -1
- package/dist/{statusHandler-CFwH9bOl.js → statusHandler-g3hzHlgw.js} +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -147,7 +147,7 @@ levr push ./results.xml --source "backend-unit-tests" --run-name "nightly"
|
|
|
147
147
|
| `--team-id <uuid>` | `-t` | Team ID (optional; server resolves default if omitted. Or set `LEVR_TEAM_ID`) |
|
|
148
148
|
| `--source <name>` | `-s` | Automation source name — groups recurring imports and remembers team (auto-detected in CI) |
|
|
149
149
|
| `--run-name <name>` | `-r` | Name for the test run |
|
|
150
|
-
| `--format <type>` | `-f` | File format: `junit`, `gherkin`, `cucumber-json` (auto-detected if omitted)
|
|
150
|
+
| `--format <type>` | `-f` | File format: `junit`, `gherkin`, `cucumber-json`, `ctrf-json` (auto-detected if omitted) |
|
|
151
151
|
| `--parent-folder-id <uuid>` | | Destination folder ID |
|
|
152
152
|
| `--create-run` | | Force run creation for structure-only imports |
|
|
153
153
|
| `--update-mode <mode>` | | `update` (default) or `create_new` |
|
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-
|
|
183
|
+
const { loginHandler } = await import("./loginHandler-BJePDkFr.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-
|
|
222
|
+
const { statusHandler } = await import("./statusHandler-g3hzHlgw.js");
|
|
223
223
|
return statusHandler;
|
|
224
224
|
}
|
|
225
225
|
});
|
|
@@ -295,7 +295,8 @@ Examples:
|
|
|
295
295
|
values: [
|
|
296
296
|
"junit",
|
|
297
297
|
"gherkin",
|
|
298
|
-
"cucumber-json"
|
|
298
|
+
"cucumber-json",
|
|
299
|
+
"ctrf-json"
|
|
299
300
|
],
|
|
300
301
|
brief: "File format (auto-detected if omitted)",
|
|
301
302
|
optional: true
|
|
@@ -330,7 +331,7 @@ Examples:
|
|
|
330
331
|
}
|
|
331
332
|
},
|
|
332
333
|
loader: async () => {
|
|
333
|
-
const { pushHandler } = await import("./pushHandler-
|
|
334
|
+
const { pushHandler } = await import("./pushHandler-Bn9duk_v.js");
|
|
334
335
|
return pushHandler;
|
|
335
336
|
}
|
|
336
337
|
});
|
|
@@ -442,7 +443,7 @@ Examples:
|
|
|
442
443
|
}
|
|
443
444
|
},
|
|
444
445
|
loader: async () => {
|
|
445
|
-
const { importHandler } = await import("./importHandler-
|
|
446
|
+
const { importHandler } = await import("./importHandler-PKloeMEB.js");
|
|
446
447
|
return importHandler;
|
|
447
448
|
}
|
|
448
449
|
});
|
|
@@ -463,7 +464,7 @@ Examples:
|
|
|
463
464
|
},
|
|
464
465
|
parameters: {},
|
|
465
466
|
loader: async () => {
|
|
466
|
-
const { listHandler } = await import("./listHandler-
|
|
467
|
+
const { listHandler } = await import("./listHandler-Cw7vOEX8.js");
|
|
467
468
|
return listHandler;
|
|
468
469
|
}
|
|
469
470
|
});
|
|
@@ -496,7 +497,7 @@ Examples:
|
|
|
496
497
|
flags: {}
|
|
497
498
|
},
|
|
498
499
|
loader: async () => {
|
|
499
|
-
const { selectHandler } = await import("./selectHandler
|
|
500
|
+
const { selectHandler } = await import("./selectHandler--deDNSLo.js");
|
|
500
501
|
return selectHandler;
|
|
501
502
|
}
|
|
502
503
|
});
|
|
@@ -520,7 +521,7 @@ Examples:
|
|
|
520
521
|
|
|
521
522
|
//#endregion
|
|
522
523
|
//#region package.json
|
|
523
|
-
var version = "0.
|
|
524
|
+
var version = "0.6.1";
|
|
524
525
|
|
|
525
526
|
//#endregion
|
|
526
527
|
//#region src/app.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getApiUrl } from "./env-CHeKHu5S.js";
|
|
2
|
-
import { configureClient, testCaseImportCommitV1, testCaseImportPreviewV1 } from "./sdk-client-
|
|
2
|
+
import { configureClient, testCaseImportCommitV1, testCaseImportPreviewV1 } from "./sdk-client-B-VzOmAI.js";
|
|
3
3
|
import "./workspace-store-DDOxnut1.js";
|
|
4
|
-
import { resolveWorkspace } from "./resolve-workspace-
|
|
4
|
+
import { resolveWorkspace } from "./resolve-workspace-BQweLrDF.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-
|
|
2
|
+
import { authGetSitesV1, configureClient } from "./sdk-client-B-VzOmAI.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-
|
|
2
|
+
import { configureClient } from "./sdk-client-B-VzOmAI.js";
|
|
3
3
|
import "./workspace-store-DDOxnut1.js";
|
|
4
|
-
import { autoSelectWorkspace } from "./resolve-workspace-
|
|
4
|
+
import { autoSelectWorkspace } from "./resolve-workspace-BQweLrDF.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-
|
|
2
|
+
import { client, configureClient, uploadAutomationIngest, uploadImport } from "./sdk-client-B-VzOmAI.js";
|
|
3
3
|
import "./workspace-store-DDOxnut1.js";
|
|
4
|
-
import { resolveWorkspace } from "./resolve-workspace-
|
|
4
|
+
import { resolveWorkspace } from "./resolve-workspace-BQweLrDF.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";
|
|
@@ -22,6 +22,7 @@ const zResponseIssueDto = z.object({
|
|
|
22
22
|
auto_closed_at: z.unknown().optional().describe(""),
|
|
23
23
|
origin: z.string().optional().describe(""),
|
|
24
24
|
origin_detail: z.string().nullable().optional().describe(""),
|
|
25
|
+
origin_model: z.string().nullable().optional().describe(""),
|
|
25
26
|
origin_run_result_id: z.string().nullable().optional().describe(""),
|
|
26
27
|
verification_status: z.string().optional().describe(""),
|
|
27
28
|
confidence_score: z.number().nullable().optional().describe(""),
|
|
@@ -3425,8 +3426,6 @@ const zAutomationRunResultFindAllV1Data = z.object({
|
|
|
3425
3426
|
"filter.trace": z.array(z.string()).optional(),
|
|
3426
3427
|
"filter.snippet": z.array(z.string()).optional(),
|
|
3427
3428
|
"filter.failure_type": z.array(z.string()).optional(),
|
|
3428
|
-
"filter.stdout": z.array(z.string()).optional(),
|
|
3429
|
-
"filter.stderr": z.array(z.string()).optional(),
|
|
3430
3429
|
"filter.stdout_truncated": z.array(z.string()).optional(),
|
|
3431
3430
|
"filter.stderr_truncated": z.array(z.string()).optional(),
|
|
3432
3431
|
"filter.source_locator": z.array(z.string()).optional(),
|
|
@@ -3462,10 +3461,6 @@ const zAutomationRunResultFindAllV1Data = z.object({
|
|
|
3462
3461
|
"snippet:DESC",
|
|
3463
3462
|
"failure_type:ASC",
|
|
3464
3463
|
"failure_type:DESC",
|
|
3465
|
-
"stdout:ASC",
|
|
3466
|
-
"stdout:DESC",
|
|
3467
|
-
"stderr:ASC",
|
|
3468
|
-
"stderr:DESC",
|
|
3469
3464
|
"source_locator:ASC",
|
|
3470
3465
|
"source_locator:DESC",
|
|
3471
3466
|
"automation_suite_id:ASC",
|
|
@@ -3520,6 +3515,13 @@ const zAutomationRunResultUnarchiveV1Data = z.object({
|
|
|
3520
3515
|
url: z.literal("/v1/automation-run-result/{id}/unarchive")
|
|
3521
3516
|
});
|
|
3522
3517
|
|
|
3518
|
+
//#endregion
|
|
3519
|
+
//#region ../sdk/dist/gen/automation-run-result-console/zod.js
|
|
3520
|
+
const zAutomationRunResultConsoleGetConsoleV1Data = z.object({
|
|
3521
|
+
path: z.object({ "id": z.string() }),
|
|
3522
|
+
url: z.literal("/v1/automation-run-result/{id}/console")
|
|
3523
|
+
});
|
|
3524
|
+
|
|
3523
3525
|
//#endregion
|
|
3524
3526
|
//#region ../sdk/dist/gen/automation-setting/zod.js
|
|
3525
3527
|
const zCreateAutomationSettingDto = z.object({
|
|
@@ -12845,6 +12847,149 @@ const zFilterRestoreV1Data = z.object({
|
|
|
12845
12847
|
url: z.literal("/v1/filter/{id}/restore")
|
|
12846
12848
|
});
|
|
12847
12849
|
|
|
12850
|
+
//#endregion
|
|
12851
|
+
//#region ../sdk/dist/gen/finding-observation/zod.js
|
|
12852
|
+
const zCreateFindingObservationDto = z.object({
|
|
12853
|
+
id: z.string().optional().describe(""),
|
|
12854
|
+
source: z.string().describe(""),
|
|
12855
|
+
model_version: z.string().nullable().optional().describe(""),
|
|
12856
|
+
original_confidence: z.number().describe(""),
|
|
12857
|
+
adjusted_confidence: z.number().nullable().optional().describe(""),
|
|
12858
|
+
asserted_severity: z.string().nullable().optional().describe(""),
|
|
12859
|
+
vote: z.string().nullable().optional().describe(""),
|
|
12860
|
+
outcome: z.string().optional().describe(""),
|
|
12861
|
+
outcome_kind: z.string().nullable().optional().describe(""),
|
|
12862
|
+
finding_id: z.string()
|
|
12863
|
+
});
|
|
12864
|
+
const zResponseFindingObservationDto = z.object({
|
|
12865
|
+
id: z.string().describe(""),
|
|
12866
|
+
source: z.string().describe(""),
|
|
12867
|
+
model_version: z.string().nullable().optional().describe(""),
|
|
12868
|
+
original_confidence: z.number().describe(""),
|
|
12869
|
+
adjusted_confidence: z.number().nullable().optional().describe(""),
|
|
12870
|
+
asserted_severity: z.string().nullable().optional().describe(""),
|
|
12871
|
+
vote: z.string().nullable().optional().describe(""),
|
|
12872
|
+
outcome: z.string().optional().describe(""),
|
|
12873
|
+
outcome_kind: z.string().nullable().optional().describe(""),
|
|
12874
|
+
finding_id: z.string(),
|
|
12875
|
+
created_at: z.unknown().describe(""),
|
|
12876
|
+
updated_at: z.unknown().describe(""),
|
|
12877
|
+
epoch: z.number().describe(""),
|
|
12878
|
+
created_by: z.string().describe(""),
|
|
12879
|
+
updated_by: z.string().describe(""),
|
|
12880
|
+
workspace_id: z.string().describe("")
|
|
12881
|
+
});
|
|
12882
|
+
const zUpdateFindingObservationDto = z.object({
|
|
12883
|
+
id: z.string().optional().describe(""),
|
|
12884
|
+
source: z.string().optional().describe(""),
|
|
12885
|
+
model_version: z.string().nullable().optional().describe(""),
|
|
12886
|
+
original_confidence: z.number().optional().describe(""),
|
|
12887
|
+
adjusted_confidence: z.number().nullable().optional().describe(""),
|
|
12888
|
+
asserted_severity: z.string().nullable().optional().describe(""),
|
|
12889
|
+
vote: z.string().nullable().optional().describe(""),
|
|
12890
|
+
outcome: z.string().optional().describe(""),
|
|
12891
|
+
outcome_kind: z.string().nullable().optional().describe(""),
|
|
12892
|
+
finding_id: z.string().optional()
|
|
12893
|
+
});
|
|
12894
|
+
const zFindingObservationBulkOperationDto = z.object({
|
|
12895
|
+
op: z.enum([
|
|
12896
|
+
"create",
|
|
12897
|
+
"update",
|
|
12898
|
+
"delete"
|
|
12899
|
+
]).describe(""),
|
|
12900
|
+
id: z.string().optional().describe(""),
|
|
12901
|
+
data: z.union([zCreateFindingObservationDto, zUpdateFindingObservationDto]).optional().describe(""),
|
|
12902
|
+
tx_id: z.string().describe("")
|
|
12903
|
+
});
|
|
12904
|
+
const zBulkFindingObservationRequestDto = z.object({ operations: z.array(zFindingObservationBulkOperationDto).describe("") });
|
|
12905
|
+
const zBulkFindingObservationOperationResultDto = z.object({
|
|
12906
|
+
index: z.number().describe(""),
|
|
12907
|
+
tx_id: z.string().describe(""),
|
|
12908
|
+
status: z.number().describe(""),
|
|
12909
|
+
error: z.object({
|
|
12910
|
+
message: z.string().optional(),
|
|
12911
|
+
code: z.string().optional(),
|
|
12912
|
+
details: z.unknown().optional()
|
|
12913
|
+
}).optional().describe(""),
|
|
12914
|
+
response: zResponseFindingObservationDto.optional().describe("")
|
|
12915
|
+
});
|
|
12916
|
+
const zBulkFindingObservationResponseDto = z.object({
|
|
12917
|
+
results: z.array(zBulkFindingObservationOperationResultDto).describe(""),
|
|
12918
|
+
summary: z.object({
|
|
12919
|
+
total: z.number().describe(""),
|
|
12920
|
+
successful: z.number().describe(""),
|
|
12921
|
+
failed: z.number().describe(""),
|
|
12922
|
+
savepoints_used: z.number().describe("")
|
|
12923
|
+
}).describe("")
|
|
12924
|
+
});
|
|
12925
|
+
const zFindingObservationCreateV1Data = z.object({
|
|
12926
|
+
body: zCreateFindingObservationDto,
|
|
12927
|
+
url: z.literal("/v1/finding-observation")
|
|
12928
|
+
});
|
|
12929
|
+
const zFindingObservationFindAllV1Data = z.object({
|
|
12930
|
+
query: z.object({
|
|
12931
|
+
"_with": z.string().optional(),
|
|
12932
|
+
"page": z.number().optional(),
|
|
12933
|
+
"limit": z.number().optional(),
|
|
12934
|
+
"filter.id": z.array(z.string()).optional(),
|
|
12935
|
+
"filter.source": z.array(z.string()).optional(),
|
|
12936
|
+
"filter.model_version": z.array(z.string()).optional(),
|
|
12937
|
+
"filter.original_confidence": z.array(z.string()).optional(),
|
|
12938
|
+
"filter.adjusted_confidence": z.array(z.string()).optional(),
|
|
12939
|
+
"filter.asserted_severity": z.array(z.string()).optional(),
|
|
12940
|
+
"filter.vote": z.array(z.string()).optional(),
|
|
12941
|
+
"filter.outcome": z.array(z.string()).optional(),
|
|
12942
|
+
"filter.outcome_kind": z.array(z.string()).optional(),
|
|
12943
|
+
"filter.finding_id": z.array(z.string()).optional(),
|
|
12944
|
+
"filter.created_at": z.array(z.string()).optional(),
|
|
12945
|
+
"filter.updated_at": z.array(z.string()).optional(),
|
|
12946
|
+
"sortBy": z.array(z.enum([
|
|
12947
|
+
"id:ASC",
|
|
12948
|
+
"id:DESC",
|
|
12949
|
+
"source:ASC",
|
|
12950
|
+
"source:DESC",
|
|
12951
|
+
"model_version:ASC",
|
|
12952
|
+
"model_version:DESC",
|
|
12953
|
+
"original_confidence:ASC",
|
|
12954
|
+
"original_confidence:DESC",
|
|
12955
|
+
"adjusted_confidence:ASC",
|
|
12956
|
+
"adjusted_confidence:DESC",
|
|
12957
|
+
"asserted_severity:ASC",
|
|
12958
|
+
"asserted_severity:DESC",
|
|
12959
|
+
"vote:ASC",
|
|
12960
|
+
"vote:DESC",
|
|
12961
|
+
"outcome:ASC",
|
|
12962
|
+
"outcome:DESC",
|
|
12963
|
+
"outcome_kind:ASC",
|
|
12964
|
+
"outcome_kind:DESC",
|
|
12965
|
+
"created_at:ASC",
|
|
12966
|
+
"created_at:DESC",
|
|
12967
|
+
"updated_at:ASC",
|
|
12968
|
+
"updated_at:DESC"
|
|
12969
|
+
])).optional(),
|
|
12970
|
+
"search": z.string().optional(),
|
|
12971
|
+
"searchBy": z.array(z.string()).optional()
|
|
12972
|
+
}).optional(),
|
|
12973
|
+
url: z.literal("/v1/finding-observation")
|
|
12974
|
+
});
|
|
12975
|
+
const zFindingObservationFindOneV1Data = z.object({
|
|
12976
|
+
path: z.object({ "id": z.string() }),
|
|
12977
|
+
url: z.literal("/v1/finding-observation/{id}")
|
|
12978
|
+
});
|
|
12979
|
+
const zFindingObservationUpdateV1Data = z.object({
|
|
12980
|
+
body: zUpdateFindingObservationDto,
|
|
12981
|
+
path: z.object({ "id": z.string() }),
|
|
12982
|
+
url: z.literal("/v1/finding-observation/{id}")
|
|
12983
|
+
});
|
|
12984
|
+
const zFindingObservationRemoveV1Data = z.object({
|
|
12985
|
+
path: z.object({ "id": z.string() }),
|
|
12986
|
+
url: z.literal("/v1/finding-observation/{id}")
|
|
12987
|
+
});
|
|
12988
|
+
const zFindingObservationBulkOperationV1Data = z.object({
|
|
12989
|
+
body: zBulkFindingObservationRequestDto,
|
|
12990
|
+
url: z.literal("/v1/finding-observation/bulk")
|
|
12991
|
+
});
|
|
12992
|
+
|
|
12848
12993
|
//#endregion
|
|
12849
12994
|
//#region ../sdk/dist/gen/folder/zod.js
|
|
12850
12995
|
const zFolderWithChildrenDto = z.object({
|
|
@@ -14827,7 +14972,8 @@ const zImportCreateV1Body = z.object({
|
|
|
14827
14972
|
format: z.enum([
|
|
14828
14973
|
"junit",
|
|
14829
14974
|
"gherkin",
|
|
14830
|
-
"cucumber-json"
|
|
14975
|
+
"cucumber-json",
|
|
14976
|
+
"ctrf-json"
|
|
14831
14977
|
]).optional().describe(""),
|
|
14832
14978
|
parent_folder_id: z.string().optional().describe(""),
|
|
14833
14979
|
run_name: z.string().optional().describe(""),
|
|
@@ -14847,7 +14993,8 @@ const zImportResponseDto = z.object({
|
|
|
14847
14993
|
format: z.enum([
|
|
14848
14994
|
"junit",
|
|
14849
14995
|
"gherkin",
|
|
14850
|
-
"cucumber-json"
|
|
14996
|
+
"cucumber-json",
|
|
14997
|
+
"ctrf-json"
|
|
14851
14998
|
]).describe(""),
|
|
14852
14999
|
created_at: z.string().describe(""),
|
|
14853
15000
|
completed_at: z.string().describe(""),
|
|
@@ -15353,6 +15500,7 @@ const zCreateIssueDto = z.object({
|
|
|
15353
15500
|
auto_closed_at: z.unknown().optional().describe(""),
|
|
15354
15501
|
origin: z.string().optional().describe(""),
|
|
15355
15502
|
origin_detail: z.string().nullable().optional().describe(""),
|
|
15503
|
+
origin_model: z.string().nullable().optional().describe(""),
|
|
15356
15504
|
origin_run_result_id: z.string().nullable().optional().describe(""),
|
|
15357
15505
|
verification_status: z.string().optional().describe(""),
|
|
15358
15506
|
confidence_score: z.number().nullable().optional().describe(""),
|
|
@@ -15390,6 +15538,7 @@ const zUpdateIssueDto = z.object({
|
|
|
15390
15538
|
auto_closed_at: z.unknown().optional().describe(""),
|
|
15391
15539
|
origin: z.string().optional().describe(""),
|
|
15392
15540
|
origin_detail: z.string().nullable().optional().describe(""),
|
|
15541
|
+
origin_model: z.string().nullable().optional().describe(""),
|
|
15393
15542
|
origin_run_result_id: z.string().nullable().optional().describe(""),
|
|
15394
15543
|
verification_status: z.string().optional().describe(""),
|
|
15395
15544
|
confidence_score: z.number().nullable().optional().describe(""),
|
|
@@ -15467,6 +15616,7 @@ const zIssueFindAllV1Data = z.object({
|
|
|
15467
15616
|
"filter.auto_closed_at": z.array(z.string()).optional(),
|
|
15468
15617
|
"filter.origin": z.array(z.string()).optional(),
|
|
15469
15618
|
"filter.origin_detail": z.array(z.string()).optional(),
|
|
15619
|
+
"filter.origin_model": z.array(z.string()).optional(),
|
|
15470
15620
|
"filter.origin_run_result_id": z.array(z.string()).optional(),
|
|
15471
15621
|
"filter.verification_status": z.array(z.string()).optional(),
|
|
15472
15622
|
"filter.confidence_score": z.array(z.string()).optional(),
|
|
@@ -15526,6 +15676,8 @@ const zIssueFindAllV1Data = z.object({
|
|
|
15526
15676
|
"origin:DESC",
|
|
15527
15677
|
"origin_detail:ASC",
|
|
15528
15678
|
"origin_detail:DESC",
|
|
15679
|
+
"origin_model:ASC",
|
|
15680
|
+
"origin_model:DESC",
|
|
15529
15681
|
"verification_status:ASC",
|
|
15530
15682
|
"verification_status:DESC",
|
|
15531
15683
|
"confidence_score:ASC",
|
|
@@ -16107,6 +16259,111 @@ const zIssueRelationBulkOperationV1Data = z.object({
|
|
|
16107
16259
|
url: z.literal("/v1/issue-relation/bulk")
|
|
16108
16260
|
});
|
|
16109
16261
|
|
|
16262
|
+
//#endregion
|
|
16263
|
+
//#region ../sdk/dist/gen/issue-repository/zod.js
|
|
16264
|
+
const zCreateIssueRepositoryDto = z.object({
|
|
16265
|
+
id: z.string().optional().describe(""),
|
|
16266
|
+
link_source: z.string().optional().describe(""),
|
|
16267
|
+
issue_id: z.string(),
|
|
16268
|
+
github_repository_id: z.string()
|
|
16269
|
+
});
|
|
16270
|
+
const zResponseIssueRepositoryDto = z.object({
|
|
16271
|
+
id: z.string().describe(""),
|
|
16272
|
+
link_source: z.string().optional().describe(""),
|
|
16273
|
+
issue_id: z.string(),
|
|
16274
|
+
github_repository_id: z.string(),
|
|
16275
|
+
created_at: z.unknown().describe(""),
|
|
16276
|
+
updated_at: z.unknown().describe(""),
|
|
16277
|
+
epoch: z.number().describe(""),
|
|
16278
|
+
created_by: z.string().describe(""),
|
|
16279
|
+
updated_by: z.string().describe(""),
|
|
16280
|
+
workspace_id: z.string().describe("")
|
|
16281
|
+
});
|
|
16282
|
+
const zUpdateIssueRepositoryDto = z.object({
|
|
16283
|
+
id: z.string().optional().describe(""),
|
|
16284
|
+
link_source: z.string().optional().describe(""),
|
|
16285
|
+
issue_id: z.string().optional(),
|
|
16286
|
+
github_repository_id: z.string().optional()
|
|
16287
|
+
});
|
|
16288
|
+
const zIssueRepositoryBulkOperationDto = z.object({
|
|
16289
|
+
op: z.enum([
|
|
16290
|
+
"create",
|
|
16291
|
+
"update",
|
|
16292
|
+
"delete"
|
|
16293
|
+
]).describe(""),
|
|
16294
|
+
id: z.string().optional().describe(""),
|
|
16295
|
+
data: z.union([zCreateIssueRepositoryDto, zUpdateIssueRepositoryDto]).optional().describe(""),
|
|
16296
|
+
tx_id: z.string().describe("")
|
|
16297
|
+
});
|
|
16298
|
+
const zBulkIssueRepositoryRequestDto = z.object({ operations: z.array(zIssueRepositoryBulkOperationDto).describe("") });
|
|
16299
|
+
const zBulkIssueRepositoryOperationResultDto = z.object({
|
|
16300
|
+
index: z.number().describe(""),
|
|
16301
|
+
tx_id: z.string().describe(""),
|
|
16302
|
+
status: z.number().describe(""),
|
|
16303
|
+
error: z.object({
|
|
16304
|
+
message: z.string().optional(),
|
|
16305
|
+
code: z.string().optional(),
|
|
16306
|
+
details: z.unknown().optional()
|
|
16307
|
+
}).optional().describe(""),
|
|
16308
|
+
response: zResponseIssueRepositoryDto.optional().describe("")
|
|
16309
|
+
});
|
|
16310
|
+
const zBulkIssueRepositoryResponseDto = z.object({
|
|
16311
|
+
results: z.array(zBulkIssueRepositoryOperationResultDto).describe(""),
|
|
16312
|
+
summary: z.object({
|
|
16313
|
+
total: z.number().describe(""),
|
|
16314
|
+
successful: z.number().describe(""),
|
|
16315
|
+
failed: z.number().describe(""),
|
|
16316
|
+
savepoints_used: z.number().describe("")
|
|
16317
|
+
}).describe("")
|
|
16318
|
+
});
|
|
16319
|
+
const zIssueRepositoryCreateV1Data = z.object({
|
|
16320
|
+
body: zCreateIssueRepositoryDto,
|
|
16321
|
+
url: z.literal("/v1/issue-repository")
|
|
16322
|
+
});
|
|
16323
|
+
const zIssueRepositoryFindAllV1Data = z.object({
|
|
16324
|
+
query: z.object({
|
|
16325
|
+
"_with": z.string().optional(),
|
|
16326
|
+
"page": z.number().optional(),
|
|
16327
|
+
"limit": z.number().optional(),
|
|
16328
|
+
"filter.id": z.array(z.string()).optional(),
|
|
16329
|
+
"filter.link_source": z.array(z.string()).optional(),
|
|
16330
|
+
"filter.issue_id": z.array(z.string()).optional(),
|
|
16331
|
+
"filter.github_repository_id": z.array(z.string()).optional(),
|
|
16332
|
+
"filter.created_at": z.array(z.string()).optional(),
|
|
16333
|
+
"filter.updated_at": z.array(z.string()).optional(),
|
|
16334
|
+
"sortBy": z.array(z.enum([
|
|
16335
|
+
"id:ASC",
|
|
16336
|
+
"id:DESC",
|
|
16337
|
+
"link_source:ASC",
|
|
16338
|
+
"link_source:DESC",
|
|
16339
|
+
"created_at:ASC",
|
|
16340
|
+
"created_at:DESC",
|
|
16341
|
+
"updated_at:ASC",
|
|
16342
|
+
"updated_at:DESC"
|
|
16343
|
+
])).optional(),
|
|
16344
|
+
"search": z.string().optional(),
|
|
16345
|
+
"searchBy": z.array(z.string()).optional()
|
|
16346
|
+
}).optional(),
|
|
16347
|
+
url: z.literal("/v1/issue-repository")
|
|
16348
|
+
});
|
|
16349
|
+
const zIssueRepositoryFindOneV1Data = z.object({
|
|
16350
|
+
path: z.object({ "id": z.string() }),
|
|
16351
|
+
url: z.literal("/v1/issue-repository/{id}")
|
|
16352
|
+
});
|
|
16353
|
+
const zIssueRepositoryUpdateV1Data = z.object({
|
|
16354
|
+
body: zUpdateIssueRepositoryDto,
|
|
16355
|
+
path: z.object({ "id": z.string() }),
|
|
16356
|
+
url: z.literal("/v1/issue-repository/{id}")
|
|
16357
|
+
});
|
|
16358
|
+
const zIssueRepositoryRemoveV1Data = z.object({
|
|
16359
|
+
path: z.object({ "id": z.string() }),
|
|
16360
|
+
url: z.literal("/v1/issue-repository/{id}")
|
|
16361
|
+
});
|
|
16362
|
+
const zIssueRepositoryBulkOperationV1Data = z.object({
|
|
16363
|
+
body: zBulkIssueRepositoryRequestDto,
|
|
16364
|
+
url: z.literal("/v1/issue-repository/bulk")
|
|
16365
|
+
});
|
|
16366
|
+
|
|
16110
16367
|
//#endregion
|
|
16111
16368
|
//#region ../sdk/dist/gen/issue-run-link/zod.js
|
|
16112
16369
|
const zCreateIssueRunLinkDto = z.object({
|
|
@@ -26739,7 +26996,7 @@ const zPushResultsDto = z.object({ results: z.array(z.object({
|
|
|
26739
26996
|
column_number: z.number().optional(),
|
|
26740
26997
|
is_assertion: z.boolean().optional()
|
|
26741
26998
|
})).optional(),
|
|
26742
|
-
retry_count: z.
|
|
26999
|
+
retry_count: z.unknown().optional(),
|
|
26743
27000
|
flaky: z.boolean().optional(),
|
|
26744
27001
|
tags: z.array(z.string()).optional(),
|
|
26745
27002
|
line: z.number().optional(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./env-CHeKHu5S.js";
|
|
2
|
-
import { authGetSitesV1, configureClient } from "./sdk-client-
|
|
2
|
+
import { authGetSitesV1, configureClient } from "./sdk-client-B-VzOmAI.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-B-VzOmAI.js";
|
|
3
3
|
import { isTokenExpired } from "./token-refresh-Cu5RpkLJ.js";
|
|
4
4
|
import chalk from "chalk";
|
|
5
5
|
|