@levr-one/cli 0.6.5 → 0.6.7
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 +7 -7
- package/dist/{importHandler-DL-DuidN.js → importHandler-C4YBIWPX.js} +2 -2
- package/dist/{listHandler-Bg4aIa0F.js → listHandler-XOpg2k7v.js} +1 -1
- package/dist/{loginHandler-ZA2Nj5b2.js → loginHandler-CkUP5sOk.js} +2 -2
- package/dist/{pushHandler-BN4Yq4YE.js → pushHandler-qGFFvwES.js} +2 -2
- package/dist/{resolve-workspace-DiAGC2--.js → resolve-workspace-BE_PrDxy.js} +1 -1
- package/dist/{sdk-client-Buw6Migq.js → sdk-client-BBDpZjho.js} +259 -35
- package/dist/{selectHandler-B5rARS_o.js → selectHandler-DNyNNQ_L.js} +1 -1
- package/dist/{statusHandler-BwprHr1p.js → statusHandler-D03y2BFG.js} +1 -1
- package/package.json +1 -1
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-CkUP5sOk.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-D03y2BFG.js");
|
|
223
223
|
return statusHandler;
|
|
224
224
|
}
|
|
225
225
|
});
|
|
@@ -331,7 +331,7 @@ Examples:
|
|
|
331
331
|
}
|
|
332
332
|
},
|
|
333
333
|
loader: async () => {
|
|
334
|
-
const { pushHandler } = await import("./pushHandler-
|
|
334
|
+
const { pushHandler } = await import("./pushHandler-qGFFvwES.js");
|
|
335
335
|
return pushHandler;
|
|
336
336
|
}
|
|
337
337
|
});
|
|
@@ -443,7 +443,7 @@ Examples:
|
|
|
443
443
|
}
|
|
444
444
|
},
|
|
445
445
|
loader: async () => {
|
|
446
|
-
const { importHandler } = await import("./importHandler-
|
|
446
|
+
const { importHandler } = await import("./importHandler-C4YBIWPX.js");
|
|
447
447
|
return importHandler;
|
|
448
448
|
}
|
|
449
449
|
});
|
|
@@ -464,7 +464,7 @@ Examples:
|
|
|
464
464
|
},
|
|
465
465
|
parameters: {},
|
|
466
466
|
loader: async () => {
|
|
467
|
-
const { listHandler } = await import("./listHandler-
|
|
467
|
+
const { listHandler } = await import("./listHandler-XOpg2k7v.js");
|
|
468
468
|
return listHandler;
|
|
469
469
|
}
|
|
470
470
|
});
|
|
@@ -497,7 +497,7 @@ Examples:
|
|
|
497
497
|
flags: {}
|
|
498
498
|
},
|
|
499
499
|
loader: async () => {
|
|
500
|
-
const { selectHandler } = await import("./selectHandler-
|
|
500
|
+
const { selectHandler } = await import("./selectHandler-DNyNNQ_L.js");
|
|
501
501
|
return selectHandler;
|
|
502
502
|
}
|
|
503
503
|
});
|
|
@@ -521,7 +521,7 @@ Examples:
|
|
|
521
521
|
|
|
522
522
|
//#endregion
|
|
523
523
|
//#region package.json
|
|
524
|
-
var version = "0.6.
|
|
524
|
+
var version = "0.6.7";
|
|
525
525
|
|
|
526
526
|
//#endregion
|
|
527
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-BBDpZjho.js";
|
|
3
3
|
import "./workspace-store-DDOxnut1.js";
|
|
4
|
-
import { resolveWorkspace } from "./resolve-workspace-
|
|
4
|
+
import { resolveWorkspace } from "./resolve-workspace-BE_PrDxy.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-BBDpZjho.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-BBDpZjho.js";
|
|
3
3
|
import "./workspace-store-DDOxnut1.js";
|
|
4
|
-
import { autoSelectWorkspace } from "./resolve-workspace-
|
|
4
|
+
import { autoSelectWorkspace } from "./resolve-workspace-BE_PrDxy.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-BBDpZjho.js";
|
|
3
3
|
import "./workspace-store-DDOxnut1.js";
|
|
4
|
-
import { resolveWorkspace } from "./resolve-workspace-
|
|
4
|
+
import { resolveWorkspace } from "./resolve-workspace-BE_PrDxy.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";
|
|
@@ -12840,18 +12840,6 @@ const zFilterRestoreV1Data = z.object({
|
|
|
12840
12840
|
|
|
12841
12841
|
//#endregion
|
|
12842
12842
|
//#region ../sdk/dist/gen/finding-observation/zod.js
|
|
12843
|
-
const zCreateFindingObservationDto = z.object({
|
|
12844
|
-
id: z.string().optional().describe(""),
|
|
12845
|
-
source: z.string().describe(""),
|
|
12846
|
-
model_version: z.string().nullable().optional().describe(""),
|
|
12847
|
-
original_confidence: z.number().describe(""),
|
|
12848
|
-
adjusted_confidence: z.number().nullable().optional().describe(""),
|
|
12849
|
-
asserted_severity: z.string().nullable().optional().describe(""),
|
|
12850
|
-
vote: z.string().nullable().optional().describe(""),
|
|
12851
|
-
outcome: z.string().optional().describe(""),
|
|
12852
|
-
outcome_kind: z.string().nullable().optional().describe(""),
|
|
12853
|
-
finding_id: z.string()
|
|
12854
|
-
});
|
|
12855
12843
|
const zResponseFindingObservationDto = z.object({
|
|
12856
12844
|
id: z.string().describe(""),
|
|
12857
12845
|
source: z.string().describe(""),
|
|
@@ -12862,6 +12850,8 @@ const zResponseFindingObservationDto = z.object({
|
|
|
12862
12850
|
vote: z.string().nullable().optional().describe(""),
|
|
12863
12851
|
outcome: z.string().optional().describe(""),
|
|
12864
12852
|
outcome_kind: z.string().nullable().optional().describe(""),
|
|
12853
|
+
explicit_provenance: z.string().nullable().optional().describe(""),
|
|
12854
|
+
resolved_at: z.unknown().optional().describe(""),
|
|
12865
12855
|
finding_id: z.string(),
|
|
12866
12856
|
created_at: z.unknown().describe(""),
|
|
12867
12857
|
updated_at: z.unknown().describe(""),
|
|
@@ -12870,6 +12860,20 @@ const zResponseFindingObservationDto = z.object({
|
|
|
12870
12860
|
updated_by: z.string().describe(""),
|
|
12871
12861
|
workspace_id: z.string().describe("")
|
|
12872
12862
|
});
|
|
12863
|
+
const zCreateFindingObservationDto = z.object({
|
|
12864
|
+
id: z.string().optional().describe(""),
|
|
12865
|
+
source: z.string().describe(""),
|
|
12866
|
+
model_version: z.string().nullable().optional().describe(""),
|
|
12867
|
+
original_confidence: z.number().describe(""),
|
|
12868
|
+
adjusted_confidence: z.number().nullable().optional().describe(""),
|
|
12869
|
+
asserted_severity: z.string().nullable().optional().describe(""),
|
|
12870
|
+
vote: z.string().nullable().optional().describe(""),
|
|
12871
|
+
outcome: z.string().optional().describe(""),
|
|
12872
|
+
outcome_kind: z.string().nullable().optional().describe(""),
|
|
12873
|
+
explicit_provenance: z.string().nullable().optional().describe(""),
|
|
12874
|
+
resolved_at: z.unknown().optional().describe(""),
|
|
12875
|
+
finding_id: z.string()
|
|
12876
|
+
});
|
|
12873
12877
|
const zUpdateFindingObservationDto = z.object({
|
|
12874
12878
|
id: z.string().optional().describe(""),
|
|
12875
12879
|
source: z.string().optional().describe(""),
|
|
@@ -12880,6 +12884,8 @@ const zUpdateFindingObservationDto = z.object({
|
|
|
12880
12884
|
vote: z.string().nullable().optional().describe(""),
|
|
12881
12885
|
outcome: z.string().optional().describe(""),
|
|
12882
12886
|
outcome_kind: z.string().nullable().optional().describe(""),
|
|
12887
|
+
explicit_provenance: z.string().nullable().optional().describe(""),
|
|
12888
|
+
resolved_at: z.unknown().optional().describe(""),
|
|
12883
12889
|
finding_id: z.string().optional()
|
|
12884
12890
|
});
|
|
12885
12891
|
const zFindingObservationBulkOperationDto = z.object({
|
|
@@ -12913,10 +12919,6 @@ const zBulkFindingObservationResponseDto = z.object({
|
|
|
12913
12919
|
savepoints_used: z.number().describe("")
|
|
12914
12920
|
}).describe("")
|
|
12915
12921
|
});
|
|
12916
|
-
const zFindingObservationCreateV1Data = z.object({
|
|
12917
|
-
body: zCreateFindingObservationDto,
|
|
12918
|
-
url: z.literal("/v1/finding-observation")
|
|
12919
|
-
});
|
|
12920
12922
|
const zFindingObservationFindAllV1Data = z.object({
|
|
12921
12923
|
query: z.object({
|
|
12922
12924
|
"_with": z.string().optional(),
|
|
@@ -12931,6 +12933,8 @@ const zFindingObservationFindAllV1Data = z.object({
|
|
|
12931
12933
|
"filter.vote": z.array(z.string()).optional(),
|
|
12932
12934
|
"filter.outcome": z.array(z.string()).optional(),
|
|
12933
12935
|
"filter.outcome_kind": z.array(z.string()).optional(),
|
|
12936
|
+
"filter.explicit_provenance": z.array(z.string()).optional(),
|
|
12937
|
+
"filter.resolved_at": z.array(z.string()).optional(),
|
|
12934
12938
|
"filter.finding_id": z.array(z.string()).optional(),
|
|
12935
12939
|
"filter.created_at": z.array(z.string()).optional(),
|
|
12936
12940
|
"filter.updated_at": z.array(z.string()).optional(),
|
|
@@ -12953,6 +12957,10 @@ const zFindingObservationFindAllV1Data = z.object({
|
|
|
12953
12957
|
"outcome:DESC",
|
|
12954
12958
|
"outcome_kind:ASC",
|
|
12955
12959
|
"outcome_kind:DESC",
|
|
12960
|
+
"explicit_provenance:ASC",
|
|
12961
|
+
"explicit_provenance:DESC",
|
|
12962
|
+
"resolved_at:ASC",
|
|
12963
|
+
"resolved_at:DESC",
|
|
12956
12964
|
"created_at:ASC",
|
|
12957
12965
|
"created_at:DESC",
|
|
12958
12966
|
"updated_at:ASC",
|
|
@@ -12967,15 +12975,6 @@ const zFindingObservationFindOneV1Data = z.object({
|
|
|
12967
12975
|
path: z.object({ "id": z.string() }),
|
|
12968
12976
|
url: z.literal("/v1/finding-observation/{id}")
|
|
12969
12977
|
});
|
|
12970
|
-
const zFindingObservationUpdateV1Data = z.object({
|
|
12971
|
-
body: zUpdateFindingObservationDto,
|
|
12972
|
-
path: z.object({ "id": z.string() }),
|
|
12973
|
-
url: z.literal("/v1/finding-observation/{id}")
|
|
12974
|
-
});
|
|
12975
|
-
const zFindingObservationRemoveV1Data = z.object({
|
|
12976
|
-
path: z.object({ "id": z.string() }),
|
|
12977
|
-
url: z.literal("/v1/finding-observation/{id}")
|
|
12978
|
-
});
|
|
12979
12978
|
const zFindingObservationBulkOperationV1Data = z.object({
|
|
12980
12979
|
body: zBulkFindingObservationRequestDto,
|
|
12981
12980
|
url: z.literal("/v1/finding-observation/bulk")
|
|
@@ -12996,7 +12995,6 @@ const zFolderWithChildrenDto = z.object({
|
|
|
12996
12995
|
updated_by: z.string(),
|
|
12997
12996
|
epoch: z.number(),
|
|
12998
12997
|
virtual: z.unknown().optional(),
|
|
12999
|
-
is_root: z.boolean().optional(),
|
|
13000
12998
|
assignee_id: z.string().optional(),
|
|
13001
12999
|
folder_path: z.string().optional(),
|
|
13002
13000
|
children: z.array(z.union([
|
|
@@ -13013,7 +13011,6 @@ const zFolderWithChildrenDto = z.object({
|
|
|
13013
13011
|
updated_by: z.string(),
|
|
13014
13012
|
epoch: z.number(),
|
|
13015
13013
|
virtual: z.unknown().optional(),
|
|
13016
|
-
is_root: z.boolean().optional(),
|
|
13017
13014
|
assignee_id: z.string().optional(),
|
|
13018
13015
|
folder_path: z.string().optional()
|
|
13019
13016
|
}),
|
|
@@ -13079,6 +13076,91 @@ const zFolderWithChildrenDto = z.object({
|
|
|
13079
13076
|
})
|
|
13080
13077
|
]))
|
|
13081
13078
|
});
|
|
13079
|
+
const zRootLevelResponseDto = z.object({
|
|
13080
|
+
type: z.enum(["root"]),
|
|
13081
|
+
entity_type: z.enum(["test", "run"]),
|
|
13082
|
+
folders: z.array(z.object({
|
|
13083
|
+
type: z.enum(["folder"]),
|
|
13084
|
+
id: z.string(),
|
|
13085
|
+
name: z.string(),
|
|
13086
|
+
description: z.string().optional(),
|
|
13087
|
+
sequence: z.string().optional(),
|
|
13088
|
+
labels: z.array(z.string()),
|
|
13089
|
+
created_at: z.unknown(),
|
|
13090
|
+
updated_at: z.unknown(),
|
|
13091
|
+
created_by: z.string(),
|
|
13092
|
+
updated_by: z.string(),
|
|
13093
|
+
epoch: z.number(),
|
|
13094
|
+
virtual: z.unknown().optional(),
|
|
13095
|
+
assignee_id: z.string().optional(),
|
|
13096
|
+
folder_path: z.string().optional()
|
|
13097
|
+
})),
|
|
13098
|
+
entities: z.array(z.union([z.object({
|
|
13099
|
+
type: z.enum(["test"]),
|
|
13100
|
+
id: z.string(),
|
|
13101
|
+
folder_id: z.string().nullable(),
|
|
13102
|
+
name: z.string(),
|
|
13103
|
+
data: z.record(z.string(), z.unknown()).optional(),
|
|
13104
|
+
sequence: z.string(),
|
|
13105
|
+
labels: z.array(z.string()),
|
|
13106
|
+
is_automated: z.boolean(),
|
|
13107
|
+
priority: z.number(),
|
|
13108
|
+
created_at: z.unknown(),
|
|
13109
|
+
updated_at: z.unknown(),
|
|
13110
|
+
created_by: z.string(),
|
|
13111
|
+
updated_by: z.string(),
|
|
13112
|
+
epoch: z.number(),
|
|
13113
|
+
key: z.number(),
|
|
13114
|
+
assignee_id: z.string().optional(),
|
|
13115
|
+
estimate: z.number().optional(),
|
|
13116
|
+
test_type: z.enum([
|
|
13117
|
+
"manual",
|
|
13118
|
+
"text",
|
|
13119
|
+
"prometheus",
|
|
13120
|
+
"gherkin",
|
|
13121
|
+
"generic_automation",
|
|
13122
|
+
"yaml"
|
|
13123
|
+
]).nullable(),
|
|
13124
|
+
to_automate: z.boolean()
|
|
13125
|
+
}), z.object({
|
|
13126
|
+
type: z.enum(["run"]),
|
|
13127
|
+
id: z.string(),
|
|
13128
|
+
folder_id: z.string().nullable(),
|
|
13129
|
+
name: z.string(),
|
|
13130
|
+
sequence: z.string(),
|
|
13131
|
+
labels: z.array(z.string()),
|
|
13132
|
+
key: z.number(),
|
|
13133
|
+
run_type: z.string(),
|
|
13134
|
+
triggered_by: z.string(),
|
|
13135
|
+
status_type: z.enum([
|
|
13136
|
+
"Unstarted",
|
|
13137
|
+
"Pass",
|
|
13138
|
+
"Fail",
|
|
13139
|
+
"Cancelled"
|
|
13140
|
+
]),
|
|
13141
|
+
total_results: z.number(),
|
|
13142
|
+
pass_count: z.number(),
|
|
13143
|
+
fail_count: z.number(),
|
|
13144
|
+
unstarted_count: z.number(),
|
|
13145
|
+
cancelled_count: z.number(),
|
|
13146
|
+
is_complete: z.boolean(),
|
|
13147
|
+
is_automated: z.boolean(),
|
|
13148
|
+
started_at: z.unknown(),
|
|
13149
|
+
ended_at: z.unknown(),
|
|
13150
|
+
total_duration_ms: z.number().nullable(),
|
|
13151
|
+
created_at: z.unknown(),
|
|
13152
|
+
updated_at: z.unknown(),
|
|
13153
|
+
created_by: z.string(),
|
|
13154
|
+
updated_by: z.string(),
|
|
13155
|
+
epoch: z.number()
|
|
13156
|
+
})])),
|
|
13157
|
+
meta: z.object({
|
|
13158
|
+
total_entities: z.number(),
|
|
13159
|
+
page: z.number(),
|
|
13160
|
+
limit: z.number(),
|
|
13161
|
+
total_pages: z.number()
|
|
13162
|
+
})
|
|
13163
|
+
});
|
|
13082
13164
|
const zFolderNodeDto = z.object({
|
|
13083
13165
|
type: z.enum(["folder"]),
|
|
13084
13166
|
id: z.string(),
|
|
@@ -13092,7 +13174,6 @@ const zFolderNodeDto = z.object({
|
|
|
13092
13174
|
updated_by: z.string(),
|
|
13093
13175
|
epoch: z.number(),
|
|
13094
13176
|
virtual: z.unknown(),
|
|
13095
|
-
is_root: z.boolean().nullable(),
|
|
13096
13177
|
assignee_id: z.string().nullable(),
|
|
13097
13178
|
folder_path: z.string().optional()
|
|
13098
13179
|
});
|
|
@@ -13111,7 +13192,6 @@ const zFolderChildrenResponseDto = z.object({
|
|
|
13111
13192
|
updated_by: z.string(),
|
|
13112
13193
|
epoch: z.number(),
|
|
13113
13194
|
virtual: z.unknown(),
|
|
13114
|
-
is_root: z.boolean().nullable(),
|
|
13115
13195
|
assignee_id: z.string().nullable(),
|
|
13116
13196
|
folder_path: z.string().optional()
|
|
13117
13197
|
}),
|
|
@@ -13234,7 +13314,6 @@ const zBulkFolderResponseDto = z.object({
|
|
|
13234
13314
|
updated_by: z.string(),
|
|
13235
13315
|
epoch: z.number(),
|
|
13236
13316
|
virtual: z.unknown(),
|
|
13237
|
-
is_root: z.boolean().nullable(),
|
|
13238
13317
|
assignee_id: z.string().nullable(),
|
|
13239
13318
|
folder_path: z.string().optional()
|
|
13240
13319
|
}).optional(),
|
|
@@ -13281,7 +13360,7 @@ const zFolderFindAllV1Data = z.object({
|
|
|
13281
13360
|
"filter.created_by": z.array(z.string()).optional(),
|
|
13282
13361
|
"filter.updated_at": z.array(z.string()).optional(),
|
|
13283
13362
|
"filter.updated_by": z.array(z.string()).optional(),
|
|
13284
|
-
"filter.
|
|
13363
|
+
"filter.parent_id": z.array(z.string()).optional(),
|
|
13285
13364
|
"filter.assignee_id": z.array(z.string()).optional(),
|
|
13286
13365
|
"filter.folder_path": z.array(z.string()).optional(),
|
|
13287
13366
|
"sortBy": z.array(z.enum([
|
|
@@ -13305,8 +13384,12 @@ const zFolderFindAllV1Data = z.object({
|
|
|
13305
13384
|
}).optional(),
|
|
13306
13385
|
url: z.literal("/v1/folder")
|
|
13307
13386
|
});
|
|
13308
|
-
const
|
|
13309
|
-
query: z.object({
|
|
13387
|
+
const zFolderGetRootLevelV1Data = z.object({
|
|
13388
|
+
query: z.object({
|
|
13389
|
+
"entity_type": z.enum(["test", "run"]).optional(),
|
|
13390
|
+
"page": z.string().optional(),
|
|
13391
|
+
"limit": z.string().optional()
|
|
13392
|
+
}).optional(),
|
|
13310
13393
|
url: z.literal("/v1/folder/root")
|
|
13311
13394
|
});
|
|
13312
13395
|
const zFolderFindFolderByIdV1Data = z.object({
|
|
@@ -23461,6 +23544,147 @@ const zRetentionPolicyUpdatePolicyV1Data = z.object({
|
|
|
23461
23544
|
url: z.literal("/v1/retention-policy")
|
|
23462
23545
|
});
|
|
23463
23546
|
|
|
23547
|
+
//#endregion
|
|
23548
|
+
//#region ../sdk/dist/gen/review-health-snapshot/zod.js
|
|
23549
|
+
const zResponseReviewHealthSnapshotDto = z.object({
|
|
23550
|
+
id: z.string().describe(""),
|
|
23551
|
+
period_start: z.unknown().describe(""),
|
|
23552
|
+
scope: z.string().describe(""),
|
|
23553
|
+
sources_silent: z.number().optional().describe(""),
|
|
23554
|
+
tau_stalled_sources: z.number().optional().describe(""),
|
|
23555
|
+
disposition_backlog: z.number().optional().describe(""),
|
|
23556
|
+
disposition_oldest_days: z.number().optional().describe(""),
|
|
23557
|
+
stale_escape_requests: z.number().optional().describe(""),
|
|
23558
|
+
stale_guidance: z.number().optional().describe(""),
|
|
23559
|
+
tripwires_fired: z.number().optional().describe(""),
|
|
23560
|
+
metrics: z.unknown().optional().describe(""),
|
|
23561
|
+
github_repository_id: z.string().nullable().optional(),
|
|
23562
|
+
created_at: z.unknown().describe(""),
|
|
23563
|
+
updated_at: z.unknown().describe(""),
|
|
23564
|
+
epoch: z.number().describe(""),
|
|
23565
|
+
created_by: z.string().describe(""),
|
|
23566
|
+
updated_by: z.string().describe(""),
|
|
23567
|
+
workspace_id: z.string().describe("")
|
|
23568
|
+
});
|
|
23569
|
+
const zCreateReviewHealthSnapshotDto = z.object({
|
|
23570
|
+
id: z.string().optional().describe(""),
|
|
23571
|
+
period_start: z.unknown().describe(""),
|
|
23572
|
+
scope: z.string().describe(""),
|
|
23573
|
+
sources_silent: z.number().optional().describe(""),
|
|
23574
|
+
tau_stalled_sources: z.number().optional().describe(""),
|
|
23575
|
+
disposition_backlog: z.number().optional().describe(""),
|
|
23576
|
+
disposition_oldest_days: z.number().optional().describe(""),
|
|
23577
|
+
stale_escape_requests: z.number().optional().describe(""),
|
|
23578
|
+
stale_guidance: z.number().optional().describe(""),
|
|
23579
|
+
tripwires_fired: z.number().optional().describe(""),
|
|
23580
|
+
metrics: z.unknown().optional().describe(""),
|
|
23581
|
+
github_repository_id: z.string().nullable().optional()
|
|
23582
|
+
});
|
|
23583
|
+
const zUpdateReviewHealthSnapshotDto = z.object({
|
|
23584
|
+
id: z.string().optional().describe(""),
|
|
23585
|
+
period_start: z.unknown().optional().describe(""),
|
|
23586
|
+
scope: z.string().optional().describe(""),
|
|
23587
|
+
sources_silent: z.number().optional().describe(""),
|
|
23588
|
+
tau_stalled_sources: z.number().optional().describe(""),
|
|
23589
|
+
disposition_backlog: z.number().optional().describe(""),
|
|
23590
|
+
disposition_oldest_days: z.number().optional().describe(""),
|
|
23591
|
+
stale_escape_requests: z.number().optional().describe(""),
|
|
23592
|
+
stale_guidance: z.number().optional().describe(""),
|
|
23593
|
+
tripwires_fired: z.number().optional().describe(""),
|
|
23594
|
+
metrics: z.unknown().optional().describe(""),
|
|
23595
|
+
github_repository_id: z.string().nullable().optional()
|
|
23596
|
+
});
|
|
23597
|
+
const zReviewHealthSnapshotBulkOperationDto = z.object({
|
|
23598
|
+
op: z.enum([
|
|
23599
|
+
"create",
|
|
23600
|
+
"update",
|
|
23601
|
+
"delete"
|
|
23602
|
+
]).describe(""),
|
|
23603
|
+
id: z.string().optional().describe(""),
|
|
23604
|
+
data: z.union([zCreateReviewHealthSnapshotDto, zUpdateReviewHealthSnapshotDto]).optional().describe(""),
|
|
23605
|
+
tx_id: z.string().describe("")
|
|
23606
|
+
});
|
|
23607
|
+
const zBulkReviewHealthSnapshotRequestDto = z.object({ operations: z.array(zReviewHealthSnapshotBulkOperationDto).describe("") });
|
|
23608
|
+
const zBulkReviewHealthSnapshotOperationResultDto = z.object({
|
|
23609
|
+
index: z.number().describe(""),
|
|
23610
|
+
tx_id: z.string().describe(""),
|
|
23611
|
+
status: z.number().describe(""),
|
|
23612
|
+
error: z.object({
|
|
23613
|
+
message: z.string().optional(),
|
|
23614
|
+
code: z.string().optional(),
|
|
23615
|
+
details: z.unknown().optional()
|
|
23616
|
+
}).optional().describe(""),
|
|
23617
|
+
response: zResponseReviewHealthSnapshotDto.optional().describe("")
|
|
23618
|
+
});
|
|
23619
|
+
const zBulkReviewHealthSnapshotResponseDto = z.object({
|
|
23620
|
+
results: z.array(zBulkReviewHealthSnapshotOperationResultDto).describe(""),
|
|
23621
|
+
summary: z.object({
|
|
23622
|
+
total: z.number().describe(""),
|
|
23623
|
+
successful: z.number().describe(""),
|
|
23624
|
+
failed: z.number().describe(""),
|
|
23625
|
+
savepoints_used: z.number().describe("")
|
|
23626
|
+
}).describe("")
|
|
23627
|
+
});
|
|
23628
|
+
const zReviewHealthSnapshotFindAllV1Data = z.object({
|
|
23629
|
+
query: z.object({
|
|
23630
|
+
"_with": z.string().optional(),
|
|
23631
|
+
"page": z.number().optional(),
|
|
23632
|
+
"limit": z.number().optional(),
|
|
23633
|
+
"filter.id": z.array(z.string()).optional(),
|
|
23634
|
+
"filter.period_start": z.array(z.string()).optional(),
|
|
23635
|
+
"filter.scope": z.array(z.string()).optional(),
|
|
23636
|
+
"filter.sources_silent": z.array(z.string()).optional(),
|
|
23637
|
+
"filter.tau_stalled_sources": z.array(z.string()).optional(),
|
|
23638
|
+
"filter.disposition_backlog": z.array(z.string()).optional(),
|
|
23639
|
+
"filter.disposition_oldest_days": z.array(z.string()).optional(),
|
|
23640
|
+
"filter.stale_escape_requests": z.array(z.string()).optional(),
|
|
23641
|
+
"filter.stale_guidance": z.array(z.string()).optional(),
|
|
23642
|
+
"filter.tripwires_fired": z.array(z.string()).optional(),
|
|
23643
|
+
"filter.github_repository_id": z.array(z.string()).optional(),
|
|
23644
|
+
"filter.created_at": z.array(z.string()).optional(),
|
|
23645
|
+
"filter.updated_at": z.array(z.string()).optional(),
|
|
23646
|
+
"sortBy": z.array(z.enum([
|
|
23647
|
+
"id:ASC",
|
|
23648
|
+
"id:DESC",
|
|
23649
|
+
"period_start:ASC",
|
|
23650
|
+
"period_start:DESC",
|
|
23651
|
+
"scope:ASC",
|
|
23652
|
+
"scope:DESC",
|
|
23653
|
+
"sources_silent:ASC",
|
|
23654
|
+
"sources_silent:DESC",
|
|
23655
|
+
"tau_stalled_sources:ASC",
|
|
23656
|
+
"tau_stalled_sources:DESC",
|
|
23657
|
+
"disposition_backlog:ASC",
|
|
23658
|
+
"disposition_backlog:DESC",
|
|
23659
|
+
"disposition_oldest_days:ASC",
|
|
23660
|
+
"disposition_oldest_days:DESC",
|
|
23661
|
+
"stale_escape_requests:ASC",
|
|
23662
|
+
"stale_escape_requests:DESC",
|
|
23663
|
+
"stale_guidance:ASC",
|
|
23664
|
+
"stale_guidance:DESC",
|
|
23665
|
+
"tripwires_fired:ASC",
|
|
23666
|
+
"tripwires_fired:DESC",
|
|
23667
|
+
"github_repository_id:ASC",
|
|
23668
|
+
"github_repository_id:DESC",
|
|
23669
|
+
"created_at:ASC",
|
|
23670
|
+
"created_at:DESC",
|
|
23671
|
+
"updated_at:ASC",
|
|
23672
|
+
"updated_at:DESC"
|
|
23673
|
+
])).optional(),
|
|
23674
|
+
"search": z.string().optional(),
|
|
23675
|
+
"searchBy": z.array(z.string()).optional()
|
|
23676
|
+
}).optional(),
|
|
23677
|
+
url: z.literal("/v1/review-health-snapshot")
|
|
23678
|
+
});
|
|
23679
|
+
const zReviewHealthSnapshotFindOneV1Data = z.object({
|
|
23680
|
+
path: z.object({ "id": z.string() }),
|
|
23681
|
+
url: z.literal("/v1/review-health-snapshot/{id}")
|
|
23682
|
+
});
|
|
23683
|
+
const zReviewHealthSnapshotBulkOperationV1Data = z.object({
|
|
23684
|
+
body: zBulkReviewHealthSnapshotRequestDto,
|
|
23685
|
+
url: z.literal("/v1/review-health-snapshot/bulk")
|
|
23686
|
+
});
|
|
23687
|
+
|
|
23464
23688
|
//#endregion
|
|
23465
23689
|
//#region ../sdk/dist/gen/role/zod.js
|
|
23466
23690
|
const zCreateRoleDto = z.object({
|
|
@@ -23812,7 +24036,7 @@ const zUpdateRunDto = z.object({
|
|
|
23812
24036
|
is_complete: z.boolean().optional(),
|
|
23813
24037
|
project_id: z.string().nullable(),
|
|
23814
24038
|
cycle_id: z.string().nullable(),
|
|
23815
|
-
folder_id: z.string().nullable(),
|
|
24039
|
+
folder_id: z.string().nullable().optional(),
|
|
23816
24040
|
sequence: z.string().optional(),
|
|
23817
24041
|
parent_run_id: z.unknown().optional()
|
|
23818
24042
|
});
|
|
@@ -27623,7 +27847,7 @@ const zUpdateTestDto = z.object({
|
|
|
27623
27847
|
}).optional(),
|
|
27624
27848
|
priority: z.number().optional(),
|
|
27625
27849
|
case_type_id: z.string().nullable().optional(),
|
|
27626
|
-
folder_id: z.string().optional(),
|
|
27850
|
+
folder_id: z.string().nullable().optional(),
|
|
27627
27851
|
shared_precondition: z.object({
|
|
27628
27852
|
create: z.object({
|
|
27629
27853
|
precondition: z.string().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-BBDpZjho.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-BBDpZjho.js";
|
|
3
3
|
import { isTokenExpired } from "./token-refresh-Cu5RpkLJ.js";
|
|
4
4
|
import chalk from "chalk";
|
|
5
5
|
|