@osdk/internal.foundry.mediasets 2.8.0 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @osdk/internal.foundry.mediasets
2
2
 
3
+ ## 2.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 70eca2d: Updating platform sdks with new media reference capabilities and other improvements.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [70eca2d]
12
+ - @osdk/internal.foundry.core@2.9.0
13
+
3
14
  ## 2.8.0
4
15
 
5
16
  ### Minor Changes
@@ -1,40 +1,58 @@
1
1
  import type * as _Core from "@osdk/internal.foundry.core";
2
2
  import type { SharedClient as $OldClient, SharedClientContext as $OldClientContext } from "@osdk/shared.client";
3
3
  import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client2";
4
- import type * as _Mediasets from "../_components.js";
4
+ import type * as _MediaSets from "../_components.js";
5
5
  /**
6
6
  * Gets the content of a media item.
7
7
  *
8
8
  * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
9
9
  *
10
- * @alpha
10
+ * @beta
11
11
  *
12
12
  * Required Scopes: [api:mediasets-read]
13
- * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}
13
+ * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}/content
14
14
  */
15
- export declare function read($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [mediaSetRid: _Core.MediaSetRid, mediaItemRid: _Core.MediaItemRid]): Promise<Response>;
15
+ export declare function read($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
16
+ mediaSetRid: _Core.MediaSetRid,
17
+ mediaItemRid: _Core.MediaItemRid,
18
+ $queryParams?: {
19
+ preview?: _Core.PreviewMode | undefined;
20
+ }
21
+ ]): Promise<Response>;
16
22
  /**
17
23
  * Gets information about the media item.
18
24
  *
19
25
  * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
20
26
  *
21
- * @alpha
27
+ * @beta
22
28
  *
23
29
  * Required Scopes: [api:mediasets-read]
24
- * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}/info
30
+ * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}
25
31
  */
26
- export declare function info($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [mediaSetRid: _Core.MediaSetRid, mediaItemRid: _Core.MediaItemRid]): Promise<_Mediasets.GetMediaItemInfoResponse>;
32
+ export declare function info($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
33
+ mediaSetRid: _Core.MediaSetRid,
34
+ mediaItemRid: _Core.MediaItemRid,
35
+ $queryParams?: {
36
+ preview?: _Core.PreviewMode | undefined;
37
+ }
38
+ ]): Promise<_MediaSets.GetMediaItemInfoResponse>;
27
39
  /**
28
40
  * Gets the [media reference](https://www.palantir.com/docs/foundry/data-integration/media-sets/#media-references) for this media item.
29
41
  *
30
42
  * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
31
43
  *
32
- * @alpha
44
+ * @beta
33
45
  *
34
46
  * Required Scopes: [api:mediasets-read]
35
47
  * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}/reference
36
48
  */
