@osdk/cli 0.25.0-beta.1 → 0.25.0-beta.3

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 (40) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/build/browser/{chunk-C26RR6CY.js → chunk-MAKI5WGP.js} +3 -3
  3. package/build/browser/{chunk-C26RR6CY.js.map → chunk-MAKI5WGP.js.map} +1 -1
  4. package/build/{esm/handleGenerate-LNHCSXJL.js → browser/handleGenerate-U5W2XQTE.js} +29 -25
  5. package/build/browser/handleGenerate-U5W2XQTE.js.map +1 -0
  6. package/build/browser/index.js +8 -8
  7. package/build/browser/index.js.map +1 -1
  8. package/build/browser/{siteDeployCommand-ZOHFYMBD.js → siteDeployCommand-G3EAAMYU.js} +3 -3
  9. package/build/browser/{siteDeployCommand-ZOHFYMBD.js.map → siteDeployCommand-G3EAAMYU.js.map} +1 -1
  10. package/build/browser/{versionDeleteCommand-QW5GTXOL.js → versionDeleteCommand-FXD5HZSO.js} +3 -3
  11. package/build/browser/{versionDeleteCommand-QW5GTXOL.js.map → versionDeleteCommand-FXD5HZSO.js.map} +1 -1
  12. package/build/{esm/versionGetCommand-CDBL54KJ.js → browser/versionGetCommand-W6SJXGDK.js} +3 -3
  13. package/build/browser/{versionGetCommand-CDBL54KJ.js.map → versionGetCommand-W6SJXGDK.js.map} +1 -1
  14. package/build/{esm/versionListCommand-5ZIBLCPR.js → browser/versionListCommand-KZJARJYH.js} +3 -3
  15. package/build/browser/{versionListCommand-5ZIBLCPR.js.map → versionListCommand-KZJARJYH.js.map} +1 -1
  16. package/build/{esm/versionSetCommand-DI6FXEAR.js → browser/versionSetCommand-2QC4OXHS.js} +3 -3
  17. package/build/browser/{versionSetCommand-DI6FXEAR.js.map → versionSetCommand-2QC4OXHS.js.map} +1 -1
  18. package/build/browser/{versionUnsetCommand-IG2BK6I3.js → versionUnsetCommand-3ZGB7QTN.js} +3 -3
  19. package/build/browser/{versionUnsetCommand-IG2BK6I3.js.map → versionUnsetCommand-3ZGB7QTN.js.map} +1 -1
  20. package/build/esm/{chunk-C26RR6CY.js → chunk-MAKI5WGP.js} +3 -3
  21. package/build/esm/{chunk-C26RR6CY.js.map → chunk-MAKI5WGP.js.map} +1 -1
  22. package/build/{browser/handleGenerate-LNHCSXJL.js → esm/handleGenerate-U5W2XQTE.js} +29 -25
  23. package/build/esm/handleGenerate-U5W2XQTE.js.map +1 -0
  24. package/build/esm/index.js +8 -8
  25. package/build/esm/index.js.map +1 -1
  26. package/build/esm/{siteDeployCommand-ZOHFYMBD.js → siteDeployCommand-G3EAAMYU.js} +3 -3
  27. package/build/esm/{siteDeployCommand-ZOHFYMBD.js.map → siteDeployCommand-G3EAAMYU.js.map} +1 -1
  28. package/build/esm/{versionDeleteCommand-QW5GTXOL.js → versionDeleteCommand-FXD5HZSO.js} +3 -3
  29. package/build/esm/{versionDeleteCommand-QW5GTXOL.js.map → versionDeleteCommand-FXD5HZSO.js.map} +1 -1
  30. package/build/{browser/versionGetCommand-CDBL54KJ.js → esm/versionGetCommand-W6SJXGDK.js} +3 -3
  31. package/build/esm/{versionGetCommand-CDBL54KJ.js.map → versionGetCommand-W6SJXGDK.js.map} +1 -1
  32. package/build/{browser/versionListCommand-5ZIBLCPR.js → esm/versionListCommand-KZJARJYH.js} +3 -3
  33. package/build/esm/{versionListCommand-5ZIBLCPR.js.map → versionListCommand-KZJARJYH.js.map} +1 -1
  34. package/build/{browser/versionSetCommand-DI6FXEAR.js → esm/versionSetCommand-2QC4OXHS.js} +3 -3
  35. package/build/esm/{versionSetCommand-DI6FXEAR.js.map → versionSetCommand-2QC4OXHS.js.map} +1 -1
  36. package/build/esm/{versionUnsetCommand-IG2BK6I3.js → versionUnsetCommand-3ZGB7QTN.js} +3 -3
  37. package/build/esm/{versionUnsetCommand-IG2BK6I3.js.map → versionUnsetCommand-3ZGB7QTN.js.map} +1 -1
  38. package/package.json +5 -5
  39. package/build/browser/handleGenerate-LNHCSXJL.js.map +0 -1
  40. package/build/esm/handleGenerate-LNHCSXJL.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @osdk/cli
