@osdk/client.unstable 0.1.0 → 2.0.0-beta.10

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @osdk/client.unstable
2
2
 
3
+ ## 2.0.0-beta.10
4
+
5
+ ### Minor Changes
6
+
7
+ - 1252d94: ESM Only
8
+
9
+ ## 2.0.0-beta.9
10
+
11
+ ## 2.0.0-beta.8
12
+
13
+ ## 2.0.0-beta.7
14
+
15
+ ### Minor Changes
16
+
17
+ - ee39a61: Add support for gotham mapping of SPTs in maker
18
+
19
+ ## 2.0.0-beta.6
20
+
21
+ ### Minor Changes
22
+
23
+ - 76a7adb: Use OntologyMetadataService.bulkLoadOntologyEntities in place of deprecated loadOntologyEntities
24
+
3
25
  ## 0.1.0
4
26
 
5
27
  ### Minor Changes
@@ -7,16 +7,16 @@ async function createTemporaryObjectSet(ctx, request) {
7
7
  async function getBulkLinksPage(ctx, request) {
8
8
  return conjureFetch(ctx, `/bulk-links`, "PUT", request);
9
9
  }
10
+ async function bulkLoadOntologyEntities(ctx, onBehalfOf, request) {
11
+ return conjureFetch(ctx, `/ontology/ontology/bulkLoadEntities`, "POST", request);
12
+ }
10
13
  async function getLinkTypesForObjectTypes(ctx, request) {
11
14
  return conjureFetch(ctx, `/ontology/linkTypesForObjectTypes`, "POST", request);
12
15
  }
13
16
  async function loadAllOntologies(ctx, request) {
14
17
  return conjureFetch(ctx, `/ontology/ontology/ontologies/load/all`, "POST", request);
15
18
  }
16
- async function loadOntologyEntities(ctx, request) {
17
- return conjureFetch(ctx, `/ontology/ontology/loadEntities`, "POST", request);
18
- }
19
19
 
20
- export { createTemporaryObjectSet, getBulkLinksPage, getLinkTypesForObjectTypes, loadAllOntologies, loadOntologyEntities };
21
- //# sourceMappingURL=out.js.map
20
+ export { bulkLoadOntologyEntities, createTemporaryObjectSet, getBulkLinksPage, getLinkTypesForObjectTypes, loadAllOntologies };
21
+ //# sourceMappingURL=index.js.map
22
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/generated/object-set-service/api/ObjectSetService/createObjectSet.ts","../../src/generated/object-set-service/api/ObjectSetService/createTemporaryObjectSet.ts","../../src/generated/object-set-service/api/ObjectSetService/deleteObjectSet.ts","../../src/generated/object-set-service/api/ObjectSetService/getBulkObjectSet.ts","../../src/generated/object-set-service/api/ObjectSetService/getObjectSet.ts","../../src/generated/object-set-service/api/ObjectSetService/getObjectsPage.ts","../../src/generated/object-set-service/api/ObjectSetService/getObjectTypes.ts","../../src/generated/object-set-service/api/ObjectSetService/getReferencedEntities.ts","../../src/generated/object-set-service/api/ObjectSetService/materializeObjectSet.ts","../../src/generated/object-set-service/api/ObjectSetServiceV2/getBulkLinksPage.ts","../../src/generated/ontology-metadata/api/OntologyMetadataService/getLinkTypesForObjectTypes.ts","../../src/generated/ontology-metadata/api/OntologyMetadataService/loadAllOntologies.ts","../../src/generated/ontology-metadata/api/OntologyMetadataService/loadOntologyEntities.ts"],"names":["conjureFetch"],"mappings":";AAgBA,SAAS,oBAAoB;;;ACA7B,SAAS,gBAAAA,qBAAoB;AAgB7B,eAAsB,yBAAyB,KAAK,SAAS;AAC3D,SAAOA,cAAa,KAAK,yBAAyB,QAAQ,OAAO;AACnE;;;AClBA,SAAS,gBAAAA,qBAAoB;;;ACA7B,SAAS,gBAAAA,qBAAoB;;;ACA7B,SAAS,gBAAAA,qBAAoB;;;ACA7B,SAAS,gBAAAA,qBAAoB;;;ACA7B,SAAS,gBAAAA,qBAAoB;;;ACA7B,SAAS,gBAAAA,qBAAoB;;;ACA7B,SAAS,gBAAAA,qBAAoB;;;ACA7B,SAAS,gBAAAA,sBAAoB;AAY7B,eAAsB,iBAAiB,KAAK,SAAS;AACnD,SAAOA,eAAa,KAAK,eAAe,OAAO,OAAO;AACxD;;;ACdA,SAAS,gBAAAA,sBAAoB;AAY7B,eAAsB,2BAA2B,KAAK,SAAS;AAC7D,SAAOA,eAAa,KAAK,qCAAqC,QAAQ,OAAO;AAC/E;;;ACdA,SAAS,gBAAAA,sBAAoB;AAM7B,eAAsB,kBAAkB,KAAK,SAAS;AACpD,SAAOA,eAAa,KAAK,0CAA0C,QAAQ,OAAO;AACpF;;;ACRA,SAAS,gBAAAA,sBAAoB;AAQ7B,eAAsB,qBAAqB,KAAK,SAAS;AACvD,SAAOA,eAAa,KAAK,mCAAmC,QAAQ,OAAO;AAC7E","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { conjureFetch } from \"conjure-lite\";\n/**\n * Creates an orphaned object set - i.e. not part of any versioned object set. This may be for temporary or internal application use. No gatekeeper resource is created - instead the given security rid is assumed to already exist and will be used to permission the created object set.\n */\nexport async function createObjectSet(ctx, request) {\n return conjureFetch(ctx, `/objectSets`, \"POST\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Creates a temporary object set that will live for at least as long as the provided TTL, and will get deleted\n * at some point after that.\n *\n * Temporary object sets can only be accessed by users who have created them; a gatekeeper resource is registered\n * for every temporary object set. NOTE: The same gatekeeper resource may be reused for the same userId across\n * different createTemporaryObjectSet requests.\n *\n * Whenever an object set (temporary, or otherwise) referencing a temporary object set gets saved or used in\n * versioned object sets, the reference gets replaced with a full definition of the previously saved temporary\n * object. This is to ensure that they do not inherit the TTL of temporary object sets they reference.\n *\n * Please consider using temporary object sets whenever there is a need to save an object set just to be able to\n * pass it to another service without a need to persist it indefinitely.\n */\nexport async function createTemporaryObjectSet(ctx, request) {\n return conjureFetch(ctx, `/objectSets/temporary`, \"POST\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Deletes this object set, causing future operations which access it to fail.\n */\nexport async function deleteObjectSet(ctx, objectSetRid) {\n return conjureFetch(ctx, `/objectSets/${objectSetRid}`, \"DELETE\");\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Returns the definitions of requested object sets.\n */\nexport async function getBulkObjectSet(ctx, request) {\n return conjureFetch(ctx, `/bulk/objectSets`, \"PUT\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Returns the definition of this object set.\n */\nexport async function getObjectSet(ctx, objectSetRid) {\n return conjureFetch(ctx, `/objectSets/${objectSetRid}`, \"GET\");\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Fetches object rids on requested page of evaluated object set. If more objects are available, the returned pageToken can be used to fetch the subsequent page. Note that page tokens are *not* long-lived and *may* get invalidated (for example following updates to the underlying index or indices, or after a few minutes).\n * Note that the service currently does not provide guarantees around the consistency of returned results. In particular, any state changes to the underlying indices can cause duplicate results to be returned or some results to be skipped between subsequent page requests.\n */\nexport async function getObjectsPage(ctx, request, backend) {\n return conjureFetch(ctx, `/objectSets/objects`, \"PUT\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Returns types of objects that can be present in the supplied object set based on its definition at the time\n * of the request.\n *\n * Note that this endpoint does not perform a full evaluation of the supplied object set - the guarantees provided\n * are that only the returned object types can be present in the supplied object set at the time of the request.\n * It is not however guaranteed that there in fact is at least one object of each returned object type - consider\n * using aggregations instead if false-positives are not desired.\n *\n * Note that object types belonging to an object set can change over time - this information should be treated as\n * dynamic and should not be persisted or treated as immutable.\n */\nexport async function getObjectTypes(ctx, request) {\n return conjureFetch(ctx, `/objectSets/objectTypes`, \"PUT\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Returns the entities used within an object set. i.e. object type rids and link type rids\n *\n * Note that relations belonging to an object set can change over time - this information should be treated as\n * dynamic and should not be persisted or treated as immutable.\n */\nexport async function getReferencedEntities(ctx, request) {\n return conjureFetch(ctx, `/objectSets/entities`, \"PUT\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Materialize an object set.\n */\nexport async function materializeObjectSet(ctx, request) {\n return conjureFetch(ctx, `/objectSets/materialize`, \"PUT\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Returns a page of all `FoundryLink`s for a given relation based on a list of object identifiers.\n * The API supports fetching links for maximum 5_000 ObjectIdentifiers in a single request.\n * Results are always limited to the maximum of 100_000 links, without applying any particular order. Specifically,\n * this means that if total links count is above 100_000 then the whole result set should be considered partial,\n * i.e. there is no guarantee that for a given object all links have been retrieved.\n * Note that this endpoint does not check if objects referenced by the returned links actually exist. For instance,\n * when primary keys in the join table become stale, it will still return links based on the stale join table records.\n *\n * Note that this API does not support OSv1 links and will throw an exception if links provided are backed by OSv1.\n */\nexport async function getBulkLinksPage(ctx, request) {\n return conjureFetch(ctx, `/bulk-links`, \"PUT\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Endpoint to batch load links associated to given ObjectTypeRid(s). The GetLinkTypesForObjectTypesResponse\n * will only contain links that are visible to the user. If the user has requested to get link types at\n * invalid ontology versions or for ObjectTypeRid(s) that do not exist in the specified versions, those entries\n * will include an empty set of link types.\n *\n * The includeObjectTypesWithoutSearchableDatasources flag is respected if present in the request,\n * else we set it to a default (false) unless the user-agent is blocklisted.\n * The flag is set to true for blocklisted user agents. Currently the blocklist\n * includes functions-typescript-gradle-plugin only.\n */\nexport async function getLinkTypesForObjectTypes(ctx, request) {\n return conjureFetch(ctx, `/ontology/linkTypesForObjectTypes`, \"POST\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Endpoint to load metadata about the Ontologies a user has access to. The response will contain\n * only Ontologies on which the user has `ontology:view-ontology`. Note that the returned\n * LoadAllOntologiesResponse may be empty if there is no Ontology yet.\n */\nexport async function loadAllOntologies(ctx, request) {\n return conjureFetch(ctx, `/ontology/ontology/ontologies/load/all`, \"POST\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Endpoint to batch load Ontology entities. The returned OntologyLoadResponse will only contain\n * entities that actually exist and are visible to the user. If the user has requested entities at\n * invalid ontology versions or entities that do not exist in the specified versions,\n * those will not be present in the response. If the user tries to load entities across multiple ontologies, the\n * call will fail with an exception.\n */\nexport async function loadOntologyEntities(ctx, request) {\n return conjureFetch(ctx, `/ontology/ontology/loadEntities`, \"POST\", request);\n}"]}
1
+ {"version":3,"sources":["../../src/generated/object-set-service/api/ObjectSetService/createTemporaryObjectSet.ts","../../src/generated/object-set-service/api/ObjectSetServiceV2/getBulkLinksPage.ts","../../src/generated/ontology-metadata/api/OntologyMetadataService/bulkLoadOntologyEntities.ts","../../src/generated/ontology-metadata/api/OntologyMetadataService/getLinkTypesForObjectTypes.ts","../../src/generated/ontology-metadata/api/OntologyMetadataService/loadAllOntologies.ts"],"names":["conjureFetch"],"mappings":";;;AAgCA,eAAsB,wBAAA,CAAyB,KAAK,OAAS,EAAA;AAC3D,EAAA,OAAOA,YAAa,CAAA,GAAA,EAAK,CAAyB,qBAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA,CAAA;AACnE,CAAA;ACNA,eAAsB,gBAAA,CAAiB,KAAK,OAAS,EAAA;AACnD,EAAA,OAAOA,YAAa,CAAA,GAAA,EAAK,CAAe,WAAA,CAAA,EAAA,KAAA,EAAO,OAAO,CAAA,CAAA;AACxD,CAAA;ACJA,eAAsB,wBAAA,CAAyB,GAAK,EAAA,UAAA,EAAY,OAAS,EAAA;AACvE,EAAA,OAAOA,YAAa,CAAA,GAAA,EAAK,CAAuC,mCAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA,CAAA;AACjF,CAAA;ACAA,eAAsB,0BAAA,CAA2B,KAAK,OAAS,EAAA;AAC7D,EAAA,OAAOA,YAAa,CAAA,GAAA,EAAK,CAAqC,iCAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA,CAAA;AAC/E,CAAA;ACRA,eAAsB,iBAAA,CAAkB,KAAK,OAAS,EAAA;AACpD,EAAA,OAAOA,YAAa,CAAA,GAAA,EAAK,CAA0C,sCAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA,CAAA;AACpF","file":"index.js","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { conjureFetch } from \"conjure-lite\";\n/**\n * Creates a temporary object set that will live for at least as long as the provided TTL, and will get deleted\n * at some point after that.\n *\n * Temporary object sets can only be accessed by users who have created them; a gatekeeper resource is registered\n * for every temporary object set. NOTE: The same gatekeeper resource may be reused for the same userId across\n * different createTemporaryObjectSet requests.\n *\n * Whenever an object set (temporary, or otherwise) referencing a temporary object set gets saved or used in\n * versioned object sets, the reference gets replaced with a full definition of the previously saved temporary\n * object. This is to ensure that they do not inherit the TTL of temporary object sets they reference.\n *\n * Please consider using temporary object sets whenever there is a need to save an object set just to be able to\n * pass it to another service without a need to persist it indefinitely.\n */\nexport async function createTemporaryObjectSet(ctx, request) {\n return conjureFetch(ctx, `/objectSets/temporary`, \"POST\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Returns a page of all `FoundryLink`s for a given relation based on a list of object identifiers.\n * The API supports fetching links for maximum 5_000 ObjectIdentifiers in a single request.\n * Results are always limited to the maximum of 100_000 links, without applying any particular order. Specifically,\n * this means that if total links count is above 100_000 then the whole result set should be considered partial,\n * i.e. there is no guarantee that for a given object all links have been retrieved.\n * Note that this endpoint does not check if objects referenced by the returned links actually exist. For instance,\n * when primary keys in the join table become stale, it will still return links based on the stale join table records.\n *\n * Note that this API does not support OSv1 links and will throw an exception if links provided are backed by OSv1.\n */\nexport async function getBulkLinksPage(ctx, request) {\n return conjureFetch(ctx, `/bulk-links`, \"PUT\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Endpoint to load Ontology entities in bulk. The returned OntologyBulkLoadEntitiesResponse will only\n * contain entities that actually exist and are visible to the user. If the user has requested entities at\n * invalid versions or entities that do not exist in the specified versions, those will not be present\n * in the response.\n *\n * There are limits on the number of entities that can be loaded in one request. Please refer to\n * documentation of OntologyBulkLoadEntitiesRequest for the values of these limits.\n */\nexport async function bulkLoadOntologyEntities(ctx, onBehalfOf, request) {\n return conjureFetch(ctx, `/ontology/ontology/bulkLoadEntities`, \"POST\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Endpoint to batch load links associated to given ObjectTypeRid(s). The GetLinkTypesForObjectTypesResponse\n * will only contain links that are visible to the user. If the user has requested to get link types at\n * invalid ontology versions or for ObjectTypeRid(s) that do not exist in the specified versions, those entries\n * will include an empty set of link types.\n *\n * The includeObjectTypesWithoutSearchableDatasources flag is respected if present in the request,\n * else we set it to a default (false) unless the user-agent is blocklisted.\n * The flag is set to true for blocklisted user agents. Currently the blocklist\n * includes functions-typescript-gradle-plugin only.\n */\nexport async function getLinkTypesForObjectTypes(ctx, request) {\n return conjureFetch(ctx, `/ontology/linkTypesForObjectTypes`, \"POST\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Endpoint to load metadata about the Ontologies a user has access to. The response will contain\n * only Ontologies on which the user has `ontology:view-ontology`. Note that the returned\n * LoadAllOntologiesResponse may be empty if there is no Ontology yet.\n */\nexport async function loadAllOntologies(ctx, request) {\n return conjureFetch(ctx, `/ontology/ontology/ontologies/load/all`, \"POST\", request);\n}"]}
@@ -8,10 +8,11 @@ export type { LinkTypeMetadata } from "./generated/ontology-metadata/api/LinkTyp
8
8
  export type { LoadAllOntologiesResponse } from "./generated/ontology-metadata/api/LoadAllOntologiesResponse.js";