37
- export declare function reference($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [mediaSetRid: _Core.MediaSetRid, mediaItemRid: _Core.MediaItemRid]): Promise<_Core.MediaReference>;
49
+ export declare function reference($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
50
+ mediaSetRid: _Core.MediaSetRid,
51
+ mediaItemRid: _Core.MediaItemRid,
52
+ $queryParams?: {
53
+ preview?: _Core.PreviewMode | undefined;
54
+ }
55
+ ]): Promise<_Core.MediaReference>;
38
56
  /**
39
57
  * Uploads a media item to an existing media set.
40
58
  * The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.
@@ -42,7 +60,7 @@ export declare function reference($ctx: $Client | $ClientContext | $OldClient |
42
60
  *
43
61
  * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
44
62
  *
45
- * @alpha
63
+ * @beta
46
64
  *
47
65
  * Required Scopes: [api:mediasets-write]
48
66
  * URL: /v2/mediasets/{mediaSetRid}/items
@@ -52,18 +70,19 @@ export declare function upload($ctx: $Client | $ClientContext | $OldClient | $Ol
52
70
  $body: Blob,
53
71
  $queryParams?: {
54
72
  mediaItemPath?: _Core.MediaItemPath | undefined;
55
- branchName?: _Mediasets.BranchName | undefined;
56
- branchRid?: _Mediasets.BranchRid | undefined;
73
+ branchName?: _MediaSets.BranchName | undefined;
74
+ branchRid?: _MediaSets.BranchRid | undefined;
57
75
  viewRid?: _Core.MediaSetViewRid | undefined;
58
- transactionId?: _Mediasets.TransactionId | undefined;
76
+ transactionId?: _MediaSets.TransactionId | undefined;
77
+ preview?: _Core.PreviewMode | undefined;
59
78
  }
60
- ]): Promise<_Mediasets.PutMediaItemResponse>;
79
+ ]): Promise<_MediaSets.PutMediaItemResponse>;
61
80
  /**
62
81
  * Creates a new transaction. Items uploaded to the media set while this transaction is open will not be reflected until the transaction is committed.
63
82
  *
64
83
  * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
65
84
  *
66
- * @alpha
85
+ * @beta
67
86
  *
68
87
  * Required Scopes: [api:mediasets-write]
69
88
  * URL: /v2/mediasets/{mediaSetRid}/transactions
@@ -71,35 +90,42 @@ export declare function upload($ctx: $Client | $ClientContext | $OldClient | $Ol
71
90
  export declare function create($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
72
91
  mediaSetRid: _Core.MediaSetRid,
73
92
  $queryParams?: {
74
- branchName?: _Mediasets.BranchName | undefined;
93
+ branchName?: _MediaSets.BranchName | undefined;
94
+ preview?: _Core.PreviewMode | undefined;
75
95
  }
76
- ]): Promise<_Mediasets.TransactionId>;
96
+ ]): Promise<_MediaSets.TransactionId>;
77
97
  /**
78
98
  * Commits an open transaction. On success, items uploaded to the media set during this transaction will become available.
79
99
  *
80
100
  * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
81
101
  *
82
- * @alpha
102
+ * @beta
83
103
  *
84
104
  * Required Scopes: [api:mediasets-write]
85
105
  * URL: /v2/mediasets/{mediaSetRid}/transactions/{transactionId}/commit
86
106
  */
87
107
  export declare function commit($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
88
108
  mediaSetRid: _Core.MediaSetRid,
89
- transactionId: _Mediasets.TransactionId
109
+ transactionId: _MediaSets.TransactionId,
110
+ $queryParams?: {
111
+ preview?: _Core.PreviewMode | undefined;
112
+ }
90
113
  ]): Promise<void>;
91
114
  /**
92
115
  * Aborts an open transaction. Items uploaded to the media set during this transaction will be deleted.
93
116
  *
94
117
  * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
95
118
  *
96
- * @alpha
119
+ * @beta
97
120
  *
98
121
  * Required Scopes: [api:mediasets-write]
99
122
  * URL: /v2/mediasets/{mediaSetRid}/transactions/{transactionId}/abort
100
123
  */
101
124
  export declare function abort($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
102
125
  mediaSetRid: _Core.MediaSetRid,
103
- transactionId: _Mediasets.TransactionId
126
+ transactionId: _MediaSets.TransactionId,
127
+ $queryParams?: {
128
+ preview?: _Core.PreviewMode | undefined;
129
+ }
104
130
  ]): Promise<void>;
105
131
  //# sourceMappingURL=MediaSet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MediaSet.d.ts","sourceRoot":"","sources":["../../../src/public/MediaSet.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,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AAW,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"}
@@ -15,41 +15,41 @@
15
15
  */
16
16
  import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
17
17
  //
18
- const _read = [0, "/v2/mediasets/{0}/items/{1}",,, "*/*"];
18
+ const _read = [0, "/v2/mediasets/{0}/items/{1}/content", 2,, "*/*"];
19
19
  /**
20
20
  * Gets the content of a media item.
21
21
  *
22
22
  * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
23
23
  *
24
- * @alpha
24
+ * @beta
25
25
  *
26
26
  * Required Scopes: [api:mediasets-read]
27
- * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}
27
+ * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}/content
28
28
  */
29
29
  export function read($ctx, ...args) {
30
30
  return $foundryPlatformFetch($ctx, _read, ...args);
31
31
  }
