@osdk/cli 0.0.14 → 0.0.16

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 (159) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/bin/osdk.mjs +1 -1
  3. package/build/js/{chunk-2DJZUIFP.js → chunk-MGT3UGXW.mjs} +1 -1
  4. package/build/js/{chunk-FE6HR4TN.js → chunk-TSZWWATC.mjs} +4 -4
  5. package/build/js/chunk-TSZWWATC.mjs.map +1 -0
  6. package/build/js/{chunk-KSJ4QHUS.cjs → chunk-UOKM237I.cjs} +3 -3
  7. package/build/js/chunk-UOKM237I.cjs.map +1 -0
  8. package/build/js/{chunk-4D6JZ4TL.js → chunk-XIJ2ZQRX.mjs} +1 -1
  9. package/build/js/chunk-YHQGXNMB.mjs +13 -0
  10. package/build/js/chunk-YHQGXNMB.mjs.map +1 -0
  11. package/build/js/chunk-Z6SJPM6K.cjs +20 -0
  12. package/build/js/chunk-Z6SJPM6K.cjs.map +1 -0
  13. package/build/js/handleGenerate-4RFQDCQF.mjs +13 -0
  14. package/build/js/handleGenerate-4RFQDCQF.mjs.map +1 -0
  15. package/build/js/handleGenerate-6FGD7TOT.cjs +35 -0
  16. package/build/js/handleGenerate-6FGD7TOT.cjs.map +1 -0
  17. package/build/js/handleSiteDeploy-257ZNTYA.cjs +12 -0
  18. package/build/js/{handleSiteDeploy-YNRVWKWR.js → handleSiteDeploy-QCMJWAYI.mjs} +4 -4
  19. package/build/js/{handleSiteDeploy-YNRVWKWR.js.map → handleSiteDeploy-QCMJWAYI.mjs.map} +1 -1
  20. package/build/js/index.cjs +6 -6
  21. package/build/js/index.cjs.map +1 -1
  22. package/build/js/index.mjs +11 -0
  23. package/build/js/index.mjs.map +1 -0
  24. package/build/js/loginFlow-JIH374QN.mjs +4 -0
  25. package/build/js/loginFlow-JIH374QN.mjs.map +1 -0
  26. package/build/js/loginFlow-MPM6J3CY.cjs +10 -0
  27. package/build/js/loginFlow-MPM6J3CY.cjs.map +1 -0
  28. package/build/js/{siteDeleteCommand-XZF4TDGA.cjs → siteDeleteCommand-NY5W7NE3.cjs} +3 -3
  29. package/build/js/{siteDeleteCommand-PN2LUAZA.js → siteDeleteCommand-ZKHKGVVF.mjs} +4 -4
  30. package/build/js/{siteDeleteCommand-PN2LUAZA.js.map → siteDeleteCommand-ZKHKGVVF.mjs.map} +1 -1
  31. package/build/js/{siteUploadCommand-LF4U2XI6.cjs → siteUploadCommand-OHSOCUL6.cjs} +3 -3
  32. package/build/js/{siteUploadCommand-MCV3ZQAW.js → siteUploadCommand-PZEJVKRE.mjs} +4 -4
  33. package/build/js/{siteUploadCommand-MCV3ZQAW.js.map → siteUploadCommand-PZEJVKRE.mjs.map} +1 -1
  34. package/build/js/{siteVersionsCommand-N33FEMLE.cjs → siteVersionsCommand-IE5QH56U.cjs} +3 -3
  35. package/build/js/{siteVersionsCommand-ZAZVGVKV.js → siteVersionsCommand-NVJD5BDH.mjs} +4 -4
  36. package/build/js/{siteVersionsCommand-ZAZVGVKV.js.map → siteVersionsCommand-NVJD5BDH.mjs.map} +1 -1
  37. package/build/types/commands/auth/CommonAuthArgs.d.ts +4 -0
  38. package/build/types/commands/auth/index.d.ts +5 -0
  39. package/build/types/commands/auth/login/LoginArgs.d.ts +4 -0
  40. package/build/types/commands/auth/login/index.d.ts +5 -0
  41. package/build/types/commands/auth/login/loginFlow.d.ts +2 -0
  42. package/build/types/commands/auth/login/token.d.ts +12 -0
  43. package/build/types/commands/typescript/generate/TypescriptGenerateArgs.d.ts +5 -1
  44. package/build/types/generated/artifacts-admin/ArtifactsAdminService/clearDeletedUserRepositories.d.ts +4 -0
  45. package/build/types/generated/artifacts-admin/ArtifactsAdminService/getContainerRegistryDomain.d.ts +3 -0
  46. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/clearDeployedVersion.d.ts +6 -0
  47. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getContentSecurityPolicyAdditions.d.ts +5 -0
  48. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getDeployedVersion.d.ts +5 -0
  49. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getRegisteredSiteDomains.d.ts +6 -0
  50. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getRequestedSiteDomains.d.ts +7 -0
  51. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/previewContentSecurityPolicy.d.ts +5 -0
  52. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/putContentSecurityPolicyAdditions.d.ts +5 -0
  53. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/requestSiteDomainForRepository.d.ts +8 -0
  54. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/unregisterSiteDomain.d.ts +8 -0
  55. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/updateDeployedVersion.d.ts +5 -0
  56. package/build/types/generated/artifacts-sites/ContentSecurityPolicyAdditions.d.ts +1 -1
  57. package/build/types/generated/artifacts-sites/ControlPanelManagedDomainInfo.d.ts +6 -0
  58. package/build/types/generated/artifacts-sites/SitesDomainRegistryService/getRegisteredDomains.d.ts +3 -0
  59. package/package.json +9 -6
  60. package/build/js/chunk-FE6HR4TN.js.map +0 -1
  61. package/build/js/chunk-KSJ4QHUS.cjs.map +0 -1
  62. package/build/js/handleGenerate-BUJOID4C.js +0 -10
  63. package/build/js/handleGenerate-BUJOID4C.js.map +0 -1
  64. package/build/js/handleGenerate-SY3UD5UA.cjs +0 -32
  65. package/build/js/handleGenerate-SY3UD5UA.cjs.map +0 -1
  66. package/build/js/handleSiteDeploy-F77NQQTE.cjs +0 -12
  67. package/build/js/index.js +0 -11
  68. package/build/js/index.js.map +0 -1
  69. package/build/types/generated/object-set-watcher/AllPropertiesPropertySet.d.ts +0 -2
  70. package/build/types/generated/object-set-watcher/Arg.d.ts +0 -4
  71. package/build/types/generated/object-set-watcher/AuditedObjectSetSubscribeRequests.d.ts +0 -4
  72. package/build/types/generated/object-set-watcher/AuditedObjectSetSubscribeResponse.d.ts +0 -1
  73. package/build/types/generated/object-set-watcher/AuditedObjectSetSubscribeResponses.d.ts +0 -4
  74. package/build/types/generated/object-set-watcher/BaseVersion.d.ts +0 -1
  75. package/build/types/generated/object-set-watcher/BatchEnableWatcherRequest.d.ts +0 -4
  76. package/build/types/generated/object-set-watcher/Error.d.ts +0 -6
  77. package/build/types/generated/object-set-watcher/ErrorName.d.ts +0 -1
  78. package/build/types/generated/object-set-watcher/FilterValue.d.ts +0 -1
  79. package/build/types/generated/object-set-watcher/Message.d.ts +0 -11
  80. package/build/types/generated/object-set-watcher/ObjectSetChanged.d.ts +0 -5
  81. package/build/types/generated/object-set-watcher/ObjectSetContext.d.ts +0 -4
  82. package/build/types/generated/object-set-watcher/ObjectSetFilterContext.d.ts +0 -5
  83. package/build/types/generated/object-set-watcher/ObjectSetRid.d.ts +0 -1
  84. package/build/types/generated/object-set-watcher/ObjectSetStreamSubscribeRequest.d.ts +0 -8
  85. package/build/types/generated/object-set-watcher/ObjectSetStreamSubscribeRequests.d.ts +0 -6
  86. package/build/types/generated/object-set-watcher/ObjectSetSubscribeRequest.d.ts +0 -7
  87. package/build/types/generated/object-set-watcher/ObjectSetSubscribeRequests.d.ts +0 -6
  88. package/build/types/generated/object-set-watcher/ObjectSetSubscribeResponse.d.ts +0 -16
  89. package/build/types/generated/object-set-watcher/ObjectSetSubscribeResponses.d.ts +0 -6
  90. package/build/types/generated/object-set-watcher/ObjectSetUpdates.d.ts +0 -6
  91. package/build/types/generated/object-set-watcher/ObjectSetWatchService/batchEnableWatcher.d.ts +0 -3
  92. package/build/types/generated/object-set-watcher/ObjectSetWatchService.d.ts +0 -1
  93. package/build/types/generated/object-set-watcher/ObjectTypeRid.d.ts +0 -1
  94. package/build/types/generated/object-set-watcher/PatchOffset.d.ts +0 -1
  95. package/build/types/generated/object-set-watcher/PropertyId.d.ts +0 -1
  96. package/build/types/generated/object-set-watcher/PropertySelection.d.ts +0 -6
  97. package/build/types/generated/object-set-watcher/PropertySet.d.ts +0 -11
  98. package/build/types/generated/object-set-watcher/PropertyTypeRid.d.ts +0 -1
  99. package/build/types/generated/object-set-watcher/PropertyTypeRidPropertySelection.d.ts +0 -4
  100. package/build/types/generated/object-set-watcher/QosError.d.ts +0 -2
  101. package/build/types/generated/object-set-watcher/RefreshObjectSet.d.ts +0 -4
  102. package/build/types/generated/object-set-watcher/RequestId.d.ts +0 -1
  103. package/build/types/generated/object-set-watcher/SelectedPropertiesPropertySet.d.ts +0 -4
  104. package/build/types/generated/object-set-watcher/StreamMessage.d.ts +0 -16
  105. package/build/types/generated/object-set-watcher/SubscriptionError.d.ts +0 -4
  106. package/build/types/generated/object-set-watcher/SubscriptionId.d.ts +0 -1
  107. package/build/types/generated/object-set-watcher/SubscriptionSuccess.d.ts +0 -4
  108. package/build/types/generated/object-set-watcher/UnresolvedFilterParameterId.d.ts +0 -1
  109. package/build/types/generated/object-set-watcher/index.d.ts +0 -41
  110. package/build/types/generated/object-set-watcher/object/DatasourceRid.d.ts +0 -1
  111. package/build/types/generated/object-set-watcher/object/FoundryObject.d.ts +0 -14
  112. package/build/types/generated/object-set-watcher/object/ObjectKey.d.ts +0 -3
  113. package/build/types/generated/object-set-watcher/object/ObjectTypeRid.d.ts +0 -1
  114. package/build/types/generated/object-set-watcher/object/ObjectVersion.d.ts +0 -1
  115. package/build/types/generated/object-set-watcher/object/PropertyRid.d.ts +0 -1
  116. package/build/types/generated/object-set-watcher/object/PropertyValue.d.ts +0 -2
  117. package/build/types/generated/object-set-watcher/object/index.d.ts +0 -7
  118. package/build/types/generated/object-set-watcher/types/Attachment.d.ts +0 -1
  119. package/build/types/generated/object-set-watcher/types/Byte.d.ts +0 -1
  120. package/build/types/generated/object-set-watcher/types/CatalogFileReference.d.ts +0 -7
  121. package/build/types/generated/object-set-watcher/types/Ciphertext.d.ts +0 -1
  122. package/build/types/generated/object-set-watcher/types/DatasetFileReference.d.ts +0 -5
  123. package/build/types/generated/object-set-watcher/types/DatasetRid.d.ts +0 -1
  124. package/build/types/generated/object-set-watcher/types/Date.d.ts +0 -1
  125. package/build/types/generated/object-set-watcher/types/Decimal.d.ts +0 -1
  126. package/build/types/generated/object-set-watcher/types/DecimalType.d.ts +0 -4
  127. package/build/types/generated/object-set-watcher/types/Float.d.ts +0 -1
  128. package/build/types/generated/object-set-watcher/types/Geohash.d.ts +0 -1
  129. package/build/types/generated/object-set-watcher/types/Geoshape.d.ts +0 -1
  130. package/build/types/generated/object-set-watcher/types/GeotimeSeriesId.d.ts +0 -1
  131. package/build/types/generated/object-set-watcher/types/GeotimeSeriesIntegrationRid.d.ts +0 -1
  132. package/build/types/generated/object-set-watcher/types/GeotimeSeriesReference.d.ts +0 -6
  133. package/build/types/generated/object-set-watcher/types/Long.d.ts +0 -1
  134. package/build/types/generated/object-set-watcher/types/Marking.d.ts +0 -1
  135. package/build/types/generated/object-set-watcher/types/MarkingType.d.ts +0 -1
  136. package/build/types/generated/object-set-watcher/types/MediaItemReference.d.ts +0 -6
  137. package/build/types/generated/object-set-watcher/types/MediaItemRid.d.ts +0 -1
  138. package/build/types/generated/object-set-watcher/types/MediaReference.d.ts +0 -6
  139. package/build/types/generated/object-set-watcher/types/MediaSetRid.d.ts +0 -1
  140. package/build/types/generated/object-set-watcher/types/MediaSetViewRid.d.ts +0 -1
  141. package/build/types/generated/object-set-watcher/types/MediaValueReference.d.ts +0 -16
  142. package/build/types/generated/object-set-watcher/types/MediaViewItemReference.d.ts +0 -8
  143. package/build/types/generated/object-set-watcher/types/MimeType.d.ts +0 -1
  144. package/build/types/generated/object-set-watcher/types/Null.d.ts +0 -2
  145. package/build/types/generated/object-set-watcher/types/PrimitiveType.d.ts +0 -1
  146. package/build/types/generated/object-set-watcher/types/Short.d.ts +0 -1
  147. package/build/types/generated/object-set-watcher/types/Timestamp.d.ts +0 -1
  148. package/build/types/generated/object-set-watcher/types/TransactionRid.d.ts +0 -1
  149. package/build/types/generated/object-set-watcher/types/Value.d.ts +0 -105
  150. package/build/types/generated/object-set-watcher/types/ValueType.d.ts +0 -25
  151. package/build/types/generated/object-set-watcher/types/Vector.d.ts +0 -1
  152. package/build/types/generated/object-set-watcher/types/VectorType.d.ts +0 -3
  153. package/build/types/generated/object-set-watcher/types/index.d.ts +0 -35
  154. /package/build/js/{chunk-2DJZUIFP.js.map → chunk-MGT3UGXW.mjs.map} +0 -0
  155. /package/build/js/{chunk-4D6JZ4TL.js.map → chunk-XIJ2ZQRX.mjs.map} +0 -0
  156. /package/build/js/{handleSiteDeploy-F77NQQTE.cjs.map → handleSiteDeploy-257ZNTYA.cjs.map} +0 -0
  157. /package/build/js/{siteDeleteCommand-XZF4TDGA.cjs.map → siteDeleteCommand-NY5W7NE3.cjs.map} +0 -0
  158. /package/build/js/{siteUploadCommand-LF4U2XI6.cjs.map → siteUploadCommand-OHSOCUL6.cjs.map} +0 -0
  159. /package/build/js/{siteVersionsCommand-N33FEMLE.cjs.map → siteVersionsCommand-IE5QH56U.cjs.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/cli.ts","../../src/commands/site/delete/index.ts","../../src/commands/site/deploy/index.ts","../../src/commands/site/upload/index.ts","../../src/commands/site/versions/index.ts","../../src/commands/site/index.ts","../../src/commands/typescript/generate/generate.ts","../../src/commands/typescript/index.ts","../../src/readCliVersionFromPackageJson.ts","../../src/yargs/logVersionMiddleware.ts"],"names":["yargs","hideBin","command","argv","args","delete_default","deploy_default","upload_default","versions_default","site","a","site_default","generate_default","typescript_default","fs","readCliVersionFromPackageJson","findUp","result","packageJson","firstTime","logVersionMiddleware","consola","cli","base","_args","e","ExitProcessError"],"mappings":"sEAgBA,OAAOA,MAAW,QAClB,OAAS,WAAAC,MAAe,gBCDjB,IAAMC,EAAU,CACrB,QAAS,SACT,SAAU,6BACV,QAASC,GACAA,EAAK,OAAO,cAAe,CAChC,KAAM,SACN,aAAc,EAChB,CAAC,EAAE,OAAO,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MC,EAAQG,CAAI,CAAC,EAAE,IAAI,MAAM,EAAE,QAAQ,EAAK,EAAE,OAAO,UAAW,CAC7E,MAAO,IACP,KAAM,UACN,YAAa,yBACb,MAAO,EACT,CAAC,EAAE,cAAc,EAAE,WAAWgB,EAAsB,EAAI,EAAE,OAAO,EAAE,QAAQ,CACzE,QAAS,WACT,QAAS,CAAC,cAAc,EACxB,QAAS,MAAMjB,GACNA,EAAK,QAAQQ,CAAI,EAAE,QAAQE,CAAU,EAAE,cAAc,EAE9D,QAASW,GAAS,CAAC,CACrB,CAAC,EACD,GAAI,CACF,OAAOD,EAAK,WAAW,CACzB,OAASE,EAAG,CACNA,aAAaC,IACC,KAAM,QAAO,SAAS,GAC9B,QAAQ,MAAMD,EAAE,OAAO,CAEnC,CACF","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport yargs from \"yargs\";\nimport { hideBin } from \"yargs/helpers\";\nimport site from \"./commands/site/index.js\";\nimport typescript from \"./commands/typescript/index.js\";\nimport { ExitProcessError } from \"./ExitProcessError.js\";\nimport { logVersionMiddleware } from \"./yargs/logVersionMiddleware.js\";\nexport async function cli(args = process.argv) {\n const base = yargs(hideBin(args)).env(\"OSDK\").version(false).option(\"verbose\", {\n alias: \"v\",\n type: \"boolean\",\n description: \"Enable verbose logging\",\n count: true\n }).demandCommand().middleware(logVersionMiddleware, true).strict().command({\n command: \"unstable\",\n aliases: [\"experimental\"],\n builder: async argv => {\n return argv.command(site).command(typescript).demandCommand();\n },\n handler: _args => {}\n });\n try {\n return base.parseAsync();\n } catch (e) {\n if (e instanceof ExitProcessError) {\n const Consola = await import(\"consola\");\n Consola.consola.error(e.message);\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 command = {\n command: \"delete\",\n describe: \"Delete an uploaded version\",\n builder: argv => {\n return argv.option(\"siteVersion\", {\n type: \"string\",\n demandOption: true\n }).option(\"dir\", {\n type: \"string\"\n });\n },\n handler: async args => {\n const command = await import(\"./siteDeleteCommand.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\nexport const command = {\n command: \"deploy\",\n describe: \"Deploy an uploaded version\",\n builder: argv => {\n return argv.options({\n \"siteVersion\": {\n type: \"string\",\n conflicts: \"clearVersion\"\n // group: \"Deploy Version\",\n // implies: { \"clearVersion\": \"false\" },\n },\n\n undeploy: {\n alias: \"clearVersion\",\n description: \"Causes the site to no longer be deployed\",\n type: \"boolean\",\n conflicts: \"siteVersion\"\n // group: \"Deploy Version\",\n // implies: { \"siteVersion\": \"\" },\n }\n }).group([\"siteVersion\", \"clearVersion\"], \"Version To Deploy (requires one of)\");\n\n // .check((args) => {\n // if (\n // (args.siteVersion && args.clearVersion)\n // || (!args.siteVersion && args.clearVersion == undefined)\n // ) {\n // // consola.error(\"Only one of --siteVersion or --clearVersion may be provided\");\n // throw new Error(\n // \"Only one of --siteVersion or --clearVersion may be provided\",\n // );\n // }\n // });\n },\n\n handler: async args => {\n const command = await import(\"./handleSiteDeploy.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\nexport const command = {\n command: \"upload\",\n describe: \"Upload an application version\",\n builder: argv => {\n return argv.option(\"siteVersion\", {\n type: \"string\",\n demandOption: true\n }).option(\"dir\", {\n type: \"string\"\n });\n },\n handler: async args => {\n const command = await import(\"./siteUploadCommand.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\nexport const command = {\n command: \"versions\",\n describe: \"List application versions\",\n builder: argv => {\n return argv;\n },\n handler: async args => {\n const command = await import(\"./siteVersionsCommand.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 siteDelete from \"./delete/index.js\";\nimport siteDeploy from \"./deploy/index.js\";\nimport upload from \"./upload/index.js\";\nimport versions from \"./versions/index.js\";\nconst site = {\n command: \"site\",\n describe: \"Manage your site\",\n builder: argv => {\n return argv.options({\n appRid: {\n type: \"string\",\n demandOption: true,\n coerce: a => a\n },\n baseUrl: {\n type: \"string\",\n demandOption: true\n }\n }).group([\"appRid\", \"baseUrl\"], \"Common Arguments\").command(versions).command(upload).command(siteDelete).command(siteDeploy).demandCommand();\n },\n handler: async args => {}\n};\nexport default site;","/*\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: \"generate\",\n describe: \"Generate typescript 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: true\n }\n }).group([\"outDir\", \"ontologyPath\"], \"Version To Deploy (requires one of)\");\n },\n handler: async args => {\n const command = await import(\"./handleGenerate.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 generate from \"./generate/generate.js\";\nconst site = {\n command: \"typescript\",\n describe: \"Manage code\",\n builder: argv => {\n return argv.command(generate).demandCommand();\n },\n handler: async args => {}\n};\nexport default site;","/*\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 * as fs from \"node:fs\";\nexport async function readCliVersionFromPackageJson() {\n const {\n findUp\n } = await import(\"find-up\");\n const result = await findUp(\"package.json\", {\n cwd: import.meta.url\n });\n if (!result) {\n return \"(unknown version. No package.json found)\";\n }\n const packageJson = JSON.parse(await fs.promises.readFile(result, \"utf-8\"));\n if (packageJson.version) {\n return `v${packageJson.version}`;\n } else {\n return \"(unknown version. No version in package.json found)\";\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 { readCliVersionFromPackageJson } from \"../readCliVersionFromPackageJson.js\";\nlet firstTime = true;\nexport async function logVersionMiddleware(args) {\n if (firstTime) {\n const Consola = await import(\"consola\");\n // This will be called before any command is executed\n const consola = Consola.consola;\n consola.info(`Palantir OSDK CLI ${await readCliVersionFromPackageJson()}`);\n consola.level = 3 + args.verbose; // so 1 -v is debug logs and -vv is trace\n if (consola.level > 3) {\n consola.debug(`Verbose logging enabled (${consola.level === 4 ? \"debug\" : \"trace\"})`);\n }\n\n // eslint-disable-next-line no-console\n console.log(); // Not consola. Just want a blank line\n firstTime = false;\n }\n}"]}
