@osdk/cli 0.24.0-beta.11 → 0.24.0-beta.13

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 (420) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/build/browser/cli.d.ts +7 -0
  3. package/build/browser/cli.d.ts.map +1 -0
  4. package/build/browser/cli.js +42 -0
  5. package/build/browser/cli.js.map +1 -0
  6. package/build/browser/commands/auth/index.d.ts +5 -0
  7. package/build/browser/commands/auth/index.d.ts.map +1 -0
  8. package/build/browser/commands/auth/index.js +34 -0
  9. package/build/browser/commands/auth/index.js.map +1 -0
  10. package/build/browser/commands/auth/login/index.d.ts +5 -0
  11. package/build/browser/commands/auth/login/index.d.ts.map +1 -0
  12. package/build/browser/commands/auth/login/index.js +34 -0
  13. package/build/browser/commands/auth/login/index.js.map +1 -0
  14. package/build/browser/commands/site/CommonSiteArgs.d.ts +9 -0
  15. package/build/browser/commands/site/CommonSiteArgs.d.ts.map +1 -0
  16. package/build/browser/commands/site/CommonSiteArgs.js +17 -0
  17. package/build/browser/commands/site/CommonSiteArgs.js.map +1 -0
  18. package/build/browser/commands/site/deploy/SiteDeployArgs.d.ts +10 -0
  19. package/build/browser/commands/site/deploy/SiteDeployArgs.d.ts.map +1 -0
  20. package/build/browser/commands/site/deploy/SiteDeployArgs.js +17 -0
  21. package/build/browser/commands/site/deploy/SiteDeployArgs.js.map +1 -0
  22. package/build/browser/commands/site/deploy/index.d.ts +6 -0
  23. package/build/browser/commands/site/deploy/index.d.ts.map +1 -0
  24. package/build/browser/commands/site/deploy/index.js +108 -0
  25. package/build/browser/commands/site/deploy/index.js.map +1 -0
  26. package/build/browser/commands/site/deploy/logDeployCommandConfigFileOverride.d.ts +5 -0
  27. package/build/browser/commands/site/deploy/logDeployCommandConfigFileOverride.d.ts.map +1 -0
  28. package/build/browser/commands/site/deploy/logDeployCommandConfigFileOverride.js +28 -0
  29. package/build/browser/commands/site/deploy/logDeployCommandConfigFileOverride.js.map +1 -0
  30. package/build/browser/commands/site/deploy/siteDeployCommand.d.mts +10 -0
  31. package/build/browser/commands/site/deploy/siteDeployCommand.d.mts.map +1 -0
  32. package/build/browser/commands/site/deploy/siteDeployCommand.js +98 -0
  33. package/build/browser/commands/site/deploy/siteDeployCommand.js.map +1 -0
  34. package/build/browser/commands/site/deploy/siteDeployCommand.mjs +90 -0
  35. package/build/browser/commands/site/index.d.ts +6 -0
  36. package/build/browser/commands/site/index.d.ts.map +1 -0
  37. package/build/browser/commands/site/index.js +69 -0
  38. package/build/browser/commands/site/index.js.map +1 -0
  39. package/build/browser/commands/site/logSiteCommandConfigFileOverride.d.ts +5 -0
  40. package/build/browser/commands/site/logSiteCommandConfigFileOverride.d.ts.map +1 -0
  41. package/build/browser/commands/site/logSiteCommandConfigFileOverride.js +25 -0
  42. package/build/browser/commands/site/logSiteCommandConfigFileOverride.js.map +1 -0
  43. package/build/browser/commands/site/version/delete/VersionDeleteArgs.d.ts +6 -0
  44. package/build/browser/commands/site/version/delete/VersionDeleteArgs.d.ts.map +1 -0
  45. package/build/browser/commands/site/version/delete/VersionDeleteArgs.js +17 -0
  46. package/build/browser/commands/site/version/delete/VersionDeleteArgs.js.map +1 -0
  47. package/build/browser/commands/site/version/delete/index.d.ts +6 -0
  48. package/build/browser/commands/site/version/delete/index.d.ts.map +1 -0
  49. package/build/browser/commands/site/version/delete/index.js +36 -0
  50. package/build/browser/commands/site/version/delete/index.js.map +1 -0
  51. package/build/browser/commands/site/version/delete/versionDeleteCommand.d.mts +3 -0
  52. package/build/browser/commands/site/version/delete/versionDeleteCommand.d.mts.map +1 -0
  53. package/build/browser/commands/site/version/delete/versionDeleteCommand.js +41 -0
  54. package/build/browser/commands/site/version/delete/versionDeleteCommand.js.map +1 -0
  55. package/build/browser/commands/site/version/delete/versionDeleteCommand.mjs +32 -0
  56. package/build/browser/commands/site/version/get/VersionGetArgs.d.ts +4 -0
  57. package/build/browser/commands/site/version/get/VersionGetArgs.d.ts.map +1 -0
  58. package/build/browser/commands/site/version/get/VersionGetArgs.js +17 -0
  59. package/build/browser/commands/site/version/get/VersionGetArgs.js.map +1 -0
  60. package/build/browser/commands/site/version/get/index.d.ts +6 -0
  61. package/build/browser/commands/site/version/get/index.d.ts.map +1 -0
  62. package/build/browser/commands/site/version/get/index.js +28 -0
  63. package/build/browser/commands/site/version/get/index.js.map +1 -0
  64. package/build/browser/commands/site/version/get/versionGetCommand.d.mts +3 -0
  65. package/build/browser/commands/site/version/get/versionGetCommand.d.mts.map +1 -0
  66. package/build/browser/commands/site/version/get/versionGetCommand.js +36 -0
  67. package/build/browser/commands/site/version/get/versionGetCommand.js.map +1 -0
  68. package/build/browser/commands/site/version/get/versionGetCommand.mjs +32 -0
  69. package/build/browser/commands/site/version/index.d.ts +5 -0
  70. package/build/browser/commands/site/version/index.d.ts.map +1 -0
  71. package/build/browser/commands/site/version/index.js +30 -0
  72. package/build/browser/commands/site/version/index.js.map +1 -0
  73. package/build/browser/commands/site/version/list/VersionListArgs.d.ts +4 -0
  74. package/build/browser/commands/site/version/list/VersionListArgs.d.ts.map +1 -0
  75. package/build/browser/commands/site/version/list/VersionListArgs.js +17 -0
  76. package/build/browser/commands/site/version/list/VersionListArgs.js.map +1 -0
  77. package/build/browser/commands/site/version/list/index.d.ts +6 -0
  78. package/build/browser/commands/site/version/list/index.d.ts.map +1 -0
  79. package/build/browser/commands/site/version/list/index.js +28 -0
  80. package/build/browser/commands/site/version/list/index.js.map +1 -0
  81. package/build/browser/commands/site/version/list/versionListCommand.d.mts +3 -0
  82. package/build/browser/commands/site/version/list/versionListCommand.d.mts.map +1 -0
  83. package/build/browser/commands/site/version/list/versionListCommand.js +41 -0
  84. package/build/browser/commands/site/version/list/versionListCommand.js.map +1 -0
  85. package/build/browser/commands/site/version/list/versionListCommand.mjs +42 -0
  86. package/build/browser/commands/site/version/set/VersionSetArgs.d.ts +5 -0
  87. package/build/browser/commands/site/version/set/VersionSetArgs.d.ts.map +1 -0
  88. package/build/browser/commands/site/version/set/VersionSetArgs.js +17 -0
  89. package/build/browser/commands/site/version/set/VersionSetArgs.js.map +1 -0
  90. package/build/browser/commands/site/version/set/index.d.ts +6 -0
  91. package/build/browser/commands/site/version/set/index.d.ts.map +1 -0
  92. package/build/browser/commands/site/version/set/index.js +32 -0
  93. package/build/browser/commands/site/version/set/index.js.map +1 -0
  94. package/build/browser/commands/site/version/set/versionSetCommand.d.mts +3 -0
  95. package/build/browser/commands/site/version/set/versionSetCommand.d.mts.map +1 -0
  96. package/build/browser/commands/site/version/set/versionSetCommand.js +36 -0
  97. package/build/browser/commands/site/version/set/versionSetCommand.js.map +1 -0
  98. package/build/browser/commands/site/version/set/versionSetCommand.mjs +28 -0
  99. package/build/browser/commands/site/version/unset/VersionUnsetArgs.d.ts +5 -0
  100. package/build/browser/commands/site/version/unset/VersionUnsetArgs.d.ts.map +1 -0
  101. package/build/browser/commands/site/version/unset/VersionUnsetArgs.js +17 -0
  102. package/build/browser/commands/site/version/unset/VersionUnsetArgs.js.map +1 -0
  103. package/build/browser/commands/site/version/unset/index.d.ts +6 -0
  104. package/build/browser/commands/site/version/unset/index.d.ts.map +1 -0
  105. package/build/browser/commands/site/version/unset/index.js +32 -0
  106. package/build/browser/commands/site/version/unset/index.js.map +1 -0
  107. package/build/browser/commands/site/version/unset/versionUnsetCommand.d.mts +3 -0
  108. package/build/browser/commands/site/version/unset/versionUnsetCommand.d.mts.map +1 -0
  109. package/build/browser/commands/site/version/unset/versionUnsetCommand.js +40 -0
  110. package/build/browser/commands/site/version/unset/versionUnsetCommand.js.map +1 -0
  111. package/build/browser/commands/site/version/unset/versionUnsetCommand.mjs +32 -0
  112. package/build/browser/consola/handlePromptCancel.d.ts +2 -0
  113. package/build/browser/consola/handlePromptCancel.d.ts.map +1 -0
  114. package/build/browser/consola/handlePromptCancel.js +25 -0
  115. package/build/browser/consola/handlePromptCancel.js.map +1 -0
  116. package/build/browser/index.d.ts +2 -0
  117. package/build/browser/index.d.ts.map +1 -0
  118. package/build/browser/index.js +16 -588
  119. package/build/browser/index.js.map +1 -1
  120. package/build/browser/net/ThirdPartyAppRid.d.ts +2 -0
  121. package/build/browser/net/ThirdPartyAppRid.d.ts.map +1 -0
  122. package/build/browser/net/ThirdPartyAppRid.js +17 -0
  123. package/build/browser/net/ThirdPartyAppRid.js.map +1 -0
  124. package/build/browser/net/UserAgent.d.ts +2 -0
  125. package/build/browser/net/UserAgent.d.ts.map +1 -0
  126. package/build/browser/net/UserAgent.js +17 -0
  127. package/build/browser/net/UserAgent.js.map +1 -0
  128. package/build/browser/net/createFetch.d.mts +2 -0
  129. package/build/browser/net/createFetch.d.mts.map +1 -0
  130. package/build/browser/net/createFetch.js +66 -0
  131. package/build/browser/net/createFetch.js.map +1 -0
  132. package/build/browser/net/createFetch.mjs +71 -0
  133. package/build/browser/net/createInternalClientContext.d.mts +3 -0
  134. package/build/browser/net/createInternalClientContext.d.mts.map +1 -0
  135. package/build/browser/net/createInternalClientContext.js +22 -0
  136. package/build/browser/net/createInternalClientContext.js.map +1 -0
  137. package/build/browser/net/createInternalClientContext.mjs +21 -0
  138. package/build/browser/net/index.d.mts +3 -0
  139. package/build/browser/net/index.d.mts.map +1 -0
  140. package/build/browser/net/index.js +18 -0
  141. package/build/browser/net/index.js.map +1 -0
  142. package/build/browser/net/index.mjs +17 -0
  143. package/build/browser/net/internalClientContext.d.mts +5 -0
  144. package/build/browser/net/internalClientContext.d.mts.map +1 -0
  145. package/build/browser/net/internalClientContext.js +17 -0
  146. package/build/browser/net/internalClientContext.js.map +1 -0
  147. package/build/browser/net/internalClientContext.mjs +16 -0
  148. package/build/browser/net/third-party-applications/DeployWebsiteRequest.d.mts +4 -0
  149. package/build/browser/net/third-party-applications/DeployWebsiteRequest.d.mts.map +1 -0
  150. package/build/browser/net/third-party-applications/DeployWebsiteRequest.js +17 -0
  151. package/build/browser/net/third-party-applications/DeployWebsiteRequest.js.map +1 -0
  152. package/build/browser/net/third-party-applications/DeployWebsiteRequest.mjs +16 -0
  153. package/build/browser/net/third-party-applications/ListVersionsResponse.d.mts +6 -0
  154. package/build/browser/net/third-party-applications/ListVersionsResponse.d.mts.map +1 -0
  155. package/build/browser/net/third-party-applications/ListVersionsResponse.js +17 -0
  156. package/build/browser/net/third-party-applications/ListVersionsResponse.js.map +1 -0
  157. package/build/browser/net/third-party-applications/ListVersionsResponse.mjs +16 -0
  158. package/build/browser/net/third-party-applications/Version.d.mts +4 -0
  159. package/build/browser/net/third-party-applications/Version.d.mts.map +1 -0
  160. package/build/browser/net/third-party-applications/Version.js +17 -0
  161. package/build/browser/net/third-party-applications/Version.js.map +1 -0
  162. package/build/browser/net/third-party-applications/Version.mjs +16 -0
  163. package/build/browser/net/third-party-applications/Website.d.mts +5 -0
  164. package/build/browser/net/third-party-applications/Website.d.mts.map +1 -0
  165. package/build/browser/net/third-party-applications/Website.js +17 -0
  166. package/build/browser/net/third-party-applications/Website.js.map +1 -0
  167. package/build/browser/net/third-party-applications/Website.mjs +16 -0
  168. package/build/browser/net/third-party-applications/deleteVersion.d.mts +4 -0
  169. package/build/browser/net/third-party-applications/deleteVersion.d.mts.map +1 -0
  170. package/build/browser/net/third-party-applications/deleteVersion.js +24 -0
  171. package/build/browser/net/third-party-applications/deleteVersion.js.map +1 -0
  172. package/build/browser/net/third-party-applications/deleteVersion.mjs +23 -0
  173. package/build/browser/net/third-party-applications/deployWebsite.d.mts +6 -0
  174. package/build/browser/net/third-party-applications/deployWebsite.d.mts.map +1 -0
  175. package/build/browser/net/third-party-applications/deployWebsite.js +29 -0
  176. package/build/browser/net/third-party-applications/deployWebsite.js.map +1 -0
  177. package/build/browser/net/third-party-applications/deployWebsite.mjs +28 -0
  178. package/build/browser/net/third-party-applications/getWebsite.d.mts +5 -0
  179. package/build/browser/net/third-party-applications/getWebsite.d.mts.map +1 -0
  180. package/build/browser/net/third-party-applications/getWebsite.js +33 -0
  181. package/build/browser/net/third-party-applications/getWebsite.js.map +1 -0
  182. package/build/browser/net/third-party-applications/getWebsite.mjs +35 -0
  183. package/build/browser/net/third-party-applications/index.d.mts +11 -0
  184. package/build/browser/net/third-party-applications/index.d.mts.map +1 -0
  185. package/build/browser/net/third-party-applications/index.js +22 -0
  186. package/build/browser/net/third-party-applications/index.js.map +1 -0
  187. package/build/browser/net/third-party-applications/index.mjs +21 -0
  188. package/build/browser/net/third-party-applications/listVersions.d.mts +5 -0
  189. package/build/browser/net/third-party-applications/listVersions.d.mts.map +1 -0
  190. package/build/browser/net/third-party-applications/listVersions.js +23 -0
  191. package/build/browser/net/third-party-applications/listVersions.js.map +1 -0
  192. package/build/browser/net/third-party-applications/listVersions.mjs +22 -0
  193. package/build/browser/net/third-party-applications/undeployWebsite.d.mts +4 -0
  194. package/build/browser/net/third-party-applications/undeployWebsite.d.mts.map +1 -0
  195. package/build/browser/net/third-party-applications/undeployWebsite.js +24 -0
  196. package/build/browser/net/third-party-applications/undeployWebsite.js.map +1 -0
  197. package/build/browser/net/third-party-applications/undeployWebsite.mjs +23 -0
  198. package/build/browser/net/third-party-applications/uploadVersion.d.mts +5 -0
  199. package/build/browser/net/third-party-applications/uploadVersion.d.mts.map +1 -0
  200. package/build/browser/net/third-party-applications/uploadVersion.js +30 -0
  201. package/build/browser/net/third-party-applications/uploadVersion.js.map +1 -0
  202. package/build/browser/net/third-party-applications/uploadVersion.mjs +29 -0
  203. package/build/browser/util/autoVersion.d.ts +9 -0
  204. package/build/browser/util/autoVersion.d.ts.map +1 -0
  205. package/build/browser/util/autoVersion.js +62 -0
  206. package/build/browser/util/autoVersion.js.map +1 -0
  207. package/build/browser/util/autoVersion.test.d.ts +2 -0
  208. package/build/browser/util/autoVersion.test.d.ts.map +1 -0
  209. package/build/browser/util/autoVersion.test.js +71 -0
  210. package/build/browser/util/autoVersion.test.js.map +1 -0
  211. package/build/browser/util/config.d.ts +26 -0
  212. package/build/browser/util/config.d.ts.map +1 -0
  213. package/build/browser/util/config.js +102 -0
  214. package/build/browser/util/config.js.map +1 -0
  215. package/build/browser/util/config.test.d.ts +2 -0
  216. package/build/browser/util/config.test.d.ts.map +1 -0
  217. package/build/browser/util/config.test.js +110 -0
  218. package/build/browser/util/config.test.js.map +1 -0
  219. package/build/browser/util/configLoader.d.ts +4 -0
  220. package/build/browser/util/configLoader.d.ts.map +1 -0
  221. package/build/browser/util/configLoader.js +25 -0
  222. package/build/browser/util/configLoader.js.map +1 -0
  223. package/build/browser/util/isValidSemver.test.d.ts +2 -0
  224. package/build/browser/util/isValidSemver.test.d.ts.map +1 -0
  225. package/build/browser/util/isValidSemver.test.js +41 -0
  226. package/build/browser/util/isValidSemver.test.js.map +1 -0
  227. package/build/browser/util/token.d.ts +22 -0
  228. package/build/browser/util/token.d.ts.map +1 -0
  229. package/build/browser/util/token.js +84 -0
  230. package/build/browser/util/token.js.map +1 -0
  231. package/build/browser/util/token.test.d.ts +2 -0
  232. package/build/browser/util/token.test.d.ts.map +1 -0
  233. package/build/browser/util/token.test.js +62 -0
  234. package/build/browser/util/token.test.js.map +1 -0
  235. package/build/browser/yargs/logConfigFileMiddleware.d.ts +2 -0
  236. package/build/browser/yargs/logConfigFileMiddleware.d.ts.map +1 -0
  237. package/build/browser/yargs/logConfigFileMiddleware.js +29 -0
  238. package/build/browser/yargs/logConfigFileMiddleware.js.map +1 -0
  239. package/build/esm/cli.js +42 -0
  240. package/build/esm/cli.js.map +1 -0
  241. package/build/esm/commands/auth/index.js +34 -0
  242. package/build/esm/commands/auth/index.js.map +1 -0
  243. package/build/esm/commands/auth/login/index.js +34 -0
  244. package/build/esm/commands/auth/login/index.js.map +1 -0
  245. package/build/esm/commands/site/CommonSiteArgs.js +17 -0
  246. package/build/esm/commands/site/CommonSiteArgs.js.map +1 -0
  247. package/build/esm/commands/site/deploy/SiteDeployArgs.js +17 -0
  248. package/build/esm/commands/site/deploy/SiteDeployArgs.js.map +1 -0
  249. package/build/esm/commands/site/deploy/index.js +108 -0
  250. package/build/esm/commands/site/deploy/index.js.map +1 -0
  251. package/build/esm/commands/site/deploy/logDeployCommandConfigFileOverride.js +28 -0
  252. package/build/esm/commands/site/deploy/logDeployCommandConfigFileOverride.js.map +1 -0
  253. package/build/esm/commands/site/deploy/siteDeployCommand.js +98 -0
  254. package/build/esm/commands/site/deploy/siteDeployCommand.js.map +1 -0
  255. package/build/esm/commands/site/deploy/siteDeployCommand.mjs +90 -0
  256. package/build/esm/commands/site/index.js +69 -0
  257. package/build/esm/commands/site/index.js.map +1 -0
  258. package/build/esm/commands/site/logSiteCommandConfigFileOverride.js +25 -0
  259. package/build/esm/commands/site/logSiteCommandConfigFileOverride.js.map +1 -0
  260. package/build/esm/commands/site/version/delete/VersionDeleteArgs.js +17 -0
  261. package/build/esm/commands/site/version/delete/VersionDeleteArgs.js.map +1 -0
  262. package/build/esm/commands/site/version/delete/index.js +36 -0
  263. package/build/esm/commands/site/version/delete/index.js.map +1 -0
  264. package/build/esm/commands/site/version/delete/versionDeleteCommand.js +41 -0
  265. package/build/esm/commands/site/version/delete/versionDeleteCommand.js.map +1 -0
  266. package/build/esm/commands/site/version/delete/versionDeleteCommand.mjs +32 -0
  267. package/build/esm/commands/site/version/get/VersionGetArgs.js +17 -0
  268. package/build/esm/commands/site/version/get/VersionGetArgs.js.map +1 -0
  269. package/build/esm/commands/site/version/get/index.js +28 -0
  270. package/build/esm/commands/site/version/get/index.js.map +1 -0
  271. package/build/esm/commands/site/version/get/versionGetCommand.js +36 -0
  272. package/build/esm/commands/site/version/get/versionGetCommand.js.map +1 -0
  273. package/build/esm/commands/site/version/get/versionGetCommand.mjs +32 -0
  274. package/build/esm/commands/site/version/index.js +30 -0
  275. package/build/esm/commands/site/version/index.js.map +1 -0
  276. package/build/esm/commands/site/version/list/VersionListArgs.js +17 -0
  277. package/build/esm/commands/site/version/list/VersionListArgs.js.map +1 -0
  278. package/build/esm/commands/site/version/list/index.js +28 -0
  279. package/build/esm/commands/site/version/list/index.js.map +1 -0
  280. package/build/esm/commands/site/version/list/versionListCommand.js +41 -0
  281. package/build/esm/commands/site/version/list/versionListCommand.js.map +1 -0
  282. package/build/esm/commands/site/version/list/versionListCommand.mjs +42 -0
  283. package/build/esm/commands/site/version/set/VersionSetArgs.js +17 -0
  284. package/build/esm/commands/site/version/set/VersionSetArgs.js.map +1 -0
  285. package/build/esm/commands/site/version/set/index.js +32 -0
  286. package/build/esm/commands/site/version/set/index.js.map +1 -0
  287. package/build/esm/commands/site/version/set/versionSetCommand.js +36 -0
  288. package/build/esm/commands/site/version/set/versionSetCommand.js.map +1 -0
  289. package/build/esm/commands/site/version/set/versionSetCommand.mjs +28 -0
  290. package/build/esm/commands/site/version/unset/VersionUnsetArgs.js +17 -0
  291. package/build/esm/commands/site/version/unset/VersionUnsetArgs.js.map +1 -0
  292. package/build/esm/commands/site/version/unset/index.js +32 -0
  293. package/build/esm/commands/site/version/unset/index.js.map +1 -0
  294. package/build/esm/commands/site/version/unset/versionUnsetCommand.js +40 -0
  295. package/build/esm/commands/site/version/unset/versionUnsetCommand.js.map +1 -0
  296. package/build/esm/commands/site/version/unset/versionUnsetCommand.mjs +32 -0
  297. package/build/esm/consola/handlePromptCancel.js +25 -0
  298. package/build/esm/consola/handlePromptCancel.js.map +1 -0
  299. package/build/esm/index.js +16 -588
  300. package/build/esm/index.js.map +1 -1
  301. package/build/esm/net/ThirdPartyAppRid.js +17 -0
  302. package/build/esm/net/ThirdPartyAppRid.js.map +1 -0
  303. package/build/esm/net/UserAgent.js +17 -0
  304. package/build/esm/net/UserAgent.js.map +1 -0
  305. package/build/esm/net/createFetch.js +66 -0
  306. package/build/esm/net/createFetch.js.map +1 -0
  307. package/build/esm/net/createFetch.mjs +71 -0
  308. package/build/esm/net/createInternalClientContext.js +22 -0
  309. package/build/esm/net/createInternalClientContext.js.map +1 -0
  310. package/build/esm/net/createInternalClientContext.mjs +21 -0
  311. package/build/esm/net/index.js +18 -0
  312. package/build/esm/net/index.js.map +1 -0
  313. package/build/esm/net/index.mjs +17 -0
  314. package/build/esm/net/internalClientContext.js +17 -0
  315. package/build/esm/net/internalClientContext.js.map +1 -0
  316. package/build/esm/net/internalClientContext.mjs +16 -0
  317. package/build/esm/net/third-party-applications/DeployWebsiteRequest.js +17 -0
  318. package/build/esm/net/third-party-applications/DeployWebsiteRequest.js.map +1 -0
  319. package/build/esm/net/third-party-applications/DeployWebsiteRequest.mjs +16 -0
  320. package/build/esm/net/third-party-applications/ListVersionsResponse.js +17 -0
  321. package/build/esm/net/third-party-applications/ListVersionsResponse.js.map +1 -0
  322. package/build/esm/net/third-party-applications/ListVersionsResponse.mjs +16 -0
  323. package/build/esm/net/third-party-applications/Version.js +17 -0
  324. package/build/esm/net/third-party-applications/Version.js.map +1 -0
  325. package/build/esm/net/third-party-applications/Version.mjs +16 -0
  326. package/build/esm/net/third-party-applications/Website.js +17 -0
  327. package/build/esm/net/third-party-applications/Website.js.map +1 -0
  328. package/build/esm/net/third-party-applications/Website.mjs +16 -0
  329. package/build/esm/net/third-party-applications/deleteVersion.js +24 -0
  330. package/build/esm/net/third-party-applications/deleteVersion.js.map +1 -0
  331. package/build/esm/net/third-party-applications/deleteVersion.mjs +23 -0
  332. package/build/esm/net/third-party-applications/deployWebsite.js +29 -0
  333. package/build/esm/net/third-party-applications/deployWebsite.js.map +1 -0
  334. package/build/esm/net/third-party-applications/deployWebsite.mjs +28 -0
  335. package/build/esm/net/third-party-applications/getWebsite.js +33 -0
  336. package/build/esm/net/third-party-applications/getWebsite.js.map +1 -0
  337. package/build/esm/net/third-party-applications/getWebsite.mjs +35 -0
  338. package/build/esm/net/third-party-applications/index.js +22 -0
  339. package/build/esm/net/third-party-applications/index.js.map +1 -0
  340. package/build/esm/net/third-party-applications/index.mjs +21 -0
  341. package/build/esm/net/third-party-applications/listVersions.js +23 -0
  342. package/build/esm/net/third-party-applications/listVersions.js.map +1 -0
  343. package/build/esm/net/third-party-applications/listVersions.mjs +22 -0
  344. package/build/esm/net/third-party-applications/undeployWebsite.js +24 -0
  345. package/build/esm/net/third-party-applications/undeployWebsite.js.map +1 -0
  346. package/build/esm/net/third-party-applications/undeployWebsite.mjs +23 -0
  347. package/build/esm/net/third-party-applications/uploadVersion.js +30 -0
  348. package/build/esm/net/third-party-applications/uploadVersion.js.map +1 -0
  349. package/build/esm/net/third-party-applications/uploadVersion.mjs +29 -0
  350. package/build/esm/util/autoVersion.js +62 -0
  351. package/build/esm/util/autoVersion.js.map +1 -0
  352. package/build/esm/util/autoVersion.test.js +71 -0
  353. package/build/esm/util/autoVersion.test.js.map +1 -0
  354. package/build/esm/util/config.js +102 -0
  355. package/build/esm/util/config.js.map +1 -0
  356. package/build/esm/util/config.test.js +110 -0
  357. package/build/esm/util/config.test.js.map +1 -0
  358. package/build/esm/util/configLoader.js +25 -0
  359. package/build/esm/util/configLoader.js.map +1 -0
  360. package/build/esm/util/isValidSemver.test.js +41 -0
  361. package/build/esm/util/isValidSemver.test.js.map +1 -0
  362. package/build/esm/util/token.js +84 -0
  363. package/build/esm/util/token.js.map +1 -0
  364. package/build/esm/util/token.test.js +62 -0
  365. package/build/esm/util/token.test.js.map +1 -0
  366. package/build/esm/yargs/logConfigFileMiddleware.js +29 -0
  367. package/build/esm/yargs/logConfigFileMiddleware.js.map +1 -0
  368. package/package.json +8 -10
  369. package/build/browser/chunk-5AQYUXAY.js +0 -17
  370. package/build/browser/chunk-5AQYUXAY.js.map +0 -1
  371. package/build/browser/chunk-DAYFZSC6.js +0 -42
  372. package/build/browser/chunk-DAYFZSC6.js.map +0 -1
  373. package/build/browser/chunk-SBJIY4HI.js +0 -67
  374. package/build/browser/chunk-SBJIY4HI.js.map +0 -1
  375. package/build/browser/chunk-XJLUGCCS.js +0 -120
  376. package/build/browser/chunk-XJLUGCCS.js.map +0 -1
  377. package/build/browser/chunk-Z4JRY4PG.js +0 -221
  378. package/build/browser/chunk-Z4JRY4PG.js.map +0 -1
  379. package/build/browser/handleGenerate-QAI4FEG7-RF32BMXD.js +0 -642
  380. package/build/browser/handleGenerate-QAI4FEG7-RF32BMXD.js.map +0 -1
  381. package/build/browser/loginFlow-X2LB2TEP.js +0 -4
  382. package/build/browser/loginFlow-X2LB2TEP.js.map +0 -1
  383. package/build/browser/siteDeployCommand-6UZVKCSK.js +0 -140
  384. package/build/browser/siteDeployCommand-6UZVKCSK.js.map +0 -1
  385. package/build/browser/versionDeleteCommand-YXTKR33T.js +0 -35
  386. package/build/browser/versionDeleteCommand-YXTKR33T.js.map +0 -1
  387. package/build/browser/versionGetCommand-GH5OK4LZ.js +0 -29
  388. package/build/browser/versionGetCommand-GH5OK4LZ.js.map +0 -1
  389. package/build/browser/versionListCommand-QM5SDDE3.js +0 -34
  390. package/build/browser/versionListCommand-QM5SDDE3.js.map +0 -1
  391. package/build/browser/versionSetCommand-VJK43BAU.js +0 -29
  392. package/build/browser/versionSetCommand-VJK43BAU.js.map +0 -1
  393. package/build/browser/versionUnsetCommand-LTOSIBQA.js +0 -34
  394. package/build/browser/versionUnsetCommand-LTOSIBQA.js.map +0 -1
  395. package/build/esm/chunk-5AQYUXAY.js +0 -17
  396. package/build/esm/chunk-5AQYUXAY.js.map +0 -1
  397. package/build/esm/chunk-DAYFZSC6.js +0 -42
  398. package/build/esm/chunk-DAYFZSC6.js.map +0 -1
  399. package/build/esm/chunk-SBJIY4HI.js +0 -67
  400. package/build/esm/chunk-SBJIY4HI.js.map +0 -1
  401. package/build/esm/chunk-XJLUGCCS.js +0 -120
  402. package/build/esm/chunk-XJLUGCCS.js.map +0 -1
  403. package/build/esm/chunk-Z4JRY4PG.js +0 -221
  404. package/build/esm/chunk-Z4JRY4PG.js.map +0 -1
  405. package/build/esm/handleGenerate-QAI4FEG7-RF32BMXD.js +0 -642
  406. package/build/esm/handleGenerate-QAI4FEG7-RF32BMXD.js.map +0 -1
  407. package/build/esm/loginFlow-X2LB2TEP.js +0 -4
  408. package/build/esm/loginFlow-X2LB2TEP.js.map +0 -1
  409. package/build/esm/siteDeployCommand-6UZVKCSK.js +0 -140
  410. package/build/esm/siteDeployCommand-6UZVKCSK.js.map +0 -1
  411. package/build/esm/versionDeleteCommand-YXTKR33T.js +0 -35
  412. package/build/esm/versionDeleteCommand-YXTKR33T.js.map +0 -1
  413. package/build/esm/versionGetCommand-GH5OK4LZ.js +0 -29
  414. package/build/esm/versionGetCommand-GH5OK4LZ.js.map +0 -1
  415. package/build/esm/versionListCommand-QM5SDDE3.js +0 -34
  416. package/build/esm/versionListCommand-QM5SDDE3.js.map +0 -1
  417. package/build/esm/versionSetCommand-VJK43BAU.js +0 -29
  418. package/build/esm/versionSetCommand-VJK43BAU.js.map +0 -1
  419. package/build/esm/versionUnsetCommand-LTOSIBQA.js +0 -34
  420. package/build/esm/versionUnsetCommand-LTOSIBQA.js.map +0 -1