32
- const _info = [0, "/v2/mediasets/{0}/items/{1}/info"];
32
+ const _info = [0, "/v2/mediasets/{0}/items/{1}", 2];
33
33
  /**
34
34
  * Gets information about the media item.
35
35
  *
36
36
  * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
37
37
  *
38
- * @alpha
38
+ * @beta
39
39
  *
40
40
  * Required Scopes: [api:mediasets-read]
41
- * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}/info
41
+ * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}
42
42
  */
43
43
  export function info($ctx, ...args) {
44
44
  return $foundryPlatformFetch($ctx, _info, ...args);
45
45
  }
46
- const _reference = [0, "/v2/mediasets/{0}/items/{1}/reference"];
46
+ const _reference = [0, "/v2/mediasets/{0}/items/{1}/reference", 2];
47
47
  /**
48
48
  * Gets the [media reference](https://www.palantir.com/docs/foundry/data-integration/media-sets/#media-references) for this media item.
49
49
  *
50
50
  * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
51
51
  *
52
- * @alpha
52
+ * @beta
53
53
  *
54
54
  * Required Scopes: [api:mediasets-read]
55
55
  * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}/reference
@@ -65,7 +65,7 @@ const _upload = [1, "/v2/mediasets/{0}/items", 3, "*/*"];
65
65
  *
66
66
  * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
67
67
  *
68
- * @alpha
68
+ * @beta
69
69
  *
70
70
  * Required Scopes: [api:mediasets-write]
71
71
  * URL: /v2/mediasets/{mediaSetRid}/items
@@ -79,7 +79,7 @@ const _create = [1, "/v2/mediasets/{0}/transactions", 2];
79
79
  *
80
80
  * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
81
81
  *
82
- * @alpha
82
+ * @beta
83
83
  *
84
84
  * Required Scopes: [api:mediasets-write]
85
85
  * URL: /v2/mediasets/{mediaSetRid}/transactions
@@ -87,13 +87,13 @@ const _create = [1, "/v2/mediasets/{0}/transactions", 2];
87
87
  export function create($ctx, ...args) {
88
88
  return $foundryPlatformFetch($ctx, _create, ...args);
89
89
  }
90
- const _commit = [1, "/v2/mediasets/{0}/transactions/{1}/commit"];
90
+ const _commit = [1, "/v2/mediasets/{0}/transactions/{1}/commit", 2];
91
91
  /**
92
92
  * Commits an open transaction. On success, items uploaded to the media set during this transaction will become available.
93
93
  *
94
94
  * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
95
95
  *
96
- * @alpha
96
+ * @beta
97
97
  *
98
98
  * Required Scopes: [api:mediasets-write]
99
99
  * URL: /v2/mediasets/{mediaSetRid}/transactions/{transactionId}/commit
@@ -101,13 +101,13 @@ const _commit = [1, "/v2/mediasets/{0}/transactions/{1}/commit"];
101
101
  export function commit($ctx, ...args) {
102
102
  return $foundryPlatformFetch($ctx, _commit, ...args);
103
103
  }
104
- const _abort = [1, "/v2/mediasets/{0}/transactions/{1}/abort"];
104
+ const _abort = [1, "/v2/mediasets/{0}/transactions/{1}/abort", 2];
105
105
  /**
106
106
  * Aborts an open transaction. Items uploaded to the media set during this transaction will be deleted.
107
107
  *
108
108
  * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
109
109
  *
110
- * @alpha
110
+ * @beta
111
111
  *
112
112
  * Required Scopes: [api:mediasets-write]
113
113
  * URL: /v2/mediasets/{mediaSetRid}/transactions/{transactionId}/abort
@@ -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}\", , , \"*/*\"];\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 * @alpha\n *\n * Required Scopes: [api:mediasets-read]\n * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}\n */\nexport function read($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _read, ...args);\n}\nconst _info = [0, \"/v2/mediasets/{0}/items/{1}/info\"];\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 * @alpha\n *\n * Required Scopes: [api:mediasets-read]\n * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}/info\n */\nexport function info($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _info, ...args);\n}\nconst _reference = [0, \"/v2/mediasets/{0}/items/{1}/reference\"];\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 * @alpha\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 * @alpha\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 * @alpha\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\"];\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 * @alpha\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\"];\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 * @alpha\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,6BAA6B,IAAM,KAAK,CAAC;AAC3D;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,kCAAkC,CAAC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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,CAAC;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,KAAKA,CAACb,IAAI,EAAE,GAAGC,IAAI,EAAE;EACjC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEY,MAAM,EAAE,GAAGX,IAAI,CAAC;AACvD","ignoreList":[]}
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\", 2, , \"*/*\"];\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}\", 2];\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\", 2];\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,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAChC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,KAAK,EAAE,GAAGD,IAAI,CAAC;AACtD;AACA,MAAMG,UAAU,GAAG,CAAC,CAAC,EAAE,uCAAuC,EAAE,CAAC,CAAC;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,SAASA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EACrC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,UAAU,EAAE,GAAGH,IAAI,CAAC;AAC3D;AACA,MAAMK,OAAO,GAAG,CAAC,CAAC,EAAE,yBAAyB,EAAE,CAAC,EAAE,KAAK,CAAC;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,OAAO,EAAE,GAAGL,IAAI,CAAC;AACxD;AACA,MAAMO,OAAO,GAAG,CAAC,CAAC,EAAE,gCAAgC,EAAE,CAAC,CAAC;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACT,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,OAAO,EAAE,GAAGP,IAAI,CAAC;AACxD;AACA,MAAMS,OAAO,GAAG,CAAC,CAAC,EAAE,2CAA2C,EAAE,CAAC,CAAC;AACnE;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,MAAM,GAAG,CAAC,CAAC,EAAE,0CAA0C,EAAE,CAAC,CAAC;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,KAAKA,CAACb,IAAI,EAAE,GAAGC,IAAI,EAAE;EACjC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEY,MAAM,EAAE,GAAGX,IAAI,CAAC;AACvD","ignoreList":[]}
@@ -1,40 +1,58 @@
1
1
  import type * as _Core from "@osdk/internal.foundry.core";
