@osdk/faux 0.1.0-beta.2 → 0.1.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @osdk/shared.test
2
2
 
3
+ ## 0.1.0-beta.3
4
+
5
+ ### Minor Changes
6
+
7
+ - f8db93d: improve media upload (beta)
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [f8db93d]
12
+ - @osdk/generator-converters@2.3.0-beta.7
13
+ - @osdk/api@2.3.0-beta.7
14
+
3
15
  ## 0.1.0-beta.2
4
16
 
5
17
  ### Minor Changes
@@ -36,7 +36,8 @@ export function LinkTypeNotFound(objectType, linkType) {
36
36
  errorInstanceId,
37
37
  parameters: {
38
38
  objectType,
39
- linkType
39
+ linkType,
40
+ linkTypeId: undefined
40
41
  }
41
42
  };
42
43
  }
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","names":["errorInstanceId","objectTypeRid","ObjectTypeDoesNotExistError","objectType","errorCode","errorName","parameters","LinkTypeNotFound","linkType","OntologyNotFoundError","ontology","ontologyRid","apiName","ObjectNotFoundError","primaryKey","QueryNotFoundError","queryApiName","query","ActionNotFoundError","actionRid","InvalidRequest","ApplyActionFailedError","ExecuteQueryFailedError","functionRid","functionVersion","message","InvalidContentTypeError","AttachmentSizeExceededLimitError","fileSizeBytes","fileLimitBytes","AttachmentNotFoundError","attachmentRid"],"sources":["errors.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n//\n\nimport type {\n ActionNotFound,\n ApplyActionFailed,\n AttachmentNotFound,\n AttachmentSizeExceededLimit,\n InvalidContentType,\n LinkTypeNotFound as OGLinkTypeNotFound,\n ObjectNotFound,\n ObjectTypeNotFound,\n OntologyNotFound,\n QueryEncounteredUserFacingError,\n QueryNotFound,\n} from \"@osdk/internal.foundry.ontologies\";\nimport type { BaseAPIError } from \"./BaseError.js\";\n\nconst errorInstanceId = \"errorInstanceId\";\nconst objectTypeRid = \"ri.foundry.main.objectType.1\";\n\nexport function ObjectTypeDoesNotExistError(\n objectType: string,\n): ObjectTypeNotFound {\n return {\n errorCode: \"NOT_FOUND\",\n errorName: \"ObjectTypeNotFound\",\n errorInstanceId,\n parameters: {\n objectType,\n objectTypeRid,\n },\n };\n}\n\nexport function LinkTypeNotFound(\n objectType: string,\n linkType: string,\n): OGLinkTypeNotFound {\n return {\n errorCode: \"NOT_FOUND\",\n errorName: \"LinkTypeNotFound\",\n errorInstanceId,\n parameters: {\n objectType,\n linkType,\n },\n };\n}\n\nexport function OntologyNotFoundError(\n ontology: string,\n): OntologyNotFound {\n return {\n errorCode: \"NOT_FOUND\",\n errorName: \"OntologyNotFound\",\n errorInstanceId,\n parameters: {\n ontologyRid: ontology,\n apiName: ontology,\n },\n };\n}\n\nexport function ObjectNotFoundError(\n objectType: string,\n primaryKey: string,\n): ObjectNotFound {\n return {\n errorCode: \"NOT_FOUND\",\n errorName: \"ObjectNotFound\",\n errorInstanceId,\n parameters: {\n objectType,\n primaryKey,\n },\n };\n}\n\nexport function QueryNotFoundError(queryApiName: string): QueryNotFound {\n return {\n errorCode: \"NOT_FOUND\",\n errorName: \"QueryNotFound\",\n errorInstanceId,\n parameters: {\n query: queryApiName,\n },\n };\n}\n\nexport function ActionNotFoundError(): ActionNotFound {\n return {\n errorCode: \"NOT_FOUND\",\n errorName: \"ActionNotFound\",\n errorInstanceId,\n parameters: {\n actionRid: \"\",\n },\n };\n}\n\nexport function InvalidRequest(errorName: string): BaseAPIError {\n return {\n errorCode: \"INVALID_REQUEST\",\n errorName,\n errorInstanceId,\n parameters: {},\n };\n}\n\nexport const ApplyActionFailedError: ApplyActionFailed = {\n errorCode: \"INVALID_ARGUMENT\",\n errorName: \"ApplyActionFailed\",\n errorInstanceId,\n parameters: {},\n};\n\nexport const ExecuteQueryFailedError: QueryEncounteredUserFacingError = {\n errorCode: \"CONFLICT\",\n errorName: \"QueryEncounteredUserFacingError\",\n errorInstanceId,\n parameters: {\n functionRid:\n \"ri.function-registry.main.function.9b55870a-63c7-4d48-8f06-9627c0805968\",\n functionVersion: \"0.11.0\",\n message: \"test failed\",\n },\n};\n\nexport const InvalidContentTypeError: InvalidContentType = {\n errorCode: \"INVALID_ARGUMENT\",\n errorName: \"InvalidContentType\",\n errorInstanceId,\n parameters: {},\n};\n\nexport const AttachmentSizeExceededLimitError: AttachmentSizeExceededLimit = {\n errorCode: \"INVALID_ARGUMENT\",\n errorName: \"AttachmentSizeExceededLimit\",\n errorInstanceId,\n parameters: {\n fileSizeBytes: \"230000\",\n fileLimitBytes: \"200000\",\n },\n};\n\nexport const AttachmentNotFoundError: AttachmentNotFound = {\n errorCode: \"NOT_FOUND\",\n errorName: \"AttachmentNotFound\",\n errorInstanceId,\n parameters: {\n attachmentRid:\n \"ri.attachments.main.attachment.86016861-707f-4292-b258-6a7108915a80\",\n },\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAiBA,MAAMA,eAAe,GAAG,iBAAiB;AACzC,MAAMC,aAAa,GAAG,8BAA8B;AAEpD,OAAO,SAASC,2BAA2BA,CACzCC,UAAkB,EACE;EACpB,OAAO;IACLC,SAAS,EAAE,WAAW;IACtBC,SAAS,EAAE,oBAAoB;IAC/BL,eAAe;IACfM,UAAU,EAAE;MACVH,UAAU;MACVF;IACF;EACF,CAAC;AACH;AAEA,OAAO,SAASM,gBAAgBA,CAC9BJ,UAA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,uBAAwD,GAAG;EACtElB,SAAS,EAAE,UAAU;EACrBC,SAAS,EAAE,iCAAiC;EAC5CL,eAAe;EACfM,UAAU,EAAE;IACViB,WAAW,EACT,yEAAyE;IAC3EC,eAAe,EAAE,QAAQ;IACzBC,OAAO,EAAE;EACX;AACF,CAAC;AAED,OAAO,MAAMC,uBAA2C,GAAG;EACzDtB,SAAS,EAAE,kBAAkB;EAC7BC,SAAS,EAAE,oBAAoB;EAC/BL,eAAe;EACfM,UAAU,EAAE,CAAC;AACf,CAAC;AAED,OAAO,MAAMqB,gCAA6D,GAAG;EAC3EvB,SAAS,EAAE,kBAAkB;EAC7BC,SAAS,EAAE,6BAA6B;EACxCL,eAAe;EACfM,UAAU,EAAE;IACVsB,aAAa,EAAE,QAAQ;IACvBC,cAAc,EAAE;EAClB;AACF,CAAC;AAED,OAAO,MAAMC,uBAA2C,GAAG;EACzD1B,SAAS,EAAE,WAAW;EACtBC,SAAS,EAAE,oBAAoB;EAC/BL,eAAe;EACfM,UAAU,EAAE;IACVyB,aAAa,EACX;EACJ;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"errors.js","names":["errorInstanceId","objectTypeRid","ObjectTypeDoesNotExistError","objectType","errorCode","errorName","parameters","LinkTypeNotFound","linkType","linkTypeId","undefined","OntologyNotFoundError","ontology","ontologyRid","apiName","ObjectNotFoundError","primaryKey","QueryNotFoundError","queryApiName","query","ActionNotFoundError","actionRid","InvalidRequest","ApplyActionFailedError","ExecuteQueryFailedError","functionRid","functionVersion","message","InvalidContentTypeError","AttachmentSizeExceededLimitError","fileSizeBytes","fileLimitBytes","AttachmentNotFoundError","attachmentRid"],"sources":["errors.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n//\n\nimport type {\n ActionNotFound,\n ApplyActionFailed,\n AttachmentNotFound,\n AttachmentSizeExceededLimit,\n InvalidContentType,\n LinkTypeNotFound as OGLinkTypeNotFound,\n ObjectNotFound,\n ObjectTypeNotFound,\n OntologyNotFound,\n QueryEncounteredUserFacingError,\n QueryNotFound,\n} from \"@osdk/internal.foundry.ontologies\";\nimport type { BaseAPIError } from \"./BaseError.js\";\n\nconst errorInstanceId = \"errorInstanceId\";\nconst objectTypeRid = \"ri.foundry.main.objectType.1\";\n\nexport function ObjectTypeDoesNotExistError(\n objectType: string,\n): ObjectTypeNotFound {\n return {\n errorCode: \"NOT_FOUND\",\n errorName: \"ObjectTypeNotFound\",\n errorInstanceId,\n parameters: {\n objectType,\n objectTypeRid,\n },\n };\n}\n\nexport function LinkTypeNotFound(\n objectType: string,\n linkType: string,\n): OGLinkTypeNotFound {\n return {\n errorCode: \"NOT_FOUND\",\n errorName: \"LinkTypeNotFound\",\n errorInstanceId,\n parameters: {\n objectType,\n linkType,\n linkTypeId: undefined,\n },\n };\n}\n\nexport function OntologyNotFoundError(\n ontology: string,\n): OntologyNotFound {\n return {\n errorCode: \"NOT_FOUND\",\n errorName: \"OntologyNotFound\",\n errorInstanceId,\n parameters: {\n ontologyRid: ontology,\n apiName: ontology,\n },\n };\n}\n\nexport function ObjectNotFoundError(\n objectType: string,\n primaryKey: string,\n): ObjectNotFound {\n return {\n errorCode: \"NOT_FOUND\",\n errorName: \"ObjectNotFound\",\n errorInstanceId,\n parameters: {\n objectType,\n primaryKey,\n },\n };\n}\n\nexport function QueryNotFoundError(queryApiName: string): QueryNotFound {\n return {\n errorCode: \"NOT_FOUND\",\n errorName: \"QueryNotFound\",\n errorInstanceId,\n parameters: {\n query: queryApiName,\n },\n };\n}\n\nexport function ActionNotFoundError(): ActionNotFound {\n return {\n errorCode: \"NOT_FOUND\",\n errorName: \"ActionNotFound\",\n errorInstanceId,\n parameters: {\n actionRid: \"\",\n },\n };\n}\n\nexport function InvalidRequest(errorName: string): BaseAPIError {\n return {\n errorCode: \"INVALID_REQUEST\",\n errorName,\n errorInstanceId,\n parameters: {},\n };\n}\n\nexport const ApplyActionFailedError: ApplyActionFailed = {\n errorCode: \"INVALID_ARGUMENT\",\n errorName: \"ApplyActionFailed\",\n errorInstanceId,\n parameters: {},\n};\n\nexport const ExecuteQueryFailedError: QueryEncounteredUserFacingError = {\n errorCode: \"CONFLICT\",\n errorName: \"QueryEncounteredUserFacingError\",\n errorInstanceId,\n parameters: {\n functionRid:\n \"ri.function-registry.main.function.9b55870a-63c7-4d48-8f06-9627c0805968\",\n functionVersion: \"0.11.0\",\n message: \"test failed\",\n },\n};\n\nexport const InvalidContentTypeError: InvalidContentType = {\n errorCode: \"INVALID_ARGUMENT\",\n errorName: \"InvalidContentType\",\n errorInstanceId,\n parameters: {},\n};\n\nexport const AttachmentSizeExceededLimitError: AttachmentSizeExceededLimit = {\n errorCode: \"INVALID_ARGUMENT\",\n errorName: \"AttachmentSizeExceededLimit\",\n errorInstanceId,\n parameters: {\n fileSizeBytes: \"230000\",\n fileLimitBytes: \"200000\",\n },\n};\n\nexport const AttachmentNotFoundError: AttachmentNotFound = {\n errorCode: \"NOT_FOUND\",\n errorName: \"AttachmentNotFound\",\n errorInstanceId,\n parameters: {\n attachmentRid:\n \"ri.attachments.main.attachment.86016861-707f-4292-b258-6a7108915a80\",\n },\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAiBA,MAAMA,eAAe,GAAG,iBAAiB;AACzC,MAAMC,aAAa,GAAG,8BAA8B;AAEpD,OAAO,SAASC,2BAA2BA,CACzCC,UAAkB,EACE;EACpB,OAAO;IACLC,SAAS,EAAE,WAAW;IACtBC,SAAS,EA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,OAAO,MAAMiB,sBAAyC,GAAG;EACvDnB,SAAS,EAAE,kBAAkB;EAC7BC,SAAS,EAAE,mBAAmB;EAC9BL,eAAe;EACfM,UAAU,EAAE,CAAC;AACf,CAAC;AAED,OAAO,MAAMkB,uBAAwD,GAAG;EACtEpB,SAAS,EAAE,UAAU;EACrBC,SAAS,EAAE,iCAAiC;EAC5CL,eAAe;EACfM,UAAU,EAAE;IACVmB,WAAW,EACT,yEAAyE;IAC3EC,eAAe,EAAE,QAAQ;IACzBC,OAAO,EAAE;EACX;AACF,CAAC;AAED,OAAO,MAAMC,uBAA2C,GAAG;EACzDxB,SAAS,EAAE,kBAAkB;EAC7BC,SAAS,EAAE,oBAAoB;EAC/BL,eAAe;EACfM,UAAU,EAAE,CAAC;AACf,CAAC;AAED,OAAO,MAAMuB,gCAA6D,GAAG;EAC3EzB,SAAS,EAAE,kBAAkB;EAC7BC,SAAS,EAAE,6BAA6B;EACxCL,eAAe;EACfM,UAAU,EAAE;IACVwB,aAAa,EAAE,QAAQ;IACvBC,cAAc,EAAE;EAClB;AACF,CAAC;AAED,OAAO,MAAMC,uBAA2C,GAAG;EACzD5B,SAAS,EAAE,WAAW;EACtBC,SAAS,EAAE,oBAAoB;EAC/BL,eAAe;EACfM,UAAU,EAAE;IACV2B,aAAa,EACX;EACJ;AACF,CAAC","ignoreList":[]}
@@ -19,4 +19,5 @@ import { handleOpenApiCall } from "../../handlers/util/handleOpenApiCall.js";
19
19
  export const getMediaMetadata = handleOpenApiCall(MediaReferenceProperties.getMediaMetadata, ["ontologyApiName", "objectType", "primaryKey", "propertyName"]);
