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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (420) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/build/browser/cli.d.ts +7 -0
  3. package/build/browser/cli.d.ts.map +1 -0
  4. package/build/browser/cli.js +42 -0
  5. package/build/browser/cli.js.map +1 -0
  6. package/build/browser/commands/auth/index.d.ts +5 -0
  7. package/build/browser/commands/auth/index.d.ts.map +1 -0
  8. package/build/browser/commands/auth/index.js +34 -0
  9. package/build/browser/commands/auth/index.js.map +1 -0
  10. package/build/browser/commands/auth/login/index.d.ts +5 -0
  11. package/build/browser/commands/auth/login/index.d.ts.map +1 -0
  12. package/build/browser/commands/auth/login/index.js +34 -0
  13. package/build/browser/commands/auth/login/index.js.map +1 -0
  14. package/build/browser/commands/site/CommonSiteArgs.d.ts +9 -0
  15. package/build/browser/commands/site/CommonSiteArgs.d.ts.map +1 -0
  16. package/build/browser/commands/site/CommonSiteArgs.js +17 -0
  17. package/build/browser/commands/site/CommonSiteArgs.js.map +1 -0
  18. package/build/browser/commands/site/deploy/SiteDeployArgs.d.ts +10 -0
  19. package/build/browser/commands/site/deploy/SiteDeployArgs.d.ts.map +1 -0
  20. package/build/browser/commands/site/deploy/SiteDeployArgs.js +17 -0
  21. package/build/browser/commands/site/deploy/SiteDeployArgs.js.map +1 -0
  22. package/build/browser/commands/site/deploy/index.d.ts +6 -0
  23. package/build/browser/commands/site/deploy/index.d.ts.map +1 -0
  24. package/build/browser/commands/site/deploy/index.js +108 -0
  25. package/build/browser/commands/site/deploy/index.js.map +1 -0
  26. package/build/browser/commands/site/deploy/logDeployCommandConfigFileOverride.d.ts +5 -0
  27. package/build/browser/commands/site/deploy/logDeployCommandConfigFileOverride.d.ts.map +1 -0
  28. package/build/browser/commands/site/deploy/logDeployCommandConfigFileOverride.js +28 -0
  29. package/build/browser/commands/site/deploy/logDeployCommandConfigFileOverride.js.map +1 -0
  30. package/build/browser/commands/site/deploy/siteDeployCommand.d.mts +10 -0
  31. package/build/browser/commands/site/deploy/siteDeployCommand.d.mts.map +1 -0
  32. package/build/browser/commands/site/deploy/siteDeployCommand.js +98 -0
  33. package/build/browser/commands/site/deploy/siteDeployCommand.js.map +1 -0
  34. package/build/browser/commands/site/deploy/siteDeployCommand.mjs +90 -0
  35. package/build/browser/commands/site/index.d.ts +6 -0
  36. package/build/browser/commands/site/index.d.ts.map +1 -0
  37. package/build/browser/commands/site/index.js +69 -0
  38. package/build/browser/commands/site/index.js.map +1 -0
  39. package/build/browser/commands/site/logSiteCommandConfigFileOverride.d.ts +5 -0
  40. package/build/browser/commands/site/logSiteCommandConfigFileOverride.d.ts.map +1 -0
  41. package/build/browser/commands/site/logSiteCommandConfigFileOverride.js +25 -0
  42. package/build/browser/commands/site/logSiteCommandConfigFileOverride.js.map +1 -0
  43. package/build/browser/commands/site/version/delete/VersionDeleteArgs.d.ts +6 -0
  44. package/build/browser/commands/site/version/delete/VersionDeleteArgs.d.ts.map +1 -0
  45. package/build/browser/commands/site/version/delete/VersionDeleteArgs.js +17 -0
  46. package/build/browser/commands/site/version/delete/VersionDeleteArgs.js.map +1 -0
  47. package/build/browser/commands/site/version/delete/index.d.ts +6 -0
  48. package/build/browser/commands/site/version/delete/index.d.ts.map +1 -0
  49. package/build/browser/commands/site/version/delete/index.js +36 -0
  50. package/build/browser/commands/site/version/delete/index.js.map +1 -0
  51. package/build/browser/commands/site/version/delete/versionDeleteCommand.d.mts +3 -0
  52. package/build/browser/commands/site/version/delete/versionDeleteCommand.d.mts.map +1 -0
  53. package/build/browser/commands/site/version/delete/versionDeleteCommand.js +41 -0
  54. package/build/browser/commands/site/version/delete/versionDeleteCommand.js.map +1 -0
  55. package/build/browser/commands/site/version/delete/versionDeleteCommand.mjs +32 -0
  56. package/build/browser/commands/site/version/get/VersionGetArgs.d.ts +4 -0
  57. package/build/browser/commands/site/version/get/VersionGetArgs.d.ts.map +1 -0
  58. package/build/browser/commands/site/version/get/VersionGetArgs.js +17 -0
  59. package/build/browser/commands/site/version/get/VersionGetArgs.js.map +1 -0
  60. package/build/browser/commands/site/version/get/index.d.ts +6 -0
  61. package/build/browser/commands/site/version/get/index.d.ts.map +1 -0
  62. package/build/browser/commands/site/version/get/index.js +28 -0
  63. package/build/browser/commands/site/version/get/index.js.map +1 -0
  64. package/build/browser/commands/site/version/get/versionGetCommand.d.mts +3 -0
  65. package/build/browser/commands/site/version/get/versionGetCommand.d.mts.map +1 -0
  66. package/build/browser/commands/site/version/get/versionGetCommand.js +36 -0
  67. package/build/browser/commands/site/version/get/versionGetCommand.js.map +1 -0
  68. package/build/browser/commands/site/version/get/versionGetCommand.mjs +32 -0
  69. package/build/browser/commands/site/version/index.d.ts +5 -0
  70. package/build/browser/commands/site/version/index.d.ts.map +1 -0
  71. package/build/browser/commands/site/version/index.js +30 -0
  72. package/build/browser/commands/site/version/index.js.map +1 -0
  73. package/build/browser/commands/site/version/list/VersionListArgs.d.ts +4 -0
  74. package/build/browser/commands/site/version/list/VersionListArgs.d.ts.map +1 -0
  75. package/build/browser/commands/site/version/list/VersionListArgs.js +17 -0
  76. package/build/browser/commands/site/version/list/VersionListArgs.js.map +1 -0
  77. package/build/browser/commands/site/version/list/index.d.ts +6 -0
  78. package/build/browser/commands/site/version/list/index.d.ts.map +1 -0
  79. package/build/browser/commands/site/version/list/index.js +28 -0
  80. package/build/browser/commands/site/version/list/index.js.map +1 -0
  81. package/build/browser/commands/site/version/list/versionListCommand.d.mts +3 -0
  82. package/build/browser/commands/site/version/list/versionListCommand.d.mts.map +1 -0
  83. package/build/browser/commands/site/version/list/versionListCommand.js +41 -0
  84. package/build/browser/commands/site/version/list/versionListCommand.js.map +1 -0
  85. package/build/browser/commands/site/version/list/versionListCommand.mjs +42 -0
  86. package/build/browser/commands/site/version/set/VersionSetArgs.d.ts +5 -0
  87. package/build/browser/commands/site/version/set/VersionSetArgs.d.ts.map +1 -0
  88. package/build/browser/commands/site/version/set/VersionSetArgs.js +17 -0
  89. package/build/browser/commands/site/version/set/VersionSetArgs.js.map +1 -0
  90. package/build/browser/commands/site/version/set/index.d.ts +6 -0
  91. package/build/browser/commands/site/version/set/index.d.ts.map +1 -0
  92. package/build/browser/commands/site/version/set/index.js +32 -0
  93. package/build/browser/commands/site/version/set/index.js.map +1 -0
  94. package/build/browser/commands/site/version/set/versionSetCommand.d.mts +3 -0
  95. package/build/browser/commands/site/version/set/versionSetCommand.d.mts.map +1 -0
  96. package/build/browser/commands/site/version/set/versionSetCommand.js +36 -0
  97. package/build/browser/commands/site/version/set/versionSetCommand.js.map +1 -0
  98. package/build/browser/commands/site/version/set/versionSetCommand.mjs +28 -0
  99. package/build/browser/commands/site/version/unset/VersionUnsetArgs.d.ts +5 -0
  100. package/build/browser/commands/site/version/unset/VersionUnsetArgs.d.ts.map +1 -0
  101. package/build/browser/commands/site/version/unset/VersionUnsetArgs.js +17 -0
  102. package/build/browser/commands/site/version/unset/VersionUnsetArgs.js.map +1 -0
  103. package/build/browser/commands/site/version/unset/index.d.ts +6 -0
  104. package/build/browser/commands/site/version/unset/index.d.ts.map +1 -0
  105. package/build/browser/commands/site/version/unset/index.js +32 -0
  106. package/build/browser/commands/site/version/unset/index.js.map +1 -0
  107. package/build/browser/commands/site/version/unset/versionUnsetCommand.d.mts +3 -0
  108. package/build/browser/commands/site/version/unset/versionUnsetCommand.d.mts.map +1 -0
  109. package/build/browser/commands/site/version/unset/versionUnsetCommand.js +40 -0
  110. package/build/browser/commands/site/version/unset/versionUnsetCommand.js.map +1 -0
  111. package/build/browser/commands/site/version/unset/versionUnsetCommand.mjs +32 -0
  112. package/build/browser/consola/handlePromptCancel.d.ts +2 -0
  113. package/build/browser/consola/handlePromptCancel.d.ts.map +1 -0
  114. package/build/browser/consola/handlePromptCancel.js +25 -0
  115. package/build/browser/consola/handlePromptCancel.js.map +1 -0
  116. package/build/browser/index.d.ts +2 -0
  117. package/build/browser/index.d.ts.map +1 -0
  118. package/build/browser/index.js +16 -588
  119. package/build/browser/index.js.map +1 -1
  120. package/build/browser/net/ThirdPartyAppRid.d.ts +2 -0
  121. package/build/browser/net/ThirdPartyAppRid.d.ts.map +1 -0
  122. package/build/browser/net/ThirdPartyAppRid.js +17 -0
  123. package/build/browser/net/ThirdPartyAppRid.js.map +1 -0
  124. package/build/browser/net/UserAgent.d.ts +2 -0
  125. package/build/browser/net/UserAgent.d.ts.map +1 -0
  126. package/build/browser/net/UserAgent.js +17 -0
  127. package/build/browser/net/UserAgent.js.map +1 -0
  128. package/build/browser/net/createFetch.d.mts +2 -0
  129. package/build/browser/net/createFetch.d.mts.map +1 -0
  130. package/build/browser/net/createFetch.js +66 -0
  131. package/build/browser/net/createFetch.js.map +1 -0
  132. package/build/browser/net/createFetch.mjs +71 -0
  133. package/build/browser/net/createInternalClientContext.d.mts +3 -0
  134. package/build/browser/net/createInternalClientContext.d.mts.map +1 -0
  135. package/build/browser/net/createInternalClientContext.js +22 -0
  136. package/build/browser/net/createInternalClientContext.js.map +1 -0
  137. package/build/browser/net/createInternalClientContext.mjs +21 -0
  138. package/build/browser/net/index.d.mts +3 -0
  139. package/build/browser/net/index.d.mts.map +1 -0
  140. package/build/browser/net/index.js +18 -0
  141. package/build/browser/net/index.js.map +1 -0
  142. package/build/browser/net/index.mjs +17 -0
  143. package/build/browser/net/internalClientContext.d.mts +5 -0
  144. package/build/browser/net/internalClientContext.d.mts.map +1 -0
  145. package/build/browser/net/internalClientContext.js +17 -0
  146. package/build/browser/net/internalClientContext.js.map +1 -0
  147. package/build/browser/net/internalClientContext.mjs +16 -0
  148. package/build/browser/net/third-party-applications/DeployWebsiteRequest.d.mts +4 -0
  149. package/build/browser/net/third-party-applications/DeployWebsiteRequest.d.mts.map +1 -0
  150. package/build/browser/net/third-party-applications/DeployWebsiteRequest.js +17 -0
  151. package/build/browser/net/third-party-applications/DeployWebsiteRequest.js.map +1 -0
  152. package/build/browser/net/third-party-applications/DeployWebsiteRequest.mjs +16 -0
  153. package/build/browser/net/third-party-applications/ListVersionsResponse.d.mts +6 -0
  154. package/build/browser/net/third-party-applications/ListVersionsResponse.d.mts.map +1 -0
  155. package/build/browser/net/third-party-applications/ListVersionsResponse.js +17 -0
  156. package/build/browser/net/third-party-applications/ListVersionsResponse.js.map +1 -0
  157. package/build/browser/net/third-party-applications/ListVersionsResponse.mjs +16 -0
  158. package/build/browser/net/third-party-applications/Version.d.mts +4 -0
  159. package/build/browser/net/third-party-applications/Version.d.mts.map +1 -0
  160. package/build/browser/net/third-party-applications/Version.js +17 -0
  161. package/build/browser/net/third-party-applications/Version.js.map +1 -0
  162. package/build/browser/net/third-party-applications/Version.mjs +16 -0
  163. package/build/browser/net/third-party-applications/Website.d.mts +5 -0
  164. package/build/browser/net/third-party-applications/Website.d.mts.map +1 -0
  165. package/build/browser/net/third-party-applications/Website.js +17 -0
  166. package/build/browser/net/third-party-applications/Website.js.map +1 -0
  167. package/build/browser/net/third-party-applications/Website.mjs +16 -0
  168. package/build/browser/net/third-party-applications/deleteVersion.d.mts +4 -0
  169. package/build/browser/net/third-party-applications/deleteVersion.d.mts.map +1 -0
  170. package/build/browser/net/third-party-applications/deleteVersion.js +24 -0
  171. package/build/browser/net/third-party-applications/deleteVersion.js.map +1 -0
  172. package/build/browser/net/third-party-applications/deleteVersion.mjs +23 -0
  173. package/build/browser/net/third-party-applications/deployWebsite.d.mts +6 -0
  174. package/build/browser/net/third-party-applications/deployWebsite.d.mts.map +1 -0
  175. package/build/browser/net/third-party-applications/deployWebsite.js +29 -0
  176. package/build/browser/net/third-party-applications/deployWebsite.js.map +1 -0
  177. package/build/browser/net/third-party-applications/deployWebsite.mjs +28 -0
  178. package/build/browser/net/third-party-applications/getWebsite.d.mts +5 -0
  179. package/build/browser/net/third-party-applications/getWebsite.d.mts.map +1 -0
  180. package/build/browser/net/third-party-applications/getWebsite.js +33 -0
  181. package/build/browser/net/third-party-applications/getWebsite.js.map +1 -0
  182. package/build/browser/net/third-party-applications/getWebsite.mjs +35 -0
  183. package/build/browser/net/third-party-applications/index.d.mts +11 -0
  184. package/build/browser/net/third-party-applications/index.d.mts.map +1 -0
  185. package/build/browser/net/third-party-applications/index.js +22 -0
  186. package/build/browser/net/third-party-applications/index.js.map +1 -0
  187. package/build/browser/net/third-party-applications/index.mjs +21 -0
  188. package/build/browser/net/third-party-applications/listVersions.d.mts +5 -0
  189. package/build/browser/net/third-party-applications/listVersions.d.mts.map +1 -0
  190. package/build/browser/net/third-party-applications/listVersions.js +23 -0
  191. package/build/browser/net/third-party-applications/listVersions.js.map +1 -0
  192. package/build/browser/net/third-party-applications/listVersions.mjs +22 -0
  193. package/build/browser/net/third-party-applications/undeployWebsite.d.mts +4 -0
  194. package/build/browser/net/third-party-applications/undeployWebsite.d.mts.map +1 -0
  195. package/build/browser/net/third-party-applications/undeployWebsite.js +24 -0
  196. package/build/browser/net/third-party-applications/undeployWebsite.js.map +1 -0
  197. package/build/browser/net/third-party-applications/undeployWebsite.mjs +23 -0
  198. package/build/browser/net/third-party-applications/uploadVersion.d.mts +5 -0
  199. package/build/browser/net/third-party-applications/uploadVersion.d.mts.map +1 -0
  200. package/build/browser/net/third-party-applications/uploadVersion.js +30 -0
  201. package/build/browser/net/third-party-applications/uploadVersion.js.map +1 -0
  202. package/build/browser/net/third-party-applications/uploadVersion.mjs +29 -0
  203. package/build/browser/util/autoVersion.d.ts +9 -0
  204. package/build/browser/util/autoVersion.d.ts.map +1 -0
  205. package/build/browser/util/autoVersion.js +62 -0
  206. package/build/browser/util/autoVersion.js.map +1 -0
  207. package/build/browser/util/autoVersion.test.d.ts +2 -0
  208. package/build/browser/util/autoVersion.test.d.ts.map +1 -0
  209. package/build/browser/util/autoVersion.test.js +71 -0
  210. package/build/browser/util/autoVersion.test.js.map +1 -0
  211. package/build/browser/util/config.d.ts +26 -0
  212. package/build/browser/util/config.d.ts.map +1 -0
  213. package/build/browser/util/config.js +102 -0
  214. package/build/browser/util/config.js.map +1 -0
  215. package/build/browser/util/config.test.d.ts +2 -0
  216. package/build/browser/util/config.test.d.ts.map +1 -0
  217. package/build/browser/util/config.test.js +110 -0
  218. package/build/browser/util/config.test.js.map +1 -0
  219. package/build/browser/util/configLoader.d.ts +4 -0
  220. package/build/browser/util/configLoader.d.ts.map +1 -0
  221. package/build/browser/util/configLoader.js +25 -0
  222. package/build/browser/util/configLoader.js.map +1 -0
  223. package/build/browser/util/isValidSemver.test.d.ts +2 -0
  224. package/build/browser/util/isValidSemver.test.d.ts.map +1 -0
  225. package/build/browser/util/isValidSemver.test.js +41 -0
  226. package/build/browser/util/isValidSemver.test.js.map +1 -0
  227. package/build/browser/util/token.d.ts +22 -0
  228. package/build/browser/util/token.d.ts.map +1 -0
  229. package/build/browser/util/token.js +84 -0
  230. package/build/browser/util/token.js.map +1 -0
  231. package/build/browser/util/token.test.d.ts +2 -0
  232. package/build/browser/util/token.test.d.ts.map +1 -0
  233. package/build/browser/util/token.test.js +62 -0
  234. package/build/browser/util/token.test.js.map +1 -0
  235. package/build/browser/yargs/logConfigFileMiddleware.d.ts +2 -0
  236. package/build/browser/yargs/logConfigFileMiddleware.d.ts.map +1 -0
  237. package/build/browser/yargs/logConfigFileMiddleware.js +29 -0
  238. package/build/browser/yargs/logConfigFileMiddleware.js.map +1 -0
  239. package/build/esm/cli.js +42 -0
  240. package/build/esm/cli.js.map +1 -0
  241. package/build/esm/commands/auth/index.js +34 -0
  242. package/build/esm/commands/auth/index.js.map +1 -0
  243. package/build/esm/commands/auth/login/index.js +34 -0
  244. package/build/esm/commands/auth/login/index.js.map +1 -0
  245. package/build/esm/commands/site/CommonSiteArgs.js +17 -0
  246. package/build/esm/commands/site/CommonSiteArgs.js.map +1 -0
  247. package/build/esm/commands/site/deploy/SiteDeployArgs.js +17 -0
  248. package/build/esm/commands/site/deploy/SiteDeployArgs.js.map +1 -0
  249. package/build/esm/commands/site/deploy/index.js +108 -0
  250. package/build/esm/commands/site/deploy/index.js.map +1 -0
  251. package/build/esm/commands/site/deploy/logDeployCommandConfigFileOverride.js +28 -0
  252. package/build/esm/commands/site/deploy/logDeployCommandConfigFileOverride.js.map +1 -0
  253. package/build/esm/commands/site/deploy/siteDeployCommand.js +98 -0
  254. package/build/esm/commands/site/deploy/siteDeployCommand.js.map +1 -0
  255. package/build/esm/commands/site/deploy/siteDeployCommand.mjs +90 -0
  256. package/build/esm/commands/site/index.js +69 -0
  257. package/build/esm/commands/site/index.js.map +1 -0
  258. package/build/esm/commands/site/logSiteCommandConfigFileOverride.js +25 -0
  259. package/build/esm/commands/site/logSiteCommandConfigFileOverride.js.map +1 -0
  260. package/build/esm/commands/site/version/delete/VersionDeleteArgs.js +17 -0
  261. package/build/esm/commands/site/version/delete/VersionDeleteArgs.js.map +1 -0
  262. package/build/esm/commands/site/version/delete/index.js +36 -0
  263. package/build/esm/commands/site/version/delete/index.js.map +1 -0
  264. package/build/esm/commands/site/version/delete/versionDeleteCommand.js +41 -0
  265. package/build/esm/commands/site/version/delete/versionDeleteCommand.js.map +1 -0
  266. package/build/esm/commands/site/version/delete/versionDeleteCommand.mjs +32 -0
  267. package/build/esm/commands/site/version/get/VersionGetArgs.js +17 -0
  268. package/build/esm/commands/site/version/get/VersionGetArgs.js.map +1 -0
  269. package/build/esm/commands/site/version/get/index.js +28 -0
  270. package/build/esm/commands/site/version/get/index.js.map +1 -0
  271. package/build/esm/commands/site/version/get/versionGetCommand.js +36 -0
  272. package/build/esm/commands/site/version/get/versionGetCommand.js.map +1 -0
  273. package/build/esm/commands/site/version/get/versionGetCommand.mjs +32 -0
  274. package/build/esm/commands/site/version/index.js +30 -0
  275. package/build/esm/commands/site/version/index.js.map +1 -0
  276. package/build/esm/commands/site/version/list/VersionListArgs.js +17 -0
  277. package/build/esm/commands/site/version/list/VersionListArgs.js.map +1 -0
  278. package/build/esm/commands/site/version/list/index.js +28 -0
  279. package/build/esm/commands/site/version/list/index.js.map +1 -0
  280. package/build/esm/commands/site/version/list/versionListCommand.js +41 -0
  281. package/build/esm/commands/site/version/list/versionListCommand.js.map +1 -0
  282. package/build/esm/commands/site/version/list/versionListCommand.mjs +42 -0
  283. package/build/esm/commands/site/version/set/VersionSetArgs.js +17 -0
  284. package/build/esm/commands/site/version/set/VersionSetArgs.js.map +1 -0
  285. package/build/esm/commands/site/version/set/index.js +32 -0
  286. package/build/esm/commands/site/version/set/index.js.map +1 -0
  287. package/build/esm/commands/site/version/set/versionSetCommand.js +36 -0
  288. package/build/esm/commands/site/version/set/versionSetCommand.js.map +1 -0
  289. package/build/esm/commands/site/version/set/versionSetCommand.mjs +28 -0
  290. package/build/esm/commands/site/version/unset/VersionUnsetArgs.js +17 -0
  291. package/build/esm/commands/site/version/unset/VersionUnsetArgs.js.map +1 -0
  292. package/build/esm/commands/site/version/unset/index.js +32 -0
  293. package/build/esm/commands/site/version/unset/index.js.map +1 -0
  294. package/build/esm/commands/site/version/unset/versionUnsetCommand.js +40 -0
  295. package/build/esm/commands/site/version/unset/versionUnsetCommand.js.map +1 -0
  296. package/build/esm/commands/site/version/unset/versionUnsetCommand.mjs +32 -0
  297. package/build/esm/consola/handlePromptCancel.js +25 -0
  298. package/build/esm/consola/handlePromptCancel.js.map +1 -0
  299. package/build/esm/index.js +16 -588
  300. package/build/esm/index.js.map +1 -1
  301. package/build/esm/net/ThirdPartyAppRid.js +17 -0
  302. package/build/esm/net/ThirdPartyAppRid.js.map +1 -0
  303. package/build/esm/net/UserAgent.js +17 -0
  304. package/build/esm/net/UserAgent.js.map +1 -0
  305. package/build/esm/net/createFetch.js +66 -0
  306. package/build/esm/net/createFetch.js.map +1 -0
  307. package/build/esm/net/createFetch.mjs +71 -0
  308. package/build/esm/net/createInternalClientContext.js +22 -0
  309. package/build/esm/net/createInternalClientContext.js.map +1 -0
  310. package/build/esm/net/createInternalClientContext.mjs +21 -0
  311. package/build/esm/net/index.js +18 -0
  312. package/build/esm/net/index.js.map +1 -0
  313. package/build/esm/net/index.mjs +17 -0
  314. package/build/esm/net/internalClientContext.js +17 -0
  315. package/build/esm/net/internalClientContext.js.map +1 -0
  316. package/build/esm/net/internalClientContext.mjs +16 -0
  317. package/build/esm/net/third-party-applications/DeployWebsiteRequest.js +17 -0
  318. package/build/esm/net/third-party-applications/DeployWebsiteRequest.js.map +1 -0
  319. package/build/esm/net/third-party-applications/DeployWebsiteRequest.mjs +16 -0
  320. package/build/esm/net/third-party-applications/ListVersionsResponse.js +17 -0
  321. package/build/esm/net/third-party-applications/ListVersionsResponse.js.map +1 -0
  322. package/build/esm/net/third-party-applications/ListVersionsResponse.mjs +16 -0
  323. package/build/esm/net/third-party-applications/Version.js +17 -0
  324. package/build/esm/net/third-party-applications/Version.js.map +1 -0
  325. package/build/esm/net/third-party-applications/Version.mjs +16 -0
  326. package/build/esm/net/third-party-applications/Website.js +17 -0
  327. package/build/esm/net/third-party-applications/Website.js.map +1 -0
  328. package/build/esm/net/third-party-applications/Website.mjs +16 -0
  329. package/build/esm/net/third-party-applications/deleteVersion.js +24 -0
  330. package/build/esm/net/third-party-applications/deleteVersion.js.map +1 -0
  331. package/build/esm/net/third-party-applications/deleteVersion.mjs +23 -0
  332. package/build/esm/net/third-party-applications/deployWebsite.js +29 -0
  333. package/build/esm/net/third-party-applications/deployWebsite.js.map +1 -0
  334. package/build/esm/net/third-party-applications/deployWebsite.mjs +28 -0
  335. package/build/esm/net/third-party-applications/getWebsite.js +33 -0
  336. package/build/esm/net/third-party-applications/getWebsite.js.map +1 -0
  337. package/build/esm/net/third-party-applications/getWebsite.mjs +35 -0
  338. package/build/esm/net/third-party-applications/index.js +22 -0
  339. package/build/esm/net/third-party-applications/index.js.map +1 -0
  340. package/build/esm/net/third-party-applications/index.mjs +21 -0
  341. package/build/esm/net/third-party-applications/listVersions.js +23 -0
  342. package/build/esm/net/third-party-applications/listVersions.js.map +1 -0
  343. package/build/esm/net/third-party-applications/listVersions.mjs +22 -0
  344. package/build/esm/net/third-party-applications/undeployWebsite.js +24 -0
  345. package/build/esm/net/third-party-applications/undeployWebsite.js.map +1 -0
  346. package/build/esm/net/third-party-applications/undeployWebsite.mjs +23 -0
  347. package/build/esm/net/third-party-applications/uploadVersion.js +30 -0
  348. package/build/esm/net/third-party-applications/uploadVersion.js.map +1 -0
  349. package/build/esm/net/third-party-applications/uploadVersion.mjs +29 -0
  350. package/build/esm/util/autoVersion.js +62 -0
  351. package/build/esm/util/autoVersion.js.map +1 -0
  352. package/build/esm/util/autoVersion.test.js +71 -0
  353. package/build/esm/util/autoVersion.test.js.map +1 -0
  354. package/build/esm/util/config.js +102 -0
  355. package/build/esm/util/config.js.map +1 -0
  356. package/build/esm/util/config.test.js +110 -0
  357. package/build/esm/util/config.test.js.map +1 -0
  358. package/build/esm/util/configLoader.js +25 -0
  359. package/build/esm/util/configLoader.js.map +1 -0
  360. package/build/esm/util/isValidSemver.test.js +41 -0
  361. package/build/esm/util/isValidSemver.test.js.map +1 -0
  362. package/build/esm/util/token.js +84 -0
  363. package/build/esm/util/token.js.map +1 -0
  364. package/build/esm/util/token.test.js +62 -0
  365. package/build/esm/util/token.test.js.map +1 -0
  366. package/build/esm/yargs/logConfigFileMiddleware.js +29 -0
  367. package/build/esm/yargs/logConfigFileMiddleware.js.map +1 -0
  368. package/package.json +8 -10
  369. package/build/browser/chunk-5AQYUXAY.js +0 -17
  370. package/build/browser/chunk-5AQYUXAY.js.map +0 -1
  371. package/build/browser/chunk-DAYFZSC6.js +0 -42
  372. package/build/browser/chunk-DAYFZSC6.js.map +0 -1
  373. package/build/browser/chunk-SBJIY4HI.js +0 -67
  374. package/build/browser/chunk-SBJIY4HI.js.map +0 -1
  375. package/build/browser/chunk-XJLUGCCS.js +0 -120
  376. package/build/browser/chunk-XJLUGCCS.js.map +0 -1
  377. package/build/browser/chunk-Z4JRY4PG.js +0 -221
  378. package/build/browser/chunk-Z4JRY4PG.js.map +0 -1
  379. package/build/browser/handleGenerate-QAI4FEG7-RF32BMXD.js +0 -642
  380. package/build/browser/handleGenerate-QAI4FEG7-RF32BMXD.js.map +0 -1
  381. package/build/browser/loginFlow-X2LB2TEP.js +0 -4
  382. package/build/browser/loginFlow-X2LB2TEP.js.map +0 -1
  383. package/build/browser/siteDeployCommand-6UZVKCSK.js +0 -140
  384. package/build/browser/siteDeployCommand-6UZVKCSK.js.map +0 -1
  385. package/build/browser/versionDeleteCommand-YXTKR33T.js +0 -35
  386. package/build/browser/versionDeleteCommand-YXTKR33T.js.map +0 -1
  387. package/build/browser/versionGetCommand-GH5OK4LZ.js +0 -29
  388. package/build/browser/versionGetCommand-GH5OK4LZ.js.map +0 -1
  389. package/build/browser/versionListCommand-QM5SDDE3.js +0 -34
  390. package/build/browser/versionListCommand-QM5SDDE3.js.map +0 -1
  391. package/build/browser/versionSetCommand-VJK43BAU.js +0 -29
  392. package/build/browser/versionSetCommand-VJK43BAU.js.map +0 -1
  393. package/build/browser/versionUnsetCommand-LTOSIBQA.js +0 -34
  394. package/build/browser/versionUnsetCommand-LTOSIBQA.js.map +0 -1
  395. package/build/esm/chunk-5AQYUXAY.js +0 -17
  396. package/build/esm/chunk-5AQYUXAY.js.map +0 -1
  397. package/build/esm/chunk-DAYFZSC6.js +0 -42
  398. package/build/esm/chunk-DAYFZSC6.js.map +0 -1
  399. package/build/esm/chunk-SBJIY4HI.js +0 -67
  400. package/build/esm/chunk-SBJIY4HI.js.map +0 -1
  401. package/build/esm/chunk-XJLUGCCS.js +0 -120
  402. package/build/esm/chunk-XJLUGCCS.js.map +0 -1
  403. package/build/esm/chunk-Z4JRY4PG.js +0 -221
  404. package/build/esm/chunk-Z4JRY4PG.js.map +0 -1
  405. package/build/esm/handleGenerate-QAI4FEG7-RF32BMXD.js +0 -642
  406. package/build/esm/handleGenerate-QAI4FEG7-RF32BMXD.js.map +0 -1
  407. package/build/esm/loginFlow-X2LB2TEP.js +0 -4
  408. package/build/esm/loginFlow-X2LB2TEP.js.map +0 -1
  409. package/build/esm/siteDeployCommand-6UZVKCSK.js +0 -140
  410. package/build/esm/siteDeployCommand-6UZVKCSK.js.map +0 -1
  411. package/build/esm/versionDeleteCommand-YXTKR33T.js +0 -35
  412. package/build/esm/versionDeleteCommand-YXTKR33T.js.map +0 -1
  413. package/build/esm/versionGetCommand-GH5OK4LZ.js +0 -29
  414. package/build/esm/versionGetCommand-GH5OK4LZ.js.map +0 -1
  415. package/build/esm/versionListCommand-QM5SDDE3.js +0 -34
  416. package/build/esm/versionListCommand-QM5SDDE3.js.map +0 -1
  417. package/build/esm/versionSetCommand-VJK43BAU.js +0 -29
  418. package/build/esm/versionSetCommand-VJK43BAU.js.map +0 -1
  419. package/build/esm/versionUnsetCommand-LTOSIBQA.js +0 -34
  420. package/build/esm/versionUnsetCommand-LTOSIBQA.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/cli.ts","../../../cli.cmd.typescript/build/esm/index.js","../../src/commands/auth/index.ts","../../src/commands/auth/login/index.ts","../../src/commands/site/index.ts","../../src/util/configLoader.ts","../../src/util/config.ts","../../src/commands/site/deploy/index.ts","../../src/commands/site/deploy/logDeployCommandConfigFileOverride.ts","../../src/commands/site/logSiteCommandConfigFileOverride.ts","../../src/commands/site/version/index.ts","../../src/commands/site/version/delete/index.ts","../../src/commands/site/version/get/index.ts","../../src/commands/site/version/list/index.ts","../../src/commands/site/version/set/index.ts","../../src/commands/site/version/unset/index.ts","../../src/yargs/logConfigFileMiddleware.ts"],"names":["command","fsPromises","consola","autoVersion","application","foundryUrl"],"mappings":";;;;;;;AAAA,cAAA,EAAA,CAAA;;;ACAA,cAAA,EAAA,CAAA;;;ACAA,cAAA,EAAA,CAAA;AAIA,IAAI,eAAkB,GAAA;AAAA,EACpB,OAAS,EAAA,UAAA;AAAA,EACT,QAAU,EAAA,uCAAA;AAAA,EACV,SAAS,CAAQ,IAAA,KAAA;AACf,IAAA,OAAO,KAAK,OAAQ,CAAA;AAAA,MAClB,MAAQ,EAAA;AAAA,QACN,IAAM,EAAA,QAAA;AAAA,QACN,WAAa,EAAA,oCAAA;AAAA,QACb,YA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AAkB,MAAM,MAAS,GAAA,cAAA,CAAA;AACvC,IAAA,IAAI,cAAgB,EAAA;AAClB,MAAAE,OAAQ,CAAA,KAAA,CAAM,CAAmC,gCAAA,EAAA,cAAc,CAAG,CAAA,CAAA,CAAA,CAAA;AAAA,KACpE;AAAA,GACF;AACF,CAAA;;;AhBNA,eAAsB,GAAA,CAAI,IAAO,GAAA,OAAA,CAAQ,IAAM,EAAA;AAC7C,EAAAA,OAAAA,CAAQ,IAAK,CAAA,CAAA,kBAAA,EAAqB,gBAA2B,CAAA;AAAA,CAAI,CAAA,CAAA;AACjE,EAAM,MAAA,IAAA,GAAO,aAAa,IAAI,CAAA,CAAA;AAG9B,EAAI,IAAA;AACF,IAAO,OAAA,MAAM,KAAK,UAAW,CAAA,uBAAuB,EAAE,OAAQ,CAAA,YAAI,EAAE,OAAQ,CAAA;AAAA,MAC1E,OAAS,EAAA,UAAA;AAAA,MACT,OAAA,EAAS,CAAC,cAAc,CAAA;AAAA,MACxB,QAAU,EAAA,mBAAA;AAAA,MACV,OAAA,EAAS,OAAM,IAAQ,KAAA;AACrB,QAAA,OAAO,KAAK,OAAQ,CAAA,iBAAU,EAAE,OAAQ,CAAA,YAAI,EAAE,aAAc,EAAA,CAAA;AAAA,OAC9D;AAAA,MACA,SAAS,CAAS,KAAA,KAAA;AAAA,OAAC;AAAA,KACpB,EAAE,UAAW,EAAA,CAAA;AAAA,WACP,GAAK,EAAA;AACZ,IAAA,IAAI,eAAe,gBAAkB,EAAA;AACnC,MAAAA,OAAAA,CAAQ,MAAM,GAAG,CAAA,CAAA;AAAA,KACnB;AAAA,GACF;AACF","file":"index.js","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 { cli } from \"./cli.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 typescript from \"@osdk/cli.cmd.typescript\";\nimport { ExitProcessError, getYargsBase } from \"@osdk/cli.common\";\nimport { consola } from \"consola\";\nimport auth from \"./commands/auth/index.js\";\nimport site from \"./commands/site/index.js\";\nimport { logConfigFileMiddleware } from \"./yargs/logConfigFileMiddleware.js\";\nexport async function cli(args = process.argv) {\n consola.info(`Palantir OSDK CLI ${process.env.PACKAGE_VERSION}\\n`);\n const base = getYargsBase(args);\n\n // Special handling where failures happen before yargs does its error handling within .fail\n try {\n return await base.middleware(logConfigFileMiddleware).command(site).command({\n command: \"unstable\",\n aliases: [\"experimental\"],\n describe: \"Unstable commands\",\n builder: async argv => {\n return argv.command(typescript).command(auth).demandCommand();\n },\n handler: _args => {}\n }).parseAsync();\n } catch (err) {\n if (err instanceof ExitProcessError) {\n consola.error(err);\n }\n }\n}","import { getYargsBase, ExitProcessError, YargsCheckError, isValidSemver } from '@osdk/cli.common';\nimport { consola } from 'consola';\n\n// src/cli.ts\nvar generateCommand = {\n command: \"generate\",\n describe: \"Generate TypeScript SDK from ontology\",\n builder: argv => {\n return argv.options({\n outDir: {\n type: \"string\",\n description: \"Where to place the generated files\",\n demandOption: true\n },\n ontologyPath: {\n description: \"Path to the ontology wire json\",\n type: \"string\",\n demandOption: false,\n conflicts: [\"foundryUrl\", \"clientId\"]\n },\n foundryUrl: {\n description: \"URL for the foundry stack that contains the ontology\",\n type: \"string\",\n demandOption: false,\n conflicts: \"ontologyPath\",\n implies: \"clientId\",\n alias: \"stack\"\n // for backwards compatibility\n },\n clientId: {\n description: \"OAuth client ID for application\",\n type: \"string\",\n demandOption: false,\n conflicts: \"ontologyPath\",\n implies: \"foundryUrl\"\n },\n ontologyRid: {\n description: \"Limit requests to this ontology rid only\",\n type: \"string\",\n demandOption: false\n },\n ontologyWritePath: {\n description: \"Path to write the ontology wire json\",\n type: \"string\",\n demandOption: false,\n conflicts: [\"ontologyPath\"]\n },\n beta: {\n type: \"boolean\",\n description: \"Should generate beta sdk\",\n demandOption: false\n },\n packageType: {\n default: \"commonjs\",\n choices: [\"commonjs\", \"module\"]\n },\n version: {\n type: \"string\",\n description: \"Version of the generated code, or 'dev'\",\n demandOption: true\n },\n packageName: {\n type: \"string\",\n description: \"Name of the package to generate\"\n },\n asPackage: {\n type: \"boolean\",\n description: \"Generate as a package (makes a package.json and co)\"\n },\n clean: {\n type: \"boolean\",\n description: \"Clean the output directory before generating\"\n },\n internal: {\n type: \"boolean\",\n default: false\n },\n ontologyApiNamespace: {\n type: \"string\"\n },\n apiNamespaceMap: {\n type: \"string\",\n coerce: value => {\n const map = /* @__PURE__ */new Map();\n if (value) {\n for (const entry of value.split(\",\")) {\n const [api, ns] = entry.split(\":\");\n map.set(api, ns);\n }\n }\n return map;\n },\n default: \"\"\n }\n }).group([\"ontologyPath\", \"outDir\", \"version\"], \"Generate from a local file\").group([\"foundryUrl\", \"clientId\", \"outDir\", \"ontologyWritePath\", \"version\"], \"OR Generate from Foundry\").group([\"packageName\", \"as\"], \"Package generation options\").check(args => {\n if (!args.ontologyPath && !args.foundryUrl) {\n throw new YargsCheckError(\"Must specify either ontologyPath or foundryUrl and clientId\");\n }\n if (args.version !== \"dev\" && !isValidSemver(args.version)) {\n throw new YargsCheckError(\"Version must be 'dev' or a valid semver version\");\n }\n if (args.asPackage && !args.packageName) {\n throw new YargsCheckError(\"Must specify packageName when generating as a package\");\n }\n if (args.asPackage && !args.version) {\n throw new YargsCheckError(\"Must specify version when generating as a package\");\n }\n return true;\n });\n },\n handler: async args => {\n const command = await import('./handleGenerate-QAI4FEG7.js');\n await command.handleGenerate(args);\n }\n};\n\n// src/cli.ts\nasync function cli(args = process.argv) {\n consola.info(`Palantir OSDK CLI ${\"0.6.0-beta.11\"}\n`);\n const base = getYargsBase(args);\n try {\n return await base.command(generateCommand).parseAsync();\n } catch (err) {\n if (err instanceof ExitProcessError) {\n consola.error(err);\n }\n }\n}\n\n// src/typescriptCommand.ts\nvar typescriptCommand = {\n command: \"typescript\",\n describe: \"Manage code\",\n builder: argv => {\n return argv.command(generateCommand).demandCommand();\n },\n handler: async args => {}\n};\nexport { cli, typescriptCommand as default };","/*\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 login from \"./login/index.js\";\nconst auth = {\n command: \"auth\",\n describe: \"Manage your session\",\n builder: argv => {\n return argv.options({\n foundryUrl: {\n type: \"string\",\n demandOption: true,\n alias: \"baseUrl\",\n // for backwards compatibility\n describe: \"URL for the Foundry stack\"\n }\n }).command(login).demandCommand();\n },\n handler: async args => {}\n};\nexport default auth;","/*\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 command = {\n command: \"login\",\n describe: \"Authenticate with an application ID\",\n builder: argv => {\n return argv.option(\"clientId\", {\n alias: \"applicationId\",\n // for backwards compatibility\n type: \"string\",\n demandOption: true,\n describe: \"OAuth client ID for application\"\n });\n },\n handler: async args => {\n const command = await import(\"@osdk/cli.common/loginFlow\");\n await command.default(args);\n }\n};\nexport default command;","/*\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 { YargsCheckError } from \"@osdk/cli.common\";\nimport configLoader from \"../../util/configLoader.js\";\nimport deploy from \"./deploy/index.js\";\nimport { logSiteCommandConfigFileOverride } from \"./logSiteCommandConfigFileOverride.js\";\nimport version from \"./version/index.js\";\nconst command = {\n command: \"site\",\n describe: \"Manage your site\",\n builder: async argv => {\n const config = await configLoader();\n const application = config?.foundryConfig.site.application;\n const foundryUrl = config?.foundryConfig.foundryUrl;\n return argv.options({\n application: {\n type: \"string\",\n coerce: application => application,\n ...(application ? {\n default: application\n } : {\n demandOption: true\n }),\n description: \"Application resource identifier (rid)\"\n },\n foundryUrl: {\n coerce: foundryUrl => foundryUrl.replace(/\\/$/, \"\"),\n type: \"string\",\n ...(foundryUrl ? {\n default: foundryUrl\n } : {\n demandOption: true\n }),\n description: \"URL for the Foundry stack\"\n },\n token: {\n type: \"string\",\n conflicts: \"tokenFile\",\n description: \"Foundry API token\"\n },\n tokenFile: {\n type: \"string\",\n conflicts: \"token\",\n description: \"Path to file containing Foundry API token\"\n }\n }).group([\"application\", \"foundryUrl\", \"token\", \"tokenFile\"], \"Common Options\").command(version).command(deploy).check(args => {\n if (!args.foundryUrl.startsWith(\"https://\")) {\n throw new YargsCheckError(\"foundryUrl must start with https://\");\n }\n return true;\n }).middleware(args => logSiteCommandConfigFileOverride(args, config?.foundryConfig)).demandCommand();\n },\n handler: async args => {}\n};\nexport default command;","/*\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 { loadFoundryConfig } from \"./config.js\";\nlet configPromise = undefined;\nfunction getConfig() {\n if (configPromise == null) {\n configPromise = loadFoundryConfig();\n }\n return configPromise;\n}\nexport default getConfig;","/*\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 \"@osdk/cli.common\";\nimport { promises as fsPromises } from \"node:fs\";\nimport { extname } from \"node:path\";\nconst CONFIG_FILE_NAMES = [\"foundry.config.json\"];\nconst CONFIG_FILE_SCHEMA = {\n type: \"object\",\n properties: {\n foundryUrl: {\n type: \"string\"\n },\n site: {\n type: \"object\",\n properties: {\n application: {\n type: \"string\"\n },\n directory: {\n type: \"string\"\n },\n autoVersion: {\n type: \"object\",\n nullable: true,\n oneOf: [{\n properties: {\n type: {\n const: \"git-describe\",\n type: \"string\"\n },\n tagPrefix: {\n type: \"string\",\n nullable: true\n }\n }\n }],\n required: [\"type\"]\n }\n },\n required: [\"application\", \"directory\"]\n }\n },\n required: [\"foundryUrl\", \"site\"],\n additionalProperties: false\n};\n\n/**\n * Asynchronously loads a configuration file. Looks for any of the CONFIG_FILE_NAMES in the current directory going up to the root directory.\n * @returns A promise that resolves to the configuration JSON object, or undefined if not found.\n * @throws Will throw an error if the configuration file is found but cannot be read or parsed.\n */\nexport async function loadFoundryConfig() {\n const ajvModule = await import(\"ajv\");\n const Ajv = ajvModule.default.default; // https://github.com/ajv-validator/ajv/issues/2132\n const ajv = new Ajv({\n allErrors: true\n });\n const validate = ajv.compile(CONFIG_FILE_SCHEMA);\n const {\n findUp\n } = await import(\"find-up\");\n const configFilePath = await findUp(CONFIG_FILE_NAMES);\n if (configFilePath) {\n let foundryConfig;\n try {\n const fileContent = await fsPromises.readFile(configFilePath, \"utf-8\");\n foundryConfig = parseConfigFile(fileContent, configFilePath);\n } catch (error) {\n throw new ExitProcessError(2, `Couldn't read or parse config file ${configFilePath}. Error: ${error}`);\n }\n if (!validate(foundryConfig)) {\n throw new ExitProcessError(2, `The configuration file does not match the expected schema: ${ajv.errorsText(validate.errors)}`);\n }\n return {\n foundryConfig,\n configFilePath\n };\n }\n return undefined;\n}\nfunction parseConfigFile(fileContent, configFilePath) {\n const extension = extname(configFilePath);\n switch (extension) {\n case \".json\":\n return JSON.parse(fileContent);\n default:\n throw new ExitProcessError(2, `Unsupported file extension: ${extension} for config file.`);\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 { isValidSemver, YargsCheckError } from \"@osdk/cli.common\";\nimport configLoader from \"../../../util/configLoader.js\";\nimport { logDeployCommandConfigFileOverride } from \"./logDeployCommandConfigFileOverride.js\";\nconst command = {\n command: \"deploy\",\n describe: \"Deploy a new site version\",\n builder: async argv => {\n const config = await configLoader();\n const siteConfig = config?.foundryConfig.site;\n const directory = siteConfig?.directory;\n const autoVersion = siteConfig?.autoVersion;\n const gitTagPrefix = autoVersion?.tagPrefix;\n return argv.options({\n directory: {\n type: \"string\",\n description: \"Directory containing site files\",\n ...(directory ? {\n default: directory\n } : {\n demandOption: true\n })\n },\n uploadOnly: {\n type: \"boolean\",\n description: \"Upload new site version only without setting as live\",\n default: false\n },\n version: {\n type: \"string\",\n description: \"New version of site to deploy\",\n ...(autoVersion == null ? {\n conflicts: \"autoVersion\"\n } : {})\n },\n autoVersion: {\n coerce: autoVersion => autoVersion,\n type: \"string\",\n choices: [\"git-describe\"],\n description: \"Enable auto versioning\",\n ...(autoVersion != null ? {\n default: autoVersion.type\n } : {\n conflicts: \"version\"\n })\n },\n gitTagPrefix: {\n type: \"string\",\n description: \"Prefix to match git tags on when 'git-describe' auto versioning is used. If not provided, all tags are matched and the prefix 'v' is stripped if present.\",\n ...(gitTagPrefix ? {\n default: gitTagPrefix\n } : {})\n }\n }).group([\"directory\", \"version\", \"uploadOnly\"], \"Deploy Options\").group([\"autoVersion\", \"gitTagPrefix\"], \"Auto Version Options\").check(args => {\n // This is required because we can't use demandOption with conflicts. conflicts protects us against the case where both are provided.\n // So this case is for when nothing is provided.\n if (autoVersion == null && args.autoVersion == null && args.version == null) {\n throw new YargsCheckError(\"One of --version or --autoVersion must be specified\");\n }\n if (args.version != null && !isValidSemver(args.version)) {\n throw new YargsCheckError(`--version \"${args.version}\" must be a valid SemVer string`);\n }\n const autoVersionType = args.autoVersion ?? autoVersion;\n if (autoVersionType !== \"git-describe\") {\n throw new YargsCheckError(`Only 'git-describe' is supported for autoVersion`);\n }\n const gitTagPrefixValue = args.gitTagPrefix ?? gitTagPrefix;\n // Future proofing for when we support other autoVersion types\n if (gitTagPrefixValue != null && autoVersionType !== \"git-describe\") {\n throw new YargsCheckError(`--gitTagPrefix is only supported when --autoVersion=git-describe`);\n }\n return true;\n }).middleware(args => logDeployCommandConfigFileOverride(args, siteConfig));\n },\n handler: async args => {\n const command = await import(\"./siteDeployCommand.mjs\");\n const {\n version,\n autoVersion,\n gitTagPrefix,\n ...restArgs\n } = args;\n const selectedVersion = args.version != null ? args.version : {\n type: args.autoVersion,\n tagPrefix: args.gitTagPrefix\n };\n await command.default({\n ...restArgs,\n selectedVersion\n });\n }\n};\nexport default command;","/*\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\";\nexport async function logDeployCommandConfigFileOverride(args, config) {\n if (config?.autoVersion != null && args.autoVersion !== config?.autoVersion.type) {\n consola.debug(`Overriding \"autoVersion\" from config file with ${args.autoVersion}`);\n }\n if (config?.directory != null && args.directory !== config?.directory) {\n consola.debug(`Overriding \"directory\" from config file with ${args.directory}`);\n }\n if (config?.autoVersion?.tagPrefix != null && args.gitTagPrefix != null && args.gitTagPrefix !== config?.autoVersion.tagPrefix) {\n consola.debug(`Overriding \"gitTagPrefix\" from config file with ${args.gitTagPrefix}`);\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\";\nexport async function logSiteCommandConfigFileOverride(args, config) {\n if (config?.site.application != null && args.application !== config.site.application) {\n consola.debug(`Overriding \"application\" from config file with ${args.application}`);\n }\n if (config?.foundryUrl != null && args.foundryUrl !== config.foundryUrl) {\n consola.debug(`Overriding \"foundryUrl\" from config file with ${args.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\nimport deleteCmd from \"./delete/index.js\";\nimport get from \"./get/index.js\";\nimport list from \"./list/index.js\";\nimport set from \"./set/index.js\";\nimport unset from \"./unset/index.js\";\nconst command = {\n command: \"version\",\n describe: \"Manage site versions\",\n builder: argv => {\n return argv.command(list).command(get).command(set).command(unset).command(deleteCmd).demandCommand();\n },\n handler: async args => {}\n};\nexport default command;","/*\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\nconst command = {\n command: \"delete <version>\",\n describe: \"Delete site version\",\n builder: argv => {\n return argv.positional(\"version\", {\n type: \"string\",\n demandOption: true,\n description: \"Version to set as live\"\n }).option(\"yes\", {\n alias: \"y\",\n type: \"boolean\",\n description: \"Automatically confirm destructive changes\"\n }).group([\"yes\"], \"Delete Options\");\n },\n handler: async args => {\n const command = await import(\"./versionDeleteCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\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\nconst command = {\n command: \"get\",\n describe: \"Get live site version\",\n builder: argv => {\n return argv;\n },\n handler: async args => {\n const command = await import(\"./versionGetCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\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\nconst command = {\n command: \"list\",\n describe: \"List site versions\",\n builder: argv => {\n return argv;\n },\n handler: async args => {\n const command = await import(\"./versionListCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\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\nconst command = {\n command: \"set <version>\",\n describe: \"Set live site version\",\n builder: argv => {\n return argv.positional(\"version\", {\n type: \"string\",\n demandOption: true,\n description: \"Version to set as live\"\n });\n },\n handler: async args => {\n const command = await import(\"./versionSetCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\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\nconst command = {\n command: \"unset\",\n describe: \"Clear live site version\",\n builder: argv => {\n return argv.option(\"yes\", {\n alias: \"y\",\n type: \"boolean\",\n description: \"Automatically confirm destructive changes\"\n }).group([\"yes\"], \"Unset Options\");\n },\n handler: async args => {\n const command = await import(\"./versionUnsetCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\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 getConfig from \"../util/configLoader.js\";\nlet firstTime = true;\nexport async function logConfigFileMiddleware() {\n if (firstTime) {\n firstTime = false;\n const config = getConfig();\n const configFilePath = (await config)?.configFilePath;\n if (configFilePath) {\n consola.debug(`Using configuration from file: \"${configFilePath}\"`);\n }\n }\n}"]}