2
2
  import type { SharedClient as $OldClient, SharedClientContext as $OldClientContext } from "@osdk/shared.client";
3
3
  import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client2";
4
- import type * as _Mediasets from "../_components.js";
4
+ import type * as _MediaSets from "../_components.js";
5
5
  /**
6
6
  * Gets the content of a media item.
7
7
  *
8
8
  * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
9
9
  *
10
- * @alpha
10
+ * @beta
11
11
  *
12
12
  * Required Scopes: [api:mediasets-read]
13
- * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}
13
+ * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}/content
14
14
  */
15
- export declare function read($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [mediaSetRid: _Core.MediaSetRid, mediaItemRid: _Core.MediaItemRid]): Promise<Response>;
15
+ export declare function read($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
16
+ mediaSetRid: _Core.MediaSetRid,
17
+ mediaItemRid: _Core.MediaItemRid,
18
+ $queryParams?: {
19
+ preview?: _Core.PreviewMode | undefined;
20
+ }
21
+ ]): Promise<Response>;
16
22
  /**
17
23
  * Gets information about the media item.
18
24
  *
19
25
  * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
20
26
  *
21
- * @alpha
27
+ * @beta
22
28
  *
23
29
  * Required Scopes: [api:mediasets-read]
24
- * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}/info
30
+ * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}
25
31
  */
26
- export declare function info($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [mediaSetRid: _Core.MediaSetRid, mediaItemRid: _Core.MediaItemRid]): Promise<_Mediasets.GetMediaItemInfoResponse>;
32
+ export declare function info($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
33
+ mediaSetRid: _Core.MediaSetRid,
34
+ mediaItemRid: _Core.MediaItemRid,
35
+ $queryParams?: {
36
+ preview?: _Core.PreviewMode | undefined;
37
+ }
38
+ ]): Promise<_MediaSets.GetMediaItemInfoResponse>;
27
39
  /**
28
40
  * Gets the [media reference](https://www.palantir.com/docs/foundry/data-integration/media-sets/#media-references) for this media item.
29
41
  *
30
42
  * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
31
43
  *
32
- * @alpha
44
+ * @beta
33
45
  *
34
46
  * Required Scopes: [api:mediasets-read]
35
47
  * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}/reference
36
48
  */