2
2
 
3
+ ## 0.25.0-beta.3
4
+
5
+ ## 0.25.0-beta.2
6
+
3
7
  ## 0.25.0-beta.1
4
8
 
5
9
  ## 0.25.0-beta.0
@@ -34,7 +34,7 @@ init_esm_shims();
34
34
 
35
35
  // src/net/UserAgent.ts
36
36
  init_esm_shims();
37
- var USER_AGENT = `osdk-cli/${"0.25.0-beta.1"}`;
37
+ var USER_AGENT = `osdk-cli/${"0.25.0-beta.3"}`;
38
38
 
39
39
  // src/net/createFetch.mts
40
40
  function createFetch(tokenProvider, fetchFn = fetch) {
@@ -217,5 +217,5 @@ function isJWT(token) {
217
217
  }
218
218
 
219
219
  export { createInternalClientContext, loadToken, third_party_applications_exports };
220
- //# sourceMappingURL=chunk-C26RR6CY.js.map
221
- //# sourceMappingURL=chunk-C26RR6CY.js.map
220
+ //# sourceMappingURL=chunk-MAKI5WGP.js.map
221
+ //# sourceMappingURL=chunk-MAKI5WGP.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/net/createInternalClientContext.mts","../../src/net/third-party-applications/index.mts","../../src/net/third-party-applications/deleteVersion.mts","../../src/net/createFetch.mts","../../src/net/UserAgent.ts","../../src/net/third-party-applications/deployWebsite.mts","../../src/net/third-party-applications/getWebsite.mts","../../src/net/third-party-applications/listVersions.mts","../../src/net/third-party-applications/undeployWebsite.mts","../../src/net/third-party-applications/uploadVersion.mts","../../src/net/index.mts","../../src/util/token.ts"],"names":["fetch","consola","fsPromises"],"mappings":";;;;;;;;AAAA,cAAA,EAAA,CAAA;AAgBO,SAAS,2BAAA,CAA4B,YAAY,aAAe,EAAA;AACrE,EAAO,OAAA;AAAA,IACL,aAAA;AAAA,IACA,UAAA;AAAA,GACF,CAAA;AACF,CAAA;;;ACrBA,IAAA,gCAAA,GAAA,GAAA;AAAA,QAAA,CAA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AA,MAAM,IAAI,gBAAiB,CAAA,CAAA,EAAG,8BAA8B,QAAQ,CAAA,GAAA,EAAM,KAAK,CAAE,CAAA,CAAA,CAAA;AAAA,GACnF;AACA,EAAO,OAAA;AAAA,IACL,QAAU,EAAA,YAAA;AAAA,IACV,KAAA;AAAA,GACF,CAAA;AACF,CAAA;AACO,SAAS,SAAS,KAAO,EAAA;AAC9B,EAAI,IAAA,CAAC,KAAM,CAAA,KAAK,CAAG,EAAA;AACjB,IAAM,MAAA,IAAI,gBAAiB,CAAA,CAAA,EAAG,CAAmC,iCAAA,CAAA,CAAA,CAAA;AAAA,GACnE;AACF,CAAA;AACA,SAAS,MAAM,KAAO,EAAA;AAEpB,EAAA,MAAM,UAAa,GAAA,kDAAA,CAAA;AACnB,EAAO,OAAA,UAAA,CAAW,KAAK,KAAK,CAAA,CAAA;AAC9B","file":"chunk-C26RR6CY.js","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport function createInternalClientContext(foundryUrl, tokenProvider) {\n return {\n tokenProvider,\n foundryUrl\n };\n}","/*\n * Copyright 2024 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 { deleteVersion } from \"./deleteVersion.mjs\";\nexport { deployWebsite } from \"./deployWebsite.mjs\";\nexport { getWebsite } from \"./getWebsite.mjs\";\nexport { listVersions } from \"./listVersions.mjs\";\nexport { undeployWebsite } from \"./undeployWebsite.mjs\";\nexport { uploadVersion } from \"./uploadVersion.mjs\";","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createFetch } from \"../createFetch.mjs\";\nexport async function deleteVersion(ctx, thirdPartyAppRid, version) {\n const fetch = createFetch(ctx.tokenProvider);\n const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/versions/${version}?preview=true`;\n await fetch(url, {\n method: \"DELETE\"\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 { ExitProcessError } from \"@osdk/cli.common\";\nimport { createFetchHeaderMutator, createFetchOrThrow, PalantirApiError } from \"@osdk/shared.net\";\nimport { consola } from \"consola\";\nimport { USER_AGENT } from \"./UserAgent.js\";\nexport function createFetch(tokenProvider, fetchFn = fetch) {\n return createFetchHeaderMutator(createRequestLoggingFetch(createErrorExitingFetch(createFetchOrThrow(fetchFn))), async headers => {\n const token = await tokenProvider();\n headers.set(\"Authorization\", `Bearer ${token}`);\n headers.set(\"Fetch-User-Agent\", USER_AGENT);\n return headers;\n });\n}\nfunction createErrorExitingFetch(fetchFn = fetch) {\n return function errorExitingFetch(input, init) {\n return fetchFn(input, init).catch(handleFetchError);\n };\n}\nfunction handleFetchError(e) {\n if (!(e instanceof PalantirApiError)) {\n throw new ExitProcessError(1, \"Unexpected fetch error\");\n }\n let tip;\n if (e.statusCode === 401) {\n tip = \"Check your token is valid and has not expired or been disabled\";\n } else if (e.statusCode === 403) {\n tip = \"Check your token has the required scopes for this operation\";\n }\n let message = e.message;\n if (e.errorName === \"CannotDeleteDeployedVersion\") {\n message = \"The site version to delete is live and cannot be deleted\";\n tip = \"Run the `site version set` command to change the live site version\";\n } else if (e.errorName === \"InvalidVersion\") {\n message = \"The site version is invalid and must be a valid SemVer string\";\n } else if (e.errorName === \"VersionAlreadyExists\") {\n message = \"The site version already exists\";\n } else if (e.errorName === \"VersionNotFound\") {\n message = \"The site version could not be found\";\n }\n throw new ExitProcessError(1, message, tip, e);\n}\nfunction createRequestLoggingFetch(fetchFn = fetch) {\n return function requestLoggingFetch(input, init) {\n const requestLog = typeof input === \"string\" || input instanceof URL ? `${init?.method ?? \"GET\"}: ${input.toString().trim()}` : `${input.method ?? \"GET\"}: ${input.url.toString().trim()}`;\n consola.trace(requestLog);\n return fetchFn(input, init).then(a => {\n consola.trace(`FINISH ${requestLog}`);\n return a;\n });\n };\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const USER_AGENT = `osdk-cli/${process.env.PACKAGE_VERSION}`;","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createFetch } from \"../createFetch.mjs\";\nexport async function deployWebsite(ctx, thirdPartyAppRid, request) {\n const fetch = createFetch(ctx.tokenProvider);\n const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/deploy?preview=true`;\n const result = await fetch(url, {\n method: \"POST\",\n body: JSON.stringify(request),\n headers: {\n \"Content-Type\": \"application/json\"\n }\n });\n return result.json();\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ExitProcessError } from \"@osdk/cli.common\";\nimport { PalantirApiError } from \"@osdk/shared.net\";\nimport { createFetch } from \"../createFetch.mjs\";\nexport async function getWebsite(ctx, thirdPartyAppRid) {\n const fetch = createFetch(ctx.tokenProvider);\n const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website?preview=true`;\n try {\n const result = await fetch(url);\n return result.json();\n } catch (e) {\n // Revisit this error handling in the API\n if (e instanceof ExitProcessError && e.originalError != null && e.originalError instanceof PalantirApiError && e.originalError.errorName === \"WebsiteNotFound\") {\n return undefined;\n }\n throw e;\n }\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createFetch } from \"../createFetch.mjs\";\nexport async function listVersions(ctx, thirdPartyAppRid) {\n const fetch = createFetch(ctx.tokenProvider);\n const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/versions?preview=true`;\n const result = await fetch(url);\n return result.json();\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createFetch } from \"../createFetch.mjs\";\nexport async function undeployWebsite(ctx, thirdPartyAppRid) {\n const fetch = createFetch(ctx.tokenProvider);\n const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/undeploy?preview=true`;\n await fetch(url, {\n method: \"POST\"\n });\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createFetch } from \"../createFetch.mjs\";\nexport async function uploadVersion(ctx, thirdPartyAppRid, version, zipFile) {\n const fetch = createFetch(ctx.tokenProvider);\n const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/versions/upload?version=${version}&preview=true`;\n const result = await fetch(url, {\n method: \"POST\",\n body: zipFile,\n headers: {\n \"Content-Type\": \"application/octet-stream\"\n },\n duplex: \"half\" // Node hates me\n });\n return result.json();\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 { createInternalClientContext } from \"./createInternalClientContext.mjs\";\nexport * as thirdPartyApplications from \"./third-party-applications/index.mjs\";","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ExitProcessError } from \"@osdk/cli.common\";\nimport { consola } from \"consola\";\nimport { promises as fsPromises } from \"node:fs\";\nimport path from \"node:path\";\nconst TOKEN_ENV_VARS = [\"FOUNDRY_TOKEN\", \"FOUNDRY_SDK_AUTH_TOKEN\"];\n\n/**\n * Loads a JWT Auth Token from an argument, a file, or environment variable returning the first found.\n * @param token The token as a string.\n * @param tokenFile The path to the token file.\n * @returns The token as a string.\n * @throws An error if no token is found.\n */\nexport async function loadToken(token, tokenFile) {\n if (token) {\n consola.debug(`Using token from --token option`);\n validate(token);\n return token;\n }\n if (tokenFile) {\n const loadedToken = await loadTokenFile(tokenFile);\n consola.debug(`Using token from --tokenFile=${loadedToken.filePath} option`);\n validate(loadedToken.token);\n return loadedToken.token;\n }\n for (const envVar of TOKEN_ENV_VARS) {\n const environmentToken = process.env[envVar];\n if (environmentToken) {\n consola.debug(`Using token from ${envVar} environment variable`);\n validate(environmentToken);\n if (envVar === \"FOUNDRY_SDK_AUTH_TOKEN\") {\n consola.warn(`Using FOUNDRY_SDK_AUTH_TOKEN environment variable is deprecated. Please use FOUNDRY_TOKEN instead.`);\n }\n return environmentToken;\n }\n }\n throw new ExitProcessError(2, `No token found.`, `You can supply a --token or --token-file option, or set the ${TOKEN_ENV_VARS[0]} environment variable`);\n}\n/**\n * Reads a JWT Auth Token from a file.\n * @param filePath The path to the token file.\n * @returns The token as a string.\n * @throws An error if the file cannot be read.\n */\nexport async function loadTokenFile(filePath) {\n let token;\n let resolvedPath;\n try {\n resolvedPath = path.resolve(filePath);\n token = await fsPromises.readFile(resolvedPath, \"utf8\");\n token = token.trim();\n } catch (error) {\n throw new ExitProcessError(2, `Unable to read token file \"${filePath}\": ${error}`);\n }\n return {\n filePath: resolvedPath,\n token\n };\n}\nexport function validate(token) {\n if (!isJWT(token)) {\n throw new ExitProcessError(2, `Token does not appear to be a JWT`);\n }\n}\nfunction isJWT(token) {\n // https://stackoverflow.com/a/65755789\n const jwtPattern = /^[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]*$/;\n return jwtPattern.test(token);\n}"]}
1
+ {"version":3,"sources":["../../src/net/createInternalClientContext.mts","../../src/net/third-party-applications/index.mts","../../src/net/third-party-applications/deleteVersion.mts","../../src/net/createFetch.mts","../../src/net/UserAgent.ts","../../src/net/third-party-applications/deployWebsite.mts","../../src/net/third-party-applications/getWebsite.mts","../../src/net/third-party-applications/listVersions.mts","../../src/net/third-party-applications/undeployWebsite.mts","../../src/net/third-party-applications/uploadVersion.mts","../../src/net/index.mts","../../src/util/token.ts"],"names":["fetch","consola","fsPromises"],"mappings":";;;;;;;;AAAA,cAAA,EAAA,CAAA;AAgBO,SAAS,2BAAA,CAA4B,YAAY,aAAe,EAAA;AACrE,EAAO,OAAA;AAAA,IACL,aAAA;AAAA,IACA,UAAA;AAAA,GACF,CAAA;AACF,CAAA;;;ACrBA,IAAA,gCAAA,GAAA,GAAA;AAAA,QAAA,CAAA,gCAAA,EAAA;AAAA,EAAA,aAAA,EAAA,MAAA,aAAA;AAAA,EAAA,aAAA,EAAA,MAAA,aAAA;AAAA,EAAA,UAAA,EAAA,MAAA,UAAA;AAAA,EAAA,YAAA,EAAA,MAAA,YAAA;AAAA,EAAA,eAAA,EAAA,MAAA,eAAA;AAAA,EAAA,aAAA,EAAA,MAAA,aAAA;AAAA,CAAA,CAAA,CAAA;AAAA,cAAA,EAAA,CAAA;;;ACAA,cAAA,EAAA,CAAA;;;ACAA,cAAA,EAAA,CAAA;;;ACAA,cAAA,EAAA,CAAA;AAgBO,IAAM,UAAA,GAAa,YAAY,eAA2B,CAAA,CAAA,CAAA;;;ADI1D,SAAS,WAAA,CAAY,aAAe,EAAA,OAAA,GAAU,KAAO,EAAA;AAC1D,EAAO,OAAA,wBAAA,CAAyB,0BAA0B,uBAAwB,CAAA,kBAAA,CAAmB,OAAO,CAAC,CAAC,CAAG,EAAA,OAAM,OAAW,KAAA;AAChI,IAAM,MAAA,KAAA,GAAQ,MAAM,aAAc,EAAA,CAAA;AAClC,IAAA,OAAA,CAAQ,GAAI,CAAA,eAAA,EAAiB,CAAU,OAAA,EAAA,KAAK,CAAE,CAAA,CAAA,CAAA;AAC9C,IAAQ,OAAA,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iB,CAAG,EAAA,CAAA,eAAA,CAAA,EAAmB,+DAA+D,cAAe,CAAA,CAAC,CAAC,CAAuB,qBAAA,CAAA,CAAA,CAAA;AAC1J,CAAA;AAOA,eAAsB,cAAc,QAAU,EAAA;AAC5C,EAAI,IAAA,KAAA,CAAA;AACJ,EAAI,IAAA,YAAA,CAAA;AACJ,EAAI,IAAA;AACF,IAAe,YAAA,GAAA,IAAA,CAAK,QAAQ,QAAQ,CAAA,CAAA;AACpC,IAAA,KAAA,GAAQ,MAAMC,QAAA,CAAW,QAAS,CAAA,YAAA,EAAc,MAAM,CAAA,CAAA;AACtD,IAAA,KAAA,GAAQ,MAAM,IAAK,EAAA,CAAA;AAAA,WACZ,KAAO,EAAA;AACd,IAAA,MAAM,IAAI,gBAAiB,CAAA,CAAA,EAAG,8BAA8B,QAAQ,CAAA,GAAA,EAAM,KAAK,CAAE,CAAA,CAAA,CAAA;AAAA,GACnF;AACA,EAAO,OAAA;AAAA,IACL,QAAU,EAAA,YAAA;AAAA,IACV,KAAA;AAAA,GACF,CAAA;AACF,CAAA;AACO,SAAS,SAAS,KAAO,EAAA;AAC9B,EAAI,IAAA,CAAC,KAAM,CAAA,KAAK,CAAG,EAAA;AACjB,IAAM,MAAA,IAAI,gBAAiB,CAAA,CAAA,EAAG,CAAmC,iCAAA,CAAA,CAAA,CAAA;AAAA,GACnE;AACF,CAAA;AACA,SAAS,MAAM,KAAO,EAAA;AAEpB,EAAA,MAAM,UAAa,GAAA,kDAAA,CAAA;AACnB,EAAO,OAAA,UAAA,CAAW,KAAK,KAAK,CAAA,CAAA;AAC9B","file":"chunk-MAKI5WGP.js","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport function createInternalClientContext(foundryUrl, tokenProvider) {\n return {\n tokenProvider,\n foundryUrl\n };\n}","/*\n * Copyright 2024 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 { deleteVersion } from \"./deleteVersion.mjs\";\nexport { deployWebsite } from \"./deployWebsite.mjs\";\nexport { getWebsite } from \"./getWebsite.mjs\";\nexport { listVersions } from \"./listVersions.mjs\";\nexport { undeployWebsite } from \"./undeployWebsite.mjs\";\nexport { uploadVersion } from \"./uploadVersion.mjs\";","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createFetch } from \"../createFetch.mjs\";\nexport async function deleteVersion(ctx, thirdPartyAppRid, version) {\n const fetch = createFetch(ctx.tokenProvider);\n const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/versions/${version}?preview=true`;\n await fetch(url, {\n method: \"DELETE\"\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 { ExitProcessError } from \"@osdk/cli.common\";\nimport { createFetchHeaderMutator, createFetchOrThrow, PalantirApiError } from \"@osdk/shared.net\";\nimport { consola } from \"consola\";\nimport { USER_AGENT } from \"./UserAgent.js\";\nexport function createFetch(tokenProvider, fetchFn = fetch) {\n return createFetchHeaderMutator(createRequestLoggingFetch(createErrorExitingFetch(createFetchOrThrow(fetchFn))), async headers => {\n const token = await tokenProvider();\n headers.set(\"Authorization\", `Bearer ${token}`);\n headers.set(\"Fetch-User-Agent\", USER_AGENT);\n return headers;\n });\n}\nfunction createErrorExitingFetch(fetchFn = fetch) {\n return function errorExitingFetch(input, init) {\n return fetchFn(input, init).catch(handleFetchError);\n };\n}\nfunction handleFetchError(e) {\n if (!(e instanceof PalantirApiError)) {\n throw new ExitProcessError(1, \"Unexpected fetch error\");\n }\n let tip;\n if (e.statusCode === 401) {\n tip = \"Check your token is valid and has not expired or been disabled\";\n } else if (e.statusCode === 403) {\n tip = \"Check your token has the required scopes for this operation\";\n }\n let message = e.message;\n if (e.errorName === \"CannotDeleteDeployedVersion\") {\n message = \"The site version to delete is live and cannot be deleted\";\n tip = \"Run the `site version set` command to change the live site version\";\n } else if (e.errorName === \"InvalidVersion\") {\n message = \"The site version is invalid and must be a valid SemVer string\";\n } else if (e.errorName === \"VersionAlreadyExists\") {\n message = \"The site version already exists\";\n } else if (e.errorName === \"VersionNotFound\") {\n message = \"The site version could not be found\";\n }\n throw new ExitProcessError(1, message, tip, e);\n}\nfunction createRequestLoggingFetch(fetchFn = fetch) {\n return function requestLoggingFetch(input, init) {\n const requestLog = typeof input === \"string\" || input instanceof URL ? `${init?.method ?? \"GET\"}: ${input.toString().trim()}` : `${input.method ?? \"GET\"}: ${input.url.toString().trim()}`;\n consola.trace(requestLog);\n return fetchFn(input, init).then(a => {\n consola.trace(`FINISH ${requestLog}`);\n return a;\n });\n };\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const USER_AGENT = `osdk-cli/${process.env.PACKAGE_VERSION}`;","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createFetch } from \"../createFetch.mjs\";\nexport async function deployWebsite(ctx, thirdPartyAppRid, request) {\n const fetch = createFetch(ctx.tokenProvider);\n const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/deploy?preview=true`;\n const result = await fetch(url, {\n method: \"POST\",\n body: JSON.stringify(request),\n headers: {\n \"Content-Type\": \"application/json\"\n }\n });\n return result.json();\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ExitProcessError } from \"@osdk/cli.common\";\nimport { PalantirApiError } from \"@osdk/shared.net\";\nimport { createFetch } from \"../createFetch.mjs\";\nexport async function getWebsite(ctx, thirdPartyAppRid) {\n const fetch = createFetch(ctx.tokenProvider);\n const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website?preview=true`;\n try {\n const result = await fetch(url);\n return result.json();\n } catch (e) {\n // Revisit this error handling in the API\n if (e instanceof ExitProcessError && e.originalError != null && e.originalError instanceof PalantirApiError && e.originalError.errorName === \"WebsiteNotFound\") {\n return undefined;\n }\n throw e;\n }\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createFetch } from \"../createFetch.mjs\";\nexport async function listVersions(ctx, thirdPartyAppRid) {\n const fetch = createFetch(ctx.tokenProvider);\n const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/versions?preview=true`;\n const result = await fetch(url);\n return result.json();\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createFetch } from \"../createFetch.mjs\";\nexport async function undeployWebsite(ctx, thirdPartyAppRid) {\n const fetch = createFetch(ctx.tokenProvider);\n const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/undeploy?preview=true`;\n await fetch(url, {\n method: \"POST\"\n });\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createFetch } from \"../createFetch.mjs\";\nexport async function uploadVersion(ctx, thirdPartyAppRid, version, zipFile) {\n const fetch = createFetch(ctx.tokenProvider);\n const url = `${ctx.foundryUrl}/api/v2/thirdPartyApplications/${thirdPartyAppRid}/website/versions/upload?version=${version}&preview=true`;\n const result = await fetch(url, {\n method: \"POST\",\n body: zipFile,\n headers: {\n \"Content-Type\": \"application/octet-stream\"\n },\n duplex: \"half\" // Node hates me\n });\n return result.json();\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 { createInternalClientContext } from \"./createInternalClientContext.mjs\";\nexport * as thirdPartyApplications from \"./third-party-applications/index.mjs\";","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ExitProcessError } from \"@osdk/cli.common\";\nimport { consola } from \"consola\";\nimport { promises as fsPromises } from \"node:fs\";\nimport path from \"node:path\";\nconst TOKEN_ENV_VARS = [\"FOUNDRY_TOKEN\", \"FOUNDRY_SDK_AUTH_TOKEN\"];\n\n/**\n * Loads a JWT Auth Token from an argument, a file, or environment variable returning the first found.\n * @param token The token as a string.\n * @param tokenFile The path to the token file.\n * @returns The token as a string.\n * @throws An error if no token is found.\n */\nexport async function loadToken(token, tokenFile) {\n if (token) {\n consola.debug(`Using token from --token option`);\n validate(token);\n return token;\n }\n if (tokenFile) {\n const loadedToken = await loadTokenFile(tokenFile);\n consola.debug(`Using token from --tokenFile=${loadedToken.filePath} option`);\n validate(loadedToken.token);\n return loadedToken.token;\n }\n for (const envVar of TOKEN_ENV_VARS) {\n const environmentToken = process.env[envVar];\n if (environmentToken) {\n consola.debug(`Using token from ${envVar} environment variable`);\n validate(environmentToken);\n if (envVar === \"FOUNDRY_SDK_AUTH_TOKEN\") {\n consola.warn(`Using FOUNDRY_SDK_AUTH_TOKEN environment variable is deprecated. Please use FOUNDRY_TOKEN instead.`);\n }\n return environmentToken;\n }\n }\n throw new ExitProcessError(2, `No token found.`, `You can supply a --token or --token-file option, or set the ${TOKEN_ENV_VARS[0]} environment variable`);\n}\n/**\n * Reads a JWT Auth Token from a file.\n * @param filePath The path to the token file.\n * @returns The token as a string.\n * @throws An error if the file cannot be read.\n */\nexport async function loadTokenFile(filePath) {\n let token;\n let resolvedPath;\n try {\n resolvedPath = path.resolve(filePath);\n token = await fsPromises.readFile(resolvedPath, \"utf8\");\n token = token.trim();\n } catch (error) {\n throw new ExitProcessError(2, `Unable to read token file \"${filePath}\": ${error}`);\n }\n return {\n filePath: resolvedPath,\n token\n };\n}\nexport function validate(token) {\n if (!isJWT(token)) {\n throw new ExitProcessError(2, `Token does not appear to be a JWT`);\n }\n}\nfunction isJWT(token) {\n // https://stackoverflow.com/a/65755789\n const jwtPattern = /^[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]*$/;\n return jwtPattern.test(token);\n}"]}
@@ -22210,22 +22210,26 @@ async function writeJson(minimalFs, filePath, body) {
22210
22210
  return await minimalFs.writeFile(filePath, JSON.stringify(body, void 0, 2) + "\n");
22211
22211
  }