9
9
  export type { ObjectType } from "./generated/ontology-metadata/api/ObjectType.js";
10
10
  export type { Type } from "./generated/ontology-metadata/api/Type.js";
11
+ export type { SharedPropertyTypeGothamMapping } from "./generated/ontology-metadata/api/typemapping/SharedPropertyTypeGothamMapping.js";
11
12
  export { createTemporaryObjectSet } from "./generated/object-set-service/api/ObjectSetService.js";
12
13
  export { getBulkLinksPage } from "./generated/object-set-service/api/ObjectSetServiceV2/getBulkLinksPage.js";
14
+ export { bulkLoadOntologyEntities } from "./generated/ontology-metadata/api/OntologyMetadataService/bulkLoadOntologyEntities.js";
13
15
  export { getLinkTypesForObjectTypes } from "./generated/ontology-metadata/api/OntologyMetadataService/getLinkTypesForObjectTypes.js";
14
16
  export { loadAllOntologies } from "./generated/ontology-metadata/api/OntologyMetadataService/loadAllOntologies.js";
15
- export { loadOntologyEntities } from "./generated/ontology-metadata/api/OntologyMetadataService/loadOntologyEntities.js";
16
17
  export type { OntologyIrInterfaceType, OntologyIrInterfaceTypeBlockDataV2, OntologyIrOntologyBlockDataV2, OntologyIrSharedPropertyType, OntologyIrSharedPropertyTypeBlockDataV2, } from "./blockDataIr.js";
