@osdk/internal.foundry.ontologiesv2 2.6.0 → 2.7.0

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,16 @@
1
1
  # @osdk/internal.foundry.ontologiesv2
2
2
 
3
+ ## 2.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 5f8048f: Updating platform APIs to include media APIs.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [5f8048f]
12
+ - @osdk/internal.foundry.core@2.7.0
13
+
3
14
  ## 2.6.0
4
15
 
5
16
  ### Minor Changes
@@ -5,6 +5,7 @@ export * as ActionTypesV2 from "./public/ActionTypeV2.js";
5
5
  export * as Attachments from "./public/Attachment.js";
6
6
  export * as AttachmentPropertiesV2 from "./public/AttachmentPropertyV2.js";
7
7
  export * as LinkedObjectsV2 from "./public/LinkedObjectV2.js";
8
+ export * as MediaReferenceProperties from "./public/MediaReferenceProperty.js";
8
9
  export * as ObjectTypesV2 from "./public/ObjectTypeV2.js";
9
10
  export * as OntologyInterfaces from "./public/OntologyInterface.js";
10
11
  export * as OntologyObjectSets from "./public/OntologyObjectSet.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACvC,YAAY,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,sBAAsB,MAAM,kCAAkC,CAAC;AAC3E,OAAO,KAAK,eAAe,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,kBAAkB,MAAM,+BAA+B,CAAC;AACpE,OAAO,KAAK,kBAAkB,MAAM,+BAA+B,CAAC;AACpE,OAAO,KAAK,iBAAiB,MAAM,8BAA8B,CAAC;AAClE,OAAO,KAAK,YAAY,MAAM,wBAAwB,CAAC;AACvD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,sBAAsB,MAAM,kCAAkC,CAAC;AAC3E,OAAO,KAAK,6BAA6B,MAAM,yCAAyC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACvC,YAAY,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,sBAAsB,MAAM,kCAAkC,CAAC;AAC3E,OAAO,KAAK,eAAe,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,wBAAwB,MAAM,oCAAoC,CAAC;AAC/E,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,kBAAkB,MAAM,+BAA+B,CAAC;AACpE,OAAO,KAAK,kBAAkB,MAAM,+BAA+B,CAAC;AACpE,OAAO,KAAK,iBAAiB,MAAM,8BAA8B,CAAC;AAClE,OAAO,KAAK,YAAY,MAAM,wBAAwB,CAAC;AACvD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,sBAAsB,MAAM,kCAAkC,CAAC;AAC3E,OAAO,KAAK,6BAA6B,MAAM,yCAAyC,CAAC"}
@@ -18,6 +18,7 @@ export * as ActionTypesV2 from "./public/ActionTypeV2.js";
18
18
  export * as Attachments from "./public/Attachment.js";
19
19
  export * as AttachmentPropertiesV2 from "./public/AttachmentPropertyV2.js";
20
20
  export * as LinkedObjectsV2 from "./public/LinkedObjectV2.js";
21
+ export * as MediaReferenceProperties from "./public/MediaReferenceProperty.js";
21
22
  export * as ObjectTypesV2 from "./public/ObjectTypeV2.js";
22
23
  export * as OntologyInterfaces from "./public/OntologyInterface.js";