37
- export declare function reference($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [mediaSetRid: _Core.MediaSetRid, mediaItemRid: _Core.MediaItemRid]): Promise<_Core.MediaReference>;
49
+ export declare function reference($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
50
+ mediaSetRid: _Core.MediaSetRid,
51
+ mediaItemRid: _Core.MediaItemRid,
52
+ $queryParams?: {
53
+ preview?: _Core.PreviewMode | undefined;
54
+ }
55
+ ]): Promise<_Core.MediaReference>;
38
56
  /**
39
57
  * Uploads a media item to an existing media set.
40
58
  * The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.
@@ -42,7 +60,7 @@ export declare function reference($ctx: $Client | $ClientContext | $OldClient |
42
60
  *
43
61
  * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
44
62
  *
45
- * @alpha
63
+ * @beta
46
64
  *
47
65
  * Required Scopes: [api:mediasets-write]
48
66
  * URL: /v2/mediasets/{mediaSetRid}/items
@@ -52,18 +70,19 @@ export declare function upload($ctx: $Client | $ClientContext | $OldClient | $Ol
52
70
  $body: Blob,
53
71
  $queryParams?: {
54
72
  mediaItemPath?: _Core.MediaItemPath | undefined;
55
- branchName?: _Mediasets.BranchName | undefined;
56
- branchRid?: _Mediasets.BranchRid | undefined;
73
+ branchName?: _MediaSets.BranchName | undefined;
74
+ branchRid?: _MediaSets.BranchRid | undefined;
57
75
  viewRid?: _Core.MediaSetViewRid | undefined;
58
- transactionId?: _Mediasets.TransactionId | undefined;
76
+ transactionId?: _MediaSets.TransactionId | undefined;
77
+ preview?: _Core.PreviewMode | undefined;
59
78
  }
60
- ]): Promise<_Mediasets.PutMediaItemResponse>;
79
+ ]): Promise<_MediaSets.PutMediaItemResponse>;
61
80
  /**
62
81
  * Creates a new transaction. Items uploaded to the media set while this transaction is open will not be reflected until the transaction is committed.
63
82
  *
64
83
  * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
65
84
  *
66
- * @alpha
85
+ * @beta
67
86
  *
68
87
  * Required Scopes: [api:mediasets-write]
69
88
  * URL: /v2/mediasets/{mediaSetRid}/transactions
@@ -71,35 +90,42 @@ export declare function upload($ctx: $Client | $ClientContext | $OldClient | $Ol
71
90
  export declare function create($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
72
91
  mediaSetRid: _Core.MediaSetRid,
73
92
  $queryParams?: {
74
- branchName?: _Mediasets.BranchName | undefined;
93
+ branchName?: _MediaSets.BranchName | undefined;
94
+ preview?: _Core.PreviewMode | undefined;
75
95
  }
76
- ]): Promise<_Mediasets.TransactionId>;
96
+ ]): Promise<_MediaSets.TransactionId>;
77
97
  /**
78
98
  * Commits an open transaction. On success, items uploaded to the media set during this transaction will become available.
79
99
  *
80
100
  * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
81
101
  *
82
- * @alpha
102
+ * @beta
83
103
  *
84
104
  * Required Scopes: [api:mediasets-write]
85
105
  * URL: /v2/mediasets/{mediaSetRid}/transactions/{transactionId}/commit
86
106
  */
87
107
  export declare function commit($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
88
108
  mediaSetRid: _Core.MediaSetRid,
89
- transactionId: _Mediasets.TransactionId
109
+ transactionId: _MediaSets.TransactionId,
110
+ $queryParams?: {
111
+ preview?: _Core.PreviewMode | undefined;
112
+ }
90
113
  ]): Promise<void>;
91
114
  /**
92
115
  * Aborts an open transaction. Items uploaded to the media set during this transaction will be deleted.
93
116
  *
94
117
  * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
95
118
  *
96
- * @alpha
119
+ * @beta
97
120
  *
98
121
  * Required Scopes: [api:mediasets-write]
99
122
  * URL: /v2/mediasets/{mediaSetRid}/transactions/{transactionId}/abort
100
123
  */
101
124
  export declare function abort($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
102
125
  mediaSetRid: _Core.MediaSetRid,
103
- transactionId: _Mediasets.TransactionId
126
+ transactionId: _MediaSets.TransactionId,
127
+ $queryParams?: {
128
+ preview?: _Core.PreviewMode | undefined;
129
+ }
104
130
  ]): Promise<void>;
