@osdk/client 2.0.0-beta.11 → 2.0.0-beta.13

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 (56) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/build/browser/{chunk-WGFCR4UM.js → chunk-CG25K4WC.js} +734 -620
  3. package/build/browser/chunk-CG25K4WC.js.map +1 -0
  4. package/build/browser/index.js +716 -3
  5. package/build/browser/index.js.map +1 -1
  6. package/build/browser/public/unstable-do-not-use.js +1 -878
  7. package/build/browser/public/unstable-do-not-use.js.map +1 -1
  8. package/build/esm/Client.d.ts +25 -6
  9. package/build/esm/Client.d.ts.map +1 -1
  10. package/build/esm/actions/applyAction.d.ts +4 -4
  11. package/build/esm/actions/applyAction.d.ts.map +1 -1
  12. package/build/esm/{chunk-WGFCR4UM.js → chunk-MQTCPUPF.js} +737 -620
  13. package/build/esm/chunk-MQTCPUPF.js.map +1 -0
  14. package/build/esm/createClient.d.ts.map +1 -1
  15. package/build/esm/index.js +716 -3
  16. package/build/esm/index.js.map +1 -1
  17. package/build/esm/object/convertWireToOsdkObjects/InterfaceHolder.d.ts +2 -2
  18. package/build/esm/object/convertWireToOsdkObjects/InterfaceHolder.d.ts.map +1 -1
  19. package/build/esm/object/fetchPage.d.ts.map +1 -1
  20. package/build/esm/object/object.test.d.ts +3 -4
  21. package/build/esm/object/object.test.d.ts.map +1 -1
  22. package/build/esm/objectSet/ObjectSetListenerWebsocket.d.ts.map +1 -1
  23. package/build/esm/ontology/OntologyProvider.d.ts +6 -6
  24. package/build/esm/ontology/OntologyProvider.d.ts.map +1 -1
  25. package/build/esm/ontology/StandardOntologyProvider.d.ts.map +1 -1
  26. package/build/esm/ontology/loadActionMetadata.d.ts +4 -0
  27. package/build/esm/ontology/loadActionMetadata.d.ts.map +1 -0
  28. package/build/esm/ontology/loadFullObjectMetadata.d.ts +2 -2
  29. package/build/esm/ontology/loadFullObjectMetadata.d.ts.map +1 -1
  30. package/build/esm/ontology/loadInterfaceMetadata.d.ts +4 -0
  31. package/build/esm/ontology/loadInterfaceMetadata.d.ts.map +1 -0
  32. package/build/esm/ontology/loadQueryMetadata.d.ts +4 -0
  33. package/build/esm/ontology/loadQueryMetadata.d.ts.map +1 -0
  34. package/build/esm/public/unstable-do-not-use.d.ts +0 -4
  35. package/build/esm/public/unstable-do-not-use.d.ts.map +1 -1
  36. package/build/esm/public/unstable-do-not-use.js +1 -881
  37. package/build/esm/public/unstable-do-not-use.js.map +1 -1
  38. package/build/esm/queries/applyQuery.d.ts +2 -2
  39. package/build/esm/queries/applyQuery.d.ts.map +1 -1
  40. package/build/esm/queries/types.d.ts +3 -3
  41. package/build/esm/queries/types.d.ts.map +1 -1
  42. package/package.json +12 -12
  43. package/build/browser/chunk-WGFCR4UM.js.map +0 -1
  44. package/build/esm/__unstable/UNSTABLE_createClient.d.ts +0 -4
  45. package/build/esm/__unstable/UNSTABLE_createClient.d.ts.map +0 -1
  46. package/build/esm/__unstable/UnstableClient.d.ts +0 -12
  47. package/build/esm/__unstable/UnstableClient.d.ts.map +0 -1
  48. package/build/esm/chunk-WGFCR4UM.js.map +0 -1
  49. package/build/esm/objectSet/ObjectSetListener.d.ts +0 -18
  50. package/build/esm/objectSet/ObjectSetListener.d.ts.map +0 -1
  51. package/build/esm/objectSet/createUnstableObjectSet.d.ts +0 -8
  52. package/build/esm/objectSet/createUnstableObjectSet.d.ts.map +0 -1
  53. package/build/esm/ontology/loadInterfaceDefinition.d.ts +0 -4
  54. package/build/esm/ontology/loadInterfaceDefinition.d.ts.map +0 -1
  55. package/build/esm/ontology/loadQueryDefinition.d.ts +0 -4
  56. package/build/esm/ontology/loadQueryDefinition.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/createPlatformClient.ts"],"names":[],"mappings":";;;;;;AA8BO,SAAS,qBAAqB,OAAS,EAAA,aAAA,EAAe,OAAU,GAAA,KAAA,CAAA,EAAW,UAAU,KAAO,EAAA;AACjG,EAAA,OAAO,yBAA0B,CAAA,OAAA,EAAS,aAAe,EAAA,UAAA,EAAY,OAAO,CAAA,CAAA;AAC9E","file":"index.js","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 */\n\nimport { createSharedClientContext } from \"@osdk/shared.client.impl\";\nimport { USER_AGENT } from \"./util/UserAgent.js\";\n/**\n * Creates a client that can only be used with Platform APIs.\n *\n * If you already have an OSDK Client (from `createClient`), you do not need to\n * create one of these - those clients can be used with Platform APIs as well.\n *\n * @param baseUrl\n * @param tokenProvider\n * @param options Currently unused, reserved for future use.\n * @param fetchFn\n * @returns\n */\nexport function createPlatformClient(baseUrl, tokenProvider, options = undefined, fetchFn = fetch) {\n return createSharedClientContext(baseUrl, tokenProvider, USER_AGENT, fetchFn);\n}"]}
