@osdk/foundry.mediasets 2.24.0 → 2.25.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 +13 -0
- package/build/browser/_errors.d.ts +13 -0
- package/build/browser/_errors.d.ts.map +1 -1
- package/build/browser/index.d.ts +1 -1
- package/build/browser/index.d.ts.map +1 -1
- package/build/browser/public/MediaSet.d.ts +0 -18
- package/build/browser/public/MediaSet.d.ts.map +1 -1
- package/build/browser/public/MediaSet.js +0 -18
- package/build/browser/public/MediaSet.js.map +1 -1
- package/build/esm/_errors.d.ts +13 -0
- package/build/esm/_errors.d.ts.map +1 -1
- package/build/esm/index.d.ts +1 -1
- package/build/esm/index.d.ts.map +1 -1
- package/build/esm/public/MediaSet.d.ts +0 -18
- package/build/esm/public/MediaSet.d.ts.map +1 -1
- package/build/esm/public/MediaSet.js +0 -18
- package/build/esm/public/MediaSet.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @osdk/foundry.mediasets
|
|
2
2
|
|
|
3
|
+
## 2.25.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8260ef7: Regenerate platform SDKs
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [8260ef7]
|
|
12
|
+
- Updated dependencies [cbb2222]
|
|
13
|
+
- @osdk/foundry.core@2.25.0
|
|
14
|
+
- @osdk/shared.net.platformapi@1.4.0
|
|
15
|
+
|
|
3
16
|
## 2.24.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -52,4 +52,17 @@ export interface MediaSetNotFound {
|
|
|
52
52
|
mediaSetRid: unknown;
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* The given media set requires paths but no path was provided.
|
|
57
|
+
*
|
|
58
|
+
* Log Safety: SAFE
|
|
59
|
+
*/
|
|
60
|
+
export interface MissingMediaItemPath {
|
|
61
|
+
errorCode: "INVALID_ARGUMENT";
|
|
62
|
+
errorName: "MissingMediaItemPath";
|
|
63
|
+
errorInstanceId: string;
|
|
64
|
+
parameters: {
|
|
65
|
+
mediaSetRid: unknown;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
55
68
|
//# sourceMappingURL=_errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_errors.d.ts","sourceRoot":"","sources":["../../src/_errors.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D,aAAa,CAAC,EAAE,CAAC,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC7C,SAAS,EAAE,kBAAkB,CAAC;IAC9B,SAAS,EAAE,gCAAgC,CAAC;IAC5C,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,EAAE,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,qCAAqC;IACpD,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,uCAAuC,CAAC;IACnD,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,WAAW,EAAE,OAAO,CAAC;KACtB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,WAAW,CAAC;IACvB,SAAS,EAAE,mBAAmB,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,WAAW,EAAE,OAAO,CAAC;QACrB,YAAY,EAAE,OAAO,CAAC;KACvB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,WAAW,CAAC;IACvB,SAAS,EAAE,kBAAkB,CAAC;IAC9B,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAA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KACtB,CAAC;CACH"}
|
package/build/browser/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type { BranchName, BranchRid, GetMediaItemInfoResponse, GetMediaItemRidByPathResponse, LogicalTimestamp, MediaAttribution, MediaSet, MediaSetName, PutMediaItemResponse, TransactionId, } from "./_components.js";
|
|
2
|
-
export type { ConflictingMediaSetIdentifiers, GetMediaItemRidByPathPermissionDenied, MediaItemNotFound, MediaSetNotFound, } from "./_errors.js";
|
|
2
|
+
export type { ConflictingMediaSetIdentifiers, GetMediaItemRidByPathPermissionDenied, MediaItemNotFound, MediaSetNotFound, MissingMediaItemPath, } from "./_errors.js";
|
|
3
3
|
export * as MediaSets from "./public/MediaSet.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,UAAU,EACV,SAAS,EACT,wBAAwB,EACxB,6BAA6B,EAC7B,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACpB,aAAa,GACd,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,8BAA8B,EAC9B,qCAAqC,EACrC,iBAAiB,EACjB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,UAAU,EACV,SAAS,EACT,wBAAwB,EACxB,6BAA6B,EAC7B,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACpB,aAAa,GACd,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,8BAA8B,EAC9B,qCAAqC,EACrC,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC"}
|
|
@@ -5,8 +5,6 @@ import type * as _MediaSets from "../_components.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* Gets the content of a media item.
|
|
7
7
|
*
|
|
8
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
|
|
9
|
-
*
|
|
10
8
|
* @beta
|
|
11
9
|
*
|
|
12
10
|
* Required Scopes: [api:mediasets-read]
|
|
@@ -25,8 +23,6 @@ export declare function read($ctx: $Client | $ClientContext | $OldClient | $OldC
|
|
|
25
23
|
/**
|
|
26
24
|
* 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
25
|
*
|
|
28
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
|
|
29
|
-
*
|
|
30
26
|
* @beta
|
|
31
27
|
*
|
|
32
28
|
* Required Scopes: [api:mediasets-read]
|
|
@@ -45,8 +41,6 @@ export declare function readOriginal($ctx: $Client | $ClientContext | $OldClient
|
|
|
45
41
|
/**
|
|
46
42
|
* Gets information about the media item.
|
|
47
43
|
*
|
|
48
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
|
|
49
|
-
*
|
|
50
44
|
* @beta
|
|
51
45
|
*
|
|
52
46
|
* Required Scopes: [api:mediasets-read]
|
|
@@ -65,8 +59,6 @@ export declare function info($ctx: $Client | $ClientContext | $OldClient | $OldC
|
|
|
65
59
|
/**
|
|
66
60
|
* Gets the [media reference](https://www.palantir.com/docs/foundry/data-integration/media-sets/#media-references) for this media item.
|
|
67
61
|
*
|
|
68
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
|
|
69
|
-
*
|
|
70
62
|
* @beta
|
|
71
63
|
*
|
|
72
64
|
* Required Scopes: [api:mediasets-read]
|
|
@@ -85,8 +77,6 @@ export declare function reference($ctx: $Client | $ClientContext | $OldClient |
|
|
|
85
77
|
/**
|
|
86
78
|
* Returns the media item RID for the media item with the specified path.
|
|
87
79
|
*
|
|
88
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
|
|
89
|
-
*
|
|
90
80
|
* @beta
|
|
91
81
|
*
|
|
92
82
|
* Required Scopes: [api:mediasets-read]
|
|
@@ -107,8 +97,6 @@ export declare function getRidByPath($ctx: $Client | $ClientContext | $OldClient
|
|
|
107
97
|
* The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.
|
|
108
98
|
* 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.
|
|
109
99
|
*
|
|
110
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
|
|
111
|
-
*
|
|
112
100
|
* @beta
|
|
113
101
|
*
|
|
114
102
|
* Required Scopes: [api:mediasets-write]
|
|
@@ -129,8 +117,6 @@ export declare function upload($ctx: $Client | $ClientContext | $OldClient | $Ol
|
|
|
129
117
|
/**
|
|
130
118
|
* Creates a new transaction. Items uploaded to the media set while this transaction is open will not be reflected until the transaction is committed.
|
|
131
119
|
*
|
|
132
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
|
|
133
|
-
*
|
|
134
120
|
* @beta
|
|
135
121
|
*
|
|
136
122
|
* Required Scopes: [api:mediasets-write]
|
|
@@ -146,8 +132,6 @@ export declare function create($ctx: $Client | $ClientContext | $OldClient | $Ol
|
|
|
146
132
|
/**
|
|
147
133
|
* Commits an open transaction. On success, items uploaded to the media set during this transaction will become available.
|
|
148
134
|
*
|
|
149
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
|
|
150
|
-
*
|
|
151
135
|
* @beta
|
|
152
136
|
*
|
|
153
137
|
* Required Scopes: [api:mediasets-write]
|
|
@@ -163,8 +147,6 @@ export declare function commit($ctx: $Client | $ClientContext | $OldClient | $Ol
|
|
|
163
147
|
/**
|
|
164
148
|
* Aborts an open transaction. Items uploaded to the media set during this transaction will be deleted.
|
|
165
149
|
*
|
|
166
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
|
|
167
|
-
*
|
|
168
150
|
* @beta
|
|
169
151
|
*
|
|
170
152
|
* Required Scopes: [api:mediasets-write]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaSet.d.ts","sourceRoot":"","sources":["../../../src/public/MediaSet.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,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;AAG9B,OAAO,KAAK,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAarD
|
|
1
|
+
{"version":3,"file":"MediaSet.d.ts","sourceRoot":"","sources":["../../../src/public/MediaSet.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,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;AAG9B,OAAO,KAAK,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAarD;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAClB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,WAAW,EAAE,KAAK,CAAC,WAAW;IAC9B,YAAY,EAAE,KAAK,CAAC,YAAY;IAEhC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,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ets/{0}/items/{1}/content", 6,, "*/*"];
|
|
|
19
19
|
/**
|
|
20
20
|
* Gets the content of a media item.
|
|
21
21
|
*
|
|
22
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
|
|
23
|
-
*
|
|
24
22
|
* @beta
|
|
25
23
|
*
|
|
26
24
|
* Required Scopes: [api:mediasets-read]
|
|
@@ -33,8 +31,6 @@ const _readOriginal = [0, "/v2/mediasets/{0}/items/{1}/original", 6,, "*/*"];
|
|
|
33
31
|
/**
|
|
34
32
|
* 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
33
|
*
|
|
36
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
|
|
37
|
-
*
|
|
38
34
|
* @beta
|
|
39
35
|
*
|
|
40
36
|
* Required Scopes: [api:mediasets-read]
|
|
@@ -47,8 +43,6 @@ const _info = [0, "/v2/mediasets/{0}/items/{1}", 6];
|
|
|
47
43
|
/**
|
|
48
44
|
* Gets information about the media item.
|
|
49
45
|
*
|
|
50
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
|
|
51
|
-
*
|
|
52
46
|
* @beta
|
|
53
47
|
*
|
|
54
48
|
* Required Scopes: [api:mediasets-read]
|
|
@@ -61,8 +55,6 @@ const _reference = [0, "/v2/mediasets/{0}/items/{1}/reference", 6];
|
|
|
61
55
|
/**
|
|
62
56
|
* Gets the [media reference](https://www.palantir.com/docs/foundry/data-integration/media-sets/#media-references) for this media item.
|
|
63
57
|
*
|
|
64
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
|
|
65
|
-
*
|
|
66
58
|
* @beta
|
|
67
59
|
*
|
|
68
60
|
* Required Scopes: [api:mediasets-read]
|
|
@@ -75,8 +67,6 @@ const _getRidByPath = [0, "/v2/mediasets/{0}/items/getRidByPath", 2];
|
|
|
75
67
|
/**
|
|
76
68
|
* Returns the media item RID for the media item with the specified path.
|
|
77
69
|
*
|
|
78
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
|
|
79
|
-
*
|
|
80
70
|
* @beta
|
|
81
71
|
*
|
|
82
72
|
* Required Scopes: [api:mediasets-read]
|
|
@@ -91,8 +81,6 @@ const _upload = [1, "/v2/mediasets/{0}/items", 3, "*/*"];
|
|
|
91
81
|
* The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.
|
|
92
82
|
* 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.
|
|
93
83
|
*
|
|
94
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
|
|
95
|
-
*
|
|
96
84
|
* @beta
|
|
97
85
|
*
|
|
98
86
|
* Required Scopes: [api:mediasets-write]
|
|
@@ -105,8 +93,6 @@ const _create = [1, "/v2/mediasets/{0}/transactions", 2];
|
|
|
105
93
|
/**
|
|
106
94
|
* Creates a new transaction. Items uploaded to the media set while this transaction is open will not be reflected until the transaction is committed.
|
|
107
95
|
*
|
|
108
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
|
|
109
|
-
*
|
|
110
96
|
* @beta
|
|
111
97
|
*
|
|
112
98
|
* Required Scopes: [api:mediasets-write]
|
|
@@ -119,8 +105,6 @@ const _commit = [1, "/v2/mediasets/{0}/transactions/{1}/commit", 2];
|
|
|
119
105
|
/**
|
|
120
106
|
* Commits an open transaction. On success, items uploaded to the media set during this transaction will become available.
|
|
121
107
|
*
|
|
122
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
|
|
123
|
-
*
|
|
124
108
|
* @beta
|
|
125
109
|
*
|
|
126
110
|
* Required Scopes: [api:mediasets-write]
|
|
@@ -133,8 +117,6 @@ const _abort = [1, "/v2/mediasets/{0}/transactions/{1}/abort", 2];
|
|
|
133
117
|
/**
|
|
134
118
|
* Aborts an open transaction. Items uploaded to the media set during this transaction will be deleted.
|
|
135
119
|
*
|
|
136
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
|
|
137
|
-
*
|
|
138
120
|
* @beta
|
|
139
121
|
*
|
|
140
122
|
* Required Scopes: [api:mediasets-write]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaSet.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_read","read","$ctx","args","_readOriginal","readOriginal","_info","info","_reference","reference","_getRidByPath","getRidByPath","_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 *
|
|
1
|
+
{"version":3,"file":"MediaSet.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_read","read","$ctx","args","_readOriginal","readOriginal","_info","info","_reference","reference","_getRidByPath","getRidByPath","_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 * @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 * @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 * @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 * @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 _getRidByPath = [0, \"/v2/mediasets/{0}/items/getRidByPath\", 2];\n/**\n * Returns the media item RID for the media item with the specified path.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-read]\n * URL: /v2/mediasets/{mediaSetRid}/items/getRidByPath\n */\nexport function getRidByPath($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getRidByPath, ...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 * @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 * @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 * @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 * @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,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ACxC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,aAAa,EAAE,GAAGP,IAAI,CAAC;AAC9D;AACA,MAAMS,OAAO,GAAG,CAAC,CAAC,EAAE,yBAAyB,EAAE,CAAC,EAAE,KAAK,CAAC;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACX,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEU,OAAO,EAAE,GAAGT,IAAI,CAAC;AACxD;AACA,MAAMW,OAAO,GAAG,CAAC,CAAC,EAAE,gCAAgC,EAAE,CAAC,CAAC;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACb,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEY,OAAO,EAAE,GAAGX,IAAI,CAAC;AACxD;AACA,MAAMa,OAAO,GAAG,CAAC,CAAC,EAAE,2CAA2C,EAAE,CAAC,CAAC;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACf,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEc,OAAO,EAAE,GAAGb,IAAI,CAAC;AACxD;AACA,MAAMe,MAAM,GAAG,CAAC,CAAC,EAAE,0CAA0C,EAAE,CAAC,CAAC;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,KAAKA,CAACjB,IAAI,EAAE,GAAGC,IAAI,EAAE;EACjC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEgB,MAAM,EAAE,GAAGf,IAAI,CAAC;AACvD","ignoreList":[]}
|
package/build/esm/_errors.d.ts
CHANGED
|
@@ -52,4 +52,17 @@ export interface MediaSetNotFound {
|
|
|
52
52
|
mediaSetRid: unknown;
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* The given media set requires paths but no path was provided.
|
|
57
|
+
*
|
|
58
|
+
* Log Safety: SAFE
|
|
59
|
+
*/
|
|
60
|
+
export interface MissingMediaItemPath {
|
|
61
|
+
errorCode: "INVALID_ARGUMENT";
|
|
62
|
+
errorName: "MissingMediaItemPath";
|
|
63
|
+
errorInstanceId: string;
|
|
64
|
+
parameters: {
|
|
65
|
+
mediaSetRid: unknown;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
55
68
|
//# sourceMappingURL=_errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_errors.d.ts","sourceRoot":"","sources":["../../src/_errors.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D,aAAa,CAAC,EAAE,CAAC,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC7C,SAAS,EAAE,kBAAkB,CAAC;IAC9B,SAAS,EAAE,gCAAgC,CAAC;IAC5C,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,EAAE,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,qCAAqC;IACpD,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,uCAAuC,CAAC;IACnD,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,WAAW,EAAE,OAAO,CAAC;KACtB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,WAAW,CAAC;IACvB,SAAS,EAAE,mBAAmB,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,WAAW,EAAE,OAAO,CAAC;QACrB,YAAY,EAAE,OAAO,CAAC;KACvB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,W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BAAsB,CAAC;IAClC,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,WAAW,EAAE,OAAO,CAAC;KACtB,CAAC;CACH"}
|
package/build/esm/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type { BranchName, BranchRid, GetMediaItemInfoResponse, GetMediaItemRidByPathResponse, LogicalTimestamp, MediaAttribution, MediaSet, MediaSetName, PutMediaItemResponse, TransactionId, } from "./_components.js";
|
|
2
|
-
export type { ConflictingMediaSetIdentifiers, GetMediaItemRidByPathPermissionDenied, MediaItemNotFound, MediaSetNotFound, } from "./_errors.js";
|
|
2
|
+
export type { ConflictingMediaSetIdentifiers, GetMediaItemRidByPathPermissionDenied, MediaItemNotFound, MediaSetNotFound, MissingMediaItemPath, } from "./_errors.js";
|
|
3
3
|
export * as MediaSets from "./public/MediaSet.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
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,EACV,UAAU,EACV,SAAS,EACT,wBAAwB,EACxB,6BAA6B,EAC7B,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACpB,aAAa,GACd,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,8BAA8B,EAC9B,qCAAqC,EACrC,iBAAiB,EACjB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,UAAU,EACV,SAAS,EACT,wBAAwB,EACxB,6BAA6B,EAC7B,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACpB,aAAa,GACd,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,8BAA8B,EAC9B,qCAAqC,EACrC,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC"}
|
|
@@ -5,8 +5,6 @@ import type * as _MediaSets from "../_components.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* Gets the content of a media item.
|
|
7
7
|
*
|
|
8
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
|
|
9
|
-
*
|
|
10
8
|
* @beta
|
|
11
9
|
*
|
|
12
10
|
* Required Scopes: [api:mediasets-read]
|
|
@@ -25,8 +23,6 @@ export declare function read($ctx: $Client | $ClientContext | $OldClient | $OldC
|
|
|
25
23
|
/**
|
|
26
24
|
* 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
25
|
*
|
|
28
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
|
|
29
|
-
*
|
|
30
26
|
* @beta
|
|
31
27
|
*
|
|
32
28
|
* Required Scopes: [api:mediasets-read]
|
|
@@ -45,8 +41,6 @@ export declare function readOriginal($ctx: $Client | $ClientContext | $OldClient
|
|
|
45
41
|
/**
|
|
46
42
|
* Gets information about the media item.
|
|
47
43
|
*
|
|
48
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
|
|
49
|
-
*
|
|
50
44
|
* @beta
|
|
51
45
|
*
|
|
52
46
|
* Required Scopes: [api:mediasets-read]
|
|
@@ -65,8 +59,6 @@ export declare function info($ctx: $Client | $ClientContext | $OldClient | $OldC
|
|
|
65
59
|
/**
|
|
66
60
|
* Gets the [media reference](https://www.palantir.com/docs/foundry/data-integration/media-sets/#media-references) for this media item.
|
|
67
61
|
*
|
|
68
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
|
|
69
|
-
*
|
|
70
62
|
* @beta
|
|
71
63
|
*
|
|
72
64
|
* Required Scopes: [api:mediasets-read]
|
|
@@ -85,8 +77,6 @@ export declare function reference($ctx: $Client | $ClientContext | $OldClient |
|
|
|
85
77
|
/**
|
|
86
78
|
* Returns the media item RID for the media item with the specified path.
|
|
87
79
|
*
|
|
88
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
|
|
89
|
-
*
|
|
90
80
|
* @beta
|
|
91
81
|
*
|
|
92
82
|
* Required Scopes: [api:mediasets-read]
|
|
@@ -107,8 +97,6 @@ export declare function getRidByPath($ctx: $Client | $ClientContext | $OldClient
|
|
|
107
97
|
* The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.
|
|
108
98
|
* 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.
|
|
109
99
|
*
|
|
110
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
|
|
111
|
-
*
|
|
112
100
|
* @beta
|
|
113
101
|
*
|
|
114
102
|
* Required Scopes: [api:mediasets-write]
|
|
@@ -129,8 +117,6 @@ export declare function upload($ctx: $Client | $ClientContext | $OldClient | $Ol
|
|
|
129
117
|
/**
|
|
130
118
|
* Creates a new transaction. Items uploaded to the media set while this transaction is open will not be reflected until the transaction is committed.
|
|
131
119
|
*
|
|
132
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
|
|
133
|
-
*
|
|
134
120
|
* @beta
|
|
135
121
|
*
|
|
136
122
|
* Required Scopes: [api:mediasets-write]
|
|
@@ -146,8 +132,6 @@ export declare function create($ctx: $Client | $ClientContext | $OldClient | $Ol
|
|
|
146
132
|
/**
|
|
147
133
|
* Commits an open transaction. On success, items uploaded to the media set during this transaction will become available.
|
|
148
134
|
*
|
|
149
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
|
|
150
|
-
*
|
|
151
135
|
* @beta
|
|
152
136
|
*
|
|
153
137
|
* Required Scopes: [api:mediasets-write]
|
|
@@ -163,8 +147,6 @@ export declare function commit($ctx: $Client | $ClientContext | $OldClient | $Ol
|
|
|
163
147
|
/**
|
|
164
148
|
* Aborts an open transaction. Items uploaded to the media set during this transaction will be deleted.
|
|
165
149
|
*
|
|
166
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
|
|
167
|
-
*
|
|
168
150
|
* @beta
|
|
169
151
|
*
|
|
170
152
|
* Required Scopes: [api:mediasets-write]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaSet.d.ts","sourceRoot":"","sources":["../../../src/public/MediaSet.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,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;AAG9B,OAAO,KAAK,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAarD
|
|
1
|
+
{"version":3,"file":"MediaSet.d.ts","sourceRoot":"","sources":["../../../src/public/MediaSet.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,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;AAG9B,OAAO,KAAK,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAarD;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAClB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,WAAW,EAAE,KAAK,CAAC,WAAW;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WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,IAAI,CAAC,CAEf"}
|
|
@@ -19,8 +19,6 @@ const _read = [0, "/v2/mediasets/{0}/items/{1}/content", 6,, "*/*"];
|
|
|
19
19
|
/**
|
|
20
20
|
* Gets the content of a media item.
|
|
21
21
|
*
|
|
22
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
|
|
23
|
-
*
|
|
24
22
|
* @beta
|
|
25
23
|
*
|
|
26
24
|
* Required Scopes: [api:mediasets-read]
|
|
@@ -33,8 +31,6 @@ const _readOriginal = [0, "/v2/mediasets/{0}/items/{1}/original", 6,, "*/*"];
|
|
|
33
31
|
/**
|
|
34
32
|
* 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
33
|
*
|
|
36
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
|
|
37
|
-
*
|
|
38
34
|
* @beta
|
|
39
35
|
*
|
|
40
36
|
* Required Scopes: [api:mediasets-read]
|
|
@@ -47,8 +43,6 @@ const _info = [0, "/v2/mediasets/{0}/items/{1}", 6];
|
|
|
47
43
|
/**
|
|
48
44
|
* Gets information about the media item.
|
|
49
45
|
*
|
|
50
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
|
|
51
|
-
*
|
|
52
46
|
* @beta
|
|
53
47
|
*
|
|
54
48
|
* Required Scopes: [api:mediasets-read]
|
|
@@ -61,8 +55,6 @@ const _reference = [0, "/v2/mediasets/{0}/items/{1}/reference", 6];
|
|
|
61
55
|
/**
|
|
62
56
|
* Gets the [media reference](https://www.palantir.com/docs/foundry/data-integration/media-sets/#media-references) for this media item.
|
|
63
57
|
*
|
|
64
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
|
|
65
|
-
*
|
|
66
58
|
* @beta
|
|
67
59
|
*
|
|
68
60
|
* Required Scopes: [api:mediasets-read]
|
|
@@ -75,8 +67,6 @@ const _getRidByPath = [0, "/v2/mediasets/{0}/items/getRidByPath", 2];
|
|
|
75
67
|
/**
|
|
76
68
|
* Returns the media item RID for the media item with the specified path.
|
|
77
69
|
*
|
|
78
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
|
|
79
|
-
*
|
|
80
70
|
* @beta
|
|
81
71
|
*
|
|
82
72
|
* Required Scopes: [api:mediasets-read]
|
|
@@ -91,8 +81,6 @@ const _upload = [1, "/v2/mediasets/{0}/items", 3, "*/*"];
|
|
|
91
81
|
* The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.
|
|
92
82
|
* 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.
|
|
93
83
|
*
|
|
94
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
|
|
95
|
-
*
|
|
96
84
|
* @beta
|
|
97
85
|
*
|
|
98
86
|
* Required Scopes: [api:mediasets-write]
|
|
@@ -105,8 +93,6 @@ const _create = [1, "/v2/mediasets/{0}/transactions", 2];
|
|
|
105
93
|
/**
|
|
106
94
|
* Creates a new transaction. Items uploaded to the media set while this transaction is open will not be reflected until the transaction is committed.
|
|
107
95
|
*
|
|
108
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
|
|
109
|
-
*
|
|
110
96
|
* @beta
|
|
111
97
|
*
|
|
112
98
|
* Required Scopes: [api:mediasets-write]
|
|
@@ -119,8 +105,6 @@ const _commit = [1, "/v2/mediasets/{0}/transactions/{1}/commit", 2];
|
|
|
119
105
|
/**
|
|
120
106
|
* Commits an open transaction. On success, items uploaded to the media set during this transaction will become available.
|
|
121
107
|
*
|
|
122
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
|
|
123
|
-
*
|
|
124
108
|
* @beta
|
|
125
109
|
*
|
|
126
110
|
* Required Scopes: [api:mediasets-write]
|
|
@@ -133,8 +117,6 @@ const _abort = [1, "/v2/mediasets/{0}/transactions/{1}/abort", 2];
|
|
|
133
117
|
/**
|
|
134
118
|
* Aborts an open transaction. Items uploaded to the media set during this transaction will be deleted.
|
|
135
119
|
*
|
|
136
|
-
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
|
|
137
|
-
*
|
|
138
120
|
* @beta
|
|
139
121
|
*
|
|
140
122
|
* Required Scopes: [api:mediasets-write]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaSet.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_read","read","$ctx","args","_readOriginal","readOriginal","_info","info","_reference","reference","_getRidByPath","getRidByPath","_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 *
|
|
1
|
+
{"version":3,"file":"MediaSet.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_read","read","$ctx","args","_readOriginal","readOriginal","_info","info","_reference","reference","_getRidByPath","getRidByPath","_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 * @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 * @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 * @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 * @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 _getRidByPath = [0, \"/v2/mediasets/{0}/items/getRidByPath\", 2];\n/**\n * Returns the media item RID for the media item with the specified path.\n *\n * @beta\n *\n * Required Scopes: [api:mediasets-read]\n * URL: /v2/mediasets/{mediaSetRid}/items/getRidByPath\n */\nexport function getRidByPath($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getRidByPath, ...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 * @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 * @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 * @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 * @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, _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package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osdk/foundry.mediasets",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.25.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/foundry.core": "2.
|
|
25
|
-
"@osdk/shared.net.platformapi": "~1.
|
|
24
|
+
"@osdk/foundry.core": "2.25.0",
|
|
25
|
+
"@osdk/shared.net.platformapi": "~1.4.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.1241.0",
|
|
49
49
|
"maxVersion": "1.x.x",
|
|
50
50
|
"optional": false
|
|
51
51
|
}
|