20
20
  export const getMediaContent = handleOpenApiCall(MediaReferenceProperties.getMediaContent, ["ontologyApiName", "objectType", "primaryKey", "propertyName"]);
21
21
  export const upload = handleOpenApiCall(MediaReferenceProperties.upload, ["ontologyApiName", "objectType", "propertyName"]);
22
+ export const uploadMedia = handleOpenApiCall(MediaReferenceProperties.uploadMedia, ["ontologyApiName", "actionTypeApiName"]);
22
23
  //# sourceMappingURL=MediaReferenceProperties.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MediaReferenceProperties.js","names":["MediaReferenceProperties","handleOpenApiCall","getMediaMetadata","getMediaContent","upload"],"sources":["MediaReferenceProperties.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { MediaReferenceProperties } from \"@osdk/foundry.ontologies\";\nimport type { CallFactory } from \"../../handlers/util/handleOpenApiCall.js\";\nimport { handleOpenApiCall } from \"../../handlers/util/handleOpenApiCall.js\";\n\nexport const getMediaMetadata: CallFactory<\n \"ontologyApiName\" | \"objectType\" | \"primaryKey\" | \"propertyName\",\n typeof MediaReferenceProperties.getMediaMetadata\n> = handleOpenApiCall(\n MediaReferenceProperties.getMediaMetadata,\n [\"ontologyApiName\", \"objectType\", \"primaryKey\", \"propertyName\"],\n);\n\nexport const getMediaContent: CallFactory<\n \"ontologyApiName\" | \"objectType\" | \"primaryKey\" | \"propertyName\",\n typeof MediaReferenceProperties.getMediaContent\n> = handleOpenApiCall(\n MediaReferenceProperties.getMediaContent,\n [\"ontologyApiName\", \"objectType\", \"primaryKey\", \"propertyName\"],\n);\n\nexport const upload: CallFactory<\n \"ontologyApiName\" | \"objectType\" | \"propertyName\",\n typeof MediaReferenceProperties.upload\n> = handleOpenApiCall(\n MediaReferenceProperties.upload,\n [\"ontologyApiName\", \"objectType\", \"propertyName\"],\n);\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,wBAAwB,QAAQ,0BAA0B;AAEnE,SAASC,iBAAiB,QAAQ,0CAA0C;AAE5E,OAAO,MAAMC,gBAGZ,GAAGD,iBAAiB,CACnBD,wBAAwB,CAACE,gBAAgB,EACzC,CAAC,iBAAiB,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,CAChE,CAAC;AAED,OAAO,MAAMC,eAGZ,GAAGF,iBAAiB,CACnBD,wBAAwB,CAACG,eAAe,EACxC,CAAC,iBAAiB,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,CAChE,CAAC;AAED,OAAO,MAAMC,MAGZ,GAAGH,iBAAiB,CACnBD,wBAAwB,CAACI,MAAM,EAC/B,CAAC,iBAAiB,EAAE,YAAY,EAAE,cAAc,CAClD,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"MediaReferenceProperties.js","names":["MediaReferenceProperties","handleOpenApiCall","getMediaMetadata","getMediaContent","upload","uploadMedia"],"sources":["MediaReferenceProperties.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { MediaReferenceProperties } from \"@osdk/foundry.ontologies\";\nimport type { CallFactory } from \"../../handlers/util/handleOpenApiCall.js\";\nimport { handleOpenApiCall } from \"../../handlers/util/handleOpenApiCall.js\";\n\nexport const getMediaMetadata: CallFactory<\n \"ontologyApiName\" | \"objectType\" | \"primaryKey\" | \"propertyName\",\n typeof MediaReferenceProperties.getMediaMetadata\n> = handleOpenApiCall(\n MediaReferenceProperties.getMediaMetadata,\n [\"ontologyApiName\", \"objectType\", \"primaryKey\", \"propertyName\"],\n);\n\nexport const getMediaContent: CallFactory<\n \"ontologyApiName\" | \"objectType\" | \"primaryKey\" | \"propertyName\",\n typeof MediaReferenceProperties.getMediaContent\n> = handleOpenApiCall(\n MediaReferenceProperties.getMediaContent,\n [\"ontologyApiName\", \"objectType\", \"primaryKey\", \"propertyName\"],\n);\n\nexport const upload: CallFactory<\n \"ontologyApiName\" | \"objectType\" | \"propertyName\",\n typeof MediaReferenceProperties.upload\n> = handleOpenApiCall(\n MediaReferenceProperties.upload,\n [\"ontologyApiName\", \"objectType\", \"propertyName\"],\n);\n\nexport const uploadMedia: CallFactory<\n \"ontologyApiName\" | \"actionTypeApiName\",\n typeof MediaReferenceProperties.uploadMedia\n> = handleOpenApiCall(\n MediaReferenceProperties.uploadMedia,\n [\"ontologyApiName\", \"actionTypeApiName\"],\n);\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,wBAAwB,QAAQ,0BAA0B;AAEnE,SAASC,iBAAiB,QAAQ,0CAA0C;AAE5E,OAAO,MAAMC,gBAGZ,GAAGD,iBAAiB,CACnBD,wBAAwB,CAACE,gBAAgB,EACzC,CAAC,iBAAiB,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,CAChE,CAAC;AAED,OAAO,MAAMC,eAGZ,GAAGF,iBAAiB,CACnBD,wBAAwB,CAACG,eAAe,EACxC,CAAC,iBAAiB,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,CAChE,CAAC;AAED,OAAO,MAAMC,MAGZ,GAAGH,iBAAiB,CACnBD,wBAAwB,CAACI,MAAM,EAC/B,CAAC,iBAAiB,EAAE,YAAY,EAAE,cAAc,CAClD,CAAC;AAED,OAAO,MAAMC,WAGZ,GAAGJ,iBAAiB,CACnBD,wBAAwB,CAACK,WAAW,EACpC,CAAC,iBAAiB,EAAE,mBAAmB,CACzC,CAAC","ignoreList":[]}