22212
22212
 
22213
- // ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@0.3.0-beta.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/index.js
22213
+ // ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@2.2.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/index.js
22214
22214
  init_esm_shims();
22215
22215
 
22216
- // ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@0.3.0-beta.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/Action.js
22216
+ // ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@2.2.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/Action.js
22217
22217
  init_esm_shims();
22218
22218
 
22219
- // ../../node_modules/.pnpm/@osdk+shared.net.platformapi@0.3.1/node_modules/@osdk/shared.net.platformapi/build/esm/index.js
22219
+ // ../../node_modules/.pnpm/@osdk+shared.net.platformapi@0.3.2/node_modules/@osdk/shared.net.platformapi/build/esm/index.js
22220
22220
  init_esm_shims();
22221
22221
 
22222
- // ../../node_modules/.pnpm/@osdk+shared.net.platformapi@0.3.1/node_modules/@osdk/shared.net.platformapi/build/esm/foundryPlatformFetch.js
22222
+ // ../../node_modules/.pnpm/@osdk+shared.net.platformapi@0.3.2/node_modules/@osdk/shared.net.platformapi/build/esm/foundryPlatformFetch.js
22223
22223
  init_esm_shims();
22224
22224
 
22225
22225
  // ../../node_modules/.pnpm/@osdk+shared.client@1.0.1/node_modules/@osdk/shared.client/index.js
