@copado/agentia-cli 0.111.0-alpha.0 → 0.113.0-alpha.0

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 (282) hide show
  1. package/README.md +1965 -410
  2. package/dist/commands/testing/build/abort.d.ts +7 -1
  3. package/dist/commands/testing/build/abort.js +13 -3
  4. package/dist/commands/testing/build/abort.js.map +1 -1
  5. package/dist/commands/testing/build/get.d.ts +18 -0
  6. package/dist/commands/testing/build/get.js +38 -0
  7. package/dist/commands/testing/build/get.js.map +1 -0
  8. package/dist/commands/testing/build/latest.d.ts +12 -0
  9. package/dist/commands/testing/build/latest.js +40 -0
  10. package/dist/commands/testing/build/latest.js.map +1 -0
  11. package/dist/commands/testing/build/list.d.ts +6 -1
  12. package/dist/commands/testing/build/list.js +23 -1
  13. package/dist/commands/testing/build/list.js.map +1 -1
  14. package/dist/commands/testing/build/logs.d.ts +6 -0
  15. package/dist/commands/testing/build/logs.js +8 -1
  16. package/dist/commands/testing/build/logs.js.map +1 -1
  17. package/dist/commands/testing/build/run.d.ts +27 -4
  18. package/dist/commands/testing/build/run.js +4 -18
  19. package/dist/commands/testing/build/run.js.map +1 -1
  20. package/dist/commands/testing/build/search.d.ts +21 -0
  21. package/dist/commands/testing/build/search.js +57 -0
  22. package/dist/commands/testing/build/search.js.map +1 -0
  23. package/dist/commands/testing/create.d.ts +1 -15
  24. package/dist/commands/testing/create.js +1 -43
  25. package/dist/commands/testing/create.js.map +1 -1
  26. package/dist/commands/testing/data-table/create.d.ts +30 -0
  27. package/dist/commands/testing/data-table/create.js +52 -0
  28. package/dist/commands/testing/data-table/create.js.map +1 -0
  29. package/dist/commands/testing/data-table/delete.d.ts +25 -0
  30. package/dist/commands/testing/data-table/delete.js +40 -0
  31. package/dist/commands/testing/data-table/delete.js.map +1 -0
  32. package/dist/commands/testing/data-table/export.d.ts +33 -0
  33. package/dist/commands/testing/data-table/export.js +59 -0
  34. package/dist/commands/testing/data-table/export.js.map +1 -0
  35. package/dist/commands/testing/data-table/get.d.ts +21 -0
  36. package/dist/commands/testing/data-table/get.js +35 -0
  37. package/dist/commands/testing/data-table/get.js.map +1 -0
  38. package/dist/commands/testing/data-table/list.d.ts +16 -0
  39. package/dist/commands/testing/data-table/list.js +33 -0
  40. package/dist/commands/testing/data-table/list.js.map +1 -0
  41. package/dist/commands/testing/data-table/update.d.ts +34 -0
  42. package/dist/commands/testing/data-table/update.js +64 -0
  43. package/dist/commands/testing/data-table/update.js.map +1 -0
  44. package/dist/commands/testing/job/create.d.ts +18 -0
  45. package/dist/commands/testing/job/create.js +60 -4
  46. package/dist/commands/testing/job/create.js.map +1 -1
  47. package/dist/commands/testing/job/delete.d.ts +6 -1
  48. package/dist/commands/testing/job/delete.js +13 -3
  49. package/dist/commands/testing/job/delete.js.map +1 -1
  50. package/dist/commands/testing/job/refs.d.ts +17 -0
  51. package/dist/commands/testing/job/refs.js +30 -0
  52. package/dist/commands/testing/job/refs.js.map +1 -0
  53. package/dist/commands/testing/job/schedule/get.d.ts +23 -0
  54. package/dist/commands/testing/job/schedule/get.js +31 -0
  55. package/dist/commands/testing/job/schedule/get.js.map +1 -0
  56. package/dist/commands/testing/job/schedule/remove.d.ts +24 -0
  57. package/dist/commands/testing/job/schedule/remove.js +34 -0
  58. package/dist/commands/testing/job/schedule/remove.js.map +1 -0
  59. package/dist/commands/testing/job/schedule/set.d.ts +23 -0
  60. package/dist/commands/testing/job/schedule/set.js +39 -0
  61. package/dist/commands/testing/job/schedule/set.js.map +1 -0
  62. package/dist/commands/testing/job/update.d.ts +2 -0
  63. package/dist/commands/testing/job/update.js +7 -1
  64. package/dist/commands/testing/job/update.js.map +1 -1
  65. package/dist/commands/testing/job/upload.d.ts +6 -0
  66. package/dist/commands/testing/job/upload.js +22 -0
  67. package/dist/commands/testing/job/upload.js.map +1 -1
  68. package/dist/commands/testing/live/continue.d.ts +20 -0
  69. package/dist/commands/testing/live/continue.js +21 -0
  70. package/dist/commands/testing/live/continue.js.map +1 -0
  71. package/dist/commands/testing/live/execute.d.ts +30 -0
  72. package/dist/commands/testing/live/execute.js +43 -0
  73. package/dist/commands/testing/live/execute.js.map +1 -0
  74. package/dist/commands/testing/live/history.d.ts +23 -0
  75. package/dist/commands/testing/live/history.js +35 -0
  76. package/dist/commands/testing/live/history.js.map +1 -0
  77. package/dist/commands/testing/live/inspect.d.ts +18 -0
  78. package/dist/commands/testing/live/inspect.js +30 -0
  79. package/dist/commands/testing/live/inspect.js.map +1 -0
  80. package/dist/commands/testing/live/interrupt.d.ts +20 -0
  81. package/dist/commands/testing/live/interrupt.js +21 -0
  82. package/dist/commands/testing/live/interrupt.js.map +1 -0
  83. package/dist/commands/testing/live/recorder.d.ts +23 -0
  84. package/dist/commands/testing/live/recorder.js +134 -0
  85. package/dist/commands/testing/live/recorder.js.map +1 -0
  86. package/dist/commands/testing/live/reports.d.ts +20 -0
  87. package/dist/commands/testing/live/reports.js +31 -0
  88. package/dist/commands/testing/live/reports.js.map +1 -0
  89. package/dist/commands/testing/live/screenshot.d.ts +23 -0
  90. package/dist/commands/testing/live/screenshot.js +25 -0
  91. package/dist/commands/testing/live/screenshot.js.map +1 -0
  92. package/dist/commands/testing/live/set-options.d.ts +27 -0
  93. package/dist/commands/testing/live/set-options.js +28 -0
  94. package/dist/commands/testing/live/set-options.js.map +1 -0
  95. package/dist/commands/testing/live/start.d.ts +29 -0
  96. package/dist/commands/testing/live/start.js +53 -0
  97. package/dist/commands/testing/live/start.js.map +1 -0
  98. package/dist/commands/testing/live/status.d.ts +19 -0
  99. package/dist/commands/testing/live/status.js +27 -0
  100. package/dist/commands/testing/live/status.js.map +1 -0
  101. package/dist/commands/testing/live/stop.d.ts +24 -0
  102. package/dist/commands/testing/live/stop.js +38 -0
  103. package/dist/commands/testing/live/stop.js.map +1 -0
  104. package/dist/commands/testing/live/view.d.ts +16 -0
  105. package/dist/commands/testing/live/view.js +36 -0
  106. package/dist/commands/testing/live/view.js.map +1 -0
  107. package/dist/commands/testing/logs.d.ts +6 -0
  108. package/dist/commands/testing/logs.js +8 -1
  109. package/dist/commands/testing/logs.js.map +1 -1
  110. package/dist/commands/testing/project/create.d.ts +3 -0
  111. package/dist/commands/testing/project/create.js +17 -1
  112. package/dist/commands/testing/project/create.js.map +1 -1
  113. package/dist/commands/testing/project/delete.d.ts +7 -2
  114. package/dist/commands/testing/project/delete.js +15 -3
  115. package/dist/commands/testing/project/delete.js.map +1 -1
  116. package/dist/commands/testing/project/get.js +1 -1
  117. package/dist/commands/testing/project/get.js.map +1 -1
  118. package/dist/commands/testing/project/permission/get.d.ts +13 -0
  119. package/dist/commands/testing/project/permission/get.js +21 -0
  120. package/dist/commands/testing/project/permission/get.js.map +1 -0
  121. package/dist/commands/testing/project/permission/list.d.ts +13 -0
  122. package/dist/commands/testing/project/permission/list.js +21 -0
  123. package/dist/commands/testing/project/permission/list.js.map +1 -0
  124. package/dist/commands/testing/project/permission/set.d.ts +19 -0
  125. package/dist/commands/testing/project/permission/set.js +33 -0
  126. package/dist/commands/testing/project/permission/set.js.map +1 -0
  127. package/dist/commands/testing/project/permission/update.d.ts +19 -0
  128. package/dist/commands/testing/project/permission/update.js +33 -0
  129. package/dist/commands/testing/project/permission/update.js.map +1 -0
  130. package/dist/commands/testing/project/update.d.ts +14 -0
  131. package/dist/commands/testing/project/update.js +28 -0
  132. package/dist/commands/testing/project/update.js.map +1 -0
  133. package/dist/commands/testing/robot/create.d.ts +4 -1
  134. package/dist/commands/testing/robot/create.js +20 -5
  135. package/dist/commands/testing/robot/create.js.map +1 -1
  136. package/dist/commands/testing/robot/delete.d.ts +6 -1
  137. package/dist/commands/testing/robot/delete.js +13 -3
  138. package/dist/commands/testing/robot/delete.js.map +1 -1
  139. package/dist/commands/testing/robot/update.d.ts +19 -0
  140. package/dist/commands/testing/robot/update.js +49 -0
  141. package/dist/commands/testing/robot/update.js.map +1 -0
  142. package/dist/commands/testing/run.d.ts +27 -4
  143. package/dist/commands/testing/run.js +4 -11
  144. package/dist/commands/testing/run.js.map +1 -1
  145. package/dist/commands/testing/test/run.d.ts +27 -11
  146. package/dist/commands/testing/test/run.js +5 -37
  147. package/dist/commands/testing/test/run.js.map +1 -1
  148. package/dist/commands/testing/update.d.ts +6 -0
  149. package/dist/commands/testing/update.js +10 -0
  150. package/dist/commands/testing/update.js.map +1 -1
  151. package/dist/commands/testing/user-parameter/create.d.ts +19 -0
  152. package/dist/commands/testing/user-parameter/create.js +45 -0
  153. package/dist/commands/testing/user-parameter/create.js.map +1 -0
  154. package/dist/commands/testing/user-parameter/delete.d.ts +21 -0
  155. package/dist/commands/testing/user-parameter/delete.js +33 -0
  156. package/dist/commands/testing/user-parameter/delete.js.map +1 -0
  157. package/dist/commands/testing/user-parameter/get.d.ts +13 -0
  158. package/dist/commands/testing/user-parameter/get.js +21 -0
  159. package/dist/commands/testing/user-parameter/get.js.map +1 -0
  160. package/dist/commands/testing/user-parameter/list.d.ts +12 -0
  161. package/dist/commands/testing/user-parameter/list.js +23 -0
  162. package/dist/commands/testing/user-parameter/list.js.map +1 -0
  163. package/dist/commands/testing/user-parameter/update.d.ts +23 -0
  164. package/dist/commands/testing/user-parameter/update.js +45 -0
  165. package/dist/commands/testing/user-parameter/update.js.map +1 -0
  166. package/dist/commands/testing/variable/create.d.ts +6 -2
  167. package/dist/commands/testing/variable/create.js +14 -5
  168. package/dist/commands/testing/variable/create.js.map +1 -1
  169. package/dist/commands/testing/variable/delete.d.ts +6 -1
  170. package/dist/commands/testing/variable/delete.js +13 -3
  171. package/dist/commands/testing/variable/delete.js.map +1 -1
  172. package/dist/commands/testing/variable/get.d.ts +13 -0
  173. package/dist/commands/testing/variable/get.js +25 -0
  174. package/dist/commands/testing/variable/get.js.map +1 -0
  175. package/dist/commands/testing/variable/list.d.ts +4 -0
  176. package/dist/commands/testing/variable/list.js +15 -3
  177. package/dist/commands/testing/variable/list.js.map +1 -1
  178. package/dist/commands/testing/variable/update.d.ts +6 -2
  179. package/dist/commands/testing/variable/update.js +11 -5
  180. package/dist/commands/testing/variable/update.js.map +1 -1
  181. package/dist/lib/ai-gateway.js +2 -0
  182. package/dist/lib/ai-gateway.js.map +1 -1
  183. package/dist/lib/cicd-gateway.d.ts +4 -2
  184. package/dist/lib/cicd-gateway.js +14 -0
  185. package/dist/lib/cicd-gateway.js.map +1 -1
  186. package/dist/lib/credential-store.d.ts +3 -0
  187. package/dist/lib/credential-store.js +16 -0
  188. package/dist/lib/credential-store.js.map +1 -1
  189. package/dist/lib/mcp/command-id.js +3 -0
  190. package/dist/lib/mcp/command-id.js.map +1 -1
  191. package/dist/lib/mcp/testing-live-tools.d.ts +126 -0
  192. package/dist/lib/mcp/testing-live-tools.js +215 -0
  193. package/dist/lib/mcp/testing-live-tools.js.map +1 -0
  194. package/dist/lib/mcp/testing-tools.d.ts +455 -9
  195. package/dist/lib/mcp/testing-tools.js +677 -37
  196. package/dist/lib/mcp/testing-tools.js.map +1 -1
  197. package/dist/lib/mcp/tools.d.ts +551 -14
  198. package/dist/lib/testing-config.d.ts +3 -0
  199. package/dist/lib/testing-config.js +9 -0
  200. package/dist/lib/testing-config.js.map +1 -1
  201. package/dist/lib/testing-confirmation.d.ts +14 -0
  202. package/dist/lib/testing-confirmation.js +17 -0
  203. package/dist/lib/testing-confirmation.js.map +1 -0
  204. package/dist/lib/testing-data-command.d.ts +21 -0
  205. package/dist/lib/testing-data-command.js +49 -0
  206. package/dist/lib/testing-data-command.js.map +1 -0
  207. package/dist/lib/testing-data-core.d.ts +22 -0
  208. package/dist/lib/testing-data-core.js +208 -0
  209. package/dist/lib/testing-data-core.js.map +1 -0
  210. package/dist/lib/testing-data-export.d.ts +1 -0
  211. package/dist/lib/testing-data-export.js +2 -0
  212. package/dist/lib/testing-data-export.js.map +1 -0
  213. package/dist/lib/testing-data-import.d.ts +1 -0
  214. package/dist/lib/testing-data-import.js +2 -0
  215. package/dist/lib/testing-data-import.js.map +1 -0
  216. package/dist/lib/testing-data-io.d.ts +21 -0
  217. package/dist/lib/testing-data-io.js +236 -0
  218. package/dist/lib/testing-data-io.js.map +1 -0
  219. package/dist/lib/testing-data-operations.d.ts +36 -0
  220. package/dist/lib/testing-data-operations.js +91 -0
  221. package/dist/lib/testing-data-operations.js.map +1 -0
  222. package/dist/lib/testing-data-types.d.ts +41 -0
  223. package/dist/lib/testing-data-types.js +3 -0
  224. package/dist/lib/testing-data-types.js.map +1 -0
  225. package/dist/lib/testing-flags.d.ts +62 -1
  226. package/dist/lib/testing-flags.js +177 -1
  227. package/dist/lib/testing-flags.js.map +1 -1
  228. package/dist/lib/testing-gateway.d.ts +17 -3
  229. package/dist/lib/testing-gateway.js +176 -45
  230. package/dist/lib/testing-gateway.js.map +1 -1
  231. package/dist/lib/testing-live-command.d.ts +24 -0
  232. package/dist/lib/testing-live-command.js +56 -0
  233. package/dist/lib/testing-live-command.js.map +1 -0
  234. package/dist/lib/testing-live-endpoints.d.ts +14 -0
  235. package/dist/lib/testing-live-endpoints.js +34 -0
  236. package/dist/lib/testing-live-endpoints.js.map +1 -0
  237. package/dist/lib/testing-live-history.d.ts +11 -0
  238. package/dist/lib/testing-live-history.js +96 -0
  239. package/dist/lib/testing-live-history.js.map +1 -0
  240. package/dist/lib/testing-live-operations.d.ts +118 -0
  241. package/dist/lib/testing-live-operations.js +676 -0
  242. package/dist/lib/testing-live-operations.js.map +1 -0
  243. package/dist/lib/testing-live-recorder.d.ts +14 -0
  244. package/dist/lib/testing-live-recorder.js +122 -0
  245. package/dist/lib/testing-live-recorder.js.map +1 -0
  246. package/dist/lib/testing-live-robot.d.ts +16 -0
  247. package/dist/lib/testing-live-robot.js +158 -0
  248. package/dist/lib/testing-live-robot.js.map +1 -0
  249. package/dist/lib/testing-live-state.d.ts +4 -0
  250. package/dist/lib/testing-live-state.js +90 -0
  251. package/dist/lib/testing-live-state.js.map +1 -0
  252. package/dist/lib/testing-live-types.d.ts +92 -0
  253. package/dist/lib/testing-live-types.js +2 -0
  254. package/dist/lib/testing-live-types.js.map +1 -0
  255. package/dist/lib/testing-operations.d.ts +157 -5
  256. package/dist/lib/testing-operations.js +830 -66
  257. package/dist/lib/testing-operations.js.map +1 -1
  258. package/dist/lib/testing-run-command.d.ts +25 -0
  259. package/dist/lib/testing-run-command.js +94 -0
  260. package/dist/lib/testing-run-command.js.map +1 -0
  261. package/dist/lib/testing-sanitization.d.ts +11 -0
  262. package/dist/lib/testing-sanitization.js +135 -0
  263. package/dist/lib/testing-sanitization.js.map +1 -0
  264. package/dist/lib/testing-schedule.d.ts +23 -0
  265. package/dist/lib/testing-schedule.js +48 -0
  266. package/dist/lib/testing-schedule.js.map +1 -0
  267. package/dist/lib/testing-secret-input.d.ts +12 -0
  268. package/dist/lib/testing-secret-input.js +56 -0
  269. package/dist/lib/testing-secret-input.js.map +1 -0
  270. package/dist/lib/testing-session.d.ts +8 -0
  271. package/dist/lib/testing-session.js +82 -0
  272. package/dist/lib/testing-session.js.map +1 -0
  273. package/dist/lib/testing-types.d.ts +143 -13
  274. package/dist/lib/testing-types.js +110 -5
  275. package/dist/lib/testing-types.js.map +1 -1
  276. package/dist/lib/testing-watch.d.ts +4 -0
  277. package/dist/lib/testing-watch.js +45 -0
  278. package/dist/lib/testing-watch.js.map +1 -0
  279. package/oclif.manifest.json +8721 -4127
  280. package/package.json +12 -1
  281. package/templates/skills/agentia-testing/SKILL.md +9 -6
  282. package/templates/skills/agentia-testing/references/tests.md +70 -36