17
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,mBAAmB,EAAE,MAAM,2DAA2D,CAAC;AACrG,YAAY,EAAE,sBAAsB,EAAE,MAAM,8DAA8D,CAAC;AAC3G,YAAY,EAAE,uBAAuB,EAAE,MAAM,+DAA+D,CAAC;AAC7G,YAAY,EAAE,gBAAgB,EAAE,MAAM,wDAAwD,CAAC;AAC/F,YAAY,EACV,SAAS,GACV,MAAM,iDAAiD,CAAC;AACzD,YAAY,EACV,eAAe,GAChB,MAAM,uDAAuD,CAAC;AAC/D,YAAY,EAAE,gBAAgB,EAAE,MAAM,uDAAuD,CAAC;AAC9F,YAAY,EAAE,yBAAyB,EAAE,MAAM,gEAAgE,CAAC;AAChH,YAAY,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAClF,YAAY,EAAE,IAAI,EAAE,MAAM,2CAA2C,CAAC;AAEtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wDAAwD,CAAC;AAClG,OAAO,EAAE,gBAAgB,EAAE,MAAM,2EAA2E,CAAC;AAC7G,OAAO,EAAE,0BAA0B,EAAE,MAAM,yFAAyF,CAAC;AACrI,OAAO,EAAE,iBAAiB,EAAE,MAAM,gFAAgF,CAAC;AACnH,OAAO,EAAE,oBAAoB,EAAE,MAAM,mFAAmF,CAAC;AAEzH,YAAY,EACV,uBAAuB,EACvB,kCAAkC,EAClC,6BAA6B,EAC7B,4BAA4B,EAC5B,uCAAuC,GACxC,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,mBAAmB,EAAE,MAAM,2DAA2D,CAAC;AACrG,YAAY,EAAE,sBAAsB,EAAE,MAAM,8DAA8D,CAAC;AAC3G,YAAY,EAAE,uBAAuB,EAAE,MAAM,+DAA+D,CAAC;AAC7G,YAAY,EAAE,gBAAgB,EAAE,MAAM,wDAAwD,CAAC;AAC/F,YAAY,EACV,SAAS,GACV,MAAM,iDAAiD,CAAC;AACzD,YAAY,EACV,eAAe,GAChB,MAAM,uDAAuD,CAAC;AAC/D,YAAY,EAAE,gBAAgB,EAAE,MAAM,uDAAuD,CAAC;AAC9F,YAAY,EAAE,yBAAyB,EAAE,MAAM,gEAAgE,CAAC;AAChH,YAAY,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAClF,YAAY,EAAE,IAAI,EAAE,MAAM,2CAA2C,CAAC;AACtE,YAAY,EAAE,+BAA+B,EAAE,MAAM,kFAAkF,CAAC;AAExI,OAAO,EAAE,wBAAwB,EAAE,MAAM,wDAAwD,CAAC;AAClG,OAAO,EAAE,gBAAgB,EAAE,MAAM,2EAA2E,CAAC;AAC7G,OAAO,EAAE,wBAAwB,EAAE,MAAM,uFAAuF,CAAC;AACjI,OAAO,EAAE,0BAA0B,EAAE,MAAM,yFAAyF,CAAC;AACrI,OAAO,EAAE,iBAAiB,EAAE,MAAM,gFAAgF,CAAC;AAEnH,YAAY,EACV,uBAAuB,EACvB,kCAAkC,EAClC,6BAA6B,EAC7B,4BAA4B,EAC5B,uCAAuC,GACxC,MAAM,kBAAkB,CAAC"}
@@ -7,16 +7,16 @@ async function createTemporaryObjectSet(ctx, request) {
7
7
  async function getBulkLinksPage(ctx, request) {
8
8
  return conjureFetch(ctx, `/bulk-links`, "PUT", request);
9
9
  }
10
+ async function bulkLoadOntologyEntities(ctx, onBehalfOf, request) {
11
+ return conjureFetch(ctx, `/ontology/ontology/bulkLoadEntities`, "POST", request);
12
+ }
10
13
  async function getLinkTypesForObjectTypes(ctx, request) {
11
14
  return conjureFetch(ctx, `/ontology/linkTypesForObjectTypes`, "POST", request);
12
15
  }
13
16
  async function loadAllOntologies(ctx, request) {
14
17
  return conjureFetch(ctx, `/ontology/ontology/ontologies/load/all`, "POST", request);
15
18
  }
16
- async function loadOntologyEntities(ctx, request) {
17
- return conjureFetch(ctx, `/ontology/ontology/loadEntities`, "POST", request);
18
- }
19
19
 
20
- export { createTemporaryObjectSet, getBulkLinksPage, getLinkTypesForObjectTypes, loadAllOntologies, loadOntologyEntities };
21
- //# sourceMappingURL=out.js.map
20
+ export { bulkLoadOntologyEntities, createTemporaryObjectSet, getBulkLinksPage, getLinkTypesForObjectTypes, loadAllOntologies };
21
+ //# sourceMappingURL=index.js.map
22
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/generated/object-set-service/api/ObjectSetService/createObjectSet.ts","../../src/generated/object-set-service/api/ObjectSetService/createTemporaryObjectSet.ts","../../src/generated/object-set-service/api/ObjectSetService/deleteObjectSet.ts","../../src/generated/object-set-service/api/ObjectSetService/getBulkObjectSet.ts","../../src/generated/object-set-service/api/ObjectSetService/getObjectSet.ts","../../src/generated/object-set-service/api/ObjectSetService/getObjectsPage.ts","../../src/generated/object-set-service/api/ObjectSetService/getObjectTypes.ts","../../src/generated/object-set-service/api/ObjectSetService/getReferencedEntities.ts","../../src/generated/object-set-service/api/ObjectSetService/materializeObjectSet.ts","../../src/generated/object-set-service/api/ObjectSetServiceV2/getBulkLinksPage.ts","../../src/generated/ontology-metadata/api/OntologyMetadataService/getLinkTypesForObjectTypes.ts","../../src/generated/ontology-metadata/api/OntologyMetadataService/loadAllOntologies.ts","../../src/generated/ontology-metadata/api/OntologyMetadataService/loadOntologyEntities.ts"],"names":["conjureFetch"],"mappings":";AAgBA,SAAS,oBAAoB;;;ACA7B,SAAS,gBAAAA,qBAAoB;AAgB7B,eAAsB,yBAAyB,KAAK,SAAS;AAC3D,SAAOA,cAAa,KAAK,yBAAyB,QAAQ,OAAO;AACnE;;;AClBA,SAAS,gBAAAA,qBAAoB;;;ACA7B,SAAS,gBAAAA,qBAAoB;;;ACA7B,SAAS,gBAAAA,qBAAoB;;;ACA7B,SAAS,gBAAAA,qBAAoB;;;ACA7B,SAAS,gBAAAA,qBAAoB;;;ACA7B,SAAS,gBAAAA,qBAAoB;;;ACA7B,SAAS,gBAAAA,qBAAoB;;;ACA7B,SAAS,gBAAAA,sBAAoB;AAY7B,eAAsB,iBAAiB,KAAK,SAAS;AACnD,SAAOA,eAAa,KAAK,eAAe,OAAO,OAAO;AACxD;;;ACdA,SAAS,gBAAAA,sBAAoB;AAY7B,eAAsB,2BAA2B,KAAK,SAAS;AAC7D,SAAOA,eAAa,KAAK,qCAAqC,QAAQ,OAAO;AAC/E;;;ACdA,SAAS,gBAAAA,sBAAoB;AAM7B,eAAsB,kBAAkB,KAAK,SAAS;AACpD,SAAOA,eAAa,KAAK,0CAA0C,QAAQ,OAAO;AACpF;;;ACRA,SAAS,gBAAAA,sBAAoB;AAQ7B,eAAsB,qBAAqB,KAAK,SAAS;AACvD,SAAOA,eAAa,KAAK,mCAAmC,QAAQ,OAAO;AAC7E","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { conjureFetch } from \"conjure-lite\";\n/**\n * Creates an orphaned object set - i.e. not part of any versioned object set. This may be for temporary or internal application use. No gatekeeper resource is created - instead the given security rid is assumed to already exist and will be used to permission the created object set.\n */\nexport async function createObjectSet(ctx, request) {\n return conjureFetch(ctx, `/objectSets`, \"POST\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Creates a temporary object set that will live for at least as long as the provided TTL, and will get deleted\n * at some point after that.\n *\n * Temporary object sets can only be accessed by users who have created them; a gatekeeper resource is registered\n * for every temporary object set. NOTE: The same gatekeeper resource may be reused for the same userId across\n * different createTemporaryObjectSet requests.\n *\n * Whenever an object set (temporary, or otherwise) referencing a temporary object set gets saved or used in\n * versioned object sets, the reference gets replaced with a full definition of the previously saved temporary\n * object. This is to ensure that they do not inherit the TTL of temporary object sets they reference.\n *\n * Please consider using temporary object sets whenever there is a need to save an object set just to be able to\n * pass it to another service without a need to persist it indefinitely.\n */\nexport async function createTemporaryObjectSet(ctx, request) {\n return conjureFetch(ctx, `/objectSets/temporary`, \"POST\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Deletes this object set, causing future operations which access it to fail.\n */\nexport async function deleteObjectSet(ctx, objectSetRid) {\n return conjureFetch(ctx, `/objectSets/${objectSetRid}`, \"DELETE\");\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Returns the definitions of requested object sets.\n */\nexport async function getBulkObjectSet(ctx, request) {\n return conjureFetch(ctx, `/bulk/objectSets`, \"PUT\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Returns the definition of this object set.\n */\nexport async function getObjectSet(ctx, objectSetRid) {\n return conjureFetch(ctx, `/objectSets/${objectSetRid}`, \"GET\");\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Fetches object rids on requested page of evaluated object set. If more objects are available, the returned pageToken can be used to fetch the subsequent page. Note that page tokens are *not* long-lived and *may* get invalidated (for example following updates to the underlying index or indices, or after a few minutes).\n * Note that the service currently does not provide guarantees around the consistency of returned results. In particular, any state changes to the underlying indices can cause duplicate results to be returned or some results to be skipped between subsequent page requests.\n */\nexport async function getObjectsPage(ctx, request, backend) {\n return conjureFetch(ctx, `/objectSets/objects`, \"PUT\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Returns types of objects that can be present in the supplied object set based on its definition at the time\n * of the request.\n *\n * Note that this endpoint does not perform a full evaluation of the supplied object set - the guarantees provided\n * are that only the returned object types can be present in the supplied object set at the time of the request.\n * It is not however guaranteed that there in fact is at least one object of each returned object type - consider\n * using aggregations instead if false-positives are not desired.\n *\n * Note that object types belonging to an object set can change over time - this information should be treated as\n * dynamic and should not be persisted or treated as immutable.\n */\nexport async function getObjectTypes(ctx, request) {\n return conjureFetch(ctx, `/objectSets/objectTypes`, \"PUT\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Returns the entities used within an object set. i.e. object type rids and link type rids\n *\n * Note that relations belonging to an object set can change over time - this information should be treated as\n * dynamic and should not be persisted or treated as immutable.\n */\nexport async function getReferencedEntities(ctx, request) {\n return conjureFetch(ctx, `/objectSets/entities`, \"PUT\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Materialize an object set.\n */\nexport async function materializeObjectSet(ctx, request) {\n return conjureFetch(ctx, `/objectSets/materialize`, \"PUT\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Returns a page of all `FoundryLink`s for a given relation based on a list of object identifiers.\n * The API supports fetching links for maximum 5_000 ObjectIdentifiers in a single request.\n * Results are always limited to the maximum of 100_000 links, without applying any particular order. Specifically,\n * this means that if total links count is above 100_000 then the whole result set should be considered partial,\n * i.e. there is no guarantee that for a given object all links have been retrieved.\n * Note that this endpoint does not check if objects referenced by the returned links actually exist. For instance,\n * when primary keys in the join table become stale, it will still return links based on the stale join table records.\n *\n * Note that this API does not support OSv1 links and will throw an exception if links provided are backed by OSv1.\n */\nexport async function getBulkLinksPage(ctx, request) {\n return conjureFetch(ctx, `/bulk-links`, \"PUT\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Endpoint to batch load links associated to given ObjectTypeRid(s). The GetLinkTypesForObjectTypesResponse\n * will only contain links that are visible to the user. If the user has requested to get link types at\n * invalid ontology versions or for ObjectTypeRid(s) that do not exist in the specified versions, those entries\n * will include an empty set of link types.\n *\n * The includeObjectTypesWithoutSearchableDatasources flag is respected if present in the request,\n * else we set it to a default (false) unless the user-agent is blocklisted.\n * The flag is set to true for blocklisted user agents. Currently the blocklist\n * includes functions-typescript-gradle-plugin only.\n */\nexport async function getLinkTypesForObjectTypes(ctx, request) {\n return conjureFetch(ctx, `/ontology/linkTypesForObjectTypes`, \"POST\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Endpoint to load metadata about the Ontologies a user has access to. The response will contain\n * only Ontologies on which the user has `ontology:view-ontology`. Note that the returned\n * LoadAllOntologiesResponse may be empty if there is no Ontology yet.\n */\nexport async function loadAllOntologies(ctx, request) {\n return conjureFetch(ctx, `/ontology/ontology/ontologies/load/all`, \"POST\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Endpoint to batch load Ontology entities. The returned OntologyLoadResponse will only contain\n * entities that actually exist and are visible to the user. If the user has requested entities at\n * invalid ontology versions or entities that do not exist in the specified versions,\n * those will not be present in the response. If the user tries to load entities across multiple ontologies, the\n * call will fail with an exception.\n */\nexport async function loadOntologyEntities(ctx, request) {\n return conjureFetch(ctx, `/ontology/ontology/loadEntities`, \"POST\", request);\n}"]}
1
+ {"version":3,"sources":["../../src/generated/object-set-service/api/ObjectSetService/createTemporaryObjectSet.ts","../../src/generated/object-set-service/api/ObjectSetServiceV2/getBulkLinksPage.ts","../../src/generated/ontology-metadata/api/OntologyMetadataService/bulkLoadOntologyEntities.ts","../../src/generated/ontology-metadata/api/OntologyMetadataService/getLinkTypesForObjectTypes.ts","../../src/generated/ontology-metadata/api/OntologyMetadataService/loadAllOntologies.ts"],"names":["conjureFetch"],"mappings":";;;AAgCA,eAAsB,wBAAA,CAAyB,KAAK,OAAS,EAAA;AAC3D,EAAA,OAAOA,YAAa,CAAA,GAAA,EAAK,CAAyB,qBAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA,CAAA;AACnE,CAAA;ACNA,eAAsB,gBAAA,CAAiB,KAAK,OAAS,EAAA;AACnD,EAAA,OAAOA,YAAa,CAAA,GAAA,EAAK,CAAe,WAAA,CAAA,EAAA,KAAA,EAAO,OAAO,CAAA,CAAA;AACxD,CAAA;ACJA,eAAsB,wBAAA,CAAyB,GAAK,EAAA,UAAA,EAAY,OAAS,EAAA;AACvE,EAAA,OAAOA,YAAa,CAAA,GAAA,EAAK,CAAuC,mCAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA,CAAA;AACjF,CAAA;ACAA,eAAsB,0BAAA,CAA2B,KAAK,OAAS,EAAA;AAC7D,EAAA,OAAOA,YAAa,CAAA,GAAA,EAAK,CAAqC,iCAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA,CAAA;AAC/E,CAAA;ACRA,eAAsB,iBAAA,CAAkB,KAAK,OAAS,EAAA;AACpD,EAAA,OAAOA,YAAa,CAAA,GAAA,EAAK,CAA0C,sCAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA,CAAA;AACpF","file":"index.js","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { conjureFetch } from \"conjure-lite\";\n/**\n * Creates a temporary object set that will live for at least as long as the provided TTL, and will get deleted\n * at some point after that.\n *\n * Temporary object sets can only be accessed by users who have created them; a gatekeeper resource is registered\n * for every temporary object set. NOTE: The same gatekeeper resource may be reused for the same userId across\n * different createTemporaryObjectSet requests.\n *\n * Whenever an object set (temporary, or otherwise) referencing a temporary object set gets saved or used in\n * versioned object sets, the reference gets replaced with a full definition of the previously saved temporary\n * object. This is to ensure that they do not inherit the TTL of temporary object sets they reference.\n *\n * Please consider using temporary object sets whenever there is a need to save an object set just to be able to\n * pass it to another service without a need to persist it indefinitely.\n */\nexport async function createTemporaryObjectSet(ctx, request) {\n return conjureFetch(ctx, `/objectSets/temporary`, \"POST\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Returns a page of all `FoundryLink`s for a given relation based on a list of object identifiers.\n * The API supports fetching links for maximum 5_000 ObjectIdentifiers in a single request.\n * Results are always limited to the maximum of 100_000 links, without applying any particular order. Specifically,\n * this means that if total links count is above 100_000 then the whole result set should be considered partial,\n * i.e. there is no guarantee that for a given object all links have been retrieved.\n * Note that this endpoint does not check if objects referenced by the returned links actually exist. For instance,\n * when primary keys in the join table become stale, it will still return links based on the stale join table records.\n *\n * Note that this API does not support OSv1 links and will throw an exception if links provided are backed by OSv1.\n */\nexport async function getBulkLinksPage(ctx, request) {\n return conjureFetch(ctx, `/bulk-links`, \"PUT\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Endpoint to load Ontology entities in bulk. The returned OntologyBulkLoadEntitiesResponse will only\n * contain entities that actually exist and are visible to the user. If the user has requested entities at\n * invalid versions or entities that do not exist in the specified versions, those will not be present\n * in the response.\n *\n * There are limits on the number of entities that can be loaded in one request. Please refer to\n * documentation of OntologyBulkLoadEntitiesRequest for the values of these limits.\n */\nexport async function bulkLoadOntologyEntities(ctx, onBehalfOf, request) {\n return conjureFetch(ctx, `/ontology/ontology/bulkLoadEntities`, \"POST\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Endpoint to batch load links associated to given ObjectTypeRid(s). The GetLinkTypesForObjectTypesResponse\n * will only contain links that are visible to the user. If the user has requested to get link types at\n * invalid ontology versions or for ObjectTypeRid(s) that do not exist in the specified versions, those entries\n * will include an empty set of link types.\n *\n * The includeObjectTypesWithoutSearchableDatasources flag is respected if present in the request,\n * else we set it to a default (false) unless the user-agent is blocklisted.\n * The flag is set to true for blocklisted user agents. Currently the blocklist\n * includes functions-typescript-gradle-plugin only.\n */\nexport async function getLinkTypesForObjectTypes(ctx, request) {\n return conjureFetch(ctx, `/ontology/linkTypesForObjectTypes`, \"POST\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Endpoint to load metadata about the Ontologies a user has access to. The response will contain\n * only Ontologies on which the user has `ontology:view-ontology`. Note that the returned\n * LoadAllOntologiesResponse may be empty if there is no Ontology yet.\n */\nexport async function loadAllOntologies(ctx, request) {\n return conjureFetch(ctx, `/ontology/ontology/ontologies/load/all`, \"POST\", request);\n}"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osdk/client.unstable",
3
- "version": "0.1.0",
3
+ "version": "2.0.0-beta.10",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,7 +20,7 @@
20
20
  "conjure-lite": "^0.4.4"
21
21
  },