23
24
  export * as OntologyObjectSets from "./public/OntologyObjectSet.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Actions","ActionTypesV2","Attachments","AttachmentPropertiesV2","LinkedObjectsV2","ObjectTypesV2","OntologyInterfaces","OntologyObjectSets","OntologyObjectsV2","OntologiesV2","Queries","QueryTypes","TimeSeriesPropertiesV2","TimeSeriesValueBankProperties"],"sources":["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 */\nexport * as Actions from \"./public/Action.js\";\nexport * as ActionTypesV2 from \"./public/ActionTypeV2.js\";\nexport * as Attachments from \"./public/Attachment.js\";\nexport * as AttachmentPropertiesV2 from \"./public/AttachmentPropertyV2.js\";\nexport * as LinkedObjectsV2 from \"./public/LinkedObjectV2.js\";\nexport * as ObjectTypesV2 from \"./public/ObjectTypeV2.js\";\nexport * as OntologyInterfaces from \"./public/OntologyInterface.js\";\nexport * as OntologyObjectSets from \"./public/OntologyObjectSet.js\";\nexport * as OntologyObjectsV2 from \"./public/OntologyObjectV2.js\";\nexport * as OntologiesV2 from \"./public/OntologyV2.js\";\nexport * as Queries from \"./public/Query.js\";\nexport * as QueryTypes from \"./public/QueryType.js\";\nexport * as TimeSeriesPropertiesV2 from \"./public/TimeSeriesPropertyV2.js\";\nexport * as TimeSeriesValueBankProperties from \"./public/TimeSeriesValueBankProperty.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,KAAKA,OAAO,MAAM,oBAAoB;AAC7C,OAAO,KAAKC,aAAa,MAAM,0BAA0B;AACzD,OAAO,KAAKC,WAAW,MAAM,wBAAwB;AACrD,OAAO,KAAKC,sBAAsB,MAAM,kCAAkC;AAC1E,OAAO,KAAKC,eAAe,MAAM,4BAA4B;AAC7D,OAAO,KAAKC,aAAa,MAAM,0BAA0B;AACzD,OAAO,KAAKC,kBAAkB,MAAM,+BAA+B;AACnE,OAAO,KAAKC,kBAAkB,MAAM,+BAA+B;AACnE,OAAO,KAAKC,iBAAiB,MAAM,8BAA8B;AACjE,OAAO,KAAKC,YAAY,MAAM,wBAAwB;AACtD,OAAO,KAAKC,OAAO,MAAM,mBAAmB;AAC5C,OAAO,KAAKC,UAAU,MAAM,uBAAuB;AACnD,OAAO,KAAKC,sBAAsB,MAAM,kCAAkC;AAC1E,OAAO,KAAKC,6BAA6B,MAAM,yCAAyC","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["Actions","ActionTypesV2","Attachments","AttachmentPropertiesV2","LinkedObjectsV2","MediaReferenceProperties","ObjectTypesV2","OntologyInterfaces","OntologyObjectSets","OntologyObjectsV2","OntologiesV2","Queries","QueryTypes","TimeSeriesPropertiesV2","TimeSeriesValueBankProperties"],"sources":["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 */\nexport * as Actions from \"./public/Action.js\";\nexport * as ActionTypesV2 from \"./public/ActionTypeV2.js\";\nexport * as Attachments from \"./public/Attachment.js\";\nexport * as AttachmentPropertiesV2 from \"./public/AttachmentPropertyV2.js\";\nexport * as LinkedObjectsV2 from \"./public/LinkedObjectV2.js\";\nexport * as MediaReferenceProperties from \"./public/MediaReferenceProperty.js\";\nexport * as ObjectTypesV2 from \"./public/ObjectTypeV2.js\";\nexport * as OntologyInterfaces from \"./public/OntologyInterface.js\";\nexport * as OntologyObjectSets from \"./public/OntologyObjectSet.js\";\nexport * as OntologyObjectsV2 from \"./public/OntologyObjectV2.js\";\nexport * as OntologiesV2 from \"./public/OntologyV2.js\";\nexport * as Queries from \"./public/Query.js\";\nexport * as QueryTypes from \"./public/QueryType.js\";\nexport * as TimeSeriesPropertiesV2 from \"./public/TimeSeriesPropertyV2.js\";\nexport * as TimeSeriesValueBankProperties from \"./public/TimeSeriesValueBankProperty.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,KAAKA,OAAO,MAAM,oBAAoB;AAC7C,OAAO,KAAKC,aAAa,MAAM,0BAA0B;AACzD,OAAO,KAAKC,WAAW,MAAM,wBAAwB;AACrD,OAAO,KAAKC,sBAAsB,MAAM,kCAAkC;AAC1E,OAAO,KAAKC,eAAe,MAAM,4BAA4B;AAC7D,OAAO,KAAKC,wBAAwB,MAAM,oCAAoC;AAC9E,OAAO,KAAKC,aAAa,MAAM,0BAA0B;AACzD,OAAO,KAAKC,kBAAkB,MAAM,+BAA+B;AACnE,OAAO,KAAKC,kBAAkB,MAAM,+BAA+B;AACnE,OAAO,KAAKC,iBAAiB,MAAM,8BAA8B;AACjE,OAAO,KAAKC,YAAY,MAAM,wBAAwB;AACtD,OAAO,KAAKC,OAAO,MAAM,mBAAmB;AAC5C,OAAO,KAAKC,UAAU,MAAM,uBAAuB;AACnD,OAAO,KAAKC,sBAAsB,MAAM,kCAAkC;AAC1E,OAAO,KAAKC,6BAA6B,MAAM,yCAAyC","ignoreList":[]}