1
+ {"version":3,"sources":["../../src/actions/ActionValidationError.ts","../../src/pageRequestAsAsyncIter.ts","../../src/__unstable/createBulkLinksAsyncIterFactory.ts","../../src/object/AttachmentUpload.ts","../../src/util/isOntologyObjectV2.ts","../../src/util/isOsdkObject.ts","../../src/util/toDataValue.ts","../../src/actions/applyAction.ts","../../src/ontology/loadActionMetadata.ts","../../src/ontology/loadFullObjectMetadata.ts","../../src/ontology/loadInterfaceMetadata.ts","../../src/ontology/loadQueryMetadata.ts","../../src/ontology/StandardOntologyProvider.ts","../../src/util/UserAgent.ts","../../src/createMinimalClient.ts","../../src/fetchMetadata.ts","../../src/util/isOsdkBaseObject.ts","../../src/util/toDataValueQueries.ts","../../src/queries/applyQuery.ts","../../src/createClient.ts","../../src/createPl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ACb,KAAO,EAAA,aAAA;AAAA,KACT;AAAA,GACD,CAAA,CAAA;AACD,EAAO,OAAA,MAAA,CAAA;AACT,CAAA;AACO,IAAM,YAAe,GAAA,oBAAA,CAAqB,IAAK,CAAA,KAAA,CAAA,EAAW,eAAe,EAAA;ACxDzE,SAAS,qBAAqB,OAAS,EAAA,aAAA,EAAe,OAAU,GAAA,KAAA,CAAA,EAAW,UAAU,KAAO,EAAA;AACjG,EAAA,OAAOC,yBAA0B,CAAA,OAAA,EAAS,aAAe,EAAA,UAAA,EAAY,OAAO,CAAA,CAAA;AAC9E","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\nexport class ActionValidationError extends Error {\n constructor(validation) {\n super(\"Validation Error\");\n this.validation = validation;\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 getResults(x) {\n return x.results;\n}\nexport function applyPageToken(payload, {\n pageToken\n}) {\n return pageToken ? {\n ...payload,\n pageToken\n } : undefined;\n}\nexport async function* pageRequestAsAsyncIter(call, values, nextArgs, initialPayload) {\n let payload = initialPayload;\n while (payload) {\n const r = await call(payload);\n for (const q of values(r)) {\n yield q;\n }\n payload = nextArgs(payload, r);\n }\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { getBulkLinksPage } from \"@osdk/client.unstable\";\nimport invariant from \"tiny-invariant\";\nimport { conjureUnionType } from \"../objectSet/conjureUnionType.js\";\nimport { makeConjureContext } from \"../ontology/makeConjureContext.js\";\nimport { applyPageToken, getResults, pageRequestAsAsyncIter } from \"../pageRequestAsAsyncIter.js\";\nimport { metadataCacheClient } from \"./ConjureSupport.js\";\nexport function createBulkLinksAsyncIterFactory(ctx) {\n return async function* (objs, linkTypes) {\n if (objs.length === 0) {\n return;\n }\n ctx.logger?.debug(\"Preparing to fetch bulk links\");\n\n // require all objects to be the same type for now\n !objs.every(a => a.$objectType === objs[0].$objectType) ? process.env.NODE_ENV !== \"production\" ? invariant(false) : invariant(false) : void 0;\n const mcc = await metadataCacheClient(ctx);\n const helper = await mcc.forObjectByApiName(objs[0].$objectType);\n const [objectTypeRid, propertyMapping, fullLinkMapping] = await Promise.all([helper.getRid(), helper.getPropertyMapping(), helper.getLinkMapping()]);\n const linkMapping = Object.fromEntries(Object.entries(fullLinkMapping).filter(([apiName]) => linkTypes.includes(apiName)));\n\n // make sure the link being requested exists\n for (const linkType of linkTypes) {\n if (linkMapping[linkType] == null) {\n throw \"Unable to find link type: \" + linkType;\n }\n }\n const req = {\n objectSetContext: {\n forkRid: undefined,\n objectSetFilterContext: {\n parameterOverrides: {}\n },\n ontologyBranchRid: undefined,\n owningRid: undefined,\n reportUsage: undefined,\n workstateRid: undefined\n },\n responseOptions: {\n includeObjectSetEntities: true,\n includeUsageCost: false\n },\n pageSize: 1000,\n pageToken: undefined,\n linksRequests: [{\n directedLinkTypes: Object.values(linkMapping).map(({\n directedLinkTypeRid\n }) => directedLinkTypeRid),\n objects: conjureUnionType(\"objects\", objs.map(o => conjureUnionType(\"objectLocatorV2\", {\n objectTypeRid,\n objectPrimaryKey: {\n [propertyMapping.pk.rid]: conjureUnionType(propertyMapping.pk.type.type, o.$primaryKey)\n }\n })))\n }]\n };\n const bulkLinksIter = pageRequestAsAsyncIter(getBulkLinksPage.bind(undefined, makeConjureContext(ctx, \"/object-set-service/api\")), getResults, applyPageToken, req);\n for await (const item of bulkLinksIter) {\n const {\n objectIdentifier\n } = item;\n const obj = findObject(objectIdentifier, objs);\n for (const link of item.links) {\n const ref = link.link[link.linkSide === \"SOURCE\" ? \"objectSideB\" : \"objectSideA\"];\n const pk = getPrimaryKeyOrThrow(ref);\n const otherObjectApiName = await (await mcc.forObjectByRid(pk.objectTypeRid)).getApiName();\n const mappedLink = Object.values(linkMapping).find(a => a.directedLinkTypeRid.linkTypeRid === link.link.linkTypeRid && a.directedLinkTypeRid.linkSide === link.linkSide);\n if (!mappedLink) throw new Error(\"Could not find link type\"); // should not happens\n\n yield {\n object: obj,\n linkApiName: mappedLink.apiName,\n otherObjectApiName: otherObjectApiName,\n otherObjectPk: pk.pkValue\n };\n }\n }\n };\n}\nfunction findObject(objectIdentifier, objs) {\n const {\n pkValue\n } = getPrimaryKeyOrThrow(objectIdentifier);\n const obj = objs.find(o => o.$primaryKey === pkValue);\n if (obj == null) {\n throw new Error(`Needed to find object with pk ${pkValue}} and could not`);\n }\n return obj;\n}\nfunction getPrimaryKeyOrThrow(ref) {\n if (\"type\" in ref && ref.type !== \"objectLocatorV2\") {\n throw new Error(\"We do not support looking up object by rid\");\n }\n const pks = Object.entries(ref.objectLocatorV2.objectPrimaryKey);\n if (pks.length !== 1) {\n throw new Error(\"Unable to support this request due to multiple pks\");\n }\n return {\n objectTypeRid: ref.objectLocatorV2.objectTypeRid,\n pkValue: pks[0][1][pks[0][1].type]\n };\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport function isAttachmentUpload(o) {\n return o instanceof Blob && \"name\" in o;\n}\nexport function createAttachmentUpload(data, name) {\n const attachmentUpload = Object.create(data, {\n name: {\n value: name\n }\n });\n return attachmentUpload;\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/** @internal */\nexport function isOntologyObjectV2(o) {\n return o && typeof o === \"object\" && typeof o.__apiName === \"string\" && o.__primaryKey != null;\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 isOsdkBaseObject(o) {\n return o && typeof o === \"object\" && typeof o.$apiName === \"string\" && o.$primaryKey != null;\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 { OntologiesV2 } from \"@osdk/internal.foundry\";\nimport { isAttachmentUpload } from \"../object/AttachmentUpload.js\";\nimport { getWireObjectSet, isObjectSet } from \"../objectSet/createObjectSet.js\";\nimport { isOntologyObjectV2 } from \"./isOntologyObjectV2.js\";\nimport { isOsdkBaseObject } from \"./isOsdkObject.js\";\nimport { isWireObjectSet } from \"./WireObjectSet.js\";\n\n/**\n * Marshall user-facing data into the wire DataValue type\n *\n * @see DataValue for the expected payloads\n * @internal\n */\nexport async function toDataValue(value, client) {\n if (value == null) {\n // typeof null is 'object' so do this first\n return value;\n }\n\n // arrays and sets are both sent over the wire as arrays\n if (Array.isArray(value) || value instanceof Set) {\n const promiseArray = Array.from(value, async innerValue => await toDataValue(innerValue, client));\n return Promise.all(promiseArray);\n }\n\n // For uploads, we need to upload ourselves first to get the RID of the attachment\n if (isAttachmentUpload(value)) {\n const attachment = await OntologiesV2.Attachments.uploadAttachmentV2(client, value, {\n filename: value.name\n });\n return await toDataValue(attachment.rid, client);\n }\n\n // objects just send the JSON'd primaryKey\n if (isOntologyObjectV2(value)) {\n return await toDataValue(value.__primaryKey, client);\n }\n if (isOsdkBaseObject(value)) {\n return await toDataValue(value.$primaryKey, client);\n }\n\n // object set (the rid as a string (passes through the last return), or the ObjectSet definition directly)\n if (isWireObjectSet(value)) {\n return value;\n }\n if (isObjectSet(value)) {\n return getWireObjectSet(value);\n }\n\n // TODO (during queries implementation)\n // two dimensional aggregation\n // three dimensional aggregation\n\n // struct\n if (typeof value === \"object\") {\n return Object.entries(value).reduce(async (promisedAcc, [key, structValue]) => {\n const acc = await promisedAcc;\n acc[key] = await toDataValue(structValue, client);\n return acc;\n }, Promise.resolve({}));\n }\n\n // expected to pass through - boolean, byte, date, decimal, float, double, integer, long, short, string, timestamp\n return value;\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 { OntologiesV2 } from \"@osdk/internal.foundry\";\nimport invariant from \"tiny-invariant\";\nimport { addUserAgentAndRequestContextHeaders } from \"../util/addUserAgentAndRequestContextHeaders.js\";\nimport { augmentRequestContext } from \"../util/augmentRequestContext.js\";\nimport { toDataValue } from \"../util/toDataValue.js\";\nimport { ActionValidationError } from \"./ActionValidationError.js\";\nexport async function applyAction(client, action, parameters, options = {}) {\n const clientWithHeaders = addUserAgentAndRequestContextHeaders(augmentRequestContext(client, _ => ({\n finalMethodCall: \"applyAction\"\n })), action);\n if (Array.isArray(parameters)) {\n const response = await OntologiesV2.Actions.applyActionBatchV2(clientWithHeaders, await client.ontologyRid, action.apiName, {\n requests: parameters ? await remapBatchActionParams(parameters, client) : [],\n options: {\n returnEdits: options?.$returnEdits ? \"ALL\" : \"NONE\"\n }\n });\n const edits = response.edits;\n return options?.$returnEdits ? edits?.type === \"edits\" ? remapActionResponse(response) : edits : undefined;\n } else {\n const response = await OntologiesV2.Actions.applyActionV2(clientWithHeaders, await client.ontologyRid, action.apiName, {\n parameters: await remapActionParams(parameters, client),\n options: {\n mode: options?.$validateOnly ? \"VALIDATE_ONLY\" : \"VALIDATE_AND_EXECUTE\",\n returnEdits: options?.$returnEdits ? \"ALL\" : \"NONE\"\n }\n });\n if (options?.$validateOnly) {\n return response.validation;\n }\n if (response.validation?.result === \"INVALID\") {\n throw new ActionValidationError(response.validation);\n }\n const edits = response.edits;\n return options?.$returnEdits ? edits?.type === \"edits\" ? remapActionResponse(response) : edits : undefined;\n }\n}\nasync function remapActionParams(params, client) {\n if (params == null) {\n return {};\n }\n const parameterMap = {};\n for (const [key, value] of Object.entries(params)) {\n parameterMap[key] = await toDataValue(value, client);\n }\n return parameterMap;\n}\nasync function remapBatchActionParams(params, client) {\n const remappedParams = await Promise.all(params.map(async param => {\n return {\n parameters: await remapActionParams(param, client)\n };\n }));\n return remappedParams;\n}\nexport function remapActionResponse(response) {\n const editResponses = response?.edits;\n if (editResponses?.type === \"edits\") {\n const remappedActionResponse = {\n type: editResponses.type,\n deletedLinksCount: editResponses.deletedLinksCount,\n deletedObjectsCount: editResponses.deletedObjectsCount,\n addedLinks: [],\n addedObjects: [],\n modifiedObjects: [],\n editedObjectTypes: []\n };\n const editedObjectTypesSet = new Set();\n for (const edit of editResponses.edits) {\n if (edit.type === \"addLink\") {\n remappedActionResponse.addedLinks.push({\n linkTypeApiNameAtoB: edit.linkTypeApiNameAtoB,\n linkTypeApiNameBtoA: edit.linkTypeApiNameBtoA,\n aSideObject: edit.aSideObject,\n bSideObject: edit.bSideObject\n });\n editedObjectTypesSet.add(edit.aSideObject.objectType);\n editedObjectTypesSet.add(edit.bSideObject.objectType);\n } else if (edit.type === \"addObject\") {\n remappedActionResponse.addedObjects.push({\n objectType: edit.objectType,\n primaryKey: edit.primaryKey\n });\n editedObjectTypesSet.add(edit.objectType);\n } else if (edit.type === \"modifyObject\") {\n remappedActionResponse.modifiedObjects.push({\n objectType: edit.objectType,\n primaryKey: edit.primaryKey\n });\n editedObjectTypesSet.add(edit.objectType);\n } else {\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"Unknown edit type\") : invariant(false) : void 0;\n }\n }\n remappedActionResponse.editedObjectTypes = [...editedObjectTypesSet];\n return remappedActionResponse;\n }\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { wireActionTypeV2ToSdkActionMetadata } from \"@osdk/generator-converters\";\nimport { OntologiesV2 } from \"@osdk/internal.foundry\";\nexport async function loadActionMetadata(client, actionType) {\n const r = await OntologiesV2.ActionTypesV2.getActionTypeV2(client, await client.ontologyRid, actionType);\n return wireActionTypeV2ToSdkActionMetadata(r);\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 { wireObjectTypeFullMetadataToSdkObjectMetadata } from \"@osdk/generator-converters\";\nimport { OntologiesV2 } from \"@osdk/internal.foundry\";\nexport async function loadFullObjectMetadata(client, objectType) {\n const full = await OntologiesV2.ObjectTypesV2.getObjectTypeFullMetadata(client, await client.ontologyRid, objectType, {\n preview: true\n });\n const ret = wireObjectTypeFullMetadataToSdkObjectMetadata(full, true);\n client.logger?.debug(`END loadFullObjectMetadata(${objectType})`);\n return {\n ...ret\n };\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition } from \"@osdk/generator-converters\";\nimport { OntologiesV2 } from \"@osdk/internal.foundry\";\nexport async function loadInterfaceMetadata(client, objectType) {\n const r = await OntologiesV2.OntologyInterfaces.getInterfaceType(client, await client.ontologyRid, objectType, {\n preview: true\n });\n return __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition(r, true);\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 { wireQueryTypeV2ToSdkQueryMetadata } from \"@osdk/generator-converters\";\nimport { OntologiesV2 } from \"@osdk/internal.foundry\";\nexport async function loadQueryMetadata(client, queryType) {\n const r = await OntologiesV2.QueryTypes.getQueryTypeV2(client, await client.ontologyRid, queryType);\n return wireQueryTypeV2ToSdkQueryMetadata(r);\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 { createAsyncClientCache } from \"../object/Cache.js\";\nimport { loadActionMetadata } from \"./loadActionMetadata.js\";\nimport { loadFullObjectMetadata } from \"./loadFullObjectMetadata.js\";\nimport { loadInterfaceMetadata } from \"./loadInterfaceMetadata.js\";\nimport { loadQueryMetadata } from \"./loadQueryMetadata.js\";\nimport { InterfaceDefinitions } from \"./OntologyProvider.js\";\nexport const createStandardOntologyProviderFactory = client => {\n return client => {\n async function loadObject(client, key) {\n let objectDef = await loadFullObjectMetadata(client, key);\n\n // ensure we have all of the interfaces loaded\n const interfaceDefs = Object.fromEntries((await Promise.all(objectDef.implements?.map(i => ret.getInterfaceDefinition(i)) ?? [])).map(i => [i.apiName, {\n def: i,\n handler: undefined\n }]));\n const fullObjectDef = {\n ...objectDef,\n [InterfaceDefinitions]: interfaceDefs\n };\n return fullObjectDef;\n }\n async function loadInterface(client, key) {\n return loadInterfaceMetadata(client, key);\n }\n async function loadQuery(client, key) {\n const r = await loadQueryMetadata(client, key);\n return r;\n }\n async function loadAction(client, key) {\n const r = await loadActionMetadata(client, key);\n return r;\n }\n function makeGetter(fn) {\n const cache = createAsyncClientCache((client, key) => fn(client, key, false));\n return async apiName => {\n return await cache.get(client, apiName);\n };\n }\n const ret = {\n getObjectDefinition: makeGetter(loadObject),\n getInterfaceDefinition: makeGetter(loadInterface),\n getQueryDefinition: makeGetter(loadQuery),\n getActionDefinition: makeGetter(loadAction)\n };\n return ret;\n };\n};","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const USER_AGENT = `osdk-client/${process.env.PACKAGE_VERSION}`;","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createSharedClientContext } from \"@osdk/shared.client.impl\";\nimport { createObjectSet } from \"./objectSet/createObjectSet.js\";\nimport { createStandardOntologyProviderFactory } from \"./ontology/StandardOntologyProvider.js\";\nimport { USER_AGENT } from \"./util/UserAgent.js\";\n\n/** @internal */\nexport function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory = createObjectSet) {\n if (process?.env?.NODE_ENV !== \"production\") {\n try {\n new URL(baseUrl);\n } catch (e) {\n const hint = !baseUrl.startsWith(\"http://\") || !baseUrl.startsWith(\"https://\") ? \". Did you forget to add 'http://' or 'https://'?\" : \"\";\n throw new Error(`Invalid stack URL: ${baseUrl}${hint}`);\n }\n }\n const minimalClient = {\n ...createSharedClientContext(baseUrl, tokenProvider, USER_AGENT, fetchFn),\n objectSetFactory,\n ontologyRid: metadata.ontologyRid,\n logger: options.logger,\n clientCacheKey: {},\n requestContext: {}\n };\n return Object.assign(minimalClient, {\n ontologyProvider: createStandardOntologyProviderFactory(options)(minimalClient)\n });\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { InterfaceDefinitions } from \"./ontology/OntologyProvider.js\";\n\n/** @internal */\nexport const fetchMetadataInternal = async (client, definition) => {\n if (definition.type === \"object\") {\n const {\n [InterfaceDefinitions]: interfaceDefs,\n ...objectTypeDef\n } = await client.ontologyProvider.getObjectDefinition(definition.apiName);\n return objectTypeDef;\n } else if (definition.type === \"interface\") {\n return client.ontologyProvider.getInterfaceDefinition(definition.apiName);\n } else if (definition.type === \"action\") {\n return client.ontologyProvider.getActionDefinition(definition.apiName);\n } else if (definition.type === \"query\") {\n return client.ontologyProvider.getQueryDefinition(definition.apiName);\n } else {\n throw new Error(\"Not implemented for given definition\");\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 isOsdkBaseObject(o) {\n return o && typeof o === \"object\" && typeof o.$apiName === \"string\" && o.$primaryKey != null;\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 { OntologiesV2 } from \"@osdk/internal.foundry\";\nimport { isAttachmentUpload } from \"../object/AttachmentUpload.js\";\nimport { getWireObjectSet, isObjectSet } from \"../objectSet/createObjectSet.js\";\nimport { isOsdkBaseObject } from \"./isOsdkBaseObject.js\";\nimport { isWireObjectSet } from \"./WireObjectSet.js\";\n\n/**\n * Marshall user-facing data into the wire DataValue type\n *\n * @see DataValue for the expected payloads\n * @internal\n */\nexport async function toDataValueQueries(value, client, desiredType) {\n if (value == null) {\n return value;\n }\n if (Array.isArray(value) && desiredType.multiplicity) {\n const promiseArray = Array.from(value, async innerValue => await toDataValueQueries(innerValue, client, desiredType));\n return Promise.all(promiseArray);\n }\n switch (desiredType.type) {\n case \"attachment\":\n {\n if (isAttachmentUpload(value)) {\n const attachment = await OntologiesV2.Attachments.uploadAttachmentV2(client, value, {\n filename: value.name\n });\n return attachment.rid;\n }\n\n // If it's not an upload, it's just an attachment rid string which we can pass through\n return value;\n }\n case \"twoDimensionalAggregation\":\n {\n return {\n groups: value\n };\n }\n case \"threeDimensionalAggregation\":\n {\n return {\n groups: value\n };\n }\n case \"set\":\n {\n if (value instanceof Set) {\n const promiseArray = Array.from(value, async innerValue => await toDataValueQueries(innerValue, client, desiredType[\"set\"]));\n return Promise.all(promiseArray);\n }\n break;\n }\n case \"object\":\n {\n if (isOsdkBaseObject(value)) {\n return value.$primaryKey;\n }\n break;\n }\n case \"objectSet\":\n {\n // object set (the rid as a string (passes through the last return), or the ObjectSet definition directly)\n if (isWireObjectSet(value)) {\n return value;\n }\n if (isObjectSet(value)) {\n return getWireObjectSet(value);\n }\n break;\n }\n case \"struct\":\n {\n if (typeof value === \"object\") {\n const structMap = {};\n for (const [key, structValue] of Object.entries(value)) {\n structMap[key] = await toDataValueQueries(structValue, client, desiredType[\"struct\"][key]);\n }\n return structMap;\n }\n }\n case \"boolean\":\n case \"date\":\n case \"double\":\n case \"float\":\n case \"integer\":\n case \"long\":\n case \"string\":\n case \"timestamp\":\n return value;\n }\n return value;\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 { OntologiesV2 } from \"@osdk/internal.foundry\";\nimport { createAttachmentFromRid } from \"../createAttachmentFromRid.js\";\nimport { createObjectSet } from \"../objectSet/createObjectSet.js\";\nimport { addUserAgentAndRequestContextHeaders } from \"../util/addUserAgentAndRequestContextHeaders.js\";\nimport { augmentRequestContext } from \"../util/augmentRequestContext.js\";\nimport { toDataValueQueries } from \"../util/toDataValueQueries.js\";\nexport async function applyQuery(client, query, params) {\n const qd = await client.ontologyProvider.getQueryDefinition(query.apiName);\n const response = await OntologiesV2.Queries.executeQueryV2(addUserAgentAndRequestContextHeaders(augmentRequestContext(client, _ => ({\n finalMethodCall: \"applyQuery\"\n })), query), await client.ontologyRid, query.apiName, {\n parameters: params ? await remapQueryParams(params, client, qd.parameters) : {}\n });\n const objectOutputDefs = await getRequiredDefinitions(qd.output, client);\n const remappedResponse = await remapQueryResponse(client, qd.output, response.value, objectOutputDefs);\n return remappedResponse;\n}\nasync function remapQueryParams(params, client, paramTypes) {\n const parameterMap = {};\n for (const [key, value] of Object.entries(params)) {\n parameterMap[key] = await toDataValueQueries(value, client, paramTypes[key]);\n }\n return parameterMap;\n}\nasync function remapQueryResponse(client, responseDataType, responseValue, definitions) {\n // handle null responses\n if (responseValue == null) {\n if (responseDataType.nullable) {\n return undefined;\n } else {\n throw new Error(\"Got null response when nullable was not allowed\");\n }\n }\n if (responseDataType.multiplicity != null && responseDataType.multiplicity !== false) {\n const withoutMultiplicity = {\n ...responseDataType,\n multiplicity: false\n };\n for (let i = 0; i < responseValue.length; i++) {\n responseValue[i] = await remapQueryResponse(responseValue[i], withoutMultiplicity, client, definitions);\n }\n return responseValue;\n }\n switch (responseDataType.type) {\n case \"union\":\n {\n throw new Error(\"Union return types are not yet supported\");\n }\n case \"set\":\n {\n for (let i = 0; i < responseValue.length; i++) {\n responseValue[i] = await remapQueryResponse(responseValue[i], responseDataType.set, client, definitions);\n }\n return responseValue;\n }\n case \"attachment\":\n {\n return createAttachmentFromRid(client, responseValue);\n }\n case \"object\":\n {\n const def = definitions.get(responseDataType.object);\n if (!def) {\n throw new Error(`Missing definition for ${responseDataType.object}`);\n }\n return createQueryObjectResponse(responseValue, def);\n }\n case \"objectSet\":\n {\n const def = definitions.get(responseDataType.objectSet);\n if (!def) {\n throw new Error(`Missing definition for ${responseDataType.objectSet}`);\n }\n if (typeof responseValue === \"string\") {\n return createObjectSet(def, client, {\n type: \"intersect\",\n objectSets: [{\n type: \"base\",\n objectType: responseDataType.objectSet\n }, {\n type: \"reference\",\n reference: responseValue\n }]\n });\n }\n return createObjectSet(def, client, responseValue);\n }\n case \"struct\":\n {\n // figure out what keys need to be fixed up\n for (const [key, subtype] of Object.entries(responseDataType.struct)) {\n if (requiresConversion(subtype)) {\n responseValue[key] = await remapQueryResponse(responseValue[key], subtype, client, definitions);\n }\n }\n return responseValue;\n }\n case \"twoDimensionalAggregation\":\n {\n const result = [];\n for (const {\n key,\n value\n } of responseValue.groups) {\n result.push({\n key,\n value\n });\n }\n return result;\n }\n case \"threeDimensionalAggregation\":\n {\n const result = [];\n for (const {\n key,\n groups\n } of responseValue.groups) {\n const subResult = [];\n for (const {\n key: subKey,\n value\n } of groups) {\n subResult.push({\n key: subKey,\n value\n });\n }\n result.push({\n key,\n groups: subResult\n });\n }\n return result;\n }\n }\n return responseValue;\n}\nasync function getRequiredDefinitions(dataType, client) {\n const result = new Map();\n switch (dataType.type) {\n case \"objectSet\":\n {\n const objectDef = await client.ontologyProvider.getObjectDefinition(dataType.objectSet);\n result.set(dataType.objectSet, objectDef);\n break;\n }\n case \"object\":\n {\n const objectDef = await client.ontologyProvider.getObjectDefinition(dataType.object);\n result.set(dataType.object, objectDef);\n break;\n }\n case \"set\":\n {\n return getRequiredDefinitions(dataType.set, client);\n }\n case \"struct\":\n {\n for (const value of Object.values(dataType.struct)) {\n for (const [type, objectDef] of await getRequiredDefinitions(value, client)) {\n result.set(type, objectDef);\n }\n }\n break;\n }\n case \"attachment\":\n case \"boolean\":\n case \"date\":\n case \"double\":\n case \"float\":\n case \"integer\":\n case \"long\":\n case \"object\":\n case \"string\":\n case \"threeDimensionalAggregation\":\n case \"timestamp\":\n case \"twoDimensionalAggregation\":\n case \"union\":\n break;\n }\n return result;\n}\nfunction requiresConversion(dataType) {\n switch (dataType.type) {\n case \"boolean\":\n case \"date\":\n case \"double\":\n case \"float\":\n case \"integer\":\n case \"long\":\n case \"object\": // JSON encoded primary key\n case \"string\":\n case \"timestamp\":\n return false;\n case \"union\":\n return true;\n case \"struct\":\n return Object.values(dataType.struct).some(requiresConversion);\n case \"set\":\n return requiresConversion(dataType.set);\n case \"attachment\":\n case \"objectSet\":\n case \"twoDimensionalAggregation\":\n case \"threeDimensionalAggregation\":\n return true;\n default:\n return false;\n }\n}\nexport function createQueryObjectResponse(primaryKey, objectDef) {\n return {\n $apiName: objectDef.apiName,\n $title: undefined,\n $objectType: objectDef.apiName,\n $primaryKey: primaryKey\n };\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { __EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks, __EXPERIMENTAL__NOT_SUPPORTED_YET__preexistingObjectSet } from \"@osdk/client.api/unstable\";\nimport { symbolClientContext } from \"@osdk/shared.client\";\nimport { createBulkLinksAsyncIterFactory } from \"./__unstable/createBulkLinksAsyncIterFactory.js\";\nimport { applyAction } from \"./actions/applyAction.js\";\nimport { createMinimalClient } from \"./createMinimalClient.js\";\nimport { fetchMetadataInternal } from \"./fetchMetadata.js\";\nimport { createObjectSet } from \"./objectSet/createObjectSet.js\";\nimport { applyQuery } from \"./queries/applyQuery.js\";\nclass ActionInvoker {\n constructor(clientCtx, actionDef) {\n // We type the property as a generic function as binding `applyAction`\n // doesn't return a type thats all that useful anyway\n // The implements covers us for the most part here as this exact type doesn't\n // escape this file\n this.applyAction = applyAction.bind(undefined, clientCtx, actionDef);\n this.batchApplyAction = applyAction.bind(undefined, clientCtx, actionDef);\n }\n}\nclass QueryInvoker {\n constructor(clientCtx, queryDef) {\n this.executeFunction = applyQuery.bind(undefined, clientCtx, queryDef);\n }\n}\n\n/** @internal */\nexport function createClientInternal(objectSetFactory,\n// first so i can bind\nbaseUrl, ontologyRid, tokenProvider, options = undefined, fetchFn = fetch) {\n const clientCtx = createMinimalClient({\n ontologyRid\n }, baseUrl, tokenProvider, options, fetchFn, objectSetFactory);\n function clientFn(o) {\n if (o.type === \"object\" || o.type === \"interface\") {\n return objectSetFactory(o, clientCtx);\n } else if (o.type === \"action\") {\n return new ActionInvoker(clientCtx, o); // then as any for dealing with the conditional return value\n } else if (o.type === \"query\") {\n return new QueryInvoker(clientCtx, o);\n } else {\n throw new Error(\"not implemented\");\n }\n }\n const fetchMetadata = fetchMetadataInternal.bind(undefined, clientCtx);\n const client = Object.defineProperties(clientFn, {\n [symbolClientContext]: {\n value: clientCtx\n },\n [__EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks]: {\n get: () => createBulkLinksAsyncIterFactory(clientCtx)\n },\n [__EXPERIMENTAL__NOT_SUPPORTED_YET__preexistingObjectSet]: {\n get: () => (definition, rid) => {\n return createObjectSet(definition, client[symbolClientContext], {\n type: \"intersect\",\n objectSets: [{\n type: \"base\",\n objectType: definition.apiName\n }, {\n type: \"reference\",\n reference: rid\n }]\n });\n }\n },\n fetchMetadata: {\n value: fetchMetadata\n }\n });\n return client;\n}\nexport const createClient = createClientInternal.bind(undefined, createObjectSet);","/*\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 { createSharedClientContext } from \"@osdk/shared.client.impl\";\nimport { USER_AGENT } from \"./util/UserAgent.js\";\n/**\n * Creates a client that can only be used with Platform APIs.\n *\n * If you already have an OSDK Client (from `createClient`), you do not need to\n * create one of these - those clients can be used with Platform APIs as well.\n *\n * @param baseUrl\n * @param tokenProvider\n * @param options Currently unused, reserved for future use.\n * @param fetchFn\n * @returns\n */\nexport function createPlatformClient(baseUrl, tokenProvider, options = undefined, fetchFn = fetch) {\n return createSharedClientContext(baseUrl, tokenProvider, USER_AGENT, fetchFn);\n}"]}
@@ -1,11 +1,11 @@
1
- import type { InterfaceDefinition } from "@osdk/api";
1
+ import type { InterfaceMetadata } from "@osdk/api";
2
2
  import type { Osdk } from "@osdk/client.api";