22
22
  "devDependencies": {
23
- "typescript": "^5.5.2",
23
+ "typescript": "^5.5.4",
24
24
  "@osdk/monorepo.api-extractor": "~0.0.0",
25
25
  "@osdk/monorepo.tsconfig": "~0.0.0",
26
26
  "@osdk/monorepo.tsup": "~0.0.0"
@@ -37,7 +37,6 @@
37
37
  "templates",
38
38
  "*.d.ts"
39
39
  ],
40
- "main": "./build/cjs/index.cjs",
41
40
  "module": "./build/esm/index.js",
42
41
  "types": "./build/esm/index.d.ts",
43
42
  "type": "module",
@@ -1,28 +0,0 @@
1
- 'use strict';
2
-
3
- var conjureLite = require('conjure-lite');
4
-
5
- // src/generated/object-set-service/api/ObjectSetService/createObjectSet.ts
6
- async function createTemporaryObjectSet(ctx, request) {
7
- return conjureLite.conjureFetch(ctx, `/objectSets/temporary`, "POST", request);
8
- }
9
- async function getBulkLinksPage(ctx, request) {
10
- return conjureLite.conjureFetch(ctx, `/bulk-links`, "PUT", request);
11
- }
12
- async function getLinkTypesForObjectTypes(ctx, request) {
13
- return conjureLite.conjureFetch(ctx, `/ontology/linkTypesForObjectTypes`, "POST", request);
14
- }
15
- async function loadAllOntologies(ctx, request) {
16
- return conjureLite.conjureFetch(ctx, `/ontology/ontology/ontologies/load/all`, "POST", request);
17
- }
18
- async function loadOntologyEntities(ctx, request) {
19
- return conjureLite.conjureFetch(ctx, `/ontology/ontology/loadEntities`, "POST", request);
20
- }
21
-
22
- exports.createTemporaryObjectSet = createTemporaryObjectSet;
23
- exports.getBulkLinksPage = getBulkLinksPage;
24
- exports.getLinkTypesForObjectTypes = getLinkTypesForObjectTypes;
25
- exports.loadAllOntologies = loadAllOntologies;
26
- exports.loadOntologyEntities = loadOntologyEntities;
27
- //# sourceMappingURL=out.js.map
28
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/generated/object-set-service/api/ObjectSetService/createObjectSet.ts","../../src/generated/object-set-service/api/ObjectSetService/createTemporaryObjectSet.ts","../../src/generated/object-set-service/api/ObjectSetService/deleteObjectSet.ts","../../src/generated/object-set-service/api/ObjectSetService/getBulkObjectSet.ts","../../src/generated/object-set-service/api/ObjectSetService/getObjectSet.ts","../../src/generated/object-set-service/api/ObjectSetService/getObjectsPage.ts","../../src/generated/object-set-service/api/ObjectSetService/getObjectTypes.ts","../../src/generated/object-set-service/api/ObjectSetService/getReferencedEntities.ts","../../src/generated/object-set-service/api/ObjectSetService/materializeObjectSet.ts","../../src/generated/object-set-service/api/ObjectSetServiceV2/getBulkLinksPage.ts","../../src/generated/ontology-metadata/api/OntologyMetadataService/getLinkTypesForObjectTypes.ts","../../src/generated/ontology-metadata/api/OntologyMetadataService/loadAllOntologies.ts","../../src/generated/ontology-metadata/api/OntologyMetadataService/loadOntologyEntities.ts"],"names":["conjureFetch"],"mappings":";AAgBA,SAAS,oBAAoB;;;ACA7B,SAAS,gBAAAA,qBAAoB;AAgB7B,eAAsB,yBAAyB,KAAK,SAAS;AAC3D,SAAOA,cAAa,KAAK,yBAAyB,QAAQ,OAAO;AACnE;;;AClBA,SAAS,gBAAAA,qBAAoB;;;ACA7B,SAAS,gBAAAA,qBAAoB;;;ACA7B,SAAS,gBAAAA,qBAAoB;;;ACA7B,SAAS,gBAAAA,qBAAoB;;;ACA7B,SAAS,gBAAAA,qBAAoB;;;ACA7B,SAAS,gBAAAA,qBAAoB;;;ACA7B,SAAS,gBAAAA,qBAAoB;;;ACA7B,SAAS,gBAAAA,sBAAoB;AAY7B,eAAsB,iBAAiB,KAAK,SAAS;AACnD,SAAOA,eAAa,KAAK,eAAe,OAAO,OAAO;AACxD;;;ACdA,SAAS,gBAAAA,sBAAoB;AAY7B,eAAsB,2BAA2B,KAAK,SAAS;AAC7D,SAAOA,eAAa,KAAK,qCAAqC,QAAQ,OAAO;AAC/E;;;ACdA,SAAS,gBAAAA,sBAAoB;AAM7B,eAAsB,kBAAkB,KAAK,SAAS;AACpD,SAAOA,eAAa,KAAK,0CAA0C,QAAQ,OAAO;AACpF;;;ACRA,SAAS,gBAAAA,sBAAoB;AAQ7B,eAAsB,qBAAqB,KAAK,SAAS;AACvD,SAAOA,eAAa,KAAK,mCAAmC,QAAQ,OAAO;AAC7E","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { conjureFetch } from \"conjure-lite\";\n/**\n * Creates an orphaned object set - i.e. not part of any versioned object set. This may be for temporary or internal application use. No gatekeeper resource is created - instead the given security rid is assumed to already exist and will be used to permission the created object set.\n */\nexport async function createObjectSet(ctx, request) {\n return conjureFetch(ctx, `/objectSets`, \"POST\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Creates a temporary object set that will live for at least as long as the provided TTL, and will get deleted\n * at some point after that.\n *\n * Temporary object sets can only be accessed by users who have created them; a gatekeeper resource is registered\n * for every temporary object set. NOTE: The same gatekeeper resource may be reused for the same userId across\n * different createTemporaryObjectSet requests.\n *\n * Whenever an object set (temporary, or otherwise) referencing a temporary object set gets saved or used in\n * versioned object sets, the reference gets replaced with a full definition of the previously saved temporary\n * object. This is to ensure that they do not inherit the TTL of temporary object sets they reference.\n *\n * Please consider using temporary object sets whenever there is a need to save an object set just to be able to\n * pass it to another service without a need to persist it indefinitely.\n */\nexport async function createTemporaryObjectSet(ctx, request) {\n return conjureFetch(ctx, `/objectSets/temporary`, \"POST\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Deletes this object set, causing future operations which access it to fail.\n */\nexport async function deleteObjectSet(ctx, objectSetRid) {\n return conjureFetch(ctx, `/objectSets/${objectSetRid}`, \"DELETE\");\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Returns the definitions of requested object sets.\n */\nexport async function getBulkObjectSet(ctx, request) {\n return conjureFetch(ctx, `/bulk/objectSets`, \"PUT\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Returns the definition of this object set.\n */\nexport async function getObjectSet(ctx, objectSetRid) {\n return conjureFetch(ctx, `/objectSets/${objectSetRid}`, \"GET\");\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Fetches object rids on requested page of evaluated object set. If more objects are available, the returned pageToken can be used to fetch the subsequent page. Note that page tokens are *not* long-lived and *may* get invalidated (for example following updates to the underlying index or indices, or after a few minutes).\n * Note that the service currently does not provide guarantees around the consistency of returned results. In particular, any state changes to the underlying indices can cause duplicate results to be returned or some results to be skipped between subsequent page requests.\n */\nexport async function getObjectsPage(ctx, request, backend) {\n return conjureFetch(ctx, `/objectSets/objects`, \"PUT\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Returns types of objects that can be present in the supplied object set based on its definition at the time\n * of the request.\n *\n * Note that this endpoint does not perform a full evaluation of the supplied object set - the guarantees provided\n * are that only the returned object types can be present in the supplied object set at the time of the request.\n * It is not however guaranteed that there in fact is at least one object of each returned object type - consider\n * using aggregations instead if false-positives are not desired.\n *\n * Note that object types belonging to an object set can change over time - this information should be treated as\n * dynamic and should not be persisted or treated as immutable.\n */\nexport async function getObjectTypes(ctx, request) {\n return conjureFetch(ctx, `/objectSets/objectTypes`, \"PUT\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Returns the entities used within an object set. i.e. object type rids and link type rids\n *\n * Note that relations belonging to an object set can change over time - this information should be treated as\n * dynamic and should not be persisted or treated as immutable.\n */\nexport async function getReferencedEntities(ctx, request) {\n return conjureFetch(ctx, `/objectSets/entities`, \"PUT\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Materialize an object set.\n */\nexport async function materializeObjectSet(ctx, request) {\n return conjureFetch(ctx, `/objectSets/materialize`, \"PUT\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Returns a page of all `FoundryLink`s for a given relation based on a list of object identifiers.\n * The API supports fetching links for maximum 5_000 ObjectIdentifiers in a single request.\n * Results are always limited to the maximum of 100_000 links, without applying any particular order. Specifically,\n * this means that if total links count is above 100_000 then the whole result set should be considered partial,\n * i.e. there is no guarantee that for a given object all links have been retrieved.\n * Note that this endpoint does not check if objects referenced by the returned links actually exist. For instance,\n * when primary keys in the join table become stale, it will still return links based on the stale join table records.\n *\n * Note that this API does not support OSv1 links and will throw an exception if links provided are backed by OSv1.\n */\nexport async function getBulkLinksPage(ctx, request) {\n return conjureFetch(ctx, `/bulk-links`, \"PUT\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Endpoint to batch load links associated to given ObjectTypeRid(s). The GetLinkTypesForObjectTypesResponse\n * will only contain links that are visible to the user. If the user has requested to get link types at\n * invalid ontology versions or for ObjectTypeRid(s) that do not exist in the specified versions, those entries\n * will include an empty set of link types.\n *\n * The includeObjectTypesWithoutSearchableDatasources flag is respected if present in the request,\n * else we set it to a default (false) unless the user-agent is blocklisted.\n * The flag is set to true for blocklisted user agents. Currently the blocklist\n * includes functions-typescript-gradle-plugin only.\n */\nexport async function getLinkTypesForObjectTypes(ctx, request) {\n return conjureFetch(ctx, `/ontology/linkTypesForObjectTypes`, \"POST\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Endpoint to load metadata about the Ontologies a user has access to. The response will contain\n * only Ontologies on which the user has `ontology:view-ontology`. Note that the returned\n * LoadAllOntologiesResponse may be empty if there is no Ontology yet.\n */\nexport async function loadAllOntologies(ctx, request) {\n return conjureFetch(ctx, `/ontology/ontology/ontologies/load/all`, \"POST\", request);\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 { conjureFetch } from \"conjure-lite\";\n/**\n * Endpoint to batch load Ontology entities. The returned OntologyLoadResponse will only contain\n * entities that actually exist and are visible to the user. If the user has requested entities at\n * invalid ontology versions or entities that do not exist in the specified versions,\n * those will not be present in the response. If the user tries to load entities across multiple ontologies, the\n * call will fail with an exception.\n */\nexport async function loadOntologyEntities(ctx, request) {\n return conjureFetch(ctx, `/ontology/ontology/loadEntities`, \"POST\", request);\n}"]}