1
+ {"version":3,"sources":["../../src/cli.ts","../../src/commands/auth/login/index.ts","../../src/commands/auth/index.ts","../../src/commands/site/delete/index.ts","../../src/commands/site/deploy/index.ts","../../src/commands/site/upload/index.ts","../../src/commands/site/versions/index.ts","../../src/commands/site/index.ts","../../src/commands/typescript/generate/generate.ts","../../src/commands/typescript/index.ts","../../src/readCliVersionFromPackageJson.ts","../../src/yargs/logVersionMiddleware.ts"],"names":["yargs","hideBin","command","argv","args","login_default","site","auth_default","delete_default","deploy_default","upload_default","versions_default","a","site_default","generate_default","typescript_default","fs","readCliVersionFromPackageJson","findUp","result","packageJson","firstTime","logVersionMiddleware","consola","cli","base","_args","e","ExitProcessError"],"mappings":"sEAgBA,OAAOA,MAAW,QAClB,OAAS,WAAAC,MAAe,gBCDjB,IAAMC,EAAU,CACrB,QAAS,QACT,SAAU,sCACV,QAASC,GACAA,EAAK,OAAO,gBAAiB,CAClC,KAAM,SACN,aAAc,EAChB,CAAC,EAEH,QAAS,MAAMC,GAAQ,CAErB,MADgB,KAAM,QAAO,0BAAgB,GAC/B,QAAQA,CAAI,CAC5B,CACF,EACOC,EAAQH,ECbf,IAAMI,EAAO,CACX,QAAS,OACT,SAAU,sBACV,QAASH,GACAA,EAAK,QAAQ,CAClB,QAAS,CACP,KAAM,SACN,aAAc,EAChB,CACF,CAAC,EAAE,QAAQE,CAAK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,QAAO,SAAS,EACpBC,EAAS,MAAMD,EAAO,eAAgB,CAC1C,IAAK,YAAY,GACnB,CAAC,EACD,GAAI,CAACC,EACH,MAAO,2CAET,IAAMC,EAAc,KAAK,MAAM,MAAS,WAAS,SAASD,EAAQ,OAAO,CAAC,EAC1E,OAAIC,EAAY,QACP,IAAIA,EAAY,OAAO,GAEvB,qDAEX,CChBA,IAAIC,EAAY,GAChB,eAAsBC,EAAqBlB,EAAM,CAC/C,GAAIiB,EAAW,CAGb,IAAME,GAFU,KAAM,QAAO,SAAS,GAEd,QACxBA,EAAQ,KAAK,qBAAqB,MAAMN,EAA8B,CAAC,EAAE,EACzEM,EAAQ,MAAQ,EAAInB,EAAK,QACrBmB,EAAQ,MAAQ,GAClBA,EAAQ,MAAM,4BAA4BA,EAAQ,QAAU,EAAI,QAAU,OAAO,GAAG,EAItF,QAAQ,IAAI,EACZF,EAAY,EACd,CACF,CXVA,eAAsBG,EAAIpB,EAAO,QAAQ,KAAM,CAC7C,IAAMqB,EAAOzB,EAAMC,EAAQG,CAAI,CAAC,EAAE,IAAI,MAAM,EAAE,QAAQ,EAAK,EAAE,OAAO,UAAW,CAC7E,MAAO,IACP,KAAM,UACN,YAAa,yBACb,MAAO,EACT,CAAC,EAAE,cAAc,EAAE,WAAWkB,EAAsB,EAAI,EAAE,OAAO,EAAE,QAAQ,CACzE,QAAS,WACT,QAAS,CAAC,cAAc,EACxB,QAAS,MAAMnB,GACNA,EAAK,QAAQU,CAAI,EAAE,QAAQE,CAAU,EAAE,QAAQR,CAAI,EAAE,cAAc,EAE5E,QAASmB,GAAS,CAAC,CACrB,CAAC,EACD,GAAI,CACF,OAAOD,EAAK,WAAW,CACzB,OAASE,EAAG,CACNA,aAAaC,IACC,KAAM,QAAO,SAAS,GAC9B,QAAQ,MAAMD,EAAE,OAAO,CAEnC,CACF","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport yargs from \"yargs\";\nimport { hideBin } from \"yargs/helpers\";\nimport auth from \"./commands/auth/index.js\";\nimport site from \"./commands/site/index.js\";\nimport typescript from \"./commands/typescript/index.js\";\nimport { ExitProcessError } from \"./ExitProcessError.js\";\nimport { logVersionMiddleware } from \"./yargs/logVersionMiddleware.js\";\nexport async function cli(args = process.argv) {\n const base = yargs(hideBin(args)).env(\"OSDK\").version(false).option(\"verbose\", {\n alias: \"v\",\n type: \"boolean\",\n description: \"Enable verbose logging\",\n count: true\n }).demandCommand().middleware(logVersionMiddleware, true).strict().command({\n command: \"unstable\",\n aliases: [\"experimental\"],\n builder: async argv => {\n return argv.command(site).command(typescript).command(auth).demandCommand();\n },\n handler: _args => {}\n });\n try {\n return base.parseAsync();\n } catch (e) {\n if (e instanceof ExitProcessError) {\n const Consola = await import(\"consola\");\n Consola.consola.error(e.message);\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 command = {\n command: \"login\",\n describe: \"Authenticate with an application ID\",\n builder: argv => {\n return argv.option(\"applicationId\", {\n type: \"string\",\n demandOption: true\n });\n },\n handler: async args => {\n const command = await import(\"./loginFlow.js\");\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 login from \"./login/index.js\";\nconst site = {\n command: \"auth\",\n describe: \"Manage your session\",\n builder: argv => {\n return argv.options({\n baseUrl: {\n type: \"string\",\n demandOption: true\n }\n }).command(login).demandCommand();\n },\n handler: async args => {}\n};\nexport default site;","/*\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: \"delete\",\n describe: \"Delete an uploaded version\",\n builder: argv => {\n return argv.option(\"siteVersion\", {\n type: \"string\",\n demandOption: true\n }).option(\"dir\", {\n type: \"string\"\n });\n },\n handler: async args => {\n const command = await import(\"./siteDeleteCommand.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\nexport const command = {\n command: \"deploy\",\n describe: \"Deploy an uploaded version\",\n builder: argv => {\n return argv.options({\n \"siteVersion\": {\n type: \"string\",\n conflicts: \"clearVersion\"\n // group: \"Deploy Version\",\n // implies: { \"clearVersion\": \"false\" },\n },\n\n undeploy: {\n alias: \"clearVersion\",\n description: \"Causes the site to no longer be deployed\",\n type: \"boolean\",\n conflicts: \"siteVersion\"\n // group: \"Deploy Version\",\n // implies: { \"siteVersion\": \"\" },\n }\n }).group([\"siteVersion\", \"clearVersion\"], \"Version To Deploy (requires one of)\");\n\n // .check((args) => {\n // if (\n // (args.siteVersion && args.clearVersion)\n // || (!args.siteVersion && args.clearVersion == undefined)\n // ) {\n // // consola.error(\"Only one of --siteVersion or --clearVersion may be provided\");\n // throw new Error(\n // \"Only one of --siteVersion or --clearVersion may be provided\",\n // );\n // }\n // });\n },\n\n handler: async args => {\n const command = await import(\"./handleSiteDeploy.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\nexport const command = {\n command: \"upload\",\n describe: \"Upload an application version\",\n builder: argv => {\n return argv.option(\"siteVersion\", {\n type: \"string\",\n demandOption: true\n }).option(\"dir\", {\n type: \"string\"\n });\n },\n handler: async args => {\n const command = await import(\"./siteUploadCommand.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\nexport const command = {\n command: \"versions\",\n describe: \"List application versions\",\n builder: argv => {\n return argv;\n },\n handler: async args => {\n const command = await import(\"./siteVersionsCommand.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 siteDelete from \"./delete/index.js\";\nimport siteDeploy from \"./deploy/index.js\";\nimport upload from \"./upload/index.js\";\nimport versions from \"./versions/index.js\";\nconst site = {\n command: \"site\",\n describe: \"Manage your site\",\n builder: argv => {\n return argv.options({\n appRid: {\n type: \"string\",\n demandOption: true,\n coerce: a => a\n },\n baseUrl: {\n type: \"string\",\n demandOption: true\n }\n }).group([\"appRid\", \"baseUrl\"], \"Common Arguments\").command(versions).command(upload).command(siteDelete).command(siteDeploy).demandCommand();\n },\n handler: async args => {}\n};\nexport default site;","/*\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: \"generate\",\n describe: \"Generate typescript 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: [\"stack\", \"clientId\"]\n },\n stack: {\n description: \"the URL to the stack that contains the ontology\",\n type: \"string\",\n demandOption: false,\n conflicts: \"ontologyPath\",\n implies: \"clientId\"\n },\n clientId: {\n description: \"the application's client id\",\n type: \"string\",\n demandOption: false,\n conflicts: \"ontologyPath\",\n implies: \"stack\"\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 }).group([\"ontologyPath\", \"outDir\"], \"Generate from a local file\").group([\"stack\", \"clientId\", \"outDir\"], \"OR Generate from a stack\").check(argv => {\n if (argv.ontologyPath || argv.stack) {\n return true;\n } else {\n throw new Error(\"Error: Must specify either ontologyPath or stack and clientId\");\n }\n });\n },\n handler: async args => {\n const command = await import(\"./handleGenerate.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 generate from \"./generate/generate.js\";\nconst site = {\n command: \"typescript\",\n describe: \"Manage code\",\n builder: argv => {\n return argv.command(generate).demandCommand();\n },\n handler: async args => {}\n};\nexport default site;","/*\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 * as fs from \"node:fs\";\nexport async function readCliVersionFromPackageJson() {\n const {\n findUp\n } = await import(\"find-up\");\n const result = await findUp(\"package.json\", {\n cwd: import.meta.url\n });\n if (!result) {\n return \"(unknown version. No package.json found)\";\n }\n const packageJson = JSON.parse(await fs.promises.readFile(result, \"utf-8\"));\n if (packageJson.version) {\n return `v${packageJson.version}`;\n } else {\n return \"(unknown version. No version in package.json found)\";\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 { readCliVersionFromPackageJson } from \"../readCliVersionFromPackageJson.js\";\nlet firstTime = true;\nexport async function logVersionMiddleware(args) {\n if (firstTime) {\n const Consola = await import(\"consola\");\n // This will be called before any command is executed\n const consola = Consola.consola;\n consola.info(`Palantir OSDK CLI ${await readCliVersionFromPackageJson()}`);\n consola.level = 3 + args.verbose; // so 1 -v is debug logs and -vv is trace\n if (consola.level > 3) {\n consola.debug(`Verbose logging enabled (${consola.level === 4 ? \"debug\" : \"trace\"})`);\n }\n\n // eslint-disable-next-line no-console\n console.log(); // Not consola. Just want a blank line\n firstTime = false;\n }\n}"]}
@@ -0,0 +1,11 @@
1
+ import { a as a$1 } from './chunk-MGT3UGXW.mjs';
2
+ import './chunk-XIJ2ZQRX.mjs';
3
+ import D from 'yargs';
4
+ import { hideBin } from 'yargs/helpers';
5
+ import * as u from 'fs';
6
+
7
+ var b={command:"login",describe:"Authenticate with an application ID",builder:e=>e.option("applicationId",{type:"string",demandOption:!0}),handler:async e=>{await(await import('./loginFlow-JIH374QN.mjs')).default(e);}},a=b;var h={command:"auth",describe:"Manage your session",builder:e=>e.options({baseUrl:{type:"string",demandOption:!0}}).command(a).demandCommand(),handler:async e=>{}},r=h;var w={command:"delete",describe:"Delete an uploaded version",builder:e=>e.option("siteVersion",{type:"string",demandOption:!0}).option("dir",{type:"string"}),handler:async e=>{await(await import('./siteDeleteCommand-ZKHKGVVF.mjs')).default(e);}},i=w;var v={command:"deploy",describe:"Deploy an uploaded version",builder:e=>e.options({siteVersion:{type:"string",conflicts:"clearVersion"},undeploy:{alias:"clearVersion",description:"Causes the site to no longer be deployed",type:"boolean",conflicts:"siteVersion"}}).group(["siteVersion","clearVersion"],"Version To Deploy (requires one of)"),handler:async e=>{await(await import('./handleSiteDeploy-QCMJWAYI.mjs')).default(e);}},s=v;var x={command:"upload",describe:"Upload an application version",builder:e=>e.option("siteVersion",{type:"string",demandOption:!0}).option("dir",{type:"string"}),handler:async e=>{await(await import('./siteUploadCommand-PZEJVKRE.mjs')).default(e);}},d=x;var k={command:"versions",describe:"List application versions",builder:e=>e,handler:async e=>{await(await import('./siteVersionsCommand-NVJD5BDH.mjs')).default(e);}},c=k;var O={command:"site",describe:"Manage your site",builder:e=>e.options({appRid:{type:"string",demandOption:!0,coerce:o=>o},baseUrl:{type:"string",demandOption:!0}}).group(["appRid","baseUrl"],"Common Arguments").command(c).command(d).command(i).command(s).demandCommand(),handler:async e=>{}},m=O;var C={command:"generate",describe:"Generate typescript from ontology",builder:e=>e.options({outDir:{type:"string",description:"Where to place the generated files",demandOption:!0},ontologyPath:{description:"path to the ontology wire json",type:"string",demandOption:!1,conflicts:["stack","clientId"]},stack:{description:"the URL to the stack that contains the ontology",type:"string",demandOption:!1,conflicts:"ontologyPath",implies:"clientId"},clientId:{description:"the application's client id",type:"string",demandOption:!1,conflicts:"ontologyPath",implies:"stack"},beta:{type:"boolean",description:"Should generate beta sdk",demandOption:!1},packageType:{default:"commonjs",choices:["commonjs","module"]}}).group(["ontologyPath","outDir"],"Generate from a local file").group(["stack","clientId","outDir"],"OR Generate from a stack").check(o=>{if(o.ontologyPath||o.stack)return !0;throw new Error("Error: Must specify either ontologyPath or stack and clientId")}),handler:async e=>{await(await import('./handleGenerate-4RFQDCQF.mjs')).default(e);}},l=C;var V={command:"typescript",describe:"Manage code",builder:e=>e.command(l).demandCommand(),handler:async e=>{}},p=V;async function f(){let{findUp:e}=await import('find-up'),o=await e("package.json",{cwd:import.meta.url});if(!o)return "(unknown version. No package.json found)";let t=JSON.parse(await u.promises.readFile(o,"utf-8"));return t.version?`v${t.version}`:"(unknown version. No version in package.json found)"}var g=!0;async function y(e){if(g){let t=(await import('consola')).consola;t.info(`Palantir OSDK CLI ${await f()}`),t.level=3+e.verbose,t.level>3&&t.debug(`Verbose logging enabled (${t.level===4?"debug":"trace"})`),console.log(),g=!1;}}async function I(e=process.argv){let o=D(hideBin(e)).env("OSDK").version(!1).option("verbose",{alias:"v",type:"boolean",description:"Enable verbose logging",count:!0}).demandCommand().middleware(y,!0).strict().command({command:"unstable",aliases:["experimental"],builder:async t=>t.command(m).command(p).command(r).demandCommand(),handler:t=>{}});try{return o.parseAsync()}catch(t){t instanceof a$1&&(await import('consola')).consola.error(t.message);}}
8
+
9
+ export { I as cli };
10
+ //# sourceMappingURL=out.js.map
11
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/cli.ts","../../src/commands/auth/login/index.ts","../../src/commands/auth/index.ts","../../src/commands/site/delete/index.ts","../../src/commands/site/deploy/index.ts","../../src/commands/site/upload/index.ts","../../src/commands/site/versions/index.ts","../../src/commands/site/index.ts","../../src/commands/typescript/generate/generate.ts","../../src/commands/typescript/index.ts","../../src/readCliVersionFromPackageJson.ts","../../src/yargs/logVersionMiddleware.ts"],"names":["yargs","hideBin","command","argv","args","login_default","site","auth_default","delete_default","deploy_default","upload_default","versions_default","a","site_default","generate_default","typescript_default","fs","readCliVersionFromPackageJson","findUp","result","packageJson","firstTime","logVersionMiddleware","consola","cli","base","_args","e","ExitProcessError"],"mappings":"sEAgBA,OAAOA,MAAW,QAClB,OAAS,WAAAC,MAAe,gBCDjB,IAAMC,EAAU,CACrB,QAAS,QACT,SAAU,sCACV,QAASC,GACAA,EAAK,OAAO,gBAAiB,CAClC,KAAM,SACN,aAAc,EAChB,CAAC,EAEH,QAAS,MAAMC,GAAQ,CAErB,MADgB,KAAM,QAAO,0BAAgB,GAC/B,QAAQA,CAAI,CAC5B,CACF,EACOC,EAAQH,ECbf,IAAMI,EAAO,CACX,QAAS,OACT,SAAU,sBACV,QAASH,GACAA,EAAK,QAAQ,CAClB,QAAS,CACP,KAAM,SACN,aAAc,EAChB,CACF,CAAC,EAAE,QAAQE,CAAK,EAAE,cAAc,EAElC,QAAS,MAAMD,GAAQ,CAAC,CAC1B,EACOG,EAAQD,ECdR,IAAMJ,EAAU,CACrB,QAAS,SACT,SAAU,6BACV,QAASC,GACAA,EAAK,OAAO,cAAe,CAChC,KAAM,SACN,aAAc,EAChB,CAAC,EAAE,OAAO,MAAO,CACf,KAAM,QACR,CAAC,EAEH,QAAS,MAAMC,GAAQ,CAErB,MADgB,KAAM,QAAO,kCAAyB,GACxC,QAAQA,CAAI,CAC5B,CACF,EACOI,EAAQN,EChBR,IAAMA,EAAU,CACrB,QAAS,SACT,SAAU,6BACV,QAASC,GACAA,EAAK,QAAQ,CAClB,YAAe,CACb,KAAM,SACN,UAAW,cAGb,EAEA,SAAU,CACR,MAAO,eACP,YAAa,2CACb,KAAM,UACN,UAAW,aAGb,CACF,CAAC,EAAE,MAAM,CAAC,cAAe,cAAc,EAAG,qCAAqC,EA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,EACd,CACF,CXVA,eAAsBG,EAAIpB,EAAO,QAAQ,KAAM,CAC7C,IAAMqB,EAAOzB,EAAMC,EAAQG,CAAI,CAAC,EAAE,IAAI,MAAM,EAAE,QAAQ,EAAK,EAAE,OAAO,UAAW,CAC7E,MAAO,IACP,KAAM,UACN,YAAa,yBACb,MAAO,EACT,CAAC,EAAE,cAAc,EAAE,WAAWkB,EAAsB,EAAI,EAAE,OAAO,EAAE,QAAQ,CACzE,QAAS,WACT,QAAS,CAAC,cAAc,EACxB,QAAS,MAAMnB,GACNA,EAAK,QAAQU,CAAI,EAAE,QAAQE,CAAU,EAAE,QAAQR,CAAI,EAAE,cAAc,EAE5E,QAASmB,GAAS,CAAC,CACrB,CAAC,EACD,GAAI,CACF,OAAOD,EAAK,WAAW,CACzB,OAASE,EAAG,CACNA,aAAaC,IACC,KAAM,QAAO,SAAS,GAC9B,QAAQ,MAAMD,EAAE,OAAO,CAEnC,CACF","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport yargs from \"yargs\";\nimport { hideBin } from \"yargs/helpers\";\nimport auth from \"./commands/auth/index.js\";\nimport site from \"./commands/site/index.js\";\nimport typescript from \"./commands/typescript/index.js\";\nimport { ExitProcessError } from \"./ExitProcessError.js\";\nimport { logVersionMiddleware } from \"./yargs/logVersionMiddleware.js\";\nexport async function cli(args = process.argv) {\n const base = yargs(hideBin(args)).env(\"OSDK\").version(false).option(\"verbose\", {\n alias: \"v\",\n type: \"boolean\",\n description: \"Enable verbose logging\",\n count: true\n }).demandCommand().middleware(logVersionMiddleware, true).strict().command({\n command: \"unstable\",\n aliases: [\"experimental\"],\n builder: async argv => {\n return argv.command(site).command(typescript).command(auth).demandCommand();\n },\n handler: _args => {}\n });\n try {\n return base.parseAsync();\n } catch (e) {\n if (e instanceof ExitProcessError) {\n const Consola = await import(\"consola\");\n Consola.consola.error(e.message);\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 command = {\n command: \"login\",\n describe: \"Authenticate with an application ID\",\n builder: argv => {\n return argv.option(\"applicationId\", {\n type: \"string\",\n demandOption: true\n });\n },\n handler: async args => {\n const command = await import(\"./loginFlow.js\");\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 login from \"./login/index.js\";\nconst site = {\n command: \"auth\",\n describe: \"Manage your session\",\n builder: argv => {\n return argv.options({\n baseUrl: {\n type: \"string\",\n demandOption: true\n }\n }).command(login).demandCommand();\n },\n handler: async args => {}\n};\nexport default site;","/*\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: \"delete\",\n describe: \"Delete an uploaded version\",\n builder: argv => {\n return argv.option(\"siteVersion\", {\n type: \"string\",\n demandOption: true\n }).option(\"dir\", {\n type: \"string\"\n });\n },\n handler: async args => {\n const command = await import(\"./siteDeleteCommand.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\nexport const command = {\n command: \"deploy\",\n describe: \"Deploy an uploaded version\",\n builder: argv => {\n return argv.options({\n \"siteVersion\": {\n type: \"string\",\n conflicts: \"clearVersion\"\n // group: \"Deploy Version\",\n // implies: { \"clearVersion\": \"false\" },\n },\n\n undeploy: {\n alias: \"clearVersion\",\n description: \"Causes the site to no longer be deployed\",\n type: \"boolean\",\n conflicts: \"siteVersion\"\n // group: \"Deploy Version\",\n // implies: { \"siteVersion\": \"\" },\n }\n }).group([\"siteVersion\", \"clearVersion\"], \"Version To Deploy (requires one of)\");\n\n // .check((args) => {\n // if (\n // (args.siteVersion && args.clearVersion)\n // || (!args.siteVersion && args.clearVersion == undefined)\n // ) {\n // // consola.error(\"Only one of --siteVersion or --clearVersion may be provided\");\n // throw new Error(\n // \"Only one of --siteVersion or --clearVersion may be provided\",\n // );\n // }\n // });\n },\n\n handler: async args => {\n const command = await import(\"./handleSiteDeploy.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\nexport const command = {\n command: \"upload\",\n describe: \"Upload an application version\",\n builder: argv => {\n return argv.option(\"siteVersion\", {\n type: \"string\",\n demandOption: true\n }).option(\"dir\", {\n type: \"string\"\n });\n },\n handler: async args => {\n const command = await import(\"./siteUploadCommand.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\nexport const command = {\n command: \"versions\",\n describe: \"List application versions\",\n builder: argv => {\n return argv;\n },\n handler: async args => {\n const command = await import(\"./siteVersionsCommand.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 siteDelete from \"./delete/index.js\";\nimport siteDeploy from \"./deploy/index.js\";\nimport upload from \"./upload/index.js\";\nimport versions from \"./versions/index.js\";\nconst site = {\n command: \"site\",\n describe: \"Manage your site\",\n builder: argv => {\n return argv.options({\n appRid: {\n type: \"string\",\n demandOption: true,\n coerce: a => a\n },\n baseUrl: {\n type: \"string\",\n demandOption: true\n }\n }).group([\"appRid\", \"baseUrl\"], \"Common Arguments\").command(versions).command(upload).command(siteDelete).command(siteDeploy).demandCommand();\n },\n handler: async args => {}\n};\nexport default site;","/*\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: \"generate\",\n describe: \"Generate typescript 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: [\"stack\", \"clientId\"]\n },\n stack: {\n description: \"the URL to the stack that contains the ontology\",\n type: \"string\",\n demandOption: false,\n conflicts: \"ontologyPath\",\n implies: \"clientId\"\n },\n clientId: {\n description: \"the application's client id\",\n type: \"string\",\n demandOption: false,\n conflicts: \"ontologyPath\",\n implies: \"stack\"\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 }).group([\"ontologyPath\", \"outDir\"], \"Generate from a local file\").group([\"stack\", \"clientId\", \"outDir\"], \"OR Generate from a stack\").check(argv => {\n if (argv.ontologyPath || argv.stack) {\n return true;\n } else {\n throw new Error(\"Error: Must specify either ontologyPath or stack and clientId\");\n }\n });\n },\n handler: async args => {\n const command = await import(\"./handleGenerate.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 generate from \"./generate/generate.js\";\nconst site = {\n command: \"typescript\",\n describe: \"Manage code\",\n builder: argv => {\n return argv.command(generate).demandCommand();\n },\n handler: async args => {}\n};\nexport default site;","/*\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 * as fs from \"node:fs\";\nexport async function readCliVersionFromPackageJson() {\n const {\n findUp\n } = await import(\"find-up\");\n const result = await findUp(\"package.json\", {\n cwd: import.meta.url\n });\n if (!result) {\n return \"(unknown version. No package.json found)\";\n }\n const packageJson = JSON.parse(await fs.promises.readFile(result, \"utf-8\"));\n if (packageJson.version) {\n return `v${packageJson.version}`;\n } else {\n return \"(unknown version. No version in package.json found)\";\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 { readCliVersionFromPackageJson } from \"../readCliVersionFromPackageJson.js\";\nlet firstTime = true;\nexport async function logVersionMiddleware(args) {\n if (firstTime) {\n const Consola = await import(\"consola\");\n // This will be called before any command is executed\n const consola = Consola.consola;\n consola.info(`Palantir OSDK CLI ${await readCliVersionFromPackageJson()}`);\n consola.level = 3 + args.verbose; // so 1 -v is debug logs and -vv is trace\n if (consola.level > 3) {\n consola.debug(`Verbose logging enabled (${consola.level === 4 ? \"debug\" : \"trace\"})`);\n }\n\n // eslint-disable-next-line no-console\n console.log(); // Not consola. Just want a blank line\n firstTime = false;\n }\n}"]}
@@ -0,0 +1,4 @@
1
+ export { a as default } from './chunk-YHQGXNMB.mjs';
2
+ import './chunk-XIJ2ZQRX.mjs';
3
+ //# sourceMappingURL=out.js.map
4
+ //# sourceMappingURL=loginFlow-JIH374QN.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ var chunkZ6SJPM6K_cjs = require('./chunk-Z6SJPM6K.cjs');
4
+ require('./chunk-X6QW63OH.cjs');
5
+
6
+
7
+
8
+ module.exports = chunkZ6SJPM6K_cjs.a;
9
+ //# sourceMappingURL=out.js.map
10
+ //# sourceMappingURL=loginFlow-MPM6J3CY.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkKSJ4QHUS_cjs = require('./chunk-KSJ4QHUS.cjs');
3
+ var chunkUOKM237I_cjs = require('./chunk-UOKM237I.cjs');
4
4
  require('./chunk-V4QJCMF6.cjs');