@@ -1,13 +1,19 @@
1
1
  import { type TestingGatewayCallOptions } from './testing-gateway.js';
2
- import { type TestingAuthor, type TestingBuild, type TestingBuildRunRequest, type TestingBuildRunResult, type TestingBuildStatus, type TestingCreateVariableRequest, type TestingDownloadResult, type TestingFileEntry, type TestingFileOperation, type TestingGitStorageUpdate, type TestingJob, type TestingJobCreateResult, type TestingJobUpdateRequest, type TestingLogResult, type TestingProject, type TestingRecord, type TestingRecordBuildOption, type TestingRobot, type TestingVariable, type TestingVariableType, type TestingVariableUpdateRequest } from './testing-types.js';
2
+ import { type TestingAuthor, type TestingBuild, type TestingBuildLogOptions, type TestingBuildRunRequest, type TestingBuildRunResult, type TestingBuildSearchOptions, type TestingBuildSearchResult, type TestingBuildStatus, type TestingCreateUserParameterRequest, type TestingCreateVariableRequest, type TestingDownloadResult, type TestingFileEntry, type TestingFileOperation, type TestingGitStorageUpdate, type TestingJob, type TestingJobCreateResult, type TestingJobUpdateRequest, type TestingLogResult, type TestingPermission, type TestingPermissionRequest, type TestingProject, type TestingProjectExecutor, type TestingProjectType, type TestingRecord, type TestingRecordBuildOption, type TestingRobot, type TestingRobotReporting, type TestingRobotRunEnvironment, type TestingRobotType, type TestingRunType, type TestingUserParameter, type TestingUserParameterUpdateRequest, type TestingVariable, type TestingVariableType, type TestingVariableUpdateRequest } from './testing-types.js';
3
3
  export declare const DEFAULT_TESTING_AUTHOR: TestingAuthor;
