@osdk/cli 0.0.19 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/bin/osdk.mjs +1 -1
  3. package/build/{js/chunk-HQDDGVB7.cjs → cjs/chunk-7G2FSZUY.cjs} +1 -1
  4. package/build/{js/chunk-VZM34PGO.cjs → cjs/chunk-J5TXVYYM.cjs} +6 -6
  5. package/build/cjs/chunk-J5TXVYYM.cjs.map +1 -0
  6. package/build/{js/handleGenerate-UTCLNZQO.cjs → cjs/handleGenerate-MNCDSJ6T.cjs} +2 -2
  7. package/build/{js/handleSiteDeploy-7E5BNDQO.cjs → cjs/handleSiteDeploy-CT4IWYMB.cjs} +7 -7
  8. package/build/{js/handleSiteDeploy-7E5BNDQO.cjs.map → cjs/handleSiteDeploy-CT4IWYMB.cjs.map} +1 -1
  9. package/build/{js → cjs}/index.cjs +11 -8
  10. package/build/cjs/index.cjs.map +1 -0
  11. package/build/{types/cli.d.ts → cjs/index.d.cts} +3 -1
  12. package/build/{js/loginFlow-BZDDHHT5.cjs → cjs/loginFlow-HJZRKA26.cjs} +2 -2
  13. package/build/cjs/package.json +1 -0
  14. package/build/{js/siteDeleteCommand-UGHBNEC4.cjs → cjs/siteDeleteCommand-SECMIIXM.cjs} +4 -4
  15. package/build/{js/siteUploadCommand-OEM2U44I.cjs → cjs/siteUploadCommand-G7O6HVUR.cjs} +4 -4
  16. package/build/{js/siteVersionsCommand-HP4IUW56.cjs → cjs/siteVersionsCommand-3WGBUAVW.cjs} +6 -6
  17. package/build/cjs/siteVersionsCommand-3WGBUAVW.cjs.map +1 -0
  18. package/build/{js/chunk-CIVC2ZV3.mjs → esm/chunk-LQH5K3SG.mjs} +2 -2
  19. package/build/esm/chunk-LQH5K3SG.mjs.map +1 -0
  20. package/build/{js/chunk-E2SEJZTC.mjs → esm/chunk-ZSTKOCBT.mjs} +1 -1
  21. package/build/{js/handleGenerate-ER4YF43Z.mjs → esm/handleGenerate-TDSDERL2.mjs} +2 -2
  22. package/build/{js/handleSiteDeploy-ZFWLLEFU.mjs → esm/handleSiteDeploy-WCFGPYWE.mjs} +3 -3
  23. package/build/{js/handleSiteDeploy-ZFWLLEFU.mjs.map → esm/handleSiteDeploy-WCFGPYWE.mjs.map} +1 -1
  24. package/build/esm/index.d.ts +8 -0
  25. package/build/{js → esm}/index.mjs +11 -8
  26. package/build/esm/index.mjs.map +1 -0
  27. package/build/{js/loginFlow-KGLTXVZ6.mjs → esm/loginFlow-AGZNMIRQ.mjs} +2 -2
  28. package/build/{js/siteDeleteCommand-FIB7KBAY.mjs → esm/siteDeleteCommand-VE3ELAWW.mjs} +3 -3
  29. package/build/{js/siteUploadCommand-5VEJTNOQ.mjs → esm/siteUploadCommand-3PARIRON.mjs} +3 -3
  30. package/build/{js/siteVersionsCommand-X666N6ZP.mjs → esm/siteVersionsCommand-Y3HZFE6A.mjs} +3 -3
  31. package/build/esm/siteVersionsCommand-Y3HZFE6A.mjs.map +1 -0
  32. package/package.json +29 -20
  33. package/build/js/chunk-CIVC2ZV3.mjs.map +0 -1
  34. package/build/js/chunk-VZM34PGO.cjs.map +0 -1
  35. package/build/js/index.cjs.map +0 -1
  36. package/build/js/index.mjs.map +0 -1
  37. package/build/js/siteVersionsCommand-HP4IUW56.cjs.map +0 -1
  38. package/build/js/siteVersionsCommand-X666N6ZP.mjs.map +0 -1
  39. package/build/types/CliCommonArgs.d.ts +0 -3
  40. package/build/types/ExitProcessError.d.ts +0 -4
  41. package/build/types/commands/auth/CommonAuthArgs.d.ts +0 -4
  42. package/build/types/commands/auth/index.d.ts +0 -5
  43. package/build/types/commands/auth/login/LoginArgs.d.ts +0 -4
  44. package/build/types/commands/auth/login/index.d.ts +0 -5
  45. package/build/types/commands/auth/login/loginFlow.d.ts +0 -2
  46. package/build/types/commands/auth/login/token.d.ts +0 -12
  47. package/build/types/commands/site/CommonSiteArgs.d.ts +0 -6
  48. package/build/types/commands/site/delete/DeleteArgs.d.ts +0 -4
  49. package/build/types/commands/site/delete/index.d.ts +0 -5
  50. package/build/types/commands/site/delete/siteDeleteCommand.d.mts +0 -2
  51. package/build/types/commands/site/deploy/SiteDeployArgs.d.ts +0 -5
  52. package/build/types/commands/site/deploy/handleSiteDeploy.d.mts +0 -2
  53. package/build/types/commands/site/deploy/index.d.ts +0 -5
  54. package/build/types/commands/site/index.d.ts +0 -5
  55. package/build/types/commands/site/upload/UploadArgs.d.ts +0 -5
  56. package/build/types/commands/site/upload/index.d.ts +0 -5
  57. package/build/types/commands/site/upload/siteUploadCommand.d.mts +0 -2
  58. package/build/types/commands/site/versions/index.d.ts +0 -4
  59. package/build/types/commands/site/versions/siteVersionsCommand.d.mts +0 -2
  60. package/build/types/commands/typescript/generate/TypescriptGenerateArgs.d.ts +0 -9
  61. package/build/types/commands/typescript/generate/generate.d.ts +0 -4
  62. package/build/types/commands/typescript/generate/handleGenerate.d.mts +0 -2
  63. package/build/types/commands/typescript/index.d.ts +0 -4
  64. package/build/types/generated/artifacts-admin/ArtifactsAdminService/clearDeletedUserRepositories.d.ts +0 -7
  65. package/build/types/generated/artifacts-admin/ArtifactsAdminService/getContainerRegistryDomain.d.ts +0 -6
  66. package/build/types/generated/artifacts-admin/ArtifactsAdminService.d.ts +0 -2
  67. package/build/types/generated/artifacts-admin/ClearDeletedUserRepositoriesRequest.d.ts +0 -3
  68. package/build/types/generated/artifacts-admin/ContainerRegistryDomainResponse.d.ts +0 -3
  69. package/build/types/generated/artifacts-admin/index.d.ts +0 -3
  70. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminService/deleteSiteDeployment.d.ts +0 -2
  71. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminService/deploySite.d.ts +0 -3
  72. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminService/getDeployedVersion.d.ts +0 -3
  73. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminService.d.ts +0 -3
  74. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/clearDeployedVersion.d.ts +0 -8
  75. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getContentSecurityPolicyAdditions.d.ts +0 -8
  76. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getDeployedVersion.d.ts +0 -8
  77. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getRegisteredSiteDomains.d.ts +0 -9
  78. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/getRequestedSiteDomains.d.ts +0 -10
  79. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/previewContentSecurityPolicy.d.ts +0 -9
  80. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/putContentSecurityPolicyAdditions.d.ts +0 -8
  81. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/requestSiteDomainForRepository.d.ts +0 -12
  82. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/unregisterSiteDomain.d.ts +0 -11
  83. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service/updateDeployedVersion.d.ts +0 -8
  84. package/build/types/generated/artifacts-sites/ArtifactsSitesAdminV2Service.d.ts +0 -10
  85. package/build/types/generated/artifacts-sites/ContentSecurityPolicyAdditions.d.ts +0 -5
  86. package/build/types/generated/artifacts-sites/ContentSecurityPolicyDirectiveName.d.ts +0 -1
  87. package/build/types/generated/artifacts-sites/ContentSecurityPolicyDirectiveValue.d.ts +0 -1
  88. package/build/types/generated/artifacts-sites/ContentSecurityPolicyHeaderValue.d.ts +0 -1
  89. package/build/types/generated/artifacts-sites/ControlPanelManagedDomainInfo.d.ts +0 -12
  90. package/build/types/generated/artifacts-sites/DeploySiteRequest.d.ts +0 -7
  91. package/build/types/generated/artifacts-sites/DeploymentInfo.d.ts +0 -6
  92. package/build/types/generated/artifacts-sites/DomainName.d.ts +0 -3
  93. package/build/types/generated/artifacts-sites/PreviewContentSecurityPolicyRequest.d.ts +0 -4
  94. package/build/types/generated/artifacts-sites/SiteDomainInfo.d.ts +0 -6
  95. package/build/types/generated/artifacts-sites/SiteDomainRegistrationRequestRid.d.ts +0 -1
  96. package/build/types/generated/artifacts-sites/SiteVersion.d.ts +0 -3
  97. package/build/types/generated/artifacts-sites/SitesDomainRegistryService/getRegisteredDomains.d.ts +0 -5
  98. package/build/types/generated/artifacts-sites/SitesDomainRegistryService.d.ts +0 -1
  99. package/build/types/generated/artifacts-sites/SubmitDomainRegistrationRequest.d.ts +0 -7
  100. package/build/types/generated/artifacts-sites/UnregisterDomainRequest.d.ts +0 -4
  101. package/build/types/generated/artifacts-sites/UpdateDeployedVersionRequest.d.ts +0 -4
  102. package/build/types/generated/artifacts-sites/index.d.ts +0 -18
  103. package/build/types/index.d.ts +0 -1
  104. package/build/types/net/RepositoryRid.d.ts +0 -1
  105. package/build/types/net/ThirdPartyAppRid.d.ts +0 -1
  106. package/build/types/net/artifacts/SiteAssetArtifactsService/SiteAssetVersions.d.mts +0 -3
  107. package/build/types/net/artifacts/SiteAssetArtifactsService/deleteSiteVersion.d.mts +0 -2
  108. package/build/types/net/artifacts/SiteAssetArtifactsService/fetchSiteVersions.d.mts +0 -2
  109. package/build/types/net/artifacts/SiteAssetArtifactsService/getSiteAssetBaseUrl.d.mts +0 -1
  110. package/build/types/net/artifacts/SiteAssetArtifactsService/index.d.mts +0 -4
  111. package/build/types/net/artifacts/SiteAssetArtifactsService/uploadSiteVersion.d.mts +0 -2
  112. package/build/types/net/artifacts/index.d.mts +0 -1
  113. package/build/types/net/createConjureContext.d.mts +0 -2
  114. package/build/types/net/createFetch.d.mts +0 -1
  115. package/build/types/net/index.d.mts +0 -4
  116. package/build/types/net/third-party-application-service/fetchWebsiteRepositoryRid.d.mts +0 -3
  117. package/build/types/net/third-party-application-service/index.d.mts +0 -1
  118. package/build/types/readCliVersionFromPackageJson.d.ts +0 -1
  119. package/build/types/yargs/logVersionMiddleware.d.ts +0 -2
  120. /package/build/{js → cjs}/chunk-2DZBTS5E.cjs +0 -0
  121. /package/build/{js → cjs}/chunk-2DZBTS5E.cjs.map +0 -0
  122. /package/build/{js/chunk-E2SEJZTC.mjs.map → cjs/chunk-7G2FSZUY.cjs.map} +0 -0
  123. /package/build/{js → cjs}/chunk-HYF3CTKZ.cjs +0 -0
  124. /package/build/{js → cjs}/chunk-HYF3CTKZ.cjs.map +0 -0
  125. /package/build/{js/handleGenerate-ER4YF43Z.mjs.map → cjs/handleGenerate-MNCDSJ6T.cjs.map} +0 -0
  126. /package/build/{js/loginFlow-BZDDHHT5.cjs.map → cjs/loginFlow-HJZRKA26.cjs.map} +0 -0
  127. /package/build/{js/siteDeleteCommand-FIB7KBAY.mjs.map → cjs/siteDeleteCommand-SECMIIXM.cjs.map} +0 -0
  128. /package/build/{js/siteUploadCommand-5VEJTNOQ.mjs.map → cjs/siteUploadCommand-G7O6HVUR.cjs.map} +0 -0
  129. /package/build/{js → esm}/chunk-GTNZA5UY.mjs +0 -0
  130. /package/build/{js → esm}/chunk-GTNZA5UY.mjs.map +0 -0
  131. /package/build/{js → esm}/chunk-JFDXL5SV.mjs +0 -0
  132. /package/build/{js → esm}/chunk-JFDXL5SV.mjs.map +0 -0
  133. /package/build/{js/chunk-HQDDGVB7.cjs.map → esm/chunk-ZSTKOCBT.mjs.map} +0 -0
  134. /package/build/{js/handleGenerate-UTCLNZQO.cjs.map → esm/handleGenerate-TDSDERL2.mjs.map} +0 -0
  135. /package/build/{js/loginFlow-KGLTXVZ6.mjs.map → esm/loginFlow-AGZNMIRQ.mjs.map} +0 -0
  136. /package/build/{js/siteDeleteCommand-UGHBNEC4.cjs.map → esm/siteDeleteCommand-VE3ELAWW.mjs.map} +0 -0
  137. /package/build/{js/siteUploadCommand-OEM2U44I.cjs.map → esm/siteUploadCommand-3PARIRON.mjs.map} +0 -0