@@ -0,0 +1,44 @@
1
+ import type * as _Core from "@osdk/internal.foundry.core";
2
+ import type { SharedClient as $OldClient, SharedClientContext as $OldClientContext } from "@osdk/shared.client";
3
+ import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client2";
4
+ /**
5
+ * Gets the content of a media item referenced by this property.
6
+ *
7
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read api:mediasets-read`.
8
+ *
9
+ * @alpha
10
+ *
11
+ * Required Scopes: [api:ontologies-read, api:mediasets-read]
12
+ * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/media/{property}/content
13
+ */
14
+ export declare function getMediaContent($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
15
+ ontology: _Core.OntologyIdentifier,
16
+ objectType: _Core.ObjectTypeApiName,
17
+ primaryKey: _Core.PropertyValueEscapedString,
18
+ property: _Core.PropertyApiName,
19
+ $queryParams?: {
20
+ artifactRepository?: _Core.ArtifactRepositoryRid | undefined;
21
+ packageName?: _Core.SdkPackageName | undefined;
22
+ }
23
+ ]): Promise<Response>;
24
+ /**
25
+ * Gets metadata about the media item referenced by this property.
26
+ *
27
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read api:mediasets-read`.
28
+ *
29
+ * @alpha
30
+ *
31
+ * Required Scopes: [api:ontologies-read, api:mediasets-read]
32
+ * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/media/{property}/metadata
33
+ */
34
+ export declare function getMediaMetadata($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
35
+ ontology: _Core.OntologyIdentifier,
36
+ objectType: _Core.ObjectTypeApiName,
37
+ primaryKey: _Core.PropertyValueEscapedString,
38
+ property: _Core.PropertyApiName,
39
+ $queryParams?: {
40
+ artifactRepository?: _Core.ArtifactRepositoryRid | undefined;
41
+ packageName?: _Core.SdkPackageName | undefined;
42
+ }
43
+ ]): Promise<_Core.MediaMetadata>;
44
+ //# sourceMappingURL=MediaReferenceProperty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MediaReferenceProperty.d.ts","sourceRoot":"","sources":["../../../src/public/MediaReferenceProperty.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EACV,YAAY,IAAI,UAAU,EAC1B,mBAAmB,IAAI,iBAAiB,EACzC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,sBAAsB,CAAC;AAmB9B;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,KAAK,CAAC,kBAAkB;IAClC,UAAU,EAAE,KAAK,CAAC,iBAAiB;IACnC,UAAU,EAAE,KAAK,CAAC,0BAA0B;IAC5C,QAAQ,EAAE,KAAK,CAAC,eAAe;IAE/B,YAAY,CAAC,EAAE;QACb,kBAAkB,CAAC,EAAE,KAAK,CAAC,qBAAqB,GAAG,SAAS,CAAC;QAC7D,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,GAAG,SAAS,CAAC;KAChD;CACF,GACA,OAAO,CAAC,QAAQ,CAAC,CAEnB;AAeD;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,KAAK,CAAC,kBAAkB;IAClC,UAAU,EAAE,KAAK,CAAC,iBAAiB;IACnC,UAAU,EAAE,KAAK,CAAC,0BAA0B;IAC5C,QAAQ,EAAE,KAAK,CAAC,eAAe;IAE/B,YAAY,CAAC,EAAE;QACb,kBAAkB,CAAC,EAAE,KAAK,CAAC,qBAAqB,GAAG,SAAS,CAAC;QAC7D,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,GAAG,SAAS,CAAC;KAChD;CACF,GACA,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,CAE9B"}
@@ -0,0 +1,46 @@
1
+ /*
2
+ * Copyright 2024 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
17
+ //
18
+ const _getMediaContent = [0, "/v2/ontologies/{0}/objects/{1}/{2}/media/{3}/content", 2,, "*/*"];
19
+ /**
20
+ * Gets the content of a media item referenced by this property.
21
+ *
22
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read api:mediasets-read`.
23
+ *
24
+ * @alpha
25
+ *
26
+ * Required Scopes: [api:ontologies-read, api:mediasets-read]
27
+ * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/media/{property}/content
28
+ */
29
+ export function getMediaContent($ctx, ...args) {
30
+ return $foundryPlatformFetch($ctx, _getMediaContent, ...args);
31
+ }
32
+ const _getMediaMetadata = [0, "/v2/ontologies/{0}/objects/{1}/{2}/media/{3}/metadata", 2];
33
+ /**
34
+ * Gets metadata about the media item referenced by this property.
35
+ *
36
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read api:mediasets-read`.
37
+ *
38
+ * @alpha
39
+ *
40
+ * Required Scopes: [api:ontologies-read, api:mediasets-read]
41
+ * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/media/{property}/metadata
42
+ */
43
+ export function getMediaMetadata($ctx, ...args) {
44
+ return $foundryPlatformFetch($ctx, _getMediaMetadata, ...args);
45
+ }
46
+ //# sourceMappingURL=MediaReferenceProperty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MediaReferenceProperty.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_getMediaContent","getMediaContent","$ctx","args","_getMediaMetadata","getMediaMetadata"],"sources":["MediaReferenceProperty.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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _getMediaContent = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/media/{3}/content\", 2, , \"*/*\"];\n/**\n * Gets the content of a media item referenced by this property.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read api:mediasets-read`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read, api:mediasets-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/media/{property}/content\n */\nexport function getMediaContent($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getMediaContent, ...args);\n}\nconst _getMediaMetadata = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/media/{3}/metadata\", 2];\n/**\n * Gets metadata about the media item referenced by this property.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read api:mediasets-read`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read, api:mediasets-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/media/{property}/metadata\n */\nexport function getMediaMetadata($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getMediaMetadata, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,gBAAgB,GAAG,CAAC,CAAC,EAAE,sDAAsD,EAAE,CAAC,GAAI,KAAK,CAAC;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC3C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,gBAAgB,EAAE,GAAGG,IAAI,CAAC;AACjE;AACA,MAAMC,iBAAiB,GAAG,CAAC,CAAC,EAAE,uDAAuD,EAAE,CAAC,CAAC;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,gBAAgBA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC5C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,iBAAiB,EAAE,GAAGD,IAAI,CAAC;AAClE","ignoreList":[]}
@@ -5,6 +5,7 @@ export * as ActionTypesV2 from "./public/ActionTypeV2.js";
5
5
  export * as Attachments from "./public/Attachment.js";
