@osdk/client 2.2.0-beta.20 → 2.2.0-beta.22

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 +26 -0
  2. package/build/browser/fetchMetadata.js +1 -1
  3. package/build/browser/fetchMetadata.js.map +1 -1
  4. package/build/browser/ontology/OntologyProvider.js.map +1 -1
  5. package/build/browser/ontology/StandardOntologyProvider.js +12 -5
  6. package/build/browser/ontology/StandardOntologyProvider.js.map +1 -1
  7. package/build/browser/ontology/loadQueryMetadata.js +5 -2
  8. package/build/browser/ontology/loadQueryMetadata.js.map +1 -1
  9. package/build/browser/queries/applyQuery.js +3 -1
  10. package/build/browser/queries/applyQuery.js.map +1 -1
  11. package/build/browser/queries/queries.test.js +25 -0
  12. package/build/browser/queries/queries.test.js.map +1 -1
  13. package/build/browser/util/UserAgent.js +1 -1
  14. package/build/cjs/{chunk-33GHS3X4.cjs → chunk-TGPOMOO2.cjs} +14 -14
  15. package/build/cjs/{chunk-33GHS3X4.cjs.map → chunk-TGPOMOO2.cjs.map} +1 -1
  16. package/build/cjs/{chunk-37QC7LR3.cjs → chunk-W5PFESFR.cjs} +15 -15
  17. package/build/cjs/chunk-W5PFESFR.cjs.map +1 -0
  18. package/build/cjs/index.cjs +68 -55
  19. package/build/cjs/index.cjs.map +1 -1
  20. package/build/cjs/public/internal.cjs +8 -8
  21. package/build/cjs/public/unstable-do-not-use.cjs +8 -8
  22. package/build/esm/fetchMetadata.js +1 -1
  23. package/build/esm/fetchMetadata.js.map +1 -1
  24. package/build/esm/ontology/OntologyProvider.js.map +1 -1
  25. package/build/esm/ontology/StandardOntologyProvider.js +12 -5
  26. package/build/esm/ontology/StandardOntologyProvider.js.map +1 -1
  27. package/build/esm/ontology/loadQueryMetadata.js +5 -2
  28. package/build/esm/ontology/loadQueryMetadata.js.map +1 -1
  29. package/build/esm/queries/applyQuery.js +3 -1
  30. package/build/esm/queries/applyQuery.js.map +1 -1
  31. package/build/esm/queries/queries.test.js +25 -0
  32. package/build/esm/queries/queries.test.js.map +1 -1
  33. package/build/esm/util/UserAgent.js +1 -1
  34. package/build/types/ontology/OntologyProvider.d.ts +1 -1
  35. package/build/types/ontology/OntologyProvider.d.ts.map +1 -1
  36. package/build/types/ontology/loadQueryMetadata.d.ts +1 -1
  37. package/build/types/ontology/loadQueryMetadata.d.ts.map +1 -1
  38. package/build/types/queries/applyQuery.d.ts.map +1 -1
  39. package/package.json +8 -8
  40. package/build/cjs/chunk-37QC7LR3.cjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js","../../../../node_modules/.pnpm/@osdk+shared.client@1.0.1/node_modules/@osdk/shared.client/index.js","../../../../node_modules/.pnpm/@osdk+shared.client2@1.0.0/node_modules/@osdk/shared.client2/index.js","../../../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.3.0/node_modules/@osdk/shared.net.platformapi/build/esm/foundryPlatformFetch.js","../../../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ActionTypeV2.js","../../../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Attachment.js","../../../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/MediaReferenceProperty.js","../../../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ObjectTypeV2.js","../../../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyInterface.js","../../../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectSet.js","../../../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Query.js","../../../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/QueryType.js","../../../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesPropertyV2.js","../../../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesValueBankProperty.js","../../src/util/addUserAgentAndRequestContextHeaders.ts","../../src/util/extractRdpDefinition.ts","../../src/util/objectSetUtils.ts","../../src/object/fetchPage.ts","../../src/Client.ts"],"names":["symbolClientContext","PalantirApiError","UnknownError","get","_get","upload","_upload","list","_list","aggregate","_aggregate","createFetchHeaderMutator","definitions","invariant","result"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAA,cAAA,GAAA;AAAA,QAAA,CAAA,cAAA,EAAA;AAAA,EAAA,KAAA,EAAA,MAAA,KAAA;AAAA,EAAA,UAAA,EAAA,MAAA,UAAA;AAAA,EAAA,UAAA,EAAA,MAAA;AAAA,CAAA,CAAA;;;ACgBa,IAAA,mBAAA,GAAsB,OAAO,eAAe;;;ACAlD,IAAMA,oBAAsB,GAAA,qBAAA;ACEnC,eAAsB,oBAAA,CAAqB,QAAQ,CAAC,aAAA,EAAe,UAAU,KAAO,EAAA,WAAA,EAAa,mBAAmB,CAAA,EAAA,GAAM,IAAM,EAAA;AAC9H,EAAM,MAAA,IAAA,GAAO,SAAS,OAAQ,CAAA,cAAA,EAAgB,MAAM,kBAAmB,CAAA,IAAA,CAAK,KAAM,EAAC,CAAC,CAAA;AACpF,EAAA,MAAM,IAAO,GAAA,KAAA,GAAQ,CAAI,GAAA,IAAA,CAAK,OAAU,GAAA,MAAA;AACxC,EAAA,MAAM,SAAY,GAAA,KAAA,GAAQ,CAAI,GAAA,IAAA,CAAK,OAAU,GAAA,MAAA;AAC7C,EAAA,MAAM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A,KACJ;AAAA;AAEF,EAAO,OAAA,IAAA;AACT;AAGA,eAAsB,eAAgB,CAAA,MAAA,EAAQ,UAAY,EAAA,IAAA,EAAM,SAAW,EAAA;AACzE,EAAA,MAAM,CAAI,GAAA,MAAmB,yBAAmB,CAAA,IAAA,CAAK,oCAAqC,CAAA,MAAA,EAAQ,UAAU,CAAA,EAAG,MAAM,MAAA,CAAO,WAAa,EAAA,cAAA,CAAe,IAAM,EAAA;AAAA,IAC5J,SAAA;AAAA;AAAA,IAEA,MAAA,EAAQ,IAAM,EAAA,OAAA,IAAW,EAAC;AAAA;AAAA,IAE1B,UAAA,EAAY,CAAC,IAAM,EAAA;AAAA,GACpB,CAAC,CAAA;AACF,EAAA,OAAO,QAAQ,OAAQ,CAAA;AAAA,IACrB,IAAM,EAAA,MAAM,MAAO,CAAA,aAAA,CAAc,QAAQ,CAAE,CAAA,IAAA,EAAM,MAAW,EAAA,MAAA,EAAW,MAAM,oBAAqB,CAAA,MAAA,EAAQ,SAAS,CAAA,EAAG,KAAK,OAAO,CAAA;AAAA,IAClI,eAAe,CAAE,CAAA,aAAA;AAAA,IACjB,YAAY,CAAE,CAAA;AAAA,GACf,CAAA;AACH;;;AChJa,IAAA,iBAAA,GAAoB,OAAO,mBAAmB","file":"chunk-W5PFESFR.cjs","sourcesContent":["/*\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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _apply = [1, \"/v2/ontologies/{0}/actions/{1}/apply\", 3];\n/**\n * Applies an action using the given parameters.\n *\n * Changes to objects or links stored in Object Storage V1 are eventually consistent and may take some time to be visible.\n * Edits to objects or links in Object Storage V2 will be visible immediately after the action completes.\n *\n * Note that [parameter default values](https://www.palantir.com/docs/foundry/action-types/parameters-default-value/) are not currently supported by\n * this endpoint.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read api:ontologies-write`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read, api:ontologies-write]\n * URL: /v2/ontologies/{ontology}/actions/{action}/apply\n */\nexport function apply($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _apply, ...args);\n}\nconst _applyAsync = [1, \"/v2/ontologies/{0}/actions/{1}/applyAsync\", 3];\n/**\n * Applies an action using the given parameters.\n *\n * Changes to objects or links stored in Object Storage V1 are eventually consistent and may take some time to be visible.\n * Edits to objects or links in Object Storage V2 will be visible immediately after the action completes.\n *\n * Note that [parameter default values](https://www.palantir.com/docs/foundry/action-types/parameters-default-value/) are not currently supported by\n * this endpoint.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read api:ontologies-write`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read, api:ontologies-write]\n * URL: /v2/ontologies/{ontology}/actions/{action}/applyAsync\n */\nexport function applyAsync($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _applyAsync, ...args);\n}\nconst _applyBatch = [1, \"/v2/ontologies/{0}/actions/{1}/applyBatch\", 3];\n/**\n * Applies multiple actions (of the same Action Type) using the given parameters.\n *\n * Changes to objects or links stored in Object Storage V1 are eventually consistent and may take some time to be visible.\n * Edits to objects or links in Object Storage V2 will be visible immediately after the action completes.\n *\n * Up to 20 actions may be applied in one call. Actions that only modify objects in Object Storage v2 and do not\n * call Functions may receive a higher limit.\n *\n * Note that [notifications](https://www.palantir.com/docs/foundry/action-types/notifications/) are not currently supported by this endpoint.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read api:ontologies-write`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read, api:ontologies-write]\n * URL: /v2/ontologies/{ontology}/actions/{action}/applyBatch\n */\nexport function applyBatch($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _applyBatch, ...args);\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 const symbolClientContext = Symbol(\"ClientContext\");","/*\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 const symbolClientContext = \"__osdkClientContext\";","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { symbolClientContext as oldSymbolClientContext } from \"@osdk/shared.client\";\nimport { symbolClientContext } from \"@osdk/shared.client2\";\nimport { PalantirApiError, UnknownError } from \"@osdk/shared.net.errors\";\nexport async function foundryPlatformFetch(client, [httpMethodNum, origPath, flags, contentType, responseContentType], ...args) {\n const path = origPath.replace(/\\{([^}]+)\\}/g, () => encodeURIComponent(args.shift()));\n const body = flags & 1 ? args.shift() : undefined;\n const queryArgs = flags & 2 ? args.shift() : undefined;\n const headerArgs = flags & 4 ? args.shift() : undefined;\n const method = [\"GET\", \"POST\", \"PUT\", \"DELETE\", \"PATCH\"][httpMethodNum];\n return await apiFetch(client[symbolClientContext] ?? client[oldSymbolClientContext] ?? client, method, path, body, queryArgs, headerArgs, contentType, responseContentType);\n}\nasync function apiFetch(clientCtx, method, endpointPath, data, queryArguments, headers, requestMediaType, responseMediaType) {\n const url = parseUrl(clientCtx.baseUrl, endpointPath);\n for (const [key, value] of Object.entries(queryArguments || {})) {\n if (value == null) {\n continue;\n }\n if (Array.isArray(value)) {\n for (const item of value) {\n url.searchParams.append(key, item);\n }\n } else {\n url.searchParams.append(key, value);\n }\n }\n const headersInit = new Headers();\n headersInit.set(\"Content-Type\", requestMediaType ?? \"application/json\");\n headersInit.set(\"Accept\", responseMediaType ?? \"application/json\");\n Object.entries(headers || {}).forEach(([key, value]) => {\n if (value != null) {\n headersInit.append(key, value.toString());\n }\n });\n const body = data == null || data instanceof globalThis.Blob ? data : JSON.stringify(data);\n // Because this uses the client's fetch, there is a 99.99% chance that it is already going\n // to handle the error case and throw a PalantirApiError since its wrapped in a\n // createFetchOrThrow.\n const response = await clientCtx.fetch(url.toString(), {\n body,\n method: method,\n headers: headersInit\n });\n // However, if we ended up using a \"regular\" fetch, the\n // error status codes are not thrown by fetch automatically,\n // we have to look at the ok property and behave accordingly\n if (!response.ok) {\n try {\n const convertedError = await response.json();\n return new PalantirApiError(convertedError.message, convertedError.errorName, convertedError.errorCode, response.status, convertedError.errorInstanceId, convertedError.parameters);\n } catch (e) {\n if (e instanceof Error) {\n return new UnknownError(e.message, \"UNKNOWN\");\n }\n return new UnknownError(\"Unable to parse error response\", \"UNKNOWN\");\n }\n }\n // Do not return anything if its a 204. Do not parse either!\n if (response.status === 204) {\n return;\n }\n if (responseMediaType == null || responseMediaType === \"application/json\") {\n return await response.json();\n }\n return response;\n}\nexport function parseUrl(baseUrl, endpointPath) {\n baseUrl += baseUrl.endsWith(\"/\") ? \"\" : \"/\";\n return new URL(`api${endpointPath}`, baseUrl);\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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _list = [0, \"/v2/ontologies/{0}/actionTypes\", 2];\n/**\n * Lists the action types for the given Ontology.\n *\n * Each page may be smaller than the requested page size. However, it is guaranteed that if there are more\n * results available, at least one result will be present in the response.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/actionTypes\n */\nexport function list($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _list, ...args);\n}\nconst _get = [0, \"/v2/ontologies/{0}/actionTypes/{1}\"];\n/**\n * Gets a specific action type with the given API name.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/actionTypes/{actionType}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _getByRid = [0, \"/v2/ontologies/{0}/actionTypes/byRid/{1}\"];\n/**\n * Gets a specific action type with the given RID.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/actionTypes/byRid/{actionTypeRid}\n */\nexport function getByRid($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getByRid, ...args);\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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _upload = [1, \"/v2/ontologies/attachments/upload\", 7, \"*/*\"];\n/**\n * Upload an attachment to use in an action. Any attachment which has not been linked to an object via\n * an action within one hour after upload will be removed.\n * Previously mapped attachments which are not connected to any object anymore are also removed on\n * a biweekly basis.\n * The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-write`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-write]\n * URL: /v2/ontologies/attachments/upload\n */\nexport function upload($ctx, ...args) {\n const headerParams = {\n ...args[2],\n \"Content-Type\": args[2]?.[\"Content-Type\"] ?? args[0].type,\n \"Content-Length\": args[0].size.toString()\n };\n return $foundryPlatformFetch($ctx, _upload, args[0], args[1], headerParams);\n}\nconst _read = [0, \"/v2/ontologies/attachments/{0}/content\",,, \"*/*\"];\n/**\n * Get the content of an attachment.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/attachments/{attachmentRid}/content\n */\nexport function read($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _read, ...args);\n}\nconst _get = [0, \"/v2/ontologies/attachments/{0}\"];\n/**\n * Get the metadata of an attachment.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/attachments/{attachmentRid}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _getMediaContent = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/media/{3}/content\", 2,, \"*/*\"];\n/**\n * Gets the content of a media item referenced by this property.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read`.\n *\n * @beta\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/media/{property}/content\n */\nexport function getMediaContent($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getMediaContent, ...args);\n}\nconst _getMediaMetadata = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/media/{3}/metadata\", 2];\n/**\n * Gets metadata about the media item referenced by this property.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/media/{property}/metadata\n */\nexport function getMediaMetadata($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getMediaMetadata, ...args);\n}\nconst _upload = [1, \"/v2/ontologies/{0}/objectTypes/{1}/media/{2}/upload\", 3, \"*/*\"];\n/**\n * Uploads a media item to the media set which backs the specified property. The property must be backed by a single media set and branch, otherwise an error will be thrown.\n * The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read api:ontologies-write`.\n *\n * @beta\n *\n * Required Scopes: [api:ontologies-read, api:ontologies-write]\n * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/media/{property}/upload\n */\nexport function upload($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _upload, ...args);\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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _list = [0, \"/v2/ontologies/{0}/objectTypes\", 2];\n/**\n * Lists the object types for the given Ontology.\n *\n * Each page may be smaller or larger than the requested page size. However, it is guaranteed that if there are\n * more results available, at least one result will be present in the\n * response.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objectTypes\n */\nexport function list($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _list, ...args);\n}\nconst _get = [0, \"/v2/ontologies/{0}/objectTypes/{1}\"];\n/**\n * Gets a specific object type with the given API name.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _getFullMetadata = [0, \"/v2/ontologies/{0}/objectTypes/{1}/fullMetadata\", 2];\n/**\n * Gets the full metadata for a specific object type with the given API name.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/fullMetadata\n */\nexport function getFullMetadata($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getFullMetadata, ...args);\n}\nconst _listOutgoingLinkTypes = [0, \"/v2/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes\", 2];\n/**\n * List the outgoing links for an object type.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/outgoingLinkTypes\n */\nexport function listOutgoingLinkTypes($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listOutgoingLinkTypes, ...args);\n}\nconst _getOutgoingLinkType = [0, \"/v2/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes/{2}\"];\n/**\n * Get an outgoing link for an object type.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/outgoingLinkTypes/{linkType}\n */\nexport function getOutgoingLinkType($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getOutgoingLinkType, ...args);\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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _list = [0, \"/v2/ontologies/{0}/interfaceTypes\", 2];\n/**\n * :::callout{theme=warning title=Warning}\n * This endpoint is in preview and may be modified or removed at any time.\n * To use this endpoint, add `preview=true` to the request query parameters.\n * :::\n *\n * Lists the interface types for the given Ontology.\n *\n * Each page may be smaller than the requested page size. However, it is guaranteed that if there are more\n * results available, at least one result will be present in the response.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @beta\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/interfaceTypes\n */\nexport function list($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _list, ...args);\n}\nconst _get = [0, \"/v2/ontologies/{0}/interfaceTypes/{1}\", 2];\n/**\n * :::callout{theme=warning title=Warning}\n * This endpoint is in preview and may be modified or removed at any time.\n * To use this endpoint, add `preview=true` to the request query parameters.\n * :::\n *\n * Gets a specific interface type with the given API name.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @beta\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/interfaceTypes/{interfaceType}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _search = [1, \"/v2/ontologies/{0}/interfaces/{1}/search\", 3];\n/**\n * :::callout{theme=warning title=Warning}\n * This endpoint will be removed once TS OSDK is updated to use `objectSets/loadObjects` with interface object\n * sets.\n * :::\n * :::callout{theme=warning title=Warning}\n * This endpoint is in preview and may be modified or removed at any time.\n * To use this endpoint, add `preview=true` to the request query parameters.\n * :::\n *\n * Search for objects in the specified ontology and interface type. Any properties specified in the \"where\" or\n * \"orderBy\" parameters must be shared property type API names defined on the interface. The following search\n * queries are supported:\n *\n * | Query type | Description | Supported Types |\n * |-----------------------------------------|-------------------------------------------------------------------------------------------------------------------|---------------------------------|\n * | lt | The provided property is less than the provided value. | number, string, date, timestamp |\n * | gt | The provided property is greater than the provided value. | number, string, date, timestamp |\n * | lte | The provided property is less than or equal to the provided value. | number, string, date, timestamp |\n * | gte | The provided property is greater than or equal to the provided value. | number, string, date, timestamp |\n * | eq | The provided property is exactly equal to the provided value. | number, string, date, timestamp |\n * | isNull | The provided property is (or is not) null. | all |\n * | contains | The provided property contains the provided value. | array |\n * | not | The sub-query does not match. | N/A (applied on a query) |\n * | and | All the sub-queries match. | N/A (applied on queries) |\n * | or | At least one of the sub-queries match. | N/A (applied on queries) |\n * | startsWith | The provided property starts with the provided term. | string |\n * | containsAllTermsInOrderPrefixLastTerm | The provided property contains all the terms provided in order. The last term can be a partial prefix match. | string |\n * | containsAllTermsInOrder | The provided property contains the provided terms as a substring. | string |\n * | containsAnyTerm | The provided property contains at least one of the terms separated by whitespace. | string |\n * | containsAllTerms | The provided property contains all the terms separated by whitespace. | string |\n *\n * Queries can be at most three levels deep. By default, terms are separated by whitespace or punctuation (`?!,:;-[](){}'\"~`). Periods (`.`) on their own are ignored.\n * Partial terms are not matched by terms filters except where explicitly noted.\n *\n * Attempting to use an unsupported query will result in a validation error. Third-party applications using this\n * endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/interfaces/{interfaceType}/search\n */\nexport function search($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _search, ...args);\n}\nconst _aggregate = [1, \"/v2/ontologies/{0}/interfaces/{1}/aggregate\", 3];\n/**\n * :::callout{theme=warning title=Warning}\n * This endpoint will be removed once TS OSDK is updated to use `objectSets/aggregate` with interface object\n * sets.\n * :::\n * :::callout{theme=warning title=Warning}\n * This endpoint is in preview and may be modified or removed at any time.\n * To use this endpoint, add `preview=true` to the request query parameters.\n * :::\n *\n * Perform functions on object fields in the specified ontology and of the specified interface type. Any\n * properties specified in the query must be shared property type API names defined on the interface.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/interfaces/{interfaceType}/aggregate\n */\nexport function aggregate($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _aggregate, ...args);\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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _createTemporary = [1, \"/v2/ontologies/{0}/objectSets/createTemporary\", 1];\n/**\n * Creates a temporary `ObjectSet` from the given definition. This `ObjectSet` expires after one hour.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read api:ontologies-write`.\n *\n * @beta\n *\n * Required Scopes: [api:ontologies-read, api:ontologies-write]\n * URL: /v2/ontologies/{ontology}/objectSets/createTemporary\n */\nexport function createTemporary($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _createTemporary, ...args);\n}\nconst _get = [0, \"/v2/ontologies/{0}/objectSets/{1}\"];\n/**\n * Gets the definition of the `ObjectSet` with the given RID.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @alpha\n *\n * Required Scopes: []\n * URL: /v2/ontologies/{ontology}/objectSets/{objectSetRid}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _load = [1, \"/v2/ontologies/{0}/objectSets/loadObjects\", 3];\n/**\n * Load the ontology objects present in the `ObjectSet` from the provided object set definition.\n *\n * For Object Storage V1 backed objects, this endpoint returns a maximum of 10,000 objects. After 10,000 objects have been returned and if more objects\n * are available, attempting to load another page will result in an `ObjectsExceededLimit` error being returned. There is no limit on Object Storage V2 backed objects.\n *\n * Note that null value properties will not be returned.\n *\n * Vector properties will not be returned unless included in the `select` parameter.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objectSets/loadObjects\n */\nexport function load($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _load, ...args);\n}\nconst _loadMultipleObjectTypes = [1, \"/v2/ontologies/{0}/objectSets/loadObjectsMultipleObjectTypes\", 3];\n/**\n * Load the ontology objects present in the `ObjectSet` from the provided object set definition. The resulting\n * objects may be scoped to an object type, in which all the selected properties on the object type are returned, or scoped\n * to an interface, in which only the object type properties that implement the properties of any interfaces in its\n * scope are returned. For objects that are scoped to an interface in the result, a mapping from interface to\n * object implementation is returned in order to interpret the objects as the interfaces that they implement.\n *\n * For Object Storage V1 backed objects, this endpoint returns a maximum of 10,000 objects. After 10,000 objects have been returned and if more objects\n * are available, attempting to load another page will result in an `ObjectsExceededLimit` error being returned. There is no limit on Object Storage V2 backed objects.\n *\n * Note that null value properties will not be returned. In addition, property metadata (rid, apiName, and primaryKey)\n * will be prefixed with '$' instead of '\\_\\_' as is the case in `loadObjects`.\n *\n * Vector properties will not be returned unless included in the `select` parameter.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @beta\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objectSets/loadObjectsMultipleObjectTypes\n */\nexport function loadMultipleObjectTypes($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _loadMultipleObjectTypes, ...args);\n}\nconst _loadObjectsOrInterfaces = [1, \"/v2/ontologies/{0}/objectSets/loadObjectsOrInterfaces\", 3];\n/**\n * Load the ontology objects present in the `ObjectSet` from the provided object set definition. If the requested\n * object set contains interfaces and the object can be viewed as an interface, it will contain the properties\n * defined by the interface. If not, it will contain the properties defined by its object type. This allows directly\n * loading all objects of an interface where all objects are viewed as the interface, for example.\n *\n * Note that the result object set cannot contain a mix of objects with \"interface\" properties and \"object type\"\n * properties. Attempting to load an object set like this will result in an error.\n *\n * For Object Storage V1 backed objects, this endpoint returns a maximum of 10,000 objects. After 10,000 objects have been returned and if more objects\n * are available, attempting to load another page will result in an `ObjectsExceededLimit` error being returned. There is no limit on Object Storage V2 backed objects.\n *\n * Note that null value properties will not be returned. In addition, property metadata (rid, apiName, and primaryKey)\n * will be prefixed with '$' instead of '\\_\\_' as is the case in `/loadObjects`.\n *\n * Vector properties will not be returned unless included in the `select` parameter.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @beta\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objectSets/loadObjectsOrInterfaces\n */\nexport function loadObjectsOrInterfaces($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _loadObjectsOrInterfaces, ...args);\n}\nconst _aggregate = [1, \"/v2/ontologies/{0}/objectSets/aggregate\", 3];\n/**\n * Aggregates the ontology objects present in the `ObjectSet` from the provided object set definition.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objectSets/aggregate\n */\nexport function aggregate($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _aggregate, ...args);\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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _execute = [1, \"/v2/ontologies/{0}/queries/{1}/execute\", 3];\n/**\n * Executes a Query using the given parameters.\n *\n * Optional parameters do not need to be supplied.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/queries/{queryApiName}/execute\n */\nexport function execute($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _execute, ...args);\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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _list = [0, \"/v2/ontologies/{0}/queryTypes\", 2];\n/**\n * Lists the query types for the given Ontology.\n *\n * Each page may be smaller than the requested page size. However, it is guaranteed that if there are more\n * results available, at least one result will be present in the response.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/queryTypes\n */\nexport function list($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _list, ...args);\n}\nconst _get = [0, \"/v2/ontologies/{0}/queryTypes/{1}\", 2];\n/**\n * Gets a specific query type with the given API name.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/queryTypes/{queryApiName}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _getFirstPoint = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/firstPoint\", 2];\n/**\n * Get the first point of a time series property.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{property}/firstPoint\n */\nexport function getFirstPoint($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getFirstPoint, ...args);\n}\nconst _getLastPoint = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/lastPoint\", 2];\n/**\n * Get the last point of a time series property.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{property}/lastPoint\n */\nexport function getLastPoint($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getLastPoint, ...args);\n}\nconst _streamPoints = [1, \"/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/streamPoints\", 3,, \"*/*\"];\n/**\n * Stream all of the points of a time series property.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{property}/streamPoints\n */\nexport function streamPoints($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _streamPoints, ...args);\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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _getLatestValue = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/latestValue\", 2];\n/**\n * Get the latest value of a property backed by a timeseries. If a specific geotime series integration has both a history and a live integration, we will give precedence to the live integration.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @beta\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{propertyName}/latestValue\n */\nexport function getLatestValue($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getLatestValue, ...args);\n}\nconst _streamValues = [1, \"/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/streamValues\", 3,, \"*/*\"];\n/**\n * Stream all of the points of a time series property (this includes geotime series references).\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @beta\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{property}/streamValues\n */\nexport function streamValues($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _streamValues, ...args);\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 { createFetchHeaderMutator } from \"@osdk/shared.net.fetch\";\nexport const addUserAgentAndRequestContextHeaders = (client, withMetadata) => ({\n ...client,\n fetch: createFetchHeaderMutator(client.fetch, headers => {\n headers.set(\"X-OSDK-Request-Context\", JSON.stringify(client.requestContext));\n if (withMetadata.osdkMetadata) {\n headers.set(\"Fetch-User-Agent\", withMetadata.osdkMetadata.extraUserAgent);\n }\n return headers;\n })\n});","/*\n * Copyright 2025 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 invariant from \"tiny-invariant\";\nexport async function extractRdpDefinition(clientCtx, objectSet) {\n return (await extractRdpDefinitionInternal(clientCtx, objectSet, undefined)).definitions;\n}\n\n/* @internal\n* Returns a tuple of the derived property definitions and the object type that the derived property is defined on.\n*/\nasync function extractRdpDefinitionInternal(clientCtx, objectSet, methodInputObjectType) {\n switch (objectSet.type) {\n case \"searchAround\":\n {\n const {\n definitions,\n childObjectType\n } = await extractRdpDefinitionInternal(clientCtx, objectSet.objectSet, methodInputObjectType);\n if (childObjectType === undefined || childObjectType === \"\") {\n return {\n definitions: {}\n };\n }\n const objDef = await clientCtx.ontologyProvider.getObjectDefinition(childObjectType);\n const linkDef = objDef.links[objectSet.link];\n !linkDef ? process.env.NODE_ENV !== \"production\" ? invariant(false, `Missing link definition for '${objectSet.link}'`) : invariant(false) : void 0;\n return {\n definitions,\n childObjectType: objDef.links[objectSet.link].targetType\n };\n }\n case \"withProperties\":\n {\n // These are the definitions and current object type for all object set operations prior to the definition (e.g. filter, pivotTo, etc.)\n const {\n definitions,\n childObjectType\n } = await extractRdpDefinitionInternal(clientCtx, objectSet.objectSet, methodInputObjectType);\n if (childObjectType === undefined || childObjectType === \"\") {\n return {\n definitions: {}\n };\n }\n for (const [name, definition] of Object.entries(objectSet.derivedProperties)) {\n if (definition.type !== \"selection\") {\n continue;\n }\n switch (definition.operation.type) {\n case \"collectList\":\n case \"collectSet\":\n case \"get\":\n // This is the object set construction for the derived property definition construction. We pass in childObjectType so that when we reach MethodInputObjectSet, we know where to start looking.\n const {\n childObjectType: operationLevelObjectType\n } = await extractRdpDefinitionInternal(clientCtx, definition.objectSet, childObjectType);\n if (operationLevelObjectType === undefined || operationLevelObjectType === \"\") {\n return {\n definitions: {}\n };\n }\n const objDef = await clientCtx.ontologyProvider.getObjectDefinition(operationLevelObjectType);\n definitions[name] = objDef.properties[definition.operation.selectedPropertyApiName];\n default:\n continue;\n }\n }\n return {\n definitions,\n childObjectType\n };\n }\n case \"methodInput\":\n return {\n definitions: {},\n childObjectType: methodInputObjectType\n };\n case \"base\":\n return {\n definitions: {},\n childObjectType: objectSet.objectType\n };\n case \"interfaceBase\":\n return {\n definitions: {},\n childObjectType: objectSet.interfaceType\n };\n case \"filter\":\n case \"asBaseObjectTypes\":\n case \"asType\":\n case \"nearestNeighbors\":\n return extractRdpDefinitionInternal(clientCtx, objectSet.objectSet, methodInputObjectType);\n // These will throw in OSS so we should throw here so no request is made\n case \"intersect\":\n case \"subtract\":\n case \"union\":\n const objectSets = objectSet.objectSets;\n const objectSetTypes = await Promise.all(objectSets.map(os => extractRdpDefinitionInternal(clientCtx, os, methodInputObjectType)));\n const definitions = objectSetTypes.reduce((acc, {\n definitions\n }) => ({\n ...acc,\n ...definitions\n }), {});\n !(Object.keys(definitions).length === 0) ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"Object sets combined using intersect, subtract, or union must not contain any derived property definitions\") : invariant(false) : void 0;\n const firstValidChildObjectType = objectSetTypes.find(({\n childObjectType\n }) => childObjectType != null)?.childObjectType;\n !objectSetTypes.every(({\n childObjectType\n }) => childObjectType === firstValidChildObjectType || childObjectType == null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"All object sets in an intersect, subtract, or union must have the same child object type\") : invariant(false) : void 0;\n return {\n definitions: {},\n childObjectType: firstValidChildObjectType\n };\n case \"static\":\n case \"reference\":\n // Static and reference object sets are always intersected with a base object set, so we can just return no child object type.\n return {\n definitions: {}\n };\n // We don't have to worry about new object sets being added and doing a runtime break and breaking people since the OSDK is always constructing these.\n default:\n const _ = objectSet;\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, `Unsupported object set type for Runtime Derived Properties`) : invariant(false) : void 0;\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 function resolveBaseObjectSetType(objectType) {\n return objectType.type === \"interface\" ? {\n type: \"interfaceBase\",\n interfaceType: objectType[\"apiName\"]\n } : {\n type: \"base\",\n objectType: objectType[\"apiName\"]\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 * as OntologiesV2 from \"@osdk/foundry.ontologies\";\nimport { addUserAgentAndRequestContextHeaders } from \"../util/addUserAgentAndRequestContextHeaders.js\";\nimport { extractRdpDefinition } from \"../util/extractRdpDefinition.js\";\nimport { resolveBaseObjectSetType } from \"../util/objectSetUtils.js\";\nexport function augment(type, ...properties) {\n return {\n [type.apiName]: properties\n };\n}\n\n/** @internal */\nexport function objectSetToSearchJsonV2(objectSet, expectedApiName, existingWhere = undefined) {\n if (objectSet.type === \"base\" || objectSet.type === \"interfaceBase\") {\n if (objectSet.type === \"base\" && objectSet.objectType !== expectedApiName) {\n throw new Error(`Expected objectSet.objectType to be ${expectedApiName}, but got ${objectSet.objectType}`);\n }\n if (objectSet.type === \"interfaceBase\" && objectSet.interfaceType !== expectedApiName) {\n throw new Error(`Expected objectSet.objectType to be ${expectedApiName}, but got ${objectSet.interfaceType}`);\n }\n return existingWhere;\n }\n if (objectSet.type === \"filter\") {\n return objectSetToSearchJsonV2(objectSet.objectSet, expectedApiName, existingWhere == null ? objectSet.where : {\n type: \"and\",\n value: [existingWhere, objectSet.where]\n });\n }\n throw new Error(`Unsupported objectSet type: ${objectSet.type}`);\n}\n\n/** @internal */\nexport function resolveInterfaceObjectSet(objectSet, interfaceTypeApiName, args) {\n return args?.$includeAllBaseObjectProperties ? {\n type: \"intersect\",\n objectSets: [objectSet, {\n type: \"interfaceBase\",\n interfaceType: interfaceTypeApiName,\n includeAllBaseObjectProperties: true\n }]\n } : objectSet;\n}\nasync function fetchInterfacePage(client, interfaceType, args, objectSet) {\n if (args.$__UNSTABLE_useOldInterfaceApis) {\n const result = await OntologiesV2.OntologyInterfaces.search(addUserAgentAndRequestContextHeaders(client, interfaceType), await client.ontologyRid, interfaceType.apiName, applyFetchArgs(args, {\n augmentedProperties: {},\n augmentedSharedPropertyTypes: {},\n otherInterfaceTypes: [],\n selectedObjectTypes: [],\n selectedSharedPropertyTypes: args.$select ?? [],\n where: objectSetToSearchJsonV2(objectSet, interfaceType.apiName)\n }), {\n preview: true\n });\n result.data = await client.objectFactory(client, result.data,\n // drop readonly\n interfaceType.apiName, !args.$includeRid, await extractRdpDefinition(client, objectSet));\n return result;\n }\n const result = await OntologiesV2.OntologyObjectSets.loadMultipleObjectTypes(addUserAgentAndRequestContextHeaders(client, interfaceType), await client.ontologyRid, applyFetchArgs(args, {\n objectSet: resolveInterfaceObjectSet(objectSet, interfaceType.apiName, args),\n select: args?.$select ?? [],\n excludeRid: !args?.$includeRid\n }), {\n preview: true\n });\n return Promise.resolve({\n data: await client.objectFactory2(client, result.data, interfaceType.apiName, {}, !args.$includeRid, args.$select, false, result.interfaceToObjectTypeMappings),\n nextPageToken: result.nextPageToken,\n totalCount: result.totalCount\n });\n}\n\n/** @internal */\nexport async function fetchPageInternal(client, objectType, objectSet, args = {}) {\n if (objectType.type === \"interface\") {\n return await fetchInterfacePage(client, objectType, args, objectSet); // fixme\n } else {\n return await fetchObjectPage(client, objectType, args, objectSet); // fixme\n }\n}\n\n/** @internal */\nexport async function fetchPageWithErrorsInternal(client, objectType, objectSet, args = {}) {\n try {\n const result = await fetchPageInternal(client, objectType, objectSet, args);\n return {\n value: result\n };\n } catch (e) {\n if (e instanceof Error) {\n return {\n error: e\n };\n }\n return {\n error: e\n };\n }\n}\n\n/**\n * @param client\n * @param objectType\n * @param args\n * @param objectSet\n * @returns\n * @internal\n */\nexport async function fetchPage(client, objectType, args, objectSet = resolveBaseObjectSetType(objectType)) {\n return fetchPageInternal(client, objectType, objectSet, args);\n}\n\n/** @internal */\nexport async function fetchPageWithErrors(client, objectType, args, objectSet = resolveBaseObjectSetType(objectType)) {\n return fetchPageWithErrorsInternal(client, objectType, objectSet, args);\n}\nfunction applyFetchArgs(args, body) {\n if (args?.$nextPageToken) {\n body.pageToken = args.$nextPageToken;\n }\n if (args?.$pageSize != null) {\n body.pageSize = args.$pageSize;\n }\n if (args?.$orderBy != null) {\n body.orderBy = {\n fields: Object.entries(args.$orderBy).map(([field, direction]) => ({\n field,\n direction\n }))\n };\n }\n return body;\n}\n\n/** @internal */\nexport async function fetchObjectPage(client, objectType, args, objectSet) {\n const r = await OntologiesV2.OntologyObjectSets.load(addUserAgentAndRequestContextHeaders(client, objectType), await client.ontologyRid, applyFetchArgs(args, {\n objectSet,\n // We have to do the following case because LoadObjectSetRequestV2 isn't readonly\n select: args?.$select ?? [],\n // FIXME?\n excludeRid: !args?.$includeRid\n }));\n return Promise.resolve({\n data: await client.objectFactory(client, r.data, undefined, undefined, await extractRdpDefinition(client, objectSet), args.$select),\n nextPageToken: r.nextPageToken,\n totalCount: r.totalCount\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\n// eslint-disable-next-line @typescript-eslint/consistent-type-imports\n\n// DO NOT EXPORT FROM PACKAGE\n/** @internal */\nexport const additionalContext = Symbol(\"additionalContext\");\n\n// BEGIN: THIS IS GENERATED CODE. DO NOT EDIT.\nconst MaxOsdkVersion = \"2.2.0\";\n// END: THIS IS GENERATED CODE. DO NOT EDIT.\n\nconst ErrorMessage = Symbol(\"ErrorMessage\");"]}
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunk33GHS3X4_cjs = require('./chunk-33GHS3X4.cjs');
3
+ var chunkTGPOMOO2_cjs = require('./chunk-TGPOMOO2.cjs');
4
4
  var chunkT4NIFYZS_cjs = require('./chunk-T4NIFYZS.cjs');