@@ -1,589 +1,17 @@
1
- import { getYargsBase, ExitProcessError, YargsCheckError, isValidSemver } from './chunk-SBJIY4HI.js';
2
- import { init_esm_shims } from './chunk-DAYFZSC6.js';
3
- import { consola } from 'consola';
4
- import { promises } from 'fs';
5
- import { extname } from 'path';
6
-
7
- // src/index.ts
8
- init_esm_shims();
9
-
10
- // src/cli.ts
11
- init_esm_shims();
12
-
13
- // ../cli.cmd.typescript/build/esm/index.js
14
- init_esm_shims();
15
- var generateCommand = {
16
- command: "generate",
17
- describe: "Generate TypeScript SDK from ontology",
18
- builder: (argv) => {
19
- return argv.options({
20
- outDir: {
21
- type: "string",
22
- description: "Where to place the generated files",
23
- demandOption: true
24
- },
25
- ontologyPath: {
26
- description: "Path to the ontology wire json",
27
- type: "string",
28
- demandOption: false,
29
- conflicts: ["foundryUrl", "clientId"]
30
- },
31
- foundryUrl: {
32
- description: "URL for the foundry stack that contains the ontology",
33
- type: "string",
34
- demandOption: false,
35
- conflicts: "ontologyPath",
36
- implies: "clientId",
37
- alias: "stack"
38
- // for backwards compatibility
39
- },
40
- clientId: {
41
- description: "OAuth client ID for application",
42
- type: "string",
43
- demandOption: false,
44
- conflicts: "ontologyPath",
45
- implies: "foundryUrl"
46
- },
47
- ontologyRid: {
48
- description: "Limit requests to this ontology rid only",
49
- type: "string",
50
- demandOption: false
51
- },
52
- ontologyWritePath: {
53
- description: "Path to write the ontology wire json",
54
- type: "string",
55
- demandOption: false,
56
- conflicts: ["ontologyPath"]
57
- },
58
- beta: {
59
- type: "boolean",
60
- description: "Should generate beta sdk",
61
- demandOption: false
62
- },
63
- packageType: {
64
- default: "commonjs",
65
- choices: ["commonjs", "module"]
66
- },
67
- version: {
68
- type: "string",
69
- description: "Version of the generated code, or 'dev'",
70
- demandOption: true
71
- },
72
- packageName: {
73
- type: "string",
74
- description: "Name of the package to generate"
75
- },
76
- asPackage: {
77
- type: "boolean",
78
- description: "Generate as a package (makes a package.json and co)"
79
- },
80
- clean: {
81
- type: "boolean",
82
- description: "Clean the output directory before generating"
83
- },
84
- internal: {
85
- type: "boolean",
86
- default: false
87
- },
88
- ontologyApiNamespace: {
89
- type: "string"
90
- },
91
- apiNamespaceMap: {
92
- type: "string",
93
- coerce: (value) => {
94
- const map = /* @__PURE__ */ new Map();
95
- if (value) {
96
- for (const entry of value.split(",")) {
97
- const [api, ns] = entry.split(":");
98
- map.set(api, ns);
99
- }
100
- }
101
- return map;
102
- },
103
- default: ""
104
- }
105
- }).group(["ontologyPath", "outDir", "version"], "Generate from a local file").group(["foundryUrl", "clientId", "outDir", "ontologyWritePath", "version"], "OR Generate from Foundry").group(["packageName", "as"], "Package generation options").check((args) => {
106
- if (!args.ontologyPath && !args.foundryUrl) {
107
- throw new YargsCheckError("Must specify either ontologyPath or foundryUrl and clientId");
108
- }
109
- if (args.version !== "dev" && !isValidSemver(args.version)) {
110
- throw new YargsCheckError("Version must be 'dev' or a valid semver version");
111
- }
112
- if (args.asPackage && !args.packageName) {
113
- throw new YargsCheckError("Must specify packageName when generating as a package");
114
- }
115
- if (args.asPackage && !args.version) {
116
- throw new YargsCheckError("Must specify version when generating as a package");
117
- }
118
- return true;
119
- });
120
- },
121
- handler: async (args) => {
122
- const command10 = await import('./handleGenerate-QAI4FEG7-RF32BMXD.js');
123
- await command10.handleGenerate(args);
124
- }
125
- };
126
- var typescriptCommand = {
127
- command: "typescript",
128
- describe: "Manage code",
129
- builder: (argv) => {
130
- return argv.command(generateCommand).demandCommand();
131
- },
132
- handler: async (args) => {
133
- }
134
- };
135
-
136
- // src/commands/auth/index.ts
137
- init_esm_shims();
138
-
139
- // src/commands/auth/login/index.ts
140
- init_esm_shims();
141
- var command = {
142
- command: "login",
143
- describe: "Authenticate with an application ID",
144
- builder: (argv) => {
145
- return argv.option("clientId", {
146
- alias: "applicationId",
147
- // for backwards compatibility
148
- type: "string",
149
- demandOption: true,
150
- describe: "OAuth client ID for application"
151
- });
152
- },
153
- handler: async (args) => {
154
- const command10 = await import('./loginFlow-X2LB2TEP.js');
155
- await command10.default(args);
156
- }
157
- };
158
- var login_default = command;
159
-
160
- // src/commands/auth/index.ts
161
- var auth = {
162
- command: "auth",
163
- describe: "Manage your session",
164
- builder: (argv) => {
165
- return argv.options({
166
- foundryUrl: {
167
- type: "string",
168
- demandOption: true,
169
- alias: "baseUrl",
170
- // for backwards compatibility
171
- describe: "URL for the Foundry stack"
172
- }
173
- }).command(login_default).demandCommand();
174
- },
175
- handler: async (args) => {
176
- }
177
- };
178
- var auth_default = auth;
179
-
180
- // src/commands/site/index.ts
181
- init_esm_shims();
182
-
183
- // src/util/configLoader.ts
184
- init_esm_shims();
185
-
186
- // src/util/config.ts
187
- init_esm_shims();
188
- var CONFIG_FILE_NAMES = ["foundry.config.json"];
189
- var CONFIG_FILE_SCHEMA = {
190
- type: "object",
191
- properties: {
192
- foundryUrl: {
193
- type: "string"
194
- },
195
- site: {
196
- type: "object",
197
- properties: {
198
- application: {
199
- type: "string"
200
- },
201
- directory: {
202
- type: "string"
203
- },
204
- autoVersion: {
205
- type: "object",
206
- nullable: true,
207
- oneOf: [{
208
- properties: {
209
- type: {
210
- const: "git-describe",
211
- type: "string"
212
- },
213
- tagPrefix: {
214
- type: "string",
215
- nullable: true
216
- }
217
- }
218
- }],
219
- required: ["type"]
220
- }
221
- },
222
- required: ["application", "directory"]
223
- }
224
- },
225
- required: ["foundryUrl", "site"],
226
- additionalProperties: false
227
- };
228
- async function loadFoundryConfig() {
229
- const ajvModule = await import('ajv');
230
- const Ajv = ajvModule.default.default;
231
- const ajv = new Ajv({
232
- allErrors: true
233
- });
234
- const validate = ajv.compile(CONFIG_FILE_SCHEMA);
235
- const {
236
- findUp
237
- } = await import('find-up');
238
- const configFilePath = await findUp(CONFIG_FILE_NAMES);
239
- if (configFilePath) {
240
- let foundryConfig;
241
- try {
242
- const fileContent = await promises.readFile(configFilePath, "utf-8");
243
- foundryConfig = parseConfigFile(fileContent, configFilePath);
244
- } catch (error) {
245
- throw new ExitProcessError(2, `Couldn't read or parse config file ${configFilePath}. Error: ${error}`);
246
- }
247
- if (!validate(foundryConfig)) {
248
- throw new ExitProcessError(2, `The configuration file does not match the expected schema: ${ajv.errorsText(validate.errors)}`);
249
- }
250
- return {
251
- foundryConfig,
252
- configFilePath
253
- };
254
- }
255
- return void 0;
256
- }
257
- function parseConfigFile(fileContent, configFilePath) {
258
- const extension = extname(configFilePath);
259
- switch (extension) {
260
- case ".json":
261
- return JSON.parse(fileContent);
262
- default:
263
- throw new ExitProcessError(2, `Unsupported file extension: ${extension} for config file.`);
264
- }
265
- }
266
-
267
- // src/util/configLoader.ts
268
- var configPromise = void 0;
269
- function getConfig() {
270
- if (configPromise == null) {
271
- configPromise = loadFoundryConfig();
272
- }
273
- return configPromise;
274
- }
275
- var configLoader_default = getConfig;
276
-
277
- // src/commands/site/deploy/index.ts
278
- init_esm_shims();
279
-
280
- // src/commands/site/deploy/logDeployCommandConfigFileOverride.ts
281
- init_esm_shims();
282
- async function logDeployCommandConfigFileOverride(args, config) {
283
- if (config?.autoVersion != null && args.autoVersion !== config?.autoVersion.type) {
284
- consola.debug(`Overriding "autoVersion" from config file with ${args.autoVersion}`);
285
- }
286
- if (config?.directory != null && args.directory !== config?.directory) {
287
- consola.debug(`Overriding "directory" from config file with ${args.directory}`);
288
- }
289
- if (config?.autoVersion?.tagPrefix != null && args.gitTagPrefix != null && args.gitTagPrefix !== config?.autoVersion.tagPrefix) {
290
- consola.debug(`Overriding "gitTagPrefix" from config file with ${args.gitTagPrefix}`);
291
- }
292
- }
293
-
294
- // src/commands/site/deploy/index.ts
295
- var command2 = {
296
- command: "deploy",
297
- describe: "Deploy a new site version",
298
- builder: async (argv) => {
299
- const config = await configLoader_default();
300
- const siteConfig = config?.foundryConfig.site;
301
- const directory = siteConfig?.directory;
302
- const autoVersion = siteConfig?.autoVersion;
303
- const gitTagPrefix = autoVersion?.tagPrefix;
304
- return argv.options({
305
- directory: {
306
- type: "string",
307
- description: "Directory containing site files",
308
- ...directory ? {
309
- default: directory
310
- } : {
311
- demandOption: true
312
- }
313
- },
314
- uploadOnly: {
315
- type: "boolean",
316
- description: "Upload new site version only without setting as live",
317
- default: false
318
- },
319
- version: {
320
- type: "string",
321
- description: "New version of site to deploy",
322
- ...autoVersion == null ? {
323
- conflicts: "autoVersion"
324
- } : {}
325
- },
326
- autoVersion: {
327
- coerce: (autoVersion2) => autoVersion2,
328
- type: "string",
329
- choices: ["git-describe"],
330
- description: "Enable auto versioning",
331
- ...autoVersion != null ? {
332
- default: autoVersion.type
333
- } : {
334
- conflicts: "version"
335
- }
336
- },
337
- gitTagPrefix: {
338
- type: "string",
339
- description: "Prefix to match git tags on when 'git-describe' auto versioning is used. If not provided, all tags are matched and the prefix 'v' is stripped if present.",
340
- ...gitTagPrefix ? {
341
- default: gitTagPrefix
342
- } : {}
343
- }
344
- }).group(["directory", "version", "uploadOnly"], "Deploy Options").group(["autoVersion", "gitTagPrefix"], "Auto Version Options").check((args) => {
345
- if (autoVersion == null && args.autoVersion == null && args.version == null) {
346
- throw new YargsCheckError("One of --version or --autoVersion must be specified");
347
- }
348
- if (args.version != null && !isValidSemver(args.version)) {
349
- throw new YargsCheckError(`--version "${args.version}" must be a valid SemVer string`);
350
- }
351
- const autoVersionType = args.autoVersion ?? autoVersion;
352
- if (autoVersionType !== "git-describe") {
353
- throw new YargsCheckError(`Only 'git-describe' is supported for autoVersion`);
354
- }
355
- const gitTagPrefixValue = args.gitTagPrefix ?? gitTagPrefix;
356
- if (gitTagPrefixValue != null && autoVersionType !== "git-describe") {
357
- throw new YargsCheckError(`--gitTagPrefix is only supported when --autoVersion=git-describe`);
358
- }
359
- return true;
360
- }).middleware((args) => logDeployCommandConfigFileOverride(args, siteConfig));
361
- },
362
- handler: async (args) => {
363
- const command10 = await import('./siteDeployCommand-6UZVKCSK.js');
364
- const {
365
- version,
366
- autoVersion,
367
- gitTagPrefix,
368
- ...restArgs
369
- } = args;
370
- const selectedVersion = args.version != null ? args.version : {
371
- type: args.autoVersion,
372
- tagPrefix: args.gitTagPrefix
373
- };
374
- await command10.default({
375
- ...restArgs,
376
- selectedVersion
377
- });
378
- }
379
- };
380
- var deploy_default = command2;
381
-
382
- // src/commands/site/logSiteCommandConfigFileOverride.ts
383
- init_esm_shims();
384
- async function logSiteCommandConfigFileOverride(args, config) {
385
- if (config?.site.application != null && args.application !== config.site.application) {
386
- consola.debug(`Overriding "application" from config file with ${args.application}`);
387
- }
388
- if (config?.foundryUrl != null && args.foundryUrl !== config.foundryUrl) {
389
- consola.debug(`Overriding "foundryUrl" from config file with ${args.foundryUrl}`);
390
- }
391
- }
392
-
393
- // src/commands/site/version/index.ts
394
- init_esm_shims();
395
-
396
- // src/commands/site/version/delete/index.ts
397
- init_esm_shims();
398
- var command3 = {
399
- command: "delete <version>",
400
- describe: "Delete site version",
401
- builder: (argv) => {
402
- return argv.positional("version", {
403
- type: "string",
404
- demandOption: true,
405
- description: "Version to set as live"
406
- }).option("yes", {
407
- alias: "y",
408
- type: "boolean",
409
- description: "Automatically confirm destructive changes"
410
- }).group(["yes"], "Delete Options");
411
- },
412
- handler: async (args) => {
413
- const command10 = await import('./versionDeleteCommand-YXTKR33T.js');
414
- await command10.default(args);
415
- }
416
- };
417
- var delete_default = command3;
418
-
419
- // src/commands/site/version/get/index.ts
420
- init_esm_shims();
421
- var command4 = {
422
- command: "get",
423
- describe: "Get live site version",
424
- builder: (argv) => {
425
- return argv;
426
- },
427
- handler: async (args) => {
428
- const command10 = await import('./versionGetCommand-GH5OK4LZ.js');
429
- await command10.default(args);
430
- }
431
- };
432
- var get_default = command4;
433
-
434
- // src/commands/site/version/list/index.ts
435
- init_esm_shims();
436
- var command5 = {
437
- command: "list",
438
- describe: "List site versions",
439
- builder: (argv) => {
440
- return argv;
441
- },
442
- handler: async (args) => {
443
- const command10 = await import('./versionListCommand-QM5SDDE3.js');
444
- await command10.default(args);
445
- }
446
- };
447
- var list_default = command5;
448
-
449
- // src/commands/site/version/set/index.ts
450
- init_esm_shims();
451
- var command6 = {
452
- command: "set <version>",
453
- describe: "Set live site version",
454
- builder: (argv) => {
455
- return argv.positional("version", {
456
- type: "string",
457
- demandOption: true,
458
- description: "Version to set as live"
459
- });
460
- },
461
- handler: async (args) => {
462
- const command10 = await import('./versionSetCommand-VJK43BAU.js');
463
- await command10.default(args);
464
- }
465
- };
466
- var set_default = command6;
467
-
468
- // src/commands/site/version/unset/index.ts
469
- init_esm_shims();
470
- var command7 = {
471
- command: "unset",
472
- describe: "Clear live site version",
473
- builder: (argv) => {
474
- return argv.option("yes", {
475
- alias: "y",
476
- type: "boolean",
477
- description: "Automatically confirm destructive changes"
478
- }).group(["yes"], "Unset Options");
479
- },
480
- handler: async (args) => {
481
- const command10 = await import('./versionUnsetCommand-LTOSIBQA.js');
482
- await command10.default(args);
483
- }
484
- };
485
- var unset_default = command7;
486
-
487
- // src/commands/site/version/index.ts
488
- var command8 = {
489
- command: "version",
490
- describe: "Manage site versions",
491
- builder: (argv) => {
492
- return argv.command(list_default).command(get_default).command(set_default).command(unset_default).command(delete_default).demandCommand();
493
- },
494
- handler: async (args) => {
495
- }
496
- };
497
- var version_default = command8;
498
-
499
- // src/commands/site/index.ts
500
- var command9 = {
501
- command: "site",
502
- describe: "Manage your site",
503
- builder: async (argv) => {
504
- const config = await configLoader_default();
505
- const application = config?.foundryConfig.site.application;
506
- const foundryUrl = config?.foundryConfig.foundryUrl;
507
- return argv.options({
508
- application: {
509
- type: "string",
510
- coerce: (application2) => application2,
511
- ...application ? {
512
- default: application
513
- } : {
514
- demandOption: true
515
- },
516
- description: "Application resource identifier (rid)"
517
- },
518
- foundryUrl: {
519
- coerce: (foundryUrl2) => foundryUrl2.replace(/\/$/, ""),
520
- type: "string",
521
- ...foundryUrl ? {
522
- default: foundryUrl
523
- } : {
524
- demandOption: true
525
- },
526
- description: "URL for the Foundry stack"
527
- },
528
- token: {
529
- type: "string",
530
- conflicts: "tokenFile",
531
- description: "Foundry API token"
532
- },
533
- tokenFile: {
534
- type: "string",
535
- conflicts: "token",
536
- description: "Path to file containing Foundry API token"
537
- }
538
- }).group(["application", "foundryUrl", "token", "tokenFile"], "Common Options").command(version_default).command(deploy_default).check((args) => {
539
- if (!args.foundryUrl.startsWith("https://")) {
540
- throw new YargsCheckError("foundryUrl must start with https://");
541
- }
542
- return true;
543
- }).middleware((args) => logSiteCommandConfigFileOverride(args, config?.foundryConfig)).demandCommand();
544
- },
545
- handler: async (args) => {
546
- }
547
- };
548
- var site_default = command9;
549
-
550
- // src/yargs/logConfigFileMiddleware.ts
551
- init_esm_shims();
552
- var firstTime = true;
553
- async function logConfigFileMiddleware() {
554
- if (firstTime) {
555
- firstTime = false;
556
- const config = configLoader_default();
557
- const configFilePath = (await config)?.configFilePath;
558
- if (configFilePath) {
559
- consola.debug(`Using configuration from file: "${configFilePath}"`);
560
- }
561
- }
562
- }
563
-
564
- // src/cli.ts
565
- async function cli(args = process.argv) {
566
- consola.info(`Palantir OSDK CLI ${"0.24.0-beta.11"}
567
- `);
568
- const base = getYargsBase(args);
569
- try {
570
- return await base.middleware(logConfigFileMiddleware).command(site_default).command({
571
- command: "unstable",
572
- aliases: ["experimental"],
573
- describe: "Unstable commands",
574
- builder: async (argv) => {
575
- return argv.command(typescriptCommand).command(auth_default).demandCommand();
576
- },
577
- handler: (_args) => {
578
- }
579
- }).parseAsync();
580
- } catch (err) {
581
- if (err instanceof ExitProcessError) {
582
- consola.error(err);
583
- }
584
- }
585
- }
586
-
587
- export { cli };
588
- //# sourceMappingURL=index.js.map
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export { cli } from "./cli.js";
589
17
  //# sourceMappingURL=index.js.map