@intuned/runtime 1.3.16 → 1.3.18-interface.6

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 (295) hide show
  1. package/bin/intuned +0 -0
  2. package/bin/intuned-interface +7 -0
  3. package/dist/chunk-6ZRJOUQS.mjs +16 -0
  4. package/dist/chunk-6ZRJOUQS.mjs.map +1 -0
  5. package/dist/chunk-7YL2JUTE.mjs +146 -0
  6. package/dist/chunk-7YL2JUTE.mjs.map +1 -0
  7. package/dist/chunk-B3T6RXPC.mjs +794 -0
  8. package/dist/chunk-B3T6RXPC.mjs.map +1 -0
  9. package/dist/chunk-FGV5T6SI.mjs +27 -0
  10. package/dist/chunk-FGV5T6SI.mjs.map +1 -0
  11. package/dist/chunk-G4PO5RIV.mjs +85 -0
  12. package/dist/chunk-G4PO5RIV.mjs.map +1 -0
  13. package/dist/chunk-LZOMFHX3.mjs +38 -0
  14. package/dist/chunk-LZOMFHX3.mjs.map +1 -0
  15. package/dist/{common/formatZodError.js → chunk-NDMVGENG.mjs} +9 -9
  16. package/dist/chunk-NDMVGENG.mjs.map +1 -0
  17. package/dist/chunk-W4UX6G4X.mjs +17 -0
  18. package/dist/chunk-W4UX6G4X.mjs.map +1 -0
  19. package/dist/chunk-XC75QGFG.mjs +1106 -0
  20. package/dist/chunk-XC75QGFG.mjs.map +1 -0
  21. package/dist/chunk-XOAZ2MGA.mjs +59 -0
  22. package/dist/chunk-XOAZ2MGA.mjs.map +1 -0
  23. package/dist/commands/interface/run.d.mts +3 -0
  24. package/dist/commands/interface/run.d.ts +3 -1
  25. package/dist/commands/interface/run.js +2060 -178
  26. package/dist/commands/interface/run.js.map +1 -0
  27. package/dist/commands/interface/run.mjs +255 -0
  28. package/dist/commands/interface/run.mjs.map +1 -0
  29. package/dist/common/asyncLocalStorage/index.d.mts +17 -0
  30. package/dist/common/asyncLocalStorage/index.d.ts +9 -8
  31. package/dist/common/asyncLocalStorage/index.js +34 -9
  32. package/dist/common/asyncLocalStorage/index.js.map +1 -0
  33. package/dist/common/asyncLocalStorage/index.mjs +12 -0
  34. package/dist/common/asyncLocalStorage/index.mjs.map +1 -0
  35. package/dist/common/binStartupScript.d.mts +2 -0
  36. package/dist/common/binStartupScript.d.ts +2 -1
  37. package/dist/common/binStartupScript.js +127 -11
  38. package/dist/common/binStartupScript.js.map +1 -0
  39. package/dist/common/binStartupScript.mjs +135 -0
  40. package/dist/common/binStartupScript.mjs.map +1 -0
  41. package/dist/common/cleanEnvironmentVariables.d.mts +3 -0
  42. package/dist/common/cleanEnvironmentVariables.d.ts +3 -1
  43. package/dist/common/cleanEnvironmentVariables.js +30 -7
  44. package/dist/common/cleanEnvironmentVariables.js.map +1 -0
  45. package/dist/common/cleanEnvironmentVariables.mjs +8 -0
  46. package/dist/common/cleanEnvironmentVariables.mjs.map +1 -0
  47. package/dist/common/constants.d.mts +13 -0
  48. package/dist/common/constants.d.ts +13 -10
  49. package/dist/common/constants.js +58 -14
  50. package/dist/common/constants.js.map +1 -0
  51. package/dist/common/constants.mjs +28 -0
  52. package/dist/common/constants.mjs.map +1 -0
  53. package/dist/common/contextStorageStateHelpers.d.mts +24 -0
  54. package/dist/common/contextStorageStateHelpers.d.ts +8 -5
  55. package/dist/common/contextStorageStateHelpers.js +51 -23
  56. package/dist/common/contextStorageStateHelpers.js.map +1 -0
  57. package/dist/common/contextStorageStateHelpers.mjs +10 -0
  58. package/dist/common/contextStorageStateHelpers.mjs.map +1 -0
  59. package/dist/common/jwtTokenManager.d.mts +19 -0
  60. package/dist/common/jwtTokenManager.d.ts +6 -4
  61. package/dist/common/jwtTokenManager.js +112 -40
  62. package/dist/common/jwtTokenManager.js.map +1 -0
  63. package/dist/common/jwtTokenManager.mjs +11 -0
  64. package/dist/common/jwtTokenManager.mjs.map +1 -0
  65. package/dist/common/runApi/index.d.mts +11 -0
  66. package/dist/common/runApi/index.d.ts +10 -10
  67. package/dist/common/runApi/index.js +1776 -93
  68. package/dist/common/runApi/index.js.map +1 -0
  69. package/dist/common/runApi/index.mjs +18 -0
  70. package/dist/common/runApi/index.mjs.map +1 -0
  71. package/dist/common/settingsSchema.d.mts +536 -0
  72. package/dist/common/settingsSchema.d.ts +9 -6
  73. package/dist/common/settingsSchema.js +55 -20
  74. package/dist/common/settingsSchema.js.map +1 -0
  75. package/dist/common/settingsSchema.mjs +10 -0
  76. package/dist/common/settingsSchema.mjs.map +1 -0
  77. package/dist/common/telemetry.d.mts +6 -0
  78. package/dist/common/telemetry.d.ts +6 -3
  79. package/dist/common/telemetry.js +41 -9
  80. package/dist/common/telemetry.js.map +1 -0
  81. package/dist/common/telemetry.mjs +31 -0
  82. package/dist/common/telemetry.mjs.map +1 -0
  83. package/dist/export.d-BAUMB-lG.d.mts +140 -0
  84. package/dist/export.d-BAUMB-lG.d.ts +140 -0
  85. package/dist/index.d.mts +6 -0
  86. package/dist/index.d.ts +6 -5
  87. package/dist/index.js +783 -98
  88. package/dist/index.js.map +1 -0
  89. package/dist/index.mjs +47 -0
  90. package/dist/index.mjs.map +1 -0
  91. package/dist/runtime/index.d.mts +163 -0
  92. package/dist/runtime/index.d.ts +163 -10
  93. package/dist/runtime/index.js +779 -88
  94. package/dist/runtime/index.js.map +1 -0
  95. package/dist/runtime/index.mjs +42 -0
  96. package/dist/runtime/index.mjs.map +1 -0
  97. package/package.json +80 -23
  98. package/.babelrc +0 -21
  99. package/.eslintignore +0 -10
  100. package/.eslintrc.js +0 -39
  101. package/InterfaceTemplate/index.playwright.ts +0 -6
  102. package/InterfaceTemplate/utils.ts +0 -61
  103. package/dist/commands/api/run.d.ts +0 -6
  104. package/dist/commands/api/run.js +0 -123
  105. package/dist/commands/auth-sessions/load.d.ts +0 -2
  106. package/dist/commands/auth-sessions/load.js +0 -35
  107. package/dist/commands/auth-sessions/run-check.d.ts +0 -2
  108. package/dist/commands/auth-sessions/run-check.js +0 -74
  109. package/dist/commands/auth-sessions/run-create.d.ts +0 -2
  110. package/dist/commands/auth-sessions/run-create.js +0 -78
  111. package/dist/commands/browser/save-state.d.ts +0 -2
  112. package/dist/commands/browser/save-state.js +0 -17
  113. package/dist/commands/browser/start-browser.d.ts +0 -2
  114. package/dist/commands/browser/start-browser.js +0 -14
  115. package/dist/commands/build.d.ts +0 -1
  116. package/dist/commands/build.js +0 -84
  117. package/dist/commands/common/browserUtils.d.ts +0 -14
  118. package/dist/commands/common/browserUtils.js +0 -58
  119. package/dist/commands/common/getFirstLineNumber.d.ts +0 -9
  120. package/dist/commands/common/getFirstLineNumber.js +0 -101
  121. package/dist/commands/common/getFirstLineNumber.test.js +0 -228
  122. package/dist/commands/common/projectExclusions.d.ts +0 -2
  123. package/dist/commands/common/projectExclusions.js +0 -8
  124. package/dist/commands/common/sendMessageToClient.d.ts +0 -1
  125. package/dist/commands/common/sendMessageToClient.js +0 -10
  126. package/dist/commands/common/tsNodeImport.d.ts +0 -2
  127. package/dist/commands/common/tsNodeImport.js +0 -34
  128. package/dist/commands/common/utils/fileUtils.d.ts +0 -6
  129. package/dist/commands/common/utils/fileUtils.js +0 -33
  130. package/dist/commands/common/utils/settings.d.ts +0 -2
  131. package/dist/commands/common/utils/settings.js +0 -31
  132. package/dist/commands/common/utils/template.d.ts +0 -2
  133. package/dist/commands/common/utils/template.js +0 -31
  134. package/dist/commands/common/utils/unixSocket.d.ts +0 -23
  135. package/dist/commands/common/utils/unixSocket.js +0 -87
  136. package/dist/commands/get-headless-user-agent.d.ts +0 -1
  137. package/dist/commands/get-headless-user-agent.js +0 -18
  138. package/dist/commands/intuned-cli/commands/attempt.command.d.ts +0 -1
  139. package/dist/commands/intuned-cli/commands/attempt.command.js +0 -8
  140. package/dist/commands/intuned-cli/commands/attempt_api.command.d.ts +0 -1
  141. package/dist/commands/intuned-cli/commands/attempt_api.command.js +0 -30
  142. package/dist/commands/intuned-cli/commands/attempt_authsession.command.d.ts +0 -1
  143. package/dist/commands/intuned-cli/commands/attempt_authsession.command.js +0 -8
  144. package/dist/commands/intuned-cli/commands/attempt_authsession_check.command.d.ts +0 -1
  145. package/dist/commands/intuned-cli/commands/attempt_authsession_check.command.js +0 -19
  146. package/dist/commands/intuned-cli/commands/attempt_authsession_create.command.d.ts +0 -1
  147. package/dist/commands/intuned-cli/commands/attempt_authsession_create.command.js +0 -24
  148. package/dist/commands/intuned-cli/commands/authsession.command.d.ts +0 -1
  149. package/dist/commands/intuned-cli/commands/authsession.command.js +0 -8
  150. package/dist/commands/intuned-cli/commands/authsession_record.command.d.ts +0 -1
  151. package/dist/commands/intuned-cli/commands/authsession_record.command.js +0 -32
  152. package/dist/commands/intuned-cli/commands/build.command.d.ts +0 -1
  153. package/dist/commands/intuned-cli/commands/build.command.js +0 -12
  154. package/dist/commands/intuned-cli/commands/command.d.ts +0 -2
  155. package/dist/commands/intuned-cli/commands/command.js +0 -9
  156. package/dist/commands/intuned-cli/commands/deploy.command.d.ts +0 -1
  157. package/dist/commands/intuned-cli/commands/deploy.command.js +0 -38
  158. package/dist/commands/intuned-cli/commands/index.d.ts +0 -18
  159. package/dist/commands/intuned-cli/commands/index.js +0 -203
  160. package/dist/commands/intuned-cli/commands/init.command.d.ts +0 -1
  161. package/dist/commands/intuned-cli/commands/init.command.js +0 -13
  162. package/dist/commands/intuned-cli/commands/run.command.d.ts +0 -1
  163. package/dist/commands/intuned-cli/commands/run.command.js +0 -8
  164. package/dist/commands/intuned-cli/commands/run_api.command.d.ts +0 -1
  165. package/dist/commands/intuned-cli/commands/run_api.command.js +0 -46
  166. package/dist/commands/intuned-cli/commands/run_authsession.command.d.ts +0 -31
  167. package/dist/commands/intuned-cli/commands/run_authsession.command.js +0 -17
  168. package/dist/commands/intuned-cli/commands/run_authsession_create.command.d.ts +0 -1
  169. package/dist/commands/intuned-cli/commands/run_authsession_create.command.js +0 -35
  170. package/dist/commands/intuned-cli/commands/run_authsession_update.command.d.ts +0 -1
  171. package/dist/commands/intuned-cli/commands/run_authsession_update.command.js +0 -35
  172. package/dist/commands/intuned-cli/commands/run_authsession_validate.command.d.ts +0 -1
  173. package/dist/commands/intuned-cli/commands/run_authsession_validate.command.js +0 -33
  174. package/dist/commands/intuned-cli/commands/save.command.d.ts +0 -13
  175. package/dist/commands/intuned-cli/commands/save.command.js +0 -42
  176. package/dist/commands/intuned-cli/commands/types.d.ts +0 -35
  177. package/dist/commands/intuned-cli/commands/types.js +0 -31
  178. package/dist/commands/intuned-cli/constants/index.d.ts +0 -17
  179. package/dist/commands/intuned-cli/constants/index.js +0 -25
  180. package/dist/commands/intuned-cli/controller/__test__/api.test.js +0 -397
  181. package/dist/commands/intuned-cli/controller/__test__/authSession.test.js +0 -1059
  182. package/dist/commands/intuned-cli/controller/api.d.ts +0 -42
  183. package/dist/commands/intuned-cli/controller/api.js +0 -191
  184. package/dist/commands/intuned-cli/controller/authSession.d.ts +0 -209
  185. package/dist/commands/intuned-cli/controller/authSession.js +0 -424
  186. package/dist/commands/intuned-cli/controller/build.d.ts +0 -1
  187. package/dist/commands/intuned-cli/controller/build.js +0 -36
  188. package/dist/commands/intuned-cli/controller/deploy.d.ts +0 -5
  189. package/dist/commands/intuned-cli/controller/deploy.js +0 -276
  190. package/dist/commands/intuned-cli/controller/index.d.ts +0 -1
  191. package/dist/commands/intuned-cli/controller/index.js +0 -46
  192. package/dist/commands/intuned-cli/controller/save.d.ts +0 -17
  193. package/dist/commands/intuned-cli/controller/save.js +0 -351
  194. package/dist/commands/intuned-cli/helpers/__test__/browser.test.js +0 -114
  195. package/dist/commands/intuned-cli/helpers/__test__/tracing.test.js +0 -40
  196. package/dist/commands/intuned-cli/helpers/api.d.ts +0 -3
  197. package/dist/commands/intuned-cli/helpers/api.js +0 -19
  198. package/dist/commands/intuned-cli/helpers/auth.d.ts +0 -46
  199. package/dist/commands/intuned-cli/helpers/auth.js +0 -144
  200. package/dist/commands/intuned-cli/helpers/backend.d.ts +0 -8
  201. package/dist/commands/intuned-cli/helpers/backend.js +0 -27
  202. package/dist/commands/intuned-cli/helpers/browser.d.ts +0 -15
  203. package/dist/commands/intuned-cli/helpers/browser.js +0 -64
  204. package/dist/commands/intuned-cli/helpers/context.d.ts +0 -3
  205. package/dist/commands/intuned-cli/helpers/context.js +0 -33
  206. package/dist/commands/intuned-cli/helpers/errors.d.ts +0 -16
  207. package/dist/commands/intuned-cli/helpers/errors.js +0 -44
  208. package/dist/commands/intuned-cli/helpers/index.d.ts +0 -12
  209. package/dist/commands/intuned-cli/helpers/index.js +0 -137
  210. package/dist/commands/intuned-cli/helpers/intunedJson.d.ts +0 -39
  211. package/dist/commands/intuned-cli/helpers/intunedJson.js +0 -20
  212. package/dist/commands/intuned-cli/helpers/proxy.d.ts +0 -5
  213. package/dist/commands/intuned-cli/helpers/proxy.js +0 -23
  214. package/dist/commands/intuned-cli/helpers/terminal.d.ts +0 -5
  215. package/dist/commands/intuned-cli/helpers/terminal.js +0 -13
  216. package/dist/commands/intuned-cli/helpers/timeout.d.ts +0 -1
  217. package/dist/commands/intuned-cli/helpers/timeout.js +0 -23
  218. package/dist/commands/intuned-cli/helpers/traces.d.ts +0 -2
  219. package/dist/commands/intuned-cli/helpers/traces.js +0 -32
  220. package/dist/commands/intuned-cli/helpers/validation.d.ts +0 -2
  221. package/dist/commands/intuned-cli/helpers/validation.js +0 -14
  222. package/dist/commands/intuned-cli/helpers/wrapper.d.ts +0 -2
  223. package/dist/commands/intuned-cli/helpers/wrapper.js +0 -66
  224. package/dist/commands/intuned-cli/index.d.ts +0 -1
  225. package/dist/commands/intuned-cli/index.js +0 -16
  226. package/dist/commands/intuned-cli/main.d.ts +0 -1
  227. package/dist/commands/intuned-cli/main.js +0 -23
  228. package/dist/commands/intuned-cli/types.d.ts +0 -41
  229. package/dist/commands/intuned-cli/types.js +0 -12
  230. package/dist/commands/ts-check.d.ts +0 -2
  231. package/dist/commands/ts-check.js +0 -56
  232. package/dist/common/Logger/Logger/index.d.ts +0 -12
  233. package/dist/common/Logger/Logger/index.js +0 -60
  234. package/dist/common/Logger/Logger/types.d.ts +0 -8
  235. package/dist/common/Logger/Logger/types.js +0 -5
  236. package/dist/common/Logger/index.d.ts +0 -12
  237. package/dist/common/Logger/index.js +0 -60
  238. package/dist/common/Logger/types.d.ts +0 -8
  239. package/dist/common/Logger/types.js +0 -5
  240. package/dist/common/backendFunctions/getAuthSessionParameters.d.ts +0 -1
  241. package/dist/common/backendFunctions/getAuthSessionParameters.js +0 -38
  242. package/dist/common/extension/extensionsHelpers.d.ts +0 -11
  243. package/dist/common/extension/extensionsHelpers.js +0 -147
  244. package/dist/common/extension/intunedExtensionServer.d.ts +0 -24
  245. package/dist/common/extension/intunedExtensionServer.js +0 -178
  246. package/dist/common/extension/types.d.ts +0 -212
  247. package/dist/common/extension/types.js +0 -51
  248. package/dist/common/formatZodError.d.ts +0 -2
  249. package/dist/common/intunedJson.d.ts +0 -229
  250. package/dist/common/intunedJson.js +0 -133
  251. package/dist/common/launchBrowser.d.ts +0 -31
  252. package/dist/common/launchBrowser.js +0 -207
  253. package/dist/common/playwrightContext.d.ts +0 -31
  254. package/dist/common/playwrightContext.js +0 -144
  255. package/dist/common/runApi/errors.d.ts +0 -72
  256. package/dist/common/runApi/errors.js +0 -169
  257. package/dist/common/runApi/importUsingImportFunction.d.ts +0 -9
  258. package/dist/common/runApi/importUsingImportFunction.js +0 -46
  259. package/dist/common/runApi/types.d.ts +0 -830
  260. package/dist/common/runApi/types.js +0 -73
  261. package/dist/common/setupContextHook.d.ts +0 -17
  262. package/dist/common/setupContextHook.js +0 -22
  263. package/dist/runtime/RunError.d.ts +0 -5
  264. package/dist/runtime/RunError.js +0 -19
  265. package/dist/runtime/attemptStore.d.ts +0 -2
  266. package/dist/runtime/attemptStore.js +0 -23
  267. package/dist/runtime/captcha.d.ts +0 -15
  268. package/dist/runtime/captcha.js +0 -191
  269. package/dist/runtime/captcha.test.js +0 -821
  270. package/dist/runtime/downloadDirectory.d.ts +0 -1
  271. package/dist/runtime/downloadDirectory.js +0 -19
  272. package/dist/runtime/enums.d.js +0 -5
  273. package/dist/runtime/enums.d.ts +0 -11
  274. package/dist/runtime/enums.js +0 -18
  275. package/dist/runtime/executionHelpers.test.js +0 -52
  276. package/dist/runtime/export.d.js +0 -5
  277. package/dist/runtime/export.d.ts +0 -284
  278. package/dist/runtime/extendPayload.d.ts +0 -2
  279. package/dist/runtime/extendPayload.js +0 -21
  280. package/dist/runtime/extendTimeout.d.ts +0 -1
  281. package/dist/runtime/extendTimeout.js +0 -23
  282. package/dist/runtime/getAiGatewayConfig.d.ts +0 -10
  283. package/dist/runtime/getAiGatewayConfig.js +0 -16
  284. package/dist/runtime/getAuthSessionParameters.d.ts +0 -1
  285. package/dist/runtime/getAuthSessionParameters.js +0 -20
  286. package/dist/runtime/persistentStore.d.ts +0 -2
  287. package/dist/runtime/persistentStore.js +0 -37
  288. package/dist/runtime/persistentStore.test.js +0 -101
  289. package/dist/runtime/runInfo.d.ts +0 -2
  290. package/dist/runtime/runInfo.js +0 -21
  291. package/template.tsconfig.json +0 -11
  292. package/tsconfig.eslint.json +0 -5
  293. package/tsconfig.json +0 -25
  294. package/typedoc.json +0 -49
  295. /package/dist/common/assets/{browser_scripts.js → assets/browser_scripts.js} +0 -0