5
- var chunk37QC7LR3_cjs = require('./chunk-37QC7LR3.cjs');
5
+ var chunkW5PFESFR_cjs = require('./chunk-W5PFESFR.cjs');
6
6
  var api = require('@osdk/api');
7
7
  var shared_net_errors = require('@osdk/shared.net.errors');
8
8
  var unstable = require('@osdk/api/unstable');
@@ -421,13 +421,13 @@ async function toDataValue(value, client) {
421
421
  return Promise.all(promiseArray);
422
422
  }
423
423
  if (isAttachmentUpload(value)) {
424
- const attachment = await chunk37QC7LR3_cjs.Attachment_exports.upload(client, value.data, {
424
+ const attachment = await chunkW5PFESFR_cjs.Attachment_exports.upload(client, value.data, {
425
425
  filename: value.name
426
426
  });
427
427
  return await toDataValue(attachment.rid, client);
428
428
  }
429
429
  if (isAttachmentFile(value)) {
430
- const attachment = await chunk37QC7LR3_cjs.Attachment_exports.upload(client, value, {
430
+ const attachment = await chunkW5PFESFR_cjs.Attachment_exports.upload(client, value, {
431
431
  filename: value.name
432
432
  });
433
433
  return await toDataValue(attachment.rid, client);
@@ -441,11 +441,11 @@ async function toDataValue(value, client) {
441
441
  if (isPoint(value)) {
442
442
  return await toDataValue(value.coordinates.join(), client);
443
443
  }
444
- if (chunk33GHS3X4_cjs.isWireObjectSet(value)) {
444
+ if (chunkTGPOMOO2_cjs.isWireObjectSet(value)) {
445
445
  return value;
446
446
  }
447
- if (chunk33GHS3X4_cjs.isObjectSet(value)) {
448
- return chunk33GHS3X4_cjs.getWireObjectSet(value);
447
+ if (chunkTGPOMOO2_cjs.isObjectSet(value)) {
448
+ return chunkTGPOMOO2_cjs.getWireObjectSet(value);
449
449
  }
450
450
  if (isMediaReference(value)) {
451
451
  return value;
@@ -468,11 +468,11 @@ async function toDataValue(value, client) {
468
468
 
469
469
  // src/actions/applyAction.ts
470
470
  async function applyAction(client, action, parameters, options = {}) {
471
- const clientWithHeaders = chunk37QC7LR3_cjs.addUserAgentAndRequestContextHeaders(chunk33GHS3X4_cjs.augmentRequestContext(client, (_) => ({
471
+ const clientWithHeaders = chunkW5PFESFR_cjs.addUserAgentAndRequestContextHeaders(chunkTGPOMOO2_cjs.augmentRequestContext(client, (_) => ({
472
472
  finalMethodCall: "applyAction"
473
473
  })), action);
474
474
  if (Array.isArray(parameters)) {
475
- const response = await chunk37QC7LR3_cjs.Action_exports.applyBatch(clientWithHeaders, await client.ontologyRid, action.apiName, {
475
+ const response = await chunkW5PFESFR_cjs.Action_exports.applyBatch(clientWithHeaders, await client.ontologyRid, action.apiName, {
476
476
  requests: parameters ? await remapBatchActionParams(parameters, client) : [],
477
477
  options: {
478
478
  returnEdits: options?.$returnEdits ? "ALL" : "NONE"
@@ -481,7 +481,7 @@ async function applyAction(client, action, parameters, options = {}) {
481
481
  const edits = response.edits;
482
482
  return options?.$returnEdits ? edits?.type === "edits" ? remapActionResponse(response) : edits : void 0;
483
483
  } else {
484
- const response = await chunk37QC7LR3_cjs.Action_exports.apply(clientWithHeaders, await client.ontologyRid, action.apiName, {
484
+ const response = await chunkW5PFESFR_cjs.Action_exports.apply(clientWithHeaders, await client.ontologyRid, action.apiName, {
485
485
  parameters: await remapActionParams(parameters, client),
486
486
  options: {
487
487
  mode: options?.$validateOnly ? "VALIDATE_ONLY" : "VALIDATE_AND_EXECUTE",
@@ -685,7 +685,7 @@ var GeotimeSeriesPropertyImpl = class {
685
685
  }
686
686
  }
687
687
  async getLatestValue() {
688
- const latestPointPromise = chunk37QC7LR3_cjs.TimeSeriesValueBankProperty_exports.getLatestValue(this.#client, await this.#client.ontologyRid, ...this.#triplet);
688
+ const latestPointPromise = chunkW5PFESFR_cjs.TimeSeriesValueBankProperty_exports.getLatestValue(this.#client, await this.#client.ontologyRid, ...this.#triplet);
689
689
  latestPointPromise.then(
690
690
  (latestPoint) => this.lastFetchedValue = latestPoint,
691
691
  // eslint-disable-next-line no-console
@@ -701,7 +701,7 @@ var GeotimeSeriesPropertyImpl = class {
701
701
  return allPoints;
702
702
  }
703
703
  async *asyncIterValues(query) {
704
- const streamPointsIterator = await chunk37QC7LR3_cjs.TimeSeriesValueBankProperty_exports.streamValues(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
704
+ const streamPointsIterator = await chunkW5PFESFR_cjs.TimeSeriesValueBankProperty_exports.streamValues(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
705
705
  range: getTimeRange(query)
706
706
  } : {});
707
707
  for await (const timeseriesPoint of asyncIterPointsHelper(streamPointsIterator)) {
@@ -725,13 +725,13 @@ var MediaReferencePropertyImpl = class {
725
725
  this.#triplet = [objectApiName, primaryKey, propertyName];
726
726
  }
727
727
  async fetchContents() {
728
- return chunk37QC7LR3_cjs.MediaReferenceProperty_exports.getMediaContent(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
728
+ return chunkW5PFESFR_cjs.MediaReferenceProperty_exports.getMediaContent(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
729
729
  preview: true
730
730
  // TODO: Can turn this back off when backend is no longer in beta.
731
731
  });
732
732
  }
733
733
  async fetchMetadata() {
734
- const r = await chunk37QC7LR3_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
734
+ const r = await chunkW5PFESFR_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
735
735
  preview: true
736
736
  // TODO: Can turn this back off when backend is no longer in beta.
737
737
  });
@@ -752,10 +752,10 @@ var TimeSeriesPropertyImpl = class {
752
752
  this.#triplet = [objectApiName, primaryKey, propertyName];
753
753
  }
754
754
  async getFirstPoint() {
755
- return chunk37QC7LR3_cjs.TimeSeriesPropertyV2_exports.getFirstPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
755
+ return chunkW5PFESFR_cjs.TimeSeriesPropertyV2_exports.getFirstPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
756
756
  }
757
757
  async getLastPoint() {
758
- return chunk37QC7LR3_cjs.TimeSeriesPropertyV2_exports.getLastPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
758
+ return chunkW5PFESFR_cjs.TimeSeriesPropertyV2_exports.getLastPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
759
759
  }
760
760
  async getAllPoints(query) {
761
761
  const allPoints = [];
@@ -765,7 +765,7 @@ var TimeSeriesPropertyImpl = class {
765
765
  return allPoints;
766
766
  }
767
767
  async *asyncIterPoints(query) {
768
- const streamPointsIterator = await chunk37QC7LR3_cjs.TimeSeriesPropertyV2_exports.streamPoints(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
768
+ const streamPointsIterator = await chunkW5PFESFR_cjs.TimeSeriesPropertyV2_exports.streamPoints(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
769
769
  range: getTimeRange(query)
770
770
  } : {});
771
771
  for await (const timeseriesPoint of asyncIterPointsHelper(streamPointsIterator)) {
@@ -787,7 +787,7 @@ var InterfaceDefinitions = Symbol("InterfaceDefinitions" );
787
787
 
788
788
  // src/object/convertWireToOsdkObjects/createOsdkInterface.ts
789
789
  function createOsdkInterface(underlying, interfaceDef) {
790
- const [objApiNamespace] = chunk33GHS3X4_cjs.extractNamespace(interfaceDef.apiName);
790
+ const [objApiNamespace] = chunkTGPOMOO2_cjs.extractNamespace(interfaceDef.apiName);
791
791
  return Object.freeze(Object.defineProperties({}, {
792
792
  // first to minimize hidden classes
793
793
  [chunkT4NIFYZS_cjs.UnderlyingOsdkObject]: {
@@ -830,7 +830,7 @@ function createOsdkInterface(underlying, interfaceDef) {
830
830
  },
831
831
  ...Object.fromEntries(Object.keys(interfaceDef.properties).map((p) => {
832
832
  const objDef = underlying[chunkT4NIFYZS_cjs.ObjectDefRef];
833
- const [apiNamespace, apiName] = chunk33GHS3X4_cjs.extractNamespace(p);
833
+ const [apiNamespace, apiName] = chunkTGPOMOO2_cjs.extractNamespace(p);
834
834
  const targetPropName = objDef.interfaceMap[interfaceDef.apiName][p];
835
835
  return [apiNamespace === objApiNamespace ? apiName : p, {
836
836
  enumerable: targetPropName in underlying,
@@ -906,8 +906,8 @@ function get$link(holder) {
906
906
  [objDef.primaryKeyApiName]: rawObj.$primaryKey
907
907
  }).pivotTo(linkName);
908
908
  const value = !linkDef.multiplicity ? {
909
- fetchOne: (options) => chunk33GHS3X4_cjs.fetchSingle(client, objDef, options ?? {}, chunk33GHS3X4_cjs.getWireObjectSet(objectSet)),
910
- fetchOneWithErrors: (options) => chunk33GHS3X4_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunk33GHS3X4_cjs.getWireObjectSet(objectSet))
909
+ fetchOne: (options) => chunkTGPOMOO2_cjs.fetchSingle(client, objDef, options ?? {}, chunkTGPOMOO2_cjs.getWireObjectSet(objectSet)),
910
+ fetchOneWithErrors: (options) => chunkTGPOMOO2_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunkTGPOMOO2_cjs.getWireObjectSet(objectSet))
911
911
  } : objectSet;
912
912
  return [linkName, value];
913
913
  })));
@@ -980,9 +980,9 @@ function createOsdkObject(client, objectDef, simpleOsdkProperties, derivedProper
980
980
  const rawValue = rawObj[propKey];
981
981
  if (derivedPropertyTypeByName[propKey].type === "attachment") {
982
982
  if (Array.isArray(rawValue)) {
983
- rawObj[propKey] = rawValue.map((a) => chunk33GHS3X4_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
983
+ rawObj[propKey] = rawValue.map((a) => chunkTGPOMOO2_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
984
984
  } else {
985
- rawObj[propKey] = chunk33GHS3X4_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
985
+ rawObj[propKey] = chunkTGPOMOO2_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
986
986
  }
987
987
  } else {
988
988
  process.env.NODE_ENV !== "production" ? invariant__default.default(false, "Derived property aggregations for Timeseries and Media are not supported") : invariant__default.default(false) ;
@@ -999,9 +999,9 @@ function createSpecialProperty(client, objectDef, rawObject, p) {
999
999
  }
1000
1000
  if (propDef.type === "attachment") {
1001
1001
  if (Array.isArray(rawValue)) {
1002
- return rawValue.map((a) => chunk33GHS3X4_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
1002
+ return rawValue.map((a) => chunkTGPOMOO2_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
1003
1003
  }
1004
- return chunk33GHS3X4_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
1004
+ return chunkTGPOMOO2_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
1005
1005
  }
1006
1006
  if (propDef.type === "numericTimeseries" || propDef.type === "stringTimeseries" || propDef.type === "sensorTimeseries") {
1007
1007
  return new TimeSeriesPropertyImpl(client, objectDef.apiName, rawObject[objectDef.primaryKeyApiName], p);
@@ -1208,11 +1208,11 @@ function createAsyncClientCache(fn, createCacheLocal = createClientCache) {
1208
1208
  return ret;
1209
1209
  }
1210
1210
  async function loadActionMetadata(client, actionType) {
1211
- const r = await chunk37QC7LR3_cjs.ActionTypeV2_exports.get(client, await client.ontologyRid, actionType);
1211
+ const r = await chunkW5PFESFR_cjs.ActionTypeV2_exports.get(client, await client.ontologyRid, actionType);
1212
1212
  return generatorConverters.wireActionTypeV2ToSdkActionMetadata(r);
1213
1213
  }
1214
1214
  async function loadFullObjectMetadata(client, objectType) {
1215
- const full = await chunk37QC7LR3_cjs.ObjectTypeV2_exports.getFullMetadata(client, await client.ontologyRid, objectType, {
1215
+ const full = await chunkW5PFESFR_cjs.ObjectTypeV2_exports.getFullMetadata(client, await client.ontologyRid, objectType, {
1216
1216
  preview: true
1217
1217
  });
1218
1218
  const ret = generatorConverters.wireObjectTypeFullMetadataToSdkObjectMetadata(full, true);
@@ -1221,13 +1221,16 @@ async function loadFullObjectMetadata(client, objectType) {
1221
1221
  };
1222
1222
  }
1223
1223
  async function loadInterfaceMetadata(client, objectType) {
1224
- const r = await chunk37QC7LR3_cjs.OntologyInterface_exports.get(client, await client.ontologyRid, objectType, {
1224
+ const r = await chunkW5PFESFR_cjs.OntologyInterface_exports.get(client, await client.ontologyRid, objectType, {
1225
1225
  preview: true
1226
1226
  });
1227
1227
  return generatorConverters.__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition(r, true);
1228
1228
  }
1229
- async function loadQueryMetadata(client, queryType) {
1230
- const r = await chunk37QC7LR3_cjs.QueryType_exports.get(client, await client.ontologyRid, queryType);
1229
+ async function loadQueryMetadata(client, queryTypeApiNameAndVersion) {
1230
+ const [apiName, version] = queryTypeApiNameAndVersion.split(":");
1231
+ const r = await chunkW5PFESFR_cjs.QueryType_exports.get(client, await client.ontologyRid, apiName, {
1232
+ version
1233
+ });
1231
1234
  return generatorConverters.wireQueryTypeV2ToSdkQueryMetadata(r);
1232
1235
  }
1233
1236
 
@@ -1235,7 +1238,7 @@ async function loadQueryMetadata(client, queryType) {
1235
1238
  var createStandardOntologyProviderFactory = (client) => {
1236
1239
  return (client2) => {
1237
1240
  async function loadObject(client3, key) {
1238
- let objectDef = await loadFullObjectMetadata(client3, key);
1241
+ const objectDef = await loadFullObjectMetadata(client3, key);
1239
1242
  const interfaceDefs = Object.fromEntries((await Promise.all(objectDef.implements?.map((i) => ret.getInterfaceDefinition(i)) ?? [])).map((i) => [i.apiName, {
1240
1243
  def: i,
1241
1244
  handler: void 0
@@ -1250,8 +1253,7 @@ var createStandardOntologyProviderFactory = (client) => {
1250
1253
  return loadInterfaceMetadata(client3, key);
1251
1254
  }
1252
1255
  async function loadQuery(client3, key) {
1253
- const r = await loadQueryMetadata(client3, key);
1254
- return r;
1256
+ return loadQueryMetadata(client3, key);
1255
1257
  }
1256
1258
  async function loadAction(client3, key) {
1257
1259
  const r = await loadActionMetadata(client3, key);
@@ -1263,21 +1265,30 @@ var createStandardOntologyProviderFactory = (client) => {
1263
1265
  return await cache.get(client2, apiName);
1264
1266
  };
1265
1267
  }
1268
+ function makeQueryGetter(client3, fn) {
1269
+ const queryCache = createAsyncClientCache((client4, key) => {
1270
+ return fn(client4, key);
1271
+ });
1272
+ return async (apiName, version) => {
1273
+ const key = version ? `${apiName}:${version}` : apiName;
1274
+ return await queryCache.get(client3, key);
1275
+ };
1276
+ }
1266
1277
  const ret = {
1267
1278
  getObjectDefinition: makeGetter(loadObject),
1268
1279
  getInterfaceDefinition: makeGetter(loadInterface),
1269
- getQueryDefinition: makeGetter(loadQuery),
1270
- getActionDefinition: makeGetter(loadAction)
1280
+ getActionDefinition: makeGetter(loadAction),
1281
+ getQueryDefinition: makeQueryGetter(client2, loadQuery)
1271
1282
  };
1272
1283
  return ret;
1273
1284
  };
1274
1285
  };
1275
1286
 
1276
1287
  // src/util/UserAgent.ts
1277
- var USER_AGENT = `osdk-client/${"2.2.0-beta.20"}`;
1288
+ var USER_AGENT = `osdk-client/${"2.2.0-beta.22"}`;
1278
1289
 
1279
1290
  // src/createMinimalClient.ts
1280
- function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory = chunk33GHS3X4_cjs.createObjectSet, createOntologyProviderFactory = createStandardOntologyProviderFactory) {
1291
+ function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory = chunkTGPOMOO2_cjs.createObjectSet, createOntologyProviderFactory = createStandardOntologyProviderFactory) {
1281
1292
  if (process.env.NODE_ENV !== "production") {
1282
1293
  try {
1283
1294
  new URL(baseUrl);
@@ -1316,7 +1327,7 @@ var fetchMetadataInternal = async (client, definition) => {
1316
1327
  } else if (definition.type === "action") {
1317
1328
  return client.ontologyProvider.getActionDefinition(definition.apiName);
1318
1329
  } else if (definition.type === "query") {
1319
- return client.ontologyProvider.getQueryDefinition(definition.apiName);
1330
+ return client.ontologyProvider.getQueryDefinition(definition.apiName, definition.isFixedVersion ? definition.version : void 0);
1320
1331
  } else {
1321
1332
  throw new Error("Not implemented for given definition");
1322
1333
  }
@@ -1347,13 +1358,13 @@ async function toDataValueQueries(value, client, desiredType) {
1347
1358
  switch (desiredType.type) {
1348
1359
  case "attachment": {
1349
1360
  if (isAttachmentUpload(value)) {
1350
- const attachment = await chunk37QC7LR3_cjs.Attachment_exports.upload(client, value.data, {
1361
+ const attachment = await chunkW5PFESFR_cjs.Attachment_exports.upload(client, value.data, {
1351
1362
  filename: value.name
1352
1363
  });
1353
1364
  return attachment.rid;
1354
1365
  }
1355
1366
  if (isAttachmentFile(value)) {
1356
- const attachment = await chunk37QC7LR3_cjs.Attachment_exports.upload(client, value, {
1367
+ const attachment = await chunkW5PFESFR_cjs.Attachment_exports.upload(client, value, {
1357
1368
  filename: value.name
1358
1369
  });
1359
1370
  return attachment.rid;
@@ -1384,11 +1395,11 @@ async function toDataValueQueries(value, client, desiredType) {
1384
1395
  break;
1385
1396
  }
1386
1397
  case "objectSet": {
1387
- if (chunk33GHS3X4_cjs.isWireObjectSet(value)) {
1398
+ if (chunkTGPOMOO2_cjs.isWireObjectSet(value)) {
1388
1399
  return value;
1389
1400
  }
1390
- if (chunk33GHS3X4_cjs.isObjectSet(value)) {
1391
- return chunk33GHS3X4_cjs.getWireObjectSet(value);
1401
+ if (chunkTGPOMOO2_cjs.isObjectSet(value)) {
1402
+ return chunkTGPOMOO2_cjs.getWireObjectSet(value);
1392
1403
  }
1393
1404
  break;
1394
1405
  }
@@ -1429,11 +1440,13 @@ async function toDataValueQueries(value, client, desiredType) {
1429
1440
 
1430
1441
  // src/queries/applyQuery.ts
1431
1442
  async function applyQuery(client, query, params) {
1432
- const qd = await client.ontologyProvider.getQueryDefinition(query.apiName);
1433
- const response = await chunk37QC7LR3_cjs.Query_exports.execute(chunk37QC7LR3_cjs.addUserAgentAndRequestContextHeaders(chunk33GHS3X4_cjs.augmentRequestContext(client, (_) => ({
1443
+ const qd = await client.ontologyProvider.getQueryDefinition(query.apiName, query.isFixedVersion ? query.version : void 0);
1444
+ const response = await chunkW5PFESFR_cjs.Query_exports.execute(chunkW5PFESFR_cjs.addUserAgentAndRequestContextHeaders(chunkTGPOMOO2_cjs.augmentRequestContext(client, (_) => ({
1434
1445
  finalMethodCall: "applyQuery"
1435
1446
  })), query), await client.ontologyRid, query.apiName, {
1436
1447
  parameters: params ? await remapQueryParams(params, client, qd.parameters) : {}
1448
+ }, {
1449
+ version: qd.version
1437
1450
  });
1438
1451
  const objectOutputDefs = await getRequiredDefinitions(qd.output, client);
1439
1452
  const remappedResponse = await remapQueryResponse(client, qd.output, response.value, objectOutputDefs);
@@ -1475,7 +1488,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
1475
1488
  return responseValue;
1476
1489
  }
1477
1490
  case "attachment": {
1478
- return chunk33GHS3X4_cjs.hydrateAttachmentFromRidInternal(client, responseValue);
1491
+ return chunkTGPOMOO2_cjs.hydrateAttachmentFromRidInternal(client, responseValue);
1479
1492
  }
1480
1493
  case "object": {
1481
1494
  const def = definitions.get(responseDataType.object);
@@ -1490,7 +1503,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
1490
1503
  throw new Error(`Missing definition for ${responseDataType.objectSet}`);
1491
1504
  }
1492
1505
  if (typeof responseValue === "string") {
1493
- return chunk33GHS3X4_cjs.createObjectSet(def, client, {
1506
+ return chunkTGPOMOO2_cjs.createObjectSet(def, client, {
1494
1507
  type: "intersect",
1495
1508
  objectSets: [{
1496
1509
  type: "base",
@@ -1501,7 +1514,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
1501
1514
  }]
1502
1515
  });
1503
1516
  }
1504
- return chunk33GHS3X4_cjs.createObjectSet(def, client, responseValue);
1517
+ return chunkTGPOMOO2_cjs.createObjectSet(def, client, responseValue);
1505
1518
  }
1506
1519
  case "struct": {
1507
1520
  for (const [key, subtype] of Object.entries(responseDataType.struct)) {
@@ -1669,7 +1682,7 @@ function createClientInternal(objectSetFactory, baseUrl, ontologyRid, tokenProvi
1669
1682
  ontologyRid
1670
1683
  }, baseUrl, tokenProvider, {
1671
1684
  ...options,
1672
- logger: options?.logger ?? new chunk33GHS3X4_cjs.MinimalLogger()
1685
+ logger: options?.logger ?? new chunkTGPOMOO2_cjs.MinimalLogger()
1673
1686
  }, fetchFn, objectSetFactory);
1674
1687
  function clientFn(o) {
1675
1688
  if (o.type === "object" || o.type === "interface") {
@@ -1687,7 +1700,7 @@ function createClientInternal(objectSetFactory, baseUrl, ontologyRid, tokenProvi
1687
1700
  case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid.name:
1688
1701
  return {
1689
1702
  fetchOneByRid: async (objectType, rid, options2) => {
1690
- return await chunk33GHS3X4_cjs.fetchSingle(clientCtx, objectType, options2, createWithRid([rid]));
1703
+ return await chunkTGPOMOO2_cjs.fetchSingle(clientCtx, objectType, options2, createWithRid([rid]));
1691
1704
  }
1692
1705
  };
1693
1706
  case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference.name:
@@ -1699,7 +1712,7 @@ function createClientInternal(objectSetFactory, baseUrl, ontologyRid, tokenProvi
1699
1712
  objectType,
1700
1713
  propertyType
1701
1714
  } = args;
1702
- return await chunk37QC7LR3_cjs.MediaReferenceProperty_exports.upload(clientCtx, await clientCtx.ontologyRid, objectType.apiName, propertyType, data, {
1715
+ return await chunkW5PFESFR_cjs.MediaReferenceProperty_exports.upload(clientCtx, await clientCtx.ontologyRid, objectType.apiName, propertyType, data, {
1703
1716
  mediaItemPath: fileName,
1704
1717
  preview: true
1705
1718
  });
@@ -1708,7 +1721,7 @@ function createClientInternal(objectSetFactory, baseUrl, ontologyRid, tokenProvi
1708
1721
  case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid.name:
1709
1722
  return {
1710
1723
  fetchPageByRid: async (objectOrInterfaceType, rids, options2 = {}) => {
1711
- return await chunk37QC7LR3_cjs.fetchPage(clientCtx, objectOrInterfaceType, options2, createWithRid(rids));
1724
+ return await chunkW5PFESFR_cjs.fetchPage(clientCtx, objectOrInterfaceType, options2, createWithRid(rids));
1712
1725
  }
1713
1726
  };
1714
1727
  }
@@ -1720,13 +1733,13 @@ function createClientInternal(objectSetFactory, baseUrl, ontologyRid, tokenProvi
1720
1733
  const fetchMetadata = fetchMetadataInternal.bind(void 0, clientCtx);
1721
1734
  const symbolClientContext2 = "__osdkClientContext";
1722
1735
  const client = Object.defineProperties(clientFn, {
1723
- [chunk37QC7LR3_cjs.symbolClientContext]: {
1736
+ [chunkW5PFESFR_cjs.symbolClientContext]: {
1724
1737
  value: clientCtx
1725
1738
  },
1726
1739
  [symbolClientContext2]: {
1727
1740
  value: clientCtx
1728
1741
  },
1729
- [chunk37QC7LR3_cjs.additionalContext]: {
1742
+ [chunkW5PFESFR_cjs.additionalContext]: {
1730
1743
  value: clientCtx
1731
1744
  },
1732
1745
  fetchMetadata: {
@@ -1735,7 +1748,7 @@ function createClientInternal(objectSetFactory, baseUrl, ontologyRid, tokenProvi
1735
1748
  });
1736
1749
  return client;
1737
1750
  }
1738
- var createClient = createClientInternal.bind(void 0, chunk33GHS3X4_cjs.createObjectSet);
1751
+ var createClient = createClientInternal.bind(void 0, chunkTGPOMOO2_cjs.createObjectSet);
1739
1752
  function createWithRid(rids) {
1740
1753
  const withRid = {
1741
1754
  type: "static",