5
5
  require('./chunk-X6QW63OH.cjs');
6
6
  var consola = require('consola');
7
7
 
8
- async function i(e){await chunkKSJ4QHUS_cjs.b.SiteAssetArtifactsService.deleteSiteVersion(e.baseUrl,e.appRid,e.siteVersion),consola.consola.success("Delete successful");}
8
+ async function i(e){await chunkUOKM237I_cjs.b.SiteAssetArtifactsService.deleteSiteVersion(e.baseUrl,e.appRid,e.siteVersion),consola.consola.success("Delete successful");}
9
9
 
10
10
  module.exports = i;
11
11
  //# sourceMappingURL=out.js.map
12
- //# sourceMappingURL=siteDeleteCommand-XZF4TDGA.cjs.map
12
+ //# sourceMappingURL=siteDeleteCommand-NY5W7NE3.cjs.map
@@ -1,10 +1,10 @@
1
- import { b } from './chunk-FE6HR4TN.js';
2
- import './chunk-2DJZUIFP.js';
3
- import './chunk-4D6JZ4TL.js';
1
+ import { b } from './chunk-TSZWWATC.mjs';
2
+ import './chunk-MGT3UGXW.mjs';
3
+ import './chunk-XIJ2ZQRX.mjs';
4
4
  import { consola } from 'consola';