22226
22226
  init_esm_shims();
22227
22227
  var symbolClientContext = Symbol("ClientContext");
22228
22228
 
22229
+ // ../../node_modules/.pnpm/@osdk+shared.client2@1.0.0/node_modules/@osdk/shared.client2/index.js
22230
+ init_esm_shims();
22231
+ var symbolClientContext2 = "__osdkClientContext";
22232
+
22229
22233
  // ../../node_modules/.pnpm/@osdk+shared.net.errors@2.0.0/node_modules/@osdk/shared.net.errors/build/esm/index.js
22230
22234
  init_esm_shims();
22231
22235
 
@@ -22259,14 +22263,14 @@ var UnknownError = class extends PalantirApiError {
22259
22263
  }
22260
22264
  };
22261
22265
 
22262
- // ../../node_modules/.pnpm/@osdk+shared.net.platformapi@0.3.1/node_modules/@osdk/shared.net.platformapi/build/esm/foundryPlatformFetch.js
22266
+ // ../../node_modules/.pnpm/@osdk+shared.net.platformapi@0.3.2/node_modules/@osdk/shared.net.platformapi/build/esm/foundryPlatformFetch.js
22263
22267
  async function foundryPlatformFetch(client, [httpMethodNum, origPath, flags, contentType, responseContentType], ...args) {
22264
22268
  const path21 = origPath.replace(/\{([^}]+)\}/g, () => encodeURIComponent(args.shift()));