105
131
  //# sourceMappingURL=MediaSet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MediaSet.d.ts","sourceRoot":"","sources":["../../../src/public/MediaSet.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;AAG9B,OAAO,KAAK,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAWrD;;;;;;;;;GASG;AACH,wBAAgB,IAAI,CAClB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE,CAAC,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC,GAC1E,OAAO,CAAC,QAAQ,CAAC,CAEnB;AASD;;;;;;;;;GASG;AACH,wBAAgB,IAAI,CAClB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE,CAAC,WAAW,EAAE,KAAK,CAAC,WAAW,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AS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAE1C;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"}
@@ -15,41 +15,41 @@
15
15
  */
16
16
  import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
17
17
  //
18
- const _read = [0, "/v2/mediasets/{0}/items/{1}",,, "*/*"];
18
+ const _read = [0, "/v2/mediasets/{0}/items/{1}/content", 2,, "*/*"];
19
19
  /**
20
20
  * Gets the content of a media item.
21
21
  *
22
22
  * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
23
23
  *
24
- * @alpha
24
+ * @beta
25
25
  *
26
26
  * Required Scopes: [api:mediasets-read]
27
- * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}
27
+ * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}/content
28
28
  */
29
29
  export function read($ctx, ...args) {
30
30
  return $foundryPlatformFetch($ctx, _read, ...args);
31
31
  }
32
- const _info = [0, "/v2/mediasets/{0}/items/{1}/info"];
32
+ const _info = [0, "/v2/mediasets/{0}/items/{1}", 2];
33
33
  /**
34
34
  * Gets information about the media item.
35
35
  *
36
36
  * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
37
37
  *
38
- * @alpha
38
+ * @beta
39
39
  *
40
40
  * Required Scopes: [api:mediasets-read]
41
- * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}/info
41
+ * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}
42
42
  */
43
43
  export function info($ctx, ...args) {
44
44
  return $foundryPlatformFetch($ctx, _info, ...args);
45
45
  }
46
- const _reference = [0, "/v2/mediasets/{0}/items/{1}/reference"];
46
+ const _reference = [0, "/v2/mediasets/{0}/items/{1}/reference", 2];
47
47
  /**
48
48
  * Gets the [media reference](https://www.palantir.com/docs/foundry/data-integration/media-sets/#media-references) for this media item.
49
49
  *
50
50
  * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-read`.
51
51
  *
52
- * @alpha
52
+ * @beta
53
53
  *
54
54
  * Required Scopes: [api:mediasets-read]
55
55
  * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}/reference
@@ -65,7 +65,7 @@ const _upload = [1, "/v2/mediasets/{0}/items", 3, "*/*"];
65
65
  *
66
66
  * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
67
67
  *
68
- * @alpha
68
+ * @beta
69
69
  *
70
70
  * Required Scopes: [api:mediasets-write]
71
71
  * URL: /v2/mediasets/{mediaSetRid}/items
@@ -79,7 +79,7 @@ const _create = [1, "/v2/mediasets/{0}/transactions", 2];
79
79
  *
80
80
  * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
81
81
  *
82
- * @alpha
82
+ * @beta
83
83
  *
84
84
  * Required Scopes: [api:mediasets-write]
85
85
  * URL: /v2/mediasets/{mediaSetRid}/transactions
@@ -87,13 +87,13 @@ const _create = [1, "/v2/mediasets/{0}/transactions", 2];
87
87
  export function create($ctx, ...args) {
88
88
  return $foundryPlatformFetch($ctx, _create, ...args);
89
89
  }