3
3
  import type { FetchedObjectTypeDefinition } from "../../ontology/OntologyProvider.js";
4
4
  import type { InterfaceDefRef, UnderlyingOsdkObject } from "./InternalSymbols.js";
5
5
  import type { ObjectHolder } from "./ObjectHolder.js";
6
6
  export interface InterfaceHolderOwnProps<Q extends FetchedObjectTypeDefinition<any, any>> {
7
7
  [UnderlyingOsdkObject]: Osdk<Q> & ObjectHolder<Q>;
8
- [InterfaceDefRef]: InterfaceDefinition<any>;
8
+ [InterfaceDefRef]: InterfaceMetadata<any>;
9
9
  }
10
10
  export interface InterfaceHolder<Q extends FetchedObjectTypeDefinition<any, any>> extends InterfaceHolderOwnProps<Q> {
11
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"InterfaceHolder.d.ts","sourceRoot":"","sources":["../../../../src/object/convertWireToOsdkObjects/InterfaceHolder.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,WAAW,uBAAuB,CACtC,CAAC,SAAS,2BAA2B,CAAC,GAAG,EAAE,GAAG,CAAC;IAE/C,CAAC,oBAAoB,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC;IAClD,CAAC,eAAe,CAAC,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC;CAC7C;AAED,MAAM,WAAW,eAAe,CAC9B,CAAC,SAAS,2BAA2B,CAAC,GAAG,EAAE,GAAG,CAAC,CAC/C,SAAQ,uBAAuB,CAAC,CAAC,CAAC;CACnC"}
1
+ {"version":3,"file":"InterfaceHolder.d.ts","sourceRoot":"","sources":["../../../../src/object/convertWireToOsdkObjects/InterfaceHolder.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,WAAW,uBAAuB,CACtC,CAAC,SAAS,2BAA2B,CAAC,GAAG,EAAE,GAAG,CAAC;IAE/C,CAAC,oBAAoB,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC;IAClD,CAAC,eAAe,CAAC,EAAE,iBAAiB,CAAC,GAAG,CAAC,CAAC;CAC3C;AAED,MAAM,WAAW,eAAe,CAC9B,CAAC,SAAS,2BAA2B,CAAC,GAAG,EAAE,GAAG,CAAC,CAC/C,SAAQ,uBAAuB,CAAC,CAAC,CAAC;CACnC"}
@@ -1 +1 @@
1
- {"version":3,"file":"fetchPage.d.ts","sourceRoot":"","sources":["../../../src/object/fetchPage.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,mBAAmB,EAGnB,2BAA2B,EAE5B,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EACV,OAAO,EAOR,MAAM,kBAAkB,CAAC;AAgB1B,wBAAgB,OAAO,CACrB,CAAC,SAAS,2BAA2B,EACrC,CAAC,SAAS,MAAM,mBAAmB,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,MAAM,EAE7D,IAAI,EAAE,CAAC,EACP,GAAG,UAAU,EAAE,CAAC,EAAE,GACjB,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAEf"}
1
+ {"version":3,"file":"fetchPage.d.ts","sourceRoot":"","sources":["../../../src/object/fetchPage.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,mBAAmB,EAEnB,2BAA2B,EAG5B,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EACV,OAAO,EAOR,MAAM,kBAAkB,CAAC;AAgB1B,wBAAgB,OAAO,CACrB,CAAC,SAAS,2BAA2B,EACrC,CAAC,SAAS,MAAM,mBAAmB,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,MAAM,EAE7D,IAAI,EAAE,CAAC,EACP,GAAG,UAAU,EAAE,CAAC,EAAE,GACjB,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAEf"}
@@ -1,13 +1,12 @@
1
1
  import type { Osdk } from "@osdk/client.api";
2
2
  import { Employee } from "@osdk/client.test.ontology";
3
- import type { UnstableClient } from "../__unstable/UnstableClient.js";
4
3
  import type { Client } from "../Client.js";
5
4
  export declare function shouldError(client: Client): Promise<Osdk<Employee>>;
6
5
  export declare function shouldError2(client: Client): Promise<Employee.OsdkObject>;
7
6
  export declare function shouldCompile_client_fetchOne_old_select(client: Client): Promise<Osdk<Employee, "employeeId">>;
8
- export declare function shouldCompile_unstableClient_fetchOne_old_select(client: UnstableClient): Promise<Osdk<Employee, "employeeId">>;
7
+ export declare function shouldCompile_unstableClient_fetchOne_old_select(client: Client): Promise<Osdk<Employee, "employeeId">>;
9
8
  export declare function shouldCompile_client_fetchOne_new_select(client: Client): Promise<Employee.OsdkObject<never, "employeeId">>;
10
- export declare function shouldCompile_unstableClient_fetchOne_new_select(client: UnstableClient): Promise<Osdk<Employee, "employeeId">>;
9
+ export declare function shouldCompile_unstableClient_fetchOne_new_select(client: Client): Promise<Osdk<Employee, "employeeId">>;
11
10
  export declare function shouldCompile_client_fetchOne_old_noArgs(client: Client): Promise<Osdk<Employee>>;
12
- export declare function shouldCompile_unstableClient_fetchOne_noArgs(client: UnstableClient): Promise<Osdk<Employee>>;
11
+ export declare function shouldCompile_unstableClient_fetchOne_noArgs(client: Client): Promise<Osdk<Employee>>;
13
12
  //# sourceMappingURL=object.test.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"object.test.d.ts","sourceRoot":"","sources":["../../../src/object/object.test.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAA0B,QAAQ,EAAE,MAAM,4BAA4B,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"file":"ObjectSetListenerWebsocket.d.ts","sourceRoot":"","sources":["../../../src/objectSet/ObjectSetListenerWebsocket.ts"],"names":[],"mappings":"AAwqBA,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnD,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACpD,CAAC"}
@@ -1,11 +1,10 @@
1
- import type { InterfaceDefinition, ObjectTypeDefinition, QueryDefinition } from "@osdk/api";
1
+ import type { ActionMetadata, InterfaceMetadata, ObjectMetadata, QueryMetadata } from "@osdk/api";
2
2
  import type { MinimalClient } from "../MinimalClientContext.js";
3
3
  export declare const InterfaceDefinitions: unique symbol;
4
- export interface FetchedObjectTypeDefinition<K extends string, N = unknown> extends ObjectTypeDefinition<K, N> {
5
- rid: string;
4
+ export interface FetchedObjectTypeDefinition<K extends string, N = unknown> extends ObjectMetadata<K, N> {
6
5
  [InterfaceDefinitions]: {
7
6
  [key: string]: {
8
- def: InterfaceDefinition<any>;
7
+ def: InterfaceMetadata<any>;
9
8
  };
10
9
  };
11
10
  }
@@ -25,8 +24,9 @@ export interface OntologyProvider {
25
24
  * @param apiName
26
25
  * @returns
27
26
  */
28
- getInterfaceDefinition: (apiName: string) => Promise<InterfaceDefinition<any, any>>;
29
- getQueryDefinition: (apiName: string) => Promise<QueryDefinition<any, any>>;
27
+ getInterfaceDefinition: (apiName: string) => Promise<InterfaceMetadata<any, any>>;
28
+ getQueryDefinition: (apiName: string) => Promise<QueryMetadata<any, any>>;
29
+ getActionDefinition: (apiName: string) => Promise<ActionMetadata<any, any>>;
30
30
  }
31
31
  export type OntologyProviderFactory<T extends OntologyProvider = OntologyProvider> = (client: MinimalClient) => T;
32
32
  //# sourceMappingURL=OntologyProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OntologyProvider.d.ts","sourceRoot":"","sources":["../../../src/ontology/OntologyProvider.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACpB,eAAe,EAChB,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,eAAO,MAAM,oBAAoB,eAEhC,CAAC;AAEF,MAAM,WAAW,2BAA2B,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,GAAG,OAAO,CACxE,SAAQ,oBAAoB,CAAC,CAAC,EAAE,CAAC,CAAC;IAElC,GAAG,EAAE,MAAM,CAAC;IAGZ,CAAC,oBAAoB,CAAC,EAAE;QACtB,CAAC,GAAG,EAAE,MAAM,GAAG;YAAE,GAAG,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAA;SAAE,CAAC;KAClD,CAAC;CACH;AAED,MAAM,WAAW,gBAAgB;IAC/B;;;;;;OAMG;IACH,mBAAmB,EAAE,CACnB,OAAO,EAAE,MAAM,KACZ,OAAO,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAC,CAAC;IAElD;;;;;;OAMG;IACH,sBAAsB,EAAE,CACtB,OAAO,EAAE,MAAM,KACZ,OAAO,CAAC,mBAAmB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IAE5C,kBAAkB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,eAAe,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;CAC7E;AAED,MAAM,MAAM,uBAAuB,CACjC,CAAC,SAAS,gBAAgB,GAAG,gBAAgB,IAC3C,CACF,MAAM,EAAE,aAAa,KAClB,CAAC,CAAC"}
1
+ {"version":3,"file":"OntologyProvider.d.ts","sourceRoot":"","sources":["../../../src/ontology/OntologyProvider.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,aAAa,EACd,MAAM,WAA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E,CAClD,IAAI,EAAE,sBAAsB,KACzB,uBAgEJ,CAAC"}
1
+ {"version":3,"file":"StandardOntologyProvider.d.ts","sourceRoot":"","sources":["../../../src/ontology/StandardOntologyProvider.ts"],"names":[],"mappings":"AA4BA,OAAO,EAGL,KAAK,uBAAuB,EAC7B,MAAM,uBAAuB,CAAC;AAE/B,MAAM,WAAW,sBAAsB;CACtC;AAED,eAAO,MAAM,qCAAqC,EAAE,CAClD,IAAI,EAAE,sBAAsB,KACzB,uBA4EJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ActionMetadata } from "@osdk/api";
2
+ import type { MinimalClient } from "../MinimalClientContext.js";
3
+ export declare function loadActionMetadata(client: MinimalClient, actionType: string): Promise<ActionMetadata<any, any>>;
4
+ //# sourceMappingURL=loadActionMetadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadActionMetadata.d.ts","sourceRoot":"","sources":["../../../src/ontology/loadActionMetadata.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAKhD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,aAAa,EACrB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAQnC"}
@@ -1,6 +1,6 @@
1
- import type { ObjectTypeDefinition } from "@osdk/api";
1
+ import type { ObjectMetadata } from "@osdk/api";
2
2
  import type { MinimalClient } from "../MinimalClientContext.js";
3
- export declare function loadFullObjectMetadata(client: MinimalClient, objectType: string): Promise<ObjectTypeDefinition<any, any> & {
3
+ export declare function loadFullObjectMetadata(client: MinimalClient, objectType: string): Promise<ObjectMetadata<any, any> & {
4
4
  rid: string;
5
5
  }>;
6
6
  //# sourceMappingURL=loadFullObjectMetadata.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"loadFullObjectMetadata.d.ts","sourceRoot":"","sources":["../../../src/ontology/loadFullObjectMetadata.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAGtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,aAAa,EACrB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,oBAAoB,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC,CAU3D"}
1
+ {"version":3,"file":"loadFullObjectMetadata.d.ts","sourceRoot":"","sources":["../../../src/ontology/loadFullObjectMetadata.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAGhD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,aAAa,EACrB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC,CAUrD"}
@@ -0,0 +1,4 @@
1
+ import type { InterfaceMetadata } from "@osdk/api";
2
+ import type { MinimalClient } from "../MinimalClientContext.js";
3
+ export declare function loadInterfaceMetadata(client: MinimalClient, objectType: string): Promise<InterfaceMetadata<any, any>>;
4
+ //# sourceMappingURL=loadInterfaceMetadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadInterfaceMetadata.d.ts","sourceRoot":"","sources":["../../../src/ontology/loadInterfaceMetadata.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAGnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,aAAa,EACrB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,iBAAiB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAStC"}
@@ -0,0 +1,4 @@
1
+ import type { QueryMetadata } from "@osdk/api";
2
+ import type { MinimalClient } from "../MinimalClientContext.js";
3
+ export declare function loadQueryMetadata(client: MinimalClient, queryType: string): Promise<QueryMetadata<any, any>>;
4
+ //# sourceMappingURL=loadQueryMetadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadQueryMetadata.d.ts","sourceRoot":"","sources":["../../../src/ontology/loadQueryMetadata.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAG/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,aAAa,EACrB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,aAAa,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAQlC"}
@@ -1,6 +1,2 @@
1
- export { UNSTABLE_createClient as createClient } from "../__unstable/UNSTABLE_createClient.js";
2
- export type { UnstableClient as Client } from "../__unstable/UnstableClient.js";
3
1
  export { augment } from "../object/fetchPage.js";
4
- export type { UNSTABLE_ObjectSet as ObjectSet } from "../objectSet/createUnstableObjectSet.js";
5
- export type { ObjectSetListener } from "../objectSet/ObjectSetListener.js";
6
2
  //# sourceMappingURL=unstable-do-not-use.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"unstable-do-not-use.d.ts","sourceRoot":"","sources":["../../../src/public/unstable-do-not-use.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,qBAAqB,IAAI,YAAY,EAAE,MAAM,wCAAwC,CAAC;AAC/F,YAAY,EAAE,cAAc,IAAI,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,YAAY,EAAE,kBAAkB,IAAI,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAC/F,YAAY,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC"}
1
+ {"version":3,"file":"unstable-do-not-use.d.ts","sourceRoot":"","sources":["../../../src/public/unstable-do-not-use.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC"}