4
4
  export type TestingFileCollectionInput = {
5
+ basePath?: string;
5
6
  dirs?: string[];
6
7
  files?: string[];
8
+ remotePrefix?: string;
7
9
  };
8
10
  export type TestingConnectionOptions = TestingGatewayCallOptions;
9
11
  export type TestingCreateJobOptions = TestingConnectionOptions & {
12
+ analytics?: {
13
+ caseDurationChangeDetection?: boolean;
14
+ };
10
15
  description?: string;
16
+ dryRun?: boolean;
11
17
  fileInput?: TestingFileCollectionInput;
12
18
  gitBranch?: string;
13
19
  gitDomainCredentialId?: string;
@@ -17,8 +23,17 @@ export type TestingCreateJobOptions = TestingConnectionOptions & {
17
23
  gitUseCallerCredentials?: boolean;
18
24
  gitUsername?: string;
19
25
  name: string;
26
+ parallelExecution?: TestingJobUpdateRequest['parallelExecution'];
20
27
  projectId: number;
21
28
  robotId: number | string;
29
+ screen?: TestingJobUpdateRequest['screen'];
30
+ showVideoParams?: boolean;
31
+ suiteType?: TestingJobUpdateRequest['suiteType'];
32
+ timeout?: string;
33
+ uploadAuthor?: TestingAuthor;
34
+ uploadCommitMessage?: string;
35
+ uploadParentCommitHash?: string;
36
+ validation?: boolean;
22
37
  };
23
38
  export type TestingGitStorageOptions = {
24
39
  gitBranch?: string;
@@ -31,8 +46,11 @@ export type TestingGitStorageOptions = {
31
46
  export type TestingUploadOptions = TestingConnectionOptions & {
32
47
  author?: TestingAuthor;
33
48
  branch?: string;
49
+ commitMessage?: string;
50
+ dryRun?: boolean;
34
51
  jobId: number;
35
52
  operations: TestingFileOperation[];
53
+ parentCommitHash?: string;
36
54
  projectId: number;
37
55
  };
38
56
  export type TestingDownloadOptions = TestingConnectionOptions & {
@@ -50,22 +68,42 @@ export type TestingBuildParameterInput = {
50
68
  };
51
69
  export type TestingRunOptions = TestingConnectionOptions & {
52
70
  branch?: string;
71
+ consoleColors?: 'ansi' | 'auto' | 'off' | 'on';
72
+ consoleWidth?: number;
73
+ dataTables?: string[];
74
+ doc?: string;
75
+ dryRun?: boolean;
53
76
  exclude?: string[];
77
+ exitOnError?: boolean;
78
+ exitOnFailure?: boolean;
54
79
  include?: string[];
55
80
  jobId: number;
81
+ metadata?: string[];
82
+ name?: string;
56
83
  parameters?: TestingBuildParameterInput[];
57
84
  projectId: number;
58
85
  record?: TestingRecordBuildOption;
59
86
  rerunFailedFromLatest?: boolean;
60
87
  rerunFailedId?: number;
88
+ runEmptySuite?: boolean;
89
+ runType?: TestingRunType;
90
+ setTags?: string[];
91
+ skip?: string[];
92
+ skipOnFailure?: string[];
93
+ suites?: string[];
61
94
  tag?: string;
95
+ tests?: string[];
96
+ variables?: string[];
62
97
  };
63
98
  export type TestingBuildWaitOptions = TestingConnectionOptions & {
64
99
  buildId?: number | string;
65
100
  intervalMs?: number;
66
101
  jobId: number;
102
+ onLog?: (chunk: string) => void;
67
103
  onPoll?: (build: TestingBuild) => void;
68
104
  projectId: number;
105
+ sensitiveValues?: string[];
106
+ streamLogs?: boolean;
69
107
  timeoutMs?: number;
70
108
  };
71
109
  export type TestingBuildWaitResult = {
@@ -73,19 +111,47 @@ export type TestingBuildWaitResult = {
73
111
  build: TestingBuild;
74
112
  buildId?: number | string;
75
113
  jobId: number;
114
+ log?: string;
76
115
  projectId: number;
77
116
  };
78
- type TestingSnapshotFetchFn = (url: URL, headers: Record<string, string>, timeoutMs: number) => Promise<Buffer>;
117
+ export type TestingArtifactResult = {
118
+ archive?: string;
119
+ xunit?: string;
120
+ };
121
+ type TestingSnapshotFetchFn = (url: URL, headers: Record<string, string>, timeoutMs: number, maxResponseBytes: number) => Promise<Buffer>;
79
122
  export declare function listTestingProjects(options?: TestingConnectionOptions & {
80
123
  name?: string;
81
124
  }): Promise<TestingProject[]>;
82
125
  export declare function createTestingProject(options: TestingConnectionOptions & {
126
+ dashboardId?: number;
83
127
  description?: string;
84
128
  name: string;
129
+ projectExecutor?: TestingProjectExecutor;
130
+ projectType?: TestingProjectType;
85
131
  }): Promise<TestingProject>;
86
132
  export declare function getTestingProject(options: TestingConnectionOptions & {
87
133
  projectId: number | string;
88
134
  }): Promise<TestingProject>;
135
+ export declare function updateTestingProject(options: TestingConnectionOptions & {
136
+ description?: string;
137
+ name?: string;
138
+ projectId: number | string;
139
+ }): Promise<TestingProject>;
140
+ export declare function listTestingProjectPermissions(options: TestingConnectionOptions & {
141
+ projectId: number | string;
142
+ }): Promise<TestingPermission[]>;
143
+ export declare function getTestingProjectPermission(options: TestingConnectionOptions & {
144
+ projectId: number | string;
145
+ }): Promise<TestingPermission>;
146
+ export declare function setTestingProjectPermission(options: TestingConnectionOptions & TestingPermissionRequest & {
147
+ projectId: number | string;
148
+ }): Promise<TestingPermission[]>;
149
+ export declare function deleteTestingProjectPermission(options: TestingConnectionOptions & {
150
+ permissionId: number;
151
+ }): Promise<{
152
+ deleted: true;
153
+ permissionId: number;
154
+ }>;
89
155
  export declare function deleteTestingProject(options: TestingConnectionOptions & {
90
156
  projectId: number;
91
157
  }): Promise<{
@@ -98,16 +164,28 @@ export declare function listTestingRobots(options: TestingConnectionOptions & {
98
164
  export declare function createTestingRobot(options: TestingConnectionOptions & {
99
165
  description?: string;
100
166
  fwVersion?: string;
101
- kind?: 'cloud' | 'QConnect';
167
+ kind?: TestingRobotRunEnvironment;
168
+ label?: string;
102
169
  name: string;
103
170
  os?: string;
104
171
  projectId: number;
105
- robotType?: string;
172
+ reporting?: TestingRobotReporting;
173
+ robotType?: TestingRobotType;
106
174
  }): Promise<TestingRobot>;
107
175
  export declare function getTestingRobot(options: TestingConnectionOptions & {
108
176
  projectId: number;
109
177
  robotId: number | string;
110
178
  }): Promise<TestingRobot>;
179
+ export declare function updateTestingRobot(options: TestingConnectionOptions & {
180
+ description?: string;
181
+ fwVersion?: string;
182
+ label?: string;
183
+ name?: string;
184
+ projectId: number;
185
+ reporting?: TestingRobotReporting;
186
+ robotId: number | string;
187
+ robotType?: TestingRobotType;
188
+ }): Promise<TestingRobot>;
111
189
  export declare function deleteTestingRobot(options: TestingConnectionOptions & {
112
190
  projectId: number;
113
191
  robotId: number | string;
@@ -143,24 +221,60 @@ export declare function listTestingJobFiles(options: TestingConnectionOptions &
143
221
  projectId: number;
144
222
  }): Promise<TestingFileEntry[]>;
145
223
  export declare function uploadTestingJobFiles(options: TestingUploadOptions): Promise<{
224
+ dryRun?: true;
146
225
  operations: TestingFileOperation[];
147
226
  response: TestingRecord;
148
227
  }>;
228
+ export declare function getTestingJobRefs(options: TestingConnectionOptions & {
229
+ jobId: number;
230
+ projectId: number;
231
+ sharedCredentials?: boolean;
232
+ }): Promise<TestingRecord>;
149
233
  export declare function downloadTestingJobFiles(options: TestingDownloadOptions): Promise<TestingDownloadResult>;
150
234
  export declare function runTestingBuild(options: TestingRunOptions): Promise<TestingBuildRunResult>;
151
235
  export declare function listTestingBuilds(options: TestingConnectionOptions & {
152
236
  jobId?: number;
237
+ page?: number;
238
+ pageSize?: number;
153
239
  projectId: number;
154
240
  resultSize?: 'compact';
155
241
  status?: TestingBuildStatus;
156
242
  }): Promise<TestingBuild[]>;
243
+ export declare function countTestingBuilds(options: TestingConnectionOptions & {
244
+ jobId: number;
245
+ projectId: number;
246
+ }): Promise<number>;
247
+ export declare function getTestingBuild(options: TestingConnectionOptions & {
248
+ buildId: number | string;
249
+ full?: boolean;
250
+ jobId: number;
251
+ projectId: number;
252
+ }): Promise<TestingBuild>;
253
+ export declare function getTestingBuildForArtifacts(options: TestingConnectionOptions & {
254
+ buildId: number | string;
255
+ full?: boolean;
256
+ jobId: number;
257
+ projectId: number;
258
+ }): Promise<TestingBuild>;
259
+ export declare function latestTestingBuilds(options: TestingConnectionOptions & {
260
+ projectId: number;
261
+ resultSize?: 'compact';
262
+ status?: TestingBuildStatus;
263
+ }): Promise<TestingBuild[]>;
264
+ export declare function searchTestingBuilds(options: TestingBuildSearchOptions & TestingConnectionOptions): Promise<TestingBuildSearchResult>;
157
265
  export declare function waitForTestingBuildResult(options: TestingBuildWaitOptions): Promise<TestingBuildWaitResult>;
158
- export declare function getTestingBuildLogs(options: TestingConnectionOptions & {
266
+ export declare function getTestingBuildLogs(options: TestingBuildLogOptions & TestingConnectionOptions & {
159
267
  buildId: number;
160
268
  jobId: number;
269
+ knownSecrets?: string[];
161
270
  output?: string;
162
271
  projectId: number;
163
272
  }): Promise<TestingLogResult>;
273
+ export declare function saveTestingBuildArtifacts(options: TestingConnectionOptions & {
274
+ build: TestingBuild;
275
+ saveArtifacts?: string;
276
+ xunit?: string;
277
+ }): Promise<TestingArtifactResult>;
164
278
  export declare function abortTestingBuild(options: TestingConnectionOptions & {
165
279
  buildId: number;
166
280
  jobId: number;
@@ -173,9 +287,17 @@ export declare function abortTestingBuild(options: TestingConnectionOptions & {
173
287
  }>;
174
288
  export declare function listTestingVariables(options: TestingConnectionOptions & {
175
289
  jobId?: number;
290
+ key?: string;
176
291
  projectId: number;
177
292
  robotId?: number;
293
+ sensitive?: boolean;
294
+ type?: TestingVariableType;
295
+ userSpecific?: boolean;
178
296
  }): Promise<TestingVariable[]>;
297
+ export declare function getTestingVariable(options: TestingConnectionOptions & {
298
+ projectId: number;
299
+ variableId: string;
300
+ }): Promise<TestingVariable>;
179
301
  export declare function createTestingVariable(options: TestingConnectionOptions & TestingCreateVariableRequest & {
180
302
  projectId: number;
181
303
  }): Promise<unknown>;
@@ -190,13 +312,43 @@ export declare function deleteTestingVariable(options: TestingConnectionOptions
190
312
  projectId: number;
191
313
  variableId: string;
192
314
  }>;
315
+ export declare function listTestingUserParameters(options?: TestingConnectionOptions & {
316
+ jobId?: number;
317
+ key?: string;
318
+ projectId?: number;
319
+ }): Promise<TestingUserParameter[]>;
320
+ export declare function getTestingUserParameter(options: TestingConnectionOptions & {
321
+ parameterId: number | string;
322
+ }): Promise<TestingUserParameter>;
323
+ export declare function createTestingUserParameter(options: TestingConnectionOptions & TestingCreateUserParameterRequest & {
324
+ unique?: boolean;
325
+ }): Promise<TestingUserParameter>;
326
+ export declare function updateTestingUserParameter(options: TestingConnectionOptions & TestingUserParameterUpdateRequest & {
327
+ parameterId: number | string;
328
+ unique?: boolean;
329
+ }): Promise<TestingUserParameter>;
330
+ export declare function deleteTestingUserParameter(options: TestingConnectionOptions & {
331
+ parameterId: number | string;
332
+ }): Promise<{
333
+ deleted: true;
334
+ parameterId: number | string;
335
+ }>;
193
336
  export declare function buildFileAddOperations(input: TestingFileCollectionInput): TestingFileOperation[];
194
337
  export declare function buildFileOperationsFromSpecs(specs: {
195
338
  add?: string[];
339
+ basePath?: string;
340
+ remotePrefix?: string;
196
341
  remove?: string[];
197
342
  replace?: string[];
198
343
  }): TestingFileOperation[];
199
344
  export declare function buildTestingRunRequest(options: TestingRunOptions): TestingBuildRunRequest;
200
345
  export declare function setTestingSnapshotFetchForTests(snapshotFetchFn: TestingSnapshotFetchFn): void;
201
346
  export declare function resetTestingSnapshotFetchForTests(): void;
347
+ export declare function normalizeTestingRemotePath(path: string): string;
348
+ export declare function testingBuildStatus(build: TestingBuild): string | undefined;
349
+ export declare function isTerminalTestingBuild(build: TestingBuild): boolean;
350
+ export declare function isSuccessfulTestingBuild(build: TestingBuild): boolean;
351
+ export declare function tailTestingLogLines(log: string, count: number): string;
352
+ export declare function validateTestingOutputPath(path: string): string;
353
+ export declare function buildTestingMsearchBody(orgId: number, options: TestingBuildSearchOptions): string;
202
354
  export {};