6
6
  export * as AttachmentPropertiesV2 from "./public/AttachmentPropertyV2.js";
7
7
  export * as LinkedObjectsV2 from "./public/LinkedObjectV2.js";
8
+ export * as MediaReferenceProperties from "./public/MediaReferenceProperty.js";
8
9
  export * as ObjectTypesV2 from "./public/ObjectTypeV2.js";
9
10
  export * as OntologyInterfaces from "./public/OntologyInterface.js";
10
11
  export * as OntologyObjectSets from "./public/OntologyObjectSet.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACvC,YAAY,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,sBAAsB,MAAM,kCAAkC,CAAC;AAC3E,OAAO,KAAK,eAAe,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,kBAAkB,MAAM,+BAA+B,CAAC;AACpE,OAAO,KAAK,kBAAkB,MAAM,+BAA+B,CAAC;AACpE,OAAO,KAAK,iBAAiB,MAAM,8BAA8B,CAAC;AAClE,OAAO,KAAK,YAAY,MAAM,wBAAwB,CAAC;AACvD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,sBAAsB,MAAM,kCAAkC,CAAC;AAC3E,OAAO,KAAK,6BAA6B,MAAM,yCAAyC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACvC,YAAY,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,sBAAsB,MAAM,kCAAkC,CAAC;AAC3E,OAAO,KAAK,eAAe,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,wBAAwB,MAAM,oCAAoC,CAAC;AAC/E,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,kBAAkB,MAAM,+BAA+B,CAAC;AACpE,OAAO,KAAK,kBAAkB,MAAM,+BAA+B,CAAC;AACpE,OAAO,KAAK,iBAAiB,MAAM,8BAA8B,CAAC;AAClE,OAAO,KAAK,YAAY,MAAM,wBAAwB,CAAC;AACvD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,sBAAsB,MAAM,kCAAkC,CAAC;AAC3E,OAAO,KAAK,6BAA6B,MAAM,yCAAyC,CAAC"}
@@ -18,6 +18,7 @@ export * as ActionTypesV2 from "./public/ActionTypeV2.js";
18
18
  export * as Attachments from "./public/Attachment.js";
19
19
  export * as AttachmentPropertiesV2 from "./public/AttachmentPropertyV2.js";
