@osdk/internal.foundry.ontologiesv2 2.6.0 → 2.8.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 +22 -0
- package/build/browser/index.d.ts +1 -0
- package/build/browser/index.d.ts.map +1 -1
- package/build/browser/index.js +1 -0
- package/build/browser/index.js.map +1 -1
- package/build/browser/public/MediaReferenceProperty.d.ts +64 -0
- package/build/browser/public/MediaReferenceProperty.d.ts.map +1 -0
- package/build/browser/public/MediaReferenceProperty.js +61 -0
- package/build/browser/public/MediaReferenceProperty.js.map +1 -0
- package/build/esm/index.d.ts +1 -0
- package/build/esm/index.d.ts.map +1 -1
- package/build/esm/index.js +1 -0
- package/build/esm/index.js.map +1 -1
- package/build/esm/public/MediaReferenceProperty.d.ts +64 -0
- package/build/esm/public/MediaReferenceProperty.d.ts.map +1 -0
- package/build/esm/public/MediaReferenceProperty.js +61 -0
- package/build/esm/public/MediaReferenceProperty.js.map +1 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @osdk/internal.foundry.ontologiesv2
|
|
2
2
|
|
|
3
|
+
## 2.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- b025652: Update APIs and make backend dependency non-optional.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [b025652]
|
|
12
|
+
- @osdk/internal.foundry.core@2.8.0
|
|
13
|
+
|
|
14
|
+
## 2.7.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- 5f8048f: Updating platform APIs to include media APIs.
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [5f8048f]
|
|
23
|
+
- @osdk/internal.foundry.core@2.7.0
|
|
24
|
+
|
|
3
25
|
## 2.6.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
package/build/browser/index.d.ts
CHANGED
|
@@ -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"}
|
package/build/browser/index.js
CHANGED
|
@@ -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,64 @@
|
|
|
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
|
+
/**
|
|
45
|
+
* Uploads a media item to the media set which backs the specified property. The property must be backed by a single media set and branch, otherwise an error will be thrown.
|
|
46
|
+
* The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.
|
|
47
|
+
*
|
|
48
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read api:mediasets-read api:mediasets-write`.
|
|
49
|
+
*
|
|
50
|
+
* @alpha
|
|
51
|
+
*
|
|
52
|
+
* Required Scopes: [api:ontologies-read, api:mediasets-read, api:mediasets-write]
|
|
53
|
+
* URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/media/{property}/upload
|
|
54
|
+
*/
|
|
55
|
+
export declare function upload($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
56
|
+
ontology: _Core.OntologyIdentifier,
|
|
57
|
+
objectType: _Core.ObjectTypeApiName,
|
|
58
|
+
property: _Core.PropertyApiName,
|
|
59
|
+
$body: Blob,
|
|
60
|
+
$queryParams?: {
|
|
61
|
+
mediaItemPath?: _Core.MediaItemPath | undefined;
|
|
62
|
+
}
|
|
63
|
+
]): Promise<_Core.MediaReference>;
|
|
64
|
+
//# 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;AAYD;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CACpB,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,QAAQ,EAAE,KAAK,CAAC,eAAe;IAC/B,KAAK,EAAE,IAAI;IACX,YAAY,CAAC,EAAE;QAAE,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,GAAG,SAAS,CAAA;KAAE;CACnE,GACA,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,CAE/B"}
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
const _upload = [1, "/v2/ontologies/{0}/objectTypes/{1}/media/{2}/upload", 3, "*/*"];
|
|
47
|
+
/**
|
|
48
|
+
* Uploads a media item to the media set which backs the specified property. The property must be backed by a single media set and branch, otherwise an error will be thrown.
|
|
49
|
+
* The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.
|
|
50
|
+
*
|
|
51
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read api:mediasets-read api:mediasets-write`.
|
|
52
|
+
*
|
|
53
|
+
* @alpha
|
|
54
|
+
*
|
|
55
|
+
* Required Scopes: [api:ontologies-read, api:mediasets-read, api:mediasets-write]
|
|
56
|
+
* URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/media/{property}/upload
|
|
57
|
+
*/
|
|
58
|
+
export function upload($ctx, ...args) {
|
|
59
|
+
return $foundryPlatformFetch($ctx, _upload, ...args);
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=MediaReferenceProperty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediaReferenceProperty.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_getMediaContent","getMediaContent","$ctx","args","_getMediaMetadata","getMediaMetadata","_upload","upload"],"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}\nconst _upload = [1, \"/v2/ontologies/{0}/objectTypes/{1}/media/{2}/upload\", 3, \"*/*\"];\n/**\n * Uploads a media item to the media set which backs the specified property. The property must be backed by a single media set and branch, otherwise an error will be thrown.\n * The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read api:mediasets-read api:mediasets-write`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read, api:mediasets-read, api:mediasets-write]\n * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/media/{property}/upload\n */\nexport function upload($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _upload, ...args);\n}\n"],"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;AACA,MAAMG,OAAO,GAAG,CAAC,CAAC,EAAE,qDAAqD,EAAE,CAAC,EAAE,KAAK,CAAC;AACpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,OAAO,EAAE,GAAGH,IAAI,CAAC;AACxD","ignoreList":[]}
|
package/build/esm/index.d.ts
CHANGED
|
@@ -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";
|
package/build/esm/index.d.ts.map
CHANGED
|
@@ -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"}
|
package/build/esm/index.js
CHANGED
|
@@ -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";
|
package/build/esm/index.js.map
CHANGED
|
@@ -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,64 @@
|
|
|
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
|
+
/**
|
|
45
|
+
* Uploads a media item to the media set which backs the specified property. The property must be backed by a single media set and branch, otherwise an error will be thrown.
|
|
46
|
+
* The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.
|
|
47
|
+
*
|
|
48
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read api:mediasets-read api:mediasets-write`.
|
|
49
|
+
*
|
|
50
|
+
* @alpha
|
|
51
|
+
*
|
|
52
|
+
* Required Scopes: [api:ontologies-read, api:mediasets-read, api:mediasets-write]
|
|
53
|
+
* URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/media/{property}/upload
|
|
54
|
+
*/
|
|
55
|
+
export declare function upload($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
56
|
+
ontology: _Core.OntologyIdentifier,
|
|
57
|
+
objectType: _Core.ObjectTypeApiName,
|
|
58
|
+
property: _Core.PropertyApiName,
|
|
59
|
+
$body: Blob,
|
|
60
|
+
$queryParams?: {
|
|
61
|
+
mediaItemPath?: _Core.MediaItemPath | undefined;
|
|
62
|
+
}
|
|
63
|
+
]): Promise<_Core.MediaReference>;
|
|
64
|
+
//# 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;AAYD;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CACpB,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,QAAQ,EAAE,KAAK,CAAC,eAAe;IAC/B,KAAK,EAAE,IAAI;IACX,YAAY,CAAC,EAAE;QAAE,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,GAAG,SAAS,CAAA;KAAE;CACnE,GACA,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,CAE/B"}
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
const _upload = [1, "/v2/ontologies/{0}/objectTypes/{1}/media/{2}/upload", 3, "*/*"];
|
|
47
|
+
/**
|
|
48
|
+
* Uploads a media item to the media set which backs the specified property. The property must be backed by a single media set and branch, otherwise an error will be thrown.
|
|
49
|
+
* The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.
|
|
50
|
+
*
|
|
51
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read api:mediasets-read api:mediasets-write`.
|
|
52
|
+
*
|
|
53
|
+
* @alpha
|
|
54
|
+
*
|
|
55
|
+
* Required Scopes: [api:ontologies-read, api:mediasets-read, api:mediasets-write]
|
|
56
|
+
* URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/media/{property}/upload
|
|
57
|
+
*/
|
|
58
|
+
export function upload($ctx, ...args) {
|
|
59
|
+
return $foundryPlatformFetch($ctx, _upload, ...args);
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=MediaReferenceProperty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediaReferenceProperty.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_getMediaContent","getMediaContent","$ctx","args","_getMediaMetadata","getMediaMetadata","_upload","upload"],"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}\nconst _upload = [1, \"/v2/ontologies/{0}/objectTypes/{1}/media/{2}/upload\", 3, \"*/*\"];\n/**\n * Uploads a media item to the media set which backs the specified property. The property must be backed by a single media set and branch, otherwise an error will be thrown.\n * The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read api:mediasets-read api:mediasets-write`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read, api:mediasets-read, api:mediasets-write]\n * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/media/{property}/upload\n */\nexport function upload($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _upload, ...args);\n}\n"],"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;AACA,MAAMG,OAAO,GAAG,CAAC,CAAC,EAAE,qDAAqD,EAAE,CAAC,EAAE,KAAK,CAAC;AACpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,OAAO,EAAE,GAAGH,IAAI,CAAC;AACxD","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osdk/internal.foundry.ontologiesv2",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,7 +21,7 @@
|
|
|
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.
|
|
24
|
+
"@osdk/internal.foundry.core": "2.8.0",
|
|
25
25
|
"@osdk/shared.net.platformapi": "~1.2.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"sls": {
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"com.palantir.foundry.api:api-gateway": {
|
|
48
|
-
"minVersion": "1.
|
|
48
|
+
"minVersion": "1.1014.0",
|
|
49
49
|
"maxVersion": "1.x.x",
|
|
50
|
-
"optional":
|
|
50
|
+
"optional": false
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
},
|