@@ -166,7 +166,8 @@ function LinkTypeNotFound(objectType, linkType) {
166
166
  errorInstanceId,
167
167
  parameters: {
168
168
  objectType,
169
- linkType
169
+ linkType,
170
+ linkTypeId: void 0
170
171
  }
171
172
  };
172
173
  }
@@ -1546,7 +1547,7 @@ __export(Actions_exports, {
1546
1547
  applyBatch: () => applyBatch2
1547
1548
  });
1548
1549
 
1549
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
1550
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.24.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
1550
1551
  var Action_exports = {};
1551
1552
  __export(Action_exports, {
1552
1553
  apply: () => apply,
@@ -1649,7 +1650,7 @@ function parseUrl(baseUrl, endpointPath) {
1649
1650
  return new URL(`api${endpointPath}`, baseUrl);
1650
1651
  }
1651
1652
 
1652
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
1653
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.24.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
1653
1654
  var _apply = [1, "/v2/ontologies/{0}/actions/{1}/apply", 3];
1654
1655
  function apply($ctx, ...args) {
1655
1656
  return foundryPlatformFetch($ctx, _apply, ...args);
@@ -1663,7 +1664,7 @@ function applyBatch($ctx, ...args) {
1663
1664
  return foundryPlatformFetch($ctx, _applyBatch, ...args);
1664
1665
  }
1665
1666
 
1666
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ActionTypeV2.js
1667
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.24.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ActionTypeV2.js
1667
1668
  var ActionTypeV2_exports = {};
1668
1669
  __export(ActionTypeV2_exports, {
1669
1670
  get: () => get,
@@ -1674,16 +1675,16 @@ var _list = [0, "/v2/ontologies/{0}/actionTypes", 2];
1674
1675
  function list($ctx, ...args) {
1675
1676
  return foundryPlatformFetch($ctx, _list, ...args);
1676
1677
  }
1677
- var _get = [0, "/v2/ontologies/{0}/actionTypes/{1}"];
1678
+ var _get = [0, "/v2/ontologies/{0}/actionTypes/{1}", 2];
1678
1679
  function get($ctx, ...args) {
1679
1680
  return foundryPlatformFetch($ctx, _get, ...args);
1680
1681
  }
1681
- var _getByRid = [0, "/v2/ontologies/{0}/actionTypes/byRid/{1}"];
1682
+ var _getByRid = [0, "/v2/ontologies/{0}/actionTypes/byRid/{1}", 2];
1682
1683
  function getByRid($ctx, ...args) {
1683
1684
  return foundryPlatformFetch($ctx, _getByRid, ...args);
1684
1685
  }
1685
1686
 
1686
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Attachment.js
1687
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.24.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Attachment.js
1687
1688
  var Attachment_exports = {};
1688
1689
  __export(Attachment_exports, {
1689
1690
  get: () => get2,
@@ -1708,7 +1709,7 @@ function get2($ctx, ...args) {
1708
1709
  return foundryPlatformFetch($ctx, _get2, ...args);
1709
1710
  }
1710
1711
 
1711
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/AttachmentPropertyV2.js
1712
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.24.0/node_modules/@osdk/foundry.ontologies/build/esm/public/AttachmentPropertyV2.js
1712
1713
  var AttachmentPropertyV2_exports = {};
1713
1714
  __export(AttachmentPropertyV2_exports, {
1714
1715
  getAttachment: () => getAttachment,
@@ -1733,7 +1734,7 @@ function readAttachmentByRid($ctx, ...args) {
1733
1734
  return foundryPlatformFetch($ctx, _readAttachmentByRid, ...args);
1734
1735
  }
1735
1736
 
1736
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/LinkedObjectV2.js
1737
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.24.0/node_modules/@osdk/foundry.ontologies/build/esm/public/LinkedObjectV2.js
1737
1738
  var LinkedObjectV2_exports = {};
1738
1739
  __export(LinkedObjectV2_exports, {
1739
1740
  getLinkedObject: () => getLinkedObject,
@@ -1748,12 +1749,13 @@ function getLinkedObject($ctx, ...args) {
1748
1749
  return foundryPlatformFetch($ctx, _getLinkedObject, ...args);
1749
1750
  }
1750
1751
 
1751
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/MediaReferenceProperty.js
1752
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.24.0/node_modules/@osdk/foundry.ontologies/build/esm/public/MediaReferenceProperty.js
1752
1753
  var MediaReferenceProperty_exports = {};
1753
1754
  __export(MediaReferenceProperty_exports, {
1754
1755
  getMediaContent: () => getMediaContent,
1755
1756
  getMediaMetadata: () => getMediaMetadata,
1756
- upload: () => upload2
1757
+ upload: () => upload2,
1758
+ uploadMedia: () => uploadMedia
1757
1759
  });
1758
1760
  var _getMediaContent = [0, "/v2/ontologies/{0}/objects/{1}/{2}/media/{3}/content", 2, , "*/*"];
1759
1761
  function getMediaContent($ctx, ...args) {
@@ -1767,8 +1769,12 @@ var _upload2 = [1, "/v2/ontologies/{0}/objectTypes/{1}/media/{2}/upload", 3, "*/
1767
1769
  function upload2($ctx, ...args) {
1768
1770
  return foundryPlatformFetch($ctx, _upload2, ...args);
1769
1771
  }
1772
+ var _uploadMedia = [1, "/v2/ontologies/{0}/actions/{1}/media/upload", 3, "*/*"];
1773
+ function uploadMedia($ctx, ...args) {
1774
+ return foundryPlatformFetch($ctx, _uploadMedia, ...args);
1775
+ }
1770
1776
 
1771
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ObjectTypeV2.js
1777
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.24.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ObjectTypeV2.js
1772
1778
  var ObjectTypeV2_exports = {};
1773
1779
  __export(ObjectTypeV2_exports, {
1774
1780
  get: () => get3,
@@ -1781,7 +1787,7 @@ var _list2 = [0, "/v2/ontologies/{0}/objectTypes", 2];
1781
1787
  function list2($ctx, ...args) {
1782
1788
  return foundryPlatformFetch($ctx, _list2, ...args);
1783
1789
  }
1784
- var _get3 = [0, "/v2/ontologies/{0}/objectTypes/{1}"];
1790
+ var _get3 = [0, "/v2/ontologies/{0}/objectTypes/{1}", 2];
1785
1791
  function get3($ctx, ...args) {
1786
1792
  return foundryPlatformFetch($ctx, _get3, ...args);
1787
1793
  }
@@ -1793,12 +1799,12 @@ var _listOutgoingLinkTypes = [0, "/v2/ontologies/{0}/objectTypes/{1}/outgoingLin
1793
1799
  function listOutgoingLinkTypes($ctx, ...args) {
1794
1800
  return foundryPlatformFetch($ctx, _listOutgoingLinkTypes, ...args);
1795
1801
  }
1796
- var _getOutgoingLinkType = [0, "/v2/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes/{2}"];
1802
+ var _getOutgoingLinkType = [0, "/v2/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes/{2}", 2];
1797
1803
  function getOutgoingLinkType($ctx, ...args) {
1798
1804
  return foundryPlatformFetch($ctx, _getOutgoingLinkType, ...args);
1799
1805
  }
1800
1806
 
1801
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyInterface.js
1807
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.24.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyInterface.js
1802
1808
  var OntologyInterface_exports = {};
1803
1809
  __export(OntologyInterface_exports, {
1804
1810
  aggregate: () => aggregate,
@@ -1823,7 +1829,7 @@ function aggregate($ctx, ...args) {
1823
1829
  return foundryPlatformFetch($ctx, _aggregate, ...args);
1824
1830
  }
1825
1831
 
1826
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectSet.js
1832
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.24.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectSet.js
1827
1833
  var OntologyObjectSet_exports = {};
1828
1834
  __export(OntologyObjectSet_exports, {
1829
1835
  aggregate: () => aggregate2,
@@ -1858,7 +1864,7 @@ function aggregate2($ctx, ...args) {
1858
1864
  return foundryPlatformFetch($ctx, _aggregate2, ...args);
1859
1865
  }
1860
1866
 
1861
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectV2.js
1867
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.24.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectV2.js
1862
1868
  var OntologyObjectV2_exports = {};
1863
1869
  __export(OntologyObjectV2_exports, {
1864
1870
  aggregate: () => aggregate3,
@@ -1888,7 +1894,7 @@ function aggregate3($ctx, ...args) {
1888
1894
  return foundryPlatformFetch($ctx, _aggregate3, ...args);
1889
1895
  }
1890
1896
 
1891
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyV2.js
1897
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.24.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyV2.js
1892
1898
  var OntologyV2_exports = {};
1893
1899
  __export(OntologyV2_exports, {
1894
1900
  get: () => get7,
@@ -1904,7 +1910,7 @@ var _get7 = [0, "/v2/ontologies/{0}"];
1904
1910
  function get7($ctx, ...args) {
1905
1911
  return foundryPlatformFetch($ctx, _get7, ...args);
1906
1912
  }
1907
- var _getFullMetadata2 = [0, "/v2/ontologies/{0}/fullMetadata"];
1913
+ var _getFullMetadata2 = [0, "/v2/ontologies/{0}/fullMetadata", 2];
1908
1914
  function getFullMetadata2($ctx, ...args) {
1909
1915
  return foundryPlatformFetch($ctx, _getFullMetadata2, ...args);
1910
1916
  }
@@ -1913,7 +1919,7 @@ function loadMetadata($ctx, ...args) {
1913
1919
  return foundryPlatformFetch($ctx, _loadMetadata, ...args);
1914
1920
  }
1915
1921
 
1916
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Query.js
1922
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.24.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Query.js
1917
1923
  var Query_exports = {};
1918
1924
  __export(Query_exports, {
1919
1925
  execute: () => execute
@@ -1923,7 +1929,7 @@ function execute($ctx, ...args) {
1923
1929
  return foundryPlatformFetch($ctx, _execute, ...args);
1924
1930
  }
1925
1931
 
1926
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/QueryType.js
1932
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.24.0/node_modules/@osdk/foundry.ontologies/build/esm/public/QueryType.js
1927
1933
  var QueryType_exports = {};
1928
1934
  __export(QueryType_exports, {
1929
1935
  get: () => get8,
@@ -1938,7 +1944,7 @@ function get8($ctx, ...args) {
1938
1944
  return foundryPlatformFetch($ctx, _get8, ...args);
1939
1945
  }
1940
1946
 
1941
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesPropertyV2.js
1947
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.24.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesPropertyV2.js
1942
1948
  var TimeSeriesPropertyV2_exports = {};
1943
1949
  __export(TimeSeriesPropertyV2_exports, {
1944
1950
  getFirstPoint: () => getFirstPoint,
@@ -1958,7 +1964,7 @@ function streamPoints($ctx, ...args) {
1958
1964
  return foundryPlatformFetch($ctx, _streamPoints, ...args);
1959
1965
  }
1960
1966
 
1961
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.20.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesValueBankProperty.js
1967
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.24.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesValueBankProperty.js
1962
1968
  var TimeSeriesValueBankProperty_exports = {};
1963
1969
  __export(TimeSeriesValueBankProperty_exports, {
1964
1970
  getLatestValue: () => getLatestValue,
@@ -2020,11 +2026,13 @@ var MediaReferenceProperties_exports = {};
2020
2026
  __export(MediaReferenceProperties_exports, {
2021
2027
  getMediaContent: () => getMediaContent2,
2022
2028
  getMediaMetadata: () => getMediaMetadata2,
2023
- upload: () => upload4
2029
+ upload: () => upload4,
2030
+ uploadMedia: () => uploadMedia2
2024
2031
  });
2025
2032
  var getMediaMetadata2 = handleOpenApiCall(MediaReferenceProperty_exports.getMediaMetadata, ["ontologyApiName", "objectType", "primaryKey", "propertyName"]);
2026
2033
  var getMediaContent2 = handleOpenApiCall(MediaReferenceProperty_exports.getMediaContent, ["ontologyApiName", "objectType", "primaryKey", "propertyName"]);
2027
2034
  var upload4 = handleOpenApiCall(MediaReferenceProperty_exports.upload, ["ontologyApiName", "objectType", "propertyName"]);
2035
+ var uploadMedia2 = handleOpenApiCall(MediaReferenceProperty_exports.uploadMedia, ["ontologyApiName", "actionTypeApiName"]);
2028
2036
 
2029
2037
  // src/mock/OntologiesV2/ObjectTypesV2.ts
2030
2038
  var ObjectTypesV2_exports = {};