@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
@@ -1,12 +0,0 @@
1
- 'use strict';
2
-
3
- // src/YargsCheckError.ts
4
- var YargsCheckError = class extends Error {
5
- constructor(msg) {
6
- super(msg);
7
- }
8
- };
9
-
10
- exports.YargsCheckError = YargsCheckError;
11
- //# sourceMappingURL=out.js.map
12
- //# sourceMappingURL=chunk-CCA2T5YW.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/YargsCheckError.ts"],"names":[],"mappings":";AAgBO,IAAM,kBAAN,cAA8B,MAAM;AAAA,EACzC,YAAY,KAAK;AACf,UAAM,GAAG;AAAA,EACX;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\nexport class YargsCheckError extends Error {\n constructor(msg) {\n super(msg);\n }\n}"]}
@@ -1,13 +0,0 @@
1
- // src/ExitProcessError.ts
2
- var ExitProcessError = class extends Error {
3
- constructor(errorCode, msg, tip) {
4
- super(msg);
5
- this.errorCode = errorCode;
6
- this.msg = msg;
7
- this.tip = tip;
8
- }
9
- };
10
-
11
- export { ExitProcessError };
12
- //# sourceMappingURL=out.js.map
13
- //# sourceMappingURL=chunk-CLAEREOL.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/ExitProcessError.ts"],"names":[],"mappings":";AAgBO,IAAM,mBAAN,cAA+B,MAAM;AAAA,EAC1C,YAAY,WAAW,KAAK,KAAK;AAC/B,UAAM,GAAG;AACT,SAAK,YAAY;AACjB,SAAK,MAAM;AACX,SAAK,MAAM;AAAA,EACb;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\nexport class ExitProcessError extends Error {\n constructor(errorCode, msg, tip) {\n super(msg);\n this.errorCode = errorCode;\n this.msg = msg;\n this.tip = tip;\n }\n}"]}
@@ -1,256 +0,0 @@
1
- import { ExitProcessError } from './chunk-CLAEREOL.mjs';
2
- import { __export } from './chunk-E2SEJZTC.mjs';
3
- import { conjureFetch } from 'conjure-lite';
4
- import { consola } from 'consola';
5
- import { createFetchHeaderMutator, createFetchOrThrow, PalantirApiError } from '@osdk/shared.net';
6
- import { promises } from 'fs';
7
- import path from 'path';
8
-
9
- // src/generated/artifacts-sites/ArtifactsSitesAdminV2Service.ts
10
- var ArtifactsSitesAdminV2Service_exports = {};
11
- __export(ArtifactsSitesAdminV2Service_exports, {
12
- clearDeployedVersion: () => clearDeployedVersion,
13
- getContentSecurityPolicyAdditions: () => getContentSecurityPolicyAdditions,
14
- getDeployedVersion: () => getDeployedVersion,
15
- getRegisteredSiteDomains: () => getRegisteredSiteDomains,
16
- getRequestedSiteDomains: () => getRequestedSiteDomains,
17
- previewContentSecurityPolicy: () => previewContentSecurityPolicy,
18
- putContentSecurityPolicyAdditions: () => putContentSecurityPolicyAdditions,
19
- requestSiteDomainForRepository: () => requestSiteDomainForRepository,
20
- unregisterSiteDomain: () => unregisterSiteDomain,
21
- updateDeployedVersion: () => updateDeployedVersion
22
- });
23
- async function clearDeployedVersion(ctx, repositoryRid) {
24
- return conjureFetch(ctx, `/sites/v2/admin/repository/${repositoryRid}/deployed-version`, "DELETE");
25
- }
26
- async function getContentSecurityPolicyAdditions(ctx, repositoryRid) {
27
- return conjureFetch(ctx, `/sites/v2/admin/repository/${repositoryRid}/csp/additions`, "GET");
28
- }
29
- async function getDeployedVersion(ctx, repositoryRid) {
30
- return conjureFetch(ctx, `/sites/v2/admin/repository/${repositoryRid}/deployed-version`, "GET");
31
- }
32
- async function getRegisteredSiteDomains(ctx, repositoryRid) {
33
- return conjureFetch(ctx, `/sites/v2/admin/repository/${repositoryRid}/domains/registered`, "GET");
34
- }
35
- async function getRequestedSiteDomains(ctx, repositoryRid) {
36
- return conjureFetch(ctx, `/sites/v2/admin/repository/${repositoryRid}/domains/requested`, "GET");
37
- }
38
- async function previewContentSecurityPolicy(ctx, repositoryRid, request) {
39
- return conjureFetch(ctx, `/sites/v2/admin/repository/${repositoryRid}/csp/preview`, "POST", request);
40
- }
41
- async function putContentSecurityPolicyAdditions(ctx, repositoryRid, contentSecurityPolicyAdditions) {
42
- return conjureFetch(ctx, `/sites/v2/admin/repository/${repositoryRid}/csp/additions`, "PUT", contentSecurityPolicyAdditions);
43
- }
44
- async function requestSiteDomainForRepository(ctx, repositoryRid, request) {
45
- return conjureFetch(ctx, `/sites/v2/admin/repository/${repositoryRid}/domains/submit-registration`, "POST", request);
46
- }
47
- async function unregisterSiteDomain(ctx, repositoryRid, request) {
48
- return conjureFetch(ctx, `/sites/v2/admin/repository/${repositoryRid}/domains/unregister`, "POST", request);
49
- }
50
- async function updateDeployedVersion(ctx, repositoryRid, version) {
51
- return conjureFetch(ctx, `/sites/v2/admin/repository/${repositoryRid}/deployed-version`, "PUT", version);
52
- }
53
-
54
- // src/net/artifacts/index.mts
55
- var artifacts_exports = {};
56
- __export(artifacts_exports, {
57
- SiteAssetArtifactsService: () => SiteAssetArtifactsService_exports
58
- });
59
-
60
- // src/net/artifacts/SiteAssetArtifactsService/index.mts
61
- var SiteAssetArtifactsService_exports = {};
62
- __export(SiteAssetArtifactsService_exports, {
63
- deleteSiteVersion: () => deleteSiteVersion,
64
- fetchSiteVersions: () => fetchSiteVersions,
65
- uploadZippedSiteAsset: () => uploadZippedSiteAsset
66
- });
67
-
68
- // src/net/UserAgent.ts
69
- var USER_AGENT = `osdk-cli/${"0.15.0"}`;
70
-
71
- // src/net/createFetch.mts
72
- function createFetch(tokenProvider, fetchFn = fetch) {
73
- return createFetchHeaderMutator(createRequestLoggingFetch(createErrorExitingFetch(createFetchOrThrow(fetchFn))), async (headers) => {
74
- const token = await tokenProvider();
75
- headers.set("Authorization", `Bearer ${token}`);
76
- headers.set("Fetch-User-Agent", USER_AGENT);
77
- return headers;
78
- });
79
- }
80
- function createErrorExitingFetch(fetchFn = fetch) {
81
- return function errorExitingFetch(input, init) {
82
- return fetchFn(input, init).catch(handleFetchError);
83
- };
84
- }
85
- function handleFetchError(e) {
86
- if (!(e instanceof PalantirApiError)) {
87
- throw new ExitProcessError(1, "Unexpected fetch error");
88
- }
89
- let tip;
90
- if (e.statusCode === 401) {
91
- tip = "Check your token is valid and has not expired or been disabled";
92
- } else if (e.statusCode === 403) {
93
- tip = "Check your token has the required scopes for this operation";
94
- }
95
- let message = e.message;
96
- if (e.errorName === "Artifacts:ArtifactAlreadyExists") {
97
- message = "Version already exists";
98
- }
99
- throw new ExitProcessError(1, message, tip);
100
- }
101
- function createRequestLoggingFetch(fetchFn = fetch) {
102
- return function requestLoggingFetch(input, init) {
103
- const requestLog = typeof input === "string" || input instanceof URL ? `${init?.method ?? "GET"}: ${input.toString().trim()}` : `${input.method ?? "GET"}: ${input.url.toString().trim()}`;
104
- consola.trace(requestLog);
105
- return fetchFn(input, init).then((a) => {
106
- consola.trace(`FINISH ${requestLog}`);
107
- return a;
108
- });
109
- };
110
- }
111
- async function fetchWebsiteRepositoryRid(ctx, thirdPartyAppRid) {
112
- const fetch2 = createFetch(ctx.tokenProvider);
113
- const url = `
114
- ${ctx.foundryUrl}/third-party-application-service/api/application-websites/${thirdPartyAppRid}`;
115
- const result = await fetch2(url);
116
- if (result.status >= 200 && result.status < 300) {
117
- const repositoryRid = await result.json();
118
- consola.debug(`Repository RID: ${repositoryRid}`);
119
- return repositoryRid;
120
- }
121
- throw new ExitProcessError(result.status, `Unexpected response code ${result.status} (${result.statusText})`);
122
- }
123
-
124
- // src/net/artifacts/SiteAssetArtifactsService/getSiteAssetBaseUrl.mts
125
- function getSiteAssetBaseUrl(foundryBaseUrl, repositoryRid) {
126
- return `${foundryBaseUrl}/artifacts/api/repositories/${repositoryRid}/contents/release/siteasset`;
127
- }
128
-
129
- // src/net/artifacts/SiteAssetArtifactsService/deleteSiteVersion.mts
130
- async function deleteSiteVersion(ctx, request) {
131
- const repositoryRid = await fetchWebsiteRepositoryRid(ctx, request.application);
132
- const url = `${getSiteAssetBaseUrl(ctx.foundryUrl, repositoryRid)}/versions/${request.version}`;
133
- const fetch2 = createFetch(ctx.tokenProvider);
134
- const result = await fetch2(url, {
135
- method: "DELETE"
136
- });
137
- if (result.status >= 200 && result.status < 300) {
138
- consola.debug(`${result.status} - Status Text: '${result.statusText}'`);
139
- return true;
140
- } else {
141
- throw new ExitProcessError(result.status, `Unexpected response code ${result.status} (${result.statusText})`);
142
- }
143
- }
144
-
145
- // src/net/artifacts/SiteAssetArtifactsService/fetchSiteVersions.mts
146
- async function fetchSiteVersions(ctx, thirdPartyAppRid) {
147
- const repositoryRid = await fetchWebsiteRepositoryRid(ctx, thirdPartyAppRid);
148
- const url = `${getSiteAssetBaseUrl(ctx.foundryUrl, repositoryRid)}/versions`;
149
- const fetch2 = createFetch(ctx.tokenProvider);
150
- const result = await fetch2(url);
151
- if (result.status === 200) {
152
- const response = await result.json();
153
- return response.versions;
154
- } else {
155
- throw new ExitProcessError(result.status, `Unexpected response code ${result.status} (${result.statusText})`);
156
- }
157
- }
158
- async function uploadZippedSiteAsset(ctx, request) {
159
- const repositoryRid = await fetchWebsiteRepositoryRid(ctx, request.application);
160
- const url = `${getSiteAssetBaseUrl(ctx.foundryUrl, repositoryRid)}/versions/zip/${request.version}`;
161
- const fetch2 = createFetch(ctx.tokenProvider);
162
- const result = await fetch2(url, {
163
- method: "PUT",
164
- body: request.zipFile,
165
- headers: {
166
- "Content-Type": "application/octet-stream"
167
- },
168
- duplex: "half"
169
- // Node hates me
170
- });
171
- if (result.status >= 200 && result.status < 300) {
172
- consola.debug("Status Text: " + result.statusText);
173
- return true;
174
- } else if (result.status === 409) {
175
- throw new ExitProcessError(result.status, "Version already exists");
176
- } else {
177
- throw new ExitProcessError(result.status, `Unexpected response code ${result.status} (${result.statusText})`);
178
- }
179
- }
180
-
181
- // src/net/createConjureContext.mts
182
- function createConjureContext(foundryUrl, servicePath, tokenProvider) {
183
- return {
184
- fetchFn: createFetch(tokenProvider),
185
- baseUrl: foundryUrl,
186
- servicePath
187
- };
188
- }
189
-
190
- // src/net/createInternalClientContext.mts
191
- function createInternalClientContext(foundryUrl, tokenProvider) {
192
- return {
193
- tokenProvider,
194
- foundryUrl
195
- };
196
- }
197
-
198
- // src/net/third-party-application-service/index.mts
199
- var third_party_application_service_exports = {};
200
- __export(third_party_application_service_exports, {
201
- fetchWebsiteRepositoryRid: () => fetchWebsiteRepositoryRid
202
- });
203
- var TOKEN_ENV_VARS = ["FOUNDRY_TOKEN", "FOUNDRY_SDK_AUTH_TOKEN"];
204
- async function loadToken(token, tokenFile) {
205
- if (token) {
206
- consola.debug(`Using token from --token option`);
207
- validate(token);
208
- return token;
209
- }
210
- if (tokenFile) {
211
- const loadedToken = await loadTokenFile(tokenFile);
212
- consola.debug(`Using token from --tokenFile=${loadedToken.filePath} option`);
213
- validate(loadedToken.token);
214
- return loadedToken.token;
215
- }
216
- for (const envVar of TOKEN_ENV_VARS) {
217
- const environmentToken = process.env[envVar];
218
- if (environmentToken) {
219
- consola.debug(`Using token from ${envVar} environment variable`);
220
- validate(environmentToken);
221
- if (envVar === "FOUNDRY_SDK_AUTH_TOKEN") {
222
- consola.warn(`Using FOUNDRY_SDK_AUTH_TOKEN environment variable is deprecated. Please use FOUNDRY_TOKEN instead.`);
223
- }
224
- return environmentToken;
225
- }
226
- }
227
- throw new ExitProcessError(2, `No token found.`, `You can supply a --token or --token-file option, or set the ${TOKEN_ENV_VARS[0]} environment variable`);
228
- }
229
- async function loadTokenFile(filePath) {
230
- let token;
231
- let resolvedPath;
232
- try {
233
- resolvedPath = path.resolve(filePath);
234
- token = await promises.readFile(resolvedPath, "utf8");
235
- token = token.trim();
236
- } catch (error) {
237
- throw new ExitProcessError(2, `Unable to read token file "${filePath}": ${error}`);
238
- }
239
- return {
240
- filePath: resolvedPath,
241
- token
242
- };
243
- }
244
- function validate(token) {
245
- if (!isJWT(token)) {
246
- throw new ExitProcessError(2, `Token does not appear to be a JWT`);
247
- }
248
- }
249
- function isJWT(token) {
250
- const jwtPattern = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/;
251
- return jwtPattern.test(token);
252
- }
253
-
254
- export { ArtifactsSitesAdminV2Service_exports, artifacts_exports, createConjureContext, createInternalClientContext, loadToken, third_party_application_service_exports };
255
- //# sourceMappingURL=out.js.map
256
- //# sourceMappingURL=chunk-EALLTV7S.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/generated/artifacts-sites/ArtifactsSitesAdminV2Service.ts","../../src/generated/artifacts-sites/ArtifactsSitesAdminV2Service/clearDeployedVersion.ts","../../src/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getContentSecurityPolicyAdditions.ts","../../src/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getDeployedVersion.ts","../../src/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getRegisteredSiteDomains.ts","../../src/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getRequestedSiteDomains.ts","../../src/generated/artifacts-sites/ArtifactsSitesAdminV2Service/previewContentSecurityPolicy.ts","../../src/generated/artifacts-sites/ArtifactsSitesAdminV2Service/putContentSecurityPolicyAdditions.ts","../../src/generated/artifacts-sites/ArtifactsSitesAdminV2Service/requestSiteDomainForRepository.ts","../../src/generated/artifacts-sites/ArtifactsSitesAdminV2Service/unregisterSiteDomain.ts","../../src/generated/artifacts-sites/ArtifactsSitesAdminV2Service/updateDeployedVersion.ts","../../src/net/artifacts/index.mts","../../src/net/artifacts/SiteAssetArtifactsService/index.mts","../../src/net/artifacts/SiteAssetArtifactsService/deleteSiteVersion.mts","../../src/net/createFetch.mts","../../src/net/UserAgent.ts","../../src/net/third-party-application-service/fetchWebsiteRepositoryRid.mts","../../src/net/artifacts/SiteAssetArtifactsService/getSiteAssetBaseUrl.mts","../../src/net/artifacts/SiteAssetArtifactsService/fetchSiteVersions.mts","../../src/net/artifacts/SiteAssetArtifactsService/uploadSiteVersion.mts","../../src/net/createConjureContext.mts","../../src/net/createInternalClientContext.mts","../../src/net/third-party-application-service/index.mts","../../src/util/token.ts"],"names":["conjureFetch","consola","fetch"],"mappings":";;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACgBA,SAAS,oBAAoB;AAQ7B,eAAsB,qBAAqB,KAAK,eAAe;AAC7D,SAAO,aAAa,KAAK,8BAA8B,aAAa,qBAAqB,QAAQ;AACnG;;;ACVA,SAAS,gBAAAA,qBAAoB;AAM7B,eAAsB,kCAAkC,KAAK,eAAe;AAC1E,SAAOA,cAAa,KA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QAAM,aAAa;AACnB,SAAO,WAAW,KAAK,KAAK;AAC9B","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\nexport { clearDeployedVersion } from \"./ArtifactsSitesAdminV2Service/clearDeployedVersion.js\";\nexport { getContentSecurityPolicyAdditions } from \"./ArtifactsSitesAdminV2Service/getContentSecurityPolicyAdditions.js\";\nexport { getDeployedVersion } from \"./ArtifactsSitesAdminV2Service/getDeployedVersion.js\";\nexport { getRegisteredSiteDomains } from \"./ArtifactsSitesAdminV2Service/getRegisteredSiteDomains.js\";\nexport { getRequestedSiteDomains } from \"./ArtifactsSitesAdminV2Service/getRequestedSiteDomains.js\";\nexport { previewContentSecurityPolicy } from \"./ArtifactsSitesAdminV2Service/previewContentSecurityPolicy.js\";\nexport { putContentSecurityPolicyAdditions } from \"./ArtifactsSitesAdminV2Service/putContentSecurityPolicyAdditions.js\";\nexport { requestSiteDomainForRepository } from \"./ArtifactsSitesAdminV2Service/requestSiteDomainForRepository.js\";\nexport { unregisterSiteDomain } from \"./ArtifactsSitesAdminV2Service/unregisterSiteDomain.js\";\nexport { updateDeployedVersion } from \"./ArtifactsSitesAdminV2Service/updateDeployedVersion.js\";","/*\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 { conjureFetch } from \"conjure-lite\";\n\n/**\n * Clears the deployed version while leaving the associated domain, visiting the associated domain in this state\n * will return an error.\n *\n * artifacts:sites:write-deployment-info permission is needed on the repository rid to call this endpoint.\n */\nexport async function clearDeployedVersion(ctx, repositoryRid) {\n return conjureFetch(ctx, `/sites/v2/admin/repository/${repositoryRid}/deployed-version`, \"DELETE\");\n}","/*\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Get the CSP additions configured for a repository.\n *\n * artifacts:sites:read-deployment-info permission is needed on the repository rid to call this endpoint.\n */\nexport async function getContentSecurityPolicyAdditions(ctx, repositoryRid) {\n return conjureFetch(ctx, `/sites/v2/admin/repository/${repositoryRid}/csp/additions`, \"GET\");\n}","/*\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Get the deployed version that will be served for a given siteasset repository.\n *\n * artifacts:sites:read-deployment-info permission is needed on the repository rid to call this endpoint.\n */\nexport async function getDeployedVersion(ctx, repositoryRid) {\n return conjureFetch(ctx, `/sites/v2/admin/repository/${repositoryRid}/deployed-version`, \"GET\");\n}","/*\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Get domains that have been successfully registered with the given repository. Visiting a successfully\n * registered domain should serve the registered repository assets.\n *\n * artifacts:sites:read-deployment-info permission is needed on the repository rid to call this endpoint.\n */\nexport async function getRegisteredSiteDomains(ctx, repositoryRid) {\n return conjureFetch(ctx, `/sites/v2/admin/repository/${repositoryRid}/domains/registered`, \"GET\");\n}","/*\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Get domains that have been requested for a given repository. For control panel domains that require\n * an approval, this will also include pending requests. Closed/rejected requests will only be included as long\n * as their domain hasn't been re-requested for another repository.\n *\n * artifacts:sites:read-deployment-info permission is needed on the repository rid to call this endpoint.\n */\nexport async function getRequestedSiteDomains(ctx, repositoryRid) {\n return conjureFetch(ctx, `/sites/v2/admin/repository/${repositoryRid}/domains/requested`, \"GET\");\n}","/*\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Preview what the CSP that will be served with the site looks like.\n *\n * artifacts:sites:read-deployment-info permission is needed on the repository rid to call this endpoint.\n */\nexport async function previewContentSecurityPolicy(ctx, repositoryRid, request) {\n return conjureFetch(ctx, `/sites/v2/admin/repository/${repositoryRid}/csp/preview`, \"POST\", request);\n}","/*\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Set the CSP additions configured for a repository.\n *\n * artifacts:sites:write-deployment-info permission is needed on the repository rid to call this endpoint.\n */\nexport async function putContentSecurityPolicyAdditions(ctx, repositoryRid, contentSecurityPolicyAdditions) {\n return conjureFetch(ctx, `/sites/v2/admin/repository/${repositoryRid}/csp/additions`, \"PUT\", contentSecurityPolicyAdditions);\n}","/*\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Requests the registration of a domain with the provided repository, this will result in an approvals task\n * getting created for approval by an admin.\n *\n * Once the task has been approved, visiting the domain will serve the deployed version, if any is deployed.\n *\n * artifacts:sites:manage-domains permission is needed on the repository rid to call this endpoint.\n */\nexport async function requestSiteDomainForRepository(ctx, repositoryRid, request) {\n return conjureFetch(ctx, `/sites/v2/admin/repository/${repositoryRid}/domains/submit-registration`, \"POST\", request);\n}","/*\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Unregisters a domain from a repository, visiting the domain will no longer serve the repository assets.\n *\n * Depending on how the domain for the repository was setup, this might also result in deleting the domain\n * itself.\n *\n * artifacts:sites:manage-domains permission is needed on the repository rid to call this endpoint.\n */\nexport async function unregisterSiteDomain(ctx, repositoryRid, request) {\n return conjureFetch(ctx, `/sites/v2/admin/repository/${repositoryRid}/domains/unregister`, \"POST\", request);\n}","/*\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Sets the asset version of the siteasset repository that will be served.\n *\n * artifacts:sites:write-deployment-info permission is needed on the repository rid to call this endpoint.\n */\nexport async function updateDeployedVersion(ctx, repositoryRid, version) {\n return conjureFetch(ctx, `/sites/v2/admin/repository/${repositoryRid}/deployed-version`, \"PUT\", version);\n}","/*\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\nexport * as SiteAssetArtifactsService from \"./SiteAssetArtifactsService/index.mjs\";","/*\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\nexport { deleteSiteVersion } from \"./deleteSiteVersion.mjs\";\nexport { fetchSiteVersions } from \"./fetchSiteVersions.mjs\";\nexport { uploadZippedSiteAsset } from \"./uploadSiteVersion.mjs\";","/*\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 { ExitProcessError } from \"../../../ExitProcessError.js\";\nimport { createFetch } from \"../../createFetch.mjs\";\nimport { fetchWebsiteRepositoryRid } from \"../../third-party-application-service/fetchWebsiteRepositoryRid.mjs\";\nimport { getSiteAssetBaseUrl } from \"./getSiteAssetBaseUrl.mjs\";\nexport async function deleteSiteVersion(ctx, request) {\n const repositoryRid = await fetchWebsiteRepositoryRid(ctx, request.application);\n const url = `${getSiteAssetBaseUrl(ctx.foundryUrl, repositoryRid)}/versions/${request.version}`;\n const fetch = createFetch(ctx.tokenProvider);\n const result = await fetch(url, {\n method: \"DELETE\"\n });\n if (result.status >= 200 && result.status < 300) {\n consola.debug(`${result.status} - Status Text: '${result.statusText}'`);\n return true;\n } else {\n throw new ExitProcessError(result.status, `Unexpected response code ${result.status} (${result.statusText})`);\n }\n}","/*\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 { createFetchHeaderMutator, createFetchOrThrow, PalantirApiError } from \"@osdk/shared.net\";\nimport { consola } from \"consola\";\nimport { ExitProcessError } from \"../ExitProcessError.js\";\nimport { USER_AGENT } from \"./UserAgent.js\";\nexport function createFetch(tokenProvider, fetchFn = fetch) {\n return createFetchHeaderMutator(createRequestLoggingFetch(createErrorExitingFetch(createFetchOrThrow(fetchFn))), async headers => {\n const token = await tokenProvider();\n headers.set(\"Authorization\", `Bearer ${token}`);\n headers.set(\"Fetch-User-Agent\", USER_AGENT);\n return headers;\n });\n}\nfunction createErrorExitingFetch(fetchFn = fetch) {\n return function errorExitingFetch(input, init) {\n return fetchFn(input, init).catch(handleFetchError);\n };\n}\nfunction handleFetchError(e) {\n if (!(e instanceof PalantirApiError)) {\n throw new ExitProcessError(1, \"Unexpected fetch error\");\n }\n let tip;\n if (e.statusCode === 401) {\n tip = \"Check your token is valid and has not expired or been disabled\";\n } else if (e.statusCode === 403) {\n tip = \"Check your token has the required scopes for this operation\";\n }\n let message = e.message;\n if (e.errorName === \"Artifacts:ArtifactAlreadyExists\") {\n message = \"Version already exists\";\n }\n throw new ExitProcessError(1, message, tip);\n}\nfunction createRequestLoggingFetch(fetchFn = fetch) {\n return function requestLoggingFetch(input, init) {\n const requestLog = typeof input === \"string\" || input instanceof URL ? `${init?.method ?? \"GET\"}: ${input.toString().trim()}` : `${input.method ?? \"GET\"}: ${input.url.toString().trim()}`;\n consola.trace(requestLog);\n return fetchFn(input, init).then(a => {\n consola.trace(`FINISH ${requestLog}`);\n return a;\n });\n };\n}","/*\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\nexport const USER_AGENT = `osdk-cli/${process.env.PACKAGE_VERSION}`;","/*\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 { ExitProcessError } from \"../../ExitProcessError.js\";\nimport { createFetch } from \"../createFetch.mjs\";\nexport async function fetchWebsiteRepositoryRid(ctx, thirdPartyAppRid) {\n const fetch = createFetch(ctx.tokenProvider);\n const url = `\n ${ctx.foundryUrl}/third-party-application-service/api/application-websites/${thirdPartyAppRid}`;\n const result = await fetch(url);\n if (result.status >= 200 && result.status < 300) {\n const repositoryRid = await result.json();\n consola.debug(`Repository RID: ${repositoryRid}`);\n return repositoryRid;\n }\n throw new ExitProcessError(result.status, `Unexpected response code ${result.status} (${result.statusText})`);\n}","/*\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\nexport function getSiteAssetBaseUrl(foundryBaseUrl, repositoryRid) {\n return `${foundryBaseUrl}/artifacts/api/repositories/${repositoryRid}/contents/release/siteasset`;\n}","/*\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 { ExitProcessError } from \"../../../ExitProcessError.js\";\nimport { createFetch } from \"../../createFetch.mjs\";\nimport { fetchWebsiteRepositoryRid } from \"../../third-party-application-service/fetchWebsiteRepositoryRid.mjs\";\nimport { getSiteAssetBaseUrl } from \"./getSiteAssetBaseUrl.mjs\";\nexport async function fetchSiteVersions(ctx, thirdPartyAppRid) {\n const repositoryRid = await fetchWebsiteRepositoryRid(ctx, thirdPartyAppRid);\n const url = `${getSiteAssetBaseUrl(ctx.foundryUrl, repositoryRid)}/versions`;\n const fetch = createFetch(ctx.tokenProvider);\n const result = await fetch(url);\n if (result.status === 200) {\n const response = await result.json();\n return response.versions;\n } else {\n throw new ExitProcessError(result.status, `Unexpected response code ${result.status} (${result.statusText})`);\n }\n}","/*\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 { ExitProcessError } from \"../../../ExitProcessError.js\";\nimport { createFetch } from \"../../createFetch.mjs\";\nimport { fetchWebsiteRepositoryRid } from \"../../third-party-application-service/fetchWebsiteRepositoryRid.mjs\";\nimport { getSiteAssetBaseUrl } from \"./getSiteAssetBaseUrl.mjs\";\nexport async function uploadZippedSiteAsset(ctx, request) {\n const repositoryRid = await fetchWebsiteRepositoryRid(ctx, request.application);\n const url = `${getSiteAssetBaseUrl(ctx.foundryUrl, repositoryRid)}/versions/zip/${request.version}`;\n const fetch = createFetch(ctx.tokenProvider);\n const result = await fetch(url, {\n method: \"PUT\",\n body: request.zipFile,\n headers: {\n \"Content-Type\": \"application/octet-stream\"\n },\n duplex: \"half\" // Node hates me\n });\n if (result.status >= 200 && result.status < 300) {\n consola.debug(\"Status Text: \" + result.statusText);\n return true;\n } else if (result.status === 409) {\n throw new ExitProcessError(result.status, \"Version already exists\");\n } else {\n throw new ExitProcessError(result.status, `Unexpected response code ${result.status} (${result.statusText})`);\n }\n}","/*\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 { createFetch } from \"./createFetch.mjs\";\nexport function createConjureContext(foundryUrl, servicePath, tokenProvider) {\n return {\n fetchFn: createFetch(tokenProvider),\n baseUrl: foundryUrl,\n servicePath\n };\n}","/*\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\nexport function createInternalClientContext(foundryUrl, tokenProvider) {\n return {\n tokenProvider,\n foundryUrl\n };\n}","/*\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\nexport { fetchWebsiteRepositoryRid } from \"./fetchWebsiteRepositoryRid.mjs\";","/*\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 { promises as fsPromises } from \"node:fs\";\nimport path from \"node:path\";\nimport { ExitProcessError } from \"../ExitProcessError.js\";\nconst TOKEN_ENV_VARS = [\"FOUNDRY_TOKEN\", \"FOUNDRY_SDK_AUTH_TOKEN\"];\n\n/**\n * Loads a JWT Auth Token from an argument, a file, or environment variable returning the first found.\n * @param token The token as a string.\n * @param tokenFile The path to the token file.\n * @returns The token as a string.\n * @throws An error if no token is found.\n */\nexport async function loadToken(token, tokenFile) {\n if (token) {\n consola.debug(`Using token from --token option`);\n validate(token);\n return token;\n }\n if (tokenFile) {\n const loadedToken = await loadTokenFile(tokenFile);\n consola.debug(`Using token from --tokenFile=${loadedToken.filePath} option`);\n validate(loadedToken.token);\n return loadedToken.token;\n }\n for (const envVar of TOKEN_ENV_VARS) {\n const environmentToken = process.env[envVar];\n if (environmentToken) {\n consola.debug(`Using token from ${envVar} environment variable`);\n validate(environmentToken);\n if (envVar === \"FOUNDRY_SDK_AUTH_TOKEN\") {\n consola.warn(`Using FOUNDRY_SDK_AUTH_TOKEN environment variable is deprecated. Please use FOUNDRY_TOKEN instead.`);\n }\n return environmentToken;\n }\n }\n throw new ExitProcessError(2, `No token found.`, `You can supply a --token or --token-file option, or set the ${TOKEN_ENV_VARS[0]} environment variable`);\n}\n/**\n * Reads a JWT Auth Token from a file.\n * @param filePath The path to the token file.\n * @returns The token as a string.\n * @throws An error if the file cannot be read.\n */\nexport async function loadTokenFile(filePath) {\n let token;\n let resolvedPath;\n try {\n resolvedPath = path.resolve(filePath);\n token = await fsPromises.readFile(resolvedPath, \"utf8\");\n token = token.trim();\n } catch (error) {\n throw new ExitProcessError(2, `Unable to read token file \"${filePath}\": ${error}`);\n }\n return {\n filePath: resolvedPath,\n token\n };\n}\nexport function validate(token) {\n if (!isJWT(token)) {\n throw new ExitProcessError(2, `Token does not appear to be a JWT`);\n }\n}\nfunction isJWT(token) {\n // https://stackoverflow.com/a/65755789\n const jwtPattern = /^[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]*$/;\n return jwtPattern.test(token);\n}"]}
@@ -1,267 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkHZ3XILMW_cjs = require('./chunk-HZ3XILMW.cjs');
4
- var chunkHQDDGVB7_cjs = require('./chunk-HQDDGVB7.cjs');
5
- var conjureLite = require('conjure-lite');
6
- var consola = require('consola');
7
- var shared_net = require('@osdk/shared.net');
8
- var fs = require('fs');
9
- var path = require('path');
10
-
11
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
12
-
13
- var path__default = /*#__PURE__*/_interopDefault(path);
14
-
15
- // src/generated/artifacts-sites/ArtifactsSitesAdminV2Service.ts
16
- var ArtifactsSitesAdminV2Service_exports = {};
17
- chunkHQDDGVB7_cjs.__export(ArtifactsSitesAdminV2Service_exports, {
18
- clearDeployedVersion: () => clearDeployedVersion,
19
- getContentSecurityPolicyAdditions: () => getContentSecurityPolicyAdditions,
20
- getDeployedVersion: () => getDeployedVersion,
21
- getRegisteredSiteDomains: () => getRegisteredSiteDomains,
22
- getRequestedSiteDomains: () => getRequestedSiteDomains,
23
- previewContentSecurityPolicy: () => previewContentSecurityPolicy,
24
- putContentSecurityPolicyAdditions: () => putContentSecurityPolicyAdditions,
25
- requestSiteDomainForRepository: () => requestSiteDomainForRepository,
26
- unregisterSiteDomain: () => unregisterSiteDomain,
27
- updateDeployedVersion: () => updateDeployedVersion
28
- });
29
- async function clearDeployedVersion(ctx, repositoryRid) {
30
- return conjureLite.conjureFetch(ctx, `/sites/v2/admin/repository/${repositoryRid}/deployed-version`, "DELETE");
31
- }
32
- async function getContentSecurityPolicyAdditions(ctx, repositoryRid) {
33
- return conjureLite.conjureFetch(ctx, `/sites/v2/admin/repository/${repositoryRid}/csp/additions`, "GET");
34
- }
35
- async function getDeployedVersion(ctx, repositoryRid) {
36
- return conjureLite.conjureFetch(ctx, `/sites/v2/admin/repository/${repositoryRid}/deployed-version`, "GET");
37
- }
38
- async function getRegisteredSiteDomains(ctx, repositoryRid) {
39
- return conjureLite.conjureFetch(ctx, `/sites/v2/admin/repository/${repositoryRid}/domains/registered`, "GET");
40
- }
41
- async function getRequestedSiteDomains(ctx, repositoryRid) {
42
- return conjureLite.conjureFetch(ctx, `/sites/v2/admin/repository/${repositoryRid}/domains/requested`, "GET");
43
- }
44
- async function previewContentSecurityPolicy(ctx, repositoryRid, request) {
45
- return conjureLite.conjureFetch(ctx, `/sites/v2/admin/repository/${repositoryRid}/csp/preview`, "POST", request);
46
- }
47
- async function putContentSecurityPolicyAdditions(ctx, repositoryRid, contentSecurityPolicyAdditions) {
48
- return conjureLite.conjureFetch(ctx, `/sites/v2/admin/repository/${repositoryRid}/csp/additions`, "PUT", contentSecurityPolicyAdditions);
49
- }
50
- async function requestSiteDomainForRepository(ctx, repositoryRid, request) {
51
- return conjureLite.conjureFetch(ctx, `/sites/v2/admin/repository/${repositoryRid}/domains/submit-registration`, "POST", request);
52
- }
53
- async function unregisterSiteDomain(ctx, repositoryRid, request) {
54
- return conjureLite.conjureFetch(ctx, `/sites/v2/admin/repository/${repositoryRid}/domains/unregister`, "POST", request);
55
- }
56
- async function updateDeployedVersion(ctx, repositoryRid, version) {
57
- return conjureLite.conjureFetch(ctx, `/sites/v2/admin/repository/${repositoryRid}/deployed-version`, "PUT", version);
58
- }
59
-
60
- // src/net/artifacts/index.mts
61
- var artifacts_exports = {};
62
- chunkHQDDGVB7_cjs.__export(artifacts_exports, {
63
- SiteAssetArtifactsService: () => SiteAssetArtifactsService_exports
64
- });
65
-
66
- // src/net/artifacts/SiteAssetArtifactsService/index.mts
67
- var SiteAssetArtifactsService_exports = {};
68
- chunkHQDDGVB7_cjs.__export(SiteAssetArtifactsService_exports, {
69
- deleteSiteVersion: () => deleteSiteVersion,
70
- fetchSiteVersions: () => fetchSiteVersions,
71
- uploadZippedSiteAsset: () => uploadZippedSiteAsset
72
- });
73
-
74
- // src/net/UserAgent.ts
75
- var USER_AGENT = `osdk-cli/${"0.15.0"}`;
76
-
77
- // src/net/createFetch.mts
78
- function createFetch(tokenProvider, fetchFn = fetch) {
79
- return shared_net.createFetchHeaderMutator(createRequestLoggingFetch(createErrorExitingFetch(shared_net.createFetchOrThrow(fetchFn))), async (headers) => {
80
- const token = await tokenProvider();
81
- headers.set("Authorization", `Bearer ${token}`);
82
- headers.set("Fetch-User-Agent", USER_AGENT);
83
- return headers;
84
- });
85
- }
86
- function createErrorExitingFetch(fetchFn = fetch) {
87
- return function errorExitingFetch(input, init) {
88
- return fetchFn(input, init).catch(handleFetchError);
89
- };
90
- }
91
- function handleFetchError(e) {
92
- if (!(e instanceof shared_net.PalantirApiError)) {
93
- throw new chunkHZ3XILMW_cjs.ExitProcessError(1, "Unexpected fetch error");
94
- }
95
- let tip;
96
- if (e.statusCode === 401) {
97
- tip = "Check your token is valid and has not expired or been disabled";
98
- } else if (e.statusCode === 403) {
99
- tip = "Check your token has the required scopes for this operation";
100
- }
101
- let message = e.message;
102
- if (e.errorName === "Artifacts:ArtifactAlreadyExists") {
103
- message = "Version already exists";
104
- }
105
- throw new chunkHZ3XILMW_cjs.ExitProcessError(1, message, tip);
106
- }
107
- function createRequestLoggingFetch(fetchFn = fetch) {
108
- return function requestLoggingFetch(input, init) {
109
- const requestLog = typeof input === "string" || input instanceof URL ? `${init?.method ?? "GET"}: ${input.toString().trim()}` : `${input.method ?? "GET"}: ${input.url.toString().trim()}`;
110
- consola.consola.trace(requestLog);
111
- return fetchFn(input, init).then((a) => {
112
- consola.consola.trace(`FINISH ${requestLog}`);
113
- return a;
114
- });
115
- };
116
- }
117
- async function fetchWebsiteRepositoryRid(ctx, thirdPartyAppRid) {
118
- const fetch2 = createFetch(ctx.tokenProvider);
119
- const url = `
120
- ${ctx.foundryUrl}/third-party-application-service/api/application-websites/${thirdPartyAppRid}`;
121
- const result = await fetch2(url);
122
- if (result.status >= 200 && result.status < 300) {
123
- const repositoryRid = await result.json();
124
- consola.consola.debug(`Repository RID: ${repositoryRid}`);
125
- return repositoryRid;
126
- }
127
- throw new chunkHZ3XILMW_cjs.ExitProcessError(result.status, `Unexpected response code ${result.status} (${result.statusText})`);
128
- }
129
-
130
- // src/net/artifacts/SiteAssetArtifactsService/getSiteAssetBaseUrl.mts
131
- function getSiteAssetBaseUrl(foundryBaseUrl, repositoryRid) {
132
- return `${foundryBaseUrl}/artifacts/api/repositories/${repositoryRid}/contents/release/siteasset`;
133
- }
134
-
135
- // src/net/artifacts/SiteAssetArtifactsService/deleteSiteVersion.mts
136
- async function deleteSiteVersion(ctx, request) {
137
- const repositoryRid = await fetchWebsiteRepositoryRid(ctx, request.application);
138
- const url = `${getSiteAssetBaseUrl(ctx.foundryUrl, repositoryRid)}/versions/${request.version}`;
139
- const fetch2 = createFetch(ctx.tokenProvider);
140
- const result = await fetch2(url, {
141
- method: "DELETE"
142
- });
143
- if (result.status >= 200 && result.status < 300) {
144
- consola.consola.debug(`${result.status} - Status Text: '${result.statusText}'`);
145
- return true;
146
- } else {
147
- throw new chunkHZ3XILMW_cjs.ExitProcessError(result.status, `Unexpected response code ${result.status} (${result.statusText})`);
148
- }
149
- }
150
-
151
- // src/net/artifacts/SiteAssetArtifactsService/fetchSiteVersions.mts
152
- async function fetchSiteVersions(ctx, thirdPartyAppRid) {
153
- const repositoryRid = await fetchWebsiteRepositoryRid(ctx, thirdPartyAppRid);
154
- const url = `${getSiteAssetBaseUrl(ctx.foundryUrl, repositoryRid)}/versions`;
155
- const fetch2 = createFetch(ctx.tokenProvider);
156
- const result = await fetch2(url);
157
- if (result.status === 200) {
158
- const response = await result.json();
159
- return response.versions;
160
- } else {
161
- throw new chunkHZ3XILMW_cjs.ExitProcessError(result.status, `Unexpected response code ${result.status} (${result.statusText})`);
162
- }
163
- }
164
- async function uploadZippedSiteAsset(ctx, request) {
165
- const repositoryRid = await fetchWebsiteRepositoryRid(ctx, request.application);
166
- const url = `${getSiteAssetBaseUrl(ctx.foundryUrl, repositoryRid)}/versions/zip/${request.version}`;
167
- const fetch2 = createFetch(ctx.tokenProvider);
168
- const result = await fetch2(url, {
169
- method: "PUT",
170
- body: request.zipFile,
171
- headers: {
172
- "Content-Type": "application/octet-stream"
173
- },
174
- duplex: "half"
175
- // Node hates me
176
- });
177
- if (result.status >= 200 && result.status < 300) {
178
- consola.consola.debug("Status Text: " + result.statusText);
179
- return true;
180
- } else if (result.status === 409) {
181
- throw new chunkHZ3XILMW_cjs.ExitProcessError(result.status, "Version already exists");
182
- } else {
183
- throw new chunkHZ3XILMW_cjs.ExitProcessError(result.status, `Unexpected response code ${result.status} (${result.statusText})`);
184
- }
185
- }
186
-
187
- // src/net/createConjureContext.mts
188
- function createConjureContext(foundryUrl, servicePath, tokenProvider) {
189
- return {
190
- fetchFn: createFetch(tokenProvider),
191
- baseUrl: foundryUrl,
192
- servicePath
193
- };
194
- }
195
-
196
- // src/net/createInternalClientContext.mts
197
- function createInternalClientContext(foundryUrl, tokenProvider) {
198
- return {
199
- tokenProvider,
200
- foundryUrl
201
- };
202
- }
203
-
204
- // src/net/third-party-application-service/index.mts
205
- var third_party_application_service_exports = {};
206
- chunkHQDDGVB7_cjs.__export(third_party_application_service_exports, {
207
- fetchWebsiteRepositoryRid: () => fetchWebsiteRepositoryRid
208
- });
209
- var TOKEN_ENV_VARS = ["FOUNDRY_TOKEN", "FOUNDRY_SDK_AUTH_TOKEN"];
210
- async function loadToken(token, tokenFile) {
211
- if (token) {
212
- consola.consola.debug(`Using token from --token option`);
213
- validate(token);
214
- return token;
215
- }
216
- if (tokenFile) {
217
- const loadedToken = await loadTokenFile(tokenFile);
218
- consola.consola.debug(`Using token from --tokenFile=${loadedToken.filePath} option`);
219
- validate(loadedToken.token);
220
- return loadedToken.token;
221
- }
222
- for (const envVar of TOKEN_ENV_VARS) {
223
- const environmentToken = process.env[envVar];
224
- if (environmentToken) {
225
- consola.consola.debug(`Using token from ${envVar} environment variable`);
226
- validate(environmentToken);
227
- if (envVar === "FOUNDRY_SDK_AUTH_TOKEN") {
228
- consola.consola.warn(`Using FOUNDRY_SDK_AUTH_TOKEN environment variable is deprecated. Please use FOUNDRY_TOKEN instead.`);
229
- }
230
- return environmentToken;
231
- }
232
- }
233
- throw new chunkHZ3XILMW_cjs.ExitProcessError(2, `No token found.`, `You can supply a --token or --token-file option, or set the ${TOKEN_ENV_VARS[0]} environment variable`);
234
- }
235
- async function loadTokenFile(filePath) {
236
- let token;
237
- let resolvedPath;
238
- try {
239
- resolvedPath = path__default.default.resolve(filePath);
240
- token = await fs.promises.readFile(resolvedPath, "utf8");
241
- token = token.trim();
242
- } catch (error) {
243
- throw new chunkHZ3XILMW_cjs.ExitProcessError(2, `Unable to read token file "${filePath}": ${error}`);
244
- }
245
- return {
246
- filePath: resolvedPath,
247
- token
248
- };
249
- }
250
- function validate(token) {
251
- if (!isJWT(token)) {
252
- throw new chunkHZ3XILMW_cjs.ExitProcessError(2, `Token does not appear to be a JWT`);
253
- }
254
- }
255
- function isJWT(token) {
256
- const jwtPattern = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/;
257
- return jwtPattern.test(token);
258
- }
259
-
260
- exports.ArtifactsSitesAdminV2Service_exports = ArtifactsSitesAdminV2Service_exports;
261
- exports.artifacts_exports = artifacts_exports;
262
- exports.createConjureContext = createConjureContext;
263
- exports.createInternalClientContext = createInternalClientContext;
264
- exports.loadToken = loadToken;
265
- exports.third_party_application_service_exports = third_party_application_service_exports;
266
- //# sourceMappingURL=out.js.map
267
- //# sourceMappingURL=chunk-F6Y3FTY6.cjs.map