@osdk/cli 0.15.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (235) hide show
  1. package/build/js/chunk-2A2YEODO.mjs +199 -0
  2. package/build/js/chunk-2A2YEODO.mjs.map +1 -0
  3. package/build/js/chunk-467BAS7X.cjs +74 -0
  4. package/build/js/chunk-467BAS7X.cjs.map +1 -0
  5. package/build/js/chunk-CWMSASIM.mjs +65 -0
  6. package/build/js/chunk-CWMSASIM.mjs.map +1 -0
  7. package/build/js/{chunk-TZGNA5WR.cjs → chunk-EVW4VRJL.cjs} +3 -7
  8. package/build/js/chunk-EVW4VRJL.cjs.map +1 -0
  9. package/build/js/chunk-QVFWI7JV.cjs +207 -0
  10. package/build/js/chunk-QVFWI7JV.cjs.map +1 -0
  11. package/build/js/{chunk-HD6SVFKA.mjs → chunk-SFL6QONJ.mjs} +3 -7
  12. package/build/js/chunk-SFL6QONJ.mjs.map +1 -0
  13. package/build/js/{handleGenerate-FSKXULOJ.mjs → handleGenerate-KBPDPEH4-O63ZWRM6.mjs} +21 -101
  14. package/build/js/handleGenerate-KBPDPEH4-O63ZWRM6.mjs.map +1 -0
  15. package/build/js/{handleGenerate-KCAGHMHC.cjs → handleGenerate-KBPDPEH4-OC7WKH2B.cjs} +24 -107
  16. package/build/js/handleGenerate-KBPDPEH4-OC7WKH2B.cjs.map +1 -0
  17. package/build/js/index.cjs +138 -186
  18. package/build/js/index.cjs.map +1 -1
  19. package/build/js/index.mjs +129 -173
  20. package/build/js/index.mjs.map +1 -1
  21. package/build/js/loginFlow-QTUKYZEL.cjs +10 -0
  22. package/build/js/loginFlow-ZFVT2AFZ.mjs +4 -0
  23. package/build/js/{siteDeployCommand-NF4NIH2Y.cjs → siteDeployCommand-GM26T5YL.cjs} +22 -37
  24. package/build/js/siteDeployCommand-GM26T5YL.cjs.map +1 -0
  25. package/build/js/{siteDeployCommand-QMX5EY2K.mjs → siteDeployCommand-LXWAUCZQ.mjs} +13 -28
  26. package/build/js/siteDeployCommand-LXWAUCZQ.mjs.map +1 -0
  27. package/build/js/{versionDeleteCommand-7XQQMEP6.cjs → versionDeleteCommand-S4M6DRHC.cjs} +6 -9
  28. package/build/js/versionDeleteCommand-S4M6DRHC.cjs.map +1 -0
  29. package/build/js/{versionDeleteCommand-S3PG23IT.mjs → versionDeleteCommand-ZVUTRBQE.mjs} +4 -7
  30. package/build/js/versionDeleteCommand-ZVUTRBQE.mjs.map +1 -0
  31. package/build/js/versionGetCommand-C2BMDIVV.cjs +28 -0
  32. package/build/js/versionGetCommand-C2BMDIVV.cjs.map +1 -0
  33. package/build/js/versionGetCommand-N7F75WO5.mjs +26 -0
  34. package/build/js/versionGetCommand-N7F75WO5.mjs.map +1 -0
  35. package/build/js/versionListCommand-2SNJI2N2.mjs +32 -0
  36. package/build/js/versionListCommand-2SNJI2N2.mjs.map +1 -0
  37. package/build/js/versionListCommand-FR7G6D7I.cjs +34 -0
  38. package/build/js/versionListCommand-FR7G6D7I.cjs.map +1 -0
  39. package/build/js/versionSetCommand-73LHJBP5.cjs +29 -0
  40. package/build/js/versionSetCommand-73LHJBP5.cjs.map +1 -0
  41. package/build/js/{versionSetCommand-KXNXVRXK.mjs → versionSetCommand-GRRGFGPP.mjs} +5 -9
  42. package/build/js/versionSetCommand-GRRGFGPP.mjs.map +1 -0
  43. package/build/js/{versionUnsetCommand-BIBSMJRY.cjs → versionUnsetCommand-3MUKQRD5.cjs} +6 -8
  44. package/build/js/versionUnsetCommand-3MUKQRD5.cjs.map +1 -0
  45. package/build/js/{versionUnsetCommand-XH4PGAIP.mjs → versionUnsetCommand-PZF5G4WC.mjs} +4 -6
  46. package/build/js/versionUnsetCommand-PZF5G4WC.mjs.map +1 -0
  47. package/build/types/cli.d.ts.map +1 -1
  48. package/build/types/commands/auth/index.d.ts +3 -4
  49. package/build/types/commands/auth/index.d.ts.map +1 -1
  50. package/build/types/commands/auth/login/index.d.ts +1 -2
  51. package/build/types/commands/auth/login/index.d.ts.map +1 -1
  52. package/build/types/commands/site/CommonSiteArgs.d.ts +1 -1
  53. package/build/types/commands/site/CommonSiteArgs.d.ts.map +1 -1
  54. package/build/types/commands/site/deploy/index.d.ts.map +1 -1
  55. package/build/types/commands/site/deploy/siteDeployCommand.d.mts.map +1 -1
  56. package/build/types/commands/site/index.d.ts +1 -1
  57. package/build/types/commands/site/index.d.ts.map +1 -1
  58. package/build/types/commands/site/version/delete/versionDeleteCommand.d.mts.map +1 -1
  59. package/build/types/commands/site/version/get/versionGetCommand.d.mts.map +1 -1
  60. package/build/types/commands/site/version/list/versionListCommand.d.mts.map +1 -1
  61. package/build/types/commands/site/version/set/versionSetCommand.d.mts.map +1 -1
  62. package/build/types/commands/site/version/unset/versionUnsetCommand.d.mts.map +1 -1
  63. package/build/types/net/index.d.mts +1 -5
  64. package/build/types/net/index.d.mts.map +1 -1
  65. package/build/types/net/third-party-applications/ListWebsiteVersionsResponse.d.mts +6 -0
  66. package/build/types/net/third-party-applications/ListWebsiteVersionsResponse.d.mts.map +1 -0
  67. package/build/types/net/third-party-applications/UpdateWebsiteDeploymentRequest.d.mts +4 -0
  68. package/build/types/net/third-party-applications/UpdateWebsiteDeploymentRequest.d.mts.map +1 -0
  69. package/build/types/net/third-party-applications/WebsiteDeployment.d.mts +5 -0
  70. package/build/types/net/third-party-applications/WebsiteDeployment.d.mts.map +1 -0
  71. package/build/types/net/third-party-applications/WebsiteVersion.d.mts +4 -0
  72. package/build/types/net/third-party-applications/WebsiteVersion.d.mts.map +1 -0
  73. package/build/types/net/third-party-applications/deleteWebsiteDeployment.d.mts +4 -0
  74. package/build/types/net/third-party-applications/deleteWebsiteDeployment.d.mts.map +1 -0
  75. package/build/types/net/third-party-applications/deleteWebsiteVersion.d.mts +4 -0
  76. package/build/types/net/third-party-applications/deleteWebsiteVersion.d.mts.map +1 -0
  77. package/build/types/net/third-party-applications/getWebsiteDeployment.d.mts +5 -0
  78. package/build/types/net/third-party-applications/getWebsiteDeployment.d.mts.map +1 -0
  79. package/build/types/net/third-party-applications/index.d.mts +11 -0
  80. package/build/types/net/third-party-applications/index.d.mts.map +1 -0
  81. package/build/types/net/third-party-applications/listWebsiteVersions.d.mts +5 -0
  82. package/build/types/net/third-party-applications/listWebsiteVersions.d.mts.map +1 -0
  83. package/build/types/net/third-party-applications/updateWebsiteDeployment.d.mts +6 -0
  84. package/build/types/net/third-party-applications/updateWebsiteDeployment.d.mts.map +1 -0
  85. package/build/types/net/third-party-applications/uploadWebsiteVersion.d.mts +5 -0
  86. package/build/types/net/third-party-applications/uploadWebsiteVersion.d.mts.map +1 -0
  87. package/build/types/util/autoVersion.d.ts.map +1 -1
  88. package/changelog/0.16.0/pr-143.v2.yml +5 -0
  89. package/changelog/0.17.0/pr-166.v2.yml +5 -0
  90. package/package.json +9 -8
  91. package/build/js/chunk-CCA2T5YW.cjs +0 -12
  92. package/build/js/chunk-CCA2T5YW.cjs.map +0 -1
  93. package/build/js/chunk-CLAEREOL.mjs +0 -13
  94. package/build/js/chunk-CLAEREOL.mjs.map +0 -1
  95. package/build/js/chunk-EALLTV7S.mjs +0 -256
  96. package/build/js/chunk-EALLTV7S.mjs.map +0 -1
  97. package/build/js/chunk-F6Y3FTY6.cjs +0 -267
  98. package/build/js/chunk-F6Y3FTY6.cjs.map +0 -1
  99. package/build/js/chunk-GX2IOTA6.mjs +0 -10
  100. package/build/js/chunk-GX2IOTA6.mjs.map +0 -1
  101. package/build/js/chunk-HD6SVFKA.mjs.map +0 -1
  102. package/build/js/chunk-HZ3XILMW.cjs +0 -15
  103. package/build/js/chunk-HZ3XILMW.cjs.map +0 -1
  104. package/build/js/chunk-MU5KWUEI.mjs +0 -10
  105. package/build/js/chunk-MU5KWUEI.mjs.map +0 -1
  106. package/build/js/chunk-TZGNA5WR.cjs.map +0 -1
  107. package/build/js/chunk-UE2TMWJL.cjs +0 -12
  108. package/build/js/chunk-UE2TMWJL.cjs.map +0 -1
  109. package/build/js/handleGenerate-FSKXULOJ.mjs.map +0 -1
  110. package/build/js/handleGenerate-KCAGHMHC.cjs.map +0 -1
  111. package/build/js/loginFlow-5ZAMXQKE.cjs +0 -10
  112. package/build/js/loginFlow-BWWZBM36.mjs +0 -4
  113. package/build/js/siteDeployCommand-NF4NIH2Y.cjs.map +0 -1
  114. package/build/js/siteDeployCommand-QMX5EY2K.mjs.map +0 -1
  115. package/build/js/versionDeleteCommand-7XQQMEP6.cjs.map +0 -1
  116. package/build/js/versionDeleteCommand-S3PG23IT.mjs.map +0 -1
  117. package/build/js/versionGetCommand-IKDSYKJM.mjs +0 -28
  118. package/build/js/versionGetCommand-IKDSYKJM.mjs.map +0 -1
  119. package/build/js/versionGetCommand-PBCSZZ2W.cjs +0 -30
  120. package/build/js/versionGetCommand-PBCSZZ2W.cjs.map +0 -1
  121. package/build/js/versionListCommand-KSQJH2CQ.cjs +0 -36
  122. package/build/js/versionListCommand-KSQJH2CQ.cjs.map +0 -1
  123. package/build/js/versionListCommand-YP6X66SJ.mjs +0 -34
  124. package/build/js/versionListCommand-YP6X66SJ.mjs.map +0 -1
  125. package/build/js/versionSetCommand-2L3BCYZ7.cjs +0 -33
  126. package/build/js/versionSetCommand-2L3BCYZ7.cjs.map +0 -1
  127. package/build/js/versionSetCommand-KXNXVRXK.mjs.map +0 -1
  128. package/build/js/versionUnsetCommand-BIBSMJRY.cjs.map +0 -1
  129. package/build/js/versionUnsetCommand-XH4PGAIP.mjs.map +0 -1
  130. package/build/types/CliCommonArgs.d.ts +0 -4
  131. package/build/types/CliCommonArgs.d.ts.map +0 -1
  132. package/build/types/ExitProcessError.d.ts +0 -7
  133. package/build/types/ExitProcessError.d.ts.map +0 -1
  134. package/build/types/YargsCheckError.d.ts +0 -4
  135. package/build/types/YargsCheckError.d.ts.map +0 -1
  136. package/build/types/commands/auth/CommonAuthArgs.d.ts +0 -5
  137. package/build/types/commands/auth/CommonAuthArgs.d.ts.map +0 -1
  138. package/build/types/commands/auth/login/LoginArgs.d.ts +0 -5
  139. package/build/types/commands/auth/login/LoginArgs.d.ts.map +0 -1
  140. package/build/types/commands/auth/login/loginFlow.d.ts +0 -3
  141. package/build/types/commands/auth/login/loginFlow.d.ts.map +0 -1
  142. package/build/types/commands/auth/login/token.d.ts +0 -13
  143. package/build/types/commands/auth/login/token.d.ts.map +0 -1
  144. package/build/types/commands/typescript/generate/TypescriptGenerateArgs.d.ts +0 -15
  145. package/build/types/commands/typescript/generate/TypescriptGenerateArgs.d.ts.map +0 -1
  146. package/build/types/commands/typescript/generate/generate.d.ts +0 -5
  147. package/build/types/commands/typescript/generate/generate.d.ts.map +0 -1
  148. package/build/types/commands/typescript/generate/handleGenerate.d.mts +0 -45
  149. package/build/types/commands/typescript/generate/handleGenerate.d.mts.map +0 -1
  150. package/build/types/commands/typescript/generate/handleGenerate.test.d.mts +0 -2
  151. package/build/types/commands/typescript/generate/handleGenerate.test.d.mts.map +0 -1
  152. package/build/types/commands/typescript/index.d.ts +0 -5
  153. package/build/types/commands/typescript/index.d.ts.map +0 -1
  154. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/clearDeployedVersion.d.ts +0 -9
  155. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/clearDeployedVersion.d.ts.map +0 -1
  156. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getContentSecurityPolicyAdditions.d.ts +0 -9
  157. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getContentSecurityPolicyAdditions.d.ts.map +0 -1
  158. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getDeployedVersion.d.ts +0 -9
  159. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getDeployedVersion.d.ts.map +0 -1
  160. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getRegisteredSiteDomains.d.ts +0 -10
  161. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getRegisteredSiteDomains.d.ts.map +0 -1
  162. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getRequestedSiteDomains.d.ts +0 -11
  163. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getRequestedSiteDomains.d.ts.map +0 -1
  164. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/previewContentSecurityPolicy.d.ts +0 -10
  165. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/previewContentSecurityPolicy.d.ts.map +0 -1
  166. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/putContentSecurityPolicyAdditions.d.ts +0 -9
  167. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/putContentSecurityPolicyAdditions.d.ts.map +0 -1
  168. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/requestSiteDomainForRepository.d.ts +0 -13
  169. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/requestSiteDomainForRepository.d.ts.map +0 -1
  170. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/unregisterSiteDomain.d.ts +0 -12
  171. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/unregisterSiteDomain.d.ts.map +0 -1
  172. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/updateDeployedVersion.d.ts +0 -9
  173. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/updateDeployedVersion.d.ts.map +0 -1
  174. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service.d.ts +0 -11
  175. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service.d.ts.map +0 -1
  176. package/build/types/generated/artifacts-sites/ContentSecurityPolicyAdditions.d.ts +0 -6
  177. package/build/types/generated/artifacts-sites/ContentSecurityPolicyAdditions.d.ts.map +0 -1
  178. package/build/types/generated/artifacts-sites/ContentSecurityPolicyDirectiveName.d.ts +0 -2
  179. package/build/types/generated/artifacts-sites/ContentSecurityPolicyDirectiveName.d.ts.map +0 -1
  180. package/build/types/generated/artifacts-sites/ContentSecurityPolicyDirectiveValue.d.ts +0 -2
  181. package/build/types/generated/artifacts-sites/ContentSecurityPolicyDirectiveValue.d.ts.map +0 -1
  182. package/build/types/generated/artifacts-sites/ContentSecurityPolicyHeaderValue.d.ts +0 -2
  183. package/build/types/generated/artifacts-sites/ContentSecurityPolicyHeaderValue.d.ts.map +0 -1
  184. package/build/types/generated/artifacts-sites/ControlPanelManagedDomainInfo.d.ts +0 -13
  185. package/build/types/generated/artifacts-sites/ControlPanelManagedDomainInfo.d.ts.map +0 -1
  186. package/build/types/generated/artifacts-sites/DomainName.d.ts +0 -4
  187. package/build/types/generated/artifacts-sites/DomainName.d.ts.map +0 -1
  188. package/build/types/generated/artifacts-sites/PreviewContentSecurityPolicyRequest.d.ts +0 -5
  189. package/build/types/generated/artifacts-sites/PreviewContentSecurityPolicyRequest.d.ts.map +0 -1
  190. package/build/types/generated/artifacts-sites/SiteDomainInfo.d.ts +0 -7
  191. package/build/types/generated/artifacts-sites/SiteDomainInfo.d.ts.map +0 -1
  192. package/build/types/generated/artifacts-sites/SiteDomainRegistrationRequestRid.d.ts +0 -2
  193. package/build/types/generated/artifacts-sites/SiteDomainRegistrationRequestRid.d.ts.map +0 -1
  194. package/build/types/generated/artifacts-sites/SiteVersion.d.ts +0 -4
  195. package/build/types/generated/artifacts-sites/SiteVersion.d.ts.map +0 -1
  196. package/build/types/generated/artifacts-sites/SubmitDomainRegistrationRequest.d.ts +0 -8
  197. package/build/types/generated/artifacts-sites/SubmitDomainRegistrationRequest.d.ts.map +0 -1
  198. package/build/types/generated/artifacts-sites/UnregisterDomainRequest.d.ts +0 -5
  199. package/build/types/generated/artifacts-sites/UnregisterDomainRequest.d.ts.map +0 -1
  200. package/build/types/generated/artifacts-sites/UpdateDeployedVersionRequest.d.ts +0 -5
  201. package/build/types/generated/artifacts-sites/UpdateDeployedVersionRequest.d.ts.map +0 -1
  202. package/build/types/generated/artifacts-sites/index.d.ts +0 -15
  203. package/build/types/generated/artifacts-sites/index.d.ts.map +0 -1
  204. package/build/types/net/RepositoryRid.d.ts +0 -2
  205. package/build/types/net/RepositoryRid.d.ts.map +0 -1
  206. package/build/types/net/artifacts/SiteAssetArtifactsService/DeleteSiteVersionRequest.d.mts +0 -6
  207. package/build/types/net/artifacts/SiteAssetArtifactsService/DeleteSiteVersionRequest.d.mts.map +0 -1
  208. package/build/types/net/artifacts/SiteAssetArtifactsService/SiteAssetVersions.d.mts +0 -4
  209. package/build/types/net/artifacts/SiteAssetArtifactsService/SiteAssetVersions.d.mts.map +0 -1
  210. package/build/types/net/artifacts/SiteAssetArtifactsService/UploadZippedSiteAssetRequest.d.mts +0 -7
  211. package/build/types/net/artifacts/SiteAssetArtifactsService/UploadZippedSiteAssetRequest.d.mts.map +0 -1
  212. package/build/types/net/artifacts/SiteAssetArtifactsService/deleteSiteVersion.d.mts +0 -4
  213. package/build/types/net/artifacts/SiteAssetArtifactsService/deleteSiteVersion.d.mts.map +0 -1
  214. package/build/types/net/artifacts/SiteAssetArtifactsService/fetchSiteVersions.d.mts +0 -4
  215. package/build/types/net/artifacts/SiteAssetArtifactsService/fetchSiteVersions.d.mts.map +0 -1
  216. package/build/types/net/artifacts/SiteAssetArtifactsService/getSiteAssetBaseUrl.d.mts +0 -2
  217. package/build/types/net/artifacts/SiteAssetArtifactsService/getSiteAssetBaseUrl.d.mts.map +0 -1
  218. package/build/types/net/artifacts/SiteAssetArtifactsService/index.d.mts +0 -5
  219. package/build/types/net/artifacts/SiteAssetArtifactsService/index.d.mts.map +0 -1
  220. package/build/types/net/artifacts/SiteAssetArtifactsService/uploadSiteVersion.d.mts +0 -4
  221. package/build/types/net/artifacts/SiteAssetArtifactsService/uploadSiteVersion.d.mts.map +0 -1
  222. package/build/types/net/artifacts/index.d.mts +0 -2
  223. package/build/types/net/artifacts/index.d.mts.map +0 -1
  224. package/build/types/net/createConjureContext.d.mts +0 -3
  225. package/build/types/net/createConjureContext.d.mts.map +0 -1
  226. package/build/types/net/third-party-application-service/fetchWebsiteRepositoryRid.d.mts +0 -5
  227. package/build/types/net/third-party-application-service/fetchWebsiteRepositoryRid.d.mts.map +0 -1
  228. package/build/types/net/third-party-application-service/index.d.mts +0 -2
  229. package/build/types/net/third-party-application-service/index.d.mts.map +0 -1
  230. package/build/types/util/isValidSemver.d.ts +0 -2
  231. package/build/types/util/isValidSemver.d.ts.map +0 -1
  232. package/build/types/yargs/logLevelMiddleware.d.ts +0 -3
  233. package/build/types/yargs/logLevelMiddleware.d.ts.map +0 -1
  234. /package/build/js/{loginFlow-5ZAMXQKE.cjs.map → loginFlow-QTUKYZEL.cjs.map} +0 -0
  235. /package/build/js/{loginFlow-BWWZBM36.mjs.map → loginFlow-ZFVT2AFZ.mjs.map} +0 -0