20
20
  export * as LinkedObjectsV2 from "./public/LinkedObjectV2.js";
21
+ export * as MediaReferenceProperties from "./public/MediaReferenceProperty.js";
21
22
  export * as ObjectTypesV2 from "./public/ObjectTypeV2.js";
22
23
  export * as OntologyInterfaces from "./public/OntologyInterface.js";
23
24
  export * as OntologyObjectSets from "./public/OntologyObjectSet.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Actions","ActionTypesV2","Attachments","AttachmentPropertiesV2","LinkedObjectsV2","ObjectTypesV2","OntologyInterfaces","OntologyObjectSets","OntologyObjectsV2","OntologiesV2","Queries","QueryTypes","TimeSeriesPropertiesV2","TimeSeriesValueBankProperties"],"sources":["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 */\nexport * as Actions from \"./public/Action.js\";\nexport * as ActionTypesV2 from \"./public/ActionTypeV2.js\";\nexport * as Attachments from \"./public/Attachment.js\";\nexport * as AttachmentPropertiesV2 from \"./public/AttachmentPropertyV2.js\";\nexport * as LinkedObjectsV2 from \"./public/LinkedObjectV2.js\";\nexport * as ObjectTypesV2 from \"./public/ObjectTypeV2.js\";\nexport * as OntologyInterfaces from \"./public/OntologyInterface.js\";\nexport * as OntologyObjectSets from \"./public/OntologyObjectSet.js\";\nexport * as OntologyObjectsV2 from \"./public/OntologyObjectV2.js\";\nexport * as OntologiesV2 from \"./public/OntologyV2.js\";\nexport * as Queries from \"./public/Query.js\";\nexport * as QueryTypes from \"./public/QueryType.js\";\nexport * as TimeSeriesPropertiesV2 from \"./public/TimeSeriesPropertyV2.js\";\nexport * as TimeSeriesValueBankProperties from \"./public/TimeSeriesValueBankProperty.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,KAAKA,OAAO,MAAM,oBAAoB;AAC7C,OAAO,KAAKC,aAAa,MAAM,0BAA0B;AACzD,OAAO,KAAKC,WAAW,MAAM,wBAAwB;AACrD,OAAO,KAAKC,sBAAsB,MAAM,kCAAkC;AAC1E,OAAO,KAAKC,eAAe,MAAM,4BAA4B;AAC7D,OAAO,KAAKC,aAAa,MAAM,0BAA0B;AACzD,OAAO,KAAKC,kBAAkB,MAAM,+BAA+B;AACnE,OAAO,KAAKC,kBAAkB,MAAM,+BAA+B;AACnE,OAAO,KAAKC,iBAAiB,MAAM,8BAA8B;AACjE,OAAO,KAAKC,YAAY,MAAM,wBAAwB;AACtD,OAAO,KAAKC,OAAO,MAAM,mBAAmB;AAC5C,OAAO,KAAKC,UAAU,MAAM,uBAAuB;AACnD,OAAO,KAAKC,sBAAsB,MAAM,kCAAkC;AAC1E,OAAO,KAAKC,6BAA6B,MAAM,yCAAyC","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["Actions","ActionTypesV2","Attachments","AttachmentPropertiesV2","LinkedObjectsV2","MediaReferenceProperties","ObjectTypesV2","OntologyInterfaces","OntologyObjectSets","OntologyObjectsV2","OntologiesV2","Queries","QueryTypes","TimeSeriesPropertiesV2","TimeSeriesValueBankProperties"],"sources":["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 */\nexport * as Actions from \"./public/Action.js\";\nexport * as ActionTypesV2 from \"./public/ActionTypeV2.js\";\nexport * as Attachments from \"./public/Attachment.js\";\nexport * as AttachmentPropertiesV2 from \"./public/AttachmentPropertyV2.js\";\nexport * as LinkedObjectsV2 from \"./public/LinkedObjectV2.js\";\nexport * as MediaReferenceProperties from \"./public/MediaReferenceProperty.js\";\nexport * as ObjectTypesV2 from \"./public/ObjectTypeV2.js\";\nexport * as OntologyInterfaces from \"./public/OntologyInterface.js\";\nexport * as OntologyObjectSets from \"./public/OntologyObjectSet.js\";\nexport * as OntologyObjectsV2 from \"./public/OntologyObjectV2.js\";\nexport * as OntologiesV2 from \"./public/OntologyV2.js\";\nexport * as Queries from \"./public/Query.js\";\nexport * as QueryTypes from \"./public/QueryType.js\";\nexport * as TimeSeriesPropertiesV2 from \"./public/TimeSeriesPropertyV2.js\";\nexport * as TimeSeriesValueBankProperties from \"./public/TimeSeriesValueBankProperty.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,KAAKA,OAAO,MAAM,oBAAoB;AAC7C,OAAO,KAAKC,aAAa,MAAM,0BAA0B;AACzD,OAAO,KAAKC,WAAW,MAAM,wBAAwB;AACrD,OAAO,KAAKC,sBAAsB,MAAM,kCAAkC;AAC1E,OAAO,KAAKC,eAAe,MAAM,4BAA4B;AAC7D,OAAO,KAAKC,wBAAwB,MAAM,oCAAoC;AAC9E,OAAO,KAAKC,aAAa,MAAM,0BAA0B;AACzD,OAAO,KAAKC,kBAAkB,MAAM,+BAA+B;AACnE,OAAO,KAAKC,kBAAkB,MAAM,+BAA+B;AACnE,OAAO,KAAKC,iBAAiB,MAAM,8BAA8B;AACjE,OAAO,KAAKC,YAAY,MAAM,wBAAwB;AACtD,OAAO,KAAKC,OAAO,MAAM,mBAAmB;AAC5C,OAAO,KAAKC,UAAU,MAAM,uBAAuB;AACnD,OAAO,KAAKC,sBAAsB,MAAM,kCAAkC;AAC1E,OAAO,KAAKC,6BAA6B,MAAM,yCAAyC","ignoreList":[]}
