@levr-one/cli 0.9.2 → 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 +7 -7
- package/dist/{importHandler-DMHRqTfy.js → importHandler-DR660FVS.js} +2 -2
- package/dist/{listHandler-BKPnBfyP.js → listHandler-CcYWekwq.js} +1 -1
- package/dist/{loginHandler-JJ19zYDT.js → loginHandler-BSA-8qRy.js} +2 -2
- package/dist/{pushHandler-BgKV89Xk.js → pushHandler-Cxvkx9Lz.js} +2 -2
- package/dist/{resolve-workspace-93SQuXLH.js → resolve-workspace-CgVg_hdO.js} +1 -1
- package/dist/{sdk-client-B3k8Urzu.js → sdk-client-bz18KyLV.js} +245 -79
- package/dist/{selectHandler-DpIbLw9Z.js → selectHandler-DWOeqt2R.js} +1 -1
- package/dist/{statusHandler-BqRdQjND.js → statusHandler-CMFWM1E4.js} +1 -1
- package/package.json +1 -1
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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.
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
2
|
+
import { configureClient } from "./sdk-client-bz18KyLV.js";
|
|
3
3
|
import "./workspace-store-DDOxnut1.js";
|
|
4
|
-
import { autoSelectWorkspace } from "./resolve-workspace-
|
|
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-
|
|
2
|
+
import { client, configureClient, uploadAutomationIngest, uploadImport } from "./sdk-client-bz18KyLV.js";
|
|
3
3
|
import "./workspace-store-DDOxnut1.js";
|
|
4
|
-
import { resolveWorkspace } from "./resolve-workspace-
|
|
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";
|
|
@@ -13112,7 +13112,6 @@ const zFolderWithChildrenDto = z.object({
|
|
|
13112
13112
|
data: z.record(z.string(), z.unknown()).optional(),
|
|
13113
13113
|
sequence: z.string(),
|
|
13114
13114
|
labels: z.array(z.string()),
|
|
13115
|
-
is_automated: z.boolean(),
|
|
13116
13115
|
automation_status: z.string(),
|
|
13117
13116
|
automation_type: z.string(),
|
|
13118
13117
|
priority: z.number(),
|
|
@@ -13122,16 +13121,7 @@ const zFolderWithChildrenDto = z.object({
|
|
|
13122
13121
|
updated_by: z.string(),
|
|
13123
13122
|
epoch: z.number(),
|
|
13124
13123
|
key: z.number(),
|
|
13125
|
-
assignee_id: z.string().optional()
|
|
13126
|
-
test_type: z.enum([
|
|
13127
|
-
"manual",
|
|
13128
|
-
"text",
|
|
13129
|
-
"prometheus",
|
|
13130
|
-
"gherkin",
|
|
13131
|
-
"generic_automation",
|
|
13132
|
-
"yaml"
|
|
13133
|
-
]).nullable(),
|
|
13134
|
-
to_automate: z.boolean()
|
|
13124
|
+
assignee_id: z.string().optional()
|
|
13135
13125
|
}),
|
|
13136
13126
|
z.object({
|
|
13137
13127
|
type: z.enum(["run"]),
|
|
@@ -13193,7 +13183,6 @@ const zRootLevelResponseDto = z.object({
|
|
|
13193
13183
|
data: z.record(z.string(), z.unknown()).optional(),
|
|
13194
13184
|
sequence: z.string(),
|
|
13195
13185
|
labels: z.array(z.string()),
|
|
13196
|
-
is_automated: z.boolean(),
|
|
13197
13186
|
automation_status: z.string(),
|
|
13198
13187
|
automation_type: z.string(),
|
|
13199
13188
|
priority: z.number(),
|
|
@@ -13203,16 +13192,7 @@ const zRootLevelResponseDto = z.object({
|
|
|
13203
13192
|
updated_by: z.string(),
|
|
13204
13193
|
epoch: z.number(),
|
|
13205
13194
|
key: z.number(),
|
|
13206
|
-
assignee_id: z.string().optional()
|
|
13207
|
-
test_type: z.enum([
|
|
13208
|
-
"manual",
|
|
13209
|
-
"text",
|
|
13210
|
-
"prometheus",
|
|
13211
|
-
"gherkin",
|
|
13212
|
-
"generic_automation",
|
|
13213
|
-
"yaml"
|
|
13214
|
-
]).nullable(),
|
|
13215
|
-
to_automate: z.boolean()
|
|
13195
|
+
assignee_id: z.string().optional()
|
|
13216
13196
|
}), z.object({
|
|
13217
13197
|
type: z.enum(["run"]),
|
|
13218
13198
|
id: z.string(),
|
|
@@ -13293,7 +13273,6 @@ const zFolderChildrenResponseDto = z.object({
|
|
|
13293
13273
|
data: z.record(z.string(), z.unknown()).optional(),
|
|
13294
13274
|
sequence: z.string(),
|
|
13295
13275
|
labels: z.array(z.string()),
|
|
13296
|
-
is_automated: z.boolean(),
|
|
13297
13276
|
automation_status: z.string(),
|
|
13298
13277
|
automation_type: z.string(),
|
|
13299
13278
|
priority: z.number(),
|
|
@@ -13303,16 +13282,7 @@ const zFolderChildrenResponseDto = z.object({
|
|
|
13303
13282
|
updated_by: z.string(),
|
|
13304
13283
|
epoch: z.number(),
|
|
13305
13284
|
key: z.number(),
|
|
13306
|
-
assignee_id: z.string().optional()
|
|
13307
|
-
test_type: z.enum([
|
|
13308
|
-
"manual",
|
|
13309
|
-
"text",
|
|
13310
|
-
"prometheus",
|
|
13311
|
-
"gherkin",
|
|
13312
|
-
"generic_automation",
|
|
13313
|
-
"yaml"
|
|
13314
|
-
]).nullable(),
|
|
13315
|
-
to_automate: z.boolean()
|
|
13285
|
+
assignee_id: z.string().optional()
|
|
13316
13286
|
}),
|
|
13317
13287
|
z.object({
|
|
13318
13288
|
type: z.enum(["run"]),
|
|
@@ -13688,6 +13658,132 @@ const zGateFileCheckV1Data = z.object({
|
|
|
13688
13658
|
url: z.literal("/v1/gate/file-check")
|
|
13689
13659
|
});
|
|
13690
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
|
+
|
|
13691
13787
|
//#endregion
|
|
13692
13788
|
//#region ../sdk/dist/gen/gate-definition/zod.js
|
|
13693
13789
|
const zCreateGateDefinitionDto = z.object({
|
|
@@ -24329,12 +24425,6 @@ const zRunNodeDto = z.object({
|
|
|
24329
24425
|
original_parent_run_id: z.string().nullable(),
|
|
24330
24426
|
name: z.string(),
|
|
24331
24427
|
key: z.number().optional(),
|
|
24332
|
-
run_type: z.enum([
|
|
24333
|
-
"manual",
|
|
24334
|
-
"automated",
|
|
24335
|
-
"ci",
|
|
24336
|
-
"scheduled"
|
|
24337
|
-
]),
|
|
24338
24428
|
triggered_by: z.enum([
|
|
24339
24429
|
"user",
|
|
24340
24430
|
"ci",
|
|
@@ -24344,7 +24434,6 @@ const zRunNodeDto = z.object({
|
|
|
24344
24434
|
started_at: z.unknown(),
|
|
24345
24435
|
ended_at: z.unknown(),
|
|
24346
24436
|
is_complete: z.boolean(),
|
|
24347
|
-
is_automated: z.boolean(),
|
|
24348
24437
|
host_name: z.string().nullable(),
|
|
24349
24438
|
source: z.record(z.string(), z.unknown()).nullable(),
|
|
24350
24439
|
status_type: z.string().optional(),
|
|
@@ -24396,12 +24485,6 @@ const zCreateRunDto = z.object({
|
|
|
24396
24485
|
cycle_id: z.string().nullable(),
|
|
24397
24486
|
auto_add_tests_to_team: z.boolean().optional(),
|
|
24398
24487
|
name: z.string().optional(),
|
|
24399
|
-
run_type: z.enum([
|
|
24400
|
-
"manual",
|
|
24401
|
-
"automated",
|
|
24402
|
-
"ci",
|
|
24403
|
-
"scheduled"
|
|
24404
|
-
]).optional(),
|
|
24405
24488
|
triggered_by: z.enum([
|
|
24406
24489
|
"user",
|
|
24407
24490
|
"ci",
|
|
@@ -24409,7 +24492,6 @@ const zCreateRunDto = z.object({
|
|
|
24409
24492
|
"pr"
|
|
24410
24493
|
]).optional(),
|
|
24411
24494
|
host_name: z.string().nullable(),
|
|
24412
|
-
is_automated: z.boolean().optional(),
|
|
24413
24495
|
environment_ids: z.array(z.string()).optional(),
|
|
24414
24496
|
test_inclusions: z.array(z.object({
|
|
24415
24497
|
test_id: z.string(),
|
|
@@ -24421,7 +24503,6 @@ const zCreateRunDto = z.object({
|
|
|
24421
24503
|
const zUpdateRunDto = z.object({
|
|
24422
24504
|
name: z.string().optional(),
|
|
24423
24505
|
host_name: z.string().nullable(),
|
|
24424
|
-
is_automated: z.boolean().optional(),
|
|
24425
24506
|
is_complete: z.boolean().optional(),
|
|
24426
24507
|
project_id: z.string().nullable(),
|
|
24427
24508
|
cycle_id: z.string().nullable(),
|
|
@@ -24440,12 +24521,6 @@ const zRunWithContentDto = z.object({
|
|
|
24440
24521
|
original_parent_run_id: z.string().nullable(),
|
|
24441
24522
|
name: z.string(),
|
|
24442
24523
|
key: z.number().optional(),
|
|
24443
|
-
run_type: z.enum([
|
|
24444
|
-
"manual",
|
|
24445
|
-
"automated",
|
|
24446
|
-
"ci",
|
|
24447
|
-
"scheduled"
|
|
24448
|
-
]),
|
|
24449
24524
|
triggered_by: z.enum([
|
|
24450
24525
|
"user",
|
|
24451
24526
|
"ci",
|
|
@@ -24455,7 +24530,6 @@ const zRunWithContentDto = z.object({
|
|
|
24455
24530
|
started_at: z.unknown(),
|
|
24456
24531
|
ended_at: z.unknown(),
|
|
24457
24532
|
is_complete: z.boolean(),
|
|
24458
|
-
is_automated: z.boolean(),
|
|
24459
24533
|
host_name: z.string().nullable(),
|
|
24460
24534
|
source: z.record(z.string(), z.unknown()).nullable(),
|
|
24461
24535
|
status_type: z.string().optional(),
|
|
@@ -24535,7 +24609,6 @@ const zRunWithContentDto = z.object({
|
|
|
24535
24609
|
name: z.string(),
|
|
24536
24610
|
description: z.string().nullable(),
|
|
24537
24611
|
key: z.number(),
|
|
24538
|
-
is_automated: z.boolean(),
|
|
24539
24612
|
priority: z.number(),
|
|
24540
24613
|
epoch: z.number(),
|
|
24541
24614
|
precondition: z.string().nullable()
|
|
@@ -24584,7 +24657,6 @@ const zRunResultNodeDto = z.object({
|
|
|
24584
24657
|
name: z.string(),
|
|
24585
24658
|
description: z.string().nullable(),
|
|
24586
24659
|
key: z.number(),
|
|
24587
|
-
is_automated: z.boolean(),
|
|
24588
24660
|
priority: z.number(),
|
|
24589
24661
|
epoch: z.number(),
|
|
24590
24662
|
precondition: z.string().nullable()
|
|
@@ -28116,19 +28188,9 @@ const zTestResponseDto = z.object({
|
|
|
28116
28188
|
priority: z.number().optional(),
|
|
28117
28189
|
data: z.unknown().optional().describe(""),
|
|
28118
28190
|
assignee_id: z.string().nullable().optional().describe(""),
|
|
28119
|
-
is_automated: z.boolean().optional().describe(""),
|
|
28120
28191
|
key: z.number().optional().describe(""),
|
|
28121
28192
|
identifier: z.string().optional().describe(""),
|
|
28122
28193
|
state_mask: z.number().nullable().optional().describe(""),
|
|
28123
|
-
test_type: z.enum([
|
|
28124
|
-
"manual",
|
|
28125
|
-
"text",
|
|
28126
|
-
"prometheus",
|
|
28127
|
-
"gherkin",
|
|
28128
|
-
"generic_automation",
|
|
28129
|
-
"yaml"
|
|
28130
|
-
]).nullable().optional().describe(""),
|
|
28131
|
-
to_automate: z.boolean().optional().describe(""),
|
|
28132
28194
|
automation_status: z.enum([
|
|
28133
28195
|
"not_automated",
|
|
28134
28196
|
"to_automate",
|
|
@@ -28199,19 +28261,9 @@ const zCreateTestDto = z.object({
|
|
|
28199
28261
|
priority: z.number().optional().describe(""),
|
|
28200
28262
|
data: z.unknown().optional().describe(""),
|
|
28201
28263
|
assignee_id: z.string().nullable().optional().describe(""),
|
|
28202
|
-
is_automated: z.boolean().optional().describe(""),
|
|
28203
28264
|
key: z.number().optional().describe(""),
|
|
28204
28265
|
identifier: z.string().optional().describe(""),
|
|
28205
28266
|
state_mask: z.number().nullable().optional().describe(""),
|
|
28206
|
-
test_type: z.enum([
|
|
28207
|
-
"manual",
|
|
28208
|
-
"text",
|
|
28209
|
-
"prometheus",
|
|
28210
|
-
"gherkin",
|
|
28211
|
-
"generic_automation",
|
|
28212
|
-
"yaml"
|
|
28213
|
-
]).nullable().optional().describe(""),
|
|
28214
|
-
to_automate: z.boolean().optional().describe(""),
|
|
28215
28267
|
automation_status: z.enum([
|
|
28216
28268
|
"not_automated",
|
|
28217
28269
|
"to_automate",
|
|
@@ -28254,8 +28306,6 @@ const zUpdateTestDto = z.object({
|
|
|
28254
28306
|
"automated",
|
|
28255
28307
|
"agentic"
|
|
28256
28308
|
]).optional(),
|
|
28257
|
-
is_automated: z.boolean().optional(),
|
|
28258
|
-
to_automate: z.boolean().optional(),
|
|
28259
28309
|
state_mask: z.number().optional(),
|
|
28260
28310
|
assignee_id: z.string().optional(),
|
|
28261
28311
|
data: z.object({
|
|
@@ -31135,6 +31185,122 @@ const zWorkspaceRemoveV1Data = z.object({
|
|
|
31135
31185
|
url: z.literal("/v1/workspace/{id}")
|
|
31136
31186
|
});
|
|
31137
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
|
+
|
|
31138
31304
|
//#endregion
|
|
31139
31305
|
//#region ../sdk/dist/gen/workspace-custom/zod.js
|
|
31140
31306
|
const zWorkspaceHierarchyResponseDto = z.object({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./env-CHeKHu5S.js";
|
|
2
|
-
import { authGetSitesV1, configureClient } from "./sdk-client-
|
|
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-
|
|
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
|
|