@@ -0,0 +1,26 @@
1
+ import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-2A2YEODO.mjs';
2
+ import './chunk-CWMSASIM.mjs';
3
+ import './chunk-E2SEJZTC.mjs';
4
+ import { consola } from 'consola';
5
+
6
+ async function versionGetCommand({
7
+ foundryUrl,
8
+ application,
9
+ token,
10
+ tokenFile
11
+ }) {
12
+ const loadedToken = await loadToken(token, tokenFile);
13
+ const tokenProvider = () => loadedToken;
14
+ const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);
15
+ consola.start("Getting live version");
16
+ const deployment = await third_party_applications_exports.getWebsiteDeployment(clientCtx, application);
17
+ if (!deployment) {
18
+ consola.info("No live site version set");
19
+ } else {
20
+ consola.success(`Live site version is ${deployment.version}`);
21
+ }
22
+ }
23
+
24
+ export { versionGetCommand as default };
25
+ //# sourceMappingURL=out.js.map
26
+ //# sourceMappingURL=versionGetCommand-N7F75WO5.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/commands/site/version/get/versionGetCommand.mts"],"names":[],"mappings":";;;;;;;;;AAiBA,SAAS,eAAe;AAExB,eAAO,kBAAyC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAG;AACD,QAAM,cAAc,MAAM,UAAU,OAAO,SAAS;AACpD,QAAM,gBAAgB,MAAM;AAC5B,QAAM,YAAY,4BAA4B,YAAY,aAAa;AACvE,UAAQ,MAAM,sBAAsB;AACpC,QAAM,aAAa,MAAM,iCAAuB,qBAAqB,WAAW,WAAW;AAC3F,MAAI,CAAC,YAAY;AACf,YAAQ,KAAK,0BAA0B;AAAA,EACzC,OAAO;AACL,YAAQ,QAAQ,wBAAwB,WAAW,OAAO,EAAE;AAAA,EAC9D;AACF","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createInternalClientContext, thirdPartyApplications } from \"#net\";\nimport { consola } from \"consola\";\nimport { loadToken } from \"../../../../util/token.js\";\nexport default async function versionGetCommand({\n foundryUrl,\n application,\n token,\n tokenFile\n}) {\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n consola.start(\"Getting live version\");\n const deployment = await thirdPartyApplications.getWebsiteDeployment(clientCtx, application);\n if (!deployment) {\n consola.info(\"No live site version set\");\n } else {\n consola.success(`Live site version is ${deployment.version}`);\n }\n}"]}
@@ -0,0 +1,32 @@
1
+ import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-2A2YEODO.mjs';
2
+ import './chunk-CWMSASIM.mjs';
3
+ import './chunk-E2SEJZTC.mjs';
4
+ import { consola } from 'consola';
5
+ import { colorize } from 'consola/utils';
6
+
7
+ async function versionListCommand({
8
+ foundryUrl,
9
+ application,
10
+ token,
11
+ tokenFile
12
+ }) {
13
+ const loadedToken = await loadToken(token, tokenFile);
14
+ const tokenProvider = () => loadedToken;
15
+ const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);
16
+ consola.start("Fetching versions & deployed version");
17
+ const [versions, deployment] = await Promise.all([third_party_applications_exports.listWebsiteVersions(clientCtx, application), third_party_applications_exports.getWebsiteDeployment(clientCtx, application)]);
18
+ if (versions.data.length === 0) {
19
+ consola.info("No site versions found");
20
+ return;
21
+ }
22
+ consola.success("Found versions:");
23
+ const semver = await import('semver');
24
+ const sortedVersions = semver.rsort(versions.data.map((v) => v.version).filter((v) => semver.valid(v)));
25
+ for (const version of sortedVersions) {
26
+ consola.log(` - ${version}${deployment && version === deployment.version ? colorize("green", ` (deployed)`) : ""}`);
27
+ }
28
+ }
29
+
30
+ export { versionListCommand as default };
31
+ //# sourceMappingURL=out.js.map
32
+ //# sourceMappingURL=versionListCommand-2SNJI2N2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/commands/site/version/list/versionListCommand.mts"],"names":[],"mappings":";;;;;;;;;AAiBA,SAAS,eAAe;AACxB,SAAS,gBAAgB;AAEzB,eAAO,mBAA0C;AAAA,EAC/C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAG;AACD,QAAM,cAAc,MAAM,UAAU,OAAO,SAAS;AACpD,QAAM,gBAAgB,MAAM;AAC5B,QAAM,YAAY,4BAA4B,YAAY,aAAa;AACvE,UAAQ,MAAM,sCAAsC;AACpD,QAAM,CAAC,UAAU,UAAU,IAAI,MAAM,QAAQ,IAAI,CAAC,iCAAuB,oBAAoB,WAAW,WAAW,GAAG,iCAAuB,qBAAqB,WAAW,WAAW,CAAC,CAAC;AAC1L,MAAI,SAAS,KAAK,WAAW,GAAG;AAC9B,YAAQ,KAAK,wBAAwB;AACrC;AAAA,EACF;AACA,UAAQ,QAAQ,iBAAiB;AACjC,QAAM,SAAS,MAAM,OAAO,QAAQ;AACpC,QAAM,iBAAiB,OAAO,MAAM,SAAS,KAAK,IAAI,OAAK,EAAE,OAAO,EAAE,OAAO,OAAK,OAAO,MAAM,CAAC,CAAC,CAAC;AAClG,aAAW,WAAW,gBAAgB;AACpC,YAAQ,IAAI,SAAS,OAAO,GAAG,cAAc,YAAY,WAAW,UAAU,SAAS,SAAS,aAAa,IAAI,EAAE,EAAE;AAAA,EACvH;AACF","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createInternalClientContext, thirdPartyApplications } from \"#net\";\nimport { consola } from \"consola\";\nimport { colorize } from \"consola/utils\";\nimport { loadToken } from \"../../../../util/token.js\";\nexport default async function versionListCommand({\n foundryUrl,\n application,\n token,\n tokenFile\n}) {\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n consola.start(\"Fetching versions & deployed version\");\n const [versions, deployment] = await Promise.all([thirdPartyApplications.listWebsiteVersions(clientCtx, application), thirdPartyApplications.getWebsiteDeployment(clientCtx, application)]);\n if (versions.data.length === 0) {\n consola.info(\"No site versions found\");\n return;\n }\n consola.success(\"Found versions:\");\n const semver = await import(\"semver\");\n const sortedVersions = semver.rsort(versions.data.map(v => v.version).filter(v => semver.valid(v)));\n for (const version of sortedVersions) {\n consola.log(` - ${version}${deployment && version === deployment.version ? colorize(\"green\", ` (deployed)`) : \"\"}`);\n }\n}"]}
@@ -0,0 +1,34 @@
1
+ 'use strict';
2
+
3
+ var chunkQVFWI7JV_cjs = require('./chunk-QVFWI7JV.cjs');
4
+ require('./chunk-467BAS7X.cjs');
5
+ require('./chunk-HQDDGVB7.cjs');
6
+ var consola = require('consola');
7
+ var utils = require('consola/utils');
8
+
9
+ async function versionListCommand({
10
+ foundryUrl,
11
+ application,
12
+ token,
13
+ tokenFile
14
+ }) {
15
+ const loadedToken = await chunkQVFWI7JV_cjs.loadToken(token, tokenFile);
16
+ const tokenProvider = () => loadedToken;
17
+ const clientCtx = chunkQVFWI7JV_cjs.createInternalClientContext(foundryUrl, tokenProvider);
18
+ consola.consola.start("Fetching versions & deployed version");
19
+ const [versions, deployment] = await Promise.all([chunkQVFWI7JV_cjs.third_party_applications_exports.listWebsiteVersions(clientCtx, application), chunkQVFWI7JV_cjs.third_party_applications_exports.getWebsiteDeployment(clientCtx, application)]);
20
+ if (versions.data.length === 0) {
21
+ consola.consola.info("No site versions found");
22
+ return;
23
+ }
24
+ consola.consola.success("Found versions:");
25
+ const semver = await import('semver');
26
+ const sortedVersions = semver.rsort(versions.data.map((v) => v.version).filter((v) => semver.valid(v)));
27
+ for (const version of sortedVersions) {
28
+ consola.consola.log(` - ${version}${deployment && version === deployment.version ? utils.colorize("green", ` (deployed)`) : ""}`);
29
+ }
30
+ }
31
+
32
+ module.exports = versionListCommand;
33
+ //# sourceMappingURL=out.js.map
34
+ //# sourceMappingURL=versionListCommand-FR7G6D7I.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/commands/site/version/list/versionListCommand.mts"],"names":[],"mappings":";;;;;;;;;AAiBA,SAAS,eAAe;AACxB,SAAS,gBAAgB;AAEzB,eAAO,mBAA0C;AAAA,EAC/C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAG;AACD,QAAM,cAAc,MAAM,UAAU,OAAO,SAAS;AACpD,QAAM,gBAAgB,MAAM;AAC5B,QAAM,YAAY,4BAA4B,YAAY,aAAa;AACvE,UAAQ,MAAM,sCAAsC;AACpD,QAAM,CAAC,UAAU,UAAU,IAAI,MAAM,QAAQ,IAAI,CAAC,iCAAuB,oBAAoB,WAAW,WAAW,GAAG,iCAAuB,qBAAqB,WAAW,WAAW,CAAC,CAAC;AAC1L,MAAI,SAAS,KAAK,WAAW,GAAG;AAC9B,YAAQ,KAAK,wBAAwB;AACrC;AAAA,EACF;AACA,UAAQ,QAAQ,iBAAiB;AACjC,QAAM,SAAS,MAAM,OAAO,QAAQ;AACpC,QAAM,iBAAiB,OAAO,MAAM,SAAS,KAAK,IAAI,OAAK,EAAE,OAAO,EAAE,OAAO,OAAK,OAAO,MAAM,CAAC,CAAC,CAAC;AAClG,aAAW,WAAW,gBAAgB;AACpC,YAAQ,IAAI,SAAS,OAAO,GAAG,cAAc,YAAY,WAAW,UAAU,SAAS,SAAS,aAAa,IAAI,EAAE,EAAE;AAAA,EACvH;AACF","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createInternalClientContext, thirdPartyApplications } from \"#net\";\nimport { consola } from \"consola\";\nimport { colorize } from \"consola/utils\";\nimport { loadToken } from \"../../../../util/token.js\";\nexport default async function versionListCommand({\n foundryUrl,\n application,\n token,\n tokenFile\n}) {\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n consola.start(\"Fetching versions & deployed version\");\n const [versions, deployment] = await Promise.all([thirdPartyApplications.listWebsiteVersions(clientCtx, application), thirdPartyApplications.getWebsiteDeployment(clientCtx, application)]);\n if (versions.data.length === 0) {\n consola.info(\"No site versions found\");\n return;\n }\n consola.success(\"Found versions:\");\n const semver = await import(\"semver\");\n const sortedVersions = semver.rsort(versions.data.map(v => v.version).filter(v => semver.valid(v)));\n for (const version of sortedVersions) {\n consola.log(` - ${version}${deployment && version === deployment.version ? colorize(\"green\", ` (deployed)`) : \"\"}`);\n }\n}"]}
@@ -0,0 +1,29 @@
1
+ 'use strict';
2
+
3
+ var chunkQVFWI7JV_cjs = require('./chunk-QVFWI7JV.cjs');
4
+ require('./chunk-467BAS7X.cjs');
5
+ require('./chunk-HQDDGVB7.cjs');
6
+ var consola = require('consola');
7
+
8
+ async function versionSetCommand({
9
+ version,
10
+ application,
11
+ foundryUrl,
12
+ token,
13
+ tokenFile
14
+ }) {
15
+ consola.consola.start(`Setting live version`);
16
+ const loadedToken = await chunkQVFWI7JV_cjs.loadToken(token, tokenFile);
17
+ const tokenProvider = () => loadedToken;
18
+ const clientCtx = chunkQVFWI7JV_cjs.createInternalClientContext(foundryUrl, tokenProvider);
19
+ if (version) {
20
+ await chunkQVFWI7JV_cjs.third_party_applications_exports.updateWebsiteDeployment(clientCtx, application, {
21
+ version
22
+ });
23
+ }
24
+ consola.consola.success(`Set live version to ${version}`);
25
+ }
26
+
27
+ module.exports = versionSetCommand;
28
+ //# sourceMappingURL=out.js.map
29
+ //# sourceMappingURL=versionSetCommand-73LHJBP5.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/commands/site/version/set/versionSetCommand.mts"],"names":[],"mappings":";;;;;;;;;AAgBA,SAAS,eAAe;AAGxB,eAAO,kBAAyC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAG;AACD,UAAQ,MAAM,sBAAsB;AACpC,QAAM,cAAc,MAAM,UAAU,OAAO,SAAS;AACpD,QAAM,gBAAgB,MAAM;AAC5B,QAAM,YAAY,4BAA4B,YAAY,aAAa;AACvE,MAAI,SAAS;AACX,UAAM,iCAAuB,wBAAwB,WAAW,aAAa;AAAA,MAC3E;AAAA,IACF,CAAC;AAAA,EACH;AACA,UAAQ,QAAQ,uBAAuB,OAAO,EAAE;AAClD","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\nimport { createInternalClientContext, thirdPartyApplications } from \"#net\";\nimport { loadToken } from \"../../../../util/token.js\";\nexport default async function versionSetCommand({\n version,\n application,\n foundryUrl,\n token,\n tokenFile\n}) {\n consola.start(`Setting live version`);\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n if (version) {\n await thirdPartyApplications.updateWebsiteDeployment(clientCtx, application, {\n version\n });\n }\n consola.success(`Set live version to ${version}`);\n}"]}
@@ -1,5 +1,5 @@
1
- import { loadToken, createInternalClientContext, third_party_application_service_exports, createConjureContext, ArtifactsSitesAdminV2Service_exports } from './chunk-EALLTV7S.mjs';
2
- import './chunk-CLAEREOL.mjs';
1
+ import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-2A2YEODO.mjs';
2
+ import './chunk-CWMSASIM.mjs';
3
3
  import './chunk-E2SEJZTC.mjs';