1
+ {"version":3,"file":"index.js","names":["cli"],"sources":["index.js"],"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 */\nexport { cli } from \"./cli.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,GAAG,QAAQ,UAAU","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export type ThirdPartyAppRid = `ri.third-party-applications.main.application.${string}`;
2
+ //# sourceMappingURL=ThirdPartyAppRid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThirdPartyAppRid.d.ts","sourceRoot":"","sources":["../../../src/net/ThirdPartyAppRid.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,gBAAgB,GAC1B,gDAAgD,MAAM,EAAE,CAAC"}
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
17
+ //# sourceMappingURL=ThirdPartyAppRid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThirdPartyAppRid.js","names":[],"sources":["ThirdPartyAppRid.js"],"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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export declare const USER_AGENT: string;
2
+ //# sourceMappingURL=UserAgent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserAgent.d.ts","sourceRoot":"","sources":["../../../src/net/UserAgent.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,UAAU,QAA4C,CAAC"}
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export const USER_AGENT = `osdk-cli/${"0.24.0-beta.13"}`;
17
+ //# sourceMappingURL=UserAgent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserAgent.js","names":["USER_AGENT"],"sources":["UserAgent.js"],"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 */\nexport const USER_AGENT = `osdk-cli/${process.env.PACKAGE_VERSION}`;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,UAAU,GAAG,8BAAyC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export declare function createFetch(tokenProvider: () => Promise<string> | string, fetchFn?: typeof fetch): typeof fetch;
2
+ //# sourceMappingURL=createFetch.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createFetch.d.mts","sourceRoot":"","sources":["../../../src/net/createFetch.mts"],"names":[],"mappings":"AAyBA,wBAAgB,WAAW,CACzB,aAAa,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,GAAG,MAAM,EAC7C,OAAO,GAAE,OAAO,KAAa,gBAe9B"}
@@ -0,0 +1,66 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { ExitProcessError } from "@osdk/cli.common";
17
+ import { createFetchHeaderMutator, createFetchOrThrow, PalantirApiError } from "@osdk/shared.net";
18
+ import { consola } from "consola";
19
+ import { USER_AGENT } from "./UserAgent.js";
20
+ export function createFetch(tokenProvider, fetchFn = fetch) {
21
+ return createFetchHeaderMutator(createRequestLoggingFetch(createErrorExitingFetch(createFetchOrThrow(fetchFn))), async headers => {
22
+ const token = await tokenProvider();
23
+ headers.set("Authorization", `Bearer ${token}`);
24
+ headers.set("Fetch-User-Agent", USER_AGENT);
25
+ return headers;
26
+ });
27
+ }
28
+ function createErrorExitingFetch(fetchFn = fetch) {
29
+ return function (input, init) {
30
+ return fetchFn(input, init).catch(handleFetchError);
31
+ };
32
+ }
33
+ function handleFetchError(e) {
34
+ if (!(e instanceof PalantirApiError)) {
35
+ throw new ExitProcessError(1, "Unexpected fetch error");
36
+ }
37
+ let tip;
38
+ if (e.statusCode === 401) {
39
+ tip = "Check your token is valid and has not expired or been disabled";
40
+ } else if (e.statusCode === 403) {
41
+ tip = "Check your token has the required scopes for this operation";
42
+ }
43
+ let message = e.message;
44
+ if (e.errorName === "CannotDeleteDeployedVersion") {
45
+ message = "The site version to delete is live and cannot be deleted";
46
+ tip = "Run the `site version set` command to change the live site version";
47
+ } else if (e.errorName === "InvalidVersion") {
48
+ message = "The site version is invalid and must be a valid SemVer string";
49
+ } else if (e.errorName === "VersionAlreadyExists") {
50
+ message = "The site version already exists";
51
+ } else if (e.errorName === "VersionNotFound") {
52
+ message = "The site version could not be found";
53
+ }
54
+ throw new ExitProcessError(1, message, tip, e);
55
+ }
56
+ function createRequestLoggingFetch(fetchFn = fetch) {
57
+ return function (input, init) {
58
+ const requestLog = typeof input === "string" || input instanceof URL ? `${init?.method ?? "GET"}: ${input.toString().trim()}` : `${input.method ?? "GET"}: ${input.url.toString().trim()}`;
59
+ consola.trace(requestLog);
60
+ return fetchFn(input, init).then(a => {
61
+ consola.trace(`FINISH ${requestLog}`);
62
+ return a;
63
+ });
64
+ };
65
+ }
66
+ //# sourceMappingURL=createFetch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createFetch.js","names":["ExitProcessError","createFetchHeaderMutator","createFetchOrThrow","PalantirApiError","consola","USER_AGENT","createFetch","tokenProvider","fetchFn","fetch","createRequestLoggingFetch","createErrorExitingFetch","headers","token","set","input","init","catch","handleFetchError","e","tip","statusCode","message","errorName","requestLog","URL","method","toString","trim","url","trace","then","a"],"sources":["createFetch.mjs"],"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 */\nimport { ExitProcessError } from \"@osdk/cli.common\";\nimport { createFetchHeaderMutator, createFetchOrThrow, PalantirApiError, } from \"@osdk/shared.net\";\nimport { consola } from \"consola\";\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 }\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 === \"CannotDeleteDeployedVersion\") {\n message = \"The site version to delete is live and cannot be deleted\";\n tip = \"Run the `site version set` command to change the live site version\";\n }\n else if (e.errorName === \"InvalidVersion\") {\n message = \"The site version is invalid and must be a valid SemVer string\";\n }\n else if (e.errorName === \"VersionAlreadyExists\") {\n message = \"The site version already exists\";\n }\n else if (e.errorName === \"VersionNotFound\") {\n message = \"The site version could not be found\";\n }\n throw new ExitProcessError(1, message, tip, e);\n}\nfunction createRequestLoggingFetch(fetchFn = fetch) {\n return function requestLoggingFetch(input, init) {\n const requestLog = typeof input === \"string\" || input instanceof URL\n ? `${init?.method ?? \"GET\"}: ${input.toString().trim()}`\n : `${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"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,gBAAgB,QAAQ,kBAAkB;AACnD,SAASC,wBAAwB,EAAEC,kBAAkB,EAAEC,gBAAgB,QAAS,kBAAkB;AAClG,SAASC,OAAO,QAAQ,SAAS;AACjC,SAASC,UAAU,QAAQ,gBAAgB;AAC3C,OAAO,SAASC,WAAWA,CAACC,aAAa,EAAEC,OAAO,GAAGC,KAAK,EAAE;EACxD,OAAOR,wBAAwB,CAACS,yBAAyB,CAACC,uBAAuB,CAACT,kBAAkB,CAACM,OAAO,CAAC,CAAC,CAAC,EAAE,MAAOI,OAAO,IAAK;IAChI,MAAMC,KAAK,GAAG,MAAMN,aAAa,CAAC,CAAC;IACnCK,OAAO,CAACE,GAAG,CAAC,eAAe,EAAE,UAAUD,KAAK,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AAE;EAChD,OAAO,UAA6BM,KAAK,EAAEC,IAAI,EAAE;IAC7C,MAAMQ,UAAU,GAAG,OAAOT,KAAK,KAAK,QAAQ,IAAIA,KAAK,YAAYU,GAAG,GAC9D,GAAGT,IAAI,EAAEU,MAAM,IAAI,KAAK,KAAKX,KAAK,CAACY,QAAQ,CAAC,CAAC,CAACC,IAAI,CAAC,CAAC,EAAE,GACtD,GAAGb,KAAK,CAACW,MAAM,IAAI,KAAK,KAAKX,KAAK,CAACc,GAAG,CAACF,QAAQ,CAAC,CAAC,CAACC,IAAI,CAAC,CAAC,EAAE;IAChExB,OAAO,CAAC0B,KAAK,CAACN,UAAU,CAAC;IACzB,OAAOhB,OAAO,CAACO,KAAK,EAAEC,IAAI,CAAC,CAACe,IAAI,CAAEC,CAAC,IAAK;MACpC5B,OAAO,CAAC0B,KAAK,CAAC,UAAUN,UAAU,EAAE,CAAC;MACrC,OAAOQ,CAAC;IACZ,CAAC,CAAC;EACN,CAAC;AACL","ignoreList":[]}
@@ -0,0 +1,71 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { ExitProcessError } from "@osdk/cli.common";
17
+ import { createFetchHeaderMutator, createFetchOrThrow, PalantirApiError, } from "@osdk/shared.net";
18
+ import { consola } from "consola";
19
+ import { USER_AGENT } from "./UserAgent.js";
20
+ export function createFetch(tokenProvider, fetchFn = fetch) {
21
+ return createFetchHeaderMutator(createRequestLoggingFetch(createErrorExitingFetch(createFetchOrThrow(fetchFn))), async (headers) => {
22
+ const token = await tokenProvider();
23
+ headers.set("Authorization", `Bearer ${token}`);
24
+ headers.set("Fetch-User-Agent", USER_AGENT);
25
+ return headers;
26
+ });
27
+ }
28
+ function createErrorExitingFetch(fetchFn = fetch) {
29
+ return function errorExitingFetch(input, init) {
30
+ return fetchFn(input, init).catch(handleFetchError);
31
+ };
32
+ }
33
+ function handleFetchError(e) {
34
+ if (!(e instanceof PalantirApiError)) {
35
+ throw new ExitProcessError(1, "Unexpected fetch error");
36
+ }
37
+ let tip;
38
+ if (e.statusCode === 401) {
39
+ tip = "Check your token is valid and has not expired or been disabled";
40
+ }
41
+ else if (e.statusCode === 403) {
42
+ tip = "Check your token has the required scopes for this operation";
43
+ }
44
+ let message = e.message;
45
+ if (e.errorName === "CannotDeleteDeployedVersion") {
46
+ message = "The site version to delete is live and cannot be deleted";
47
+ tip = "Run the `site version set` command to change the live site version";
48
+ }
49
+ else if (e.errorName === "InvalidVersion") {
50
+ message = "The site version is invalid and must be a valid SemVer string";
51
+ }
52
+ else if (e.errorName === "VersionAlreadyExists") {
53
+ message = "The site version already exists";
54
+ }
55
+ else if (e.errorName === "VersionNotFound") {
56
+ message = "The site version could not be found";
57
+ }
58
+ throw new ExitProcessError(1, message, tip, e);
59
+ }
60
+ function createRequestLoggingFetch(fetchFn = fetch) {
61
+ return function requestLoggingFetch(input, init) {
62
+ const requestLog = typeof input === "string" || input instanceof URL
63
+ ? `${init?.method ?? "GET"}: ${input.toString().trim()}`
64
+ : `${input.method ?? "GET"}: ${input.url.toString().trim()}`;
65
+ consola.trace(requestLog);
66
+ return fetchFn(input, init).then((a) => {
67
+ consola.trace(`FINISH ${requestLog}`);
68
+ return a;
69
+ });
70
+ };
71
+ }
@@ -0,0 +1,3 @@
1
+ import type { InternalClientContext } from "./internalClientContext.mjs";
2
+ export declare function createInternalClientContext(foundryUrl: string, tokenProvider: () => string): InternalClientContext;
3
+ //# sourceMappingURL=createInternalClientContext.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createInternalClientContext.d.mts","sourceRoot":"","sources":["../../../src/net/createInternalClientContext.mts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEzE,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,MAAM,MAAM,GAC1B,qBAAqB,CAKvB"}
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export function createInternalClientContext(foundryUrl, tokenProvider) {
17
+ return {
18
+ tokenProvider,
19
+ foundryUrl
20
+ };
21
+ }
22
+ //# sourceMappingURL=createInternalClientContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createInternalClientContext.js","names":["createInternalClientContext","foundryUrl","tokenProvider"],"sources":["createInternalClientContext.mjs"],"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 */\nexport function createInternalClientContext(foundryUrl, tokenProvider) {\n return {\n tokenProvider,\n foundryUrl,\n };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,2BAA2BA,CAACC,UAAU,EAAEC,aAAa,EAAE;EACnE,OAAO;IACHA,aAAa;IACbD;EACJ,CAAC;AACL","ignoreList":[]}
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export function createInternalClientContext(foundryUrl, tokenProvider) {
17
+ return {
18
+ tokenProvider,
19
+ foundryUrl,
20
+ };
21
+ }
@@ -0,0 +1,3 @@
1
+ export { createInternalClientContext } from "./createInternalClientContext.mjs";
2
+ export * as thirdPartyApplications from "./third-party-applications/index.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
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,18 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export { createInternalClientContext } from "./createInternalClientContext.mjs";
17
+ export * as thirdPartyApplications from "./third-party-applications/index.mjs";
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["createInternalClientContext","thirdPartyApplications"],"sources":["index.mjs"],"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 */\nexport { createInternalClientContext } from \"./createInternalClientContext.mjs\";\nexport * as thirdPartyApplications from \"./third-party-applications/index.mjs\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,2BAA2B,QAAQ,mCAAmC;AAC/E,OAAO,KAAKC,sBAAsB,MAAM,sCAAsC","ignoreList":[]}
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export { createInternalClientContext } from "./createInternalClientContext.mjs";
17
+ export * as thirdPartyApplications from "./third-party-applications/index.mjs";
@@ -0,0 +1,5 @@
1
+ export interface InternalClientContext {
2
+ tokenProvider: () => string;
3
+ foundryUrl: string;
4
+ }
5
+ //# sourceMappingURL=internalClientContext.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internalClientContext.d.mts","sourceRoot":"","sources":["../../../src/net/internalClientContext.mts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,qBAAqB;IACpC,aAAa,EAAE,MAAM,MAAM,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
17
+ //# sourceMappingURL=internalClientContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internalClientContext.js","names":[],"sources":["internalClientContext.mjs"],"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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -0,0 +1,16 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
@@ -0,0 +1,4 @@
1
+ export interface DeployWebsiteRequest {
2
+ version: string;
3
+ }
4
+ //# sourceMappingURL=DeployWebsiteRequest.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeployWebsiteRequest.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/DeployWebsiteRequest.mts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
17
+ //# sourceMappingURL=DeployWebsiteRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeployWebsiteRequest.js","names":[],"sources":["DeployWebsiteRequest.mjs"],"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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -0,0 +1,16 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { Version } from "./Version.mjs";
2
+ export interface ListVersionsResponse {
3
+ data: Version[];
4
+ nextPageToken?: string;
5
+ }
6
+ //# sourceMappingURL=ListVersionsResponse.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListVersionsResponse.d.mts","sourceRoot":"","sources":["../../../../src/net/third-party-applications/ListVersionsResponse.mts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,OAAO,EAAE,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
17
+ //# sourceMappingURL=ListVersionsResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListVersionsResponse.js","names":[],"sources":["ListVersionsResponse.mjs"],"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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -0,0 +1,16 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};