@@ -1 +0,0 @@
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":["command","site","argv"],"mappings":";;;;;;AAgBA,OAAO,WAAW;AAClB,SAAS,eAAe;;;ACDjB,IAAM,UAAU;AAAA,EACrB,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS,UAAQ;AACf,WAAO,KAAK,OAAO,iBAAiB;AAAA,MAClC,MAAM;AAAA,MACN,cAAc;AAAA,IAChB,CAAC;AAAA,EACH;AAAA,EACA,SAAS,OAAM,SAAQ;AACrB,UAAMA,WAAU,MAAM,OAAO,0BAAgB;AAC7C,UAAMA,SAAQ,QAAQ,IAAI;AAAA,EAC5B;AACF;AACA,IAAO,gBAAQ;;;ACbf,IAAM,OAAO;AAAA,EACX,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS,UAAQ;AACf,WAAO,KAAK,QAAQ;AAAA,MAClB,SAAS;AAAA,QACP,MAAM;AAAA,QACN,cAAc;AAAA,MAChB;AAAA,IACF,CAAC,EAAE,QAAQ,aAAK,EAAE,cAAc;AAAA,EAClC;AAAA,EACA,SAAS,OAAM,SAAQ;AAAA,EAAC;AAC1B;AACA,IAAO,eAAQ;;;ACdR,IAAMA,WAAU;AAAA,EACrB,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS,UAAQ;AACf,WAAO,KAAK,OAAO,eAAe;AAAA,MAChC,MAAM;AAAA,MACN,cAAc;AAAA,IAChB,CAAC,EAAE,OAAO,OAAO;AAAA,MACf,MAAM;AAAA,IACR,CAAC;AAAA,EACH;AAAA,EACA,SAAS,OAAM,SAAQ;AACrB,UAAMA,WAAU,MAAM,OAAO,kCAAyB;AACtD,UAAMA,SAAQ,QAAQ,IAAI;AAAA,EAC5B;AACF;AACA,IAAO,iBAAQA;;;AChBR,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M,4BAA4B,QAAQ,UAAU,IAAI,UAAU,OAAO,GAAG;AAAA,IACtF;AAGA,YAAQ,IAAI;AACZ,gBAAY;AAAA,EACd;AACF;;;AXVA,eAAsB,IAAI,OAAO,QAAQ,MAAM;AAC7C,QAAM,OAAO,MAAM,QAAQ,IAAI,CAAC,EAAE,IAAI,MAAM,EAAE,QAAQ,KAAK,EAAE,OAAO,WAAW;AAAA,IAC7E,OAAO;AAAA,IACP,MAAM;AAAA,IACN,aAAa;AAAA,IACb,OAAO;AAAA,EACT,CAAC,EAAE,cAAc,EAAE,WAAW,sBAAsB,IAAI,EAAE,OAAO,EAAE,QAAQ;AAAA,IACzE,SAAS;AAAA,IACT,SAAS,CAAC,cAAc;AAAA,IACxB,SAAS,OAAM,SAAQ;AACrB,aAAO,KAAK,QAAQ,YAAI,EAAE,QAAQ,kBAAU,EAAE,QAAQ,YAAI,EAAE,cAAc;AAAA,IAC5E;AAAA,IACA,SAAS,WAAS;AAAA,IAAC;AAAA,EACrB,CAAC;AACD,MAAI;AACF,WAAO,KAAK,WAAW;AAAA,EACzB,SAAS,GAAG;AACV,QAAI,aAAa,kBAAkB;AACjC,YAAM,UAAU,MAAM,OAAO,SAAS;AACtC,cAAQ,QAAQ,MAAM,EAAE,OAAO;AAAA,IACjC;AAAA,EACF;AACF","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport 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 ontologyWritePath: {\n description: \"path to write the ontology wire json\",\n type: \"string\",\n demandOption: false,\n conflicts: [\"ontologyPath\"]\n },\n beta: {\n type: \"boolean\",\n description: \"Should generate beta sdk\",\n demandOption: false\n },\n packageType: {\n default: \"commonjs\",\n choices: [\"commonjs\", \"module\"]\n }\n }).group([\"ontologyPath\", \"outDir\"], \"Generate from a local file\").group([\"stack\", \"clientId\", \"outDir\", \"ontologyWritePath\"], \"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}"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/commands/site/versions/siteVersionsCommand.mts"],"names":[],"mappings":";;;;;;;;;;AAiBA,SAAS,eAAe;AACxB,SAAS,gBAAgB;AACzB,eAAO,oBAA2C;AAAA,EAChD;AAAA,EACA;AACF,GAAG;AACD,UAAQ,MAAM,sCAAsC;AACpD,QAAM,gBAAgB,MAAM,wCAA6B,0BAA0B,SAAS,MAAM;AAClG,QAAM,MAAM,qBAAqB,SAAS,gBAAgB;AAC1D,QAAM,CAAC,UAAU,eAAe,IAAI,MAAM,QAAQ,IAAI,CAAC,kBAAU,0BAA0B,kBAAkB,SAAS,MAAM,GAAG,qCAA6B,mBAAmB,KAAK,aAAa,CAAC,CAAC;AACnM,MAAI,SAAS,UAAU,GAAG;AACxB,YAAQ,KAAK,+DAA+D;AAC5E;AAAA,EACF;AACA,UAAQ,QAAQ,iBAAiB;AACjC,aAAW,WAAW,UAAU;AAC9B,YAAQ,IAAI,SAAS,OAAO,GAAG,mBAAmB,YAAY,gBAAgB,UAAU,SAAS,SAAS,aAAa,IAAI,EAAE,EAAE;AAAA,EACjI;AACF","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { 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 +0,0 @@
1
- {"version":3,"sources":["../../src/commands/site/versions/siteVersionsCommand.mts"],"names":[],"mappings":";;;;;;;;;;AAiBA,SAAS,eAAe;AACxB,SAAS,gBAAgB;AACzB,eAAO,oBAA2C;AAAA,EAChD;AAAA,EACA;AACF,GAAG;AACD,UAAQ,MAAM,sCAAsC;AACpD,QAAM,gBAAgB,MAAM,wCAA6B,0BAA0B,SAAS,MAAM;AAClG,QAAM,MAAM,qBAAqB,SAAS,gBAAgB;AAC1D,QAAM,CAAC,UAAU,eAAe,IAAI,MAAM,QAAQ,IAAI,CAAC,kBAAU,0BAA0B,kBAAkB,SAAS,MAAM,GAAG,qCAA6B,mBAAmB,KAAK,aAAa,CAAC,CAAC;AACnM,MAAI,SAAS,UAAU,GAAG;AACxB,YAAQ,KAAK,+DAA+D;AAC5E;AAAA,EACF;AACA,UAAQ,QAAQ,iBAAiB;AACjC,aAAW,WAAW,UAAU;AAC9B,YAAQ,IAAI,SAAS,OAAO,GAAG,mBAAmB,YAAY,gBAAgB,UAAU,SAAS,SAAS,aAAa,IAAI,EAAE,EAAE;AAAA,EACjI;AACF","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { 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,3 +0,0 @@
1
- export interface CliCommonArgs {
2
- verbose: number;
3
- }
@@ -1,4 +0,0 @@
1
- export declare class ExitProcessError extends Error {
2
- readonly errorCode: number;
3
- constructor(errorCode: number, msg?: string);
4
- }
@@ -1,4 +0,0 @@
1
- import type { CliCommonArgs } from "../../CliCommonArgs.js";
2
- export interface CommonAuthArgs extends CliCommonArgs {
3
- baseUrl: string;
4
- }
@@ -1,5 +0,0 @@
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;
@@ -1,4 +0,0 @@
1
- import type { CommonAuthArgs } from "../CommonAuthArgs.js";
2
- export interface LoginArgs extends CommonAuthArgs {
3
- applicationId: string;
4
- }
@@ -1,5 +0,0 @@
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;
@@ -1,2 +0,0 @@
1
- import type { LoginArgs } from "./LoginArgs.js";
2
- export default function invokeLoginFlow(args: LoginArgs): Promise<import("./token.js").TokenSuccessResponse>;
@@ -1,12 +0,0 @@
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,6 +0,0 @@
1
- import type { CliCommonArgs } from "../../CliCommonArgs.js";
2
- import type { ThirdPartyAppRid } from "../../net/ThirdPartyAppRid.js";
3
- export interface CommonSiteArgs extends CliCommonArgs {
4
- appRid: ThirdPartyAppRid;
5
- baseUrl: string;
6
- }
@@ -1,4 +0,0 @@
1
- import type { CommonSiteArgs } from "../CommonSiteArgs.js";
2
- export interface DeleteArgs extends CommonSiteArgs {
3
- siteVersion: string;
4
- }
@@ -1,5 +0,0 @@
1
- import type { CommandModule } from "yargs";
2
- import type { CommonSiteArgs } from "../CommonSiteArgs.js";
3
- import type { DeleteArgs } from "./DeleteArgs.js";
4
- export declare const command: CommandModule<CommonSiteArgs, DeleteArgs>;
5
- export default command;
@@ -1,2 +0,0 @@
1
- import type { DeleteArgs } from "./DeleteArgs.js";
2
- export default function siteDeleteCommand(args: DeleteArgs): Promise<void>;
@@ -1,5 +0,0 @@
1
- import type { CommonSiteArgs } from "../CommonSiteArgs.js";
2
- export interface SiteDeployArgs extends CommonSiteArgs {
3
- siteVersion?: string;
4
- clearVersion?: boolean;
5
- }
@@ -1,2 +0,0 @@
1
- import type { SiteDeployArgs } from "./SiteDeployArgs.js";
2
- export default function handleSiteDeploy({ siteVersion: version, appRid, baseUrl, clearVersion }: SiteDeployArgs): Promise<void>;
@@ -1,5 +0,0 @@
1
- import type { CommandModule } from "yargs";
2
- import type { CommonSiteArgs } from "../CommonSiteArgs.js";
3
- import type { SiteDeployArgs } from "./SiteDeployArgs.js";
4
- export declare const command: CommandModule<CommonSiteArgs, SiteDeployArgs>;
5
- export default command;
@@ -1,5 +0,0 @@
1
- import type * as yargs from "yargs";
2
- import type { CliCommonArgs } from "../../CliCommonArgs.js";
3
- import type { CommonSiteArgs } from "./CommonSiteArgs.js";
4
- declare const site: yargs.CommandModule<CliCommonArgs, CommonSiteArgs>;
5
- export default site;
@@ -1,5 +0,0 @@
1
- import type { CommonSiteArgs } from "../CommonSiteArgs.js";
2
- export interface UploadArgs extends CommonSiteArgs {
3
- siteVersion: string;
4
- dir?: string;
5
- }
@@ -1,5 +0,0 @@
1
- import type { CommandModule } from "yargs";
2
- import type { CommonSiteArgs } from "../CommonSiteArgs.js";
3
- import type { UploadArgs } from "./UploadArgs.js";
4
- export declare const command: CommandModule<CommonSiteArgs, UploadArgs>;
5
- export default command;
@@ -1,2 +0,0 @@
1
- import type { UploadArgs } from "./UploadArgs.js";
2
- export default function invokeSiteUpload(args: UploadArgs): Promise<void>;
@@ -1,4 +0,0 @@
1
- import type { CommandModule } from "yargs";
2
- import type { CommonSiteArgs } from "../CommonSiteArgs.js";
3
- export declare const command: CommandModule<CommonSiteArgs, CommonSiteArgs>;
4
- export default command;
@@ -1,2 +0,0 @@
1
- import type { CommonSiteArgs } from "../CommonSiteArgs.js";
2
- export default function siteVersionsCommand({ baseUrl, appRid }: CommonSiteArgs): Promise<void>;
@@ -1,9 +0,0 @@
1
- export interface TypescriptGenerateArgs {
2
- outDir: string;
3
- ontologyPath?: string;
4
- ontologyWritePath?: string;
5
- stack?: string;
6
- clientId?: string;
7
- beta?: boolean;
8
- packageType: "commonjs" | "module";
9
- }
@@ -1,4 +0,0 @@
1
- import type { CommandModule } from "yargs";
2
- import type { TypescriptGenerateArgs } from "./TypescriptGenerateArgs.js";
3
- export declare const command: CommandModule<{}, TypescriptGenerateArgs>;
4
- export default command;
@@ -1,2 +0,0 @@
1
- import type { TypescriptGenerateArgs } from "./TypescriptGenerateArgs.js";
2
- export default function handleGenerate(args: TypescriptGenerateArgs): Promise<void>;
@@ -1,4 +0,0 @@
1
- import type * as yargs from "yargs";
2
- import type { CliCommonArgs } from "../../CliCommonArgs.js";
3
- declare const site: yargs.CommandModule<CliCommonArgs, CliCommonArgs>;
4
- export default site;
@@ -1,7 +0,0 @@
1
- import { type ConjureContext } from "conjure-lite";
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
- */
7
- export declare function clearDeletedUserRepositories(ctx: ConjureContext, request: ClearDeletedUserRepositoriesRequest): Promise<void>;
@@ -1,6 +0,0 @@
1
- import { type ConjureContext } from "conjure-lite";
2
- import type { ContainerRegistryDomainResponse } from "../ContainerRegistryDomainResponse.js";
3
- /**
4
- * Get the container registry domain, e.g, papaya-container-registry.palantircloud.com
5
- */
6
- export declare function getContainerRegistryDomain(ctx: ConjureContext): Promise<ContainerRegistryDomainResponse>;
@@ -1,2 +0,0 @@
1
- export { clearDeletedUserRepositories } from "./ArtifactsAdminService/clearDeletedUserRepositories.js";
2
- export { getContainerRegistryDomain } from "./ArtifactsAdminService/getContainerRegistryDomain.js";
@@ -1,3 +0,0 @@
1
- export interface ClearDeletedUserRepositoriesRequest {
2
- dryRun: boolean;
3
- }
@@ -1,3 +0,0 @@
1
- export interface ContainerRegistryDomainResponse {
2
- domain: string;
3
- }
@@ -1,3 +0,0 @@
1
- export * as ArtifactsAdminService from "./ArtifactsAdminService.js";
2
- export type { ClearDeletedUserRepositoriesRequest } from "./ClearDeletedUserRepositoriesRequest.js";
3
- export type { ContainerRegistryDomainResponse } from "./ContainerRegistryDomainResponse.js";
@@ -1,2 +0,0 @@
1
- import { type ConjureContext } from "conjure-lite";
2
- export declare function deleteSiteDeployment(ctx: ConjureContext, repositoryRid: string): Promise<void>;
@@ -1,3 +0,0 @@
1
- import { type ConjureContext } from "conjure-lite";
2
- import type { DeploySiteRequest } from "../DeploySiteRequest.js";
3
- export declare function deploySite(ctx: ConjureContext, deploySiteRequest: DeploySiteRequest): Promise<void>;
@@ -1,3 +0,0 @@
1
- import { type ConjureContext } from "conjure-lite";
2
- import type { DeploymentInfo } from "../DeploymentInfo.js";
3
- export declare function getDeployedVersion(ctx: ConjureContext, repositoryRid: string): Promise<DeploymentInfo | undefined>;
@@ -1,3 +0,0 @@
1
- export { deleteSiteDeployment } from "./ArtifactsSitesAdminService/deleteSiteDeployment.js";
2
- export { deploySite } from "./ArtifactsSitesAdminService/deploySite.js";
3
- export { getDeployedVersion } from "./ArtifactsSitesAdminService/getDeployedVersion.js";
@@ -1,8 +0,0 @@
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
- */
8
- export declare function clearDeployedVersion(ctx: ConjureContext, repositoryRid: string): Promise<void>;
@@ -1,8 +0,0 @@
1
- import { type ConjureContext } from "conjure-lite";
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
- */
8
- export declare function getContentSecurityPolicyAdditions(ctx: ConjureContext, repositoryRid: string): Promise<ContentSecurityPolicyAdditions>;
@@ -1,8 +0,0 @@
1
- import { type ConjureContext } from "conjure-lite";
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
- */
8
- export declare function getDeployedVersion(ctx: ConjureContext, repositoryRid: string): Promise<SiteVersion | undefined>;
@@ -1,9 +0,0 @@
1
- import { type ConjureContext } from "conjure-lite";
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
- */
9
- export declare function getRegisteredSiteDomains(ctx: ConjureContext, repositoryRid: string): Promise<Array<SiteDomainInfo>>;
@@ -1,10 +0,0 @@
1
- import { type ConjureContext } from "conjure-lite";
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
- */
10
- export declare function getRequestedSiteDomains(ctx: ConjureContext, repositoryRid: string): Promise<Array<SiteDomainInfo>>;
@@ -1,9 +0,0 @@
1
- import { type ConjureContext } from "conjure-lite";
2
- import type { ContentSecurityPolicyHeaderValue } from "../ContentSecurityPolicyHeaderValue.js";
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
- */
9
- export declare function previewContentSecurityPolicy(ctx: ConjureContext, repositoryRid: string, request: PreviewContentSecurityPolicyRequest): Promise<ContentSecurityPolicyHeaderValue>;
@@ -1,8 +0,0 @@
1
- import { type ConjureContext } from "conjure-lite";
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
- */
8
- export declare function putContentSecurityPolicyAdditions(ctx: ConjureContext, repositoryRid: string, contentSecurityPolicyAdditions: ContentSecurityPolicyAdditions): Promise<void>;
@@ -1,12 +0,0 @@
1
- import { type ConjureContext } from "conjure-lite";
2
- import type { SiteDomainInfo } from "../SiteDomainInfo.js";
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
- */
12
- export declare function requestSiteDomainForRepository(ctx: ConjureContext, repositoryRid: string, request: SubmitDomainRegistrationRequest): Promise<SiteDomainInfo>;
@@ -1,11 +0,0 @@
1
- import { type ConjureContext } from "conjure-lite";
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
- */
11
- export declare function unregisterSiteDomain(ctx: ConjureContext, repositoryRid: string, request: UnregisterDomainRequest): Promise<void>;
@@ -1,8 +0,0 @@
1
- import { type ConjureContext } from "conjure-lite";
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
- */
8
- export declare function updateDeployedVersion(ctx: ConjureContext, repositoryRid: string, version: UpdateDeployedVersionRequest): Promise<void>;
@@ -1,10 +0,0 @@
1
- export { clearDeployedVersion } from "./ArtifactsSitesAdminV2Service/clearDeployedVersion.js";
2
- export { getContentSecurityPolicyAdditions } from "./ArtifactsSitesAdminV2Service/getContentSecurityPolicyAdditions.js";
3
- export { getDeployedVersion } from "./ArtifactsSitesAdminV2Service/getDeployedVersion.js";
4
- export { getRegisteredSiteDomains } from "./ArtifactsSitesAdminV2Service/getRegisteredSiteDomains.js";
5
- export { getRequestedSiteDomains } from "./ArtifactsSitesAdminV2Service/getRequestedSiteDomains.js";
6
- export { previewContentSecurityPolicy } from "./ArtifactsSitesAdminV2Service/previewContentSecurityPolicy.js";
7
- export { putContentSecurityPolicyAdditions } from "./ArtifactsSitesAdminV2Service/putContentSecurityPolicyAdditions.js";
8
- export { requestSiteDomainForRepository } from "./ArtifactsSitesAdminV2Service/requestSiteDomainForRepository.js";
9
- export { unregisterSiteDomain } from "./ArtifactsSitesAdminV2Service/unregisterSiteDomain.js";
10
- export { updateDeployedVersion } from "./ArtifactsSitesAdminV2Service/updateDeployedVersion.js";
@@ -1,5 +0,0 @@
1
- import type { ContentSecurityPolicyDirectiveName } from "./ContentSecurityPolicyDirectiveName.js";
2
- import type { ContentSecurityPolicyDirectiveValue } from "./ContentSecurityPolicyDirectiveValue.js";
3
- export interface ContentSecurityPolicyAdditions {
4
- policy: Record<ContentSecurityPolicyDirectiveName, Array<ContentSecurityPolicyDirectiveValue>>;
5
- }
@@ -1 +0,0 @@
1
- export type ContentSecurityPolicyDirectiveName = "CONNECT_SRC" | "FRAME_SRC" | "IMG_SRC" | "SCRIPT_SRC";
@@ -1 +0,0 @@
1
- export type ContentSecurityPolicyDirectiveValue = string;
@@ -1 +0,0 @@
1
- export type ContentSecurityPolicyHeaderValue = string;
@@ -1,12 +0,0 @@
1
- import type { DomainName } from "./DomainName.js";
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
- */
9
- export interface ControlPanelManagedDomainInfo {
10
- requestRid: SiteDomainRegistrationRequestRid;
11
- siteDomain: DomainName;
12
- }
@@ -1,7 +0,0 @@
1
- import type { DomainName } from "./DomainName.js";
2
- import type { SiteVersion } from "./SiteVersion.js";
3
- export interface DeploySiteRequest {
4
- repositoryRid: string;
5
- siteDomain: DomainName;
6
- siteVersion: SiteVersion;
7
- }
@@ -1,6 +0,0 @@
1
- import type { DomainName } from "./DomainName.js";
2
- import type { SiteVersion } from "./SiteVersion.js";
3
- export interface DeploymentInfo {
4
- siteDomain: DomainName;
5
- siteVersion: SiteVersion;
6
- }
@@ -1,3 +0,0 @@
1
- export interface DomainName {
2
- domain: string;
3
- }
@@ -1,4 +0,0 @@
1
- import type { DomainName } from "./DomainName.js";
2
- export interface PreviewContentSecurityPolicyRequest {
3
- baseDomain: DomainName;
4
- }
@@ -1,6 +0,0 @@
1
- import type { ControlPanelManagedDomainInfo } from "./ControlPanelManagedDomainInfo.js";
2
- export interface SiteDomainInfo_controlPanelManaged {
3
- type: "controlPanelManaged";
4
- controlPanelManaged: ControlPanelManagedDomainInfo;
5
- }
6
- export type SiteDomainInfo = SiteDomainInfo_controlPanelManaged;
@@ -1 +0,0 @@
1
- export type SiteDomainRegistrationRequestRid = string;
@@ -1,3 +0,0 @@
1
- export interface SiteVersion {
2
- version: string;
3
- }
@@ -1,5 +0,0 @@
1
- import { type ConjureContext } from "conjure-lite";
2
- /**
3
- * Get all registered domains regardless of whether they're in use or not.
4
- */
5
- export declare function getRegisteredDomains(ctx: ConjureContext): Promise<Array<string>>;
@@ -1 +0,0 @@
1
- export { getRegisteredDomains } from "./SitesDomainRegistryService/getRegisteredDomains.js";
@@ -1,7 +0,0 @@
1
- import type { DomainName } from "./DomainName.js";
2
- export interface SubmitDomainRegistrationRequest {
3
- siteDomain: DomainName;
4
- baseDomain: DomainName;
5
- requestTitle: string;
6
- requestDescription: string | undefined;
7
- }
@@ -1,4 +0,0 @@
1
- import type { DomainName } from "./DomainName.js";
2
- export interface UnregisterDomainRequest {
3
- siteDomain: DomainName;
4
- }
@@ -1,4 +0,0 @@
1
- import type { SiteVersion } from "./SiteVersion.js";
2
- export interface UpdateDeployedVersionRequest {
3
- siteVersion: SiteVersion;
4
- }
@@ -1,18 +0,0 @@
1
- export * as ArtifactsSitesAdminService from "./ArtifactsSitesAdminService.js";
2
- export * as ArtifactsSitesAdminV2Service from "./ArtifactsSitesAdminV2Service.js";
3
- export * as SitesDomainRegistryService from "./SitesDomainRegistryService.js";
4
- export type { ContentSecurityPolicyAdditions } from "./ContentSecurityPolicyAdditions.js";
5
- export type { ContentSecurityPolicyDirectiveName } from "./ContentSecurityPolicyDirectiveName.js";
6
- export type { ContentSecurityPolicyDirectiveValue } from "./ContentSecurityPolicyDirectiveValue.js";
7
- export type { ContentSecurityPolicyHeaderValue } from "./ContentSecurityPolicyHeaderValue.js";
8
- export type { ControlPanelManagedDomainInfo } from "./ControlPanelManagedDomainInfo.js";
9
- export type { DeploymentInfo } from "./DeploymentInfo.js";
10
- export type { DeploySiteRequest } from "./DeploySiteRequest.js";
11
- export type { DomainName } from "./DomainName.js";
12
- export type { PreviewContentSecurityPolicyRequest } from "./PreviewContentSecurityPolicyRequest.js";
13
- export type { SiteDomainInfo } from "./SiteDomainInfo.js";
14
- export type { SiteDomainRegistrationRequestRid } from "./SiteDomainRegistrationRequestRid.js";
15
- export type { SiteVersion } from "./SiteVersion.js";
16
- export type { SubmitDomainRegistrationRequest } from "./SubmitDomainRegistrationRequest.js";
17
- export type { UnregisterDomainRequest } from "./UnregisterDomainRequest.js";
18
- export type { UpdateDeployedVersionRequest } from "./UpdateDeployedVersionRequest.js";
@@ -1 +0,0 @@
1
- export { cli } from "./cli.js";
@@ -1 +0,0 @@
1
- export type RepositoryRid = `ri.artifacts.main.repository.${string}`;
@@ -1 +0,0 @@
1
- export type ThirdPartyAppRid = `ri.third-party-applications.main.application.${string}`;
@@ -1,3 +0,0 @@
1
- export interface SiteAssetVersions {
2
- versions: string[];
3
- }
@@ -1,2 +0,0 @@
1
- import type { ThirdPartyAppRid } from "../../ThirdPartyAppRid.js";
2
- export declare function deleteSiteVersion(baseUrl: string, thirdPartyAppRid: ThirdPartyAppRid, version: string): Promise<boolean>;
@@ -1,2 +0,0 @@
1
- import type { ThirdPartyAppRid } from "../../ThirdPartyAppRid.js";
2
- export declare function fetchSiteVersions(baseUrl: string, thirdPartyAppRid: ThirdPartyAppRid): Promise<string[]>;
@@ -1 +0,0 @@
1
- export declare function getSiteAssetBaseUrl(foundryBaseUrl: string, repositoryRid: string): string;
@@ -1,4 +0,0 @@
1
- export { deleteSiteVersion } from "./deleteSiteVersion.mjs";
2
- export { fetchSiteVersions } from "./fetchSiteVersions.mjs";
3
- export type { SiteAssetVersions } from "./SiteAssetVersions.mjs";
4
- export { uploadZippedSiteAsset } from "./uploadSiteVersion.mjs";
@@ -1,2 +0,0 @@
1
- import type { ThirdPartyAppRid } from "../../ThirdPartyAppRid.js";
2
- export declare function uploadZippedSiteAsset(baseUrl: string, thirdPartyAppRid: ThirdPartyAppRid, version: string, zipFile: ReadableStream | Blob | BufferSource): Promise<boolean>;
@@ -1 +0,0 @@
1
- export * as SiteAssetArtifactsService from "./SiteAssetArtifactsService/index.mjs";
@@ -1,2 +0,0 @@
1
- import type { ConjureContext } from "conjure-lite";
2
- export declare function createConjureContext(baseUrl: string, servicePath: "/artifacts/api"): ConjureContext;