@levr-one/cli 0.10.19 → 0.10.21

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.
Files changed (23) hide show
  1. package/dist/{addHandler-r0Yw1vu-.js → addHandler-DUulKXOX.js} +68 -68
  2. package/dist/appendHandler-DkbMvFOn.js +80 -0
  3. package/dist/artifact-upload-BnqeVY_b.js +296 -0
  4. package/dist/attachHandler-BOxIqxAw.js +151 -0
  5. package/dist/cli.js +237 -17
  6. package/dist/connect-CPybjrXT.js +36 -0
  7. package/dist/{currentHandler-BBHqC26D.js → currentHandler-B_sWXNeW.js} +1 -1
  8. package/dist/{importHandler-DptPgXYU.js → importHandler-oENkrali.js} +8 -8
  9. package/dist/{listHandler-Ct_-wWi2.js → listHandler-E666F9uV.js} +5 -5
  10. package/dist/{loginHandler-CVxKJV6A.js → loginHandler-DS29PzLz.js} +5 -10
  11. package/dist/{logoutHandler-BFutKash.js → logoutHandler-TSQlZGpU.js} +2 -2
  12. package/dist/{pushHandler-MQdf0TVK.js → pushHandler-CR5vu3ci.js} +142 -9
  13. package/dist/{resolve-token-DbQsmn03.js → resolve-token-7xb7kG7h.js} +2 -2
  14. package/dist/{resolve-workspace-BrmiCTJO.js → resolve-workspace-Dsm8Xzut.js} +2 -2
  15. package/dist/{runHandler-BTCT0Ugi.js → runHandler-B2DlFleh.js} +8 -8
  16. package/dist/{sdk-client-SXw7oTbQ.js → sdk-client-B_urshDp.js} +334 -73
  17. package/dist/{selectHandler-Co3MDgXz.js → selectHandler-Cv5fJl-p.js} +5 -5
  18. package/dist/sleep-BpJ39Ypm.js +7 -0
  19. package/dist/{statusHandler-Cu4DULGh.js → statusHandler-CwO5kl3m.js} +3 -3
  20. package/dist/{token-refresh-Cu5RpkLJ.js → token-refresh-DeusLK8H.js} +1 -1
  21. package/package.json +1 -1
  22. /package/dist/{env-CHeKHu5S.js → env-CdwyPHGV.js} +0 -0
  23. /package/dist/{workspace-store-DDOxnut1.js → workspace-store-CnrxyYRB.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { getApiUrl } from "./env-CHeKHu5S.js";
1
+ import { getApiUrl } from "./env-CdwyPHGV.js";
2
2
  import { z } from "zod/v3";
3
3
 
4
4
  //#region ../sdk/dist/gen/_common/zod.js
@@ -2530,6 +2530,124 @@ const zArtifactSyncGetArtifactsV1Data = z.object({
2530
2530
  url: z.literal("/v1/cde/artifacts")
2531
2531
  });
2532
2532
 
2533
+ //#endregion
2534
+ //#region ../sdk/dist/gen/attachment-upload/functions.js
2535
+ /**
2536
+ * Uploads one file (multipart/form-data, at most 50 MiB) and attaches it to the entity named by related_type and related_id. related_id is a UUID, or a human identifier (ENG-42, TC-5, TR-3) for issue, test and run. For an automation_run_result target, kind and attempt_index say what the artifact is and which earlier attempt it belongs to, and an identical upload (same result, attempt, content and name) returns the existing attachment with HTTP 200 instead of storing it again. Send the text fields before the file part.
2537
+ */
2538
+ const attachmentUploadUploadV1 = (options) => {
2539
+ return (options?.client ?? client).post({
2540
+ security: [{
2541
+ scheme: "bearer",
2542
+ type: "http"
2543
+ }],
2544
+ url: "/v1/attachment/upload",
2545
+ bodySerializer: (body) => {
2546
+ const fd = new FormData();
2547
+ if (body && typeof body === "object") for (const [k, v] of Object.entries(body)) {
2548
+ if (v == null) continue;
2549
+ fd.append(k, v instanceof Blob ? v : String(v));
2550
+ }
2551
+ return fd;
2552
+ },
2553
+ ...options
2554
+ });
2555
+ };
2556
+
2557
+ //#endregion
2558
+ //#region ../sdk/dist/gen/attachment-upload/zod.js
2559
+ const zAttachmentUploadUploadV1Body = z.object({
2560
+ related_type: z.enum([
2561
+ "test",
2562
+ "step",
2563
+ "folder",
2564
+ "plan",
2565
+ "defect",
2566
+ "requirement",
2567
+ "run_result",
2568
+ "run_result_step",
2569
+ "import_job",
2570
+ "run",
2571
+ "issue",
2572
+ "project",
2573
+ "initiative",
2574
+ "cycle",
2575
+ "staged",
2576
+ "data_set",
2577
+ "run_result_variant",
2578
+ "research_step",
2579
+ "project_update",
2580
+ "automation_run_result",
2581
+ "unlinked"
2582
+ ]).describe(""),
2583
+ related_id: z.string().optional().describe(""),
2584
+ kind: z.enum([
2585
+ "screenshot",
2586
+ "video",
2587
+ "trace",
2588
+ "stdout_log",
2589
+ "stderr_log",
2590
+ "har",
2591
+ "report",
2592
+ "attachment",
2593
+ "other"
2594
+ ]).optional().describe(""),
2595
+ attempt_index: z.number().optional().describe(""),
2596
+ is_public: z.boolean().optional().describe(""),
2597
+ file: z.instanceof(Blob).describe("")
2598
+ });
2599
+ const zUploadAttachmentResponseDto = z.object({
2600
+ id: z.string().describe(""),
2601
+ url: z.string().nullable().describe(""),
2602
+ private_url: z.string().nullable().describe(""),
2603
+ original_file_name: z.string().describe(""),
2604
+ mime_type: z.string().nullable().describe(""),
2605
+ size: z.number().nullable().describe(""),
2606
+ is_public: z.boolean().describe(""),
2607
+ created_at: z.string().describe(""),
2608
+ related_type: z.enum([
2609
+ "test",
2610
+ "step",
2611
+ "folder",
2612
+ "plan",
2613
+ "defect",
2614
+ "requirement",
2615
+ "run_result",
2616
+ "run_result_step",
2617
+ "import_job",
2618
+ "run",
2619
+ "issue",
2620
+ "project",
2621
+ "initiative",
2622
+ "cycle",
2623
+ "staged",
2624
+ "data_set",
2625
+ "run_result_variant",
2626
+ "research_step",
2627
+ "project_update",
2628
+ "automation_run_result",
2629
+ "unlinked"
2630
+ ]).describe(""),
2631
+ target_id: z.string().nullable().describe(""),
2632
+ kind: z.enum([
2633
+ "screenshot",
2634
+ "video",
2635
+ "trace",
2636
+ "stdout_log",
2637
+ "stderr_log",
2638
+ "har",
2639
+ "report",
2640
+ "attachment",
2641
+ "other"
2642
+ ]).nullable().describe(""),
2643
+ attempt_index: z.number().nullable().describe(""),
2644
+ deduplicated: z.boolean().describe("")
2645
+ });
2646
+ const zAttachmentUploadUploadV1Data = z.object({
2647
+ body: zAttachmentUploadUploadV1Body,
2648
+ url: z.literal("/v1/attachment/upload")
2649
+ });
2650
+
2533
2651
  //#endregion
2534
2652
  //#region ../sdk/dist/gen/auth/functions.js
2535
2653
  const authGetProfileV1 = (options) => {
@@ -5474,7 +5592,7 @@ const zCreateCanvasLayoutDto = z.object({
5474
5592
  layout_data: z.unknown().optional().describe(""),
5475
5593
  is_active: z.boolean().optional().describe(""),
5476
5594
  is_preset: z.boolean().optional().describe(""),
5477
- user_id: z.string()
5595
+ user_id: z.string().optional().describe("")
5478
5596
  });
5479
5597
  const zResponseCanvasLayoutDto = z.object({
5480
5598
  id: z.string().describe(""),
@@ -5483,7 +5601,7 @@ const zResponseCanvasLayoutDto = z.object({
5483
5601
  layout_data: z.unknown().optional().describe(""),
5484
5602
  is_active: z.boolean().optional().describe(""),
5485
5603
  is_preset: z.boolean().optional().describe(""),
5486
- user_id: z.string(),
5604
+ user_id: z.string().optional().describe(""),
5487
5605
  created_at: z.unknown().describe(""),
5488
5606
  updated_at: z.unknown().describe(""),
5489
5607
  epoch: z.number().describe(""),
@@ -5498,7 +5616,7 @@ const zUpdateCanvasLayoutDto = z.object({
5498
5616
  layout_data: z.unknown().optional().describe(""),
5499
5617
  is_active: z.boolean().optional().describe(""),
5500
5618
  is_preset: z.boolean().optional().describe(""),
5501
- user_id: z.string().optional()
5619
+ user_id: z.string().optional().describe("")
5502
5620
  });
5503
5621
  const zCanvasLayoutBulkOperationDto = z.object({
5504
5622
  op: z.enum([
@@ -9025,6 +9143,22 @@ const zCommentFolderRestoreV1Data = z.object({
9025
9143
  url: z.literal("/v1/comment-folder/{id}/restore")
9026
9144
  });
9027
9145
 
9146
+ //#endregion
9147
+ //#region ../sdk/dist/gen/comment-issue/functions.js
9148
+ /**
9149
+ * Create a new comment_issue
9150
+ */
9151
+ const commentIssueCreateV1 = (options) => {
9152
+ return (options?.client ?? client).post({
9153
+ security: [{
9154
+ scheme: "bearer",
9155
+ type: "http"
9156
+ }],
9157
+ url: "/v1/comment-issue",
9158
+ ...options
9159
+ });
9160
+ };
9161
+
9028
9162
  //#endregion
9029
9163
  //#region ../sdk/dist/gen/comment-issue/zod.js
9030
9164
  const zCreateCommentIssueDto = z.object({
@@ -9155,6 +9289,22 @@ const zCommentIssueRestoreV1Data = z.object({
9155
9289
  url: z.literal("/v1/comment-issue/{id}/restore")
9156
9290
  });
9157
9291
 
9292
+ //#endregion
9293
+ //#region ../sdk/dist/gen/comment-run/functions.js
9294
+ /**
9295
+ * Create a new comment_run
9296
+ */
9297
+ const commentRunCreateV1 = (options) => {
9298
+ return (options?.client ?? client).post({
9299
+ security: [{
9300
+ scheme: "bearer",
9301
+ type: "http"
9302
+ }],
9303
+ url: "/v1/comment-run",
9304
+ ...options
9305
+ });
9306
+ };
9307
+
9158
9308
  //#endregion
9159
9309
  //#region ../sdk/dist/gen/comment-run/zod.js
9160
9310
  const zCreateCommentRunDto = z.object({
@@ -9545,6 +9695,22 @@ const zCommentRunResultVariantRestoreV1Data = z.object({
9545
9695
  url: z.literal("/v1/comment-run-result-variant/{id}/restore")
9546
9696
  });
9547
9697
 
9698
+ //#endregion
9699
+ //#region ../sdk/dist/gen/comment-test/functions.js
9700
+ /**
9701
+ * Create a new comment_test
9702
+ */
9703
+ const commentTestCreateV1 = (options) => {
9704
+ return (options?.client ?? client).post({
9705
+ security: [{
9706
+ scheme: "bearer",
9707
+ type: "http"
9708
+ }],
9709
+ url: "/v1/comment-test",
9710
+ ...options
9711
+ });
9712
+ };
9713
+
9548
9714
  //#endregion
9549
9715
  //#region ../sdk/dist/gen/comment-test/zod.js
9550
9716
  const zCommentTestBulkOperationDto = z.object({
@@ -14942,7 +15108,8 @@ const zImportCreateV1Body = z.object({
14942
15108
  run_name: z.string().max(250).optional().describe(""),
14943
15109
  automation_source: z.string().max(100).optional().describe(""),
14944
15110
  automation_source_id: z.string().optional().describe(""),
14945
- import_metadata: z.string().optional().describe("")
15111
+ import_metadata: z.string().optional().describe(""),
15112
+ include_results: z.boolean().optional().describe("")
14946
15113
  });
14947
15114
  const zImportResponseDto = z.object({
14948
15115
  id: z.string().describe(""),
@@ -14987,6 +15154,32 @@ const zImportResponseDto = z.object({
14987
15154
  count: z.number().describe(""),
14988
15155
  details: z.array(z.string()).optional().describe(""),
14989
15156
  truncated: z.boolean().optional().describe("")
15157
+ })).optional().describe(""),
15158
+ results: z.array(z.object({
15159
+ id: z.string().describe(""),
15160
+ name: z.string().describe(""),
15161
+ suite: z.string().nullable().describe(""),
15162
+ classname: z.string().nullable().describe(""),
15163
+ status: z.string().describe(""),
15164
+ test_key: z.string().describe(""),
15165
+ attempts: z.number().describe(""),
15166
+ attachments: z.array(z.object({
15167
+ path: z.string().nullable().describe(""),
15168
+ name: z.string().nullable().describe(""),
15169
+ kind: z.enum([
15170
+ "screenshot",
15171
+ "video",
15172
+ "trace",
15173
+ "stdout_log",
15174
+ "stderr_log",
15175
+ "har",
15176
+ "report",
15177
+ "attachment",
15178
+ "other"
15179
+ ]).describe(""),
15180
+ attempt_index: z.number().nullable().describe(""),
15181
+ stored: z.boolean().describe("")
15182
+ })).describe("")
14990
15183
  })).optional().describe("")
14991
15184
  }).optional().describe(""),
14992
15185
  error: z.object({
@@ -15078,8 +15271,8 @@ const zCreateInitiativeDto = z.object({
15078
15271
  scope_is_mixed_unit: z.boolean().optional().describe(""),
15079
15272
  project_count: z.number().optional().describe(""),
15080
15273
  completed_project_count: z.number().optional().describe(""),
15274
+ creator_id: z.string().optional().describe(""),
15081
15275
  owner_id: z.string().nullable().optional(),
15082
- creator_id: z.string(),
15083
15276
  parent_id: z.string().nullable().optional()
15084
15277
  });
15085
15278
  const zResponseInitiativeDto = z.object({
@@ -15120,8 +15313,8 @@ const zResponseInitiativeDto = z.object({
15120
15313
  scope_is_mixed_unit: z.boolean().optional().describe(""),
15121
15314
  project_count: z.number().optional().describe(""),
15122
15315
  completed_project_count: z.number().optional().describe(""),
15316
+ creator_id: z.string().optional().describe(""),
15123
15317
  owner_id: z.string().nullable().optional(),
15124
- creator_id: z.string(),
15125
15318
  parent_id: z.string().nullable().optional(),
15126
15319
  created_at: z.unknown().describe(""),
15127
15320
  updated_at: z.unknown().describe(""),
@@ -15173,8 +15366,8 @@ const zUpdateInitiativeDto = z.object({
15173
15366
  scope_is_mixed_unit: z.boolean().optional().describe(""),
15174
15367
  project_count: z.number().optional().describe(""),
15175
15368
  completed_project_count: z.number().optional().describe(""),
15369
+ creator_id: z.string().optional().describe(""),
15176
15370
  owner_id: z.string().nullable().optional(),
15177
- creator_id: z.string().optional(),
15178
15371
  parent_id: z.string().nullable().optional(),
15179
15372
  archived_at: z.unknown().optional().describe("")
15180
15373
  });
@@ -15237,8 +15430,8 @@ const zInitiativeFindAllV1Data = z.object({
15237
15430
  "filter.scope_is_mixed_unit": z.array(z.string()).optional(),
15238
15431
  "filter.project_count": z.array(z.string()).optional(),
15239
15432
  "filter.completed_project_count": z.array(z.string()).optional(),
15240
- "filter.owner_id": z.array(z.string()).optional(),
15241
15433
  "filter.creator_id": z.array(z.string()).optional(),
15434
+ "filter.owner_id": z.array(z.string()).optional(),
15242
15435
  "filter.parent_id": z.array(z.string()).optional(),
15243
15436
  "filter.created_at": z.array(z.string()).optional(),
15244
15437
  "filter.updated_at": z.array(z.string()).optional(),
@@ -20148,7 +20341,7 @@ const zCreateNotificationPreferenceDto = z.object({
20148
20341
  auto_subscribe_assigned: z.boolean().optional().describe(""),
20149
20342
  auto_subscribe_mentioned: z.boolean().optional().describe(""),
20150
20343
  auto_subscribe_commented: z.boolean().optional().describe(""),
20151
- user_id: z.string()
20344
+ user_id: z.string().optional().describe("")
20152
20345
  });
20153
20346
  const zResponseNotificationPreferenceDto = z.object({
20154
20347
  id: z.string().describe(""),
@@ -20163,7 +20356,7 @@ const zResponseNotificationPreferenceDto = z.object({
20163
20356
  auto_subscribe_assigned: z.boolean().optional().describe(""),
20164
20357
  auto_subscribe_mentioned: z.boolean().optional().describe(""),
20165
20358
  auto_subscribe_commented: z.boolean().optional().describe(""),
20166
- user_id: z.string(),
20359
+ user_id: z.string().optional().describe(""),
20167
20360
  created_at: z.unknown().describe(""),
20168
20361
  updated_at: z.unknown().describe(""),
20169
20362
  epoch: z.number().describe(""),
@@ -20186,7 +20379,7 @@ const zUpdateNotificationPreferenceDto = z.object({
20186
20379
  auto_subscribe_assigned: z.boolean().optional().describe(""),
20187
20380
  auto_subscribe_mentioned: z.boolean().optional().describe(""),
20188
20381
  auto_subscribe_commented: z.boolean().optional().describe(""),
20189
- user_id: z.string().optional()
20382
+ user_id: z.string().optional().describe("")
20190
20383
  });
20191
20384
  const zNotificationPreferenceBulkOperationDto = z.object({
20192
20385
  op: z.enum([
@@ -22204,9 +22397,9 @@ const zCreateProjectUpdateDto = z.object({
22204
22397
  is_stale: z.boolean().optional().describe(""),
22205
22398
  comment_count: z.number().optional().describe(""),
22206
22399
  edited_at: z.unknown().optional().describe(""),
22400
+ author_id: z.string().optional().describe(""),
22207
22401
  project_id: z.string().nullable().optional(),
22208
- initiative_id: z.string().nullable().optional(),
22209
- author_id: z.string()
22402
+ initiative_id: z.string().nullable().optional()
22210
22403
  });
22211
22404
  const zResponseProjectUpdateDto = z.object({
22212
22405
  id: z.string().describe(""),
@@ -22221,9 +22414,9 @@ const zResponseProjectUpdateDto = z.object({
22221
22414
  is_stale: z.boolean().optional().describe(""),
22222
22415
  comment_count: z.number().optional().describe(""),
22223
22416
  edited_at: z.unknown().optional().describe(""),
22417
+ author_id: z.string().optional().describe(""),
22224
22418
  project_id: z.string().nullable().optional(),
22225
22419
  initiative_id: z.string().nullable().optional(),
22226
- author_id: z.string(),
22227
22420
  created_at: z.unknown().describe(""),
22228
22421
  updated_at: z.unknown().describe(""),
22229
22422
  epoch: z.number().describe(""),
@@ -22246,9 +22439,9 @@ const zUpdateProjectUpdateDto = z.object({
22246
22439
  is_stale: z.boolean().optional().describe(""),
22247
22440
  comment_count: z.number().optional().describe(""),
22248
22441
  edited_at: z.unknown().optional().describe(""),
22442
+ author_id: z.string().optional().describe(""),
22249
22443
  project_id: z.string().nullable().optional(),
22250
- initiative_id: z.string().nullable().optional(),
22251
- author_id: z.string().optional()
22444
+ initiative_id: z.string().nullable().optional()
22252
22445
  });
22253
22446
  const zProjectUpdateBulkOperationDto = z.object({
22254
22447
  op: z.enum([
@@ -22297,8 +22490,8 @@ const zProjectUpdateFindAllV1Data = z.object({
22297
22490
  "filter.is_stale": z.array(z.string()).optional(),
22298
22491
  "filter.comment_count": z.array(z.string()).optional(),
22299
22492
  "filter.edited_at": z.array(z.string()).optional(),
22300
- "filter.initiative_id": z.array(z.string()).optional(),
22301
22493
  "filter.author_id": z.array(z.string()).optional(),
22494
+ "filter.initiative_id": z.array(z.string()).optional(),
22302
22495
  "filter.created_at": z.array(z.string()).optional(),
22303
22496
  "filter.updated_at": z.array(z.string()).optional(),
22304
22497
  "filter.project_id": z.array(z.string()).optional(),
@@ -24302,6 +24495,22 @@ const zRoleYamlUpdateRoleFromYamlV1Data = z.object({
24302
24495
  url: z.literal("/v1/role/{id}/yaml")
24303
24496
  });
24304
24497
 
24498
+ //#endregion
24499
+ //#region ../sdk/dist/gen/run-api/functions.js
24500
+ /**
24501
+ * Update a run_result_variant addressed by its id alone: status, actual_result, append_actual_result (server-side append) or timing fields. The run and run result are resolved from the variant in your workspace. Triggers the rollup cascade to run_result and run.
24502
+ */
24503
+ const runApiUpdateRunResultVariantByIdV1 = (options) => {
24504
+ return (options?.client ?? client).patch({
24505
+ security: [{
24506
+ scheme: "bearer",
24507
+ type: "http"
24508
+ }],
24509
+ url: "/v1/run/run-result-variant/{runResultVariantId}",
24510
+ ...options
24511
+ });
24512
+ };
24513
+
24305
24514
  //#endregion
24306
24515
  //#region ../sdk/dist/gen/run-api/zod.js
24307
24516
  const zRunApiSplitCreateRunsV1Body = z.object({
@@ -24433,6 +24642,49 @@ const zUpdateRunDto = z.object({
24433
24642
  sequence: z.string().max(255).optional(),
24434
24643
  parent_run_id: z.unknown().optional()
24435
24644
  });
24645
+ const zUpdateRunResultVariantDto = z.object({
24646
+ status_id: z.string().optional(),
24647
+ actual_result: z.string().nullable(),
24648
+ append_actual_result: z.string().optional(),
24649
+ started_at: z.unknown(),
24650
+ ended_at: z.unknown(),
24651
+ duration_ms: z.number().nullable()
24652
+ });
24653
+ const zRunResultVariantNodeDto = z.object({
24654
+ type: z.enum(["run_result_variant"]),
24655
+ id: z.string(),
24656
+ run_id: z.string(),
24657
+ run_result_id: z.string(),
24658
+ status_id: z.string(),
24659
+ environment_id: z.string().nullable(),
24660
+ data_set_row_id: z.string().nullable(),
24661
+ sequence: z.string(),
24662
+ actual_result: z.string().nullable(),
24663
+ started_at: z.unknown(),
24664
+ ended_at: z.unknown(),
24665
+ duration_ms: z.number().nullable(),
24666
+ environment_snapshot: z.record(z.string(), z.unknown()).nullable(),
24667
+ data_set_row_snapshot: z.record(z.string(), z.unknown()).nullable(),
24668
+ data: z.record(z.string(), z.unknown()).nullable(),
24669
+ source: z.record(z.string(), z.unknown()).nullable(),
24670
+ created_at: z.unknown(),
24671
+ updated_at: z.unknown(),
24672
+ created_by: z.string(),
24673
+ updated_by: z.string(),
24674
+ epoch: z.number(),
24675
+ status: z.object({
24676
+ id: z.string(),
24677
+ name: z.string(),
24678
+ key: z.number(),
24679
+ color: z.string().nullable()
24680
+ }).optional(),
24681
+ environment: z.object({
24682
+ id: z.string(),
24683
+ name: z.string(),
24684
+ key: z.number(),
24685
+ description: z.string().nullable()
24686
+ }).optional()
24687
+ });
24436
24688
  const zRunWithContentDto = z.object({
24437
24689
  type: z.enum(["run"]),
24438
24690
  id: z.string(),
@@ -24613,49 +24865,6 @@ const zBulkSetRunResultStatusDto = z.object({
24613
24865
  run_result_ids: z.array(z.string()),
24614
24866
  status_id: z.string()
24615
24867
  });
24616
- const zRunResultVariantNodeDto = z.object({
24617
- type: z.enum(["run_result_variant"]),
24618
- id: z.string(),
24619
- run_id: z.string(),
24620
- run_result_id: z.string(),
24621
- status_id: z.string(),
24622
- environment_id: z.string().nullable(),
24623
- data_set_row_id: z.string().nullable(),
24624
- sequence: z.string(),
24625
- actual_result: z.string().nullable(),
24626
- started_at: z.unknown(),
24627
- ended_at: z.unknown(),
24628
- duration_ms: z.number().nullable(),
24629
- environment_snapshot: z.record(z.string(), z.unknown()).nullable(),
24630
- data_set_row_snapshot: z.record(z.string(), z.unknown()).nullable(),
24631
- data: z.record(z.string(), z.unknown()).nullable(),
24632
- source: z.record(z.string(), z.unknown()).nullable(),
24633
- created_at: z.unknown(),
24634
- updated_at: z.unknown(),
24635
- created_by: z.string(),
24636
- updated_by: z.string(),
24637
- epoch: z.number(),
24638
- status: z.object({
24639
- id: z.string(),
24640
- name: z.string(),
24641
- key: z.number(),
24642
- color: z.string().nullable()
24643
- }).optional(),
24644
- environment: z.object({
24645
- id: z.string(),
24646
- name: z.string(),
24647
- key: z.number(),
24648
- description: z.string().nullable()
24649
- }).optional()
24650
- });
24651
- const zUpdateRunResultVariantDto = z.object({
24652
- status_id: z.string().optional(),
24653
- actual_result: z.string().nullable(),
24654
- append_actual_result: z.string().optional(),
24655
- started_at: z.unknown(),
24656
- ended_at: z.unknown(),
24657
- duration_ms: z.number().nullable()
24658
- });
24659
24868
  const zUpdateExecutionStepDto = z.object({
24660
24869
  status_id: z.string().optional(),
24661
24870
  result: z.string().nullable(),
@@ -24762,6 +24971,11 @@ const zRunApiSplitCreateRunsV1Data = z.object({
24762
24971
  body: zRunApiSplitCreateRunsV1Body,
24763
24972
  url: z.literal("/v1/run/split")
24764
24973
  });
24974
+ const zRunApiUpdateRunResultVariantByIdV1Data = z.object({
24975
+ body: zUpdateRunResultVariantDto,
24976
+ path: z.object({ "runResultVariantId": z.string() }),
24977
+ url: z.literal("/v1/run/run-result-variant/{runResultVariantId}")
24978
+ });
24765
24979
  const zRunApiBatchUpdateRunResultVariantsV1Data = z.object({
24766
24980
  body: zRunApiBatchUpdateRunResultVariantsV1Body,
24767
24981
  url: z.literal("/v1/run/run-result-variant/batch")
@@ -29478,8 +29692,8 @@ const zCreateThreadBriefLayoutDto = z.object({
29478
29692
  tray_mode: z.string().optional().describe(""),
29479
29693
  chat_monitor_index: z.number().optional().describe(""),
29480
29694
  monitor_count: z.number().optional().describe(""),
29481
- chat_id: z.string(),
29482
- user_id: z.string()
29695
+ user_id: z.string().optional().describe(""),
29696
+ chat_id: z.string()
29483
29697
  });
29484
29698
  const zResponseThreadBriefLayoutDto = z.object({
29485
29699
  id: z.string().describe(""),
@@ -29493,8 +29707,8 @@ const zResponseThreadBriefLayoutDto = z.object({
29493
29707
  tray_mode: z.string().optional().describe(""),
29494
29708
  chat_monitor_index: z.number().optional().describe(""),
29495
29709
  monitor_count: z.number().optional().describe(""),
29710
+ user_id: z.string().optional().describe(""),
29496
29711
  chat_id: z.string(),
29497
- user_id: z.string(),
29498
29712
  created_at: z.unknown().describe(""),
29499
29713
  updated_at: z.unknown().describe(""),
29500
29714
  epoch: z.number().describe(""),
@@ -29514,8 +29728,8 @@ const zUpdateThreadBriefLayoutDto = z.object({
29514
29728
  tray_mode: z.string().optional().describe(""),
29515
29729
  chat_monitor_index: z.number().optional().describe(""),
29516
29730
  monitor_count: z.number().optional().describe(""),
29517
- chat_id: z.string().optional(),
29518
- user_id: z.string().optional()
29731
+ user_id: z.string().optional().describe(""),
29732
+ chat_id: z.string().optional()
29519
29733
  });
29520
29734
  const zThreadBriefLayoutBulkOperationDto = z.object({
29521
29735
  op: z.enum([
@@ -29563,8 +29777,8 @@ const zThreadBriefLayoutFindAllV1Data = z.object({
29563
29777
  "filter.tray_mode": z.array(z.string()).optional(),
29564
29778
  "filter.chat_monitor_index": z.array(z.string()).optional(),
29565
29779
  "filter.monitor_count": z.array(z.string()).optional(),
29566
- "filter.chat_id": z.array(z.string()).optional(),
29567
29780
  "filter.user_id": z.array(z.string()).optional(),
29781
+ "filter.chat_id": z.array(z.string()).optional(),
29568
29782
  "filter.created_at": z.array(z.string()).optional(),
29569
29783
  "filter.updated_at": z.array(z.string()).optional(),
29570
29784
  "sortBy": z.array(z.enum([
@@ -30477,7 +30691,7 @@ const zCreateUserPreferenceDto = z.object({
30477
30691
  auto_assign_on_result: z.boolean().nullable().optional().describe(""),
30478
30692
  auto_assign_on_done: z.boolean().nullable().optional().describe(""),
30479
30693
  capture_retention_hours: z.number().nullable().optional().describe(""),
30480
- user_id: z.string()
30694
+ user_id: z.string().optional().describe("")
30481
30695
  });
30482
30696
  const zResponseUserPreferenceDto = z.object({
30483
30697
  id: z.string().describe(""),
@@ -30485,7 +30699,7 @@ const zResponseUserPreferenceDto = z.object({
30485
30699
  auto_assign_on_result: z.boolean().nullable().optional().describe(""),
30486
30700
  auto_assign_on_done: z.boolean().nullable().optional().describe(""),
30487
30701
  capture_retention_hours: z.number().nullable().optional().describe(""),
30488
- user_id: z.string(),
30702
+ user_id: z.string().optional().describe(""),
30489
30703
  created_at: z.unknown().describe(""),
30490
30704
  updated_at: z.unknown().describe(""),
30491
30705
  epoch: z.number().describe(""),
@@ -30501,7 +30715,7 @@ const zUpdateUserPreferenceDto = z.object({
30501
30715
  auto_assign_on_result: z.boolean().nullable().optional().describe(""),
30502
30716
  auto_assign_on_done: z.boolean().nullable().optional().describe(""),
30503
30717
  capture_retention_hours: z.number().nullable().optional().describe(""),
30504
- user_id: z.string().optional()
30718
+ user_id: z.string().optional().describe("")
30505
30719
  });
30506
30720
  const zUserPreferenceBulkOperationDto = z.object({
30507
30721
  op: z.enum([
@@ -31030,7 +31244,6 @@ const zWebhookBulkOperationV1Data = z.object({
31030
31244
  body: zBulkWebhookRequestDto,
31031
31245
  url: z.literal("/v1/webhook/bulk")
31032
31246
  });
31033
- const zWebhookHandleLevrWebhookData = z.object({ url: z.literal("/webhook/levr") });
31034
31247
 
31035
31248
  //#endregion
31036
31249
  //#region ../sdk/dist/gen/well-known/zod.js
@@ -31933,7 +32146,8 @@ async function uploadImport(options) {
31933
32146
  run_name: options.runName,
31934
32147
  automation_source: options.automationSource,
31935
32148
  automation_source_id: options.automationSourceId,
31936
- import_metadata: options.importMetadata ? JSON.stringify(options.importMetadata) : void 0
32149
+ import_metadata: options.importMetadata ? JSON.stringify(options.importMetadata) : void 0,
32150
+ include_results: options.includeResults ? true : void 0
31937
32151
  },
31938
32152
  requestValidator: void 0
31939
32153
  });
@@ -31956,6 +32170,53 @@ function tryReadMessage(err) {
31956
32170
  return typeof m === "string" ? m : void 0;
31957
32171
  }
31958
32172
  }
32173
+ async function uploadAttachment(body) {
32174
+ const result = await attachmentUploadUploadV1({
32175
+ body,
32176
+ requestValidator: void 0
32177
+ });
32178
+ return {
32179
+ status: result.response?.status ?? 0,
32180
+ data: result.data,
32181
+ error: result.error
32182
+ };
32183
+ }
32184
+ /**
32185
+ * Server-side append to an execution result's actual_result, addressed by
32186
+ * the variant id alone (ENG-6161 PATCH /v1/run/run-result-variant/:id). Never
32187
+ * a read-modify-write: the server appends.
32188
+ */
32189
+ async function appendActualResult(runResultVariantId, text) {
32190
+ const result = await runApiUpdateRunResultVariantByIdV1({
32191
+ path: { runResultVariantId },
32192
+ body: { append_actual_result: text },
32193
+ requestValidator: void 0
32194
+ });
32195
+ if (result.error) throw new Error(`Append failed (${String(result.response?.status ?? "unknown")}): ${tryReadMessage(result.error) ?? JSON.stringify(result.error)}`);
32196
+ }
32197
+ /** A NEW comment on an issue, test or run (append-only; ENG-6164 --embed). */
32198
+ async function createComment(target, targetId, body) {
32199
+ const result = target === "issue" ? await commentIssueCreateV1({
32200
+ body: {
32201
+ issue_id: targetId,
32202
+ body
32203
+ },
32204
+ requestValidator: void 0
32205
+ }) : target === "test" ? await commentTestCreateV1({
32206
+ body: {
32207
+ test_id: targetId,
32208
+ body
32209
+ },
32210
+ requestValidator: void 0
32211
+ }) : await commentRunCreateV1({
32212
+ body: {
32213
+ run_id: targetId,
32214
+ body
32215
+ },
32216
+ requestValidator: void 0
32217
+ });
32218
+ if (result.error) throw new Error(`Comment failed (${String(result.response?.status ?? "unknown")}): ${tryReadMessage(result.error) ?? JSON.stringify(result.error)}`);
32219
+ }
31959
32220
 
31960
32221
  //#endregion
31961
- export { authGetProfileV1, authGetSitesV1, client, configureClient, issueFindAllV1, issueGateVerificationReportGateResultsV1, issueGateVerificationVerifyGatesV1, teamFindAllV1, testCaseImportCommitV1, testCaseImportPreviewV1, uploadImport };
32222
+ export { appendActualResult, authGetProfileV1, authGetSitesV1, client, configureClient, createComment, issueFindAllV1, issueGateVerificationReportGateResultsV1, issueGateVerificationVerifyGatesV1, teamFindAllV1, testCaseImportCommitV1, testCaseImportPreviewV1, uploadAttachment, uploadImport };
@@ -1,8 +1,8 @@
1
- import "./env-CHeKHu5S.js";
2
- import { authGetSitesV1, configureClient } from "./sdk-client-SXw7oTbQ.js";
3
- import { saveWorkspace } from "./workspace-store-DDOxnut1.js";
4
- import "./token-refresh-Cu5RpkLJ.js";
5
- import { resolveToken } from "./resolve-token-DbQsmn03.js";
1
+ import { authGetSitesV1, configureClient } from "./sdk-client-B_urshDp.js";
2
+ import "./env-CdwyPHGV.js";
3
+ import "./token-refresh-DeusLK8H.js";
4
+ import { resolveToken } from "./resolve-token-7xb7kG7h.js";
5
+ import { saveWorkspace } from "./workspace-store-CnrxyYRB.js";
6
6
 
7
7
  //#region src/commands/workspace/selectHandler.ts
8
8
  async function selectHandler(_flags, workspaceId) {
@@ -0,0 +1,7 @@
1
+ //#region src/utils/sleep.ts
2
+ function sleep(ms) {
3
+ return new Promise((resolve) => setTimeout(resolve, ms));
4
+ }
5
+
6
+ //#endregion
7
+ export { sleep };
@@ -1,6 +1,6 @@
1
- import { getApiUrl, getPatToken, readCredentials } from "./env-CHeKHu5S.js";
2
- import { authGetProfileV1, configureClient } from "./sdk-client-SXw7oTbQ.js";
3
- import { isTokenExpired } from "./token-refresh-Cu5RpkLJ.js";
1
+ import { authGetProfileV1, configureClient } from "./sdk-client-B_urshDp.js";
2
+ import { getApiUrl, getPatToken, readCredentials } from "./env-CdwyPHGV.js";
3
+ import { isTokenExpired } from "./token-refresh-DeusLK8H.js";
4
4
  import chalk from "chalk";
5
5
 
6
6
  //#region src/commands/auth/statusHandler.ts
@@ -1,4 +1,4 @@
1
- import { CLI_CLIENT_ID, deleteCredentials, getApiUrl, writeCredentials } from "./env-CHeKHu5S.js";
1
+ import { CLI_CLIENT_ID, deleteCredentials, getApiUrl, writeCredentials } from "./env-CdwyPHGV.js";
2
2
 
3
3
  //#region src/auth/token-refresh.ts
4
4
  const REFRESH_BUFFER_MS = 300 * 1e3;