@@ -1,24 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.attemptAuthSessionCreateCommand = void 0;
7
- var _controller = require("../controller");
8
- var _zod = require("zod");
9
- var _authSession = require("../controller/authSession");
10
- var _attempt_authsession = require("./attempt_authsession.command");
11
- var _helpers = require("../helpers");
12
- var _types = require("./types");
13
- const argsSchema = _zod.z.tuple([_zod.z.string().min(1, "Parameters are required")]);
14
- const optionsSchema = _types.baseCommandOptionsSchema.extend({
15
- id: _zod.z.string().optional()
16
- });
17
- const attemptAuthSessionCreateCommand = exports.attemptAuthSessionCreateCommand = (0, _types.withBaseOptions)(_attempt_authsession.attemptAuthSessionCommand.command("create").description("Create a new auth session").argument("<parameters>", "Parameters for the auth session command").option("--id <id>", "ID of the auth session to use for the command. Defaults to ./auth-sessions-instances/[current timestamp].json")).action((0, _helpers.cliCommandWrapper)(argsSchema, optionsSchema, async ([parameters], options) => {
18
- await (0, _helpers.assertAuthEnabled)();
19
- const authSessionInput = (await (0, _controller.loadParameters)(parameters)) ?? {};
20
- await (0, _authSession.executeAttemptCreateAuthSessionCLI)({
21
- input: authSessionInput,
22
- ...options
23
- });
24
- }));
@@ -1 +0,0 @@
1
- export declare const authSessionCommand: import("commander").Command;
@@ -1,8 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.authSessionCommand = void 0;
7
- var _command = require("./command");
8
- const authSessionCommand = exports.authSessionCommand = _command.program.command("authsession").description("Manage Auth Sessions");
@@ -1 +0,0 @@
1
- export declare const authSessionRecordCommand: import("commander").Command | null;
@@ -1,32 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.authSessionRecordCommand = void 0;
7
- var _zod = require("zod");
8
- var _authSession = require("../controller/authSession");
9
- var _helpers = require("../helpers");
10
- var _authsession = require("./authsession.command");
11
- var _run_authsession = require("./run_authsession.command");
12
- var _types = require("./types");
13
- const optionsSchema = _run_authsession.baseRunAuthSessionCommandOptionsSchema.extend({
14
- id: _zod.z.string().optional()
15
- });
16
- const isAuthSessionRecorderEnabled = process.env.INTUNED_AUTH_SESSION_RECORDER_ENABLED === "true";
17
- const authSessionRecordCommand = exports.authSessionRecordCommand = isAuthSessionRecorderEnabled ? (0, _types.withBaseOptions)(_authsession.authSessionCommand.command("record").description("Record a new auth session").option("--id <id>", "ID of the auth session to use for the command. Defaults to auth-session-[current timestamp]").option("--check-attempts <number>", "Number of attempts to check the auth session validity", "1")).action((0, _helpers.cliCommandWrapper)(undefined, optionsSchema, async (_, {
18
- checkAttempts,
19
- ...rest
20
- }) => {
21
- await (0, _helpers.assertAuthEnabled)();
22
- const {
23
- startUrl,
24
- finishUrl
25
- } = await (0, _helpers.getAuthSessionRecorderParameters)();
26
- await (0, _authSession.executeRecordAuthSessionCLI)({
27
- checkRetries: checkAttempts,
28
- startUrl,
29
- finishUrl,
30
- ...rest
31
- });
32
- })) : null;
@@ -1 +0,0 @@
1
- export declare const buildCommand: import("commander").Command;
@@ -1,12 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.buildCommand = void 0;
7
- var _command = require("./command");
8
- var _build = require("../controller/build");
9
- var _helpers = require("../helpers");
10
- const buildCommand = exports.buildCommand = _command.program.command("build").description("Build Intuned project").action((0, _helpers.cliCommandWrapper)(undefined, undefined, async () => {
11
- await (0, _build.runBuild)();
12
- }));
@@ -1,2 +0,0 @@
1
- import { Command } from "commander";
2
- export declare const program: Command;
@@ -1,9 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.program = void 0;
7
- var _commander = require("commander");
8
- const program = exports.program = new _commander.Command();
9
- program.name("intuned").description("Intuned CLI for creating, developing and deploying Intuned projects").version("1.0.0").enablePositionalOptions(true);
@@ -1 +0,0 @@
1
- export declare const deployCommand: import("commander").Command;
@@ -1,38 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.deployCommand = void 0;
7
- var _command = require("./command");
8
- var _dotenv = _interopRequireDefault(require("dotenv"));
9
- var _save = require("../controller/save");
10
- var _deploy = require("../controller/deploy");
11
- var _helpers = require("../helpers");
12
- var _save2 = require("./save.command");
13
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
- _dotenv.default.config({
15
- path: `.env`
16
- });
17
- const deployCommand = exports.deployCommand = _command.program.command("deploy").description("Save and deploy an Intuned project to the platform").argument("[project-name]", "Name of the project to deploy").option("-w, --workspace-id <id>", "Your Intuned workspace ID").option("-k, --api-key <key>", "Your Intuned API key").action((0, _helpers.cliCommandWrapper)(_save2.saveOrDeployArgsSchema, _save2.saveOrDeployOptionsSchema, async ([projectName], options) => {
18
- const {
19
- isValid,
20
- errorMessage
21
- } = await (0, _save.validateIntunedProject)();
22
- if (!isValid) {
23
- const message = `^r^+Project to be deployed is not a valid Intuned project:^:^R ${errorMessage}:\n`;
24
- throw new _helpers.CLIError(message, {
25
- autoColor: false
26
- });
27
- }
28
- const _projectName = projectName || (await (0, _helpers.loadIntunedJson)()).projectName;
29
- if (!_projectName) {
30
- throw new _helpers.CLIError("Project name is required");
31
- }
32
- const projectNameValidation = (0, _save.validateProjectName)(_projectName);
33
- if (!projectNameValidation.isValid) {
34
- throw new _helpers.CLIError(projectNameValidation.errorMessage);
35
- }
36
- const auth = await (0, _helpers.getAuthCredentials)(options);
37
- await (0, _deploy.runDeployProject)(_projectName, auth);
38
- }));
@@ -1,18 +0,0 @@
1
- export * from "./command";
2
- export * from "./build.command";
3
- export * from "./deploy.command";
4
- export * from "./save.command";
5
- export * from "./init.command";
6
- export * from "./run.command";
7
- export * from "./run_api.command";
8
- export * from "./run_authsession.command";
9
- export * from "./run_authsession_create.command";
10
- export * from "./run_authsession_update.command";
11
- export * from "./run_authsession_validate.command";
12
- export * from "./attempt.command";
13
- export * from "./attempt_api.command";
14
- export * from "./attempt_authsession.command";
15
- export * from "./attempt_authsession_create.command";
16
- export * from "./attempt_authsession_check.command";
17
- export * from "./authsession.command";
18
- export * from "./authsession_record.command";
@@ -1,203 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _command = require("./command");
7
- Object.keys(_command).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _command[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function () {
13
- return _command[key];
14
- }
15
- });
16
- });
17
- var _build = require("./build.command");
18
- Object.keys(_build).forEach(function (key) {
19
- if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _build[key]) return;
21
- Object.defineProperty(exports, key, {
22
- enumerable: true,
23
- get: function () {
24
- return _build[key];
25
- }
26
- });
27
- });
28
- var _deploy = require("./deploy.command");
29
- Object.keys(_deploy).forEach(function (key) {
30
- if (key === "default" || key === "__esModule") return;
31
- if (key in exports && exports[key] === _deploy[key]) return;
32
- Object.defineProperty(exports, key, {
33
- enumerable: true,
34
- get: function () {
35
- return _deploy[key];
36
- }
37
- });
38
- });
39
- var _save = require("./save.command");
40
- Object.keys(_save).forEach(function (key) {
41
- if (key === "default" || key === "__esModule") return;
42
- if (key in exports && exports[key] === _save[key]) return;
43
- Object.defineProperty(exports, key, {
44
- enumerable: true,
45
- get: function () {
46
- return _save[key];
47
- }
48
- });
49
- });
50
- var _init = require("./init.command");
51
- Object.keys(_init).forEach(function (key) {
52
- if (key === "default" || key === "__esModule") return;
53
- if (key in exports && exports[key] === _init[key]) return;
54
- Object.defineProperty(exports, key, {
55
- enumerable: true,
56
- get: function () {
57
- return _init[key];
58
- }
59
- });
60
- });
61
- var _run = require("./run.command");
62
- Object.keys(_run).forEach(function (key) {
63
- if (key === "default" || key === "__esModule") return;
64
- if (key in exports && exports[key] === _run[key]) return;
65
- Object.defineProperty(exports, key, {
66
- enumerable: true,
67
- get: function () {
68
- return _run[key];
69
- }
70
- });
71
- });
72
- var _run_api = require("./run_api.command");
73
- Object.keys(_run_api).forEach(function (key) {
74
- if (key === "default" || key === "__esModule") return;
75
- if (key in exports && exports[key] === _run_api[key]) return;
76
- Object.defineProperty(exports, key, {
77
- enumerable: true,
78
- get: function () {
79
- return _run_api[key];
80
- }
81
- });
82
- });
83
- var _run_authsession = require("./run_authsession.command");
84
- Object.keys(_run_authsession).forEach(function (key) {
85
- if (key === "default" || key === "__esModule") return;
86
- if (key in exports && exports[key] === _run_authsession[key]) return;
87
- Object.defineProperty(exports, key, {
88
- enumerable: true,
89
- get: function () {
90
- return _run_authsession[key];
91
- }
92
- });
93
- });
94
- var _run_authsession_create = require("./run_authsession_create.command");
95
- Object.keys(_run_authsession_create).forEach(function (key) {
96
- if (key === "default" || key === "__esModule") return;
97
- if (key in exports && exports[key] === _run_authsession_create[key]) return;
98
- Object.defineProperty(exports, key, {
99
- enumerable: true,
100
- get: function () {
101
- return _run_authsession_create[key];
102
- }
103
- });
104
- });
105
- var _run_authsession_update = require("./run_authsession_update.command");
106
- Object.keys(_run_authsession_update).forEach(function (key) {
107
- if (key === "default" || key === "__esModule") return;
108
- if (key in exports && exports[key] === _run_authsession_update[key]) return;
109
- Object.defineProperty(exports, key, {
110
- enumerable: true,
111
- get: function () {
112
- return _run_authsession_update[key];
113
- }
114
- });
115
- });
116
- var _run_authsession_validate = require("./run_authsession_validate.command");
117
- Object.keys(_run_authsession_validate).forEach(function (key) {
118
- if (key === "default" || key === "__esModule") return;
119
- if (key in exports && exports[key] === _run_authsession_validate[key]) return;
120
- Object.defineProperty(exports, key, {
121
- enumerable: true,
122
- get: function () {
123
- return _run_authsession_validate[key];
124
- }
125
- });
126
- });
127
- var _attempt = require("./attempt.command");
128
- Object.keys(_attempt).forEach(function (key) {
129
- if (key === "default" || key === "__esModule") return;
130
- if (key in exports && exports[key] === _attempt[key]) return;
131
- Object.defineProperty(exports, key, {
132
- enumerable: true,
133
- get: function () {
134
- return _attempt[key];
135
- }
136
- });
137
- });
138
- var _attempt_api = require("./attempt_api.command");
139
- Object.keys(_attempt_api).forEach(function (key) {
140
- if (key === "default" || key === "__esModule") return;
141
- if (key in exports && exports[key] === _attempt_api[key]) return;
142
- Object.defineProperty(exports, key, {
143
- enumerable: true,
144
- get: function () {
145
- return _attempt_api[key];
146
- }
147
- });
148
- });
149
- var _attempt_authsession = require("./attempt_authsession.command");
150
- Object.keys(_attempt_authsession).forEach(function (key) {
151
- if (key === "default" || key === "__esModule") return;
152
- if (key in exports && exports[key] === _attempt_authsession[key]) return;
153
- Object.defineProperty(exports, key, {
154
- enumerable: true,
155
- get: function () {
156
- return _attempt_authsession[key];
157
- }
158
- });
159
- });
160
- var _attempt_authsession_create = require("./attempt_authsession_create.command");
161
- Object.keys(_attempt_authsession_create).forEach(function (key) {
162
- if (key === "default" || key === "__esModule") return;
163
- if (key in exports && exports[key] === _attempt_authsession_create[key]) return;
164
- Object.defineProperty(exports, key, {
165
- enumerable: true,
166
- get: function () {
167
- return _attempt_authsession_create[key];
168
- }
169
- });
170
- });
171
- var _attempt_authsession_check = require("./attempt_authsession_check.command");
172
- Object.keys(_attempt_authsession_check).forEach(function (key) {
173
- if (key === "default" || key === "__esModule") return;
174
- if (key in exports && exports[key] === _attempt_authsession_check[key]) return;
175
- Object.defineProperty(exports, key, {
176
- enumerable: true,
177
- get: function () {
178
- return _attempt_authsession_check[key];
179
- }
180
- });
181
- });
182
- var _authsession = require("./authsession.command");
183
- Object.keys(_authsession).forEach(function (key) {
184
- if (key === "default" || key === "__esModule") return;
185
- if (key in exports && exports[key] === _authsession[key]) return;
186
- Object.defineProperty(exports, key, {
187
- enumerable: true,
188
- get: function () {
189
- return _authsession[key];
190
- }
191
- });
192
- });
193
- var _authsession_record = require("./authsession_record.command");
194
- Object.keys(_authsession_record).forEach(function (key) {
195
- if (key === "default" || key === "__esModule") return;
196
- if (key in exports && exports[key] === _authsession_record[key]) return;
197
- Object.defineProperty(exports, key, {
198
- enumerable: true,
199
- get: function () {
200
- return _authsession_record[key];
201
- }
202
- });
203
- });
@@ -1 +0,0 @@
1
- export declare const initCommand: import("commander").Command;
@@ -1,13 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.initCommand = void 0;
7
- var _command = require("./command");
8
- var _helpers = require("../helpers");
9
- const initCommand = exports.initCommand = _command.program.command("init").description("Deprecated: Initialize a new Intuned project").allowExcessArguments(true).allowUnknownOption(true).action((0, _helpers.cliCommandWrapper)(undefined, undefined, async () => {
10
- throw new _helpers.CLIError("^r^+The init command has been deprecated. Please use^ ^c^/npx create-intuned-project^ ^r^+instead.^:", {
11
- autoColor: false
12
- });
13
- }));
@@ -1 +0,0 @@
1
- export declare const runCommand: import("commander").Command;
@@ -1,8 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.runCommand = void 0;
7
- var _command = require("./command");
8
- const runCommand = exports.runCommand = _command.program.command("run").description("Execute an Intuned run");
@@ -1 +0,0 @@
1
- export declare const runApiCommand: import("commander").Command;
@@ -1,46 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.runApiCommand = void 0;
7
- var _run = require("./run.command");
8
- var _api = require("../controller/api");
9
- var _controller = require("../controller");
10
- var _zod = require("zod");
11
- var _types = require("./types");
12
- var _helpers = require("../helpers");
13
- const argsSchema = _zod.z.tuple([_zod.z.string().min(1, "API name is required"), _zod.z.string().min(1, "Parameters are required")]);
14
- const optionsSchema = _types.baseCommandOptionsSchema.extend({
15
- retries: _zod.z.coerce.number().default(1),
16
- authSession: _zod.z.string().optional(),
17
- authSessionAutoRecreate: _zod.z.boolean().default(true),
18
- outputFile: _zod.z.string().optional(),
19
- authSessionCheckAttempts: _types.authSessionCheckAttemptsSchema,
20
- authSessionCreateAttempts: _types.authSessionCreateAttemptsSchema
21
- });
22
- const runApiCommand = exports.runApiCommand = (0, _types.withBaseOptions)(_run.runCommand.command("api").description("Execute an Intuned API run with parameters").argument("<api-name>", "Name of the API to run").argument("<parameters>", "Path to the JSON file containing API parameters OR the parameters as a JSON string").option("-a, --auth-session <id>", "ID of the auth session to use for the API. This is expected to be in ./auth-sessions-instances/<id>").option("--retries <number>", "Number of retries for the API call", "1").option("--no-auth-session-auto-recreate", "disable auto recreate for auth session").option("--auth-session-check-attempts <number>", "auth session check attempts", "1").option("--auth-session-create-attempts <number>", "auth session create attempts", "1").option("-o, --output-file <path>", "output file path")).action((0, _helpers.cliCommandWrapper)(argsSchema, optionsSchema, async ([apiName, parameters], {
23
- retries,
24
- outputFile,
25
- authSession,
26
- authSessionAutoRecreate,
27
- authSessionCreateAttempts,
28
- authSessionCheckAttempts,
29
- ...rest
30
- }) => {
31
- await (0, _helpers.assertAuthConsistent)(authSession);
32
- const inputData = await (0, _controller.loadParameters)(parameters);
33
- await (0, _api.executeRunApiCLI)({
34
- apiName,
35
- inputData: inputData,
36
- authSession: authSession ? {
37
- id: authSession,
38
- autoRecreate: authSessionAutoRecreate,
39
- checkRetries: authSessionCheckAttempts,
40
- createRetries: authSessionCreateAttempts
41
- } : undefined,
42
- retries,
43
- outputFile,
44
- ...rest
45
- });
46
- }));
@@ -1,31 +0,0 @@
1
- import { Command } from "commander";
2
- export declare const baseRunAuthSessionCommandOptionsSchema: import("zod").ZodObject<{
3
- proxy: import("zod").ZodOptional<import("zod").ZodString>;
4
- timeout: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodDefault<import("zod").ZodString>, import("ms").StringValue, string | undefined>, number, string | undefined>;
5
- trace: import("zod").ZodDefault<import("zod").ZodBoolean>;
6
- headless: import("zod").ZodDefault<import("zod").ZodBoolean>;
7
- keepBrowserOpen: import("zod").ZodDefault<import("zod").ZodBoolean>;
8
- cdpUrl: import("zod").ZodOptional<import("zod").ZodString>;
9
- checkAttempts: import("zod").ZodDefault<import("zod").ZodNumber>;
10
- createAttempts: import("zod").ZodDefault<import("zod").ZodNumber>;
11
- }, "strip", import("zod").ZodTypeAny, {
12
- timeout: number;
13
- trace: boolean;
14
- headless: boolean;
15
- keepBrowserOpen: boolean;
16
- checkAttempts: number;
17
- createAttempts: number;
18
- proxy?: string | undefined;
19
- cdpUrl?: string | undefined;
20
- }, {
21
- proxy?: string | undefined;
22
- timeout?: string | undefined;
23
- trace?: boolean | undefined;
24
- headless?: boolean | undefined;
25
- keepBrowserOpen?: boolean | undefined;
26
- cdpUrl?: string | undefined;
27
- checkAttempts?: number | undefined;
28
- createAttempts?: number | undefined;
29
- }>;
30
- export declare const runAuthSessionCommand: Command;
31
- export declare function withAuthSessionBaseOptions(command: Command): Command;
@@ -1,17 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.runAuthSessionCommand = exports.baseRunAuthSessionCommandOptionsSchema = void 0;
7
- exports.withAuthSessionBaseOptions = withAuthSessionBaseOptions;
8
- var _types = require("./types");
9
- var _run = require("./run.command");
10
- const baseRunAuthSessionCommandOptionsSchema = exports.baseRunAuthSessionCommandOptionsSchema = _types.baseCommandOptionsSchema.extend({
11
- checkAttempts: _types.authSessionCheckAttemptsSchema,
12
- createAttempts: _types.authSessionCreateAttemptsSchema
13
- });
14
- const runAuthSessionCommand = exports.runAuthSessionCommand = _run.runCommand.command("authsession").description("Manage authentication sessions");
15
- function withAuthSessionBaseOptions(command) {
16
- return (0, _types.withBaseOptions)(command.option("--check-attempts <number>", "Number of attempts to check the auth session validity", "1").option("--create-attempts <number>", "Number of attempts to create a new auth session if it is invalid", "1"));
17
- }
@@ -1 +0,0 @@
1
- export declare const runAuthSessionCreateCommand: import("commander").Command, authSessionCreateCommand: import("commander").Command;
@@ -1,35 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.runAuthSessionCreateCommand = exports.authSessionCreateCommand = void 0;
7
- var _controller = require("../controller");
8
- var _zod = require("zod");
9
- var _authSession = require("../controller/authSession");
10
- var _run_authsession = require("./run_authsession.command");
11
- var _helpers = require("../helpers");
12
- var _authsession = require("./authsession.command");
13
- const argsSchema = _zod.z.tuple([_zod.z.string().min(1, "Parameters are required")]);
14
- const optionsSchema = _run_authsession.baseRunAuthSessionCommandOptionsSchema.extend({
15
- id: _zod.z.string().optional()
16
- });
17
- const commands = [_run_authsession.runAuthSessionCommand.command("create"), _authsession.authSessionCommand.command("create")];
18
- const [runAuthSessionCreateCommand, authSessionCreateCommand] = commands.map(command => (0, _run_authsession.withAuthSessionBaseOptions)(command.description("Create a new auth session").argument("<parameters>", "Parameters for the auth session command").option("--id <id>", "ID of the auth session to use for the command. Defaults to auth-session-[current timestamp]")).action((0, _helpers.cliCommandWrapper)(argsSchema, optionsSchema, async ([parameters], {
19
- checkAttempts,
20
- createAttempts,
21
- id,
22
- ...rest
23
- }) => {
24
- await (0, _helpers.assertAuthEnabled)();
25
- const authSessionInput = (await (0, _controller.loadParameters)(parameters)) ?? {};
26
- await (0, _authSession.executeRunCreateAuthSessionCLI)({
27
- id,
28
- checkRetries: checkAttempts,
29
- createRetries: createAttempts,
30
- input: authSessionInput,
31
- ...rest
32
- });
33
- })));
34
- exports.authSessionCreateCommand = authSessionCreateCommand;
35
- exports.runAuthSessionCreateCommand = runAuthSessionCreateCommand;
@@ -1 +0,0 @@
1
- export declare const runAuthSessionUpdateCommand: import("commander").Command, authSessionUpdateCommand: import("commander").Command;
@@ -1,35 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.runAuthSessionUpdateCommand = exports.authSessionUpdateCommand = void 0;
7
- var _controller = require("../controller");
8
- var _zod = require("zod");
9
- var _authSession = require("../controller/authSession");
10
- var _run_authsession = require("./run_authsession.command");
11
- var _helpers = require("../helpers");
12
- var _authsession = require("./authsession.command");
13
- const argsSchema = _zod.z.tuple([_zod.z.string().min(1, "ID of the auth session is required")]);
14
- const optionsSchema = _run_authsession.baseRunAuthSessionCommandOptionsSchema.extend({
15
- parameters: _zod.z.string().optional()
16
- });
17
- const commands = [_run_authsession.runAuthSessionCommand.command("update"), _authsession.authSessionCommand.command("update")];
18
- const [runAuthSessionUpdateCommand, authSessionUpdateCommand] = commands.map(command => (0, _run_authsession.withAuthSessionBaseOptions)(command.description("Update an existing auth session").argument("<id>", "ID of the auth session to update").option("--parameters <parameters>", "Parameters for the auth session command. If not provided, it will use the existing parameters")).action((0, _helpers.cliCommandWrapper)(argsSchema, optionsSchema, async ([id], {
19
- checkAttempts,
20
- createAttempts,
21
- parameters,
22
- ...rest
23
- }) => {
24
- await (0, _helpers.assertAuthEnabled)();
25
- const authSessionInput = parameters ? await (0, _controller.loadParameters)(parameters) : undefined;
26
- await (0, _authSession.executeRunUpdateAuthSessionCLI)({
27
- id,
28
- input: authSessionInput,
29
- checkRetries: checkAttempts,
30
- createRetries: createAttempts,
31
- ...rest
32
- });
33
- })));
34
- exports.authSessionUpdateCommand = authSessionUpdateCommand;
35
- exports.runAuthSessionUpdateCommand = runAuthSessionUpdateCommand;
@@ -1 +0,0 @@
1
- export declare const runAuthSessionValidateCommand: import("commander").Command, authSessionValidateCommand: import("commander").Command;
@@ -1,33 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.runAuthSessionValidateCommand = exports.authSessionValidateCommand = void 0;
7
- var _zod = require("zod");
8
- var _authSession = require("../controller/authSession");
9
- var _run_authsession = require("./run_authsession.command");
10
- var _helpers = require("../helpers");
11
- var _authsession = require("./authsession.command");
12
- const argsSchema = _zod.z.tuple([_zod.z.string().min(1, "ID of the auth session is required")]);
13
- const optionsSchema = _run_authsession.baseRunAuthSessionCommandOptionsSchema.extend({
14
- autoRecreate: _zod.z.boolean().default(true)
15
- });
16
- const commands = [_run_authsession.runAuthSessionCommand.command("validate"), _authsession.authSessionCommand.command("validate")];
17
- const [runAuthSessionValidateCommand, authSessionValidateCommand] = commands.map(command => (0, _run_authsession.withAuthSessionBaseOptions)(command.description("Validate an existing auth session").argument("<id>", "ID of the auth session to validate").option("--no-auto-recreate", "Disable auto recreation of the auth session if it is invalid")).action((0, _helpers.cliCommandWrapper)(argsSchema, optionsSchema, async ([id], {
18
- autoRecreate,
19
- checkAttempts,
20
- createAttempts,
21
- ...rest
22
- }) => {
23
- await (0, _helpers.assertAuthEnabled)();
24
- await (0, _authSession.executeRunValidateAuthSessionCLI)({
25
- id,
26
- autoRecreate,
27
- checkRetries: checkAttempts,
28
- createRetries: createAttempts,
29
- ...rest
30
- });
31
- })));
32
- exports.authSessionValidateCommand = authSessionValidateCommand;
33
- exports.runAuthSessionValidateCommand = runAuthSessionValidateCommand;
@@ -1,13 +0,0 @@
1
- import { z } from "zod";
2
- export declare const saveOrDeployArgsSchema: z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodUndefined]>], null>;
3
- export declare const saveOrDeployOptionsSchema: z.ZodObject<{
4
- workspaceId: z.ZodOptional<z.ZodString>;
5
- apiKey: z.ZodOptional<z.ZodString>;
6
- }, "strip", z.ZodTypeAny, {
7
- workspaceId?: string | undefined;
8
- apiKey?: string | undefined;
9
- }, {
10
- workspaceId?: string | undefined;
11
- apiKey?: string | undefined;
12
- }>;
13
- export declare const saveCommand: import("commander").Command;