4
4
  import { consola } from 'consola';
5
5
 
@@ -14,13 +14,9 @@ async function versionSetCommand({
14
14
  const loadedToken = await loadToken(token, tokenFile);
15
15
  const tokenProvider = () => loadedToken;
16
16
  const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);
17
- const repositoryRid = await third_party_application_service_exports.fetchWebsiteRepositoryRid(clientCtx, application);
18
- const ctx = createConjureContext(foundryUrl, "/artifacts/api", tokenProvider);
19
17
  if (version) {
20
- await ArtifactsSitesAdminV2Service_exports.updateDeployedVersion(ctx, repositoryRid, {
21
- siteVersion: {
22
- version
23
- }
18
+ await third_party_applications_exports.updateWebsiteDeployment(clientCtx, application, {
19
+ version
24
20
  });
25
21
  }
26
22
  consola.success(`Set live version to ${version}`);
@@ -28,4 +24,4 @@ async function versionSetCommand({
28
24
 
29
25
  export { versionSetCommand as default };
30
26
  //# sourceMappingURL=out.js.map
31
- //# sourceMappingURL=versionSetCommand-KXNXVRXK.mjs.map
27
+ //# sourceMappingURL=versionSetCommand-GRRGFGPP.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/commands/site/version/set/versionSetCommand.mts"],"names":[],"mappings":";;;;;;;;;AAgBA,SAAS,eAAe;AAGxB,eAAO,kBAAyC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAG;AACD,UAAQ,MAAM,sBAAsB;AACpC,QAAM,cAAc,MAAM,UAAU,OAAO,SAAS;AACpD,QAAM,gBAAgB,MAAM;AAC5B,QAAM,YAAY,4BAA4B,YAAY,aAAa;AACvE,MAAI,SAAS;AACX,UAAM,iCAAuB,wBAAwB,WAAW,aAAa;AAAA,MAC3E;AAAA,IACF,CAAC;AAAA,EACH;AACA,UAAQ,QAAQ,uBAAuB,OAAO,EAAE;AAClD","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\nimport { createInternalClientContext, thirdPartyApplications } from \"#net\";\nimport { loadToken } from \"../../../../util/token.js\";\nexport default async function versionSetCommand({\n version,\n application,\n foundryUrl,\n token,\n tokenFile\n}) {\n consola.start(`Setting live version`);\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n if (version) {\n await thirdPartyApplications.updateWebsiteDeployment(clientCtx, application, {\n version\n });\n }\n consola.success(`Set live version to ${version}`);\n}"]}
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkDQYIDDJN_cjs = require('./chunk-DQYIDDJN.cjs');
4
- var chunkF6Y3FTY6_cjs = require('./chunk-F6Y3FTY6.cjs');
5
- require('./chunk-HZ3XILMW.cjs');
4
+ var chunkQVFWI7JV_cjs = require('./chunk-QVFWI7JV.cjs');
5
+ require('./chunk-467BAS7X.cjs');
6
6
  require('./chunk-HQDDGVB7.cjs');
7
7
  var consola = require('consola');
8
8
  var utils = require('consola/utils');
@@ -21,16 +21,14 @@ ${utils.colorize("bold", "Your site will no longer be accessible until a new liv
21
21
  });
22
22
  chunkDQYIDDJN_cjs.handlePromptCancel(confirmed);
23
23
  }
24
- const loadedToken = await chunkF6Y3FTY6_cjs.loadToken(token, tokenFile);
24
+ const loadedToken = await chunkQVFWI7JV_cjs.loadToken(token, tokenFile);
25
25
  const tokenProvider = () => loadedToken;
26
- const clientCtx = chunkF6Y3FTY6_cjs.createInternalClientContext(foundryUrl, tokenProvider);
26
+ const clientCtx = chunkQVFWI7JV_cjs.createInternalClientContext(foundryUrl, tokenProvider);
27
27
  consola.consola.start("Clearing live site version");
28
- const repositoryRid = await chunkF6Y3FTY6_cjs.third_party_application_service_exports.fetchWebsiteRepositoryRid(clientCtx, application);
29
- const ctx = chunkF6Y3FTY6_cjs.createConjureContext(foundryUrl, "/artifacts/api", tokenProvider);
30
- await chunkF6Y3FTY6_cjs.ArtifactsSitesAdminV2Service_exports.clearDeployedVersion(ctx, repositoryRid);
28
+ await chunkQVFWI7JV_cjs.third_party_applications_exports.deleteWebsiteDeployment(clientCtx, application);
31
29
  consola.consola.success("Cleared live site version");
32
30
  }
33
31
 
34
32
  module.exports = versionUnsetCommand;
35
33
  //# sourceMappingURL=out.js.map
36
- //# sourceMappingURL=versionUnsetCommand-BIBSMJRY.cjs.map
34
+ //# sourceMappingURL=versionUnsetCommand-3MUKQRD5.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/commands/site/version/unset/versionUnsetCommand.mts"],"names":[],"mappings":";;;;;;;;;;;;AAgBA,SAAS,eAAe;AAExB,SAAS,gBAAgB;AAGzB,eAAO,oBAA2C;AAAA,EAChD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAG;AACD,MAAI,CAAC,KAAK;AACR,UAAM,YAAY,MAAM,QAAQ,OAAO;AAAA,EAA0D,SAAS,QAAQ,8EAA8E,CAAC,IAAI;AAAA,MACnM,MAAM;AAAA,IACR,CAAC;AACD,uBAAmB,SAAS;AAAA,EAC9B;AACA,QAAM,cAAc,MAAM,UAAU,OAAO,SAAS;AACpD,QAAM,gBAAgB,MAAM;AAC5B,QAAM,YAAY,4BAA4B,YAAY,aAAa;AACvE,UAAQ,MAAM,4BAA4B;AAC1C,QAAM,iCAAuB,wBAAwB,WAAW,WAAW;AAC3E,UAAQ,QAAQ,2BAA2B;AAC7C","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\nimport { createInternalClientContext, thirdPartyApplications } from \"#net\";\nimport { colorize } from \"consola/utils\";\nimport { handlePromptCancel } from \"../../../../consola/handlePromptCancel.js\";\nimport { loadToken } from \"../../../../util/token.js\";\nexport default async function versionUnsetCommand({\n yes,\n application,\n foundryUrl,\n token,\n tokenFile\n}) {\n if (!yes) {\n const confirmed = await consola.prompt(`Are you sure you want to clear the live site version?\\n${colorize(\"bold\", \"Your site will no longer be accessible until a new live site version is set.\")}`, {\n type: \"confirm\"\n });\n handlePromptCancel(confirmed);\n }\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n consola.start(\"Clearing live site version\");\n await thirdPartyApplications.deleteWebsiteDeployment(clientCtx, application);\n consola.success(\"Cleared live site version\");\n}"]}
@@ -1,6 +1,6 @@
1
1
  import { handlePromptCancel } from './chunk-IV3QY3PZ.mjs';
2
- import { loadToken, createInternalClientContext, third_party_application_service_exports, createConjureContext, ArtifactsSitesAdminV2Service_exports } from './chunk-EALLTV7S.mjs';
3
- import './chunk-CLAEREOL.mjs';
2
+ import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-2A2YEODO.mjs';
3
+ import './chunk-CWMSASIM.mjs';
4
4
  import './chunk-E2SEJZTC.mjs';
5
5
  import { consola } from 'consola';
6
6
  import { colorize } from 'consola/utils';
@@ -23,12 +23,10 @@ ${colorize("bold", "Your site will no longer be accessible until a new live site
23
23
  const tokenProvider = () => loadedToken;
24
24
  const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);
25
25
  consola.start("Clearing live site version");
26
- const repositoryRid = await third_party_application_service_exports.fetchWebsiteRepositoryRid(clientCtx, application);
27
- const ctx = createConjureContext(foundryUrl, "/artifacts/api", tokenProvider);
28
- await ArtifactsSitesAdminV2Service_exports.clearDeployedVersion(ctx, repositoryRid);
26
+ await third_party_applications_exports.deleteWebsiteDeployment(clientCtx, application);
29
27
  consola.success("Cleared live site version");
30
28
  }
31
29
 
32
30
  export { versionUnsetCommand as default };
33
31
  //# sourceMappingURL=out.js.map
34
- //# sourceMappingURL=versionUnsetCommand-XH4PGAIP.mjs.map
32
+ //# sourceMappingURL=versionUnsetCommand-PZF5G4WC.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/commands/site/version/unset/versionUnsetCommand.mts"],"names":[],"mappings":";;;;;;;;;;;;AAgBA,SAAS,eAAe;AAExB,SAAS,gBAAgB;AAGzB,eAAO,oBAA2C;AAAA,EAChD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAG;AACD,MAAI,CAAC,KAAK;AACR,UAAM,YAAY,MAAM,QAAQ,OAAO;AAAA,EAA0D,SAAS,QAAQ,8EAA8E,CAAC,IAAI;AAAA,MACnM,MAAM;AAAA,IACR,CAAC;AACD,uBAAmB,SAAS;AAAA,EAC9B;AACA,QAAM,cAAc,MAAM,UAAU,OAAO,SAAS;AACpD,QAAM,gBAAgB,MAAM;AAC5B,QAAM,YAAY,4BAA4B,YAAY,aAAa;AACvE,UAAQ,MAAM,4BAA4B;AAC1C,QAAM,iCAAuB,wBAAwB,WAAW,WAAW;AAC3E,UAAQ,QAAQ,2BAA2B;AAC7C","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\nimport { createInternalClientContext, thirdPartyApplications } from \"#net\";\nimport { colorize } from \"consola/utils\";\nimport { handlePromptCancel } from \"../../../../consola/handlePromptCancel.js\";\nimport { loadToken } from \"../../../../util/token.js\";\nexport default async function versionUnsetCommand({\n yes,\n application,\n foundryUrl,\n token,\n tokenFile\n}) {\n if (!yes) {\n const confirmed = await consola.prompt(`Are you sure you want to clear the live site version?\\n${colorize(\"bold\", \"Your site will no longer be accessible until a new live site version is set.\")}`, {\n type: \"confirm\"\n });\n handlePromptCancel(confirmed);\n }\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n consola.start(\"Clearing live site version\");\n await thirdPartyApplications.deleteWebsiteDeployment(clientCtx, application);\n consola.success(\"Cleared live site version\");\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":"AA8BA,wBAAsB,GAAG,CAAC,IAAI,GAAE,MAAM,EAAiB;;;;;eA+DtD"}
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":"AAyBA,wBAAsB,GAAG,CAAC,IAAI,GAAE,MAAM,EAAiB;;;;;eA6BtD"}
@@ -1,6 +1,5 @@
1
+ import type { CliCommonArgs, CommonAuthArgs } from "@osdk/cli.common";
1
2
  import type * as yargs from "yargs";
2
- import type { CliCommonArgs } from "../../CliCommonArgs.js";
3
- import type { CommonAuthArgs } from "./CommonAuthArgs.js";
4
- declare const site: yargs.CommandModule<CliCommonArgs, CommonAuthArgs>;
5
- export default site;
3
+ declare const auth: yargs.CommandModule<CliCommonArgs, CommonAuthArgs>;
4
+ export default auth;
6
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/auth/index.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAG1D,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,aAAa,EAAE,cAAc,CAkB5D,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/auth/index.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,aAAa,EAAE,cAAc,CAkB5D,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1,6 +1,5 @@
1
+ import type { CommonAuthArgs, LoginArgs } from "@osdk/cli.common";
1
2
  import type { CommandModule } from "yargs";
2
- import type { CommonAuthArgs } from "../CommonAuthArgs.js";
3
- import type { LoginArgs } from "./LoginArgs.js";
4
3
  export declare const command: CommandModule<CommonAuthArgs, LoginArgs>;
5
4
  export default command;
6
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/commands/auth/login/index.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,eAAO,MAAM,OAAO,EAAE,aAAa,CACjC,cAAc,EACd,SAAS,CAiBV,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/commands/auth/login/index.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,eAAO,MAAM,OAAO,EAAE,aAAa,CACjC,cAAc,EACd,SAAS,CAiBV,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { CliCommonArgs } from "../../CliCommonArgs.js";
1
+ import type { CliCommonArgs } from "@osdk/cli.common";
2
2
  import type { ThirdPartyAppRid } from "../../net/ThirdPartyAppRid.js";
3
3
  export interface CommonSiteArgs extends CliCommonArgs {
4
4
  application: ThirdPartyAppRid;
@@ -1 +1 @@
1
- {"version":3,"file":"CommonSiteArgs.d.ts","sourceRoot":"","sources":["../../../../src/commands/site/CommonSiteArgs.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,MAAM,WAAW,cAAe,SAAQ,aAAa;IACnD,WAAW,EAAE,gBAAgB,CAAC;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
1
+ {"version":3,"file":"CommonSiteArgs.d.ts","sourceRoot":"","sources":["../../../../src/commands/site/CommonSiteArgs.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,MAAM,WAAW,cAAe,SAAQ,aAAa;IACnD,WAAW,EAAE,gBAAgB,CAAC;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/commands/site/deploy/index.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAS3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,QAAA,MAAM,OAAO,EAAE,aAAa,CAC1B,cAAc,EACd,cAAc,CA8Gf,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/commands/site/deploy/index.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAO3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,QAAA,MAAM,OAAO,EAAE,aAAa,CAC1B,cAAc,EACd,cAAc,CA8Gf,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"siteDeployCommand.d.mts","sourceRoot":"","sources":["../../../../../src/commands/site/deploy/siteDeployCommand.mts"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,UAAU,sBACR,SAAQ,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,aAAa,CAAC;IAEvD,eAAe,EAAE,MAAM,GAAG,iBAAiB,CAAC;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,wBAA8B,iBAAiB,CAC7C,EACE,eAAe,EACf,WAAW,EACX,UAAU,EACV,UAAU,EACV,SAAS,EACT,KAAK,EACL,SAAS,GACV,EAAE,sBAAsB,iBA+E1B"}
1
+ {"version":3,"file":"siteDeployCommand.d.mts","sourceRoot":"","sources":["../../../../../src/commands/site/deploy/siteDeployCommand.mts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,UAAU,sBACR,SAAQ,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,aAAa,CAAC;IAEvD,eAAe,EAAE,MAAM,GAAG,iBAAiB,CAAC;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,wBAA8B,iBAAiB,CAC7C,EACE,eAAe,EACf,WAAW,EACX,UAAU,EACV,UAAU,EACV,SAAS,EACT,KAAK,EACL,SAAS,GACV,EAAE,sBAAsB,iBAqE1B"}
@@ -1,5 +1,5 @@
1
+ import type { CliCommonArgs } from "@osdk/cli.common";
1
2
  import type { CommandModule } from "yargs";
2
- import type { CliCommonArgs } from "../../CliCommonArgs.js";
3
3
  import type { CommonSiteArgs } from "./CommonSiteArgs.js";
4
4
  declare const command: CommandModule<CliCommonArgs, CommonSiteArgs>;
5
5
  export default command;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/site/index.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAK5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAK1D,QAAA,MAAM,OAAO,EAAE,aAAa,CAAC,aAAa,EAAE,cAAc,CAsDzD,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/site/index.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAK1D,QAAA,MAAM,OAAO,EAAE,aAAa,CAAC,aAAa,EAAE,cAAc,CAsDzD,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"versionDeleteCommand.d.mts","sourceRoot":"","sources":["../../../../../../src/commands/site/version/delete/versionDeleteCommand.mts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,wBAA8B,oBAAoB,CAChD,EAAE,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,EACzD,iBAAiB,iBAuBpB"}
1
+ {"version":3,"file":"versionDeleteCommand.d.mts","sourceRoot":"","sources":["../../../../../../src/commands/site/version/delete/versionDeleteCommand.mts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,wBAA8B,oBAAoB,CAChD,EAAE,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,EACzD,iBAAiB,iBAwBpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"versionGetCommand.d.mts","sourceRoot":"","sources":["../../../../../../src/commands/site/version/get/versionGetCommand.mts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,wBAA8B,iBAAiB,CAC7C,EAAE,UAAU,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,cAAc,iBAsB9D"}
1
+ {"version":3,"file":"versionGetCommand.d.mts","sourceRoot":"","sources":["../../../../../../src/commands/site/version/get/versionGetCommand.mts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,wBAA8B,iBAAiB,CAC7C,EAAE,UAAU,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,cAAc,iBAiB9D"}
@@ -1 +1 @@
1
- {"version":3,"file":"versionListCommand.d.mts","sourceRoot":"","sources":["../../../../../../src/commands/site/version/list/versionListCommand.mts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D,wBAA8B,kBAAkB,CAC9C,EAAE,UAAU,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,eAAe,iBAuC/D"}
1
+ {"version":3,"file":"versionListCommand.d.mts","sourceRoot":"","sources":["../../../../../../src/commands/site/version/list/versionListCommand.mts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D,wBAA8B,kBAAkB,CAC9C,EAAE,UAAU,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,eAAe,iBAiC/D"}
@@ -1 +1 @@
1
- {"version":3,"file":"versionSetCommand.d.mts","sourceRoot":"","sources":["../../../../../../src/commands/site/version/set/versionSetCommand.mts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,wBAA8B,iBAAiB,CAC7C,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,cAAc,iBAmBvE"}
1
+ {"version":3,"file":"versionSetCommand.d.mts","sourceRoot":"","sources":["../../../../../../src/commands/site/version/set/versionSetCommand.mts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,wBAA8B,iBAAiB,CAC7C,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,cAAc,iBAgBvE"}
@@ -1 +1 @@
1
- {"version":3,"file":"versionUnsetCommand.d.mts","sourceRoot":"","sources":["../../../../../../src/commands/site/version/unset/versionUnsetCommand.mts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,wBAA8B,mBAAmB,CAC/C,EAAE,GAAG,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,gBAAgB,iBAwBrE"}
1
+ {"version":3,"file":"versionUnsetCommand.d.mts","sourceRoot":"","sources":["../../../../../../src/commands/site/version/unset/versionUnsetCommand.mts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,wBAA8B,mBAAmB,CAC/C,EAAE,GAAG,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,gBAAgB,iBAqBrE"}
@@ -1,7 +1,3 @@
1
- export { ArtifactsSitesAdminV2Service } from "../generated/artifacts-sites/index.js";
2
- export type { SiteDomainInfo } from "../generated/artifacts-sites/SiteDomainInfo.js";
3
- export * as artifacts from "./artifacts/index.mjs";
4
- export { createConjureContext } from "./createConjureContext.mjs";
5
1
  export { createInternalClientContext } from "./createInternalClientContext.mjs";
6
- export * as thirdPartyApplicationService from "./third-party-application-service/index.mjs";
2
+ export * as thirdPartyApplications from "./third-party-applications/index.mjs";
7
3
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/net/index.mts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AACrF,YAAY,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;AACrF,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,KAAK,4BAA4B,MAAM,6CAA6C,CAAC"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/net/index.mts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,KAAK,sBAAsB,MAAM,sCAAsC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { WebsiteVersion } from "./WebsiteVersion.mts";
2
+ export interface ListWebsiteVersionsResponse {
3
+ data: WebsiteVersion[];
4
+ nextPageToken?: string;
5
+ }
6
+ //# sourceMappingURL=ListWebsiteVersionsResponse.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListWebsiteVersionsResponse.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/ListWebsiteVersionsResponse.mts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,cAAc,EAAE,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
@@ -0,0 +1,4 @@
1
+ export interface UpdateWebsiteDeploymentRequest {
2
+ version: string;
3
+ }
4
+ //# sourceMappingURL=UpdateWebsiteDeploymentRequest.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UpdateWebsiteDeploymentRequest.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/UpdateWebsiteDeploymentRequest.mts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,8BAA8B;IAC7C,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,5 @@
1
+ export interface WebsiteDeployment {
2
+ version: string;
3
+ subdomains: string[];
4
+ }
5
+ //# sourceMappingURL=WebsiteDeployment.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebsiteDeployment.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/WebsiteDeployment.mts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB"}
@@ -0,0 +1,4 @@
1
+ export interface WebsiteVersion {
2
+ version: string;
3
+ }
4
+ //# sourceMappingURL=WebsiteVersion.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebsiteVersion.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/WebsiteVersion.mts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,4 @@
1
+ import type { InternalClientContext } from "../internalClientContext.mjs";
2
+ import type { ThirdPartyAppRid } from "../ThirdPartyAppRid.js";
3
+ export declare function deleteWebsiteDeployment(ctx: InternalClientContext, thirdPartyAppRid: ThirdPartyAppRid): Promise<void>;
4
+ //# sourceMappingURL=deleteWebsiteDeployment.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteWebsiteDeployment.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/deleteWebsiteDeployment.mts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,wBAAsB,uBAAuB,CAC3C,GAAG,EAAE,qBAAqB,EAC1B,gBAAgB,EAAE,gBAAgB,GACjC,OAAO,CAAC,IAAI,CAAC,CAWf"}
@@ -0,0 +1,4 @@
1
+ import type { InternalClientContext } from "../internalClientContext.mjs";
2
+ import type { ThirdPartyAppRid } from "../ThirdPartyAppRid.js";
3
+ export declare function deleteWebsiteVersion(ctx: InternalClientContext, thirdPartyAppRid: ThirdPartyAppRid, version: string): Promise<void>;
4
+ //# sourceMappingURL=deleteWebsiteVersion.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteWebsiteVersion.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/deleteWebsiteVersion.mts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,wBAAsB,oBAAoB,CACxC,GAAG,EAAE,qBAAqB,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC,CAWf"}
@@ -0,0 +1,5 @@
1
+ import type { InternalClientContext } from "../internalClientContext.mjs";
2
+ import type { ThirdPartyAppRid } from "../ThirdPartyAppRid.js";
3
+ import type { WebsiteDeployment } from "./WebsiteDeployment.mjs";
4
+ export declare function getWebsiteDeployment(ctx: InternalClientContext, thirdPartyAppRid: ThirdPartyAppRid): Promise<WebsiteDeployment | undefined>;
5
+ //# sourceMappingURL=getWebsiteDeployment.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getWebsiteDeployment.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/getWebsiteDeployment.mts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,wBAAsB,oBAAoB,CACxC,GAAG,EAAE,qBAAqB,EAC1B,gBAAgB,EAAE,gBAAgB,GACjC,OAAO,CAAC,iBAAiB,GAAG,SAAS,CAAC,CAmBxC"}
@@ -0,0 +1,11 @@
1
+ export { deleteWebsiteDeployment } from "./deleteWebsiteDeployment.mjs";
2
+ export { deleteWebsiteVersion } from "./deleteWebsiteVersion.mjs";
3
+ export { getWebsiteDeployment } from "./getWebsiteDeployment.mjs";
4
+ export { listWebsiteVersions } from "./listWebsiteVersions.mjs";
5
+ export type { ListWebsiteVersionsResponse } from "./ListWebsiteVersionsResponse.mjs";
6
+ export { updateWebsiteDeployment } from "./updateWebsiteDeployment.mjs";
7
+ export type { UpdateWebsiteDeploymentRequest } from "./UpdateWebsiteDeploymentRequest.mjs";
8
+ export { uploadWebsiteVersion } from "./uploadWebsiteVersion.mjs";
9
+ export type { WebsiteDeployment } from "./WebsiteDeployment.mjs";
10
+ export type { WebsiteVersion } from "./WebsiteVersion.mjs";
11
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/index.mts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,YAAY,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AACrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,YAAY,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAC3F,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,YAAY,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { InternalClientContext } from "../internalClientContext.mjs";
2
+ import type { ThirdPartyAppRid } from "../ThirdPartyAppRid.js";
3
+ import type { ListWebsiteVersionsResponse } from "./ListWebsiteVersionsResponse.mjs";
4
+ export declare function listWebsiteVersions(ctx: InternalClientContext, thirdPartyAppRid: ThirdPartyAppRid): Promise<ListWebsiteVersionsResponse>;
5
+ //# sourceMappingURL=listWebsiteVersions.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listWebsiteVersions.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/listWebsiteVersions.mts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAErF,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,qBAAqB,EAC1B,gBAAgB,EAAE,gBAAgB,GACjC,OAAO,CAAC,2BAA2B,CAAC,CAOtC"}
@@ -0,0 +1,6 @@
1
+ import type { InternalClientContext } from "../internalClientContext.mjs";
2
+ import type { ThirdPartyAppRid } from "../ThirdPartyAppRid.js";
3
+ import type { UpdateWebsiteDeploymentRequest } from "./UpdateWebsiteDeploymentRequest.mjs";
4
+ import type { WebsiteDeployment } from "./WebsiteDeployment.mjs";
5
+ export declare function updateWebsiteDeployment(ctx: InternalClientContext, thirdPartyAppRid: ThirdPartyAppRid, request: UpdateWebsiteDeploymentRequest): Promise<WebsiteDeployment>;
6
+ //# sourceMappingURL=updateWebsiteDeployment.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateWebsiteDeployment.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/updateWebsiteDeployment.mts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAC3F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,wBAAsB,uBAAuB,CAC3C,GAAG,EAAE,qBAAqB,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,EAAE,8BAA8B,GACtC,OAAO,CAAC,iBAAiB,CAAC,CAgB5B"}
@@ -0,0 +1,5 @@
1
+ import type { InternalClientContext } from "../internalClientContext.mjs";
2
+ import type { ThirdPartyAppRid } from "../ThirdPartyAppRid.js";
3
+ import type { WebsiteVersion } from "./WebsiteVersion.mjs";
4
+ export declare function uploadWebsiteVersion(ctx: InternalClientContext, thirdPartyAppRid: ThirdPartyAppRid, version: string, zipFile: ReadableStream | Blob | BufferSource): Promise<WebsiteVersion>;
5
+ //# sourceMappingURL=uploadWebsiteVersion.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uploadWebsiteVersion.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/uploadWebsiteVersion.mts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,wBAAsB,oBAAoB,CACxC,GAAG,EAAE,qBAAqB,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,cAAc,GAAG,IAAI,GAAG,YAAY,GAC5C,OAAO,CAAC,cAAc,CAAC,CAiBzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"autoVersion.d.ts","sourceRoot":"","sources":["../../../src/util/autoVersion.ts"],"names":[],"mappings":"AAqBA;;;;;;GAMG;AACH,wBAAsB,WAAW,CAAC,SAAS,GAAE,MAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAezE"}
1
+ {"version":3,"file":"autoVersion.d.ts","sourceRoot":"","sources":["../../../src/util/autoVersion.ts"],"names":[],"mappings":"AAoBA;;;;;;GAMG;AACH,wBAAsB,WAAW,CAAC,SAAS,GAAE,MAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAezE"}
@@ -0,0 +1,5 @@
1
+ type: improvement
2
+ improvement:
3
+ description: Refactors to improve devx
4
+ links:
5
+ - https://github.com/palantir/osdk-ts/pull/143
@@ -0,0 +1,5 @@
1
+ type: improvement
2
+ improvement:
3
+ description: Switch site commands to public API
4
+ links:
5
+ - https://github.com/palantir/osdk-ts/pull/166
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osdk/cli",
3
- "version": "0.15.0",
3
+ "version": "0.17.0",
4
4
  "description": "",
5
5
  "access": "public",
6
6
  "license": "Apache-2.0",
@@ -31,10 +31,10 @@
31
31
  "semver": "^7.6.0",
32
32
  "tslib": "^2.6.2",
33
33
  "yargs": "^17.7.2",
34
- "@osdk/api": "1.5.0",
35
- "@osdk/gateway": "2.1.0",
36
- "@osdk/generator": "1.8.0",
37
- "@osdk/shared.net": "1.8.0"
34
+ "@osdk/api": "1.6.0",
35
+ "@osdk/gateway": "2.2.0",
36
+ "@osdk/generator": "1.9.0",
37
+ "@osdk/shared.net": "1.9.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/archiver": "^6.0.0",
@@ -43,7 +43,9 @@
43
43
  "@types/semver": "^7.5.7",
44
44
  "@types/yargs": "^17.0.29",
45
45
  "ts-expect": "^1.3.0",
46
- "typescript": "^5.4.2"
46
+ "typescript": "^5.4.2",
47
+ "@osdk/cli.cmd.typescript": "0.0.0",
48
+ "@osdk/cli.common": "0.0.0"
47
49
  },
48
50
  "publishConfig": {
49
51
  "access": "public"
@@ -70,13 +72,12 @@
70
72
  "type": "module",
71
73
  "scripts": {
72
74
  "clean": "rm -rf lib dist types build tsconfig.tsbuildinfo",
73
- "dev:transpile": "tsup --watch",
74
75
  "fix-lint": "eslint . --fix && dprint fmt --config $(find-up dprint.json)",
75
76
  "lint": "eslint . && dprint check --config $(find-up dprint.json)",
76
77
  "test": "vitest run",
77
78
  "test:watch": "vitest",
78
79
  "transpile": "tsup",
79
80
  "transpileWatch": "tsup --watch",
80
- "typecheck": "tsc-absolute --build"
81
+ "typecheck": "tsc-absolute"
81
82
  }
82
83
  }