22265
22269
  const body = flags & 1 ? args.shift() : void 0;
22266
22270
  const queryArgs = flags & 2 ? args.shift() : void 0;
22267
22271
  const headerArgs = flags & 4 ? args.shift() : void 0;
22268
22272
  const method = ["GET", "POST", "PUT", "DELETE", "PATCH"][httpMethodNum];
22269
- return await apiFetch(client[symbolClientContext] ?? client, method, path21, body, queryArgs, headerArgs, contentType, responseContentType);
22273
+ return await apiFetch(client[symbolClientContext2] ?? client[symbolClientContext] ?? client, method, path21, body, queryArgs, headerArgs, contentType, responseContentType);
22270
22274
  }
22271
22275
  async function apiFetch(clientCtx, method, endpointPath, data, queryArguments, headers, requestMediaType, responseMediaType) {
22272
22276
  const url2 = new URL(`/api${endpointPath}`, clientCtx.baseUrl);
@@ -22316,31 +22320,31 @@ async function apiFetch(clientCtx, method, endpointPath, data, queryArguments, h
22316
22320
  return response.blob();
22317
22321
  }
22318
22322
 
22319
- // ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@0.3.0-beta.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/ActionTypeV2.js
22323
+ // ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@2.2.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/ActionTypeV2.js
22320
22324
  init_esm_shims();
22321
22325
 
22322
- // ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@0.3.0-beta.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/Attachment.js
22326
+ // ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@2.2.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/Attachment.js
22323
22327
  init_esm_shims();
22324
22328
 
22325
- // ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@0.3.0-beta.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/AttachmentPropertyV2.js
22329
+ // ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@2.2.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/AttachmentPropertyV2.js
22326
22330
  init_esm_shims();
22327
22331
 
22328
- // ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@0.3.0-beta.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/LinkedObjectV2.js
22332
+ // ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@2.2.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/LinkedObjectV2.js
22329
22333
  init_esm_shims();
22330
22334
 
22331
- // ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@0.3.0-beta.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/ObjectTypeV2.js
22335
+ // ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@2.2.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/ObjectTypeV2.js
22332
22336
  init_esm_shims();
22333
22337
 
22334
- // ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@0.3.0-beta.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/OntologyInterface.js
22338
+ // ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@2.2.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/OntologyInterface.js
22335
22339
  init_esm_shims();
22336
22340
 
22337
- // ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@0.3.0-beta.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/OntologyObjectSet.js
22341
+ // ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@2.2.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/OntologyObjectSet.js
22338
22342
  init_esm_shims();
22339
22343
 
22340
- // ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@0.3.0-beta.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/OntologyObjectV2.js
22344
+ // ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@2.2.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/OntologyObjectV2.js
22341
22345
  init_esm_shims();
22342
22346
 
22343
- // ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@0.3.0-beta.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/OntologyV2.js
22347
+ // ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@2.2.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/OntologyV2.js
22344
22348
  var OntologyV2_exports = {};
22345
22349
  __export(OntologyV2_exports, {
22346
22350
  get: () => get,
@@ -22361,21 +22365,21 @@ function getFullMetadata($ctx, ...args) {
22361
22365
  return foundryPlatformFetch($ctx, _getFullMetadata, ...args);
22362
22366
  }
22363
22367
 
22364
- // ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@0.3.0-beta.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/Query.js
22368
+ // ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@2.2.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/Query.js
22365
22369
  init_esm_shims();
22366
22370
 
22367
- // ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@0.3.0-beta.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/QueryType.js
22371
+ // ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@2.2.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/QueryType.js
22368
22372
  init_esm_shims();
22369
22373
 
22370
- // ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@0.3.0-beta.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/TimeSeriesPropertyV2.js
22374
+ // ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@2.2.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/TimeSeriesPropertyV2.js
22371
22375
  init_esm_shims();
22372
22376
 
22373
- // ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@0.3.0-beta.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/TimeSeriesValueBankProperty.js
22377
+ // ../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@2.2.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/TimeSeriesValueBankProperty.js
22374
22378
  init_esm_shims();
22375
22379
 
22376
22380
  // ../cli.cmd.typescript/build/esm/generate/handleGenerate.mjs
22377
22381
  var import_fast_deep_equal2 = __toESM(require_fast_deep_equal(), 1);
22378
- var USER_AGENT = `osdk-cli.cmd.typescript/${"0.25.0-beta.1"}`;
22382
+ var USER_AGENT = `osdk-cli.cmd.typescript/${"0.25.0-beta.3"}`;
22379
22383
  async function handleGenerate(args) {
22380
22384
  let success = false;
22381
22385
  if (args.ontologyPath) {
@@ -22511,7 +22515,7 @@ async function generateClientSdk(ontology, args) {
22511
22515
  }
22512
22516
  return true;
22513
22517
  }
22514
- await generateClientSdkPackage(args.packageName, args.version, args.beta ? "2.0" : "1.1", args.outDir, ontology, minimalFs, await getDependencyVersions(), "0.25.0-beta.1", args.externalObjects, args.externalInterfaces);
22518
+ await generateClientSdkPackage(args.packageName, args.version, args.beta ? "2.0" : "1.1", args.outDir, ontology, minimalFs, await getDependencyVersions(), "0.25.0-beta.3", args.externalObjects, args.externalInterfaces);
22515
22519
  return true;
22516
22520
  } catch (e) {
22517
22521
  consola.error("OSDK generation failed", e.message, e.stack);
@@ -22533,8 +22537,8 @@ async function getDependencyVersions() {
22533
22537
  const typescriptVersion = ourPackageJson.devDependencies.typescript;
22534
22538
  const tslibVersion = ourPackageJson.dependencies.tslib;
22535
22539
  const areTheTypesWrongVersion = ourPackageJson.dependencies["@arethetypeswrong/cli"];
22536
- const osdkClientVersion = `^${"2.1.0-beta.1"}`;
22537
- const osdkApiVersion = `^${"2.1.0-beta.1"}`;
22540
+ const osdkClientVersion = `^${"2.1.0-beta.3"}`;
22541
+ const osdkApiVersion = `^${"2.1.0-beta.3"}`;
22538
22542
  const osdkLegacyClientVersion = `^${process.env.PACKAGE_LEGACY_CLIENT_VERSION}`;
22539
22543
  return {
22540
22544
  typescriptVersion,
@@ -22580,5 +22584,5 @@ function createNormalFs() {
22580
22584
  }
22581
22585
 
22582
22586
  export { getDependencyVersions, handleGenerate, updateVersionsIfTheyExist };
22583
- //# sourceMappingURL=handleGenerate-LNHCSXJL.js.map
22584
- //# sourceMappingURL=handleGenerate-LNHCSXJL.js.map
22587
+ //# sourceMappingURL=handleGenerate-U5W2XQTE.js.map
22588
+ //# sourceMappingURL=handleGenerate-U5W2XQTE.js.map