90
- const _commit = [1, "/v2/mediasets/{0}/transactions/{1}/commit"];
90
+ const _commit = [1, "/v2/mediasets/{0}/transactions/{1}/commit", 2];
91
91
  /**
92
92
  * Commits an open transaction. On success, items uploaded to the media set during this transaction will become available.
93
93
  *
94
94
  * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
95
95
  *
96
- * @alpha
96
+ * @beta
97
97
  *
98
98
  * Required Scopes: [api:mediasets-write]
99
99
  * URL: /v2/mediasets/{mediaSetRid}/transactions/{transactionId}/commit
@@ -101,13 +101,13 @@ const _commit = [1, "/v2/mediasets/{0}/transactions/{1}/commit"];
101
101
  export function commit($ctx, ...args) {
102
102
  return $foundryPlatformFetch($ctx, _commit, ...args);
103
103
  }
104
- const _abort = [1, "/v2/mediasets/{0}/transactions/{1}/abort"];
104
+ const _abort = [1, "/v2/mediasets/{0}/transactions/{1}/abort", 2];
105
105
  /**
106
106
  * Aborts an open transaction. Items uploaded to the media set during this transaction will be deleted.
107
107
  *
108
108
  * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:mediasets-write`.
109
109
  *
110
- * @alpha
110
+ * @beta
111
111
  *
112
112
  * Required Scopes: [api:mediasets-write]
113
113
  * URL: /v2/mediasets/{mediaSetRid}/transactions/{transactionId}/abort
@@ -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}\", , , \"*/*\"];\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 * @alpha\n *\n * Required Scopes: [api:mediasets-read]\n * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}\n */\nexport function read($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _read, ...args);\n}\nconst _info = [0, \"/v2/mediasets/{0}/items/{1}/info\"];\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 * @alpha\n *\n * Required Scopes: [api:mediasets-read]\n * URL: /v2/mediasets/{mediaSetRid}/items/{mediaItemRid}/info\n */\nexport function info($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _info, ...args);\n}\nconst _reference = [0, \"/v2/mediasets/{0}/items/{1}/reference\"];\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 * @alpha\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 * @alpha\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 * @alpha\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\"];\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 * @alpha\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\"];\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 * @alpha\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,6BAA6B,IAAM,KAAK,CAAC;AAC3D;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,kCAAkC,CAAC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAChC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,KAAK,EAAE,GAAGD,IAAI,CAAC;AACtD;AACA,MAAMG,UAAU,GAAG,CAAC,CAAC,EAAE,uCAAuC,CAAC;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,SAASA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EACrC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,UAAU,EAAE,GAAGH,IAAI,CAAC;AAC3D;AACA,MAAMK,OAAO,GAAG,CAAC,CAAC,EAAE,yBAAyB,EAAE,CAAC,EAAE,KAAK,CAAC;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,OAAO,EAAE,GAAGL,IAAI,CAAC;AACxD;AACA,MAAMO,OAAO,GAAG,CAAC,CAAC,EAAE,gCAAgC,EAAE,CAAC,CAAC;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACT,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,OAAO,EAAE,GAAGP,IAAI,CAAC;AACxD;AACA,MAAMS,OAAO,GAAG,CAAC,CAAC,EAAE,2CAA2C,CAAC;AAChE;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,MAAM,GAAG,CAAC,CAAC,EAAE,0CAA0C,CAAC;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,KAAKA,CAACb,IAAI,EAAE,GAAGC,IAAI,EAAE;EACjC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEY,MAAM,EAAE,GAAGX,IAAI,CAAC;AACvD","ignoreList":[]}
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\", 2, , \"*/*\"];\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}\", 2];\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\", 2];\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,EA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AEQ,OAAO,EAAE,GAAGP,IAAI,CAAC;AACxD;AACA,MAAMS,OAAO,GAAG,CAAC,CAAC,EAAE,2CAA2C,EAAE,CAAC,CAAC;AACnE;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,MAAM,GAAG,CAAC,CAAC,EAAE,0CAA0C,EAAE,CAAC,CAAC;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,KAAKA,CAACb,IAAI,EAAE,GAAGC,IAAI,EAAE;EACjC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEY,MAAM,EAAE,GAAGX,IAAI,CAAC;AACvD","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osdk/internal.foundry.mediasets",
3
- "version": "2.8.0",
3
+ "version": "2.9.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.2.0",
25
- "@osdk/internal.foundry.core": "2.8.0"
25
+ "@osdk/internal.foundry.core": "2.9.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.1014.0",
48
+ "minVersion": "1.1040.0",
49
49
  "maxVersion": "1.x.x",
50
50
  "optional": false
51
51
  }