5
5
 
6
6
  async function i(e){await b.SiteAssetArtifactsService.deleteSiteVersion(e.baseUrl,e.appRid,e.siteVersion),consola.success("Delete successful");}
7
7
 
8
8
  export { i as default };
9
9
  //# sourceMappingURL=out.js.map
10
- //# sourceMappingURL=siteDeleteCommand-PN2LUAZA.js.map
10
+ //# sourceMappingURL=siteDeleteCommand-ZKHKGVVF.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/commands/site/delete/siteDeleteCommand.mts"],"names":["consola","siteDeleteCommand","args","artifacts_exports"],"mappings":"gGAgBA,OAAS,WAAAA,MAAe,UAExB,eAAOC,EAAyCC,EAAM,CACpD,MAAMC,EAAU,0BAA0B,kBAAkBD,EAAK,QAASA,EAAK,OAAQA,EAAK,WAAW,EACvGF,EAAQ,QAAQ,mBAAmB,CACrC","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\nimport { artifacts } from \"../../../net/index.mjs\";\nexport default async function siteDeleteCommand(args) {\n await artifacts.SiteAssetArtifactsService.deleteSiteVersion(args.baseUrl, args.appRid, args.siteVersion);\n consola.success(\"Delete successful\");\n}"]}
1
+ {"version":3,"sources":["../../src/commands/site/delete/siteDeleteCommand.mts"],"names":["consola","siteDeleteCommand","args","artifacts_exports"],"mappings":"mGAgBA,OAAS,WAAAA,MAAe,UAExB,eAAOC,EAAyCC,EAAM,CACpD,MAAMC,EAAU,0BAA0B,kBAAkBD,EAAK,QAASA,EAAK,OAAQA,EAAK,WAAW,EACvGF,EAAQ,QAAQ,mBAAmB,CACrC","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\nimport { artifacts } from \"../../../net/index.mjs\";\nexport default async function siteDeleteCommand(args) {\n await artifacts.SiteAssetArtifactsService.deleteSiteVersion(args.baseUrl, args.appRid, args.siteVersion);\n consola.success(\"Delete successful\");\n}"]}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkKSJ4QHUS_cjs = require('./chunk-KSJ4QHUS.cjs');
3
+ var chunkUOKM237I_cjs = require('./chunk-UOKM237I.cjs');
4
4
  var chunkV4QJCMF6_cjs = require('./chunk-V4QJCMF6.cjs');
