@osdk/foundry.mediasets 2.16.0 → 2.17.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 +11 -0
- package/build/browser/public/MediaSet.d.ts +20 -0
- package/build/browser/public/MediaSet.d.ts.map +1 -1
- package/build/browser/public/MediaSet.js +14 -0
- package/build/browser/public/MediaSet.js.map +1 -1
- package/build/esm/public/MediaSet.d.ts +20 -0
- package/build/esm/public/MediaSet.d.ts.map +1 -1
- package/build/esm/public/MediaSet.js +14 -0
- package/build/esm/public/MediaSet.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -22,6 +22,26 @@ export declare function read($ctx: $Client | $ClientContext | $OldClient | $OldC
|
|
|
22
22
|
ReadToken?: _Core.MediaItemReadToken | undefined;
|
|
23
23
|
}
|
|
24
24
|
]): Promise<Response>;
|
|
25
|
+
/**
|
|
26
|
+
* Gets the content of an original file uploaded to the media item, even if it was transformed on upload due to being an additional input format.
|
|
27
|
+
*
|
|
28
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
|
|
29
|
+
*
|
|
30
|
+
* @beta
|
|
31
|
+
*
|
|
32
|
+
* Required Scopes: [api:mediasets-read]
|
|
33
|
+
* URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}/original
|
|
34
|
+
*/
|
|
35
|
+
export declare function readOriginal($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
36
|
+
mediaSetRid: _Core.MediaSetRid,
|
|
37
|
+
mediaItemRid: _Core.MediaItemRid,
|
|
38
|
+
$queryParams?: {
|
|
39
|
+
preview?: _Core.PreviewMode | undefined;
|
|
40
|
+
},
|
|
41
|
+
$headerParams?: {
|
|
42
|
+
ReadToken?: _Core.MediaItemReadToken | undefined;
|
|
43
|
+
}
|
|
44
|
+
]): Promise<Response>;
|
|
25
45
|
/**
|
|
26
46
|
* Gets information about the media item.
|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1C;AAYD;;;;;;;;;GASG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,WAAW,EAAE,KAAK,CAAC,WAAW;IAE9B,YAAY,CAAC,EAAE;QACb,UAAU,CAAC,EAAE,UAAU,CAAC,UAAU,GAAG,SAAS,CAAC;QAC/C,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,CAEnC;AAUD;;;;;;;;;GASG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,WAAW,EAAE,KAAK,CAAC,WAAW;IAC9B,aAAa,EAAE,UAAU,CAAC,aAAa;IAEvC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,IAAI,CAAC,CAEf;AAUD;;;;;;;;;GASG;AACH,wBAAgB,KAAK,CACnB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,WAAW,EAAE,KAAK,CAAC,WAAW;IAC9B,aAAa,EAAE,UAAU,CAAC,aAAa;IAEvC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,IAAI,CAAC,CAEf"}
|
|
@@ -29,6 +29,20 @@ const _read = [0, "/v2/mediasets/{0}/items/{1}/content", 6,, "*/*"];
|
|
|
29
29
|
export function read($ctx, ...args) {
|
|
30
30
|
return $foundryPlatformFetch($ctx, _read, ...args);
|
|
31
31
|
}
|
|
32
|
+
const _readOriginal = [0, "/v2/mediasets/{0}/items/{1}/original", 6,, "*/*"];
|
|
33
|
+
/**
|
|
34
|
+
* Gets the content of an original file uploaded to the media item, even if it was transformed on upload due to being an additional input format.
|
|
35
|
+
*
|
|
36
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
|
|
37
|
+
*
|
|
38
|
+
* @beta
|
|
39
|
+
*
|
|
40
|
+
* Required Scopes: [api:mediasets-read]
|
|
41
|
+
* URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}/original
|
|
42
|
+
*/
|
|
43
|
+
export function readOriginal($ctx, ...args) {
|
|
44
|
+
return $foundryPlatformFetch($ctx, _readOriginal, ...args);
|
|
45
|
+
}
|
|
32
46
|
const _info = [0, "/v2/mediasets/{0}/items/{1}", 6];
|
|
33
47
|
/**
|
|
34
48
|
* Gets information about the media item.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaSet.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_read","read","$ctx","args","_info","info","_reference","reference","_upload","upload","_create","create","_commit","commit","_abort","abort"],"sources":["MediaSet.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 _read = [0, \"/v2/mediasets/{0}/items/{1}/content\", 6, , \"*/*\"];\n/**\n * Gets the content of a media item.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-read]\n * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}/content\n */\nexport function read($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _read, ...args);\n}\nconst _info = [0, \"/v2/mediasets/{0}/items/{1}\", 6];\n/**\n * Gets information about the media item.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-read]\n * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}\n */\nexport function info($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _info, ...args);\n}\nconst _reference = [0, \"/v2/mediasets/{0}/items/{1}/reference\", 6];\n/**\n * Gets the [media reference](https://www.palantir.com/docs/foundry/data-integration/media-sets/#media-references) for this media item.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-read]\n * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}/reference\n */\nexport function reference($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _reference, ...args);\n}\nconst _upload = [1, \"/v2/mediasets/{0}/items\", 3, \"*/*\"];\n/**\n * Uploads a media item to an existing media set.\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 * A branch name, or branch rid, or view rid may optionally be specified. If none is specified, the item will be uploaded to the default branch. If more than one is specified, an error is thrown.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-write]\n * URL: /v2/mediasets/{mediaSetRid}/items\n */\nexport function upload($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _upload, ...args);\n}\nconst _create = [1, \"/v2/mediasets/{0}/transactions\", 2];\n/**\n * Creates a new transaction. Items uploaded to the media set while this transaction is open will not be reflected until the transaction is committed.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-write]\n * URL: /v2/mediasets/{mediaSetRid}/transactions\n */\nexport function create($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _create, ...args);\n}\nconst _commit = [1, \"/v2/mediasets/{0}/transactions/{1}/commit\", 2];\n/**\n * Commits an open transaction. On success, items uploaded to the media set during this transaction will become available.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-write]\n * URL: /v2/mediasets/{mediaSetRid}/transactions/{transactionId}/commit\n */\nexport function commit($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _commit, ...args);\n}\nconst _abort = [1, \"/v2/mediasets/{0}/transactions/{1}/abort\", 2];\n/**\n * Aborts an open transaction. Items uploaded to the media set during this transaction will be deleted.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-write]\n * URL: /v2/mediasets/{mediaSetRid}/transactions/{transactionId}/abort\n */\nexport function abort($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _abort, ...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,KAAK,GAAG,CAAC,CAAC,EAAE,qCAAqC,EAAE,CAAC,GAAI,KAAK,CAAC;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAChC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,KAAK,EAAE,GAAGG,IAAI,CAAC;AACtD;AACA,MAAMC,KAAK,GAAG,CAAC,CAAC,EAAE,6BAA6B,EAAE,CAAC,CAAC;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,
|
|
1
|
+
{"version":3,"file":"MediaSet.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_read","read","$ctx","args","_readOriginal","readOriginal","_info","info","_reference","reference","_upload","upload","_create","create","_commit","commit","_abort","abort"],"sources":["MediaSet.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 _read = [0, \"/v2/mediasets/{0}/items/{1}/content\", 6, , \"*/*\"];\n/**\n * Gets the content of a media item.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-read]\n * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}/content\n */\nexport function read($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _read, ...args);\n}\nconst _readOriginal = [0, \"/v2/mediasets/{0}/items/{1}/original\", 6, , \"*/*\"];\n/**\n * Gets the content of an original file uploaded to the media item, even if it was transformed on upload due to being an additional input format.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-read]\n * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}/original\n */\nexport function readOriginal($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _readOriginal, ...args);\n}\nconst _info = [0, \"/v2/mediasets/{0}/items/{1}\", 6];\n/**\n * Gets information about the media item.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-read]\n * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}\n */\nexport function info($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _info, ...args);\n}\nconst _reference = [0, \"/v2/mediasets/{0}/items/{1}/reference\", 6];\n/**\n * Gets the [media reference](https://www.palantir.com/docs/foundry/data-integration/media-sets/#media-references) for this media item.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-read]\n * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}/reference\n */\nexport function reference($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _reference, ...args);\n}\nconst _upload = [1, \"/v2/mediasets/{0}/items\", 3, \"*/*\"];\n/**\n * Uploads a media item to an existing media set.\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 * A branch name, or branch rid, or view rid may optionally be specified. If none is specified, the item will be uploaded to the default branch. If more than one is specified, an error is thrown.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-write]\n * URL: /v2/mediasets/{mediaSetRid}/items\n */\nexport function upload($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _upload, ...args);\n}\nconst _create = [1, \"/v2/mediasets/{0}/transactions\", 2];\n/**\n * Creates a new transaction. Items uploaded to the media set while this transaction is open will not be reflected until the transaction is committed.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-write]\n * URL: /v2/mediasets/{mediaSetRid}/transactions\n */\nexport function create($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _create, ...args);\n}\nconst _commit = [1, \"/v2/mediasets/{0}/transactions/{1}/commit\", 2];\n/**\n * Commits an open transaction. On success, items uploaded to the media set during this transaction will become available.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-write]\n * URL: /v2/mediasets/{mediaSetRid}/transactions/{transactionId}/commit\n */\nexport function commit($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _commit, ...args);\n}\nconst _abort = [1, \"/v2/mediasets/{0}/transactions/{1}/abort\", 2];\n/**\n * Aborts an open transaction. Items uploaded to the media set during this transaction will be deleted.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-write]\n * URL: /v2/mediasets/{mediaSetRid}/transactions/{transactionId}/abort\n */\nexport function abort($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _abort, ...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,KAAK,GAAG,CAAC,CAAC,EAAE,qCAAqC,EAAE,CAAC,GAAI,KAAK,CAAC;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAChC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,KAAK,EAAE,GAAGG,IAAI,CAAC;AACtD;AACA,MAAMC,aAAa,GAAG,CAAC,CAAC,EAAE,sCAAsC,EAAE,CAAC,GAAI,KAAK,CAAC;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,YAAYA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EACxC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,aAAa,EAAE,GAAGD,IAAI,CAAC;AAC9D;AACA,MAAMG,KAAK,GAAG,CAAC,CAAC,EAAE,6BAA6B,EAAE,CAAC,CAAC;AACnD;AAC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;AACxD;AACA,MAAMa,MAAM,GAAG,CAAC,CAAC,EAAE,0CAA0C,EAAE,CAAC,CAAC;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,KAAKA,CAACf,IAAI,EAAE,GAAGC,IAAI,EAAE;EACjC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEc,MAAM,EAAE,GAAGb,IAAI,CAAC;AACvD","ignoreList":[]}
|
|
@@ -22,6 +22,26 @@ export declare function read($ctx: $Client | $ClientContext | $OldClient | $OldC
|
|
|
22
22
|
ReadToken?: _Core.MediaItemReadToken | undefined;
|
|
23
23
|
}
|
|
24
24
|
]): Promise<Response>;
|
|
25
|
+
/**
|
|
26
|
+
* Gets the content of an original file uploaded to the media item, even if it was transformed on upload due to being an additional input format.
|
|
27
|
+
*
|
|
28
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
|
|
29
|
+
*
|
|
30
|
+
* @beta
|
|
31
|
+
*
|
|
32
|
+
* Required Scopes: [api:mediasets-read]
|
|
33
|
+
* URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}/original
|
|
34
|
+
*/
|
|
35
|
+
export declare function readOriginal($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
36
|
+
mediaSetRid: _Core.MediaSetRid,
|
|
37
|
+
mediaItemRid: _Core.MediaItemRid,
|
|
38
|
+
$queryParams?: {
|
|
39
|
+
preview?: _Core.PreviewMode | undefined;
|
|
40
|
+
},
|
|
41
|
+
$headerParams?: {
|
|
42
|
+
ReadToken?: _Core.MediaItemReadToken | undefined;
|
|
43
|
+
}
|
|
44
|
+
]): Promise<Response>;
|
|
25
45
|
/**
|
|
26
46
|
* Gets information about the media item.
|
|
27
47
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaSet.d.ts","sourceRoot":"","sources":["../../../src/public/MediaSet.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK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W,EAAE,KAAK,CAAC,WAAW;IAE9B,YAAY,CAAC,EAAE;QACb,UAAU,CAAC,EAAE,UAAU,CAAC,UAAU,GAAG,SAAS,CAAC;QAC/C,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,CAEnC;AAUD;;;;;;;;;GASG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,WAAW,EAAE,KAAK,CAAC,WAAW;IAC9B,aAAa,EAAE,UAAU,CAAC,aAAa;IAEvC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,IAAI,CAAC,CAEf;AAUD;;;;;;;;;GASG;AACH,wBAAgB,KAAK,CACnB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,WAAW,EAAE,KAAK,CAAC,WAAW;IAC9B,aAAa,EAAE,UAAU,CAAC,aAAa;IAEvC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,IAAI,CAAC,CAEf"}
|
|
@@ -29,6 +29,20 @@ const _read = [0, "/v2/mediasets/{0}/items/{1}/content", 6,, "*/*"];
|
|
|
29
29
|
export function read($ctx, ...args) {
|
|
30
30
|
return $foundryPlatformFetch($ctx, _read, ...args);
|
|
31
31
|
}
|
|
32
|
+
const _readOriginal = [0, "/v2/mediasets/{0}/items/{1}/original", 6,, "*/*"];
|
|
33
|
+
/**
|
|
34
|
+
* Gets the content of an original file uploaded to the media item, even if it was transformed on upload due to being an additional input format.
|
|
35
|
+
*
|
|
36
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
|
|
37
|
+
*
|
|
38
|
+
* @beta
|
|
39
|
+
*
|
|
40
|
+
* Required Scopes: [api:mediasets-read]
|
|
41
|
+
* URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}/original
|
|
42
|
+
*/
|
|
43
|
+
export function readOriginal($ctx, ...args) {
|
|
44
|
+
return $foundryPlatformFetch($ctx, _readOriginal, ...args);
|
|
45
|
+
}
|
|
32
46
|
const _info = [0, "/v2/mediasets/{0}/items/{1}", 6];
|
|
33
47
|
/**
|
|
34
48
|
* Gets information about the media item.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaSet.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_read","read","$ctx","args","_info","info","_reference","reference","_upload","upload","_create","create","_commit","commit","_abort","abort"],"sources":["MediaSet.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 _read = [0, \"/v2/mediasets/{0}/items/{1}/content\", 6, , \"*/*\"];\n/**\n * Gets the content of a media item.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-read]\n * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}/content\n */\nexport function read($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _read, ...args);\n}\nconst _info = [0, \"/v2/mediasets/{0}/items/{1}\", 6];\n/**\n * Gets information about the media item.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-read]\n * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}\n */\nexport function info($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _info, ...args);\n}\nconst _reference = [0, \"/v2/mediasets/{0}/items/{1}/reference\", 6];\n/**\n * Gets the [media reference](https://www.palantir.com/docs/foundry/data-integration/media-sets/#media-references) for this media item.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-read]\n * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}/reference\n */\nexport function reference($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _reference, ...args);\n}\nconst _upload = [1, \"/v2/mediasets/{0}/items\", 3, \"*/*\"];\n/**\n * Uploads a media item to an existing media set.\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 * A branch name, or branch rid, or view rid may optionally be specified. If none is specified, the item will be uploaded to the default branch. If more than one is specified, an error is thrown.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-write]\n * URL: /v2/mediasets/{mediaSetRid}/items\n */\nexport function upload($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _upload, ...args);\n}\nconst _create = [1, \"/v2/mediasets/{0}/transactions\", 2];\n/**\n * Creates a new transaction. Items uploaded to the media set while this transaction is open will not be reflected until the transaction is committed.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-write]\n * URL: /v2/mediasets/{mediaSetRid}/transactions\n */\nexport function create($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _create, ...args);\n}\nconst _commit = [1, \"/v2/mediasets/{0}/transactions/{1}/commit\", 2];\n/**\n * Commits an open transaction. On success, items uploaded to the media set during this transaction will become available.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-write]\n * URL: /v2/mediasets/{mediaSetRid}/transactions/{transactionId}/commit\n */\nexport function commit($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _commit, ...args);\n}\nconst _abort = [1, \"/v2/mediasets/{0}/transactions/{1}/abort\", 2];\n/**\n * Aborts an open transaction. Items uploaded to the media set during this transaction will be deleted.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-write]\n * URL: /v2/mediasets/{mediaSetRid}/transactions/{transactionId}/abort\n */\nexport function abort($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _abort, ...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,KAAK,GAAG,CAAC,CAAC,EAAE,qCAAqC,EAAE,CAAC,GAAI,KAAK,CAAC;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAChC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,KAAK,EAAE,GAAGG,IAAI,CAAC;AACtD;AACA,MAAMC,KAAK,GAAG,CAAC,CAAC,EAAE,6BAA6B,EAAE,CAAC,CAAC;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,
|
|
1
|
+
{"version":3,"file":"MediaSet.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_read","read","$ctx","args","_readOriginal","readOriginal","_info","info","_reference","reference","_upload","upload","_create","create","_commit","commit","_abort","abort"],"sources":["MediaSet.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 _read = [0, \"/v2/mediasets/{0}/items/{1}/content\", 6, , \"*/*\"];\n/**\n * Gets the content of a media item.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-read]\n * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}/content\n */\nexport function read($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _read, ...args);\n}\nconst _readOriginal = [0, \"/v2/mediasets/{0}/items/{1}/original\", 6, , \"*/*\"];\n/**\n * Gets the content of an original file uploaded to the media item, even if it was transformed on upload due to being an additional input format.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-read]\n * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}/original\n */\nexport function readOriginal($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _readOriginal, ...args);\n}\nconst _info = [0, \"/v2/mediasets/{0}/items/{1}\", 6];\n/**\n * Gets information about the media item.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-read]\n * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}\n */\nexport function info($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _info, ...args);\n}\nconst _reference = [0, \"/v2/mediasets/{0}/items/{1}/reference\", 6];\n/**\n * Gets the [media reference](https://www.palantir.com/docs/foundry/data-integration/media-sets/#media-references) for this media item.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-read]\n * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}/reference\n */\nexport function reference($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _reference, ...args);\n}\nconst _upload = [1, \"/v2/mediasets/{0}/items\", 3, \"*/*\"];\n/**\n * Uploads a media item to an existing media set.\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 * A branch name, or branch rid, or view rid may optionally be specified. If none is specified, the item will be uploaded to the default branch. If more than one is specified, an error is thrown.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-write]\n * URL: /v2/mediasets/{mediaSetRid}/items\n */\nexport function upload($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _upload, ...args);\n}\nconst _create = [1, \"/v2/mediasets/{0}/transactions\", 2];\n/**\n * Creates a new transaction. Items uploaded to the media set while this transaction is open will not be reflected until the transaction is committed.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-write]\n * URL: /v2/mediasets/{mediaSetRid}/transactions\n */\nexport function create($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _create, ...args);\n}\nconst _commit = [1, \"/v2/mediasets/{0}/transactions/{1}/commit\", 2];\n/**\n * Commits an open transaction. On success, items uploaded to the media set during this transaction will become available.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-write]\n * URL: /v2/mediasets/{mediaSetRid}/transactions/{transactionId}/commit\n */\nexport function commit($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _commit, ...args);\n}\nconst _abort = [1, \"/v2/mediasets/{0}/transactions/{1}/abort\", 2];\n/**\n * Aborts an open transaction. Items uploaded to the media set during this transaction will be deleted.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-write]\n * URL: /v2/mediasets/{mediaSetRid}/transactions/{transactionId}/abort\n */\nexport function abort($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _abort, ...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,KAAK,GAAG,CAAC,CAAC,EAAE,qCAAqC,EAAE,CAAC,GAAI,KAAK,CAAC;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAChC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,KAAK,EAAE,GAAGG,IAAI,CAAC;AACtD;AACA,MAAMC,aAAa,GAAG,CAAC,CAAC,EAAE,sCAAsC,EAAE,CAAC,GAAI,KAAK,CAAC;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,YAAYA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EACxC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,aAAa,EAAE,GAAGD,IAAI,CAAC;AAC9D;AACA,MAAMG,KAAK,GAAG,CAAC,CAAC,EAAE,6BAA6B,EAAE,CAAC,CAAC;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EAChC,OAAOJ,qBAAqB,CAACG,IAAI,EA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C,KAAKA,CAACf,IAAI,EAAE,GAAGC,IAAI,EAAE;EACjC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEc,MAAM,EAAE,GAAGb,IAAI,CAAC;AACvD","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osdk/foundry.mediasets",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.17.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@osdk/shared.client": "^1.0.1",
|
|
23
23
|
"@osdk/shared.client2": "^1.0.0",
|
|
24
24
|
"@osdk/shared.net.platformapi": "~1.3.0",
|
|
25
|
-
"@osdk/foundry.core": "2.
|
|
25
|
+
"@osdk/foundry.core": "2.17.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.
|
|
48
|
+
"minVersion": "1.1124.0",
|
|
49
49
|
"maxVersion": "1.x.x",
|
|
50
50
|
"optional": false
|
|
51
51
|
}
|