@@ -0,0 +1,44 @@
1
+ import type * as _Core from "@osdk/internal.foundry.core";
2
+ import type { SharedClient as $OldClient, SharedClientContext as $OldClientContext } from "@osdk/shared.client";
3
+ import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client2";
4
+ /**
5
+ * Gets the content of a media item referenced by this property.
6
+ *
7
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read api:mediasets-read`.
8
+ *
9
+ * @alpha
10
+ *
11
+ * Required Scopes: [api:ontologies-read, api:mediasets-read]
12
+ * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/media/{property}/content
13
+ */
14
+ export declare function getMediaContent($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
15
+ ontology: _Core.OntologyIdentifier,
16
+ objectType: _Core.ObjectTypeApiName,
17
+ primaryKey: _Core.PropertyValueEscapedString,
18
+ property: _Core.PropertyApiName,
19
+ $queryParams?: {
20
+ artifactRepository?: _Core.ArtifactRepositoryRid | undefined;
21
+ packageName?: _Core.SdkPackageName | undefined;
22
+ }
23
+ ]): Promise<Response>;
24
+ /**
25
+ * Gets metadata about the media item referenced by this property.
26
+ *
27
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read api:mediasets-read`.
28
+ *
29
+ * @alpha
30
+ *
31
+ * Required Scopes: [api:ontologies-read, api:mediasets-read]
32
+ * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/media/{property}/metadata
33
+ */
34
+ export declare function getMediaMetadata($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
35
+ ontology: _Core.OntologyIdentifier,
36
+ objectType: _Core.ObjectTypeApiName,
37
+ primaryKey: _Core.PropertyValueEscapedString,
38
+ property: _Core.PropertyApiName,
39
+ $queryParams?: {
40
+ artifactRepository?: _Core.ArtifactRepositoryRid | undefined;
41
+ packageName?: _Core.SdkPackageName | undefined;
42
+ }
43
+ ]): Promise<_Core.MediaMetadata>;
44
+ //# sourceMappingURL=MediaReferenceProperty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MediaReferenceProperty.d.ts","sourceRoot":"","sources":["../../../src/public/MediaReferenceProperty.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EACV,YAAY,IAAI,UAAU,EAC1B,mBAAmB,IAAI,iBAAiB,EACzC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,sBAAsB,CAAC;AAmB9B;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,KAAK,CAAC,kBAAkB;IAClC,UAAU,EAAE,KAAK,CAAC,iBAAiB;IACnC,UAAU,EAAE,KAAK,CAAC,0BAA0B;IAC5C,QAAQ,EAAE,KAAK,CAAC,eAAe;IAE/B,YAAY,CAAC,EAAE;QACb,kBAAkB,CAAC,EAAE,KAAK,CAAC,qBAAqB,GAAG,SAAS,CAAC;QAC7D,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,GAAG,SAAS,CAAC;KAChD;CACF,GACA,OAAO,CAAC,QAAQ,CAAC,CAEnB;AAeD;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,KAAK,CAAC,kBAAkB;IAClC,UAAU,EAAE,KAAK,CAAC,iBAAiB;IACnC,UAAU,EAAE,KAAK,CAAC,0BAA0B;IAC5C,QAAQ,EAAE,KAAK,CAAC,eAAe;IAE/B,YAAY,CAAC,EAAE;QACb,kBAAkB,CAAC,EAAE,KAAK,CAAC,qBAAqB,GAAG,SAAS,CAAC;QAC7D,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,GAAG,SAAS,CAAC;KAChD;CACF,GACA,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,CAE9B"}
@@ -0,0 +1,46 @@
1
+ /*
2
+ * Copyright 2024 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
17
+ //
18
+ const _getMediaContent = [0, "/v2/ontologies/{0}/objects/{1}/{2}/media/{3}/content", 2,, "*/*"];
19
+ /**
20
+ * Gets the content of a media item referenced by this property.
21
+ *
22
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read api:mediasets-read`.
23
+ *
24
+ * @alpha
25
+ *
26
+ * Required Scopes: [api:ontologies-read, api:mediasets-read]
27
+ * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/media/{property}/content
28
+ */
29
+ export function getMediaContent($ctx, ...args) {
30
+ return $foundryPlatformFetch($ctx, _getMediaContent, ...args);
31
+ }
32
+ const _getMediaMetadata = [0, "/v2/ontologies/{0}/objects/{1}/{2}/media/{3}/metadata", 2];
33
+ /**
34
+ * Gets metadata about the media item referenced by this property.
35
+ *
36
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read api:mediasets-read`.
37
+ *
38
+ * @alpha
39
+ *
40
+ * Required Scopes: [api:ontologies-read, api:mediasets-read]
41
+ * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/media/{property}/metadata
42
+ */
43
+ export function getMediaMetadata($ctx, ...args) {
44
+ return $foundryPlatformFetch($ctx, _getMediaMetadata, ...args);
45
+ }
46
+ //# sourceMappingURL=MediaReferenceProperty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MediaReferenceProperty.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_getMediaContent","getMediaContent","$ctx","args","_getMediaMetadata","getMediaMetadata"],"sources":["MediaReferenceProperty.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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _getMediaContent = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/media/{3}/content\", 2, , \"*/*\"];\n/**\n * Gets the content of a media item referenced by this property.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read api:mediasets-read`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read, api:mediasets-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/media/{property}/content\n */\nexport function getMediaContent($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getMediaContent, ...args);\n}\nconst _getMediaMetadata = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/media/{3}/metadata\", 2];\n/**\n * Gets metadata about the media item referenced by this property.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read api:mediasets-read`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read, api:mediasets-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/media/{property}/metadata\n */\nexport function getMediaMetadata($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getMediaMetadata, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,gBAAgB,GAAG,CAAC,CAAC,EAAE,sDAAsD,EAAE,CAAC,GAAI,KAAK,CAAC;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC3C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,gBAAgB,EAAE,GAAGG,IAAI,CAAC;AACjE;AACA,MAAMC,iBAAiB,GAAG,CAAC,CAAC,EAAE,uDAAuD,EAAE,CAAC,CAAC;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,gBAAgBA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC5C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,iBAAiB,EAAE,GAAGD,IAAI,CAAC;AAClE","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osdk/internal.foundry.ontologiesv2",
3
- "version": "2.6.0",
3
+ "version": "2.7.0",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,8 +21,8 @@
21
21
  "dependencies": {
22
22
  "@osdk/shared.client": "^1.0.1",
23
23
  "@osdk/shared.client2": "^1.0.0",
24
- "@osdk/internal.foundry.core": "2.6.0",
25
- "@osdk/shared.net.platformapi": "~1.2.0"
24
+ "@osdk/shared.net.platformapi": "~1.2.0",
25
+ "@osdk/internal.foundry.core": "2.7.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "typescript": "^5.5.4",
@@ -45,7 +45,7 @@
45
45
  "sls": {
46
46
  "dependencies": {
47
47
  "com.palantir.foundry.api:api-gateway": {
48
- "minVersion": "1.990.0",
48
+ "minVersion": "1.1010.0",
49
49
  "maxVersion": "1.x.x",
50
50
  "optional": true
51
51
  }