5
5
  require('./chunk-X6QW63OH.cjs');
6
6
  var a = require('archiver');
@@ -31,8 +31,8 @@ function _interopNamespace(e) {
31
31
  var a__default = /*#__PURE__*/_interopDefault(a);
32
32
  var s__namespace = /*#__PURE__*/_interopNamespace(s);
33
33
 
34
- async function c(i){if(i.dir==null)throw consola.consola.error("No directory specified"),new chunkV4QJCMF6_cjs.a(1);if(!(await s__namespace.promises.stat(i.dir)).isDirectory())throw consola.consola.error("Specified path is not a directory"),new chunkV4QJCMF6_cjs.a(2);consola.consola.start("Zippping site files");let e=a__default.default("zip").directory(i.dir,!1);await Promise.all([chunkKSJ4QHUS_cjs.b.SiteAssetArtifactsService.uploadZippedSiteAsset(i.baseUrl,i.appRid,i.siteVersion,stream.Readable.toWeb(e)),e.finalize()]),consola.consola.success("Upload complete");}
34
+ async function c(i){if(i.dir==null)throw consola.consola.error("No directory specified"),new chunkV4QJCMF6_cjs.a(1);if(!(await s__namespace.promises.stat(i.dir)).isDirectory())throw consola.consola.error("Specified path is not a directory"),new chunkV4QJCMF6_cjs.a(2);consola.consola.start("Zippping site files");let e=a__default.default("zip").directory(i.dir,!1);await Promise.all([chunkUOKM237I_cjs.b.SiteAssetArtifactsService.uploadZippedSiteAsset(i.baseUrl,i.appRid,i.siteVersion,stream.Readable.toWeb(e)),e.finalize()]),consola.consola.success("Upload complete");}
35
35
 
36
36
  module.exports = c;
37
37
  //# sourceMappingURL=out.js.map
38
- //# sourceMappingURL=siteUploadCommand-LF4U2XI6.cjs.map
38
+ //# sourceMappingURL=siteUploadCommand-OHSOCUL6.cjs.map
@@ -1,6 +1,6 @@
1
- import { b } from './chunk-FE6HR4TN.js';
2
- import { a } from './chunk-2DJZUIFP.js';
3
- import './chunk-4D6JZ4TL.js';
1
+ import { b } from './chunk-TSZWWATC.mjs';
2
+ import { a } from './chunk-MGT3UGXW.mjs';
3
+ import './chunk-XIJ2ZQRX.mjs';
4
4
  import a$1 from 'archiver';
5
5
  import { consola } from 'consola';
6
6
  import * as s from 'fs';
@@ -10,4 +10,4 @@ async function c(i){if(i.dir==null)throw consola.error("No directory specified")
10
10
 
11
11
  export { c as default };
12
12
  //# sourceMappingURL=out.js.map
13
- //# sourceMappingURL=siteUploadCommand-MCV3ZQAW.js.map
13
+ //# sourceMappingURL=siteUploadCommand-PZEJVKRE.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/commands/site/upload/siteUploadCommand.mts"],"names":["archiver","consola","fs","Readable","invokeSiteUpload","args","ExitProcessError","archive","artifacts_exports"],"mappings":"4GAgBA,OAAOA,MAAc,WACrB,OAAS,WAAAC,MAAe,UACxB,UAAYC,MAAQ,KACpB,OAAS,YAAAC,MAAgB,SAGzB,eAAOC,EAAwCC,EAAM,CACnD,GAAIA,EAAK,KAAO,KACd,MAAAJ,EAAQ,MAAM,wBAAwB,EAChC,IAAIK,EAAiB,CAAC,EAG9B,GAAI,EADS,MAAS,WAAS,KAAKD,EAAK,GAAG,GAClC,YAAY,EACpB,MAAAJ,EAAQ,MAAM,mCAAmC,EAC3C,IAAIK,EAAiB,CAAC,EAE9BL,EAAQ,MAAM,qBAAqB,EACnC,IAAMM,EAAUP,EAAS,KAAK,EAAE,UAAUK,EAAK,IAAK,EAAK,EACzD,MAAM,QAAQ,IAAI,CAACG,EAAU,0BAA0B,sBAAsBH,EAAK,QAASA,EAAK,OAAQA,EAAK,YAAaF,EAAS,MAAMI,CAAO,CAChJ,EAAGA,EAAQ,SAAS,CAAC,CAAC,EACtBN,EAAQ,QAAQ,iBAAiB,CACnC","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport archiver from \"archiver\";\nimport { consola } from \"consola\";\nimport * as fs from \"node:fs\";\nimport { Readable } from \"node:stream\";\nimport { ExitProcessError } from \"../../../ExitProcessError.js\";\nimport { artifacts } from \"../../../net/index.mjs\";\nexport default async function invokeSiteUpload(args) {\n if (args.dir == null) {\n consola.error(\"No directory specified\");\n throw new ExitProcessError(1);\n }\n const stat = await fs.promises.stat(args.dir);\n if (!stat.isDirectory()) {\n consola.error(\"Specified path is not a directory\");\n throw new ExitProcessError(2);\n }\n consola.start(\"Zippping site files\");\n const archive = archiver(\"zip\").directory(args.dir, false);\n await Promise.all([artifacts.SiteAssetArtifactsService.uploadZippedSiteAsset(args.baseUrl, args.appRid, args.siteVersion, Readable.toWeb(archive) // This cast is because the dom fetch doesnt align type wise with streams\n ), archive.finalize()]);\n consola.success(\"Upload complete\");\n}"]}
1
+ {"version":3,"sources":["../../src/commands/site/upload/siteUploadCommand.mts"],"names":["archiver","consola","fs","Readable","invokeSiteUpload","args","ExitProcessError","archive","artifacts_exports"],"mappings":"+GAgBA,OAAOA,MAAc,WACrB,OAAS,WAAAC,MAAe,UACxB,UAAYC,MAAQ,KACpB,OAAS,YAAAC,MAAgB,SAGzB,eAAOC,EAAwCC,EAAM,CACnD,GAAIA,EAAK,KAAO,KACd,MAAAJ,EAAQ,MAAM,wBAAwB,EAChC,IAAIK,EAAiB,CAAC,EAG9B,GAAI,EADS,MAAS,WAAS,KAAKD,EAAK,GAAG,GAClC,YAAY,EACpB,MAAAJ,EAAQ,MAAM,mCAAmC,EAC3C,IAAIK,EAAiB,CAAC,EAE9BL,EAAQ,MAAM,qBAAqB,EACnC,IAAMM,EAAUP,EAAS,KAAK,EAAE,UAAUK,EAAK,IAAK,EAAK,EACzD,MAAM,QAAQ,IAAI,CAACG,EAAU,0BAA0B,sBAAsBH,EAAK,QAASA,EAAK,OAAQA,EAAK,YAAaF,EAAS,MAAMI,CAAO,CAChJ,EAAGA,EAAQ,SAAS,CAAC,CAAC,EACtBN,EAAQ,QAAQ,iBAAiB,CACnC","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport archiver from \"archiver\";\nimport { consola } from \"consola\";\nimport * as fs from \"node:fs\";\nimport { Readable } from \"node:stream\";\nimport { ExitProcessError } from \"../../../ExitProcessError.js\";\nimport { artifacts } from \"../../../net/index.mjs\";\nexport default async function invokeSiteUpload(args) {\n if (args.dir == null) {\n consola.error(\"No directory specified\");\n throw new ExitProcessError(1);\n }\n const stat = await fs.promises.stat(args.dir);\n if (!stat.isDirectory()) {\n consola.error(\"Specified path is not a directory\");\n throw new ExitProcessError(2);\n }\n consola.start(\"Zippping site files\");\n const archive = archiver(\"zip\").directory(args.dir, false);\n await Promise.all([artifacts.SiteAssetArtifactsService.uploadZippedSiteAsset(args.baseUrl, args.appRid, args.siteVersion, Readable.toWeb(archive) // This cast is because the dom fetch doesnt align type wise with streams\n ), archive.finalize()]);\n consola.success(\"Upload complete\");\n}"]}
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunkKSJ4QHUS_cjs = require('./chunk-KSJ4QHUS.cjs');
3
+ var chunkUOKM237I_cjs = require('./chunk-UOKM237I.cjs');
4
4
  require('./chunk-V4QJCMF6.cjs');
5
5
  require('./chunk-X6QW63OH.cjs');
6
6
  var consola = require('consola');
7
7
  var utils = require('consola/utils');
8
8
 
9
- async function v({baseUrl:o,appRid:t}){consola.consola.start("Fetching versions & deployed version");let d=await chunkKSJ4QHUS_cjs.d.fetchWebsiteRepositoryRid(o,t),l=chunkKSJ4QHUS_cjs.c(o,"/artifacts/api"),[i,r]=await Promise.all([chunkKSJ4QHUS_cjs.b.SiteAssetArtifactsService.fetchSiteVersions(o,t),chunkKSJ4QHUS_cjs.a.getDeployedVersion(l,d)]);if(i.length==0){consola.consola.warn("Successfully connected to server, but no versions were found.");return}consola.consola.success("Found versions:");for(let s of i)consola.consola.log(` - ${s}${r&&s===r.version?utils.colorize("green"," (deployed)"):""}`);}
9
+ async function v({baseUrl:o,appRid:t}){consola.consola.start("Fetching versions & deployed version");let d=await chunkUOKM237I_cjs.d.fetchWebsiteRepositoryRid(o,t),l=chunkUOKM237I_cjs.c(o,"/artifacts/api"),[i,r]=await Promise.all([chunkUOKM237I_cjs.b.SiteAssetArtifactsService.fetchSiteVersions(o,t),chunkUOKM237I_cjs.a.getDeployedVersion(l,d)]);if(i.length==0){consola.consola.warn("Successfully connected to server, but no versions were found.");return}consola.consola.success("Found versions:");for(let s of i)consola.consola.log(` - ${s}${r&&s===r.version?utils.colorize("green"," (deployed)"):""}`);}
10
10
 
11
11
  module.exports = v;
12
12
  //# sourceMappingURL=out.js.map
13
- //# sourceMappingURL=siteVersionsCommand-N33FEMLE.cjs.map
13
+ //# sourceMappingURL=siteVersionsCommand-IE5QH56U.cjs.map
@@ -1,6 +1,6 @@
1
- import { d, c, b, a } from './chunk-FE6HR4TN.js';
2
- import './chunk-2DJZUIFP.js';
3
- import './chunk-4D6JZ4TL.js';
1
+ import { d, c, b, a } from './chunk-TSZWWATC.mjs';
2
+ import './chunk-MGT3UGXW.mjs';
3
+ import './chunk-XIJ2ZQRX.mjs';
4
4
  import { consola } from 'consola';
5
5
  import { colorize } from 'consola/utils';
6
6
 
@@ -8,4 +8,4 @@ async function v({baseUrl:o,appRid:t}){consola.start("Fetching versions & deploy
8
8
 
9
9
  export { v as default };
10
10
  //# sourceMappingURL=out.js.map
11
- //# sourceMappingURL=siteVersionsCommand-ZAZVGVKV.js.map
11
+ //# sourceMappingURL=siteVersionsCommand-NVJD5BDH.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/commands/site/versions/siteVersionsCommand.mts"],"names":["consola","colorize","siteVersionsCommand","baseUrl","appRid","repositoryRid","third_party_application_service_exports","ctx","createConjureContext","versions","deployedVersion","artifacts_exports","ArtifactsSitesAdminV2Service_exports","version"],"mappings":"qHAiBA,OAAS,WAAAA,MAAe,UACxB,OAAS,YAAAC,MAAgB,gBACzB,eAAOC,EAA2C,CAChD,QAAAC,EACA,OAAAC,CACF,EAAG,CACDJ,EAAQ,MAAM,sCAAsC,EACpD,IAAMK,EAAgB,MAAMC,EAA6B,0BAA0BH,EAASC,CAAM,EAC5FG,EAAMC,EAAqBL,EAAS,gBAAgB,EACpD,CAACM,EAAUC,CAAe,EAAI,MAAM,QAAQ,IAAI,CAACC,EAAU,0BAA0B,kBAAkBR,EAASC,CAAM,EAAGQ,EAA6B,mBAAmBL,EAAKF,CAAa,CAAC,CAAC,EACnM,GAAII,EAAS,QAAU,EAAG,CACxBT,EAAQ,KAAK,+DAA+D,EAC5E,MACF,CACAA,EAAQ,QAAQ,iBAAiB,EACjC,QAAWa,KAAWJ,EACpBT,EAAQ,IAAI,SAASa,CAAO,GAAGH,GAAmBG,IAAYH,EAAgB,QAAUT,EAAS,QAAS,aAAa,EAAI,EAAE,EAAE,CAEnI","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { artifacts, ArtifactsSitesAdminV2Service, createConjureContext, thirdPartyApplicationService } from \"#net\";\nimport { consola } from \"consola\";\nimport { colorize } from \"consola/utils\";\nexport default async function siteVersionsCommand({\n baseUrl,\n appRid\n}) {\n consola.start(\"Fetching versions & deployed version\");\n const repositoryRid = await thirdPartyApplicationService.fetchWebsiteRepositoryRid(baseUrl, appRid);\n const ctx = createConjureContext(baseUrl, \"/artifacts/api\");\n const [versions, deployedVersion] = await Promise.all([artifacts.SiteAssetArtifactsService.fetchSiteVersions(baseUrl, appRid), ArtifactsSitesAdminV2Service.getDeployedVersion(ctx, repositoryRid)]);\n if (versions.length == 0) {\n consola.warn(\"Successfully connected to server, but no versions were found.\");\n return;\n }\n consola.success(\"Found versions:\");\n for (const version of versions) {\n consola.log(` - ${version}${deployedVersion && version === deployedVersion.version ? colorize(\"green\", ` (deployed)`) : \"\"}`);\n }\n}"]}
1
+ {"version":3,"sources":["../../src/commands/site/versions/siteVersionsCommand.mts"],"names":["consola","colorize","siteVersionsCommand","baseUrl","appRid","repositoryRid","third_party_application_service_exports","ctx","createConjureContext","versions","deployedVersion","artifacts_exports","ArtifactsSitesAdminV2Service_exports","version"],"mappings":"wHAiBA,OAAS,WAAAA,MAAe,UACxB,OAAS,YAAAC,MAAgB,gBACzB,eAAOC,EAA2C,CAChD,QAAAC,EACA,OAAAC,CACF,EAAG,CACDJ,EAAQ,MAAM,sCAAsC,EACpD,IAAMK,EAAgB,MAAMC,EAA6B,0BAA0BH,EAASC,CAAM,EAC5FG,EAAMC,EAAqBL,EAAS,gBAAgB,EACpD,CAACM,EAAUC,CAAe,EAAI,MAAM,QAAQ,IAAI,CAACC,EAAU,0BAA0B,kBAAkBR,EAASC,CAAM,EAAGQ,EAA6B,mBAAmBL,EAAKF,CAAa,CAAC,CAAC,EACnM,GAAII,EAAS,QAAU,EAAG,CACxBT,EAAQ,KAAK,+DAA+D,EAC5E,MACF,CACAA,EAAQ,QAAQ,iBAAiB,EACjC,QAAWa,KAAWJ,EACpBT,EAAQ,IAAI,SAASa,CAAO,GAAGH,GAAmBG,IAAYH,EAAgB,QAAUT,EAAS,QAAS,aAAa,EAAI,EAAE,EAAE,CAEnI","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { artifacts, ArtifactsSitesAdminV2Service, createConjureContext, thirdPartyApplicationService } from \"#net\";\nimport { consola } from \"consola\";\nimport { colorize } from \"consola/utils\";\nexport default async function siteVersionsCommand({\n baseUrl,\n appRid\n}) {\n consola.start(\"Fetching versions & deployed version\");\n const repositoryRid = await thirdPartyApplicationService.fetchWebsiteRepositoryRid(baseUrl, appRid);\n const ctx = createConjureContext(baseUrl, \"/artifacts/api\");\n const [versions, deployedVersion] = await Promise.all([artifacts.SiteAssetArtifactsService.fetchSiteVersions(baseUrl, appRid), ArtifactsSitesAdminV2Service.getDeployedVersion(ctx, repositoryRid)]);\n if (versions.length == 0) {\n consola.warn(\"Successfully connected to server, but no versions were found.\");\n return;\n }\n consola.success(\"Found versions:\");\n for (const version of versions) {\n consola.log(` - ${version}${deployedVersion && version === deployedVersion.version ? colorize(\"green\", ` (deployed)`) : \"\"}`);\n }\n}"]}
@@ -0,0 +1,4 @@
1
+ import type { CliCommonArgs } from "../../CliCommonArgs.js";
2
+ export interface CommonAuthArgs extends CliCommonArgs {
3
+ baseUrl: string;
4
+ }
@@ -0,0 +1,5 @@
1
+ import type * as yargs from "yargs";
2
+ import type { CliCommonArgs } from "../../CliCommonArgs.js";
3
+ import type { CommonAuthArgs } from "./CommonAuthArgs.js";
4
+ declare const site: yargs.CommandModule<CliCommonArgs, CommonAuthArgs>;
5
+ export default site;
@@ -0,0 +1,4 @@
1
+ import type { CommonAuthArgs } from "../CommonAuthArgs.js";
2
+ export interface LoginArgs extends CommonAuthArgs {
3
+ applicationId: string;
4
+ }
@@ -0,0 +1,5 @@
1
+ import type { CommandModule } from "yargs";
2
+ import type { CommonAuthArgs } from "../CommonAuthArgs.js";
3
+ import type { LoginArgs } from "./LoginArgs.js";
4
+ export declare const command: CommandModule<CommonAuthArgs, LoginArgs>;
5
+ export default command;
@@ -0,0 +1,2 @@
1
+ import type { LoginArgs } from "./LoginArgs.js";
2
+ export default function invokeLoginFlow(args: LoginArgs): Promise<import("./token.js").TokenSuccessResponse>;
@@ -0,0 +1,12 @@
1
+ export interface TokenSuccessResponse {
2
+ access_token: string;
3
+ token_type: string;
4
+ refresh_token: string;
5
+ expires_in: number;
6
+ }
7
+ export interface TokenErrorResponse {
8
+ error: string;
9
+ error_description: string;
10
+ }
11
+ export type TokenResponse = TokenErrorResponse | TokenSuccessResponse;
12
+ export declare function isTokenErrorResponse(response: TokenSuccessResponse | TokenErrorResponse): response is TokenErrorResponse;
@@ -1,4 +1,8 @@
1
1
  export interface TypescriptGenerateArgs {
2
2
  outDir: string;
3
- ontologyPath: string;
3
+ ontologyPath?: string;
4
+ stack?: string;
5
+ clientId?: string;
6
+ beta?: boolean;
7
+ packageType: "commonjs" | "module";
4
8
  }
@@ -1,3 +1,7 @@
1
1
  import { type ConjureContext } from "conjure-lite";
2
2
  import type { ClearDeletedUserRepositoriesRequest } from "../ClearDeletedUserRepositoriesRequest.js";
3
+ /**
4
+ * Kicks off a background task that will iterate over all Stemma repositories and delete all contents from
5
+ * user repositories that no longer exist in Stemma.
6
+ */
3
7
  export declare function clearDeletedUserRepositories(ctx: ConjureContext, request: ClearDeletedUserRepositoriesRequest): Promise<void>;
@@ -1,3 +1,6 @@
1
1
  import { type ConjureContext } from "conjure-lite";
2
2
  import type { ContainerRegistryDomainResponse } from "../ContainerRegistryDomainResponse.js";
3
+ /**
4
+ * Get the container registry domain, e.g, papaya-container-registry.palantircloud.com
5
+ */
3
6
  export declare function getContainerRegistryDomain(ctx: ConjureContext): Promise<ContainerRegistryDomainResponse>;
@@ -1,2 +1,8 @@
1
1
  import { type ConjureContext } from "conjure-lite";
2
+ /**
3
+ * Clears the deployed version while leaving the associated domain, visiting the associated domain in this state
4
+ * will return an error.
5
+ *
6
+ * artifacts:sites:write-deployment-info permission is needed on the repository rid to call this endpoint.
7
+ */
2
8
  export declare function clearDeployedVersion(ctx: ConjureContext, repositoryRid: string): Promise<void>;
@@ -1,3 +1,8 @@
1
1
  import { type ConjureContext } from "conjure-lite";
2
2
  import type { ContentSecurityPolicyAdditions } from "../ContentSecurityPolicyAdditions.js";
3
+ /**
4
+ * Get the CSP additions configured for a repository.
5
+ *
6
+ * artifacts:sites:read-deployment-info permission is needed on the repository rid to call this endpoint.
7
+ */
3
8
  export declare function getContentSecurityPolicyAdditions(ctx: ConjureContext, repositoryRid: string): Promise<ContentSecurityPolicyAdditions>;
@@ -1,3 +1,8 @@
1
1
  import { type ConjureContext } from "conjure-lite";
2
2
  import type { SiteVersion } from "../SiteVersion.js";
3
+ /**
4
+ * Get the deployed version that will be served for a given siteasset repository.
5
+ *
6
+ * artifacts:sites:read-deployment-info permission is needed on the repository rid to call this endpoint.
7
+ */
3
8
  export declare function getDeployedVersion(ctx: ConjureContext, repositoryRid: string): Promise<SiteVersion | undefined>;
@@ -1,3 +1,9 @@
1
1
  import { type ConjureContext } from "conjure-lite";
2
2
  import type { SiteDomainInfo } from "../SiteDomainInfo.js";
3
+ /**
4
+ * Get domains that have been successfully registered with the given repository. Visiting a successfully
5
+ * registered domain should serve the registered repository assets.
6
+ *
7
+ * artifacts:sites:read-deployment-info permission is needed on the repository rid to call this endpoint.
8
+ */
3
9
  export declare function getRegisteredSiteDomains(ctx: ConjureContext, repositoryRid: string): Promise<Array<SiteDomainInfo>>;
@@ -1,3 +1,10 @@
1
1
  import { type ConjureContext } from "conjure-lite";
2
2
  import type { SiteDomainInfo } from "../SiteDomainInfo.js";
3
+ /**
4
+ * Get domains that have been requested for a given repository. For control panel domains that require
5
+ * an approval, this will also include pending requests. Closed/rejected requests will only be included as long
6
+ * as their domain hasn't been re-requested for another repository.
7
+ *
8
+ * artifacts:sites:read-deployment-info permission is needed on the repository rid to call this endpoint.
9
+ */
3
10
  export declare function getRequestedSiteDomains(ctx: ConjureContext, repositoryRid: string): Promise<Array<SiteDomainInfo>>;
@@ -1,4 +1,9 @@
1
1
  import { type ConjureContext } from "conjure-lite";
2
2
  import type { ContentSecurityPolicyHeaderValue } from "../ContentSecurityPolicyHeaderValue.js";
3
3
  import type { PreviewContentSecurityPolicyRequest } from "../PreviewContentSecurityPolicyRequest.js";
4
+ /**
5
+ * Preview what the CSP that will be served with the site looks like.
6
+ *
7
+ * artifacts:sites:read-deployment-info permission is needed on the repository rid to call this endpoint.
8
+ */
4
9
  export declare function previewContentSecurityPolicy(ctx: ConjureContext, repositoryRid: string, request: PreviewContentSecurityPolicyRequest): Promise<ContentSecurityPolicyHeaderValue>;
@@ -1,3 +1,8 @@
1
1
  import { type ConjureContext } from "conjure-lite";
2
2
  import type { ContentSecurityPolicyAdditions } from "../ContentSecurityPolicyAdditions.js";
3
+ /**
4
+ * Set the CSP additions configured for a repository.
5
+ *
6
+ * artifacts:sites:write-deployment-info permission is needed on the repository rid to call this endpoint.
7
+ */
3
8
  export declare function putContentSecurityPolicyAdditions(ctx: ConjureContext, repositoryRid: string, contentSecurityPolicyAdditions: ContentSecurityPolicyAdditions): Promise<void>;
@@ -1,4 +1,12 @@
1
1
  import { type ConjureContext } from "conjure-lite";
2
2
  import type { SiteDomainInfo } from "../SiteDomainInfo.js";
3
3
  import type { SubmitDomainRegistrationRequest } from "../SubmitDomainRegistrationRequest.js";
4
+ /**
5
+ * Requests the registration of a domain with the provided repository, this will result in an approvals task
6
+ * getting created for approval by an admin.
7
+ *
8
+ * Once the task has been approved, visiting the domain will serve the deployed version, if any is deployed.
9
+ *
10
+ * artifacts:sites:manage-domains permission is needed on the repository rid to call this endpoint.
11
+ */
4
12
  export declare function requestSiteDomainForRepository(ctx: ConjureContext, repositoryRid: string, request: SubmitDomainRegistrationRequest): Promise<SiteDomainInfo>;
@@ -1,3 +1,11 @@
1
1
  import { type ConjureContext } from "conjure-lite";
2
2
  import type { UnregisterDomainRequest } from "../UnregisterDomainRequest.js";
3
+ /**
4
+ * Unregisters a domain from a repository, visiting the domain will no longer serve the repository assets.
5
+ *
6
+ * Depending on how the domain for the repository was setup, this might also result in deleting the domain
7
+ * itself.
8
+ *
9
+ * artifacts:sites:manage-domains permission is needed on the repository rid to call this endpoint.
10
+ */
3
11
  export declare function unregisterSiteDomain(ctx: ConjureContext, repositoryRid: string, request: UnregisterDomainRequest): Promise<void>;
@@ -1,3 +1,8 @@
1
1
  import { type ConjureContext } from "conjure-lite";
2
2
  import type { UpdateDeployedVersionRequest } from "../UpdateDeployedVersionRequest.js";
3
+ /**
4
+ * Sets the asset version of the siteasset repository that will be served.
5
+ *
6
+ * artifacts:sites:write-deployment-info permission is needed on the repository rid to call this endpoint.
7
+ */
3
8
  export declare function updateDeployedVersion(ctx: ConjureContext, repositoryRid: string, version: UpdateDeployedVersionRequest): Promise<void>;
@@ -1,5 +1,5 @@
1
1
  import type { ContentSecurityPolicyDirectiveName } from "./ContentSecurityPolicyDirectiveName.js";
2
2
  import type { ContentSecurityPolicyDirectiveValue } from "./ContentSecurityPolicyDirectiveValue.js";
3
3
  export interface ContentSecurityPolicyAdditions {
4
- policy: Map<ContentSecurityPolicyDirectiveName, Array<ContentSecurityPolicyDirectiveValue>>;
4
+ policy: Record<ContentSecurityPolicyDirectiveName, Array<ContentSecurityPolicyDirectiveValue>>;
5
5
  }
@@ -1,5 +1,11 @@
1
1
  import type { DomainName } from "./DomainName.js";
2
2
  import type { SiteDomainRegistrationRequestRid } from "./SiteDomainRegistrationRequestRid.js";
3
+ /**
4
+ * Domain that is managed through control panel and requires an enrollment-level Information Security Officer
5
+ * approval to be fully registered.
6
+ * The domain should be validated with control panel before use, its status can be fetched through
7
+ * approvals APIs.
8
+ */
3
9
  export interface ControlPanelManagedDomainInfo {
4
10
  requestRid: SiteDomainRegistrationRequestRid;
5
11
  siteDomain: DomainName;
@@ -1,2 +1,5 @@
1
1
  import { type ConjureContext } from "conjure-lite";
2
+ /**
3
+ * Get all registered domains regardless of whether they're in use or not.
4
+ */
2
5
  export declare function getRegisteredDomains(ctx: ConjureContext): Promise<Array<string>>;